uid
stringlengths
6
55
question
stringlengths
34
465
context_short
sequence
context_long
sequence
tags
sequence
answer
stringlengths
1
25
relation
stringclasses
1 value
cloudcontrol@api@117
cloudcontrol -- cloudcontrol is a european paas that supports java php python ruby and more via the open buildpacks @placeholder and easy integration of third party cloud services via the add-on marketplace .
{ "confidence": [ 47.59635543823242, 47.211978912353516, 47.00904846191406, 46.930912017822266, 45.095890045166016, 45.095890045166016, 45.064151763916016, 43.889244079589844, 43.64143371582031, 43.308834075927734, 43.213897705078125, 42.55707550048828, 42.55707550048828, 42.55707550048828, 42.55707550048828, 42.55707550048828, 42.305152893066406, 42.19097137451172, 42.14385986328125, 41.699913024902344, 41.699913024902344, 41.4975700378418, 40.869667053222656, 40.858802795410156, 40.858802795410156, 40.858802795410156, 40.55217361450195, 40.55217361450195, 39.73216247558594, 39.161102294921875, 39.161102294921875, 39.161102294921875, 39.161102294921875, 39.11842727661133, 38.95875930786133, 37.67975616455078, 37.46282958984375, 37.46282958984375, 37.46282958984375, 37.46282958984375, 37.46282958984375, 37.46282958984375, 37.442222595214844, 37.12555694580078, 37.12555694580078, 37.12555694580078, 36.470882415771484, 36.336185455322266, 36.336185455322266, 36.336185455322266, 36.336185455322266, 35.981483459472656, 35.666481018066406, 35.59849166870117, 35.59849166870117, 34.98587417602539, 34.94380187988281, 34.325950622558594, 34.325950622558594, 34.325950622558594, 33.854881286621094, 33.68125534057617, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.88847351074219, 32.08894348144531, 31.78713607788086, 31.78713607788086, 31.761829376220703, 31.761829376220703, 31.761829376220703, 31.761829376220703, 30.411516189575195, 30.411516189575195, 30.411516189575195, 30.345191955566406, 30.131423950195312, 30.104583740234375, 30.088865280151367, 30.088865280151367, 30.088865280151367, 30.088865280151367, 29.444171905517578, 28.962223052978516, 28.962223052978516, 28.720752716064453, 27.811290740966797, 27.785913467407227, 25.82656478881836, 25.82656478881836, 25.82656478881836, 25.82656478881836 ], "content": [ "PaaS providers like Heroku CloudControl or Exoscale offer deployment using git .", "Is there is any guide about how to compile php-extension on cloudcontrol", "Please I just need to ask if it is possible and how to add configuration settings similar to this : .. . .. . via the phpcclib of cloudcontrol Thanks", "Hence the cloudcontrol tag .", "I successfully deployed my Wordpress app on cloudControl .", "Thank you.. . looking forward to test drive cloudControl", "I always get this error with cloudcontrol .", "Might be that this is not pointed out enough in my question but I am talking about a cloudControl PaaS here .", "Check out https : github.com cloudControl buildpack-php blob master README.md for the different ways to configure Apache and PHP .", "On Cloudcontrol I have added the MySQLs Add-on to my application .", "Just wanted to let you know that cloudControl published a guide today on exactly this topic : .. . .. . https : www.cloudcontrol.com blog self-compiled-php-libraries-cloudControl .. . .. . Hope it helps", "does cloudControl has a maintenance function like heroku", "But my cloudcontrol app isn t able to access it .", "But if I push this to my cloudControl machine the return is null .", "Have you added your public-key to cloudControl", "I m running an app on cloudControl with the default node.js buildpack .", "I m currently evaluating CloudControl as platform provider for my Java based applications .", "I would like to use Symfony2 and MongoDB on a cloudControl PaaS provider like heroku container .", "Check out the Python code in pycclib https : github.com cloudControl cctrl blob master cctrl app.py L691 for more details .", "However there is no mention of direct use of Amazon RDS instances in cloudcontrol documentation .", "Has anyone used their own RDS instances with Cloudcontrol apps", "You can see examples of the API usage in the python library https : github.com cloudControl pycclib the command-line client uses .", "The phpcclib https : github.com cloudControl phpcclib blob master CloudControl API.php L524 currently does not pass the required settings parameter along but it should be easy enough to do so .", ".. . Deployments on the cloudControl platform have access to a writable filesystem .", "Can t start Faye in staging on CloudControl http : www.cloudcontrol.com .", "I have a Django application deployed to cloudControl .", "I would like to add an environment variable also called config in this context to my cloudControl deployment .", "Have you checked cloudControl documentation https : www.cloudcontrol.com dev-center Add-on 20Documentation Deployment Alias", "cloudControl provides a key pair per application .", "I am looking for a way to automatically fetch those information on a cloudControl container .", "I d know how to do this with an .htaccess file - is there an equivalent that would work on cloudcontrol", "Generally every app on cloudControl has its own subdomain like APP NAME.cloudcontrolled.com .", "The config access confusion however is something which can be improved in cloudControl documentation .", "cloudControl like most cloud application hosters replace the full application folder when it s being deployed .", "For a Python Django application running on cloudcontrol what s the recommended way of rewriting urls e.g .", "https : github.com cloudControl example apps blob master php kohana example.htaccess but that s all PHP and it does not seem to work for my Django app .", "I m trying to deploy my Spring Boot based application to a CloudControl container .", "If you still have issues please contact cloudControl support to help you .", "Or have I missed somethig about the cloudcontrol http : www.cloudcontrol.com platform", "Is it possible that you are using a non production configuration while deploying to cloudControl", "I have a Symfony 3.0 application that I want to deploy on cloudControl .", "I m running an web application that I developed using CakePHP 1.3 on cloudControl .", "cloudControl offers this way to access the credentials in PHP : .. . .. . How can I get these dynamically fetched credentials into Symfony2 s config.yml", "The cloudControl log says there was a deployment in these times but the hash value of the build is the same as no changes were made .", "I want to publish a maven project to CloudControl by REST API not by command-line tool is it possible", "I would like to use our own RDS instances with apps hosted with cloudcontrol .", "I m looking for a way to notify external services after a deploy has finished on cloudControl do they have post-deploy hooks and how are they set up", "The tricky part.. . .. . .. . Fortunately CloudControl gives us access to the error logs as well .. .", "The usage instructions include changing the BUILDPACK URL which isn t supported this way on cloudControl .", "I have a web application built-in codeigniter and hosted with cloudcontrol http : www.cloudcontrol.com .", "@JohnD can t -- I m restricted to using cloudcontrol and they don t offer anything for this .", "Given your composer.json we checked and found it s actually I bug in our PHP Buildpack https : github.com cloudControl buildpack-php issues 17 .", "The following commands may help : .. . .. . I ve uploaded some spring-boot example code at https : github.com cloudControl spring-boot-example-app which I ve tested on cloudControl today .", "According to the implementation of cctrlapp see app.py https : github.com cloudControl cctrl blob master cctrl app.py and cclib.py https : github.com cloudControl pycclib blob master pycclib cclib.py I would infer the following JSON data is required : .. . .. . Now I m stuck .", "From looking at https : github.com cloudControl pycclib blob master pycclib cclib.py L422 I think you do need to use options and the value of options should be a json encoded dictionary https : github.com cloudControl cctrl blob master cctrl addonoptionhelpers.py L82 .", "is cloudcontrol also offering such a flag to make the env vars available during the build", "From this article http : www.paasfinder.com custom-php-version I understand that after September 14th CloudControl will have PHP 5.6 as new standard PHP version and a list of extensions enabled by default .", "When I run the following command on windows-8.1 machine : .. . .. . I get an error : .. . .. . How can I alternatively get access to CloudControl bash in Windows", "I m running a Spring-Boot application on cloudControl https : www.cloudcontrol.com and a simple Jenkins task to check every 10 minutes whether the application is still available or not .", "The remaining parts are not json encoded however but are just normal POST parameters https : github.com cloudControl pycclib blob master pycclib cclib.py L931 .", "I have a python web app that depends on the pysqlite module but pushing it to cloudcontrol fails with error .. . .. . remote : src connection.h : 33 : 21 : fatal-error : sqlite3.h : No such file or directory .. . .. . Is there any way to get that app running on cloudcontrol or is it a lost cause for now", "https : github.com Felixthm Test .. . .. . after i uploaded it i went to cloudcontrol cloudcontrol.com can just add 2 Links because im new to the quickstart and followed the instructions .", "cloudControl uses Container idling https : www.cloudcontrol.com dev-center Platform 20Documentation deploying-new-versions for free deployments .", "I am new to CloudControl and to git though I have been programming for a while .", "It can not run at the moment because the Yii framework folder does not exist on my CloudControl app .", "Problem : Errno : : ECONNREFUSED Connection refused - connect 2 for localhost port 25 : on cloudcontrol server .", "@mkorszun this is staging config production config is identical file and cloudControl RAILS ENV is set to RAILS ENV : staging by default .", "It seems like git or cloudcontrol REPLACE the profile directory not just update its contents without touching the old files pictures .", "I m trying to push my application to cloudControl but it doesn t seem to be running the build-process properly and keeps rejecting my push .", "Locally Composer installs the dependencies in includes vendor but I m not sure why that s not the case on cloudControl .", "The first thing I do in this file is to check if we are in a cloudControl environment or in a local environment .", "Is it my app which causes the issue or is it a problem of the nginx from my provider cloudcontrol", "This doesn t happen in my local environment so I m wondering if it s something to do with cloudControl or the piggyback SSL .", "You can have a look here : https : github.com cloudControl buildpack-php It also offers to have custom Apache or PHP configurations if you require a different configuration .", "I have a cloudControl app and have added TXT and CNAME entries for the alias settings in order to make the app available under my own domain .", "I m trying to set up a Node.js deployment on cloudControl https : www.cloudControl.com however my deployment fails and I have no idea why .", "I m trying to deploy an Play 1 app with a Mysql database on cloudcontrol it s like Heroku .", "i dont get it so cloudcontrol will use those variables when i put it as a command-line in the procfile", "Problem : accessing private repositories during the cloudcontrol image build-process does not work due to missing ssh private keys .", "I have a production test environment deployed on cloudcontrol that uses wkhtmltopdf in order to create a pdf from an html page .", "I ask this question because Heroku or CloudControl are not really explicit on how a free application can consume their ressources", "cloudControl works with containers LXC the application is started within such a container and the resources CPU Memory Network are restricted to the configured scaling options .", "On cloudControl https : www.cloudcontrol.com you can detect if you re inside the build-process by reading the BUILDPACK RUNNING environment variable .", "I used to dynamically set some parameters via Services and kernelListeners but this is easy as hell thanks a million", "But the collectstatic step https : github.com cloudControl buildpack-python blob master bin steps collectstatic is not being executed : it fails silently I see no ----- Collecting static files message .", "On GitHub sadly a private repo is for premium users and i uploaded a repo but it has lot of login third party and i want to make those login information private and i have a MongoHQ connection and want to make the database private to deploy it on CloudControl .", "How CloudControl and Heroku work is that by taking the file AFTER the clone on disk or the clone is only temporary file and they take the one hosted on Github", "this only works if the database are hosted are cloudcontrol i use mongoHQ which is independent from their service and there are other credential like gmail account for sending mails .", "It would make sense to also not have this framework directory under git which is why the folder is also not deployed to my cloudcontrol app .", "The local log is : .. . .. . And localhost : 9292 faye.js is ok localhost : 3000 is ok .. . .. . Can someone point me how to start faye on cloudControl", "I ve added the mysql.free add-on and configured it through my application.properties : .. . .. . On my local development system everything works perfectly fine but on the CloudControl container the app won t start .", "I am new to hosting world cloudcontrol an i got some problem with application credentials like database-administration mongohq or google authentification .", "As the documentation says everything should be as it is inside our deployment boxes : .. . .. . The distributed nature of the cloudControl platform means it s not possible to SSH into the actual server .", "running via git bash worked", "All other steps like creating an app deployment deploying or adding add-ons are available via the REST-API .", "First check if you have a public-key in your cloudControl account using : .. . .. . Then check if this key matches the local id rsa.pub file : .. . .. . If you have uploaded the correct key and it s available on the local system the SSH client might not be able to find it .", "I tried on cloudcontrol the 512mb mysql database with 8 connections but the error are still there only the current value changes User xy has exceeded the max user connections resource current value : 8 Its really strange .", "While it still incorporates cumbersome manual debugging at least we can save some time go to your CLI and execute : .. . .. . CloudControl now instantiates a new container for us and gives us SSH based shell access to it .", ".. . .. . Thanks : .. . .. . Finally I d like to thank Dimitris and Mateusz from CloudControl for general advises though I need to find out on my own what was going on here .", "According to this https : stackoverflow.com questions 25833954 wkhtmltopdf-and-chinese-characters question I should perform the installation of some fonts packages but since I don t have a direct console access to Cloudcontrol this solution won t fit for me ." ] }
{ "confidence": [ 78.91236877441406, 68.86001586914062, 61.78889465332031, 61.30555725097656, 60.15888214111328, 60.11371612548828, 59.15740203857422, 57.14974594116211, 56.102272033691406, 56.097835540771484, 55.74913024902344, 55.415687561035156, 55.14427185058594, 54.617645263671875, 54.57770538330078, 53.86351776123047, 52.973819732666016, 50.573081970214844, 50.186676025390625, 49.17491912841797 ], "content": [ "Question : I would like to use Symfony2 and MongoDB on a cloudControl PaaS provider like heroku container . Now Symfony2 supports the usage of MongoDB http : symfony.com doc current bundles DoctrineMongoDBBundle index.html : .. . .. . And as MongoDB is a PaaS AddOn I don t have static connection credentials . They re generated by the container . cloudControl offers this way to access the credentials in PHP : .. . .. . How can I get these dynamically fetched credentials into Symfony2 s config.yml .. . Answer : The solution would be to use Symfony2 Miscellaneous Configuration http : symfony.com doc current cookbook configuration external parameters.html miscellaneous-configuration . So create app-config credentials.php file with below content : .. . .. . Then in your app-config config.yml add : .. . .. . Let me know if this solves your problem . Comment : Looks really nice will try that out . But btw : Why are you checking empty SERVER HTTP HOST Comment : We have used it to distinguish between PaaS and local env - you can ignore it Comment : Okay and how about the container Is the container automatically available in that PHP file or do I have to inject it manually Comment : It should be automatically available . Comment : Yeah just tested it . The container is known and doesn t has to be injected . Wow this is such an easy way . I used to dynamically set some parameters via Services and kernelListeners but this is easy as hell thanks a million", "Question : Please I just need to ask if it is possible and how to add configuration settings similar to this : .. . .. . via the phpcclib of cloudcontrol Thanks .. . Answer : The config.add command is implemented in the cctrlapp by adding and removing the custom config add-on and passing along the key-value-pairs . Check out the Python code in pycclib https : github.com cloudControl cctrl blob master cctrl app.py L691 for more details . The phpcclib https : github.com cloudControl phpcclib blob master CloudControl API.php L524 currently does not pass the required settings parameter along but it should be easy enough to do so . Pull requests are highly welcome . Comment : I tried making the pull request but it seems the REST endpoint for the config.add is not available . as I get the error no valid json : Gone Method POST not allowed .", "Question : For a Python Django application running on cloudcontrol what s the recommended way of rewriting urls e.g . attaching a wordpress blog to a certain url path like example.com blog or even just redirecting a subdomain I d know how to do this with an .htaccess file - is there an equivalent that would work on cloudcontrol I found some sample cctrl apps that use .htaccess files e.g . https : github.com cloudControl example apps blob master php kohana example.htaccess but that s all PHP and it does not seem to work for my Django app . .. . Answer : You have multiple options . Let me explain the basic concept first . Generally every app on cloudControl has its own subdomain like APP NAME.cloudcontrolled.com . Requests to those subdomains or from a CNAME pointing to that subdomain are forwarded by the routing tier to one or more of the containers available to serve requests . What runs inside each container is controlled by the Buildpack . Depending on the preferences of each language ecosystem e.g . PHP vs Python the runtime environment in the container differs . So for PHP Apache is available while for Python it is not . Option 1 : The recommended way would be to have e.g . www.example.com poing to PYTHON APP.cloudcontrolled.com and blog.example.com point to PHP APP.cloudcontrolled.com . Option 2 : Alternatively if you have to use blog instead of a blog . subdomain you can teach the Apache running inside the PHP App s containers to only serve requests for blog and forward everything else to PYTHON APP.cloudcontrolled.com . Option 3 : Soon you d have a third option also but this isn t available yet . We re currently working on enabling the Python buildpack to run Nginx inside the containers and use WSGI to communicate with the Python process . Currently the Python process has to listen on the PORT and serve HTTP directly As soon as Nginx is available you could also configure it to forward blog to PHP APP.cloudcontrolled.com and serve everything else directly . My recommendation would be to go with option 1 since that keeps both apps nicely decoupled . By permanently redirecting blog in the Python app to blog.example.com you can make the migration painless . Comment : Thanks for your response Looks like we will use a subdomain until option 3 becomes available .", "Question : Is there is any guide about how to compile php-extension on cloudcontrol In particular I need memcache non memcached and phpredis . .. . Answer : Just wanted to let you know that cloudControl published a guide today on exactly this topic : .. . .. . https : www.cloudcontrol.com blog self-compiled-php-libraries-cloudControl .. . .. . Hope it helps", "Question : I would like to use our own RDS instances with apps hosted with cloudcontrol . I know this is possible because all i need is EC2 security group info and account number for cloud control . However there is no mention of direct use of Amazon RDS instances in cloudcontrol documentation . Has anyone used their own RDS instances with Cloudcontrol apps .. . Answer : This is of course possible . We recommend to start the RDS instance in the EU region to be close to our EC2 instances . Here s the account information you need to setup the RDS security group to allow access from our machines . AWS Account ID : 481137082768 EC2 Security Group : lxc Comment : Thank you.. . looking forward to test drive cloudControl", "Question : I am using cloudcontrols standard buildback-php . I am using composer to install third party libs . These also includes private git repositories typically accessible via ssh deployment keys . Problem : accessing private repositories during the cloudcontrol image build-process does not work due to missing ssh private keys . I found a workaround solution that seems to work with heroku private key is downloaded decrypted and installed during build-process : .. . .. . https : github.com taniele heroku-buildpack-php-mongo composer-private-repository-support .. . .. . Another solution is provided by fortrabbit one time server-side ssh key generation : .. . .. . http : fortrabbit.com docs in-depth git-hooks sshkeygen .. . .. . Questions : .. . .. . Is there any known secure solution for cloudcontrol How can I access CONFIG VARS added via the config addon or the related creds.json file during the image build-process before composer is executed .. . Answer : cloudControl provides a key pair per application . The public-key is provided via the command-line client and can be used to access private repositories . When pulling in dependencies from Git repositories via SSH this key pair is automatically used . Simply allow access to the respective repository using this public-key . You can get the key with this command : Comment : exactly what i was looking for - no workrounds . i had to update to the latest cctrl apps to see the public-key details . works like a charm .", "Question : I am looking for a way to automatically fetch those information on a cloudControl container . So I wrote a little Symfony2 service that returns some git information e.g . the commit hash .. . .. . If I run this on my local machine it returns the proper shortened commit hash . But if I push this to my cloudControl machine the return is null . I manually connected to the machine and ran this command on the command-line in the www folder that is where the repository is pushed into . That throws the following error : .. . .. . I am really confused as I thought I simply push my whole repository including the .git folder onto the remote machine . Why do I get this error and how can I fetch the git information instead Comment : This should be executed from project root directory . Comment : What is the project root directory if not www Comment : where .git folder exists this is hidden folder . or from where you executed git-clone command and then go to project and then execute Comment : Might be that this is not pointed out enough in my question but I am talking about a cloudControl PaaS here . So I don t git-clone manually but I push a repository onto the remote PaaS machine . Hence the cloudcontrol tag . .. . Answer : You cannot fetch the git info from inside a container since the git repository is not initialized where the code is located . All the code is located in a repository node . You can get the remote address by executing cctrlapp APP NAME DEP NAME details it will have the following format : ssh : APP NAME@cloudcontrolled.com repository.git . Given this git address you can add it as a remote to your local directory git-remote add cctrl ssh : APP NAME@cloudcontrolled.com repository.git and get all git information as you want . Comment : I am looking for a way to automatically fetch those information on the remote machine . Fetching it from local doesn t help me . But thanks anyway", "Question : I am looking for a way to automatically fetch those information on a cloudControl container . So I wrote a little Symfony2 service that returns some git information e.g . the commit hash .. . .. . If I run this on my local machine it returns the proper shortened commit hash . But if I push this to my cloudControl machine the return is null . I manually connected to the machine and ran this command on the command-line in the www folder that is where the repository is pushed into . That throws the following error : .. . .. . I am really confused as I thought I simply push my whole repository including the .git folder onto the remote machine . Why do I get this error and how can I fetch the git information instead Comment : This should be executed from project root directory . Comment : What is the project root directory if not www Comment : where .git folder exists this is hidden folder . or from where you executed git-clone command and then go to project and then execute Comment : Might be that this is not pointed out enough in my question but I am talking about a cloudControl PaaS here . So I don t git-clone manually but I push a repository onto the remote PaaS machine . Hence the cloudcontrol tag . .. . Answer : If you want to use the git version within your running container you can use the environment variable DEP VERSION . E.g . : Comment : Yeah this helps - although I can t fetch tag or branch . Thanks", "Question : I want to publish a maven project to CloudControl by REST API not by command-line tool is it possible That means create a app by REST API deploy source or binary code by REST API . Just like Heroku I can build a url directly into app using REST API https : api.heroku.com apps myapp builds . Thanks very much .. . Answer : We currently don t provide a way to upload images directly . You d first have to push to the Git remote which will build the image . All other steps like creating an app deployment deploying or adding add-ons are available via the REST-API . You can see examples of the API usage in the python library https : github.com cloudControl pycclib the command-line client uses . Comment : Thanks if I push code to the Git remote by git command then how to deploy using REST API Is API app app name deployment dep name worker What s the value of command parameter", "Question : I m trying to push my application to cloudControl but it doesn t seem to be running the build-process properly and keeps rejecting my push . Here is the error : .. . .. . Right now my project contains these files : .. . .. . .. . includes .. . vendor .. . .gitignore .. . composer.json .. . composer.lock .. . index.php .. . .. . How do I get the post-receive hook to properly compile the PHP app This is my composer.json file : .. . Answer : There are three likely issues here : .. . .. . The directory is empty . Git does not track empty directories so even if it does exist in your working directory it does not exist in the repository . The directory is not empty but ignored using a .gitignore . Composer is not looking for the vendor directoy in the right place . srv tmp builddir code vendor would mean it would have to exist in vendor yours is in includes vendor . It might actually be a combination of any of the above . To be able to tell I d need the contents of the .gitignore and the composer.json . If I had to bet my money would be on the last option . To fix the empty directory issue make sure your .gitignore file does not include the includes vendor in any way . Then create a includes vendor .gitignore file with the following content : .. . .. . To fix the latest check your composer.json and the target-dir set there . Refer to the Composer documentation https : getcomposer.org doc 04-schema.md target-dir for more details . Comment : I tried adding the .gitignore file but the problem still occurs . Locally Composer installs the dependencies in includes vendor but I m not sure why that s not the case on cloudControl . I will edit my question to post my composer.json file . Comment : Given your composer.json we checked and found it s actually I bug in our PHP Buildpack https : github.com cloudControl buildpack-php issues 17 . The Buildpacks breaks when using custom vendor directories . Until we have a fix which we hope should be tomorrow you can work around this by having the vendor directory in the root of your repository . We ll provide updates on our progress in the Github issue .", "Question : I am new to CloudControl and to git though I have been programming for a while . I am just testing CC and setup a test php app and am using Yii which I already know . I have the app created along with a testing branch all following this guide : https : www.cloudcontrol.com dev-center Guides PHP Yii 201.1.10 .. . .. . I do NOT have the framework directory inside my Yii apps directory . It is one directory higher and is recommended that way by Yii so it is not in the web root . It would make sense to also not have this framework directory under git which is why the folder is also not deployed to my cloudcontrol app . So my question is can I FTP or SSH to my CloudControl app to upload this folder manually so my app can actually run on CC or do I need to move the folder into my app s directory put it under git and deploy it to CC It can not run at the moment because the Yii framework folder does not exist on my CloudControl app . .. . Answer : No we do not offer SSH or FTP upload because all dependencies have to be part of the image that is built during a Git push . They are not however required to be in the repository . It is actually recommended to use composer to track your dependencies for PHP . I see Yii now supports this so the guide on our site seems a little outdated by now . THe PHP Buildpack does support Yii and takes care of setting the webroot . You can have a look here : https : github.com cloudControl buildpack-php It also offers to have custom Apache or PHP configurations if you require a different configuration .", "Question : The easy part.. . .. . .. . Usually when migrating a ZF1 application from built-in auto-loading to composer based auto-loading which is strongly recommended for deploying on CloudControls Pinky stack you just need to take some simple steps : .. . .. . Create a composer.json file and require Zend Framework e.g . latest release from version 1.12 with : .. . .. . Install composer dependencies via CLI with : .. . .. . Update your .gitignore file and add : .. . .. . Recursively delete current ZF folder from your library path e.g . . library : .. . .. . Include composer autoloader in your index.php before any usage of Zend classes by adding : .. . .. . Remove every now obsolete ZF related require or require-once statements from your index.php - e.g . this is not needed anymore : .. . .. . Once you are done with the above changes you commit and push via git as normal and then you deploy the new version on CloudControl via CLI where APP NAME and DEP NAME here refer to your app and deployment names : .. . .. . You will notice that cctrlapp prints out some information about resolving composer dependencies and finally initiates the deployment of the new version . To check whether it is done you can run : .. . .. . Ok deployment log looks fine nice let s open the browser What the f Internal server error Why Everything worked well with the local LA M P stack .. . Answer : The tricky part.. . .. . .. . Fortunately CloudControl gives us access to the error logs as well .. . Shouldn t be too hard to find out what s wrong here . But .. . err .. . .. . .. . As the above error messages are not helpful at all we first need to track down this very bug . And this can indeed be tricky We can google a bit . We can try something . We can then redeploy . We can google a bit more . We can try another thing . We can then redeploy again . We can google another time . We can try out every other thing . We can .. . but do we want Luckily the Pinky stack offers another way to speed things up which Luigi does not all . While it still incorporates cumbersome manual debugging at least we can save some time go to your CLI and execute : .. . .. . CloudControl now instantiates a new container for us and gives us SSH based shell access to it . As the documentation says everything should be as it is inside our deployment boxes : .. . .. . The distributed nature of the cloudControl platform means it s not possible to SSH into the actual server . Instead we offer the run command that allows you to launch a new container and connect to that via SSH . .. . The container is identical to the web or worker containers but starts an SSH daemon instead of one of the Procfile commands . It s based on the same stack image and deployment image and does also provides the Add-on credentials . Let s see if we can find out more from inside the container : .. . .. . Hmm .. . nothing reported here .. . and .. . nothing reported at the logs What the hell .. . .. . So there seems to be a difference between the web and the run containers and there is To find this out I started by editing the index.php right away : .. . .. . And after a while I finally got to reproduce at least another error : .. . .. . Looks like some file is missing maybe related to auto-loading shouldn t be too hard to fix it . But wait what s that : Failed opening required Sure you fail to require nothing you stupid code you .. . .. . Well .. . when looking at the respective ZF library files you won t find anything wrong there . The include paths seem to be correct as well and yes the files are present composer managed both things correctly . .. . .. . It s a PHP bug To be more precise it is a bug with PECL APC which affects Pinky s current versions of PHP 5.4.30 APC 3.1.13 - see : .. . .. . https : bugs.php.net bug.php id 62398 .. . .. . And that s exactly the difference between the run and the web containers as php.ini option apc.stat is set to 0 off for the web containers and 1 on for the run container . .. . .. . tl dr .. . .. . Clone the CloudControl Pinky PHP buildpack from GitHub : .. . .. . Copy all files from this repository and add them to your project root folder at : .. . .. . Edit .buildpack php conf php.ini and set : .. . .. . Commit push deploy and enjoy .. . .. . .. . .. . Notes : .. . .. . Keep in mind that this is just a workaround as APC stat does not need to be activated in such an environment where the stack is recreated on deploy and it slows down execution . See the PHP docs : .. . .. . On a production server where the script files rarely change a significant performance boost can be achieved by disabled stats . .. . .. . Thanks : .. . .. . Finally I d like to thank Dimitris and Mateusz from CloudControl for general advises though I need to find out on my own what was going on here . Furthermore I want to thank @BullfrogBlues and @Thierry Marianne here at Stack Overflow who tried to answer another questioners thread dating back to November last year which finally pointed me to look for APC related issues . Comment : Could you please accept your answer Comment : Sure - I will do as soon as it is possible - that is in about 9 hours :", "Question : I would like to add an environment variable also called config in this context to my cloudControl deployment . However I can t use the provided command-line tool cctrlapp but have to use the REST API . Their API can be accessed at https : api.cloudcontrol.com and is documented at https : api.cloudcontrol.com doc . My problem now is that the section of the documentation that refers to the environment-variables is empty Here is what I have done so far : .. . .. . 1 . Application of the type nodejs created .. . 2 . Default deployment created .. . 3 . Tried to add the env . variable .. . .. . I figured out that I would have to send a POST request to https : api.cloudcontrol.com app APP NAME deployment DEPLOYMENT NAME addon . According to the implementation of cctrlapp see app.py https : github.com cloudControl cctrl blob master cctrl app.py and cclib.py https : github.com cloudControl pycclib blob master pycclib cclib.py I would infer the following JSON data is required : .. . .. . Now I m stuck . In this case the request returns : .. . .. . If I use a slightly modified object .. . .. . I receive this message : .. . .. . Does anyone know how to apply such a key-value pair using only the API Comment : Did you try to url-encode the options Something like https : api.cloudcontrol.com app APP NAME deployment DEPLOYMENT NAME addon options key : value Also note that if the add-on is already added you need to send a PUT requests and encode your vars as settings . .. . Answer : From looking at https : github.com cloudControl pycclib blob master pycclib cclib.py L422 I think you do need to use options and the value of options should be a json encoded dictionary https : github.com cloudControl cctrl blob master cctrl addonoptionhelpers.py L82 . The remaining parts are not json encoded however but are just normal POST parameters https : github.com cloudControl pycclib blob master pycclib cclib.py L931 . A working request for reference equivalent to config.add x 1 :", "Question : When I run the following command on windows-8.1 machine : .. . .. . I get an error : .. . .. . How can I alternatively get access to CloudControl bash in Windows .. . Answer : To use the run-command you have to provide a public-key and the SSH client on your local machine needs to be able to find and access the private-key . First check if you have a public-key in your cloudControl account using : .. . .. . Then check if this key matches the local id rsa.pub file : .. . .. . If you have uploaded the correct key and it s available on the local system the SSH client might not be able to find it . On Windows we recommend running cctrlapp inside Git bash and not directly in the Windows command-prompt . This usually makes sure it just works tm . Comment : great thanks running via git bash worked", "Question : my problem is as you seen in the title that i cant open my webpage . I did it all with github and uploaded it to my repository . https : github.com Felixthm Test .. . .. . after i uploaded it i went to cloudcontrol cloudcontrol.com can just add 2 Links because im new to the quickstart and followed the instructions . After the instruction i opened http : felixtestet.cloudcontrolled.com and got the 403 error . The rest of my internet is working so i dont know what im doing wrong : .. . .. . Thx in advance .. . .. . Greetings .. . .. . Fussel .. . Answer : You don t have an index.html or index.php so accessing does not work . http : felixtestet.cloudcontrolled.com unbenannt.html works . Check out https : github.com cloudControl buildpack-php blob master README.md for the different ways to configure Apache and PHP . Comment : I found my mistake . First i forgot at my test the index like you said . At my second Project i just had to change Index.html in index.html lowercase.. . Thx for you help :", "Question : I host my php project on cloudcontrol.com in my project I have a static folder where I save user-profile pictures in like so : .. . .. . I .gitignore all files inside profile folder with .gitignore file : .. . .. . in my local environment when I make some testing I upload some pics inside that folder . In my production environment Users also change their profile pictures and save them in that folder . My problem is : .. . .. . Whenever I push any updates to the production server I lost all files inside profile directory on the server It seems like git or cloudcontrol REPLACE the profile directory not just update its contents without touching the old files pictures . Any advice how can I fix this . I thought it was just an .gitignore problem and i did everything to make this work but I couldn t . I m kind of a new to Git and PaaS stuff . Thank you .. . Answer : cloudControl like most cloud application hosters replace the full application folder when it s being deployed . This is usually done to allow horizontal-scaling and to ensure that every deployment is based on the same empty state . See also the documentation on the non-persistent filesystem https : www.cloudcontrol.com dev-center Platform 20Documentation non-persistent-filesystem : .. . .. . Non-Persistent Filesystem .. . .. . TL DR : .. . .. . Each container has its own filesystem . The filesystem is not persistent . Don t store uploads on the filesystem . .. . Deployments on the cloudControl platform have access to a writable filesystem . This filesystem however is not persistent . Data written may or may not be accessible again in future requests depending on how the routing tier https : www.cloudcontrol.com dev-center Platform 20Documentation routing-tier routes requests across available containers and is deleted after each deploy . This does include deploys you trigger manually but also re-deploys done by the platform itself during normal operation . .. . For customer uploads e.g . user-profile pictures we recommend object stores like Amazon S3 or the GridFS feature available as part of the MongoLab Add-on https : www.cloudcontrol.com add-ons mongolab . So if you want to store files dynamically you will have to look into a separate solution for that . Comment : That make sense now Thank you very much poke", "Question : On GitHub sadly a private repo is for premium users and i uploaded a repo but it has lot of login third party and i want to make those login information private and i have a MongoHQ connection and want to make the database private to deploy it on CloudControl . How CloudControl and Heroku work is that by taking the file AFTER the clone on disk or the clone is only temporary file and they take the one hosted on Github .. . Answer : There is no need to have any credentials in the repository . It s actually highly discouraged to do so . The recommended way is to have your code read the credentials from the environment . Refer to the Add-on credential section in the documentation for more details : https : www.cloudcontrol.com dev-center Platform 20Documentation add-on-credentials Comment : this only works if the database are hosted are cloudcontrol i use mongoHQ which is independent from their service and there are other credential like gmail account for sending mails . Comment : this works with all credentials since you can add the custom config addon : cloudcontrol.com dev-center Add-on 20Documentation Deployment https : www.cloudcontrol.com dev-center Add-on 20Documentation Deployment Custom 20Config Comment : i dont get the variable key-value concept will i put in the code variables and put them as keys in the commandline for example uri mongodb : A : B@kahana.mongohq.com : 10067 essog and the two keys are A and B Comment : Simply put the whole connection-string as the value . E.g . cctrlapp APP NAME DEP NAME config.add MONGOHQ URI mongodb : .. . . Then read it from the environment like any of the Add-on credentials .", "Question : I m trying to deploy my Spring Boot based application to a CloudControl container . I ve added the mysql.free add-on and configured it through my application.properties : .. . .. . On my local development system everything works perfectly fine but on the CloudControl container the app won t start . I added the StackTrace here https : gist.github.com mhmpl 82982452e86bb599e296 . I m trying to solve the problem for days but I am not able to solve it by my own . Comment : Are you sure that the environmental variables like MYSQLS HOSTNAME are set in the production environment Comment : Yes definitely I just tried it again and it is set.. . Comment : I propose you use the DEBUG log level to help you out with what s going on Comment : Can you add more details like how spring configuration file is setup how properties file is referenced where application.properties is exactly located etc . It will help to point exact error . Comment : My application.properties file looks exactly like above . It is placed in resources config . I don t think that the problem is based in my config file because when I output for example the value of spring.datasource.url the connection-string is correct . .. . Answer : Spring apps are very memory consuming and the mysqls.free addon allows only a limited number of parallel connections . Although your Stacktrace doesn t show any of these problems . It s hard to solve this issue without more context like logs or environment settings . The following commands may help : .. . .. . I ve uploaded some spring-boot example code at https : github.com cloudControl spring-boot-example-app which I ve tested on cloudControl today . Please take a look at the configuration there . If you want to deploy it make sure your container has memory size 768mb . If you still have issues please contact cloudControl support to help you . Comment : Pretty cool Thank you very much : -", "Question : PaaS providers like Heroku CloudControl or Exoscale offer deployment using git . They automatically download dependencies for nodeJS or PHP Composer applications after pushing the source code . Why Why would i not fetch my dependencies locally and upload them to the PaaS provider e.g . including them in the git repository What is the benefit of downloading dependencies executing node install oder composer install after executing a git-push Comment : I would say this is one or maybe few steps less for the developer to take : This is what PaaS offers - platform together with dependency-management and you just focus on application development . .. . Answer : Dependency files should generally not be commited into version-control because it usually does not make sense to keep version history about them because they are potentially OS- or hardware specific and they increase the repository size significantly making many operations slower . Downloading and building the dependencies in the build-process ensures they are compatible with the production runtime but this is less important for some programming-languages than others ofcourse . Notwithstanding this there can be cases were it does make sense to include dependencies in git . For example when the app is tightly coupled to them or even modifying them . Comment : Thanks for your answer Platform-dependent dependencies might be the main reason to build the application at the PaaS Providers site .", "Question : I ask this question because Heroku or CloudControl are not really explicit on how a free application can consume their ressources The application will use event-driven based server Node http : nodejs.org or Tornado http : www.tornadoweb.org en stable and event-driven is monothreaded so here is my questions : .. . .. . 1 . How many users in a day can a free application handle since event-driven are not heavy for the CPU nor for Memory 2 . In Tornado I dont know about Node you can use ThreadPoolExecutor that can use another thread in case of time consuming operations will the free offer allow me to use this option Or i will be limited for one thread only .. . Answer : cloudControl works with containers LXC the application is started within such a container and the resources CPU Memory Network are restricted to the configured scaling options . Memory is a hard limit for CPU and Network you get a guaranteed share if more is available you get more . Inside the container you can start and use what you want and need . If you can handle the requests with this limited resources and don t need fault tolerance you can stick with the free tier . Comment : but how is the physical limit of that in term of number of visitor operation by day Comment : This is a tricky question as always it depends . It depends heavily on your application . In most of the web-applications CPU it not necessary the limiting factor and Memory is just a limit which you need to know . In most of the cases the application is using some additional services like databases APIs caching services which influence the response time . Our rule of thumb is that one container is similar to one CPU core . Comment : which means i cant call multi processing Comment : Yes No it depends . It is possible that you can get shares of multiple CPUs . I would suggest : try it out one container is free . But before you dig to deep into getting the last bit out of one container the Idea of PaaS is horizontal-scaling . If you need more power just add a couple of container . So If you want to use PaaS you should start from the beginning think about if your implementation also would work with multiple containers ." ] }
[ "yes-answer-long", "yes-answer-short" ]
api
UNK_RELATION
haskell-diagrams@haskell@129
haskell-diagrams -- diagrams is a powerful flexible declarative domain-specific language for creating vector-graphics using the @placeholder programming language .
{ "confidence": [ 45.57804870605469, 41.894805908203125, 41.894805908203125, 41.579715728759766, 40.95261764526367, 39.748008728027344, 39.68287658691406, 39.37947082519531, 38.10248565673828, 37.28604507446289, 37.28604507446289, 36.305118560791016, 36.305118560791016, 36.26698303222656, 36.26698303222656, 35.19491195678711, 35.19491195678711, 35.00433349609375, 34.97772216796875, 34.74685287475586, 34.74685287475586, 34.60654830932617, 33.91809844970703, 33.63665008544922, 33.63665008544922, 33.05168151855469, 32.65544891357422, 32.65544891357422, 30.874042510986328, 30.702795028686523, 30.702795028686523, 30.702795028686523, 29.14453125, 29.14453125, 28.879802703857422, 28.734962463378906, 27.74176788330078, 27.351703643798828, 26.486875534057617, 26.118009567260742, 24.972652435302734, 24.01228141784668, 23.514251708984375, 23.400938034057617, 20.93948745727539, 20.745140075683594, 20.228431701660156, 19.792226791381836, 19.1826171875, 18.670875549316406, 18.599525451660156, 18.396255493164062, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.773113250732422, 17.209110260009766, 17.209110260009766, 17.209110260009766, 16.32128143310547 ], "content": [ "He s using the diagrams package .", "What haskell compiler what version what version of diagrams what OS", "I have found some problems with connectPerim function in Haskell Diagrams .", "Im trying to make Using Haskell Diagrams my own function which places two diagrams horizontally vertically adjacent to one another like or but with a space between them .", "I m trying to use diagrams-cairo https : hackage.haskell.org package diagrams-cairo to compare two diagrams pixel by pixel .", "I am working with the diagrams package for haskell and I am using the SVG backend .", "And put two parallel lines to the invisible shaft so the arrow using sep http : projects.haskell.org diagrams haddock Diagrams-Combinators.html v 3asep .", "Is this possible with the diagrams package", "I think this is what diagrams is using on the SVG backend .", "The renderToList http : projects.haskell.org diagrams haddock Diagrams-Backend-Cairo-List.html function has the type : .. . .. . Returning a list of lists of AlphaColour a .", "The easiest way would be to frame http : projects.haskell.org diagrams haddock Diagrams-Combinators.html v : frame the diagram before finding the boundingRect .", "Also it might be useful to say what version of diagrams this is .", "Seems to be indeed a bug in the SVG Diagrams backend .", "I m gonna assume you re talking about the diagrams package here .", "Since isn t a diagram but rather a function that forms diagrams this isn t going to fly .", "Reading the documentation http : hackage.haskell.org package diagrams-lib-1.2.0.8 docs Diagrams-Segment.html for Segment : .. . .. . Segments are translationally invariant that is they have no particular location and are unaffected by translations .", "Diagrams.TwoD.Offset http : projects.haskell.org diagrams haddock Diagrams-TwoD-Offset.html can almost do this but I don t think it works for all cases .", "Rectangles extend in two dimensions meaning that if you use this to horizontally align diagrams shorter than your spacer or vertically align diagrams narrower than your spacer the resulting composite will have an incorrect envelope .", "Have a look at projects.haskell.org diagrams doc quickstart.html http : projects.haskell.org diagrams doc quickstart.html Also : why do you want to use diagrams which has no global coordinate system for this task", "I am trying this diagrams example : .. . .. . And here is the result : .. . .. .", "@mb21 : diagrams does have a global coordinate system .", "Note that both don t accept tuples as arguments but points http : hackage.haskell.org package diagrams-lib-1.3.1.0 docs Diagrams-TwoD-Types.html t : P2 but it s easy enough to convert to these http : hackage.haskell.org package diagrams-lib-1.3.1.0 docs Diagrams-TwoD-Types.html v : p2 .", "The diagrams version is 1.3 and the program generates the following SVG file :", "You can use moveTo http : hackage.haskell.org package diagrams-lib docs Diagrams-Transform.html v : moveTo to well move some object to an absolute-specified position .", "And to draw edges between absolutely-defined vertices you can use fromVertices http : hackage.haskell.org package diagrams-lib docs Diagrams-TrailLike.html v : fromVertices .", "Your syntax isn t quite right : emptyBlock is attempting to put the two diagrams emptyBlock and above each other .", "Is there an equivalent to the boundingRect http : projects.haskell.org diagrams haddock Diagrams-TwoD-Combinators.html v : boundingRect function which includes the diagram s lines width so that each line however thick it is is entirely contained within the bounding rectangle", "The quickstart for the diagrams package http : projects.haskell.org diagrams doc quickstart.html tells me to compile and run the following program : .. . .. . It them claims : .. . .. . If you now view circle.svg in your favorite web browser you should see", "You can get part of the way there using the diagrams-canvas backend but that only displays on a local host and cannot be embedded into a web page .", "This cannot be done currently in diagrams although it is something we would like to have in the future .", "Here is the SVG output : .. . .. . How can I tell diagrams to take the width of the line into account when defining the envelope of the diagram", "And frame does add a margin so even this won t happen at least in recent versions I tried it with diagrams-1.3.0.1 .", "@mb21 I chose diagrams because it looks pretty much like batteries included but I am not fixated on this solution .", "how cool is the plotWindow function - diagrams is always full of surprises : +1 for that also for the answer", "You claim that and work for any juxtaposable diagrams but its implementation includes a white rectangle which means it has to be something that can be styled has trails and can be transformed .", "Diagrams chooses to use strong types with Segment Trail Located and Path only allow values that precisely match what is expressed in output the meaning .", "I have a list of points with absolute x and y coordinates : .. . .. . And a list of edges as tuple of points : .. . .. . I now want to draw this using the diagrams package using circles for the nodes and lines for the edges .", "Give it a type signature or turn off the monomorphism-restriction by enabling the NoMonomorphismRestriction language extension .", "Implementing these four changes results in the following complete file : .. . .. . However this still leaves a few things to be desired : .. . .. . If you use this to separate diagrams that are over top something that isn t white the spacer will still be drawn potentially eclipsing some part of the underlying diagram .", "As the error your code gives says you need to enable either the GADTs or TypeFamilies language extension to use type equality constraints the ones that mention .", "Still it s perfectly possible to draw diagrams with absolute coordinates though of course the real power of the library are the tools which allow you to get along without needing to specify such coordinates .", "You can also map scaleY -1 and lw 0.5 as they are common to every diagrams in the list like that : .. . .. . The illustrateB zier functions are redundants you can create az2 az3 az5 az6 az8 and az9 in the form : .. . .. . When the diagram will be a kind of loop and fillable you can use fc blue on example3 like this example3 fc blue or into like this example3 fc blue .", "I am a super beginner with no coding experience learning Haskell...so here goes and this question probably doesn t make that much sense but I ll try.. .", "I m running in a sandbox on Haskell Platform 7.10.2 Windows 8 .. . .. . P.S .", "Note that bezier3 doesn t always start at the origin it s just that it is a Segment and as such has no location it s a bit like a vector in that .", "You can fix both of these things using strutX and strutY instead of emptyBlock .", "The problem isn t that your code is bad the main issue is that you have to explain a little more using words .", "Please could you be more specific on how you solved the problem in Firefox by scaling it up", "Since typevariables appearing in type declarations in Haskell mean that the function must have the requierd type for all types you decide to use for the type variable you can choose which concret type the type variable should have as long as all of the constraints here Ord a and Floating a are satisfied .", "Only it s properly treated as an affine space instead of a vector space and it s not that global any nesting of objects can override it by applying transformations .", "I know that it can target multiple backends and that that class attribute likely has no meaningful counterpart in most of them but I was wondering if there is nevertheless a way to sneak in backend-specific information .", "I think I m only using operations available to Ord and Floating instances .", "How can I resize a shape so that it will enclose some other shape", "I thought a BoundingBox would be easiest to start with but I ran into problem below .", "What kind of t do I need here", "I m trying to fill in a diagram with color .", "The diagram consists of points forming a line and a few bezier curves in between those lines .", "I have the outline of the diagram but can t get a fill in color because they are points .", "I can fill in the color when it s just points forming a line with strokeLoop but I can t get it to go from the first point with points forming a line with intermediate bezier curves to fill in color in the right place .", "Here is my code and I know it s probably really bad and everything but I m just trying this out .", "Can you explain your problem and what you are trying to do in words instead of dumping a bunch of code", "What kind of data structure are you drawing in", "A 2D array", "List", "How are your bezier curves defined", "How do you draw to your canvas ie how does strokeLoop even work", "That is where some of the functionality is coming from .", "Actually as the az1..az10 are just curves you can t fill them so you can delete the fc blue in the function example3 they do nothing .", "mconcat .. .", "I m working now on my library for Bachelor thesis and I need Your help for making new line type .", "Bellow there is code for single line double head arrow : - .", "I would like to ask if there is ability to make from line line trailFromOffsets unitX to doubleline which looks like this : and arrow with it looks like this", "If there is ability to make it I would be very thankful for an example", "Thank You in advance", "Would be nice if you actually mentioned that in the question because it s not exactly obvious .", "Thank You for advice", "Question is corrected", "I think you need to create some kind of fake arrow .", "Taking a double headed arrow with an invisble shaft with opacity of 0 .", "Edit : More correct the lines function should do the trick :", "If I try to do like this I get error : Illegal equational constraint V a R2 .. . .. . I would be very thankful if anyone could help me to fix this problem .", "Doesn t the error message also say Use -XGADTs or -XTypeFamilies to permit this", "By the way good questions usually include a few more details .", "In case of a compiler error it s polite to include : a complete file that I can copy-and-paste into a text-editor to reproduce the error the complete exact error you got and a description of what you are trying to do which you included here .", "In general the formula is to fill in the following template with as many details as you can : I tried X expecting Y to happen but Z happened instead .", "with the understanding that compiler errors are generally the I expected no errors but got this one instead part .", "There are several problems .", "1 .", "2 .", "You should write .. . .. . x y x emptyBlock y .. . .. . .. . instead .", "3 .", "Change the type signature lines as follows : .. . .. . : : Juxtaposable a V a R2 Semigroup a TrailLike a HasStyle a Transformable a a - a - a .. . .. . .. . Or possibly omit it entirely if you plan to disable the monomorphism-restriction .", "4 .", "You haven t given emptyBlock a type signature and it is typeclass polymorphic so the monomorphism-restriction kicks in .", "This will also be more general : you won t need to include the odd-seeming stylable transformable constraints .", "An example of this approach would be :", "Since you re using the local units you just need to frame half the local width used in the diagram add half of the line width used for the bounding rectangle if that has a line too .", "bounding rectangles http : i.stack.imgur.com 4ukiV.png .. . .. . A more general solution would be to draw the offset curves of each path using the local line width in the Diagram and find the bounding-box of that .", "You can create an alternative version of connectPerim which accepts two angles as a single tuple : .. . .. . An equivalent and more elegant definition using uncurry http : hackage.haskell.org package base-4.7.0.0 docs Prelude.html v 3auncurry : .. . .. . Usage :", "You can solve your problem by using the frame function which adds a border to the envelope ." ] }
{ "confidence": [ 52.93619918823242, 44.973201751708984, 43.940040588378906, 43.81053924560547, 42.80537414550781, 40.754974365234375, 39.770957946777344, 39.724098205566406, 39.26095962524414, 35.74068832397461, 35.08679962158203, 35.06879425048828, 33.87982177734375, 31.624555587768555, 29.483619689941406, 18.24966812133789 ], "content": [ "Question : Im trying to make Using Haskell Diagrams my own function which places two diagrams horizontally vertically adjacent to one another like or but with a space between them . If I try to do like this I get error : Illegal equational constraint V a R2 .. . .. . I would be very thankful if anyone could help me to fix this problem . Comment : Doesn t the error message also say Use -XGADTs or -XTypeFamilies to permit this Comment : By the way good questions usually include a few more details . In case of a compiler error it s polite to include : a complete file that I can copy-and-paste into a text-editor to reproduce the error the complete exact error you got and a description of what you are trying to do which you included here . In general the formula is to fill in the following template with as many details as you can : I tried X expecting Y to happen but Z happened instead . with the understanding that compiler errors are generally the I expected no errors but got this one instead part . .. . Answer : There are several problems . 1 . As the error your code gives says you need to enable either the GADTs or TypeFamilies language extension to use type equality constraints the ones that mention . 2 . Your syntax isn t quite right : emptyBlock is attempting to put the two diagrams emptyBlock and above each other . Since isn t a diagram but rather a function that forms diagrams this isn t going to fly . You should write .. . .. . x y x emptyBlock y .. . .. . .. . instead . 3 . You claim that and work for any juxtaposable diagrams but its implementation includes a white rectangle which means it has to be something that can be styled has trails and can be transformed . Change the type signature lines as follows : .. . .. . : : Juxtaposable a V a R2 Semigroup a TrailLike a HasStyle a Transformable a a - a - a .. . .. . .. . Or possibly omit it entirely if you plan to disable the monomorphism-restriction . 4 . You haven t given emptyBlock a type signature and it is typeclass polymorphic so the monomorphism-restriction kicks in . Give it a type signature or turn off the monomorphism-restriction by enabling the NoMonomorphismRestriction language extension . Implementing these four changes results in the following complete file : .. . .. . However this still leaves a few things to be desired : .. . .. . If you use this to separate diagrams that are over top something that isn t white the spacer will still be drawn potentially eclipsing some part of the underlying diagram . Rectangles extend in two dimensions meaning that if you use this to horizontally align diagrams shorter than your spacer or vertically align diagrams narrower than your spacer the resulting composite will have an incorrect envelope . You can fix both of these things using strutX and strutY instead of emptyBlock . This will also be more general : you won t need to include the odd-seeming stylable transformable constraints . An example of this approach would be :", "Question : null .. . Answer : I have written the following program : .. . .. . But the program produces a white circle with black outline - no colour or dashing . Any one know what might be wrong I m running in a sandbox on Haskell Platform 7.10.2 Windows 8 .. . .. . P.S . The diagrams version is 1.3 and the program generates the following SVG file : Comment : Can t reproduce both the dashing and fill work for me . What SVG viewer do you use They re hardly consistent unfortunately perhaps try outputting pdf instead . Also it might be useful to say what version of diagrams this is . Comment : Interesting in firefox I don t see anything at all Inkscape has no problems though and you can also examine the svg file itself it s an XML text format after all and see the circle and dashing is there . Comment : Please could you be more specific on how you solved the problem in Firefox by scaling it up Comment : You can modify SVG while viewing it in Firefox by pressing ctrl+shift+c . But for the SVG you ve posted I indeed get the same problem you reported so it s no use . Seems to be indeed a bug in the SVG Diagrams backend . Comment : I can t reproduce your issue . I get different SVG output that looks correct : lpaste.net 144030 http : lpaste.net 144030", "Question : I am working with the diagrams package for haskell and I am using the SVG backend . I embed the SVG markup directly into an HTML document so that the graph as a part of a web page . I have built a pretty cool looking bar graph and I would like to add some basic interactivity to it . For example when you hover over a bar I d like to make the color lighter . Or maybe something would pop-up as well . The way that I would like to accomplish this is by setting the class attributes of some of the SVG nodes . Is this possible with the diagrams package I know that it can target multiple backends and that that class attribute likely has no meaningful counterpart in most of them but I was wondering if there is nevertheless a way to sneak in backend-specific information . Thanks for any insights that anyone can provide . .. . Answer : This cannot be done currently in diagrams although it is something we would like to have in the future . You can get part of the way there using the diagrams-canvas backend but that only displays on a local host and cannot be embedded into a web page . The only thing I can suggest is to pretty print the svg with the -p command-line option and edit the svg by hand . Comment : Very unfortunate and that is what I feared . Editing the document by hand is not really an option in my case because the contents of the bar graph are dynamic they come from the database so they could change every time the page is served .", "Question : I have a list of points with absolute x and y coordinates : .. . .. . And a list of edges as tuple of points : .. . .. . I now want to draw this using the diagrams package using circles for the nodes and lines for the edges . I have found the type Located which should provide this functionality . On the other hand there is the atPoints function however they don t seem to achieve the same thing atPoints only moves the local origin . What would be the idomatic way to achieve this How do I use the Located type Comment : What have you tried so far Have a look at projects.haskell.org diagrams doc quickstart.html http : projects.haskell.org diagrams doc quickstart.html Also : why do you want to use diagrams which has no global coordinate system for this task Might be easier to generate an SVG directly.. . Comment : @mb21 : diagrams does have a global coordinate system . Only it s properly treated as an affine space instead of a vector space and it s not that global any nesting of objects can override it by applying transformations . Still it s perfectly possible to draw diagrams with absolute coordinates though of course the real power of the library are the tools which allow you to get along without needing to specify such coordinates . Comment : @mb21 I chose diagrams because it looks pretty much like batteries included but I am not fixated on this solution . I guess for writing SVGs directly I would use the blaze-svg package I think this is what diagrams is using on the SVG backend . .. . Answer : You can use moveTo http : hackage.haskell.org package diagrams-lib docs Diagrams-Transform.html v : moveTo to well move some object to an absolute-specified position . And to draw edges between absolutely-defined vertices you can use fromVertices http : hackage.haskell.org package diagrams-lib docs Diagrams-TrailLike.html v : fromVertices . Note that both don t accept tuples as arguments but points http : hackage.haskell.org package diagrams-lib-1.3.1.0 docs Diagrams-TwoD-Types.html t : P2 but it s easy enough to convert to these http : hackage.haskell.org package diagrams-lib-1.3.1.0 docs Diagrams-TwoD-Types.html v : p2 . Auto-coloured view with dynamic axes http : i.stack.imgur.com q864g.png .. . .. . To combine these elements to a single diagram you can just use the monoid instance i.e . mconcat the list . Flat combined view http : i.stack.imgur.com 5zNZX.png Comment : how cool is the plotWindow function - diagrams is always full of surprises : +1 for that also for the answer Comment : Thank you very much for your answer I did not know the moveTo function . The list-comprehension is a really cool way to do handle multiple objects .", "Question : I m having some trouble understanding how to understand and use type-variables that only appear in the return-type of a function . I m trying to use diagrams-cairo https : hackage.haskell.org package diagrams-cairo to compare two diagrams pixel by pixel . The renderToList http : projects.haskell.org diagrams haddock Diagrams-Backend-Cairo-List.html function has the type : .. . .. . Returning a list of lists of AlphaColour a . Bearing in mind that a is Ord a Floating a I figured I could use mathematical and comparison operations on these AlphaColour a values : .. . .. . However I m getting the ominous compile error .. . .. . Which I understand as the compiler wanting to know the full type of the renderToList calls . But what I don t understand is : .. . .. . Why does the compiler need to know the full type I think I m only using operations available to Ord and Floating instances . If I do need to provide a type where exactly in the code would I define this type . How can I even know what the full concrete type returned from renderToList is I feel I m missing something fundamental with the way this code is written any help would be greatly appreciated . .. . Answer : To answer your last question : .. . .. . How can I even know what the full concrete type returned from renderToList is Since typevariables appearing in type declarations in Haskell mean that the function must have the requierd type for all types you decide to use for the type variable you can choose which concret type the type variable should have as long as all of the constraints here Ord a and Floating a are satisfied .", "Question : Is there an equivalent to the boundingRect http : projects.haskell.org diagrams haddock Diagrams-TwoD-Combinators.html v : boundingRect function which includes the diagram s lines width so that each line however thick it is is entirely contained within the bounding rectangle the boundingRect function ignores their thickness and parts of the lines stay outside the bounding rectangle . My question is for lines with width expressed in local units . .. . Answer : Unfortunately there s no way to do this automatically yet . The easiest way would be to frame http : projects.haskell.org diagrams haddock Diagrams-Combinators.html v : frame the diagram before finding the boundingRect . Since you re using the local units you just need to frame half the local width used in the diagram add half of the line width used for the bounding rectangle if that has a line too . Here s a simple example : .. . .. . bounding rectangles http : i.stack.imgur.com 4ukiV.png .. . .. . A more general solution would be to draw the offset curves of each path using the local line width in the Diagram and find the bounding-box of that . Diagrams.TwoD.Offset http : projects.haskell.org diagrams haddock Diagrams-TwoD-Offset.html can almost do this but I don t think it works for all cases . Comment : Unfortunately the paths I m working with are continuous but not smooth they have spikes and framing them as suggested can lead to mixed results . But I agree that it seems the best solution currently . Diagrams.TwoD.Offset offsetTrails functions would be better but I had problem with them .", "Question : I am a super beginner with no coding experience learning Haskell...so here goes and this question probably doesn t make that much sense but I ll try.. . I m trying to fill in a diagram with color . The diagram consists of points forming a line and a few bezier curves in between those lines . I have the outline of the diagram but can t get a fill in color because they are points . I can fill in the color when it s just points forming a line with strokeLoop but I can t get it to go from the first point with points forming a line with intermediate bezier curves to fill in color in the right place . Here is my code and I know it s probably really bad and everything but I m just trying this out . Comment : The problem isn t that your code is bad the main issue is that you have to explain a little more using words . Can you explain your problem and what you are trying to do in words instead of dumping a bunch of code What kind of data structure are you drawing in A 2D array List How are your bezier curves defined How do you draw to your canvas ie how does strokeLoop even work Comment : He s using the diagrams package . That is where some of the functionality is coming from . .. . Answer : Actually as the az1..az10 are just curves you can t fill them so you can delete the fc blue in the function example3 they do nothing . You can also map scaleY -1 and lw 0.5 as they are common to every diagrams in the list like that : .. . .. . The illustrateB zier functions are redundants you can create az2 az3 az5 az6 az8 and az9 in the form : .. . .. . When the diagram will be a kind of loop and fillable you can use fc blue on example3 like this example3 fc blue or into like this example3 fc blue . mconcat .. .", "Question : I m working now on my library for Bachelor thesis and I need Your help for making new line type . Bellow there is code for single line double head arrow : - . I would like to ask if there is ability to make from line line trailFromOffsets unitX to doubleline which looks like this : and arrow with it looks like this If there is ability to make it I would be very thankful for an example Thank You in advance Comment : I m gonna assume you re talking about the diagrams package here . Would be nice if you actually mentioned that in the question because it s not exactly obvious . Comment : Thank You for advice Question is corrected .. . Answer : I think you need to create some kind of fake arrow . Taking a double headed arrow with an invisble shaft with opacity of 0 . And put two parallel lines to the invisible shaft so the arrow using sep http : projects.haskell.org diagrams haddock Diagrams-Combinators.html v 3asep . Edit : More correct the lines function should do the trick :", "Question : null .. . Answer : The quickstart for the diagrams package http : projects.haskell.org diagrams doc quickstart.html tells me to compile and run the following program : .. . .. . It them claims : .. . .. . If you now view circle.svg in your favorite web browser you should see circle http : i.stack.imgur.com hm2mp.png .. . .. . However it doesn t . What I actually see is this : .. . .. . crop circle http : i.stack.imgur.com JzmMr.png .. . .. . Notice the cropped edges of the diagram . This is because the line has a width but the image is being cropped with the assumption of the line having no width . Here is the SVG output : .. . .. . How can I tell diagrams to take the width of the line into account when defining the envelope of the diagram Comment : Can t reproduce . The SVG certainly is not cropped at worst the browser crops the output it renders from it . And frame does add a margin so even this won t happen at least in recent versions I tried it with diagrams-1.3.0.1 .", "Question : I have found some problems with connectPerim function in Haskell Diagrams . This function connects perimeters of two figures in selected parts of perimeters this time figures perimeter is divided into 12 parts and the number before means which part is selected to connect . connectPerim : : Renderable Path R2 b IsName n1 IsName n2 ArrowOpts - n1 - n2 - Angle - Angle - Diagram b R2 - Diagram b R2 For example : .. . .. . I would like to put both Angle parameters 6 12 : : Turn and 0 12 : : Turn into new variable but I am able only to put those parameters into separate variables . for example .. . .. . Is it possible to combine those Angle parameters to one variable If it is could You give an example Thank You in advance Comment : Can you give an example of a unified variable Is a tuple 6 12 : : Turn 0 12 : : Turn enough .. . Answer : You can create an alternative version of connectPerim which accepts two angles as a single tuple : .. . .. . An equivalent and more elegant definition using uncurry http : hackage.haskell.org package base-4.7.0.0 docs Prelude.html v 3auncurry : .. . .. . Usage :", "Question : Here is the code from user-manual : .. . .. . Here is what I got : .. . .. . enter image description here http : i.stack.imgur.com wUQVU.png .. . .. . Here is what it looks like in the manual : .. . .. . enter image description here http : i.stack.imgur.com rfv9e.png .. . .. . They don t quite match . Comment : Works for me . What output format are you going to What haskell compiler what version what version of diagrams what OS Comment : please see my edit . .. . Answer : It looks like mac s svg renderer doesn t support spread methods . Here s screen shot from and Chrome OS X 10.9.5 Chrome version 37 with the same svg : .. . .. . gradients http : i.stack.imgur.com JNauq.png .. . .. . Tools like imagemagick don t render them at all but this is a bug in the SVG backend that should be fixed in the next version . I ve actually been working on manually implementing spread methods for another backend so we ll probably add an option in the svg backend for this too for better compatibility . The Rasterific and Cairo backend gradients should mostly work . Cairo s svg output still doesn t work with Safari but it does with imagemagick", "Question : I m having some trouble understanding how to understand and use type-variables that only appear in the return-type of a function . I m trying to use diagrams-cairo https : hackage.haskell.org package diagrams-cairo to compare two diagrams pixel by pixel . The renderToList http : projects.haskell.org diagrams haddock Diagrams-Backend-Cairo-List.html function has the type : .. . .. . Returning a list of lists of AlphaColour a . Bearing in mind that a is Ord a Floating a I figured I could use mathematical and comparison operations on these AlphaColour a values : .. . .. . However I m getting the ominous compile error .. . .. . Which I understand as the compiler wanting to know the full type of the renderToList calls . But what I don t understand is : .. . .. . Why does the compiler need to know the full type I think I m only using operations available to Ord and Floating instances . If I do need to provide a type where exactly in the code would I define this type . How can I even know what the full concrete type returned from renderToList is I feel I m missing something fundamental with the way this code is written any help would be greatly appreciated . .. . Answer : Type variables that only appear in a return-type are generally fine because the Hindley-Milner algorithm that s at the core of Haskell s type-inference is two-way : both the way an value is generated and the way that it is used go into determining what concrete type it should have . Often the right value for a type variable in the return-type will be determined by context for example if you have .. . .. . and then you write .. . .. . then despite read having type Read a String - a there ll be no problem because it ll be clear to the compiler that the return-type of read needs to be Int in this context . However here your type variable is fundamentally ambiguous : you are generating it with renderToList doing something more to it with imgDiff and then finally consuming it with which has type a - a - Bool - the way the result-of is used can t help determine what a should be . So there s no context anywhere for the compiler to work out what type should actually be used . Even though only operations from Floating and Ord are needed those operations have concrete implementations on each type and the values of each type also have their own concrete representations . So the compiler really has to choose one type . You can fix this quite simply by just adding a type signature . In this case adding one to the line that sets up baseAlphaColours should do it because all the other uses are constrained by the signatures of the other functions : .. . .. . For example to choose Float you could change the relevant line to : .. . .. . In this case the requirements are actually slightly more complicated than just Floating and Ord . So Float may not work as it doesn t normally have a Monoid instance . If you get an error about no instance for Monoid Float you may need to use a different type . If you expect the images to be composed by point-wise addition of individual pixels then the right type to use would be something like Sum Float where Sum is obtained from Data.Monoid . So something like : Comment : Fantastic thank you for such a thorough explanation and this works for me . What I m still a little confused about is why I get to choose Float - I would have thought it would have been decided as the type returned from renderToList - ie I can choose Double instead and everything still compiles runs . Comment : The type of renderToList is a promise that it can generate any a that satisfies the constraints in the type signature .", "Question : I am trying to make a bezier function that takes 4 args : .. . .. . But the result seems not to be what I wanted : .. . .. . enter image description here http : i.stack.imgur.com Vizae.png Comment : But a bezier4 curve isn t a translated bezier3 curve as far as I know.. . Comment : oh so that s not a good name . the bezier3 function always starts with the origin i just meant to make a function that can start from an arbitrary point . Comment : It is a good name : as you can see on the wiki page http : en.wikipedia.org wiki B C3 A9zier curve you can define a Bezier curve for an arbitrary number of points . Comment : The 3 in bezier3 is not the number of argument but the degree of the curve its a cubic so the 4 in your function should indicate your bezier-curve is of the fourth degree need 5 points or 4 vectors . Note that bezier3 doesn t always start at the origin it s just that it is a Segment and as such has no location it s a bit like a vector in that . Segments are useful in a list to create complex curves you then localize with at their start point . You can then use fromLocSegments to get a Diagram . .. . Answer : First lets address the name . Typically bezier4 would be the name for a function giving a quartic bezier-curve segment . A better name would be fixedBezier3 and a better form would be to take Points rather then vectors for the arguments . Indeed this function exists as FCubic from the FixedSegment data type . If we look at the type of bezier4 we can see where things go wrong : .. . .. . The important part is that the result is a Segment Closed v . Reading the documentation http : hackage.haskell.org package diagrams-lib-1.2.0.8 docs Diagrams-Segment.html for Segment : .. . .. . Segments are translationally invariant that is they have no particular location and are unaffected by translations . They are however affected by other transformations such as rotations and scales . The translation at the end of bezier4 will not have any effect as the type Segment cannot express values that have a location it just expresses the shape and displacement . We can see this in GHCi : .. . .. . One fix would be to make the type of bezier4 result in a Located Segment Closed v . With this type we can at least express the curve wanted : .. . .. . Notice we get the same segment as before but now we have a location . We are a bit stuck at this point though . Located segments are not particularly interesting as typically we want to string together many segments as a Trail . A located list of segments gets us there and we can use fromLocSegments : .. . .. . Now we have something that will work with an additional change at the use site of bezier4 : .. . .. . Note that we cannot string together the output of this function with other segments to make longer trails . Diagrams chooses to use strong types with Segment Trail Located and Path only allow values that precisely match what is expressed in output the meaning . For instance say we want to write fromFixedSegments : .. . .. . Each cubic segment would have four points but the result is going to be a trail having the meaning of no gaps . To do this we will have to throw away the information of the first or last points of adjacent segments . There is no good choice here", "Question : I am trying this diagrams example : .. . .. . And here is the result : .. . .. . enter image description here http : i.stack.imgur.com UW7RL.png .. . .. . Everything appears as expected that some of the numbers or more precisely the center of these numbers are place near the edges of the image so in the end they look like having been cut off . Is there a way to solve this .. . Answer : The problem is text doesn t have an envelope so it s size isn t taken into account . You can solve your problem by using the frame function which adds a border to the envelope . example http : i.stack.imgur.com icgcY.png", "Question : I am trying this diagrams example : .. . .. . And here is the result : .. . .. . enter image description here http : i.stack.imgur.com UW7RL.png .. . .. . Everything appears as expected that some of the numbers or more precisely the center of these numbers are place near the edges of the image so in the end they look like having been cut off . Is there a way to solve this .. . Answer : I partly solved the problem by making a new function addMargin : .. . .. . enter image description here http : i.stack.imgur.com LeHJL.png .. . .. . Everything looks fine except that the 0 on the right side is still covered by something somehow . Comment : You got your strutX and strutY the wrong way round . When it s the right way round it behaves just like frame . Comment : aha glad to hear that . : - Comment : Now it s corrected .", "Question : null .. . Answer : How can I resize a shape so that it will enclose some other shape I thought a BoundingBox would be easiest to start with but I ran into problem below . What kind of t do I need here" ] }
[ "yes-answer-long", "yes-answer-short" ]
haskell
UNK_RELATION
selendroid@web@106
selendroid -- selendroid is a test automation framework for native or hybrid android apps and the mobile @placeholder .
{ "confidence": [ 54.31914520263672, 51.55613708496094, 51.047157287597656, 49.540802001953125, 48.37992858886719, 47.545875549316406, 46.062957763671875, 45.599239349365234, 45.259944915771484, 45.16215896606445, 44.04150390625, 44.010711669921875, 44.010711669921875, 43.149314880371094, 42.71371841430664, 42.56730651855469, 42.564544677734375, 42.50822830200195, 42.161258697509766, 41.599517822265625, 41.59717559814453, 41.268863677978516, 40.9993782043457, 40.828880310058594, 40.78121566772461, 39.68000030517578, 39.67742919921875, 39.67742919921875, 39.67742919921875, 39.67742919921875, 39.67742919921875, 39.20005798339844, 39.19021987915039, 39.13774108886719, 38.19156265258789, 38.0611457824707, 37.986289978027344, 36.98003005981445, 36.31294631958008, 36.31294631958008, 36.31294631958008, 36.31294631958008, 36.11769485473633, 35.77033996582031, 35.77033996582031, 35.68470764160156, 35.668556213378906, 34.93290328979492, 34.66811752319336, 34.66811752319336, 33.15321350097656, 32.93245315551758, 32.93245315551758, 32.93245315551758, 32.93245315551758, 32.93245315551758, 32.652591705322266, 32.561153411865234, 32.49192810058594, 31.781005859375, 31.781005859375, 31.781005859375, 31.781005859375, 31.405452728271484, 31.12505531311035, 30.58085060119629, 30.400962829589844, 30.400962829589844, 30.400962829589844, 30.400962829589844, 30.204761505126953, 30.158809661865234, 30.158809661865234, 29.95980453491211, 29.314502716064453, 29.007360458374023, 28.78788948059082, 28.428651809692383, 27.711437225341797, 27.269203186035156, 27.05222511291504, 27.05222511291504, 26.52802276611328, 26.152740478515625, 25.900775909423828, 23.67941665649414, 23.42906951904297, 22.52796745300293, 21.194149017333984, 20.896678924560547, 20.52506446838379, 20.389251708984375, 20.191497802734375, 20.011165618896484, 19.904888153076172, 19.816091537475586, 19.674198150634766, 19.579364776611328, 19.37300682067871, 19.227096557617188 ], "content": [ "Yes you can test all native web hybrid apps with selendroid grid .", "Here is an example : SELENDROID : This is working for Selendroid .", "I want to use it to run selendroid code which is used to run automation scripts for mobile apps .", "I am learning how to use selendroid to automate mobile apps in Python .", "selendroid-standalone + selendroid-client should be enough for this .", "While offline apps Selendroid test app Offline Dictionaries etc .", "android-path-set http : i.stack.imgur.com HS0ce.png .. . .. . I ve created a maven project with testng selenium-java selendroid-client selendroid-standalone in POM.xml and created a sample selendroid test case .", "I have to test call app of my android lollipop phone using selendroid .", "Just like automated Mobile web testing .. . .. . My problem is that I tried to add Selendroid - client selendroid driver jars but it doesn t compile.. . .. . .. . is this even the purpose of those Selendroid", "It has problems with the selendroid inspector .", "I am new to selendroid and writing test case for my app .", "The output of selendroid is shown below .", "selendroid-client-0.10.0.jar", "I m trying to set up selendroid in ubuntu for mobile app testing purposes .", "Now I want to setup the tests to run on Android with Selendroid .", "I am trying to run android hybrid app tests with selendroid standalone server .", "This caused an error when I want to start selendroid .", "I am working on Mac and I don t own an Android device so I m debating if Selendroid is a framework I can work with .", "The other question : Is there no Selenium Selendroid doc", "Does Selendroid allow developers to run tests in a simulator or does the developer need an Android device", "I m using the latest selendroid version selendroid-standalone-0.17.0-with-depende got it from their website : http : selendroid.io .. . .. . The test script I m running is written in python .", "I ve successfully loaded my test app on Android emulator and real device using Selendroid .", "I want to test my native android app parallelly using Selenium grid .Is there any option to do the same in Selenium grid or in selendroid .", "android.widget.Button is a class and I am unable to use it for Selendroid .", "But what is appium-selendroid-driver package", "with below exception - .. . .. . Below is the selendroid java code - .. . .. . Not familiar with testng and selendroid so please give the solution in detail .", "I am writing tests via Python + Selendroid .", "Does it possible to implement using Selendroid or Appium", "Have a look at : Selendroid Scalling http : selendroid.io scale.html .", "But I really don t understand selenium selendroid .", "I was trying to implement Selendroid in my pc .", "So I want to run some Selendroid http : selendroid.io tests .", "We have tried to use Intern framework to create test suites for Cordova hybrid app with Selendroid as runner but when we try to get the html page from cordova we face the following error .", "I m using Android studio to build a projects My Question is there any way to setup Selendroid in Android studio", "Just a quick one I want to setup test environment for mobile testing using Selenium Grid Selendroid in the android Studio environment .", "One more easy tutorial : ontestautomation.com up-and-running-with-selendroid http : www.ontestautomation.com up-and-running-with-selendroid", "This is annoying though it s Gradle vs Android nothing to do with Selenium or that invalidates Selenium Selendroid running on Android .", "When i connect my hybrid app using selendroid server Inspector tool not displaying device s screen Broken Image Empty image appear .", "I m trying to automate some actions in a browser using selendroid .", "When I try to run on Selendroid 0.13 this does not show up .", "I think you have mixed up selenium and selendroid jars .", "The exact usage is given on Selendroid Scaling http : selendroid.io scale.html .", "I just switched from HtmlUnit to Selendroid because HtmlUnit doesn t work under Android .", "Error .. . .. . D : mobile-test selendroid grid java -Dfile.encoding UTF-8 -cp selendroid-grid-plugin-0.17.0.jar : selenium-server-standalone-2.45.0.jar org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444 Error : Could not find or load main class org.openqa.grid.selenium.GridLauncher", "D : mobile-test selendroid grid java -Dfile.encoding UTF-8 -cp selendroid-grid-plugin-0.17.0.jar selenium-server-standalone-2.45.0.jar org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444 Error : Could not find or load main class org.openqa.grid.selenium.GridLauncher", "I have downloaded selendroid-client-0.10.0 selendroid-standalone-0.11.0-with-dependencies and selenium-java-2.40.0 jar files and then create a java project in eclipse and add these libraries in my new java project .", "I do as follows 1.Installed JDK 2.Installed eclipse 3.Installed SDk 4.Created Environmental Variables 5.Created a Java Application in eclipse 6.Mapped Selendroid Standalone jar Selendroid Standalone with dependencies Selendroid Client and Selenium Client.I used the command in console as follows java -jar selendroid-standalone-0.17.0-with-dependencies -apk myapk.apk And verified status using http : localhost : 4444 wd hub status.I created android application and was stuck after this What do after this", "I have tried using Selendroid to accept but none of them worked .", "enter image description here http : i.stack.imgur.com zMX1Z.png .. . .. . So how can I start the selendroid successfully without changes", "I m learning selendroid and I d like to select a option from a action bar menu .", "Selendroid told me it can t find the element of SD card permission required dialog and possible reason is Selendroid can only manipulate my App but can t dismiss a dialog created by System .", "Try to add this http : mvnrepository.com artifact io.selendroid selendroid-client 0.17.0 to your project", "xpath android.widget.Button @text 5 This x-path is not working for my application which I am trying to automate on Selendroid .", "X-Path remains the same however Selendroid vs APPIUM response to object differently .", "Where selendroid needs to change the focused on pop-up window to find the object element .", "Has a problem not sure whether or not it s my problem or I found a bug in selendroid .", "My App need to save data into SD Card and I found I can t use Selendroid automation to dismiss SD Card permission required dialog created by com.android.packageInstaller process during run-time test .", "I run .. . .. . Selendroid says : .. . .. . selendroid-standalone server has been started on port : 4444 .. . .. . Next I run this Python program : .. . .. . The output of Selendroid is : .. . .. . INFORMATION : Retrying request to - http : localhost : 8080 Dez 10 2015 8 : 42 : 38 AM org.apache.http.impl.client.DefaultHttpClient tryExecute .. . .. . INFORMATION : I O exception java.net.SocketException caught when processing request to - http : localhost : 8080 : Connection reset Dez 10 2015 8 : 42 : 38 AM org.apache.http.impl.client.DefaultHttpClient tryExecute INFORMATION : Retrying request to - http : localhost : 8080 Dez 10 2015 8 : 42 : 38 AM io.selendroid.android.impl.AbstractDevice isSelendroidRunning .. . .. . SCHWERWIEGEND : Error getting status : java.net.SocketException : Connection reset Dez 10 2015 8 : 42 : 38 AM io.selendroid.server.handler.CreateSessionHandler handle SCHWERWIEGEND : Error while creating new session : Selendroid server on the device didn t came up after 20sec : .. . .. . What service does Selendroid try to connect to here", "Everything looks good but when I start the test script the phone starts the application but selendroid server it s telling that it cannot connect .", "I am using Selendroid 0.16 and while clicking an icon it shows an intermediate page showing ERR UNKNOWN URL SCHEME .", "I have searched Stackoverflow as well as Google Selendroid forum but didn t find anything useful .", "And the String contains seleniumhq i need something like org.openqa.selenium because the import of selendroid looks like this am i wrong", "Selendroid needs internet permission to proceed .. . .. . This is what I get in Appium : .. . .. . How to solve this problem", "Use Appium instead their documents says they have NoReset flag for Android but this will take some time to porting my codes from Selendroid to Appium .", "Instrumentation support is provided by bundling a separate project Selendroid .. . .. . So the API level at which you are testing and the automation type you are using creates the difference in how appium tries to access your application .", "After reading Android UIAutomator few days and evaluate my codes so far I realize for Selendroid itself it seems not possible to manipulate any UI out of AUT Application Under Test .", "I haven t used Selendroid before but it seems to be that your emulator is not properly recognized or you given it a bad name .", "Add NoReset flag to tell Selendroid not wiping out current setting but I can t find it on selendroid.io .. . 2 .", "Also it will take longer time to switch to Appium from Selendroid or Google UIAutomator in my current project .", "When running a java selendroid code with testNG getting an error message A Java Exception has occurred .", "I used selenium for my older projects in java and i find it quite simple to use but after switching to android-studio and trying to use selendroid for the first time I am a bit lost .", "APPIUM : driver.findElement By.xpath android.view.View @content-desc Access for all Bell Media Guest users .click is functional but dose not work for selendroid", "Even if I added activity by this method setLaunchActivity .. . .. . Please check whether or not problem in my code or application or maybe it s a bug in selendroid", "selendroid will always pickup the first device coming from command adb devices so if you want to execute on both you need to put a loop and in that complete test on first device and then on second", "I tend to use chrome inspect for hybrid apps .", "i m trying to run selendroid web for practice but i m getting errors even i update selenium version 2.48.2 and set all paths correctly .", "I am new to selendroid while following the steps to start standalone server via command-prompt getting error like SEVERE : Error occurred while building server : An error occurred while resigning the app test.apk .", "This is the code : .. . .. . Whenever I run this test it opens - AndroidDriver Webview App a different app from the one I set to test which is selendroid-test-app-0.15.0 .", "I am trying to run the testcases on Android emulator using Selendroid framework.I am using the built-in android driver.I have shared my code and the exception as shown in console.Please help me to resolve the issue.Any leads as to how to catch the exception would also be appreciated.Thank you .", "These are my config setups : .. . .. . Setup for Selendroid standalone : .. . .. . Setup for Selendroid-grid : .. . .. . Setup fornode json file : .. . .. . This is the curl code to connect node to grid .. . .. . The configurations work properly because I have been able to see the node as connected to the Selenium grid on the browser .", "I am new to selendroid and I ran the below code and got caught with following error Please let me know if there s any possible solution for the same .", "and after that I started to get this exception android.content.ActivityNotFoundException : Unable to find explicit activity class com.sitename.anotherword sitename.anotherword.controllers.splash.SplashActivity have you declared this activity in your AndroidManifest.xml .. . .. . So I wondering why selendroid adds this com.sitename.anotherword to the activity", "In selenium to get website data I would use something like this : .. . .. . But in selendroid there isn t HtmlUnitDriver the closest thing i could find was ChromeDriver but when i try to use it an error appears .. . .. . Exception in thread main java.lang.IllegalStateException : The path to the driver executable must be set by the webdriver.chrome.driver system property .. . .. . So is there a way to scrap data simply using selendroid", "Following is the example for Appium : xpath android.widget.Button contains @resource-id digit5 .. . .. . See more at : http : software-testing-tutorials-automation.blogspot.ca 2015 10 ui-automator-viewer-get-android-app.html sthash.ii6U2aHA.dpuf .. . .. . I am using Selendroid what will be the equivalent format for it to use xpath", "Next i start the selenium standalone server with the apk file as the app parameter .. . .. . java -jar selendroid-standalone-0.17.0-with-dependencies.jar -aut H : PDS andriod com.instagram.android-7.9.2-APK4Fun.com.apk .. . .. . .. . 3 .", "Try to set ANDROID HOME by cmd as I also had the same problem while starting server initially but while Getting Started with Selendroid http : selendroid.io setup.html they had given a link-to set ANDROID HOME variable which sets it via cmd .", "I know that I can pre-config the permissions of my App manually but every time when I reinstall my App with Jenkins or start a new session of Selendroid to test my App all configuration is wiped out .", "How can I use selendroid and seleniumhq in same pom.xml .. . I tried in my pom.xml to define dependencies like this .. . .. . .. . But I got those errors .. . .. . But when just using seleniumhq dependency and running just on browser all is fine .", "I dont have any idea how to test it .", "Intellij automation project coded in Java .", "Code : .. . .. . .. . package com.example.androidapp .. . .. . import org.openqa.selenium.WebDriver .. . import org.openqa.selenium.remote.DesiredCapabilities .. . import org.openqa.selenium.remote.RemoteWebDriver .. . .. . public class Sel .. . .. . public void Trabalha .. . WebDriver driver new RemoteWebDriver DesiredCapabilities.android .. . driver.get http : google.com .. . .. . .. . .. . .. . .. . after this step i placed the selendroid .jar in the same directory of my project apk and i tried this command : .. . .. . -with-dependencies.jar -app AndroidApp.apk .. . .. . After this command i receive some error - .. . .. . .. . C : Users Cleiton workspace AndroidApp bin java -jar selendroid-standalone-0.15.0 .. . -with-dependencies.jar -app AndroidApp.apk .. . abr 16 2015 10 : 41 : 50 PM io.selendroid.standalone.SelendroidLauncher main .. . INFORMA ES : Selendroid .. . abr 16 2015 10 : 41 : 50 PM io.selendroid.standalone.SelendroidLauncher main .. . INFORMA ES : Configuration in use .. . abr 16 2015 10 : 41 : 50 PM io.selendroid.standalone.SelendroidLauncher main .. . INFORMA ES : io.selendroid.standalone.SelendroidConfiguration@3b07d329 .. . port 4444 .. . timeoutEmulatorStart 300000 .. . supportedApps AndroidApp.apk .. . verbose false .. . emulatorPort 5560 .. . deviceScreenshot false .. . selendroidServerPort 8080 .. . keystore null .. . keystorePassword null .. . keystoreAlias null .. . emulatorOptions null .. . keepEmulator false .. . registrationUrl null .. . proxy null .. . serverHost null .. . keepAdbAlive false .. . maxSession 5 .. . maxInstances 5 .. . noWebViewApp false .. . noClearData false .. . sessionTimeoutSeconds 1800 .. . forceReinstall false .. . logLevel ERROR .. . deviceLog true .. . serverStartTimeout 20000 .. . printHelp false .. . serverStartRetries 5 .. . folder null .. . .. . abr 16 2015 10 : 41 : 50 PM io.selendroid.standalone.SelendroidLauncher launchServe .. . r .. . INFORMA ES : Starting Selendroid standalone on port 4444 .. . abr 16 2015 10 : 41 : 50 PM io.selendroid.standalone.SelendroidLauncher launchServe .. . r .. . GRAVE : Error building server : Environment variable ANDROID HOME was not found", "Originally Before Android 6.0 my automation codes runs smoothly but everything now is blocked by permission required dialog .", "example Screen here http : i.stack.imgur.com FSbji.png .. . .. . I use followings Command to Start the Selendroid Server .. . .. . java -jar Jar file -app app file .. . .. . and also i have tried .. . .. . java -jar Jar file -deviceScreenshot -app app file .. . .. . Code i used in Java eclipse .. . .. . What should i do to get a device screen in Inspector tool", "I m testing a native Android app and need to click on a button that is off the bottom of the screen .", "Refer this below links link1 http : www.methodsandtools.com tools selendroid.php .. . .. . link2 http : stackoverflow.com questions 21227399 android-native-app-testing-using-selenium", "Are you running the same single test case multiple times or are these different test cases in a test suite", "You mean we can test native app in parallel or simultaneously using Selenium grid", "Alternatively if you re using a testing framework like JUnit or TestNG you could use the @BeforeClass annotation if you re only going to want to log in once during that entire test suite .", "I followed the setup guideline from https : github.com angular protractor blob master docs mobile-setup.md to run Android emulator and here is my protractor configuration : .. . .. . Here is my test suite : .. . .. . When I run the tests I m facing a similar issue https : github.com angular protractor issues 2617 .", "My app is indeed Hybrid but when i m trying to switch to WEBVIEW I get an error ." ] }
{ "confidence": [ 74.58128356933594, 63.515350341796875, 63.37605285644531, 62.08515930175781, 60.63780212402344, 59.45271301269531, 58.36491775512695, 56.92573547363281, 56.47610092163086, 56.16704559326172, 53.494773864746094, 53.32225036621094, 52.92673110961914, 52.801353454589844, 52.695091247558594, 52.62917709350586, 52.012351989746094, 52.012351989746094, 50.058258056640625, 49.9012451171875 ], "content": [ "Question : I want to test my native android app parallelly using Selenium grid .Is there any option to do the same in Selenium grid or in selendroid . I tried steps mentioned in selendroid.io scale.html and i encounter below mentioned error . Error .. . .. . D : mobile-test selendroid grid java -Dfile.encoding UTF-8 -cp selendroid-grid-plugin-0.17.0.jar : selenium-server-standalone-2.45.0.jar org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444 Error : Could not find or load main class org.openqa.grid.selenium.GridLauncher Comment : Yes you can test all native web hybrid apps with selendroid grid . Have a look at : Selendroid Scalling http : selendroid.io scale.html . Comment : BTW if you have already gone through procedure are you facing any issue Comment : Yes i got an error : Error : Could not find or load main class org.openqa.grid.selenium.GridLauncher Comment : D : mobile-test selendroid grid java -Dfile.encoding UTF-8 -cp selendroid-grid-plugin-0.17.0.jar selenium-server-standalone-2.45.0.jar org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444 Error : Could not find or load main class org.openqa.grid.selenium.GridLauncher Comment : You mean we can test native app in parallel or simultaneously using Selenium grid .. . Answer : Issue is with Jar file separator . If you are working on Mac Unix use path separator as colon : . If you are working on Windows then use path separator as semicolon . The exact usage is given on Selendroid Scaling http : selendroid.io scale.html . But it is very easy to miss out . You will not get any direct error for using wrong path separator but will end up getting ClassNotFoundError or similar .", "Question : What I want to do is with my android phone open a web page and programmatically press buttons and insert data . Just like automated Mobile web testing .. . .. . My problem is that I tried to add Selendroid - client selendroid driver jars but it doesn t compile.. . .. . .. . is this even the purpose of those Selendroid I cant seem to understand this issue . can anyone recommend a god explanation link or a different method to accomplish my purpose . Many thanks . .. . Answer : Refer this below links link1 http : www.methodsandtools.com tools selendroid.php .. . .. . link2 http : stackoverflow.com questions 21227399 android-native-app-testing-using-selenium", "Question : null .. . Answer : Can I use Android Studio for my java projects from eclipse . I want to use it to run selendroid code which is used to run automation scripts for mobile apps . When I launched Android studio there was an option to import eclipse workspace and I have imported my eclipse workspace but now I am unable to make it work . Even added external jars there is no error shown code is referring to external jars . The only doubt in my mind is is it workable.. .", "Question : null .. . Answer : Does Selendroid allow developers to run tests in a simulator or does the developer need an Android device I am working on Mac and I don t own an Android device so I m debating if Selendroid is a framework I can work with .", "Question : null .. . Answer : I ve successfully loaded my test app on Android emulator and real device using Selendroid . When i run my test case in debug mode and get into the inspector the left panel app s image works fine but loading the tree gets 500 error Internal Server Error . In addition I m unable to find elements on my app . Every element i m looking for even regular div s gets NoSuchElement in response . My app is indeed Hybrid but when i m trying to switch to WEBVIEW I get an error . When I switch to NATIVE APP the test cases keep going but still no elements are found . It s the same case whether I m using emulator or real device . My code is written in Python and looks like this : Comment : Just some questions regarding your app . Is it a IONIC app It has problems with the selendroid inspector . I tend to use chrome inspect for hybrid apps . Also try to get all the windowhandles with python . There are quite often more than 1 webview . So you have to change to a specific webview . Like WEBVIEW 0 Comment : Thanks for your response . Comment : My app is not IONIC . When I use windowhandles with python it returns only 1 window 1 spot in the returned array is empty. .", "Question : null .. . Answer : We have tried to use Intern framework to create test suites for Cordova hybrid app with Selendroid as runner but when we try to get the html page from cordova we face the following error . Suite Code : .. . .. . Error StackTrace :", "Question : null .. . Answer : I m trying to set up selendroid in ubuntu for mobile app testing purposes . First I installed JAVA from ubuntu software center . Then I installed android SDK and I ve set path in .bashrc as follows : .. . .. . I ve installed android sdk to opt folder so the path is as shown above . I ve eclipse Mars.2 installed . In eclispe - using Install new software I ve installed Android SDK related plugins and in .. . .. . Window - Preferences - Android as shown android-path-set http : i.stack.imgur.com HS0ce.png .. . .. . I ve created a maven project with testng selenium-java selendroid-client selendroid-standalone in POM.xml and created a sample selendroid test case . When executed .. . .. . SEVERE : Error building server : Environment variable ANDROID HOME was not found is shown . In terminal when I echo ANDROID HOME it is showing opt android-sdk-linux . How to fix this issue Thanks in Advance . Please let me know if more clarification is needed .", "Question : I have searched for many times among Google StackOverflow to seek an answer . Originally Before Android 6.0 my automation codes runs smoothly but everything now is blocked by permission required dialog . My App need to save data into SD Card and I found I can t use Selendroid automation to dismiss SD Card permission required dialog created by com.android.packageInstaller process during run-time test . I know that I can pre-config the permissions of my App manually but every time when I reinstall my App with Jenkins or start a new session of Selendroid to test my App all configuration is wiped out . From my current understanding here are possible ways to resolve this problem : .. . 1 . Add NoReset flag to tell Selendroid not wiping out current setting but I can t find it on selendroid.io .. . 2 . Use Appium instead their documents says they have NoReset flag for Android but this will take some time to porting my codes from Selendroid to Appium . And I can only know whether it works or not after porting is finished . 3 . Any other way that provided by Google but I just can t find it . If someone that have experienced similar problems and have some information could share with me I will deeply appreciate your kindly help thanks . Comment : so now your problem is when you try to save some data to scard some dialog popup is coming and you want to handle it if you press some button on dialog box it will work For your possible ways 3 what exactly are you trying to automate Comment : All I want to do is to accept the dialog every time when it shows up . I have tried using Selendroid to accept but none of them worked . Selendroid told me it can t find the element of SD card permission required dialog and possible reason is Selendroid can only manipulate my App but can t dismiss a dialog created by System . Of course I can dismiss it manually without any problem . Comment : you can press accept button or handle dialog boxes easily using android-uiautomator . or else you can use adb shell input keyevent to navigate and press the button on dialog box . Comment : @Rilwan Thank you for your information I ll look into developer.android.com intl ja tools testing-support-library http : developer.android.com intl ja tools testing-support-library index.html UIAutomator and ADB Shell Input to see how I can overcome this problem also I ll put my approach sample codes here once I resolve it : D Comment : good try first And if you are stuck post this as another qn how to handle this dialog using adb shell commands . i will give the answer . .. . Answer : After reading Android UIAutomator few days and evaluate my codes so far I realize for Selendroid itself it seems not possible to manipulate any UI out of AUT Application Under Test . Also it will take longer time to switch to Appium from Selendroid or Google UIAutomator in my current project . The easiest and solid way is sending ADB shell input tap to tap the coordinates of X Y since I only maintain few devices type of resolution .", "Question : null .. . Answer : Just a quick one I want to setup test environment for mobile testing using Selenium Grid Selendroid in the android Studio environment . Does anyone have detail tutorial video or a presentation that can serve for easy learning Comment : Here easy steps are available : selendroid.io setup.html http : selendroid.io setup.html Comment : One more easy tutorial : ontestautomation.com up-and-running-with-selendroid http : www.ontestautomation.com up-and-running-with-selendroid Comment : Thanks . Appreciate . I think they are both very good to kickstart . Comment : Cheers : ........ .", "Question : null .. . Answer : I have to test call app of my android lollipop phone using selendroid . I dont have any idea how to test it . Please share any comment regarding it", "Question : I am using android 4.1.2 whose APK level is 16 . This is my python code : .. . .. . The python output error : It says thats- apk does not have INTERNET permissions . Selendroid needs internet permission to proceed .. . .. . This is what I get in Appium : .. . .. . How to solve this problem .. . Answer : The application under test should have following permissions in the AndroidManifest.xml file in the code outside the application tag : .. . .. . Quoting from http : appium.io introduction.html lang en under Design .. . .. . The vendor-provided frameworks we use are : .. . .. . iOS : Apple s UIAutomation Android .. . .. . 4.2+ : Google s UiAutomator Android .. . .. . 2.3+ : Google s Instrumentation . Instrumentation support is provided by bundling a separate project Selendroid .. . .. . So the API level at which you are testing and the automation type you are using creates the difference in how appium tries to access your application . Comment : Thanks @nullpointer . . Will try that and get back to you. . Comment : Why does it check for INTERNET PERMISSION .. . It works fine when I try with Android 4.4.2 ... . But I get error in Android 4.1.2 . . Comment : updated the answer Comment : Thanks a lot. . : Comment : Check this out : @nullpointer stackoverflow.com questions 35888090 http : stackoverflow.com questions 35888090 info-debug-proxying-command-to-localhost8080 I am stuck here now. . Help me out. .", "Question : null .. . Answer : When i connect my hybrid app using selendroid server Inspector tool not displaying device s screen Broken Image Empty image appear . And also nothing is appear on Java HTML source tabs . example Screen here http : i.stack.imgur.com FSbji.png .. . .. . I use followings Command to Start the Selendroid Server .. . .. . java -jar Jar file -app app file .. . .. . and also i have tried .. . .. . java -jar Jar file -deviceScreenshot -app app file .. . .. . Code i used in Java eclipse .. . .. . What should i do to get a device screen in Inspector tool", "Question : null .. . Answer : I moved the .android directory to other drive . This caused an error when I want to start selendroid . The tips is The system could not find the specified path enter image description here http : i.stack.imgur.com zMX1Z.png .. . .. . So how can I start the selendroid successfully without changes I don t want to change the .android directory any more .", "Question : null .. . Answer : I m trying to automate some actions in a browser using selendroid . I managed to get the server going . If I go to http : localhost : 4444 wd hub status here s the response .. . .. . Showing that the device is also recognized . I m using a real phone connected through USB . Everything looks good but when I start the test script the phone starts the application but selendroid server it s telling that it cannot connect . The output of selendroid is shown below . There is more but here is from where it starts . If I leave it running it s just staying in a loop keeps showing that error probably trying to reconnect . I m using the latest selendroid version selendroid-standalone-0.17.0-with-depende got it from their website : http : selendroid.io .. . .. . The test script I m running is written in python . Here it is : .. . .. . My operating-system is archbang Linux archbang 4.6.4-1-ARCH . Any suggestions are appreciated", "Question : null .. . Answer : I am trying to run a test on 2 android devices . Though being in the preliminary stage of learning mobile testing I limited my test for now to only one device just to make sure I m able to connect via Selenium Grid to the device which has been successful . Running the test make me raise this question . These are my config setups : .. . .. . Setup for Selendroid standalone : .. . .. . Setup for Selendroid-grid : .. . .. . Setup fornode json file : .. . .. . This is the curl code to connect node to grid .. . .. . The configurations work properly because I have been able to see the node as connected to the Selenium grid on the browser . I wrote this script in Eclipse to test an app . This is the code : .. . .. . Whenever I run this test it opens - AndroidDriver Webview App a different app from the one I set to test which is selendroid-test-app-0.15.0 . Because of this I try to set the context to NATIVE APP but it returns the same app it is for the reason that the test fails by not seeing the element specified . This is the error-log :", "Question : I was trying to implement Selendroid in my pc . I do as follows 1.Installed JDK 2.Installed eclipse 3.Installed SDk 4.Created Environmental Variables 5.Created a Java Application in eclipse 6.Mapped Selendroid Standalone jar Selendroid Standalone with dependencies Selendroid Client and Selenium Client.I used the command in console as follows java -jar selendroid-standalone-0.17.0-with-dependencies -apk myapk.apk And verified status using http : localhost : 4444 wd hub status.I created android application and was stuck after this What do after this .. . Answer : here is their official site link http : selendroid.io setup.html from where you can complete instruction regarding your question if you face any issue than feel free to contact Comment : import io.selendroid.client.SelendroidDriver is not working", "Question : null .. . Answer : I used selenium for my older projects in java and i find it quite simple to use but after switching to android-studio and trying to use selendroid for the first time I am a bit lost . In selenium to get website data I would use something like this : .. . .. . But in selendroid there isn t HtmlUnitDriver the closest thing i could find was ChromeDriver but when i try to use it an error appears .. . .. . Exception in thread main java.lang.IllegalStateException : The path to the driver executable must be set by the webdriver.chrome.driver system property .. . .. . So is there a way to scrap data simply using selendroid", "Question : There must be a very easy solution to my question which i am unable to figure out . UIAutomatorViewer gives information of object which can be used for Appium . Following is the example for Appium : xpath android.widget.Button contains @resource-id digit5 .. . .. . See more at : http : software-testing-tutorials-automation.blogspot.ca 2015 10 ui-automator-viewer-get-android-app.html sthash.ii6U2aHA.dpuf .. . .. . I am using Selendroid what will be the equivalent format for it to use xpath .. . Answer : X-Path remains the same however Selendroid vs APPIUM response to object differently . Appium handles the object on pop-up . Where selendroid needs to change the focused on pop-up window to find the object element .", "Question : There must be a very easy solution to my question which i am unable to figure out . UIAutomatorViewer gives information of object which can be used for Appium . Following is the example for Appium : xpath android.widget.Button contains @resource-id digit5 .. . .. . See more at : http : software-testing-tutorials-automation.blogspot.ca 2015 10 ui-automator-viewer-get-android-app.html sthash.ii6U2aHA.dpuf .. . .. . I am using Selendroid what will be the equivalent format for it to use xpath .. . Answer : A straight and simple answer to this is : .. . .. . X-Path syntax would remain the same . Comment : xpath android.widget.Button @text 5 This x-path is not working for my application which I am trying to automate on Selendroid . android.widget.Button is a class and I am unable to use it for Selendroid . I am using UIAutomatorViewer to extract this information . Comment : @SalmanArshad : could you share the block of code that you are trying . Please add it to the question itself . Comment : Here is an example : SELENDROID : This is working for Selendroid . driver.findElement By.linkText Access for all guest users .click but not working for Appium APPIUM : driver.findElement By.xpath android.view.View @content-desc Access for all Bell Media Guest users .click is functional Comment : By.linkText is another locator strategy while By.xpath is different . It complicates your question . Comment : APPIUM : driver.findElement By.xpath android.view.View @content-desc Access for all Bell Media Guest users .click is functional but dose not work for selendroid", "Question : I just switched from HtmlUnit to Selendroid because HtmlUnit doesn t work under Android . But I really don t understand selenium selendroid . So I got this code : .. . .. . And this Exception which points on the first line : .. . .. . On HtmlUnit I just did this and everthing was fine : .. . .. . So what is wrong The other question : Is there no Selenium Selendroid doc I can t find anything only this http : selendroid.io native.html . .. . Answer : Check your transitive dependencies and make sure you are including : .. . .. . which - for 2.48.0 and later - should be pulled in automatically by : .. . .. . Also check that the versions match . Finally the docs https : seleniumhq.github.io selenium docs api java org openqa selenium edge EdgeDriver.html suggest you should consider : .. . .. . At the moment you re not configuring the EdgeDriver service at all . Comment : Added : compile org.seleniumhq.selenium : selenium-java : 2.48.0 compile org.seleniumhq.selenium : selenium-edge-driver : 2.48.0 but now i get this : Error : Execution failed for task : app : transformClassesWithJarMergingForDebug . com.android.build.api.transform.TransformException : java.util.zip.ZipException : duplicate entry : org apache-commons-io ByteOrderMark.class Comment : Sounds like this is all about a conflict in your Gradle dependencies . Can you post full list of deps Also use latest Selenium 2.52 just in case . Comment : my build.gradle http : i.stack.imgur.com CR7D7.png and the External Libs http : i.stack.imgur.com w4e5g.png . I wanted to see if selenium works on android but i don t know how to delete these afterwards . Comment : Are you using Gradle 2.1 github.com stephanenicolas robospice issues 365 https : github.com stephanenicolas robospice issues 365 suggests there s an underlying issue with Gradle and commons-io so it seems you may have to exclude it . This is annoying though it s Gradle vs Android nothing to do with Selenium or that invalidates Selenium Selendroid running on Android . Comment : I m using 2.8 . Are these dependencies the right ones Because it loads for example the htmlunit lib which is not supported by android . And the String contains seleniumhq i need something like org.openqa.selenium because the import of selendroid looks like this am i wrong" ] }
[ "yes-answer-long", "yes-answer-short" ]
web
UNK_RELATION
air@ajax@261
air -- adobe integrated runtime air also known as adobe air is a cross-platform runtime environment developed by adobe systems for building applications targeting desktop mobile and television systems using adobe flash adobe flex actionscript 3.0 mxml html or @placeholder .
{ "confidence": [ 113.9876708984375, 106.31985473632812, 105.8183364868164, 100.33638763427734, 99.51436614990234, 96.80537414550781, 96.79270935058594, 96.62638854980469, 95.6646728515625, 95.36363983154297, 95.34942626953125, 94.8482437133789, 94.53653717041016, 94.33512115478516, 94.23949432373047, 93.43708038330078, 93.34622955322266, 92.86070251464844, 92.83793640136719, 92.52722930908203, 92.52722930908203, 92.3499526977539, 92.06401062011719, 91.85263061523438, 91.72481536865234, 91.72481536865234, 91.72481536865234, 91.59945678710938, 91.39340209960938, 91.04227447509766, 90.8951187133789, 90.76309967041016, 90.19989013671875, 89.47428131103516, 89.29999542236328, 89.234619140625, 88.61109924316406, 87.93486022949219, 87.5358657836914, 87.5358657836914, 87.31358337402344, 87.13439178466797, 86.60514831542969, 86.33316040039062, 85.94436645507812, 85.94436645507812, 85.94436645507812, 85.94436645507812, 85.94436645507812, 85.94436645507812, 85.23736572265625, 85.14195251464844, 85.14195251464844, 85.14195251464844, 85.12361907958984, 84.65013885498047, 84.43495178222656, 84.43495178222656, 84.43495178222656, 84.37437438964844, 84.18023681640625, 84.18023681640625, 84.18023681640625, 84.18023681640625, 84.18023681640625, 84.18023681640625, 84.18023681640625, 84.18023681640625, 83.86388397216797, 83.65188598632812, 83.61917877197266, 83.36470794677734, 83.08914184570312, 82.04413604736328, 81.81195831298828, 81.7157211303711, 81.2417221069336, 80.76597595214844, 80.54252624511719, 80.44178771972656, 80.06281280517578, 79.99954223632812, 79.99954223632812, 79.76996612548828, 79.19712829589844, 79.19712829589844, 79.19712829589844, 78.23541259765625, 78.23541259765625, 78.12994384765625, 78.047607421875, 78.047607421875, 78.047607421875, 78.047607421875, 77.90446472167969, 77.02751159667969, 77.02751159667969, 77.02751159667969, 77.02751159667969 ], "content": [ "Adobe AIR is a Runtime .", "is in t adobe air desktop", "It is also getting developed in adobe AIR .", "using adobe air 14 on flash CC", "Using Adobe AIR is a possibility .", "I m making an App using Adobe Flex Air .", "I m using Flash CS6 and Adobe Air 3.9", "Is there a way to do this with Adobe Air", "Adobe Air For Android .. . 3 .", "This is possible to do using Adobe AIR .", "The app of mine is currently built using Adobe Air and ActionScript 3.0 .", "I m using Flash Professional CS5.5 Adobe AIR 3 and ActionScript 3", "Does Adobe AIR support it", "Does Adobe AIR applications allow states and transitions like a mxml application", "Adobe AIR runs on the same technology as Flash i.e .", "Most of the users will have flash plug-in and not Adobe Air .", "I have developed adobe air application using adobe flash-builder 4.6 for Windows and Mac OS .", "Create Adobe Air Mobile Application .. . 2 .", "I have a Flash Professional CS5.5 Adobe AIR Actionscript 3 project .", "I m developing Adobe Air application .", "Adobe AIR is the right way to go .", "Here is a book about developing android application with Adobe Air : Adobe Air http : rads.stackoverflow.com amzn click 1449394825", "Apps are created from Adobe Animate CC 2015 and published as AIR for iOS using Adobe AIR 21 .", "I m impliment the Game Center ANE provided by Adobe to my AIR game for iOS developed in Adobe Flash CC 2015 .", "This only works with Adobe AIR aplications .", "I m creating an ADOBE AIR application .", "AIR 3.4 is the latest from Adobe .", "I am developing application with Adobe Flex on AIR platform .", "So I created an Actionscript Project and made the target desktop for Adobe Air .", "Adobe currently has no plans to support Adobe AIR for Windows 8 Modern UI applications or Windows Mobile .", ".. . .. . I have a project in Adobe Flash CS5.5 Adobe AIR 3 and ActionScript 3 .", "This was a question about the possibilities of Adobe Air .", "I am using Adobe Flex Builder 3 to create the .AIR file .", "I created a login form in a flash adobe air project Desktop application .", "I am using Adobe AIR 3.4 .", "I m building a simple game with Flash CS5 and Adobe Air 2.5 .", "Adobe AIR incorporates technologies originally developed in Flash Player and enables rich Internet applications on the desktop .", "Is that the same Export Adobe AIR package button", "This is possible using the Native Extension feature of Adobe AIR .", "I am using Adobe Air to publish to iOS .", "But I m not doing my application with Java but with ActionScript and Adobe AIR 2.6 .", "I ve also read somewhere that Adobe Air allows this .", "is there anyway to control mobile LED Flashlight in Adobe Air Android .", "Adobe air runtime prevents more than one instance of an air application to be started at the same time .", "I don t this it s possible with Adobe AIR itself .", "Source : Adobe AIR docs linked above", "Ada is an Adobe Air Twitter client written in Javascript .", "Adobe AIR creates database files without extension .", "Does Adobe Air work with OpenID rpxnow", "Is this an issue or there is an work around for this to support the adobe air browser", "I am working in adobe flex 4.6 AIR application .", "The notifications ANE is used in Adobe Air as3 .", "Adobe AIR 1.5 or later Supports RTMFP", "Adobe is still going full steam with AIR .", "The Adobe AIR runtime is what allows your operating-system to interpret .air files and install run them on the system .", "As to Adobe AIR I m dev managing a project this is being devised on AIR .", "I have a Adobe Air app AS3 not Flex that has 2 windows .", "We have an Adobe AIR application which uses Flex Framework .", "However Adobe does distribute the AIR SDK with their versions of the Flex SDK .", "Adobe AIR and Flash Player provide complementary deployment methods for the RIAs .", "It work fine on Newest vesrion of Adobe Air of Androis .", "I have an Adobe AIR application for Android .", "I am making an Adobe Air application .", "I m new in Adobe Air I need urgente", "Folks .. . .. . I have designed an Adobe AIR application .", "We have Adobe Air 3.2 SDK .", "So how do we do this in Adobe Air", "Try to update your Adobe AIR SDK .", "I have an Adobe Air mobile-application that has a NetConnection .", "What isn t divulged in your post is that you are building an Adobe Air Application .", "Client required to install Adobe Air platform on their Machine .. . 2 .", "I figured that out because the idleTimeout property is only available for applications that will be using the Adobe Air Runtime .", "I have a Processing application that must talk to a desktop Adobe AIR application .", "I m developing an application html via Adobe air in dreamweaver .", "I m using Adobe CC and am trying to make an app for iOS using Adobe Air .", "In AIR it is generally recommended by developers on here and the Adobe forums as well as the occasional Adobe evangelist that you avoid using SharedObject entirely .", "I want to use a proxy on the HTML Control found in Adobe AIR .", "Adobe AIR when combined with Flex mxml application does allow states and transitions .", "I forget the version of AIR included in Adobe Flex 4.6 but I think it is AIR 3.2 .", "AIR SDK has a different schedule from Flex SDK and as of today Flex SDK is no longer developed by Adobe .", "Is it possible to export or publish an Adobe Director movie to a format that can be played in Adobe AIR", "I m considering using Adobe Air to write an application for the android marketplace .", "I am writing an Adobe AIR application using PureMVC .", "I m using the latest Adobe AIR 15 to build the swc part of the ANE .", "I am using Adobe Air to develop an iOS portrait game .", "What options are available for handling text input on Android using Adobe AIR", "I m using Adobe Air 4 to build an Android app .", "I would like to create an AR app for Android using Adobe Air .", "i am working on a window application using Adobe AIR .", "@Zenus - Adobe AIR Uses the AIR Debug Launcher ADL to run applications during development .", "I am developing a native extension for iOS and Android for Adobe AIR .", "So I was wondering if you could leverage it in a Adobe AIR app.... .", "Good afternoon I was wandering if this is possible to do with adobe air .", "I m new to Adobe AIR development and have been developing a Native Extension .", ".. . .. . more : Adobe AIR - Managing Windows http : help.adobe.com en US AIR 1.5 devappshtml WS5b3ccc516d4fbf351e63e3d118666ade46-7e08.html", "Is it possible to assign a global hotkey to a specific feature in an Adobe AIR app i.e .", "I ve hit this precise problem in the SQLite implementation in Adobe AIR .", "The release of adobe air 3.4 beta seems to have fixed this issue .", "I have an Adobe Air Application opening a Window from menu tray ." ] }
{ "confidence": [ 154.5576934814453, 129.25914001464844, 127.53704071044922, 121.91453552246094, 121.0745849609375, 119.61524963378906, 118.2519302368164, 117.46349334716797, 116.24394989013672, 116.21595001220703, 115.12842559814453, 115.01139831542969, 114.78230285644531, 113.4395751953125, 112.83513641357422, 112.27413177490234, 111.97701263427734, 110.52964782714844 ], "content": [ "Question : Adobe Flash Player is a browser plug-in that provides advantages for users and content creators in the browser including the ability to deliver RIAs in the browser . Adobe AIR incorporates technologies originally developed in Flash Player and enables rich Internet applications on the desktop . Adobe AIR and Flash Player provide complementary deployment methods for the RIAs . as in here http : www.adobe.com products air faq Here are a couple of conceptual questions : .. . .. . Since both runtimes consume .swf files what is the difference What is the end product of a compiled AIR Application-a .swf .air If AIR is just a deployment mechanism why is it called a runtime Does Adobe AIR applications allow states and transitions like a mxml application -both can be authored using Flash Builder .. . Answer : Adobe AIR runs on the same technology as Flash i.e . your AIR apps will run in the Flash player . The difference is the additional libraries available in AIR to allow you to more easily create Rich Internet Applications as opposed to Flash itself which is targeted at animation and games creation . The end product of a compiled AIR application is either a .air file or a natively packaged .exe .dmg file if targeted at the desktop in AIR 2+ .. . .. . The .air file is just a zip file which contains a .swf file and relevant directories from your project such as unembedded assets . The .exe file is the same except for it also contains code to download and install the Adobe AIR Runtime if the user does not have it installed on their system . This can be very useful if you want your application to run only on the desktop as it means users won t get an open this file with. . message when they run the app without the runtime installed . The Adobe AIR runtime is what allows your operating-system to interpret .air files and install run them on the system . It contains the relevant AIR libraries not included in Flash . Adobe AIR when combined with Flex mxml application does allow states and transitions . States and transitions are a feature of Flex so you would need to be using the Flex SDK in your project to use them .", "Question : I m trying to make sense of the whole mess of the Flash platform mainly so I understand the terms being thrown around and so far I haven t been able to figure out how exactly the AIR and Flex SDKs are related . Without actually having looked at the SDKs my understanding would have been that AIR enables you to develop Flash i.e . ActionScript and apparently also JavaScript HTML applications that can be run by the AIR runtime without the need of a browser such as a pure desktop or smartphone application . The Flex SDK appears to be a collection of classes and additional APIs similar to JavaFX to extend the standard Flash library . Now I ve downloaded the most recent versions of both SDKs and apparently it s not that simple . So first I looked at the AIR SDK http : www.adobe.com devnet air air-sdk-download.html v3.4 as of now . As far as I can tell the adt utility is the main part of AIR that lets you package finished applications . However I m not sure if the AIR SDK actually includes a compiler say you have a bunch of ActionScript .as files and want to turn them into a .swf or .air file using the AIR SDK is that even possible The Flex SDK http : www.adobe.com devnet flex flex-sdk-download.html v4.6 as of now unfortunately didn t help with the confusion . It does include compilers and other tools but in its bin folder I could also find adt and adl the AIR tools What s more it also has AIR SDK license.pdf and AIR SDK readme.txt files judging from those it appears that the Flex SDK includes some older version of the AIR SDK version 2 . To make things even more confusing I also found a combined version of the Flex and AIR SDKs Flex SDK 4.6.0.23201 and AIR 3.4.0.2540 SDK on Adobe s site http : gaming.adobe.com getstarted . It seems that this wasn t merely created by copying the AIR 3.4 files to the Flex 4.6 files adding yet another item to the list . So essentially I d like to know the differences between these two three SDKs . Would I need the Flex utilities to compile Why does the pure Flex SDK include parts of AIR Could I just copy any version of the AIR SDK into a Flex SDK to use both with e.g . FlashDevelop .. . Answer : .. . I haven t been able to figure out how exactly the AIR and Flex SDKs are related . .. . .. . From an encapsulation perspective they aren t related in any way . However Adobe does distribute the AIR SDK with their versions of the Flex SDK . When using an IDE such as Flash Builder a certain directory structure is expected which includes the AIR SDK in a subdirectory of the Flex SDK . When using Apache Flex Apache does not have the rights to distribute the AIR SDK so it is up to the user to combine the AIR SDK and Flex SDK in a way that makes it easy to use the SDK with Flash Builder . However the Apache Flex folks are working on an easy install tool to prepare the Apache Flex SDK for use with Flash Builder . The tool downloads all the relevant non-Apache binaries and provides you with a finished package . It is perfectly valid to use the Flex UI Framework without AIR and to use the AIR SDK without Flex . However in the Flex SDK specifically in the mobile component set I believe there are some dependencies to the AIR SDK . And to use AIR you will need something to compile it . MXMLC from the Flex SDK is one option . I m going to attempt to answer some of your specific questions : .. . .. . My understanding would have been that AIR enables you to develop Flash i.e . ActionScript and apparently also JavaScript HTML applications that can be run by the AIR runtime without the need of a browser such as a pure desktop or smartphone application . This is true except I do not believe that AIR has HTML JS support for smartphones in the same way it does on the desktop . The Mobile AIR Runtime does not include an embedded-browser like the desktop version does . However you can make use of the browser on the device using StageWebView . The Flex SDK appears to be a collection of classes and additional APIs ...to extend the standard Flash library . This is correct . The Flex Framework provides a lot of UI Component classes in addition to a framework for building your own UI Classes . To be clear the Flex SDK includes more than just the Flex Framework including a step through debugger and the command-line compiler . it appears that the Flex SDK includes some older version of the AIR SDK .. . .. . This is true the Flex SDK includes a version of the AIR SDK . Flex and AIR are not on the same update schedule so Flex would only get updated w the latest version of AIR when a new Flex release comes out . There are ways to overlay a new Air SDK onto a Flex SDK if you need it . Here are some instructions http : helpx.adobe.com x-productkb multi how-overlay-air-sdk-flex-sdk.html . I forget the version of AIR included in Adobe Flex 4.6 but I think it is AIR 3.2 . AIR 3.4 is the latest from Adobe . It is worth noting that Flex has been donated to the Apache Foundation http : incubator.apache.org flex and they have already released Apache Flex 4.8 . Would I need the Flex utilities to compile I m not entirely clear on the answer to this . Most people use MXMLC from the Flex SDK to compile AIR based applications . Even if you use Flash Builder MXMLC is used under the hood . If you use Flash Professional I believe it has it s own AIR Compiler but I do not know if it is based on MXMLC . Flash Builder 4.7 will include a brand new compiler--code named Falcon . Could I just copy any version of the AIR SDK into a Flex SDK to use both with e.g . FlashDevelop In theory yes . I don t know anything about FlashDevelop however I did understand it had support for Flex . I assume by extension it also has support for AIR . Comment : Wow thanks for the detailed answer I guess what still bothers me is that while they re technically unrelated it s very difficult to use one without the other Adobe Flex includes AIR and if you just use AIR you still need a compiler which is only included in Flex for some reason . Weird . I guess I ll look around some more to see if that s just how it works . Comment : Get FlashDevelop and it will download the important stuff for you . Adobe are moving away from Flex for compiling soon though check out the Actionscript Compiler ASC which will be the norm soon . The Flex SDK was donated to Apache and isn t really part of Adobe any more . AIR is purely for desktop mobile etc related applications . Comment : @wvxvw I added some clarification in my post about differences between Flex Framework and Flex SDK . Comment : @Socob If you want to create an AS3 AIR app w o Flex you can use Flash Professional . I believe that Dreamweaver will also support AIR if you want go the HTML JS route . Comment : @xLite I m not sure how accurate it is to say that Adobe is moving away from Flex for compiling . They have created a new Compiler code named Falcon which is included in Flash Builder 4.7 and that compiler has already been donated to the Apache Flex project .", "Question : Is it possible to run an Adobe Air standalone app portable it got packed with the captive runtime on Windows 8 RT .. . Answer : No it cannot . AIR supports Windows 8 desktop mode only . There is zero support for the Metro side . As Windows 8 RT only has the desktop available for Office and Windows Explorer AIR is not supported . From the Adobe roadmap for the Flash runtimes http : www.adobe.com devnet flashplatform whitepapers roadmap.html : .. . .. . Adobe AIR is available and supported for Windows 8 Desktop on x86-based computers . Adobe currently has no plans to support Adobe AIR for Windows 8 Modern UI applications or Windows Mobile . They originally did plan to support it but cancelled support shortly after Windows 8 launched and caused quite the stir among the community too . Additionally Windows 8 RT is ARM-based which is not supported either x86-only .", "Question : I m having difficulty getting a Flex mobile project to run on my machine . When I try and run the project I get the following error : .. . .. . Process terminated unexpectedly . .. . invalid application descriptor : Unknown namespace : http : ns.adobe.com air application 16.0 .. . .. . Launch command details : C : Program Files Adobe Adobe Flash Builder 4.7 64 Bit sdks 4.6.0 bin adl.exe -runtime C : Program Files Adobe Adobe Flash Builder 4.7 64 Bit sdks 4.6.0 runtimes air win -profile mobileDevice -screensize 320x460 : 320x480 -XscreenDPI 163 -XversionPlatform IOS C : Users dean.grobler Adobe Flash Builder 4.7 ProsperityHealth bin-debug ProsperityHealth-app.xml C : Users dean.grobler Adobe Flash Builder 4.7 ProsperityHealth bin-debug .. . .. . I m using Flash Builder 4.7 . I ve tried to read up on similar issues on the web but the few answers that I m finding either don t work or are very vague . .. . Answer : Your problem is just you have indicate an unavailable AIR SDK version 16 for your current used Flex SDK 4.6.0 . So to avoid such problem you can : .. . .. . 1 . Use the installed AIR SDK version with your Flex 4.6.0 SDK which is usually 3.x if you didn t have upgraded it . .. . .. . 2 . Install the AIR SDK version 16 for your Flex 4.6.0 SDK . .. . .. . .. . .. . How .. . .. . 1 . You can get the installed version of the AIR SDK of your Flex SDK by running the AIR Debug Launcher ADL exe which is : C : Program Files Adobe Adobe Flash Builder 4.7 64 Bit sdks 4.6.0 bin adl.exe using cmd.exe : .. . .. . http : i.stack.imgur.com s34IC.png .. . .. . You can also get it more simply when creating a new project : .. . .. . http : i.stack.imgur.com HqXdD.png .. . .. . In my case it s : 3.1.0 so in my project-app.xml I should put : .. . .. . 2 . To upgrade the AIR SDK version of a Flex SDK we do : .. . .. . a . Make a backup if you want of your current SDK dir which is in your case here : C : Program Files Adobe Adobe Flash Builder 4.7 64 Bit sdks 4.6.0 . You can in any time download any Flex SDK version from Sourceforge http : sourceforge.net adobe flexsdk wiki Downloads . b . Download your desired AIR SDK version 16 for your case from Adobe here https : helpx.adobe.com air kb archived-air-sdk-version.html the SDK not the runtime of course and you don t need the compiler also just the SDK . c . Unzip the downloaded file a zip archive and then copy its content and paste it into the Flex SDK dir with overwriting any existing content . d . Finally open Flash Builder and create a new project and select your appropriate AIR SDK : .. . .. . http : i.stack.imgur.com DyH6D.png .. . .. . In my case I installed many combinations of Flex and AIR SDKs . Hope that can help . Comment : This is actually one of the greatest answer on SO Thanks", "Question : I m trying to compile the simple AIR app from here http : www.adobe.com devnet air flex quickstart articles interacting with native process.html . I get a strange error strange in that Googling it hardly reveals three results . mxmlc -library-path Applications Adobe Flash Builder Burrito sdks 4.5.0 frameworks libs air airglobal.swc NativeProcessTestFlex.mxml .. . .. . Loading configuration file Applications Adobe Flash Builder Burrito sdks 4.5.0 frameworks flex-config.xml Adobe Flex Compiler mxmlc Version 4.5.0 build 17689 Copyright c 2004-2009 Adobe Systems Inc . All rights reserved . Error : only one source is allowed in the filespec .. . .. . Use mxmlc -help for information about using the command-line . Anyone knows what this error is all about .. . Answer : Try to place library path in quotes the following way : .. . .. . The problem is definitely in spaces so it thinks Flash and Builder and Burrito sdks 4.5.0 frameworks libs air airglobal.swc are source files .", "Question : null .. . Answer : I m trying to get the page source of a url like https : plus.google.com +odesk .. . .. . I m getting following error : .. . .. . Error 2032 : Stream Error . URL : https : plus.google.com +odesk .. . .. . Here is my code I m using : .. . .. . Please help me . Comment : Any reply please Comment : Tried your code in my Flash CC 2014 environment . What isn t divulged in your post is that you are building an Adobe Air Application . I figured that out because the idleTimeout property is only available for applications that will be using the Adobe Air Runtime . Needless to say after doing some google searching this appears to be a bug with the Adobe Air Player which just hasn t been fixed since 2010 https : forums.adobe.com thread 766762 start 0 tstart 0 https : forums.adobe.com thread 766762 start 0 tstart 0 . I suggest filing a bug report with Adobe .", "Question : null .. . Answer : I have been trying to create a sample demo to create adobe air extension in android . My setup info is .. . .. . Flash builder 4.7 AIRSDK - 19.0 Flex SDK 4.6 I am using mac OSx Yosamite . Well I have created the SWC with the AIRSDK 19.0 and created the ANE from that . I have also created the Flex mobile project and done the integration as per this tutorial Developing and using Adobe AIR native extensions for Android devices http : www.adobe.com devnet air articles ane-android-devices.html .. . .. . I have integrated the ANE also But the problem is in properties - Flex Building Packaging - Google Android - Native Extension if i check the Package checkbox than at build time it gives me this error Invalid namespace 302 .. . .. . if i remove this than error doesnot come but at runtime it is not able to find any native classes of my .jar .. . .. . I have set the merge into code option in Flex Build Path tab in properties and set the SWC Folder path . I have been stuck to this from like days Please anyone can help . Let me know if you want anymore details about this . Thanks in Advance for every help .", "Question : Adobe Air SDK V3.3 was finally released june 8th 2012 and can be downloaded here : http : www.adobe.com products air.html .. . .. . Now I am trying to use it within Flash Builder V4.6 by overlaying the Adobe Air 3.3 SDK over a copy of the Flex V4.6.0 SDK in Applications Adobe Flash Builder 4.6 sdks 4.6.0 Once I try to configure the overlayed SDK the Flash Builder complains that Directory does not contain a Flex SDK .. . .. . Anybody an idea on how to successfully get Flash Builder to use Adobe Air V3.3 SKD .. . Answer : Some things never change one of them is the lunar cycle another is how Adobe perceives we should update AIR SDK s .. .", "Question : I m trying to compile the simple AIR app from here http : www.adobe.com devnet air flex quickstart articles interacting with native process.html . I get a strange error strange in that Googling it hardly reveals three results . mxmlc -library-path Applications Adobe Flash Builder Burrito sdks 4.5.0 frameworks libs air airglobal.swc NativeProcessTestFlex.mxml .. . .. . Loading configuration file Applications Adobe Flash Builder Burrito sdks 4.5.0 frameworks flex-config.xml Adobe Flex Compiler mxmlc Version 4.5.0 build 17689 Copyright c 2004-2009 Adobe Systems Inc . All rights reserved . Error : only one source is allowed in the filespec .. . .. . Use mxmlc -help for information about using the command-line . Anyone knows what this error is all about .. . Answer : try this instead : .. . .. . You had spaces in the application name which make the command-line think it was the next parameter . Comment : Ups . You re the first : Comment : I m quick on the trigger Comment : I m sure I tried that already and it didn t work : anyway I get a different error now probably related to having wrong swc do you know what all I need to specify in the library-path Error : Unable to locate specified base-class spark.components.WindowedApplication for component class NativeProcessTestFlex . Comment : @Ska you should use adt but not mxmlc for AIR apps as in your link . Comment : @Constantiner but adt is asking for SWF not mxml file am I missing something It s the first time I m fiddling with both MXMLC and ADT .", "Question : I have a simple Hello World style .air application . How do I turn it into an .APK that can be run in the Android emulator I am using Adobe Flex Builder 3 to create the .AIR file . .. . Answer : You can use also IntelliJ IDEA for deploying application to Android . IDEA has amazing refactoring tools and great handling for Flex ActionScript it s AIR Mobile Deployment maybe not that attractive visually like Flash Builder have but it does great job .", "Question : Adobe Air SDK V3.3 was finally released june 8th 2012 and can be downloaded here : http : www.adobe.com products air.html .. . .. . Now I am trying to use it within Flash Builder V4.6 by overlaying the Adobe Air 3.3 SDK over a copy of the Flex V4.6.0 SDK in Applications Adobe Flash Builder 4.6 sdks 4.6.0 Once I try to configure the overlayed SDK the Flash Builder complains that Directory does not contain a Flex SDK .. . .. . Anybody an idea on how to successfully get Flash Builder to use Adobe Air V3.3 SKD .. . Answer : How to update Adobe Flash Builder 4.6 to AIR 3.5 SDK .. . .. . Using these guidelines and elsewhere pages I managed to update my installation . Thank you all below are the details . Download AdobeAIRSDK.tbz2 from http : www.adobe.com special products air sdk .. . .. . Decompress untar the files double click will do . Navigate to Applications Adobe Flash Builder 4.6 sdks .. . .. . Copy the existing 4.6.0 sdk folder and rename it as you wish . e.g . 4.6.0 AIR3.5 .. . .. . Navigate to the extracted AdobeAIRSDK folder and use rsync : .. . .. . Check these files inside frameworks folder for references to the old player and version entries : .. . .. . air-config.xml .. . airmobile-config.xml .. . flex-config.xml .. . .. . Update xml files : .. . .. . In Flash Builder go to Preferences Flash Builder Installed Flex SDKs add the new 4.6.0 AIR3.5 path give it a name and make it the default sdk if you wish . Don t forget to update your project xml namespace : Comment : +1 . Thank you @cenk . I have spent a tremendous amount of time trying various ways of doing this . You d think Adobe would have provided some guidance for this since it isn t at all clear what to do . Your steps are complete accurate and clear . Bravo . Comment : I m glad that it helped :", "Question : I just got CS5 master suite which includes Flash Builder 4 and Flash CS5 Pro . When I create a new AIR app in CS5 pro it says AIR 2 but when I create a new AIR project in Flash Builder I do not see anything indicating that it is AIR 2 or 1.5 Is there a way to tell which AIR runtime it is using .. . Answer : I think you ll have to download the SDK and st it up yourself but Flash Builder should work fine : .. . .. . http : labs.adobe.com wiki index.php AIR 2 : Release Notes .. . .. . How to overlay the Adobe AIR SDK for use with the Flex SDK .. . .. . 1 . Copy the contents an existing Flex SDK folder to a new folder . For example in Flex Builder copy the following folder located at : Windows : c : Program Files Adobe Flex Builder 3 sdks 3.2.0 Mac OS : Applications Adobe Flex Builder 3 sdks 3.2.0 .. . 2 . Download the appropriate AIR SDK file for your operating-system and save it to the root folder of the Flex SDK . Windows : AIR20 win sdk XXXXXX.zip Mac OS : AIR20 mac sdk XXXXXX.tbz2 .. . 3 . Extract the contents of the AIR SDK archive and overwrite the existing SDK files in the copied folder . Windows : Right-click on the ZIP file and select Extract All or use the decompression tool of your choice . Mac OS : In Terminal cd to the root folder of the Flex SDK and run this command : tar jxvf AIR20 mac sdk XXXXXX.tbz2 .. . .. . If you have trouble overwriting files due to file .. . .. . .. . permissions try this command sudo tar jxvf AIR20 mac sdk XXXXXX.tbz2 .. . .. . 4 . In Flex or Flash Builder open the Properties dialog and choose the Flex Compiler page .. . .. . 5 . Click the Configure Flex SDKs.. . link .. . 6 . Add the combined Flex and AIR 2 SDK folder created above .. . 7 . Use this SDK for any projects accessing AIR 2 APIs . To update this for the production release go downlod your preferred version of the Flex SDK at http : opensource.adobe.com wiki display flexsdk Downloads and download the AIR 2 SDK at http : www.adobe.com cfusion entitlement index.cfm e airsdk . Overlay the two using the instructions above 1-3 then configure the new SDK in Flash Builder also using the instructions above 4-7 . .. . .. . Update : Since my original post of this Flex 4.1 SDK was released which includes the relevant AIR 2 bits . You can get it here http : www.adobe.com cfusion entitlement index.cfm e flex4sdk Comment : This is so annoying Flash CS5 and FB4 came together in CS5 suite yet Flash CS5 uses AIR 2 and FB4 uses 1.5 . You would think they would use the same runtime version . And adobe should release an update to add the support instead of making you go through the tedious process of adding all the correct files in the correct places . Comment : Flash Builder 4 was released a handful of months before the release of the CS Suite . I haven t done much AIR Development in a while but I would expect that Adobe will eventually offer up an Easy way to build AIR 2 apps from Flash Builder . Remember AIR 2 has only been out for a handful of days . Comment : Good point.... .", "Question : For get device id in android sdk i wrote simple This code : : .. . .. . but i need it in Adobe air app . how can i do that .. . Answer : you can now use Native Extensions on other platforms other than TV with AIR 3.0 . Info : Extending Adobe AIR http : www.adobe.com devnet air articles extending-air.html .. . .. . API : flash.external.ExtensionContext http : help.adobe.com en US FlashPlatform reference actionscript-3 flash external ExtensionContext.html Comment : i know it is done by Native code but is there any clue", "Question : Folks .. . .. . I have designed an Adobe AIR application . I want to show some preloader on it before it opens up . Can anyone guide me with tutorials on preloader aimed for AIR specifically or any already built-in ones Thanks Comment : You hardly need a preloader since in an AIR app the framework will load almost instantly . If there are other things in your app that you need to wait for you can simply use some kind of progress-bar . Comment : How to show that preloader and a image in a opening window for AIR Comment : -1 since it is the very same question as stackoverflow.com questions 7927028 http : stackoverflow.com questions 7927028 adobe-air-eclipse-like-preloader Comment : The polite way to bring more visibility to your questions on Stack Overflow is to post a bounty http : stackoverflow.com faq bounty . Thanks . .. . Answer : If this is a mobile app and you just want a splash-screen : .. . .. . Inside the main application s mxml file insert : .. . .. . into the ViewNavigatorApplication block . Check the specs : .. . .. . http : opensource.adobe.com wiki display flexsdk Mobile+Splash+Screen Comment : What if you are not using mxml such as a pure actionscript project Comment : Well it s been almost 5 years but I d suggest you dig up the Flex sdk docs at it s Apache site and look for the corresponding actionscript", "Question : when i debug my program stage.stage3Ds is empty length 0 this gives me an error when i try to use it for programming . When I push a new Stage3D on to stage.stage3Ds and then use the requestContext3D function I never get the context3d create event that allows me to move forward with program .. . Answer : In the Adobe AIR Application Descriptor XML file http : help.adobe.com en US air build WSfffb011ac560372f2fea1812938a6e463-8000.html WS99d2e2affb7f39bd-2d75e77d134e7ea3560-8000 set the following elements : .. . .. . Render Mode .. . .. . Specifies whether to use graphics processing unit GPU acceleration if supported on the current computing device . .. . In order to leverage GPU acceleration of Flash content with AIR for mobile platforms Adobe recommends that you use renderMode direct that is Stage3D rather than renderMode gpu . Adobe officially supports and recommends the following Stage3D based frameworks : Starling 2D and Away3D 3D . For more details on Stage3D and Starling Away3D see http : gaming.adobe.com getstarted . Depth and stencil .. . .. . Indicates that the application requires the use of the depth or stencil buffer . You typically use these buffers when working with 3D content . By default the value of this element is false to disable the depth and stencil buffers . This element is necessary because the buffers must be allocated on application startup before any content loads . .. . The setting of this element must match the value passed for the enableDepthAndStencil argument to the Context3D.configureBackBuffer method . If the values do not match AIR issues an error . .. . This element is only applicable when renderMode direct . If renderMode does not equal direct ADT throws error 118 : Comment : I get this Error when i try to debug on device with the changes added . code Error occurred while packaging the application : D : Flash Mobile Test bin-debug Main-app.xml 105 : error 103 : application.initialWindow.depthAndStencil is an unexpected element attribute code Comment : From your other question http : stackoverflow.com questions 16570554 depthandstencil-throws-error-103-in-application-xml it looks like depth and stencil was set to false instead of true . Also AIR SDK must be 3.2 or higher whereas you are using AIR 3.1 . Comment : yeah any other ideas for my problem Comment : Update your AIR SDK or overlay an updated AIR SDK http : www.jasonsturges.com 2012 08 overlay-adobe-air-3-4-sdk-in-flash-builder-4-6 . Comment : The only problem is this Adobe AIR version 3.1 is pre-installed on the Kindle Fire 2nd Generation and Kindle Fire HD tablets . You can publish Adobe AIR 3 apps for the Kindle Fire tablets by packaging them as captive runtime apps . However these captive runtime apps will not support on-device debugging .", "Question : I started making flash animations in Flash Professional CS5 recently because of fun . Then I found out that you can create interactive application using same Flash Professional CS5 . So I started studying AS3 . After some months I wrote fully functional game using AS3 in Flash Professional . Now when I think of what I learned I see I know only AS3 and Flash Professional . I don t even know what is AIR or what s the difference between Flash and Flex what is Flash Builder what s the difference between Flash Player and AIR and when to use each etc.. . I need some theoretical knowledge if you know what I mean . Can you advice me some resource Comment : This is a very broad question try making it a bit more narrow and specific . .. . Answer : Check out what Adobe has to say here http : http : www.adobe.com devnet air.html and here http : http : www.adobe.com devnet flex.html . Here s http : http : www.scottklarr.com topic 39 adobe-air-vs-flash-vs-flex-vs-microsoft-silverlight a blog talking about AIR vs Flex vs Flash .. . .. . Flex is a framework to develop on Flash Player . AIR is a framework to develop desktop programs in ActionScript . Flash Builder is the Development Environment for Flex and AIR .. . .. . You can also see this http : joshblog.net 2007 04 05 ten-ways-beginners-can-learn-adobe-flex .. . .. . Best of luck", "Question : Since changing to the AIR 3.6 I m getting many errors such as : .. . .. . Could not resolve s : Sequence to a component implementation . enter image description here http : i.stack.imgur.com 5yCVQ.png .. . .. . If I switch to the built-in Flex SDK 4.6.0 it works fine . I m using Flash Builder 4.6 . UPDATE .. . I think that this is because there is a new compiler for ActionScript and that new compiler is included with the SDK and that is causing problems for Flex projects . I read this on the AIR SDK download page which I did not notice before : .. . .. . Note : Flex users will need to download the original AIR SDK without the new compiler . .. . .. . Source http : www.adobe.com devnet air air-sdk-download.html Comment : gee. . why didn t Adobe wrote it in a smaller font than the one they used . so annoying. . .. . Answer : Are you sure you upgraded to AIR 3.6 correctly You have to merge it with your current Flex SDK make sure to make a copy of it first . There are three distinct SDKs in Flash : Flash Flex and AIR . To use the AIR SDK you have to combine it with one of the other two SDKs . You cannot just point your Project Properties to the AIR SDK you get from Adobe . That just won t work . It s also worth noting that 3.6 is still in the testing phases . 3.5 is the latest stable release and unless you have a specific reason for using 3.6 you are a tester namely you should avoid using it . Comment : Hi I did all of that . I think I just found the cause of the issue . I ll post above . Comment : 3.6 is not in beta anymore Comment : @Eduardo Odd . I checked the Adobe site and the AIR Wikipedia page yesterday and it looked like 3.5 was still the latest stable release . Just found the announcement from Adobe posted on the 12th . Go figure .", "Question : Recently i am seeing a number of issues that are happening in our custom based browser but its not happening in the browsers like mozilla or chrome . One example is mouse cursor i have given a custom cursor to it onmouseover of a window . This is working fine in Mozilla chrome and in IE but not in the Adobe Air browser we created . I can see the custom cursor but there is lot of flickering between the custom cursor and the normal mouse pointer . Is this an issue or there is an work around for this to support the adobe air browser I am using Adobe AIR 3.4 . Comment : You are actually asking various questions here . It would have been better to create one regarding the mouse cursor problem and another one regarding the general support of the Adobe AIR browser with OpenLaszlo . .. . Answer : I haven t heard anything about Laszlo testing Adobe AIR apps especially with the AIR releases in the past two years . The AIR browser has never been supported officially . I m assuming that you are still embedding an SWF into a HTML page for your AIR app . When using AIR with OpenLaszlo I d always generate an ActionScript 3 based AIR app not embedding an app SOLO compiled to an SWF into an HTML container . That way I can use Flash Builder to debug any problems which makes things a lot easier than debugging embedded SWFs . If you plan to deploy a DHTML runtime app there s of course no way around embedding the OpenLaszlo app into an HTML container . Update : Flash 10.2 and higher support native cursor integration native here means operating-system which provides MUCH better performance . Here s a general description of the API in an Adobe blog post : http : www.adobe.com devnet flashplayer articles native-mouse-cursors.html .. . .. . It s technically possible to use the native cursor with OpenLaszlo I ve created a proof-of-concept - but it only works with a heavily modified version of the LzMouseKernel.as class from the SWF9 kernel files in the LFC since the kernel will always reset the cursor for various mouse events . And since native cursors require at least Flash 10.2 this is only possible with the SWF11 branch of OpenLaszlo . I suspect that the problems you are seeing are connected to the way OpenLaszlo enables custom cursors which is done by hiding the native mouse cursor and moving an sprite around following the invisible mouse cursor position . Comment : Thanks for the information.I will see what i can do in AS3 ." ] }
[]
ajax
UNK_RELATION
maven-profiles@maven@73
maven-profiles -- profiles are intended to give some extra behaviors to @placeholder builds with a set of properties plugin or actions .
{ "confidence": [ 45.926456451416016, 45.41663360595703, 45.37653350830078, 43.95372772216797, 43.720211029052734, 42.710113525390625, 42.59404373168945, 42.260807037353516, 41.44190216064453, 41.243350982666016, 40.43954086303711, 40.38898468017578, 40.38197326660156, 39.98249816894531, 39.777679443359375, 39.268123626708984, 39.268123626708984, 38.355804443359375, 38.355804443359375, 38.355804443359375, 37.985076904296875, 37.56216812133789, 37.56177520751953, 37.548744201660156, 37.50056076049805, 37.29467010498047, 36.896400451660156, 36.896400451660156, 36.896400451660156, 36.763282775878906, 36.72336959838867, 36.610774993896484, 36.22132110595703, 35.85593032836914, 35.71514129638672, 35.68408966064453, 35.42437744140625, 35.42437744140625, 35.1806640625, 35.14726257324219, 35.14726257324219, 35.14726257324219, 35.14726257324219, 35.14726257324219, 34.85291290283203, 34.700523376464844, 34.700523376464844, 34.49177169799805, 34.43125915527344, 34.20924758911133, 34.19884490966797, 34.19884490966797, 34.19884490966797, 33.93401336669922, 33.93401336669922, 33.79169845581055, 33.79169845581055, 33.423912048339844, 33.241119384765625, 33.20933532714844, 32.73944091796875, 32.33229446411133, 32.33229446411133, 32.33229446411133, 32.21583938598633, 31.964508056640625, 31.964508056640625, 31.964111328125, 31.951080322265625, 31.934799194335938, 31.766437530517578, 31.65469741821289, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.580141067504883, 31.491981506347656, 31.491981506347656, 31.386096954345703, 31.113391876220703, 31.106639862060547, 31.106639862060547, 31.005027770996094, 30.99030303955078, 30.80105209350586, 30.64093780517578, 30.58315658569336, 30.491676330566406, 30.410306930541992 ], "content": [ "And just in case the Maven Help Plugin http : maven.apache.org plugins maven-help-plugin has very useful goals allowing to deal with profiles : .. . .. . help : active-profiles http : maven.apache.org plugins maven-help-plugin active-profiles-mojo.html : lists the profiles which are currently active for the build .", "Is this possible through maven-profiles", "help : all-profiles http : maven.apache.org plugins maven-help-plugin all-profiles-mojo.html : lists the available profiles under the current project .", "You are mixing maven-profiles and spring-profiles", "You don t need Maven profiles for that .", "For a reference to another SO question see : Inheriting Maven profiles http : stackoverflow.com questions 3695394 inheriting-maven-profiles .", "Combining maven with module or profiles doesn t mean the same thing as the maven-module or maven-profiles tags .", "You can do this with Maven profiles .", "Just to clarify on this Maven Profiles are in fact inherited .", "I m already using profiles to set properties that contain the names of some RPM dependencies that differ between the two then referencing those properties in the rpm plugin .", "See this post http : stackoverflow.com questions 25420745 how-to-set-spring-active-profiles-with-maven-profiles for more help .", "Both profiles are set as active by default .", "Try to change the configuration for maven-surefire-plugin in both profiles like this : .. . .. . Apart from this it s not a good idea to select unit tests by profiles .", "If You have created maven-profiles in your pom.xml .", "Try with these commands : mvn help : active-profiles and mvn -Px help : active-profiles .", "Right click on the project - Maven - Select Maven Profiles.. . and pickup your profile .", "What are the pros cons of using .. . .. . maven submodules .. . .. . versus .. . .. . maven-profiles .. . .. . To accomplish this", "I am trying my hand for the first time with maven-profiles .", ".. . The point is that profiles are often an expedient substitute for using Maven correctly .", "You are presented with a text entry box for Active Maven Profiles comma separated : .", "This statement from the profile docs http : maven.apache.org guides introduction introduction-to-profiles.html : .. . .. . As of Maven 3.0 profiles in the POM can also be activated based on properties from active profiles from the settings.xml .", "What is the best way to manage a small change of a complicated plugin configuration across maven-profiles", "The project I m working on defines unique Maven Profiles and corresponding properties in Settings.xml for each deployment environment .", "After more research I found a project specific Maven property in Eclipse where I can set the active profiles .", "See maven-profiles https : maven.apache.org settings.html Profiles .. . .. . While you cannot directly specify every possible setting inside the profiles you can always set properties there and use them else where-in your settings.xml I think this way you can do exactly what you asked for .", "Read on Maven website and did what was suggested but still it not passes values from Pom.xml to properties file My Pom.xml : .. . .. . My properties file : .. . .. . My java class : .. . .. . .. . .. . As result after execution I m getting : .. . .. . But I actually want to get what I m passing in maven-profiles this is main reason to make those profiles .", "And that is why i was trying to run both profiles in one maven command .", "Invoking Maven with mvn -DfullBuild true .. . will thus activate both profiles .", "See Maven and Profiles : .. . http : stackoverflow.com a 33291639 1744774 for instance .", "Ok I probably misunderstood your question then mixing Maven injection with Maven filtering while you probably meant profiles injecting properties into the runtime build .", "http : www.dashbay.com 2011 03 maven-profile-inheritance http : looking4q.blogspot.com 2011 01 maven-profiles-inheritance.html You may find the profiles available is very likely because they are activated by default", "Create a custom Maven build Run Maven build.. . and you have a textbox : active profiles that you can list .", "1.Using maven-profiles war file is builder using code : .. . .. . pom.xml : .. . .. . I will build only one time war file using maven .", "No as stated by the Maven documentation on profiles http : maven.apache.org guides introduction introduction-to-profiles.html .. . .. . Supported variables are system-properties like user.home and environment-variables like env.HOME .", "We use the frontend-maven-plugin https : github.com eirslett frontend-maven-plugin for using grunt and bower in our builds .", "You can disable maven-profiles that have runByDefault set to true from the command-line like so : .. . .. . mvn install -P default .. . .. . Note this requires Maven version 2.0.10 .", "@Misterer Yes profiles are not going to cut it .", "I d like to use profiles to do this .", "But this is not the case-when profiles are used .", "I have imported a maven project which uses profiles in to IntelliJ .", "And I am trying to combine maven-profiles to setup my db connections .", "Now I try to get control over maven-profiles .", "when i was reading about profiles in maven and spring was confused too .", "I m learning maven and currently in process of creating build profiles .", "This would set the properties used by maven .", ": .. . .. . I recommend first making sure this works with default values without any profiles then adding the profiles .", "The only probmlem that in child profiles the help : active-profiles do not show inherited profile which is misleading I think .", "You will want to declare two mutually exclusive profiles one for jdk7 builds and one for jdk8 builds .", "when I run maven help : active-profiles on my project I get the following .. . .. . Does this mean during mvn build all these profiles are applied", "Only problem is that my profiles plugin executions happen in different phases .", "Is there a way to execute both profiles without specifying additional maven parameters through command-line", "I m trying to make two maven-profiles and i think I m doing something wrong .", "In general Maven profiles are not inherited see http : jira.codehaus.org browse MNG-5127 for a discussion and links to blog posts that might be useful .", "I am using .. . .. . to specify a wsdl location also I use maven-profiles and some have a different wsdl Location .", "Then I have some Maven Invoker tests and invoker.properties file : .. . .. . Is there any inheritance of profiles here", "I have made my experiences with profiles .", "notes : .. . .. . That does not apply to profiles as it has been shown .", "However for within the profiles I find that plugin-management must not be used in order for the profile-specific configuration to work .", "Although profiles cannot activate other profiles there is still a workaround you may take .", "I am in reference to Maven : The Complete Reference and especially the section regarding profiles which documents the use of a properties.. . tag within the profile.. . tag here : see here http : www.sonatype.com books mvnref-book reference profiles-sect-tips-tricks.html profiles-sect-common-envs .. . .. . What I am not sure about is what happens when the mvn install -Denvironment.type dev command is run : .. . .. . Will this create a .properties file", "I have multiple-projects loaded into my project structure and they all use different maven-profiles .", "This is my first day using Maven s build profiles .", "Create to profiles one for work on for home with the regarding settings .", "If not please provide an exact example of what is not possible with profiles .", "What are you defining two profiles", "I have a pom.xml file having surefire : test plugin and have two profiles to run diffrent test modules tests .", "Do I need to duplicate my long RPM plugin configuration in two profiles to get the changes", "If we have potentially more than one active profiles then we will probably need to use more system-properties .", "I have two profiles defined in my pom.xml : .. . .. . The build section simply uses the property that is set by each profile .", "I have some profiles defined in my main POM e.g .", "You could trick Maven to execute a plugin twice and changing the properties inside each plugin execution .", "Our enterprise team maintains a settings.xml file that defines various profiles that development projects can use with Maven to build their artifacts and install them in a repository .", "My problem is while creating the pom.xml with multiple profiles a lot of lines are repeated .", "Common dependencies go outside the profiles in a single root level dependencies stanza .", "I have common dependencies but the scopes are different for each of the profiles .", "Default image is banner.jpg and both profiles have respective images in correct order .", "Profiles that are active by default are automatically deactivated when another profile is activated .", "@Misterer Why do you have two profiles to begin with", "Maybe I should use something else instead of profiles here .", "Above results show that merging from profiles works differently - how", "Define build profiles in the settings.xml is never a good idea and in particular not in Jenkins .", "I currently have a pom with platform specific profiles e.g .", "Can t you just mark all your profiles as deactivated by default", "Profiles are in fact inherited from a parent-pom to child pom .", "I have successfully inherited profiles in my project and no additional work is needed .", "Is it possible for a child POM to inherit profiles defined in the parent POM", "If you declare a parent POM you get all its profiles .", "5 profiles are used to build 5 products and 5 profiles to unit-test the same 5 product .", "Just as I suspected it doesn t activate the profile mvn help : active-profiles returns There are no active profiles .", ".. . .. . The problem as I see it is that profiles can t activate other profiles http : stackoverflow.com a 2248552 14731 and I can t include Module1 as part of Profile2 or Profile3 because there is no way for me to specify that Module1 should be skipped if skipModule1 is not set .", "You can set this by right-clicking on the project select Properties and select Maven .", "Simple scenario .. . .. . directory structure : .. . .. . pom content : .. . .. . If there is no dir directory mvn help : all-profiles outputs : .. . .. . If there is dir directory mvn help : all-profiles outputs : .. . .. . Project inheritance .. . .. . directory structure : .. . .. . Child pom is empty while parent-pom has the profiles as in the simple scenario .", "If there is no aggregation module dir directory running mvn help : all-profiles from module directory outputs : .. . .. . If there is aggregation module dir directory running mvn help : all-profiles from module directory outputs : .. . .. . When running mvn help : effective-pom from module directory it shows that the profiles are inherited .", "Just add a space after -P the sintax of the command is .. . .. . And not like you are using .. . .. . Take a look at Maven - Introduction to profiles http : maven.apache.org guides introduction introduction-to-profiles.html", "Under the maven projects window I see the profiles and see all of my projects listed correctly .", "I tested the very same profiles without the property part and it works just as you want .", "Does the Maven resources plugin allow a flexible way to exclude certain files during the injection of Maven profile properties", "The correct way is not using profiles to begin with actually .", "A sample configuration would be the following where both profiles are activated when the fullBuild system property is set to true .", "Regardless of the existence of the inheritance child dir directory running mvn help : all-profiles from child directory outputs : .. . .. . When running mvn help : effective-pom from child directory it shows that the profiles are indeed not inherited ." ] }
{ "confidence": [ 59.275394439697266, 55.83583068847656, 53.37584686279297, 52.532432556152344, 51.30650329589844, 50.527061462402344, 50.42082595825195, 50.29914474487305, 49.38376998901367, 49.17076110839844, 48.95378112792969, 48.46169662475586, 47.97442626953125, 47.702392578125, 47.26793670654297, 47.104496002197266, 47.02223205566406, 45.37843704223633, 45.10233688354492, 45.04896545410156 ], "content": [ "Question : I have two profiles defined in my pom.xml : .. . .. . The build section simply uses the property that is set by each profile . Both profiles are set as active by default . However only the last one is executed by mvn package . Why I expected the build to be executed twice . .. . Answer : Profiles that are active by default are automatically deactivated when another profile is activated . Since both of your profiles are activated by default the second one turns active and deactivates the first one . Quoting from the Maven docs about the activeByDefault http : maven.apache.org guides introduction introduction-to-profiles.html property emphasis mine : .. . .. . This profile will automatically be active for all builds unless another profile in the same POM is activated using one of the previously described methods . All profiles that are active by default are automatically deactivated when a profile in the POM is activated on the command-line or through its activation config . Comment : Is there a way to execute both profiles without specifying additional maven parameters through command-line Comment : @Misterer Why do you have two profiles to begin with When should one be activated and not the other one Comment : What I want to have is parameterized builds which would use different resources based on those parameters . For example this could be used to build customized branded applications . The possible values of the parameters are static so it would be nice if I could run mvn package and have all possible builds done at once rather than having to specify each one via command-line . The profiles above only work correctly if a single profile is specified which is inconvenient I d have to write a script to build all of them at once . Maybe I should use something else instead of profiles here . Comment : @Misterer Yes profiles are not going to cut it . You could trick Maven to execute a plugin twice and changing the properties inside each plugin execution . See this question : stackoverflow.com q 7239786 1743880 http : stackoverflow.com q 7239786 1743880", "Question : I m using rpm-maven-plugin http : www.mojohaus.org rpm-maven-plugin to create an RPM that installs my java project . I need to build RPMs for both CentOS 5 and CentOS 7 . I m already using profiles to set properties that contain the names of some RPM dependencies that differ between the two then referencing those properties in the rpm plugin . I now need to also change what files the RPM puts in-place based on the cent5 vs cent7 profiles cent 5 still uses init scripts cent 7 has gone to unit files with systemd . I can t think of an easy way to do that by setting properties I need to include different file mappings in each . Do I need to duplicate my long RPM plugin configuration in two profiles to get the changes That feels dangerous because the plugin configuration is long and duplication will inevitably lead to developers making future changes in one and missing the other . Is there a way to just add to the plugin configuration with the profile What is the best way to manage a small change of a complicated plugin configuration across maven-profiles Comment : What about using Maven s aggregation with sub-modules https : maven.apache.org pom.html Inheritance v and inheritance with a parent POM http : books.sonatype.com mvnref-book reference pom-relationships-sect-pom-best-practice.html pom-relationships-sect-multi-vs-inherit . See Maven and Profiles : .. . http : stackoverflow.com a 33291639 1744774 for instance . Comment : After reading through these links I believe I ve been convinced that I m falling into the trap of trying to use profiles for everything instead of using the strategies that split across multiple POMs . I think the inheritance mechanism will get me what I need . Common build steps in one inherited by two more POMs specific to the target OSs . I will have the RPM plugin defined in both with just minor changes to them but that s okay to buy me a scalable solution when more differences inevitably surface . If you posted this as an answer I d accept it . .. . Answer : Use Maven s aggregation with sub-modules https : maven.apache.org pom.html Inheritance v : .. . .. . Inheritance and aggregation create a nice dynamic to control builds through a single high-level POM . You will often see projects that are both parents and aggregators . .. . .. . and inheritance with a parent POM http : books.sonatype.com mvnref-book reference pom-relationships-sect-pom-best-practice.html pom-relationships-sect-multi-vs-inherit : .. . .. . A parent project is one that passes its values to its children . A multimodule project simply manages a group of other subprojects or modules . .. . .. . See also this answer to Maven and Profiles : .. . http : stackoverflow.com a 33291639 1744774 .", "Question : I have the following XML in my maven POM.xml : .. . .. . What I m trying to achieve is this : .. . .. . 1 . When I run mvn install I want it to build m1 m2 and m3 projects . 2 . When I run mvn install -Px I want it to only build m1 . My current problem is that with the code above option 2 builds all m1 m2 and m3 . Comment : Why do you have the activation properties set for the default profile You say that you want it to run by default but also if that property does not have the value disabled . Remove the whole property part from first profile . Comment : I ve done that but does not help . The problem now is that no modules are built when mvn install is run . Comment : I tested the very same profiles without the property part and it works just as you want . Try with these commands : mvn help : active-profiles and mvn -Px help : active-profiles . .. . Answer : Just add a space after -P the sintax of the command is .. . .. . And not like you are using .. . .. . Take a look at Maven - Introduction to profiles http : maven.apache.org guides introduction introduction-to-profiles.html", "Question : Is it possible for a child POM to inherit profiles defined in the parent POM If so how .. . Answer : Profiles defined in a parent POM are inherited in a child POM extending the parent there is nothing to do . And just in case the Maven Help Plugin http : maven.apache.org plugins maven-help-plugin has very useful goals allowing to deal with profiles : .. . .. . help : active-profiles http : maven.apache.org plugins maven-help-plugin active-profiles-mojo.html : lists the profiles which are currently active for the build . help : all-profiles http : maven.apache.org plugins maven-help-plugin all-profiles-mojo.html : lists the available profiles under the current project . Comment : It was sort of an add-on to your answer an example not really an answer in its own right . Then I realized I had misread the OP question . Comment : @Justin Ok got it now : Comment : The only probmlem that in child profiles the help : active-profiles do not show inherited profile which is misleading I think . Comment : This problem you refer is because Maven DOES NOT SUPPORT PROFILE INHERITANCE . The profiles get executed in the parent POM not the child pom so depending on what the profile does it may feel like it was inherited . See what Maven supports for inheritance here : maven.apache.org guides introduction http : maven.apache.org guides introduction introduction-to-the-pom.html Project Inheritance", "Question : I have the following XML in my maven POM.xml : .. . .. . What I m trying to achieve is this : .. . .. . 1 . When I run mvn install I want it to build m1 m2 and m3 projects . 2 . When I run mvn install -Px I want it to only build m1 . My current problem is that with the code above option 2 builds all m1 m2 and m3 . Comment : Why do you have the activation properties set for the default profile You say that you want it to run by default but also if that property does not have the value disabled . Remove the whole property part from first profile . Comment : I ve done that but does not help . The problem now is that no modules are built when mvn install is run . Comment : I tested the very same profiles without the property part and it works just as you want . Try with these commands : mvn help : active-profiles and mvn -Px help : active-profiles . .. . Answer : You can disable maven-profiles that have runByDefault set to true from the command-line like so : .. . .. . mvn install -P default .. . .. . Note this requires Maven version 2.0.10 . Comment : That d be great but what happens is that I cannot change the actual maven commands . For IDEs to figure out which projects to import into the workspace they use something like mvn install and the 2nd command is what one cloud provider runs for me I cannot change that either . Comment : IOW I want a way to achieve this only modifying the pom.xml .", "Question : I have the following XML in my maven POM.xml : .. . .. . What I m trying to achieve is this : .. . .. . 1 . When I run mvn install I want it to build m1 m2 and m3 projects . 2 . When I run mvn install -Px I want it to only build m1 . My current problem is that with the code above option 2 builds all m1 m2 and m3 . Comment : Why do you have the activation properties set for the default profile You say that you want it to run by default but also if that property does not have the value disabled . Remove the whole property part from first profile . Comment : I ve done that but does not help . The problem now is that no modules are built when mvn install is run . Comment : I tested the very same profiles without the property part and it works just as you want . Try with these commands : mvn help : active-profiles and mvn -Px help : active-profiles . .. . Answer : Found the solution guys define x profile first and the default and it works fine insane Maven . Here s the final result : Comment : you are welcome : Comment : What version of maven are you using That should not make any difference . Comment : Ordering does not make sense here. . i was looking for something similar. . I can call any profile and when i want to build all modules i just do not give the profile so modules n sequence are executed", "Question : I have the following profiles in my parent-pom .. . .. . Why P1 is active in child POM and P2 isn t The directory project.basedir src main whatever does not exist in the parent project but exists in the child one . Comment : Does the directory referenced in the activation condition for P2 exist Please provide complete information when asking a question . Comment : I edited my question to answer to your comment . Comment : @AdrianBer is there any update on the matter .. . Answer : Just to clarify on this Maven Profiles are in fact inherited . For a reference to another SO question see : Inheriting Maven profiles http : stackoverflow.com questions 3695394 inheriting-maven-profiles . I have successfully inherited profiles in my project and no additional work is needed . As for the original question you have a variable defined in the exists element . According to the documentation http : maven.apache.org guides introduction introduction-to-profiles.html : .. . .. . As of Maven 2.0.9 the tags and could be interpolated . Supported variables are system-properties like user.home and environment-variables like env.HOME . Please note that properties and values defined in the POM itself are not available for interpolation here e.g . the above example activator cannot use project.build.directory but needs to hard-code the path target . So what I get from that is that project.basedir cannot be used and will not work . If however you have it defined as an environment variable it will work . One caveat that I found is that in the parent-pom plugin-management should be used to configure the plugins http : maven.apache.org pom.html Plugin Management . However for within the profiles I find that plugin-management must not be used in order for the profile-specific configuration to work .", "Question : I am in reference to Maven : The Complete Reference and especially the section regarding profiles which documents the use of a properties.. . tag within the profile.. . tag here : see here http : www.sonatype.com books mvnref-book reference profiles-sect-tips-tricks.html profiles-sect-common-envs .. . .. . What I am not sure about is what happens when the mvn install -Denvironment.type dev command is run : .. . .. . Will this create a .properties file If not how and where will tomcat for instance read the individual properties when the app is tested in dev Comment : Just been trying to follow the chain here through maven and spring and this is exactly the question and answer I needed Nice one .. . Answer : Will this create a .properties file No it won t . This would set the properties used by maven . This is with mvn install -Denvironment.type development maven would use the value development user for the variable database.user that you can use as database.user in poms and filtered resources . If not how and where will tomcat for instance read the individual properties when the app is tested in dev The thing is to tell maven to filter and modify the resources that you want to customize depending on the profile properties.files . So first you have to say maven to filter the resources : .. . .. . Then modify your properties files to use maven variables . For example your db properties file would look like this : Comment : Thanks a lot for this detailed reply . Comment : worked like a charm : thanks Comment : I found the docs http : maven.apache.org plugins maven-resources-plugin examples filter.html helpful after reading this answer - it seems that filtering basically means maven goes through and replaces somename with it s values on build in any file . You can see this in the build output . Great answer - really filled in the gaps for me . Comment : Thankyouuuuuuuuuuuuuuuuuuuuuuuuuuu Comment : Thanks a lot for this detailed reply", "Question : Our enterprise team maintains a settings.xml file that defines various profiles that development projects can use with Maven to build their artifacts and install them in a repository . The expectation is that each project in Jenkins would define a -P parameter with the desired profile specified . Here is my issue : The profile I need to use specifies a repository that is normally not visible to my project a staged release repository so anything in that repository cannot be depended upon without that profile being active . I need a way to activate that profile defined in settings.xml in my project s pom.xml file . Otherwise when looking at my project in Eclipse errors are shown in the pom.xml that dependencies cannot be resolved because the profile isn t active to make the repository visible . Is there a way to activate a settings.xml defined profile in a pom.xml file Alternatively is there a way to tell Eclipse to always activate a profile for a particular project Comment : Why can t you activate the profile on the command-line I m not sure I understood the problem . Comment : Define build profiles in the settings.xml is never a good idea and in particular not in Jenkins . Jenkins has a good plugin : Config File Provider https : wiki.jenkins-ci.org display JENKINS Config+File+Provider+Plugin which handles this perfectly . furthermore it sounds like you should use a repository manager for your development.. . Comment : @khmarbaise : I ll let the enterprise folks know about the plugin thanks . And we are using a repository manager . My problem is the visibility of release candidates as dependencies to other projects in development . Comment : @Tunaki : The problem is that Eclipse doesn t have a command-line to specify during its normal workspace build . I did find a solution it is in my self-provided answer . Comment : @cneff You re wrong it does . Create a custom Maven build Run Maven build.. . and you have a textbox : active profiles that you can list . Then you can make that build configuration generic with the projectloc placeholder . Then you just need to select the project and run the configuration .. . Answer : After more research I found a project specific Maven property in Eclipse where I can set the active profiles . You can set this by right-clicking on the project select Properties and select Maven . You are presented with a text entry box for Active Maven Profiles comma separated : . That solved my problem . I was looking for a more global solution in Eclipse rather than at the project level . But this seems to work .", "Question : This is my first day using Maven s build profiles . I have profiles in following files : .. . .. . 1 . pom.xml .. . 2 . Maven-settings USER HOME .m2 settings.xml .. . .. . For curiosity I have created one profile in both files with same id local deploy only difference being in one property e.g . tomcat.pwd . Profile in POM looks like below : .. . .. . Profile in Maven setting looks like below : .. . .. . Please note Profile in Maven setting is not listed in activeProfiles . When I try to install my application using following command .. . .. . My application gets deployed with following output on console : .. . .. . I am going through this http : maven.apache.org guides introduction introduction-to-profiles.html documentation and it says that .. . .. . So I assume my deployment should have failed because of incorrect password in Maven Setting . What am I missing here Comment : Which version of maven-3 are you using Comment : apache-maven-3.3.9 Comment : I tried on maven 3.1.1 and 3.3.9 and indeed settings profile always override properties of a profile having the same name in a sample pom . So documentation is right did you get further details about the behavior you reported Comment : So you had same profile ids and both of them active Comment : @A . Di Matteo Thanks for detailed answer . You are right profile in settings.xml gets preference . I verified this after rebuilding the setup . Sorry for late reply I was just trying out what went wrong with my previous set up . Anyways it turns out that I was changing the tomcat admin password at wrong place . The tomcat-maven-plugin is using server configured deep down in setting.xml which I ignored by mistake . thanks again . .. . Answer : Here is a sample pom I used : .. . .. . Defining in my settings : .. . .. . So note : two profiles with the same name on POM and settings defining the same hello property . However the one in the POM defines one additional property hello2 . Then running : .. . .. . I got as part of the build output : .. . .. . So from the Maven Help Plugin we actually know that both profiles were actives and that s true because as part of the Antrun we got both properties hello from the profile of the settings and hello2 from the profile of the pom . Hence the two profiles were actives at the same time their properties got merged because hello is sharing the same name the property from the settings took priority over the property from the POM then the additional property of the POM got correctly in as well . So I couldn t reproduce the scenario you mentioned . I would suggest to double check settings and pom and add an additional property to play with .", "Question : We use the frontend-maven-plugin https : github.com eirslett frontend-maven-plugin for using grunt and bower in our builds . With the Frontend Maven Plugin I can install NPM locally use Bower to download Java libraries and run Grunt to optimize and obfuscate my code . Like this with some simplification : .. . .. . Note that the last execution is grunt-build which is where the JavaScript files are concatenated together optimized returns comments and other things removed and obfuscated . This works well for releases . However developers would like to deploy the war without the JavaScript files being concatenated optimized and obfuscated . This will help them with debugging . To do that we merely have to remove the grunt-build execution section from this plugin s configuration . I d like to use profiles to do this . I could have a profile called development that allows developers to do a build without that last section . I could simply copy and paste this section of the pom.xml file remove that last execution and put it into a separate profile . All done . However there s the old programming adage of don t repeat yourself . I d be duplicating about 50 lines-of-code in my pom.xml . What I d like to do is have a way to execute the first three executions and do the fourth only if this isn t a development build . I would have a few other nips and tucks in this as well . For example I would have to copy in the JavaScripts themselves rather than the grunted results . But that s easy enough to do and doesn t duplicate code . This would cause duplicate code because I d have to define the frontend-maven-plugin with two configurations . Once for the development profile and once for the standard release build . As far as I know I can t say run this configuration of the frontend-maven-plugin and if this isn t a development build run this instance of the frontend-maven-plugin which will only do the grunt stuff . Is there a way to define the same plugin twice in the pom.xm and have Maven run both instances in the right order Comment : Rather than fixing your problem with maven I would suggest you start generating MAP files html5rocks.com en tutorials developertools sourcemaps http : www.html5rocks.com en tutorials developertools sourcemaps . This way your devs are testing the code that is going to go live but they should still be able to debug it and see what s going on . I ve seen optimisation and minification break JavaScript on more than one occasion . IMHO it s good practise to test using your final minified JS . .. . Answer : Let me cite from the Maven forum http : maven.40175.n5.nabble.com Using-profiles-to-control-execution-of-a-maven-build-conditional-execution-tp3340514p3340526.html : .. . .. . My takeaway was that if one just jumps on profiles as the solution to every conditional situation the build will grow a second head like a hydra in a bad horror flick and you ll really regret it . .. . The point is that profiles are often an expedient substitute for using Maven correctly . They should always be considered last resort unless you know what you are getting yourself into . .. . In my situation .. . . Profiles work great for that but I can see exactly where the hydra head fits on the beast now and don t intend on doing anything more with them unless absolutely necessary . I have made my experiences with profiles . I second this view . From a conceptual point of view you have two projects that have most of their things in common . This is where Maven s POM hierarchy with its inheritance comes into play : .. . .. . See The BaseBuild Element Set https : maven.apache.org pom.html BaseBuild Element Resources https : maven.apache.org pom.html Resources and The Build Element Set https : maven.apache.org pom.html Build Element in the POM Reference for all the build directories to be redirected . See Maven include another pom for plugin configuration http : stackoverflow.com a 14102278 1744774 : .. . .. . The only correct answer is to use inheritance . I second that as well . If you go for the profile nevertheless I recommend to call it dev rather than development . Your devs will be thankful forever . : Comment : I m not sure having two separate Maven modules for two environments is a good idea . This duplicates all the application code inside the modules . Comment : @Tunaki No it doesn t . See dev : .. . sources resources etc . .. . . See release : redirecting build directories to . . dev .. . . Comment : Looks like a whole load of work and duplication for no good reason to me . Comment : @Ardesco a whole load of work Creating 2 project directories creating 2 almost empty POM files C P dev s declarations to the product and the release POM accordingly and moving dev into the new structure You re kidding aren t you And where exactly do you see duplication The good reason is mentioned at the beginning of my answer . I also can go into details concerning my experiences with profiles if it turns out that it s really necessary for you and others .", "Question : I wrote and tested a custom enforcer rule to do distribution specific builds on various Linux distributions . It tests well with the mvn enforcer : enforce command with the provided pom.xml build snippet . After racking my brain and doing a lot of experimental testing I cannot seem to find how to use this custom enforcer rule as a profile activation selector . There are some hints that profile activation uses maven-enforcer-rules as detailed in the Introduction to Profiles http : maven.apache.org guides introduction introduction-to-profiles.html page under the section How can I tell which profiles are in effect during a build section . Namely every profile activation which has multiple string values os name etc is referred to the corresponding maven enforcer rule . However it seems that direct inclusion of a custom profile activator isn t obvious in the pom.xml and adding such would likely require a pom version update http : maven.apache.org ref 3.0.4 maven-settings apidocs org apache maven settings Activation.html . Maven3 is also extensible in ways that are very flexible is it possible to hook inclusion of my enforcer rule by the maven extensions mechanism There is documentation on how to include custom lifecycle participants but I fear that profile activation may have already occurred by the time the build starts . Documentation is sparse but the javadoc indicates that AbstractMavenLifecycleParticipant.afterProjectsRead MavenSession session is called after all MavenProject instances have been created . This leaves some doubt in my mind whether it is called is before of after profile activation . I suspect after or how would one get a properly configured MavenProject Could someone tell me if profile activation customization is even remotely possible .. . Answer : You just need to move plugin configuration under profile : Comment : I m not sure if you understand . If I do this won t it configure the enforcer rule after I activate the profile I want the rule to be the activation determination rule . Still I ll test it . Comment : Ok so to get plugins to work I had to throw build tags around it . Just as I suspected it doesn t activate the profile mvn help : active-profiles returns There are no active profiles . Comment : I see.. . Unfortunately the only way to activate certain profile is based on system or environment property . Those properties can t be set by any of the plugins so you can only rely to one you set using -D flag in mvn command-line or on one of environment-variables on your system . See sonatype.com books mvnref-book reference http : www.sonatype.com books mvnref-book reference profiles-sect-activation.html", "Question : I have the following profiles in my parent-pom .. . .. . Why P1 is active in child POM and P2 isn t The directory project.basedir src main whatever does not exist in the parent project but exists in the child one . Comment : Does the directory referenced in the activation condition for P2 exist Please provide complete information when asking a question . Comment : I edited my question to answer to your comment . Comment : @AdrianBer is there any update on the matter .. . Answer : Profile P2 is not activated because the path under its exists tag does not resolve to an existing path even though the directory project.basedir src main whatever exists . If you rewrite the property project.basedir as basedir it should activate the P2 profile . That should mean that the project.basedir does not resolve to the project base directory as it should http : maven.apache.org guides introduction introduction-to-the-pom.html Available Variables . The help : effective-pom shows that it does though . I have reported this MNG-5516 http : jira.codehaus.org browse MNG-5516 . Also I think that P1 will not be active if P2 is . That is correct . Quoting the documentation for activeByDefault http : maven.apache.org guides introduction introduction-to-profiles.html : .. . .. . This profile P1 in this example will automatically be active for all builds unless another profile in the same POM is activated using one of the previously described methods . All profiles that are active by default are automatically deactivated when a profile in the POM is activated on the command-line or through its activation config . The word inherit got me confused because the profile inheritance works in project aggregation http : maven.apache.org guides introduction introduction-to-the-pom.html Project Aggregation but not in project inheritance http : maven.apache.org guides introduction introduction-to-the-pom.html Project Inheritance . To make things clear I simulated this situation . Empty pom means that it is empty except for the standard model group artifact and version tags . Simple scenario .. . .. . directory structure : .. . .. . pom content : .. . .. . If there is no dir directory mvn help : all-profiles outputs : .. . .. . If there is dir directory mvn help : all-profiles outputs : .. . .. . Project inheritance .. . .. . directory structure : .. . .. . Child pom is empty while parent-pom has the profiles as in the simple scenario . Regardless of the existence of the inheritance child dir directory running mvn help : all-profiles from child directory outputs : .. . .. . When running mvn help : effective-pom from child directory it shows that the profiles are indeed not inherited . It behaves as documented http : maven.apache.org guides introduction introduction-to-the-pom.html Project Inheritance : .. . .. . Elements in the POM that are merged are the following : .. . .. . dependencies .. . developers and contributors .. . plugin lists including reports .. . plugin executions with matching ids .. . plugin configuration .. . resources .. . .. . No profiles are mentioned here . Project aggregation .. . .. . directory structure : .. . .. . Module pom is empty while aggregator pom has the profiles as in the simple scenario . If there is no aggregation module dir directory running mvn help : all-profiles from module directory outputs : .. . .. . If there is aggregation module dir directory running mvn help : all-profiles from module directory outputs : .. . .. . When running mvn help : effective-pom from module directory it shows that the profiles are inherited . This is not explicitly documented http : maven.apache.org guides introduction introduction-to-the-pom.html Project Inheritance vs Project Aggregation : .. . .. . Project inheritance .. . .. . If you have several Maven projects and they all have similar configurations you can refactor your projects by pulling out those similar configurations and making a parent project . Thus all you have to do is to let your Maven projects inherit that parent project and those configurations would then be applied to all of them . notes : .. . .. . That does not apply to profiles as it has been shown . Runnnig a maven build from inheritance directory will run only parent build . Project aggregation .. . .. . And if you have a group of projects that are built or processed together you can create a parent project and have that parent project declare those projects as its modules . By doing so you d only have to build the parent and the rest will follow .. . .. . notes : .. . .. . Runnnig a maven build from aggregation directory will run the build of module and then the aggreagtor . Conclusion .. . .. . Profiles can be defined http : maven.apache.org guides introduction introduction-to-profiles.html globally per user or per project . Since the aggregated projects are built together in the same build some sort of profile resolution must be run to calculate the active ones . So this is the confusing part : .. . .. . When projects are inherited profiles are not inherited from parent-pom to child pom . when projects are aggregated profiles are inherited from aggregator pom to module pom . This was tested this using Maven 3.1.0 . and 3.0.5 . Comment : -1 This post is misleading . Profiles are in fact inherited from a parent-pom to child pom . See my answer .", "Question : I have a pom.xml file having surefire : test plugin and have two profiles to run diffrent test modules tests . Iam trying to run these by command mvn surefire : test -PfirstProfile secondProfile . But here only the second profile written in pom.xml gets executed . This command is recommended by apache maven website . Here is my pom.xml file : .. . .. . so how do i run both these profiles together I tried execution IDs also . But it is not working . .. . Answer : Try to change the configuration for maven-surefire-plugin in both profiles like this : .. . .. . Apart from this it s not a good idea to select unit tests by profiles . If those tests are integration test you should go with maven-failsafe-plugin instead . Comment : @khkhmarbaise Basically my first profile is for all Unit Tests where i include Test.java and exclude IntegrationTest.java . And second profile is for all Integration Tests where i exclude Test.java and include IntegrationTest.java . Theses two profiles i am using in my test runner.sh script to run unit tests and integration tests when developers specify -u or -i option respectively . But i also want to run both unit and integration tests when developer specifies -u and -i options both . And that is why i was trying to run both profiles in one maven command . Comment : Continuing my above comment..Which is resulting into running only one profile which is last in pom.xml file . If this problem gets solved by maven-failsafe-plugin you mentioned please let me know . Or if you have another solution pease specify . And the combine.children append solution you mentioned its not working for me . Thanks for your quick reply Comment : If you are working with unit tests by the naming convention Test.java or TestCase.java or Test .java which is handled by maven-surefire-plugin automatically . If you like having integration tests you should follow the naming-conventions and use IT .java IT.java or ITCase.java which is supported out of the box by maven-failsafe-plugin . If you follow the conventions you don t need configuration Convention over Configuration paradigm .", "Question : I would like to mention I am relatively new in Maven configurations . My situation : .. . .. . I use Maven 3.0.5 to build J2E application .. . the application is deployed in four different environments : local dev test and prod .. . I use maven-profiles to configure environment-specific configurations .. . I have defined these configurations in properties files in the file system . This is the file system for those : .. . .. . I load the corresponding property file with the following logic in my pom.xml : .. . .. . With this configuration I can use the respective properties for my current profile almost everywhere . Everywhere but the plugins section . I would pretty much like to load e.g my database url or credentials from such properties files but if I include them in the app.properties they are not evaluated in the plugins section e.g . I get value of endpoint as database endpoint . How do I get the properties loaded from files for the profile accessible in the plugins section .. . .. . PS : Yes if I add those properties directly in the pom.xml as properties under profiles tag they are accessible but I would rather keep my passwords off the pom . Comment : If putting passwords into pom.xml is the only obstacle swap them with paths to password files or just file names relative to some known location to lessen leak . Comment : @VictorSorokin plausible . Still I am looking for neatest possible solution . If I place them in files then i need the logic to read them somewhere right Comment : If I ve got task right maven-resources-plugin will allow you to put per-profile property values into template file which is processed later on : portofino.manydesigns.com en docs portofino3 tutorials http : portofino.manydesigns.com en docs portofino3 tutorials using-maven-profiles-and-resource-filtering Comment : @VictorSorokin I don t believe you have understood me correctly because with the approach you link-to I have to store the password in the pom.xml .. . Answer : I was able to do what I wanted to do . I used properties-maven-plugin linked from say this answer http : stackoverflow.com a 880009 1108032 . What I did was the following : .. . .. . I added the properties-maven-plugin to read the files I needed loaded .. . .. . plugin .. . groupId org.codehaus.mojo groupId .. . artifactId properties-maven-plugin artifactId .. . version 1.0-alpha-2 version .. . executions .. . execution .. . phase initialize phase .. . goals .. . goal read-project-properties goal .. . goals .. . configuration .. . files .. . file profiles build.profile.id app.properties file .. . files .. . configuration .. . execution .. . executions .. . plugin .. . .. . .. . Regretfully here I was not able to make the plugin read all property files in a directory but I find this good enough . I also needed to remove the error the plugin definition above gave for me in Eclipse Plugin execution not covered by lifecycle configuration . To do thatI followed the instructions from the following post http : stackoverflow.com a 14809920 1108032 . With those steps the properties I needed became available for the plugins that used them . Note : actually the properties get loaded after the compile maven command but this is good enough for me as all my property-dependant goals are to be executed after compile goal in sequence of goal calls in all my cases .", "Question : I know there are some related topics but still I can t understand how to do it . I m learning maven and currently in process of creating build profiles . I want maven to auto detect the currently installed java version on my machine . Let s say I m working in our office which uses jdk7 or home jdk8 I want the source and target elements in maven-compiler-plugin pom.xml to auto detect the java -version regardless of environment office home . I ve read about activation but can t perfectly understand the purpose . .. . Answer : You will want to declare two mutually exclusive profiles one for jdk7 builds and one for jdk8 builds . Each profile declaration has two important parts : .. . .. . The activation element is like a conditional and is nested within . Is your profile on or off You will want to set up the jdk based activation . Example for your jdk7 profile : .. . .. . Next you ll want to define the property or properties that get set when your profile is active . Example for jdk7 : .. . .. . Both of those sections get combined with an id element e.g . id jdk7 id and nested within a profile element . If you have any problems getting the jdk detection activation to work I d suggest experimenting with an explicit trigger such as invoking maven with mvn -P jdk7 . From the sounds of it you want a jdk7 and a jdk8 profile to be defined within your pom.xml . But another option is to have a single profile which is always on but define the jdk.version property for the profile differently inside of your .m2 settings.xml file . The settings.xml file at the office would have the jdk7 properties at home it would have jdk8 . http : maven.apache.org guides introduction introduction-to-profiles.html Comment : I ve tried to changed the activation jdk value to 1.4 just to test and why i still get the value of jdk.version which is 1.7 Comment : If you set the activation value to 1.4 then the property won t get set unless your jdk version is 1.4 . And if it does get set it will just be set to the property value defined within the properties element . What was the actual jdk version used to run the test What was the value of your properties element", "Question : I m trying to make two maven-profiles and i think I m doing something wrong . Read on Maven website and did what was suggested but still it not passes values from Pom.xml to properties file My Pom.xml : .. . .. . My properties file : .. . .. . My java class : .. . .. . .. . .. . As result after execution I m getting : .. . .. . But I actually want to get what I m passing in maven-profiles this is main reason to make those profiles . Thank you guys in advance Comment : this is insane . NEVER EVER put passwords into the POM . Use the settings.xml for that . By uploading your POM you ll burn your database secrets . Comment : You right I think it bad practice.. . I just saw many people do it in tutorials so I did it too . Do you know how my Pom.xml file should changed to use settings.xml and how settings.xml should look like to implement that Thanks ahead .. . Answer : Maven doesn t modify your sources instead applying filtering when resources are copied to target . But you shouldn t just replace src main resources with target . Instead you should get final resources from classpath e.g . : .. . .. . I recommend first making sure this works with default values without any profiles then adding the profiles . Comment : Thank you worked for me . First I used target . Then I read you answer and changed like you suggested : Properties properties new Properties InputStream in getClass .getResourceAsStream db.properties properties.load in in.close Now trying to figure it out like one suggested in above answer not to use my password in Pom.xml file and to use in separate properties file for security reasons", "Question : I know there are some related topics but still I can t understand how to do it . I m learning maven and currently in process of creating build profiles . I want maven to auto detect the currently installed java version on my machine . Let s say I m working in our office which uses jdk7 or home jdk8 I want the source and target elements in maven-compiler-plugin pom.xml to auto detect the java -version regardless of environment office home . I ve read about activation but can t perfectly understand the purpose . .. . Answer : Hi I don t think you can have your build environment aware automatically just using the defaults you need some help of profiles and their activation capability see here http : maven.apache.org guides introduction introduction-to-profiles.html . What you can do is introduce 2 different profiles in each profile you can define the JDK you want and it will be activated for your if present then you can configure either the compiler plugin with different source target or just set different values for a a property that is going to indicate the java version . Example : .. . .. . Hope that helps :", "Question : Is it possible for a child POM to inherit profiles defined in the parent POM If so how .. . Answer : I don t think it is inherited . http : www.dashbay.com 2011 03 maven-profile-inheritance http : looking4q.blogspot.com 2011 01 maven-profiles-inheritance.html You may find the profiles available is very likely because they are activated by default Comment : The first link seems very good you might consider summarizing its content in your answer . So the result is that they re kind of inherited but not fully : only some of the functionality will be inherited and inherited profiles might have impact only to the parent-pom where they are defined not child poms .", "Question : Does the Maven resources plugin allow a flexible way to exclude certain files during the injection of Maven profile properties I don t want to exclude the files from assembly just from the injection phase . The project I m working on defines unique Maven Profiles and corresponding properties in Settings.xml for each deployment environment . When the project is built the following steps occur .. . .. . The projects POM defines the resources folder as the target to apply resource filtering .. . The resources folder contains .XML and .PROPERTIES files .. . During mvn : deploy Maven injects Profile properties into the .PROPERTIES file as expected .. . Maven also injects Profile properties into .XML files . This is not desired behavior these files contain placeholders which allow the project to flexible inject values during deploy of the application .. . .. . The resource plugin provides configuration options to define include and exclude options however choosing the exclude option will also exclude the specified file from the assembly folder which is not desired . Is it possibly to tell Maven which files should have placeholders replaced Comment : Ok I probably misunderstood your question then mixing Maven injection with Maven filtering while you probably meant profiles injecting properties into the runtime build . However from the first step you mentioned you do apply filtering right .. . Answer : You are probably using the filters http : maven.apache.org plugins maven-resources-plugin examples filter.html mechanism for which you can decide whether to apply it to a certain folder and which filter should be applied to that folder . Given the following sample POM : .. . .. . Note the filters section within the build section . Here we are telling Maven where how filter is providing placeholders replacement . Note then the filtering true filtering addition to a new resource configured afterwards and related includes excludes patterns . As such Maven will filter only the .properties files of this folder . Now src main conf can contain a conf.properties file with the following content : .. . .. . Note the ant and maven style placeholders . While the src main filters you need to create this folder contains the filter.properties file with the following content : .. . .. . Running the build you will get the conf.properties file in the target directory with the following content : .. . .. . Now if your filter file name is a property injected by a profile you can then inject different filters depending on the environment and only targeting certain files ." ] }
[ "yes-answer-long", "yes-answer-short" ]
maven
UNK_RELATION
ikiwiki@open-source@30
ikiwiki -- ikiwiki is a free @placeholder wiki compiler .
{ "confidence": [ 48.85839080810547, 47.35372543334961, 46.085227966308594, 46.085227966308594, 44.342864990234375, 39.1971321105957, 34.91657257080078, 32.717811584472656, 30.11850929260254, 27.181007385253906, 26.413230895996094, 23.045856475830078, 23.045856475830078, 23.04385757446289, 21.0441951751709, 19.417343139648438, 19.417343139648438, 19.03015899658203, 19.03015899658203, 19.03015899658203, 18.250307083129883, 18.250307083129883, 18.250307083129883, 15.960433959960938, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 15.239445686340332, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148, 13.225408554077148 ], "content": [ "Is there a way to add mathjax support to ikiwiki", "ikiwiki setup scripts are generating setup file outside of created git repository .", "I am trying to split an ikiwiki into two wikis .", "What ikiwiki authentication mechanisms plugins would support this", "I am trying to install ikiwiki on a raspberry-pi which runs lighttpd .", "In git-repo templates create a file called page.tmpl which is a copy of usr share ikiwiki templates page.tmpl -- or where ever that file is in your local system .", "mywiki.setup file : .. . .. . pandoc plugin .. . .. . pandoc command usr bin pandoc .. . .. . pandoc latex 1 .. . .. . pandoc rst 0 .. . .. . pandoc math mathjax .. . .. . .. . add pandoc to your plugin list in your setup file for example .. . .. . plugins to add to the default configuration .. . .. . add plugins qw goodstuff websetup wmd pandoc .. . .. . .. . sudo cp tmp pandoc-iki mathjax.tmpl usr share ikiwiki templates page.tmpl .. . sudo cp tmp pandoc-iki pandoc.pm usr share perl5 IkiWiki Plugin .. . sudo ikiwiki --setup mywiki.setup .. . .. . To activate html css you change the following line in usr share ikiwiki templates page.tmpl : .. . .. . script src http : cdn.mathjax.org mathjax latest MathJax.js config TeX-AMS-MML HTMLorMML type text javascript script .. . .. . to .. . .. . script src http : cdn.mathjax.org mathjax latest MathJax.js config TeX-AMS HTML-full type text javascript script .. . .. . then do sudo ikiwiki --setup mywiki.setup again .", "The larger program is ikiwiki http : ikiwiki.info so the code is not a secret but I don t know where to look for trouble and I can t include all the code in this post for practical reasons .", "If you want to use your ikiwiki offline too you could change the path to the directory : download mathjax and put it somewhere for example into var www myiki and do in change the line above to .. . .. . script src iki mathjax MathJax.js config TeX-AMS HTML-full type text javascript script .. . .. . .. . don t forget to run ikiwiki --setup", "I have the following software : .. . .. . Ubuntu Linux 14.04 LTS .. . .. . Perl 5.18 : .. . .. . and Encode.pm 2.49 : .. . .. . When I use ikiwiki https : packages.debian.org experimental ikiwiki which is a package using Encode.pm I got the following error : .. . .. . Lines 166 - 180 of Encode.pm reads : .. . .. . Does any kind soul have idea how to fix this issue", "I am looking to : .. . .. . host ikiwiki https : ikiwiki.info on an intranet over https .. . provide direct access to the wiki over the intranet https : wiki.our-domain.com .. . provide access to the wiki via iframe embedding from an internet application related app-specific documentation https : support.shotgunsoftware.com entries 28798-URL-Pages-Tabs .. . .. . I have confirmed that other intranet https pages can be embedded although they do not accept recognise cookies .", "I want to add the following to all the headers of all the html pages in my wiki .", "I tried to add those line in a custom templates page.tmpl.mdwn but every time I deploy the wiki those are not added .", "Suppose I have an ikiwiki called myiki compare this question from ikiwiki.info http : ikiwiki.info forum Split a wiki which contains the pages .. . .. . now I want to have two wikis called myikiA and myikiB such that : .. . .. . myikiA contains pageA1 pageA2 .. . .. . The history of myikiA should contain the whole history of those pages but no history of pageB1 pageB2 .. . .. . .. . and : .. . .. . myikiB contains pageB1 pageB2 .. .", "Linking the wiki directory to var www results in a 500 error .", "I can create the wiki in my user s home but once I try to see it on the webserver at the address+ username wikiname it returns 404 .", "The line that contains : .. . .. . this is blocking your url request try removing the tilde http : en.wikipedia.org wiki Tilde from your config file .", "Is there a way to give a list of pages and split the wiki as described above", "I would like to make wiki access seamless i.e .", "users do not need to log in to the wiki when accessing it via Shotgun .", "Are there any technical and especially security reasons not to include the file in git", "What am I doing wrong", "Then you can modify git-repo templates page.tmpl to add whatever you want .", "Install pandoc 1.8 .. . Get the latest pandoc-iki plugin : cd tmp git-clone https : github.com dubiousjim pandoc-iki.git .. . find out where pandoc is installed : which pandoc for example usr bin pandoc .. . add the following lines to your wiki - setup e.g .", "In a small test file I can run .. . .. . and it works fine .", "When I run the same code in a larger program with the same XML input it terminates with .. . .. . full crash log @ pastebin.com http : pastebin.com arRjwiyH .. . .. . However if I do the exchange .. . .. . then it works in both files so this is more a question of curiosity than a real problem for me .", "1 .", "Does anyone have any pointers on what the difference between my test case and the larger code base might be", "2 .", "Is there a speed memory", "difference in the different command calls", "Best practices", "Debian Sid : Perl 5.12.4-1 .", "This is my first Perl encounter so don t assume too much about what I should know about the language .", "I just dove into existing code .", "This concerns the Mercurial backend .", ".. . .. . As per suggestion from cjm I added print n for sort grep XML keys INC which gave output .. . .. . in the large project and .. . .. . in the test file .", ".. . .. . Update : I installed the Debian package libxml-libxml-perl and added XML : : SAX : : ParserPackage XML : : LibXML : : SAX as suggested .", "This also crashed with a different message this time : .. . .. . full backtrace @ pastebin.com http : pastebin.com AFKz0AE1 .. . .. . This time it happened consistently in both the large and the small file though .", "Also only when using open not when using backticks .", "I also installed libxml-libxml-simple-perl but that was not supposed to be more than in practice a wrapper to always use XML : : LibXML as parser .", "It also behaved differently and complained about the options to XMLin that was set so I discarded it .", "Trying to explicitly and blindly make the program use each of the alternatives given by print n for sort grep XML keys INC seems to point towards that XML : : SAX : : Expat is used by default as cjm said since all other alternatives exit with errors and XML : : SAX : Expat behaves exactly like the original problem in both files .", "Explicitly demanding XML : : Simple goes into a loop that allocates all my memory .", "I m thankful for learning about different XML parsers and that XML : : Simple automatically chooses different ones .", "Both parts of my original question somewhat remain though : .. . .. . 1 .", "Why do the programs behave differently", "Even if I explicitly set XML : : SAX : : ParserPackage XML : : SAX : : Expat in both programs one crashes using open and the other works .", "Should I use another method to receive output from the external command", "Is it even wrong to expect XMLin ta work with open but why does it work in one case then", "Or are they simple the wrong questions to ask i.e .", "irrelevant", ".. . .. . UPDATE : More than a week has passed not a flurry of activity here and I solve it a bit differently now without problems .", "I mark cjm s answer as correct since it got me further in the error analysis .", "Thanks", "Why use open", "XML is not utf-8 encoded XML is binary and it s up to the parser to detect the encoding -- that s what xml is for .", "That gives the parser enough information about the encoding to read the charset declaration which is then used to actually parse the document .", "This should not cause segfaults of course but there is possibly a bad interaction going on there .", "Remove use open and see what happens .", "Also worth noting : I quickly glanced over the XS code for XML : : Parser and noticed that it plays very fast-and-loose with the utf8 flag turning on the flag regardless of whether or not the buffer is valid utf8 .", "Use XML : : LibXML :", "use open was only to recreate the header that was already in-place in the larger program .", "I wanted to have the environments as equal as possible to isolate the problem but no it didn t make any difference with or without it in this case .", "XML : : Simple http : search.cpan.org perldoc XML 3a 3aSimple is pure-Perl so it s unlikely to cause the memory-corruption you report .", "It depends on a lower-level XML parser and it s likely the bug you ve encountered is in there .", "But there are multiple parsers it could be using and we d need to know which one .", "Try adding this line right after the XMLin line in your sample program and update your question with the results : .. . .. . This will tell us which XML parser you re actually using on your system .", ".. . .. . Update : XML : : Parser http : search.cpan.org perldoc XML 3a 3aParser XML : : SAX : : Expat http : search.cpan.org perldoc XML 3a 3aSAX 3a 3aExpat XML : : LibXML : : SAX http : search.cpan.org perldoc XML 3a 3aLibXML 3a 3aSAX .. . .. . If you don t already have XML : : LibXML : : SAX installed just installing it should switch your default SAX parser to it .", "If it is installed try putting .. . .. . at the beginning of your program .", "See XML : : SAX : : ParserFactory http : search.cpan.org perldoc XML 3a 3aSAX 3a 3aParserFactory for how the SAX parser is selected .", "XML : : Simple seems to call into XML : : SAX : : Expat which is definitely not pure perl .", "If you look at the stack-trace that s posted you can see that it segfaults in usr lib libexpat.so.1 XML ParseBuffer+0x7c 0xb714464c which is quite expat-looking :", "@jrockway XML : : Simple itself is pure-Perl but the lower-level XML parser it uses usually isn t .", "But XML : : Simple can use XML : : Parser directly or whatever parser XML : : SAX chooses by default .", "I wish I could give this one a Nice Answer badge myself .", "It correctly identifies that the problem isn t coming from within any of the Perl code including XML : : Simple s code shows how to identify which XML parser may be to blame and explains how modules such as XML : : Simple rely on external XML parsing libraries .", "It identified which parser was to blame and described how to force the use of an alternate and probably higher quality parser .", "Nice job .", "I am doing something wrong or missing something", "As requested in the comments here s my lighttpd.conf : .. . .. . I also performed the steps highlighted here : http : ikiwiki.info tips dot cgi", "What is your lighttpd configuration", "the answer lies in the config file you posted .", "If so how to proceed step by step in linux to get this", "The history of myikiB should contain the whole history of those pages but no history of pageA1 pageA2 .. . .. . .. . In a first step I made a copy of my scrdir and tried to remove a page named foo like this note that in the scrdir there are files called foo.mdwn and directories foo as well .", "To do so I did this command : .. . .. . Any Idea what s wrong with it", "Would stackoverflow.com questions 5677766 http : stackoverflow.com questions 5677766 filter-branch-to-remove-extra-directory help or apply in your case", "Hm .", "Thanks however I don t see how to apply it to this situation I am a git newbie .", "git-ls-files seems not to work recusively", "Yes I was just wandering if the git update-index --index-info bit might improve the situation .", "@VonC Could you post the complete command I should try instead of that in my post", "It s really important for me to solve this issue any idea is welcome.. .", "When find finds foo it calls rm -rf on it and then tries to enter it to find more files .", "You can cause find to remove the directory and then ignore it using -prune .", "find .", "-name foo -exec rm -r -f -prune", "Thanks now I get : Rewrite 9ed693bf5ed887beac89b482ba8dcf971429838a 97 1492 find : . index foo.mdwn : No such file or directory tree filter failed : git update-index --index-info find ." ] }
{ "confidence": [ 58.59367752075195, 55.09547424316406, 54.3855094909668, 53.96220397949219, 47.879417419433594, 46.01222610473633, 41.35835266113281, 23.38925552368164 ], "content": [ "Question : Is there a way to add mathjax support to ikiwiki If so how to proceed step by step in linux to get this .. . Answer : Install pandoc 1.8 .. . Get the latest pandoc-iki plugin : cd tmp git-clone https : github.com dubiousjim pandoc-iki.git .. . find out where pandoc is installed : which pandoc for example usr bin pandoc .. . add the following lines to your wiki - setup e.g . mywiki.setup file : .. . .. . pandoc plugin .. . .. . pandoc command usr bin pandoc .. . .. . pandoc latex 1 .. . .. . pandoc rst 0 .. . .. . pandoc math mathjax .. . .. . .. . add pandoc to your plugin list in your setup file for example .. . .. . plugins to add to the default configuration .. . .. . add plugins qw goodstuff websetup wmd pandoc .. . .. . .. . sudo cp tmp pandoc-iki mathjax.tmpl usr share ikiwiki templates page.tmpl .. . sudo cp tmp pandoc-iki pandoc.pm usr share perl5 IkiWiki Plugin .. . sudo ikiwiki --setup mywiki.setup .. . .. . To activate html css you change the following line in usr share ikiwiki templates page.tmpl : .. . .. . script src http : cdn.mathjax.org mathjax latest MathJax.js config TeX-AMS-MML HTMLorMML type text javascript script .. . .. . to .. . .. . script src http : cdn.mathjax.org mathjax latest MathJax.js config TeX-AMS HTML-full type text javascript script .. . .. . then do sudo ikiwiki --setup mywiki.setup again . If you want to use your ikiwiki offline too you could change the path to the directory : download mathjax and put it somewhere for example into var www myiki and do in change the line above to .. . .. . script src iki mathjax MathJax.js config TeX-AMS HTML-full type text javascript script .. . .. . .. . don t forget to run ikiwiki --setup", "Question : I want to add the following to all the headers of all the html pages in my wiki . I tried to add those line in a custom templates page.tmpl.mdwn but every time I deploy the wiki those are not added . What am I doing wrong .. . Answer : In git-repo templates create a file called page.tmpl which is a copy of usr share ikiwiki templates page.tmpl -- or where ever that file is in your local system . Then you can modify git-repo templates page.tmpl to add whatever you want .", "Question : null .. . Answer : I am looking to : .. . .. . host ikiwiki https : ikiwiki.info on an intranet over https .. . provide direct access to the wiki over the intranet https : wiki.our-domain.com .. . provide access to the wiki via iframe embedding from an internet application related app-specific documentation https : support.shotgunsoftware.com entries 28798-URL-Pages-Tabs .. . .. . I have confirmed that other intranet https pages can be embedded although they do not accept recognise cookies . I would like to make wiki access seamless i.e . users do not need to log in to the wiki when accessing it via Shotgun . What ikiwiki authentication mechanisms plugins would support this Because it is an intranet application I m willing to fall back on anonymous access if no other options are available . Comment : other side of the coin : support.shotgunsoftware.com entries https : support.shotgunsoftware.com entries 98188288-What-authentication-options-are-offered-by-Shotgun-URL-Pages-", "Question : null .. . Answer : ikiwiki setup scripts are generating setup file outside of created git repository . Are there any technical and especially security reasons not to include the file in git", "Question : I am trying to install ikiwiki on a raspberry-pi which runs lighttpd . I can create the wiki in my user s home but once I try to see it on the webserver at the address+ username wikiname it returns 404 . Linking the wiki directory to var www results in a 500 error . I am doing something wrong or missing something As requested in the comments here s my lighttpd.conf : .. . .. . I also performed the steps highlighted here : http : ikiwiki.info tips dot cgi Comment : What is your lighttpd configuration .. . Answer : the answer lies in the config file you posted . The line that contains : .. . .. . this is blocking your url request try removing the tilde http : en.wikipedia.org wiki Tilde from your config file .", "Question : I have the following software : .. . .. . Ubuntu Linux 14.04 LTS .. . .. . Perl 5.18 : .. . .. . and Encode.pm 2.49 : .. . .. . When I use ikiwiki https : packages.debian.org experimental ikiwiki which is a package using Encode.pm I got the following error : .. . .. . Lines 166 - 180 of Encode.pm reads : .. . .. . Does any kind soul have idea how to fix this issue .. . Answer : That error occurs when you try to decode something that s already decoded . To expand a little in Perl you can have byte strings and character strings . On input your data can be converted from bytes to a character string e.g . using decode or an IO layer . On output the character string must be converted to bytes e.g . using encode or an IO layer . It seems like in your case the octets variable contains a string that has already been converted from bytes to characters . You could workaround this by adding an early return :", "Question : I am trying to split an ikiwiki into two wikis . Suppose I have an ikiwiki called myiki compare this question from ikiwiki.info http : ikiwiki.info forum Split a wiki which contains the pages .. . .. . now I want to have two wikis called myikiA and myikiB such that : .. . .. . myikiA contains pageA1 pageA2 .. . .. . The history of myikiA should contain the whole history of those pages but no history of pageB1 pageB2 .. . .. . .. . and : .. . .. . myikiB contains pageB1 pageB2 .. . The history of myikiB should contain the whole history of those pages but no history of pageA1 pageA2 .. . .. . .. . In a first step I made a copy of my scrdir and tried to remove a page named foo like this note that in the scrdir there are files called foo.mdwn and directories foo as well . To do so I did this command : .. . .. . Any Idea what s wrong with it Is there a way to give a list of pages and split the wiki as described above Comment : Would stackoverflow.com questions 5677766 http : stackoverflow.com questions 5677766 filter-branch-to-remove-extra-directory help or apply in your case Comment : Hm . Thanks however I don t see how to apply it to this situation I am a git newbie . git-ls-files seems not to work recusively Comment : Yes I was just wandering if the git update-index --index-info bit might improve the situation . Comment : @VonC Could you post the complete command I should try instead of that in my post Comment : It s really important for me to solve this issue any idea is welcome.. . .. . Answer : When find finds foo it calls rm -rf on it and then tries to enter it to find more files . You can cause find to remove the directory and then ignore it using -prune . find . -name foo -exec rm -r -f -prune Comment : Thanks now I get : Rewrite 9ed693bf5ed887beac89b482ba8dcf971429838a 97 1492 find : . index foo.mdwn : No such file or directory tree filter failed : git update-index --index-info find . -name foo -exec rm -r -f -prune Comment : Hmm you might get away with find . -name foo.mdwn -delete -o -name foo -type d -exec rm -rf -prune Something along these lines . It s also worth pointing out that the foo you are using may get expanded by the shell so you might need to toss it in quotes .", "Question : In a small test file I can run .. . .. . and it works fine . When I run the same code in a larger program with the same XML input it terminates with .. . .. . full crash log @ pastebin.com http : pastebin.com arRjwiyH .. . .. . However if I do the exchange .. . .. . then it works in both files so this is more a question of curiosity than a real problem for me . 1 . Does anyone have any pointers on what the difference between my test case and the larger code base might be 2 . Is there a speed memory difference in the different command calls Best practices Debian Sid : Perl 5.12.4-1 . This is my first Perl encounter so don t assume too much about what I should know about the language . I just dove into existing code . The larger program is ikiwiki http : ikiwiki.info so the code is not a secret but I don t know where to look for trouble and I can t include all the code in this post for practical reasons . This concerns the Mercurial backend . .. . .. . As per suggestion from cjm I added print n for sort grep XML keys INC which gave output .. . .. . in the large project and .. . .. . in the test file . .. . .. . Update : I installed the Debian package libxml-libxml-perl and added XML : : SAX : : ParserPackage XML : : LibXML : : SAX as suggested . This also crashed with a different message this time : .. . .. . full backtrace @ pastebin.com http : pastebin.com AFKz0AE1 .. . .. . This time it happened consistently in both the large and the small file though . Also only when using open not when using backticks . I also installed libxml-libxml-simple-perl but that was not supposed to be more than in practice a wrapper to always use XML : : LibXML as parser . It also behaved differently and complained about the options to XMLin that was set so I discarded it . Trying to explicitly and blindly make the program use each of the alternatives given by print n for sort grep XML keys INC seems to point towards that XML : : SAX : : Expat is used by default as cjm said since all other alternatives exit with errors and XML : : SAX : Expat behaves exactly like the original problem in both files . Explicitly demanding XML : : Simple goes into a loop that allocates all my memory . I m thankful for learning about different XML parsers and that XML : : Simple automatically chooses different ones . Both parts of my original question somewhat remain though : .. . .. . 1 . Why do the programs behave differently Even if I explicitly set XML : : SAX : : ParserPackage XML : : SAX : : Expat in both programs one crashes using open and the other works . 2 . Should I use another method to receive output from the external command Is it even wrong to expect XMLin ta work with open but why does it work in one case then Or are they simple the wrong questions to ask i.e . irrelevant .. . .. . UPDATE : More than a week has passed not a flurry of activity here and I solve it a bit differently now without problems . I mark cjm s answer as correct since it got me further in the error analysis . Thanks Comment : Why use open XML is not utf-8 encoded XML is binary and it s up to the parser to detect the encoding -- that s what xml is for . That gives the parser enough information about the encoding to read the charset declaration which is then used to actually parse the document . This should not cause segfaults of course but there is possibly a bad interaction going on there . Remove use open and see what happens . Comment : Also worth noting : I quickly glanced over the XS code for XML : : Parser and noticed that it plays very fast-and-loose with the utf8 flag turning on the flag regardless of whether or not the buffer is valid utf8 . Use XML : : LibXML : Comment : use open was only to recreate the header that was already in-place in the larger program . I wanted to have the environments as equal as possible to isolate the problem but no it didn t make any difference with or without it in this case . .. . Answer : XML : : Simple http : search.cpan.org perldoc XML 3a 3aSimple is pure-Perl so it s unlikely to cause the memory-corruption you report . It depends on a lower-level XML parser and it s likely the bug you ve encountered is in there . But there are multiple parsers it could be using and we d need to know which one . Try adding this line right after the XMLin line in your sample program and update your question with the results : .. . .. . This will tell us which XML parser you re actually using on your system . .. . .. . Update : XML : : Parser http : search.cpan.org perldoc XML 3a 3aParser XML : : SAX : : Expat http : search.cpan.org perldoc XML 3a 3aSAX 3a 3aExpat XML : : LibXML : : SAX http : search.cpan.org perldoc XML 3a 3aLibXML 3a 3aSAX .. . .. . If you don t already have XML : : LibXML : : SAX installed just installing it should switch your default SAX parser to it . If it is installed try putting .. . .. . at the beginning of your program . See XML : : SAX : : ParserFactory http : search.cpan.org perldoc XML 3a 3aSAX 3a 3aParserFactory for how the SAX parser is selected . Comment : XML : : Simple seems to call into XML : : SAX : : Expat which is definitely not pure perl . If you look at the stack-trace that s posted you can see that it segfaults in usr lib libexpat.so.1 XML ParseBuffer+0x7c 0xb714464c which is quite expat-looking : Comment : @jrockway XML : : Simple itself is pure-Perl but the lower-level XML parser it uses usually isn t . But XML : : Simple can use XML : : Parser directly or whatever parser XML : : SAX chooses by default . Comment : I wish I could give this one a Nice Answer badge myself . It correctly identifies that the problem isn t coming from within any of the Perl code including XML : : Simple s code shows how to identify which XML parser may be to blame and explains how modules such as XML : : Simple rely on external XML parsing libraries . It identified which parser was to blame and described how to force the use of an alternate and probably higher quality parser . Nice job ." ] }
[ "yes-answer-long", "yes-answer-short" ]
open-source
UNK_RELATION
iphone-5@iphone@54
iphone-5 -- the iphone-5 is the sixth version of the @placeholder released by apple inc .use this tag for questions specific to this platform .
{ "confidence": [ 46.26183319091797, 44.73174285888672, 42.83804702758789, 42.83804702758789, 42.21124267578125, 41.518558502197266, 41.484161376953125, 41.37216567993164, 41.07692337036133, 41.07692337036133, 40.99745178222656, 40.47540283203125, 40.47540283203125, 40.47540283203125, 40.46460723876953, 40.392948150634766, 40.392948150634766, 40.028297424316406, 40.028297424316406, 40.028297424316406, 39.88951110839844, 39.68107986450195, 39.45654296875, 39.03310012817383, 38.949134826660156, 38.71171951293945, 38.71171951293945, 38.71171951293945, 38.70348358154297, 38.505008697509766, 38.01950454711914, 38.01950454711914, 38.01950454711914, 37.94202423095703, 37.84754943847656, 37.65485763549805, 37.63215637207031, 37.63215637207031, 37.306427001953125, 37.13521194458008, 36.938045501708984, 36.919677734375, 36.528221130371094, 36.528221130371094, 36.528221130371094, 36.528221130371094, 36.50172424316406, 36.389625549316406, 36.33827590942383, 36.33827590942383, 36.33827590942383, 36.33827590942383, 36.160247802734375, 36.160247802734375, 36.142066955566406, 36.1370735168457, 35.66197967529297, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.507911682128906, 35.456912994384766, 35.44866180419922, 35.225807189941406, 35.211181640625, 35.0806884765625, 35.0806884765625, 35.0806884765625, 35.0806884765625, 35.0806884765625, 35.060455322265625, 34.95765686035156, 34.927215576171875, 34.927215576171875, 34.84818649291992, 34.84818649291992, 34.82196807861328, 34.546234130859375, 34.4808464050293, 34.45489501953125, 34.42835235595703, 34.42835235595703, 34.42835235595703, 34.42835235595703, 34.42835235595703, 34.426822662353516, 34.0426139831543, 33.931922912597656 ], "content": [ "iPhone 5 released with new screen-size and resolution .", "iPhone 5 in portrait landscape .. . .. . iPhone 5 in landscape .. . .. . iPhone 5 in portrait", "Buttons in iPhone 5 .", "on iPhone 5 is wrong", "Now that Apple is about to start shipping iPhone 5 s I m looking into extending my applications so they appear full screen on the iPhone 5 .", "detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot", "What version of iOS is on your iPhone 5", "Yup iPhone5 1 is the GSM iPhone 5 iPhone5 2 is the CDMA iPhone 5 iPhone5 3 is the GSM iPhone 5C iPhone5 4 is the CDMA iPhone 5C iPhone6 1 is the GSM iPhone 5S and iPhone6 2 is the CDMA iPhone 5S .", "For example is it iPhone5 1 or iPhone5 2 for iPhone 5", "The Verizon iPhone 5 returns iPhone5 2 .", "The app launches on both iPhone 5 and iPhone 4 .", "As a side note there is another answer on the new iPhone 5 launch image name http : stackoverflow.com questions 12497776 new-image-name-for-iphone-5", "check out your answer over here How to detect iPhone 5 http : stackoverflow.com questions 12446990 how-to-detect-iphone-5 .", "Also iOS6 iPhone 5 nothing clickable at bottom of screen http : stackoverflow.com questions 12533058 ios6-iphone-5-nothing-clickable-at-bottom-of-screen .", "Not everyone has the iPhone 5 .", "I mean currently running device is iPhone 4 or iPhone 5 .", "This happens due to screen height issue between iPhone 5 and iPhone 4 .", "If that s not a possibility then the only remaining option is to have two UIs pre iPhone 5 and iPhone 5 .", "I have check in iPhone 5 simulator ios 7.1... . issue on iPhone 5 Device", "In previous models for example iPhone 5 the 6 1 6 2 where the iPhone 5 but with GSM and GSM+CDMA .", "But they give the different font sizes for all iPhones iPhone 4s iPhone 5 iPhone 5s iPhone 6 and iPhone 6 plus So is there any possible correct way to do the same in iPhone 5 and iPhone 6 .... .", "Duplicate of : stackoverflow.com questions 12446990 how-to-detect-iphone-5 http : stackoverflow.com questions 12446990 how-to-detect-iphone-5 12447113 12447113", "http : stackoverflow.com questions 12395200 how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution .. . .. . How can I load separate storyboards for iPhone 5 and iPhone 4S 4 3G", "Another thing is that iphone-5 size is little bigger then iphone-4 so you need to design accordingly. . please read my answer at Iphone 5 screen-resolution issue http : stackoverflow.com questions 12525200 iphone-5-screen-resolution-issue 12597403 12597403 for better understanding .", "http : stackoverflow.com questions 12396545 how-to-deal-with-iphone-5-screen-size", "it will work in simulator iPhone 5 device not working", "I need to check the device is that iPhone 5 or not", "Your iPhone 5 iPod are they running iOS 7", "It works in general on an iPhone 5 with 6.1.3 .", "Yes you can use the same XIB to design for iPhone 4 and iPhone 5 by using Auto-Layout .", "for iphone-5 it is working fine but problem is for only iphone-4", "I have a game which is adapted to iPhone 4 iPhone 5 screens .", "I have xibs for both iphone-4 iphone-5 screens .", "The blog post I linked earlier iPhone 5 Web App Startup Image http : taylor.fausak.me 2012 09 20 iphone-5-web-app-startup-image explains the media query to match an iPhone 5 .", "My bet goes on iphone6 1 being iPhone 5S and iPhone 5C having the same one as iPhone 5", "after the iPhone 5 launch absolutely MUST have full screen custom UIs for the new iPhone 5 screen-size .", "Detect iPhone 5 to load your new images : .. . .. . .. . .. .", "iPhone 5 has 2 variants : 5 1 5 2 .", "The iPhone 5 screen-resolution is 1136x640 however all dimensions are in 2-pixel units to be consistent with the original iPhone screen - Apple doubled the number of pixels in each direction in the iPhone 4 but wanted all software to run unaltered .", "I m trying to modify an app to work with the new iPhone 5 4 screen .", "I have a iPhone 5 with iOS 7.0.3 and Xcode 5 .", "Will my app still be displayed on iPhone 5 or will it be rejected by Apple do you know", "http : stackoverflow.com questions 12395200 how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution .. . .. . I was just wondering with how should we deal with the iPhone 5 bigger screen-size .", "http : stackoverflow.com questions 12396545 how-to-deal-with-iphone-5-screen-size .. . .. . The iPhone 5 comes with a longer screen 1136x640 vs 960x640 what should be taken care of in order to support the new and old resolutions gracefully", "possible duplicate of UITabBarController does not respond on iPhone 5 simulator : 4-inch retina-display http : stackoverflow.com questions 12543567 uitabbarcontroller-does-not-respond-on-iphone-5-simulator-4-inch-retina-display", "http : stackoverflow.com questions 12396545 how-to-deal-with-iphone-5-screen-size .. . .. . How can I add support for 4-inch iPhone 5 displays to an iOS app in Xcode", "Is it possible to have an iPhone 5 screen-size in iPad with iPhone app", "I have made a game on cocos2d-iphone for iPhone 4 to make it compatible on iPhone 5 wide screen I want to move cocos2d s scene a little bit on right on the iPhone 5 screen .", "As far as detecting iPhone 5 is runningDevice not working for you", "The step counting using pedometer is not working in iPhone 5 .", "Does the iPhone 5 has M7 coprocessor", "ImpactJS was written before iPhone 5 arrived .", "When my App runs on the iPhone 5 it s not displayed in full screen rather in the size of an iPhone 4 .", "But I want to know is it possible to load different storyboards for iPhone 5 and iPhone 4S... .", "iPhone 5 launches only in portrait mode but if you want to support rotations then the iPhone 5 check will need to handle this scenario as well .", "halgatewood.com iphone-5-media-query http : halgatewood.com iphone-5-media-query", "Everything is looking great on the ipad iphone but when I switch my storyboard view to the iphone-5 or run the simulator as the iphone-5 there is an inch or so at the bottom of just whitespace .", "How can I add support for the iPhone 5 s taller screen", "Is there a way I can make my application compatible with iPhone 5", "That will identify your app as one that supports iPhone 5 metrics .", "Also look at the How to develop or migrate apps for iPhone 5 screen-resolution", "Possible Duplicate : .. . How to develop or migrate apps for iPhone 5 screen-resolution", "I m saying that this seamless conversion won t work in the iPhone 5 .", "possible duplicate of How to develop or migrate apps for iPhone 5 screen-resolution", "It looks like either iPhone5 1 or iPhone5 2 depending on the model of iPhone 5 .", "Possible Duplicate : .. . How to deal with iPhone 5 screen-size", "Possible Duplicate : .. . iphone-5 simulator - Cannot click on bottom of screen", "Here s my question : What is the best practice for extending apps for the iPhone 5", "I wana do this because screen-size is different for iPhone 5 .", "Copy them and paste them into the new iPhone 5 xib .", "stackoverflow.com questions 12414817 http : stackoverflow.com questions 12414817 iphone-5-4-bottom-toolbar-not-responding", "Possible duplicate : UITextField Can t find keyplane that supports type 5 for keyboard iPhone-Portrait-PhonePad http : stackoverflow.com questions 28824896 uitextfield-cant-find-keyplane-that-supports-type-5-for-keyboard-iphone-portr", "For example you have one xib-file with background images with resolution 320x480 640x960 640x1136 iPhone 3 iPhone 4 iPhone 5 .", "For more info on platform string see these links theiphonewiki http : theiphonewiki.com wiki index.php title Models stackoverflow http : stackoverflow.com questions 12505414 whats-the-device-code-platform-string-for-iphone-5-ipod-touch-5 and stackoverflow http : stackoverflow.com questions 15742917 identify-iphones-version 15744956 15744956", "If you have an app built for iPhone 4S or earlier it ll run letterboxed on iPhone 5 .", "I have an iPhone 5 and an iPhone 5s both on iOS 7.1.2 completely clean .", "EDIT : .. . .. . I have now discovered an iPhone 5 that is working properly and an iPhone 5s that is not", "It is working good in iPhone 5 but when it is running in iPhone 6 and 6+ there is some space at right side .", "iPhone 5 is retina just like iPhone 4 and 4S and the @2x-image will be used automatically for all these devices .", "I saved the new iPhone 5 xib with the name TipMainViewController-5.xib .. . .. . 2 .", "Edit .. . .. . To enable your apps to work with iPhone 5 you need to add a retina version of the launcher image .", "http : stackoverflow.com questions 12396143 how-to-add-iphone-5-large-screen-support-to-ios-apps-in-xcode", "http : stackoverflow.com questions 12395200 how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution", "I tried to target iPhone 5 specifically and iPhone 5 landscape just to try to figure out one screen-size problem at a time but nothing works .", "In the following screenshot the top is 5S and the bottom is 5 . iPhone 5S shows an extremely translucent effect while iPhone 5 shows a much more subtle effect .", "Here is a simple working code sample for your view controller that shows how to load myXib-5.xib on the iPhone 5 and myXib.xib on iPhones iPods predating the iPhone 5 : .. . .. . It assumes that you are only targeting the iPhone and not the iPad to keep it simple .", "At Apple Dev Forums https : devforums.apple.com thread 168227 tstart 0 : iPhone 5 support with base SDK iOS5.1 .. . 3 .", "I am getting an error ITMS : 90096 which is specific to 4 inch splash-screen for iPhone 5 .", "Use the same @2x images 640x960 which are resized automatically for iPhone 5 .", "Added UDID of 3 devices 2 X iPhone 5 iPad 4 .", "Signed the app and created .ipa and sent to client who is having iphone-5 .", "It s only the startup-image that is called -568h@2x for iPhone 5 .", "The iPhone 5 is loading the last link targeted at it with media-queries .", "possible duplicate of How to deal with iPhone 5 screen-size", "this link help you and solve your problem stackoverflow.com questions 13275144 http : stackoverflow.com questions 13275144 how-to-make-xib-compatible-with-both-iphone-5-and-iphone-4-devices 13283851 13283851", "For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927", "It launches for both iPhone 5 and iPhone 4 but the iPhone 4 loads much much slower this is due to the differences in the processor i believe" ] }
{ "confidence": [ 50.75927734375, 49.970367431640625, 49.83344650268555, 49.653564453125, 49.17210006713867, 48.84082794189453, 48.84082794189453, 48.032291412353516, 45.51284408569336, 43.47882080078125, 43.385772705078125, 42.83228302001953, 42.485496520996094, 42.39910888671875, 41.83517837524414, 41.662086486816406, 41.61786651611328, 41.39372253417969, 41.3153190612793, 40.84618377685547 ], "content": [ "Question : I know that someone was able to dig out iphone6 1 platform string from IOS 7 code . However I don t know what it maps to iPhone 5S or 5C . If anyone has early access to iPhone 5S 5C please post platform string for everyone . For more info on platform string see these links theiphonewiki http : theiphonewiki.com wiki index.php title Models stackoverflow http : stackoverflow.com questions 12505414 whats-the-device-code-platform-string-for-iphone-5-ipod-touch-5 and stackoverflow http : stackoverflow.com questions 15742917 identify-iphones-version 15744956 15744956 Comment : My bet goes on iphone6 1 being iPhone 5S and iPhone 5C having the same one as iPhone 5 Comment : @mindw0rk 5C is a new piece of hardware it ll at least get a minor bump 5 3 . But I d bet C gets 6 1 and S gets 6 2 Comment : iPhone 5 has 2 variants : 5 1 5 2 . Not sure if Apple is doing the same w 5S 5C . If so we ll have 4 variants .. . Answer : iPhone6 1 iPhone 5S GSM .. . iPhone6 2 iPhone 5S Global .. . iPhone5 3 iPhone 5C GSM .. . iPhone5 4 iPhone 5C Global .. . .. . Code :", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : check out your answer over here How to detect iPhone 5 http : stackoverflow.com questions 12446990 how-to-detect-iphone-5 . till now i have not found any answer until some one developer buy iPhone 5 and post some useful information", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : Yup iPhone5 1 is the GSM iPhone 5 iPhone5 2 is the CDMA iPhone 5 iPhone5 3 is the GSM iPhone 5C iPhone5 4 is the CDMA iPhone 5C iPhone6 1 is the GSM iPhone 5S and iPhone6 2 is the CDMA iPhone 5S . Does that answer your question", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : This method covers all devices in market : Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : Are you sure that this is what the code reflect In previous models for example iPhone 5 the 6 1 6 2 where the iPhone 5 but with GSM and GSM+CDMA .", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : You can find a list of all iOS device identifiers here including iPhone 5 models and iPad mini : http : theiphonewiki.com wiki index.php title Models .. . .. . The identifiers of the latest models are : .. . .. . iPhone 5 : iPhone5 1 and iPhone5 2 .. . .. . iPhone 5C : iPhone5 3 and iPhone5 4 .. . .. . iPhone 5S : iPhone6 1 and iPhone6 2 .. . .. . iPhone 6 : iPhone7 2 .. . .. . iPhone 6 Plus : iPhone7 1 .. . .. . iPhone 6S : iPhone8 1 .. . .. . iPhone 6S Plus : iPhone8 2 .. . .. . iPhone SE : iPhone8 4 .. . .. . EDIT : I also made an updated version of the popular iOS Support Matrix http : dorianroy.com blog 2016 03 iphone-se-ipad-pro-new-features-added-to-ios-support-matrix including all models up to iPhone SE and iPad Pro 9.7 . Comment : Link-only answers should always provide the critical information in the answer in case the link goes dead . Comment : Fair enough . I ve added the identifiers to the answer .", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : It looks like either iPhone5 1 or iPhone5 2 depending on the model of iPhone 5 . From @marcoarment who is a well known iOS Developer : .. . .. . iPhone5 1 : model A1428 AT T Canada .. . .. . iPhone5 2 : model A1429 all others .. . .. . A1429 may have two modes but I don t see any iPhone5 3 records . Source : https : twitter.com marcoarment status 249249183029161984", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : The Verizon iPhone 5 returns iPhone5 2 . The GSM phone returns iPhone5 1 .", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : I created a library for detecting the device at runtime . It s called SDVersion http : github.com sebyddd sdversion . Thought some may found it useful .", "Question : For example is it iPhone5 1 or iPhone5 2 for iPhone 5 And what s the difference .. . .. . If anyone has the iPhone 5 please help by running the following code and showing your result . Thank you . Related Link : http : stackoverflow.com a 3950748 482899 Comment : I have recorded user log since Sept . 12 and it seems that iPhone5 2 is more popular than iPhone5 1 . Comment : For iPhone 5S 5C platform string see this post stackoverflow.com questions 18854244 http : stackoverflow.com questions 18854244 what-is-platform-string-for-iphone-5s-5c 18900927 18900927 Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1 Comment : detect all apple known devices using this answer stackoverflow.com questions 25780283 http : stackoverflow.com questions 25780283 ios-how-to-detect-iphone-6-plus-iphone-6-iphone-5-by-macro 34542728 34542728 quot .. . Answer : Comment : Is there a source for this on github or similar so I can suck this in and not have to find and update every time a release happens Comment : Asis Do you mean Asia Comment : Note the harmless repeated iPad3.6 . I do this with static NSDictionary deviceNames static dispatch once t onceToken dispatch once onceToken deviceNames @ @ i386 : @ iPhone Simulator @ x86-64 : @ iPhone Simulator .. . and NSString readableName NSString deviceNames machineName Comment : Thanks man for making a copy-and-paste answer : Comment : for iphone-6 and iphone-6-plus code is : iPhone7 2 and iPhone7 1", "Question : Hi i would like to check iPhone Device Version in iOS . I mean currently running device is iPhone 4 or iPhone 5 . I need to check the device is that iPhone 5 or not Because i have some problem in my app that need to know iPhone 5 or not . So how can i .. . Answer : Based on the answers of this question http : stackoverflow.com questions 448162 determine-device-iphone-ipod-touch-with-iphone-sdk you could determined which model your are using by this : .. . .. . Results can be one of the values : iPod touch iPhone iPad iPhone Simulator iPad Simulator .. . .. . For specific model which version you are using could be determined by creating a Category on UIDevice.h class like this : .. . .. . UIDevice+Utilities.h .. . .. . UIDevice+Utilities.m .. . .. . Example how to call function deviceModelVersion : .. . .. . Possible results could be 1.0 1.1 .. . 2.0 2.1 .. . 3.0 3.1 . . 4.0 4.1 . . 5.0 5.1 .. . .. . .. . To determine if it is iPhone 5 you would have .. . .. . and Comment : Great answer . This makes it really easy to check ranges or have bigger-than smaller-than logic similar to what can be done with SYSTEM VERSION GREATER THAN . . . Love it", "Question : After iOS 8 Apple introduce size classes which is very helpful for the developer . But they give the different font sizes for all iPhones iPhone 4s iPhone 5 iPhone 5s iPhone 6 and iPhone 6 plus So is there any possible correct way to do the same in iPhone 5 and iPhone 6 .... . I don t want checks please like this Set different font-size for iPhone 5 and 6 http : stackoverflow.com questions 30165246 set-different-font-size-for-iphone-5-and-6 .. . .. . Your suitable and best answer is much appreciated . .. . Answer : Use below macro - .. . .. . Hope this will help you Comment : thank you but i found much better answer here stackoverflow.com questions 27065929 http : stackoverflow.com questions 27065929 size-class-to-identify-iphone-6-and-iphone-6-plus-portrait", "Question : Quick question : Do new apps submitted now NEED to have customized UI s for the iPhone 5 display Details : I m looking for a definitive resource article which mentions whether new iPhone apps submitted now i.e . after the iPhone 5 launch absolutely MUST have full screen custom UIs for the new iPhone 5 screen-size . I basically have an iPhone app which I ve been working on for a while pre-iPhone 5 and is only now complete . Obviously it doesn t have custom UI s tailored for an iPhone 5 but of course will run well in the letterboxed format . It d be too much of an effort and cost to change the whole UI to fully support the iPhone 5 screen now so was wondering whether there would be any issue in submitting the app as is and maybe adding iPhone 5 support in a later update . I ve gone through the official App Submission Guidelines without seeing any particular mention of this fact and have come across several similar questions here on SO but none which directly answer this issue . Any help would be welcome .. . Answer : Well it doesn t look like there s any conclusive evidence to dig up on this issue . From what I ve been able to gather .. . .. . Apple still accepts Apps which do not support the new iPhone 5 resolution .. . New apps thought they may not support the new res must at least have iPhone 5 sized screenshots .. . .. . A couple of links which I found useful .. . .. . 1 . At GameSalad forums http : forums.gamesalad.com discussion 49185 is-apple-still-accepting-non-4-5-sdkios6-apps-without-iphone5-res-support .. . 2 . At Apple Dev Forums https : devforums.apple.com thread 168227 tstart 0 : iPhone 5 support with base SDK iOS5.1 .. . 3 . At Apple Dev Forums https : devforums.apple.com thread 169446 tstart 0 : My question", "Question : I have the latest version of Xcode . In one of my projects I noticed that the views for the iPhone were the new iPhone 5 screen sizes . I like it but is there a way to switch back to the smaller screen-size Not everyone has the iPhone 5 . .. . Answer : You can switch between the Form Factors IPhone 5 and the previous versions by clicking on Editor- Apply Form Factor Comment : Because Apple can t seem to stop messing with stuff it s now Editor- Simulated Screen .", "Question : Possible Duplicate : .. . How to deal with iPhone 5 screen-size http : stackoverflow.com questions 12396545 how-to-deal-with-iphone-5-screen-size .. . .. . The iPhone 5 comes with a longer screen 1136x640 vs 960x640 what should be taken care of in order to support the new and old resolutions gracefully .. . Answer : Splash screens screen shots nib files for starters . Additionally I am willing to bet Apple will handle all these mismatches of sizes elegantly at least initially to allow devs time to catch up with these new requirements like how they initially handled non-retina app assets .", "Question : I m developing an app using xcode 4.2 . I m using and older Mac and I am unable to upgrade to a newer version of xcode or iOS . Is there a way I can make my application compatible with iPhone 5 It s a very basic app but all I need to do is stretch the screen to fit iphone-5 . If not how will the display be effected Will it still be the same resolution size as iPhone 4 but just on the 5 s larger screen - like a letterbox effect Comment : I don t think you can . You need to get a version of Xcode that supports iOS 6 which means you need a dev environment running Lion+ . Comment : Thanks trojanfoe - I suspected this may be the case but was hoping there would be some sort of work around . Will my app still be displayed on iPhone 5 or will it be rejected by Apple do you know Even if I can get it on the iStore and then work on optimising it for the iPhone 5 when I get my hands on Lion+ later it will be OK . Comment : Sorry I m not sure however you re going to want to test it on a 4-inch display before submitting it . When developing for Apple devices they expect you to keep up with Hardware and O S which I know isn t possible convenient for everyone . .. . Answer : so what if you can t upgrade your xcode or ios we are here to help you .. . .. . put this code on you appdelegate.h .. . .. . define IS HEIGHT GTE 568 UIScreen mainScreen bounds .size.height 568.0f .. . .. . and use the below condition where you set the frame with coding .. . .. . take a look at the difference of both the height is 88 so you need to add 88 on height of you every component you set frame with coding thats how you can manage your app compatible with iPhone5 . Comment : Thanks for that eptdeveloper . I will definitely be implementing this into my project . I suspected there was a workaround . Thanks a million again", "Question : Possible Duplicate : .. . How to develop or migrate apps for iPhone 5 screen-resolution http : stackoverflow.com questions 12395200 how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution .. . .. . I was just wondering with how should we deal with the iPhone 5 bigger screen-size . As it has more pixels in height things like GCRectMake that use coordinates and just doubled the pixels with the retina non retina problem won t work seamlessly between versions as it happened when we got the Retina http : en.wikipedia.org wiki Retina Display . And will we have to design two storyboards just like for the iPad I personally don t think Apple will require you to check the screen-size every time you have to draw something like many answers say . Does that happen with the iPad Comment : You just add the 4-inch Default.png and your app forthwith takes up the full 4-inch screen-size . Comment : Counterintuitive though it may be simply adding a retina 4-inch launch image as per Pascal s suggestion removes the black area flanking the app view giving full-screen on both retina-4 and previous devices . .. . Answer : No . on iPhone 5 is wrong Comment : This approach works Comment : @Bryan : He can t post it as a comment though . Not enough reputation just joined . Comment : Oh didn t think of that . Never mind . Comment : why 568 Please explain me this . Thanks Comment : The iPhone 5 screen-resolution is 1136x640 however all dimensions are in 2-pixel units to be consistent with the original iPhone screen - Apple doubled the number of pixels in each direction in the iPhone 4 but wanted all software to run unaltered . So 568 is the height of the new screen 1136 2 .", "Question : iPhone 5 released with new screen-size and resolution . When we used images for iPhone 4 retina we just added @2x to image name . Can anybody tell me is it possible to add different images backgrounds buttons etc for new iPhone screen And the second question : can I have in my app separate XIB files : for iPhone old iPhone new like for iPhone and iPad Thank you Comment : You should separate different questions into different questions . .. . Answer : I m currently detecting if current device is a 4 iPhone this way and it works great . hth", "Question : Is there any way I can design my classes for both iPhone4 and iPhone5 using the same xib Comment : The link gives description : stackoverflow.com questions 7754851 http : stackoverflow.com questions 7754851 autoresizing-masks-programmatically-vs-interfact-builder-xib-nib Comment : The link suggested by you shows hoe to set Autoresizing masks programmatically it can be done in either of the two ways not the solution for your issue Comment : this link help you and solve your problem stackoverflow.com questions 13275144 http : stackoverflow.com questions 13275144 how-to-make-xib-compatible-with-both-iphone-5-and-iphone-4-devices 13283851 13283851 .. . Answer : Well short answer to you question is YES .. . .. . Long is : - If you user XCode 4.5 and build app that is universal the NIB files and Classes would work perfectly for Iphone 4 and Iphone 5 Understand for you it important to know the version of SDK of these mobiles not the mobile version them self . Another thing is that iphone-5 size is little bigger then iphone-4 so you need to design accordingly. . please read my answer at Iphone 5 screen-resolution issue http : stackoverflow.com questions 12525200 iphone-5-screen-resolution-issue 12597403 12597403 for better understanding . Also look at the How to develop or migrate apps for iPhone 5 screen-resolution http : stackoverflow.com questions 12395200 how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution answer for more clarification on universal app desing .", "Question : I have difficulty consolidating the UINavigationBar s barTintColor between iPhone 5 and 5S . Both of my phones are on iOS 7 . In the following screenshot the top is 5S and the bottom is 5 . iPhone 5S shows an extremely translucent effect while iPhone 5 shows a much more subtle effect . Only very dark objects are visible behind the navigation bar for iPhone 5 . enter image description here http : i.stack.imgur.com ZQzd3.png .. . .. . I would prefer that both phones look like the iPhone 5 . If I were to increase the alpha of the barTintColor to 1.0 iPhone 5 s navigation bar would become completely opaque . This is the expected result . Although iPhone 5S s bar would become less translucent the effect is still too strong . How would I decrease the translucency even more without making it completely opaque Comment : Both devices are running iOS7 but are they running the same iOS7 version Changes were made to iOS 7.0.3 and further changes have been made in iOS 7.1 beta 1 . Comment : The 5S is on 7.0.2 . The 5 is on iOS 7.0.4 . I ll upgrade the 5S now and see if it makes a difference . Comment : Updating the 5S will make a difference . Comment : how to achieve the blur affect as on first top image for ios7.1 ios8 I ve created question here stackoverflow.com questions 29129845 http : stackoverflow.com questions 29129845 uinavigationbar-blur-ios-7-1-and-above .. . Answer : As discussed in the comments you are seeing different behaviors because one of the devices is using an outdate iOS 7 version . Apple made changes in version 7.0.3 to the way bar tint color is processed and now the alpha value is taken into account . You should focus on the newer version of iOS . Comment : Yeah that was the problem . In iOS 7.0.4 the alpha value is respected . Such a pity that everyone will view my app differently . Comment : To add salt to the injury Apple has modified the algorithm once again in iOS 7.1 beta . I suggest you update one of your development devices and compile using 7.1 SDK to see if your app still looks well there . Comment : Confirmed . It is changed again in 7.1 . What a shame so basically just few users that stayed on 7.0.3 - 7.0.6 have alpha value working . Comment : wtf...changed again in 7.1...but why It was good to have the possibility to set the alpha.. .", "Question : iPhone 5 released with new screen-size and resolution . When we used images for iPhone 4 retina we just added @2x to image name . Can anybody tell me is it possible to add different images backgrounds buttons etc for new iPhone screen And the second question : can I have in my app separate XIB files : for iPhone old iPhone new like for iPhone and iPad Thank you Comment : You should separate different questions into different questions . .. . Answer : The iPhone 5 does not introduce a new pixel-density so you can just use all the retina images you used before . All you need to support the new resolution of the iPhone 5 is to make you views will up the window . For most view like tableview and scrollview this will not present any problems . Also there is not need to add an extra XIB files for the new resolution which is also not supported . Just add the Default-568h@2x.png to you apps bundle to make iOS 6 make you app take up the extra space available in the iPhone 5 . All native controls like the tab bar will behave like you would expect . If you like to support iOS4.3 and 5 . in you app then make sure that the Use Autolayout in the nib setting first tab in interface-builder is turned off . Then make sure you correctly setup the view autoresizingMask http : developer.apple.com library ios documentation uikit reference uiview class UIView UIView.html apple ref doc uid TP40006816-CH3-SW6" ] }
[ "yes-answer-long", "yes-answer-short" ]
iphone
UNK_RELATION
pavlov@qunit@47
pavlov -- pavlov is a behaviorial api for the @placeholder javascript testing framework .
{ "confidence": [ 47.46459197998047, 32.31930923461914, 25.103309631347656, 21.602569580078125, 20.84935188293457, 19.48137092590332, 16.485004425048828, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 14.687257766723633, 11.425063133239746, 11.425063133239746, 11.425063133239746, 11.425063133239746, 11.425063133239746, 11.425063133239746, 11.425063133239746, 11.425063133239746 ], "content": [ "I am using sinon QUnit and Pavlov .", "I am working up a demo of Pavlov so I can contrast it to traditional QUnit tests and show my team the advantages of BDD .", "When I right-click and run the tests in my browser they both work fine but if I right-click and run the tests in VS I get this error : .. . .. . Here are my tests : .. . .. . Pavlov spec : .. . .. . QUnit test : .. . .. . Is there something I m doing in my tests that could be causing the VS error", "Testing each function I know is crucial .", "I am trying to write test driven Javascript .", "I am ok with exposing some API though within limits .", "Any tips are appreciated but please refrain from commenting on my general testing strategy as I m well aware of the flaws .", "But I came to a stumbling block in that the plugin which I am writing needs to have some private functions .", "I cannot peek into how they are functioning .", "What would I need to do if I want to keep my code well tested without changing the structure of it too much", "If you are doing test driven development as suggested by the tags each line of production code is first justified by failing test case .", "In other words the existence of each and every line of your production code is implicitly tested because without it some test must have failed .", "That being said you can safely assume that private function lambda closure is already tested from the definition of TDD .", "If you have a private function and you are wondering how to test it it means you weren t doing TDD on the first place - and now you have a problem .", "To sum up - never write production code before the test .", "If you follow this rule every line of code is tested no matter how deep it is .", "Someone had to say it before I realized how true it is once again .", "Thanks .", "@picardo - this does not answer the core question which is how to test private functions .", "picardo made a conceptual error by suggesting defining tests afterwords .", "But that was not the core of the question which is disappointing because it would be good to get a real answer for that .", "I think there aren t a lot of Chutzpah users out there currently but hopefully I will find some on here .", "I stumbled over Chutzpah along the way and thought it would be really cool to integrate into my project .", "Or is there a bug fix out there somewhere that I haven t found yet", "It s only for example purposes :", "This issue is a bug with the way Chutzpah determines line numbers .", "I just deployed version 1.3.2 CodePlex http : chutzpah.codeplex.com releases view 74085 Vs Gallery http : visualstudiogallery.msdn.microsoft.com 71a4e9bd-f660-448f-bd92-f5a65d39b7f0 and NuGet http : nuget.org packages Chutzpah which will allow Chutzpah to handle this error so that you still get test results .", "However in the code above the line number detection will not work correctly .", "I have filed a separate issue http : chutzpah.codeplex.com workitem 32 for fixing this ." ] }
{ "confidence": [ 41.95988464355469, 41.320457458496094 ], "content": [ "Question : I think there aren t a lot of Chutzpah users out there currently but hopefully I will find some on here . I am working up a demo of Pavlov so I can contrast it to traditional QUnit tests and show my team the advantages of BDD . I stumbled over Chutzpah along the way and thought it would be really cool to integrate into my project . When I right-click and run the tests in my browser they both work fine but if I right-click and run the tests in VS I get this error : .. . .. . Here are my tests : .. . .. . Pavlov spec : .. . .. . QUnit test : .. . .. . Is there something I m doing in my tests that could be causing the VS error Or is there a bug fix out there somewhere that I haven t found yet Any tips are appreciated but please refrain from commenting on my general testing strategy as I m well aware of the flaws . It s only for example purposes : .. . Answer : This issue is a bug with the way Chutzpah determines line numbers . I just deployed version 1.3.2 CodePlex http : chutzpah.codeplex.com releases view 74085 Vs Gallery http : visualstudiogallery.msdn.microsoft.com 71a4e9bd-f660-448f-bd92-f5a65d39b7f0 and NuGet http : nuget.org packages Chutzpah which will allow Chutzpah to handle this error so that you still get test results . However in the code above the line number detection will not work correctly . I have filed a separate issue http : chutzpah.codeplex.com workitem 32 for fixing this .", "Question : I am trying to write test driven Javascript . Testing each function I know is crucial . But I came to a stumbling block in that the plugin which I am writing needs to have some private functions . I cannot peek into how they are functioning . What would I need to do if I want to keep my code well tested without changing the structure of it too much I am ok with exposing some API though within limits . I am using sinon QUnit and Pavlov . .. . Answer : If you are doing test driven development as suggested by the tags each line of production code is first justified by failing test case . In other words the existence of each and every line of your production code is implicitly tested because without it some test must have failed . That being said you can safely assume that private function lambda closure is already tested from the definition of TDD . If you have a private function and you are wondering how to test it it means you weren t doing TDD on the first place - and now you have a problem . To sum up - never write production code before the test . If you follow this rule every line of code is tested no matter how deep it is . Comment : Someone had to say it before I realized how true it is once again . Thanks . Comment : @picardo - this does not answer the core question which is how to test private functions . picardo made a conceptual error by suggesting defining tests afterwords . But that was not the core of the question which is disappointing because it would be good to get a real answer for that ." ] }
[ "yes-answer-long", "yes-answer-short" ]
qunit
UNK_RELATION
nodebox@python@76
nodebox -- nodebox is an application that lets you create 2d visuals using @placeholder programming code .
{ "confidence": [ 50.42693328857422, 47.20054626464844, 45.145782470703125, 44.35261154174805, 43.9219970703125, 43.238037109375, 43.02510452270508, 42.99003982543945, 42.84312438964844, 42.74066925048828, 42.69147491455078, 40.886817932128906, 40.886817932128906, 40.88581085205078, 40.83842849731445, 40.1447868347168, 40.136775970458984, 39.74342727661133, 38.681941986083984, 38.681941986083984, 38.23155975341797, 38.08271026611328, 37.80144119262695, 37.80144119262695, 37.80144119262695, 37.631099700927734, 36.87065887451172, 36.54909133911133, 36.284202575683594, 36.21841812133789, 36.21841812133789, 36.21841812133789, 36.21841812133789, 36.21841812133789, 35.96816635131836, 35.96816635131836, 35.9067497253418, 35.554019927978516, 34.59198760986328, 34.363563537597656, 34.363563537597656, 34.363563537597656, 34.12174987792969, 34.12174987792969, 33.65263366699219, 33.13304138183594, 33.13304138183594, 33.13304138183594, 32.305789947509766, 31.65822982788086, 31.65822982788086, 31.50640296936035, 30.275882720947266, 30.275882720947266, 30.161136627197266, 29.333221435546875, 28.860641479492188, 27.080562591552734, 26.686769485473633, 26.53577423095703, 24.455554962158203, 20.272682189941406, 19.2784423828125, 18.726909637451172, 18.536657333374023, 18.519878387451172, 18.397666931152344, 17.672077178955078, 17.581056594848633, 17.411937713623047, 17.357694625854492, 17.212196350097656, 17.016939163208008, 17.016939163208008, 16.951906204223633, 16.8133487701416, 16.498502731323242, 16.498502731323242, 16.490297317504883, 16.3435001373291, 16.3435001373291, 16.18120765686035, 16.05635643005371, 15.965657234191895, 15.965657234191895, 15.744950294494629, 15.631601333618164, 15.535754203796387, 15.42629623413086, 15.26570987701416, 14.825803756713867, 14.812156677246094, 14.812156677246094, 14.812156677246094, 14.499650955200195, 14.395061492919922, 14.395061492919922, 14.395061492919922, 14.305233001708984, 14.273738861083984 ], "content": [ "The Nodebox Graph docs mention http : nodebox.net code index.php Graph that it supports Nodebox 1.9.5.6 which is a Nodebox 1 Mac only version number .", "I downloaded NodeBox for OpenGL and then pyglet I then did easy install nodebox-opengl .", "You can also put it in Library Application Support NodeBox .", "Why do I see Nodebox and think of Postscript", "I saw that at least one of the authors of pattern was mentioned somewhere in the nodebox website but I thought nodebox was a bit of a tangential project .", "Installing the NodeBox module : .. . .. . If you want to use NodeBox from the command-line you will have to install it .", "The Nodebox-opengl site http : www.cityinabottle.org nodebox says that python-2.5 or 2.6 must be used so it is possible that the problem is that you are using 2.7 .", "The reason you are getting this error is because there is a mistake in the Library Application Support NodeBox en verb verb.txt file they are using to create the dictionary .", "The code in https : www.nodebox.net code index.php Graph doesn t work for nodebox opengl it is only compatible for nodebox 1 for mac so there is no easy fix .", "The Nodebox 1 Graph library is not yet compatible but it includes its own graph class nodebox.graphics.physics.Graph http : www.cityinabottle.org nodebox physics graph .", "But I am running into some trouble starting off at NodeBox OpenGL site http : www.cityinabottle.org nodebox .", "http : processing.org is a language for creating graphics and animations similar to Nodebox .", "I have tried NodeBox OpenGL but it s not working either .", "I m trying to use NodeBox for OpenGL http : www.cityinabottle.org nodebox with Python but I m being unable to import the library on both Python 2 and 3 .", ".. . .. . One option is a project called Nodebox OpenGL which implements the Nodebox API and includes its own graph library with an example of using it under examples 08-physics 07-graph .", "To use it you ll need to download : .. . .. . Nodebox for OpenGL http : www.cityinabottle.org nodebox .. . pyglet cross-platform multimedia library http : www.pyglet.org .. . .. . Extract these and install or just place the nodebox and pyglet packages somewhere on your Python path site-packages .", "So I got Nodebox OpenGL : http : www.cityinabottle.org nodebox .. . .. . Nodebox Graph : https : www.nodebox.net code index.php Graph .. . .. . I tried to run their basic example 1 : .. . .. . That doesn t work because ximport is not defined it is only define by nodebox so instead I tried two things first doing a normal import import graph second putting the ximport function from nodebox in my code : .. . .. . That still doesn t work because now the function size is not recognized .", "So it was NOT in my code but nodebox gave me an error as-if it would still be part of the code .", "I m looking for apps environments similar to Nodebox http : nodebox.net code index.php Tutorial .", "So I tried running an example Nodebox tutorial http : nodebox.net code index.php Grid .", "So do you think Nodebox is using 2.5 and therefore cant find what", "I am trying to create a graph of the connections between the users in my database using nodebox ubuntu-12.04 python-2.7 django-1.3 but when I enter the following instructions I get the error message underneath it : .. . .. . How can I get nodebox to draw my graph", "Nodebox uses Ogden Basic English word list 2000 .", "Is there a framework that is as easy to program as Nodebox and Processing and can export lean movies", "I am trying to use Nodebox Graph on Ubuntu and python-2.7 .", "As you can see in the source http : pydoc.net Python nodebox-opengl 1.6 nodebox.graphics.physics there is no argument label for add edge .", "In Nodebox you can have : .. . .. . 1 . grid as a command .. . 2 . grid as a library .. . .. . If I follow this tutorial : .. . .. . http : nodebox.net code index.php Grid .. . .. . It says to import grid with this : .. . .. . grid ximport grid .. . .. . But in nodebox this is a command which is why I believe things dont work as they should .", "And to make the problem clear again : I got an error message from nodebox that refereed to code that wasnt part of my code anymore .", "The source apparently moved from SVN to GitHub at https : github.com nodebox nodebox-pyobjc as mentioned on the download page http : nodebox.net code index.php Download and the source package structure changed too .", "Nodebox is so cool and I want to know if there were other similar apps out there .", "I have installed nodebox 2 for windows on my machine and have verified that all the examples are running as it is .", "To my knowledge the Graph library has not yet been ported to Nodebox 2 so can only currently run on the Mac .", "Nodebox has a graph web page which is concise informative and seemed what I need .", "As the file to download is on the same page it seemed ideal BUT it fails to mention it is Nodebox 1 which is for Mac ...only", "Current Problem : .. . .. . libGL.so not found .. . guys. . im almost giving up on nodebox for C . . to be continued .. . .. . Update5 : .. . .. . i gave up : workaround : c communicating with nodebox over xml and filesystemwatchers .", "This question could be similar : .. . .. . Pydev Nodebox : AttributeError : NoneType object has no attribute WIDTH http : stackoverflow.com questions 14996530 pydev-nodebox-attributeerror-nonetype-object-has-no-attribute-width .. . .. . but the given answer is not helpful at all to me .", "You can also put it in Library Application Support NodeBox . .. . .. . Otherwise install content from the graph.zip .. . .. . and do .. . .. . Sorry I don t have MAC to try these .", "enter image description here http : i.stack.imgur.com n6Nis.png .. . .. . I ve tried to add a label when I add an edge to each graph like so for the graph g : .. . .. . After some research I found that such labeling was possible under Nodebox 1 which only works for Mac http : nodebox.net code index.php Graph there seems to be no suitable alternative for Nodebox-OpenGL http : www.cityinabottle.org nodebox physics from the documentation .", "The error I receive : .. . .. . You can reproduce the problem : .. . .. . So the question remains how can one add a label to a graph s edge in Nodebox-OpenGL", "So if I look up the package contents of Nodebox it says in Python Framework-Versions only 2.5 .", "Or is the only way to install to .. . .. . Put the en library folder in the same folder as your script so NodeBox can find the library .", "The Nodebox library has been succeeded by pattern http : www.clips.ua.ac.be pattern which is on the PyPI .", "EDIT .. . .. . The following simple snipped is a NodeBox http : nodebox.net code index.php Home script that draws intersecting ellipses .", "I added some NodeBox python code the library allows boolean-operations on paths .", "The NodeBox English linguistic library http : nodebox.net code index.php Linguistics for Python has some nice features like conjugation that could be very useful for a project .", "I like the idea of Nodebox and Processing and would like to generate movies to visualize some data algorithms .", "However Nodebox exports extremely bloated Quicktime files with frame by frame images and Processing only exports Java applications .", "However nodebox opengl has it s own interactive functions to it is possible to use them instead .", "We currently recommend using Subversion to grab a copy : .. . .. . svn co http : dev.nodebox.net svn nodebox trunk nodebox .. . .. . .. . cd src .. . python setup.py install .. . .. . we should be installing the usual way from the source but as you say the procedure is rather outdated .", "I m working on OS X Mavericks and want to use the NodeBox modules in Python scripts .", "How do I properly install and run the up to-date NodeBox modules in Python scripts", "I tried installing through pip in a particular virtualenv but pip search nodebox only brings up : .. . .. . Is it pip-installable in a virtualenv by another name maybe", "My plan : .. . .. . I m trying to setup my C project to communicate with Nodebox to call a certain function which populates a graph and draws it in a new window .", "I did a quick check of my c : python27 Lib site-packages location just be sure the nodebox folder was there all seems good .", "Then a further rummage finds NodeBox OpenGL which has a new methodology and is cross-platform BUT it only lists compatibility with python 2.5-2.6 so with 2.7 should be worth a try", "The problem is with your Path as the tutorial link that you pointed to said : .. . .. . Put the graph library folder in the same folder as your script so NodeBox can find the library .", "I m trying to use the NodeBox : : Linguistics library as suggested here : Using NLTK and WordNet how do I convert simple tense verb into its present past or past participle form", "Let s grab the source and try to install it : .. . .. . So setup.py needs to import the nodebox package let s add the project root dir to Python path so that the nodebox package can be found and try again : .. . .. . Now it turns out some lib paths in setup.py are wrong no one probably used this for some time while the libs moved around but we can fix it : .. . .. . Try install again : .. . .. . Now the package installed successfully and we should be able to use it : .. . .. . Also you may still need to manually install some of the dependencies for everything to work correctly as noted in setup.py itself : .. . .. . I already created a pull request with fixed setup.py lib paths see here https : github.com nodebox nodebox-pyobjc pull 6 files .", "Sadly Nodebox 3 seems all different and haven t yet seen a comparable graph command .. . .. . Looking back on the outcome .. . .. . After achieving an install I prototyped network viewer with a mouse selectable attribute viewer low frame-rate and a constant data set .", "I tried the sample program that s on the site .. . .. . tried to run it but i keep getting this error .. . .. . I tried modifying the python script i.e In your script add the location of NodeBox to sys.path before importing it : MODULE users tom python nodebox import sys if MODULE not in sys.path : sys.path.append MODULE import nodebox .. . .. . But still the same error .", "I did the Nodebox tutorial on the graph library : .. . .. . http : nodebox.net code index.php Graph loading the library .. . .. . I installed the library in Application Support I pasted the following code : .. . .. . And I got this error message : .. . .. . And before that I got this : .. . .. . If I close the file and reopen and just say graph ximport graph .. . .. . Nothing happens it seems to work .", "So then i added in the code as from nodebox.graphics import .. . .. . Now i get the following error .. . .. . Traceback most recent call last : .. . .. . File C : Python26 Lib site-packages graph graph example2.py line 39 in module g.draw highlight path weighted True directed True .. . .. . File C : Python26 lib site-packages graph init .py line 453 in draw self.update .. . .. . File C : Python26 lib site-packages graph init .py line 416 in update self.x ctx.WIDTH - max.x self.d - min .x self.d .. . .. . AttributeError : NoneType object has no attribute WIDTH .. . .. . Is there any way I can run this library from outside of nodebox in windows", "They don t have to be graphics-related I m interested in software that uses programming-languages in a new way .", "could you instead post the actual code that causes the issue", "That is the code .", "At any rate unless you post your actual code I can t really help you .", "search for class Edge object : .. . .. . The best way i can see is to create your own MyEdge Class derived from the official Edge Class which adds a Text the label using .. . .. . or .. . .. . in the draw Method .", "Using this https : www.nodebox.net code index.php Linguistics .", "Some basic commands such has create graph or add node prompted error messages .", "I deleted youtube and google and went back to the code you see above and then ran it and I got as an error message youtube and google .", "If you really feel like you need to use both you can do as I suggested in this NB forum thread http : nodebox.net code index.php shared 2009-07-31-13-36-17 and rename the grid function before you import the library :", "at line 5857 : .. . .. . used uses using used used .. . .. . should be : .. . .. . use uses using used used .. . .. . after editing and saving the file : .. . .. . gives : .. . .. . extra :", "Here s the code : .. . .. . Which basically downloads from a site called morguefile .", "I am pasting the code for which i get the error below.. .", "You can create a list of names parameters for each name of the tense .", "I know displaying more code would help solve the problem faster I am running into formatting problem but I will add code to the question as soon as I can .", "When I changed back to flickr I started getting errors like : .. . .. . But that is not part of my code anymore", "Now i want to use graph library Graph http : nodebox.net code index.php Graph for the same .", "Right now I am using networkx to generate JSON file and trying to animate them with d3js .", "That is you can do everything and more with the library that you could with the function .", "When you run 07-graph.py you should see this : .. . .. .", "I downloaded the package http : nodebox.net code index.php Linguistics verb conjugation I m getting an error even when I tried to get a tense of a verb .", "When you import the grid library grid ximport grid you can no longer use the built-in grid function .", "What you described I knew already .", "Updated but the traceback won t help you any .", "You can t just cut and copy out websites into the attribute and expect it to work .", "Would you recommend using any other library for any other reason", "Maybe the graph module is using something that it cant find .", "Using if hasattr .. . before you try getattr .. . will let you handle such cases gracefully .", "I m pretty sure the reason they re hard-coded in is because you can use these websites to search images probably through their respective APIs and then download them .", "If so have you seen the documentation here https : www.nodebox.net code index.php Linguistics verb conjugation", "Your code sample is unclear .", "Please explain the code more .", "Here is partial example code :", "A flavour of the interactiveness is demonstrated in this site .. . .. . http : www.visualthesaurus.com app view word link try a click and drag on the central word .. . .. . But problems I needed to solve were how to .. . .. . show a live data set consistently ie dealing with orphans transitions as branches you may be viewing may disappear from the data .. . partitioning the viewing of large amounts of data ie view 2 to 20 nodes from several hundred items .. . displaying data without overlapping obscuring or going off the display area .. . displaying differences when not on the current level .. . portability .. . .. .", "If this happens you are good to go", ": But you got it working now .", "Thanks you very much", "I am using Python2.7 running on windows .", "You will get a folder by by name graph ." ] }
{ "confidence": [ 61.794490814208984, 60.00447463989258, 58.138916015625, 57.424949645996094, 57.11262512207031, 55.6947021484375, 54.97585678100586, 54.71136474609375, 53.65697479248047, 53.08873748779297, 52.8763427734375, 49.523101806640625, 49.29459762573242, 47.60964584350586, 46.82981872558594, 46.69773864746094, 45.3177604675293, 44.4775390625, 41.948341369628906, 32.057193756103516 ], "content": [ "Question : I m looking for apps environments similar to Nodebox http : nodebox.net code index.php Tutorial . Nodebox is so cool and I want to know if there were other similar apps out there . They don t have to be graphics-related I m interested in software that uses programming-languages in a new way . Comment : Am I missing something Why do I see Nodebox and think of Postscript .. . Answer : http : processing.org is a language for creating graphics and animations similar to Nodebox . Comment : thx and welcome to SO", "Question : I m looking for apps environments similar to Nodebox http : nodebox.net code index.php Tutorial . Nodebox is so cool and I want to know if there were other similar apps out there . They don t have to be graphics-related I m interested in software that uses programming-languages in a new way . Comment : Am I missing something Why do I see Nodebox and think of Postscript .. . Answer : it was referenced on @Jonas processing.org but alice.org http : www.alice.org is interesting .", "Question : I have installed nodebox 2 for windows on my machine and have verified that all the examples are running as it is . Now i want to use graph library Graph http : nodebox.net code index.php Graph for the same . I went and copied it as it is in my site-packages folder and then ran the examples it had given along it in IDLE . I recieved an error of ximport . So then i added in the code as from nodebox.graphics import .. . .. . Now i get the following error .. . .. . Traceback most recent call last : .. . .. . File C : Python26 Lib site-packages graph graph example2.py line 39 in module g.draw highlight path weighted True directed True .. . .. . File C : Python26 lib site-packages graph init .py line 453 in draw self.update .. . .. . File C : Python26 lib site-packages graph init .py line 416 in update self.x ctx.WIDTH - max.x self.d - min .x self.d .. . .. . AttributeError : NoneType object has no attribute WIDTH .. . .. . Is there any way I can run this library from outside of nodebox in windows thanks.. . I am pasting the code for which i get the error below.. . .. . Answer : The Nodebox Graph docs mention http : nodebox.net code index.php Graph that it supports Nodebox 1.9.5.6 which is a Nodebox 1 Mac only version number . To my knowledge the Graph library has not yet been ported to Nodebox 2 so can only currently run on the Mac . .. . .. . One option is a project called Nodebox OpenGL which implements the Nodebox API and includes its own graph library with an example of using it under examples 08-physics 07-graph . The Nodebox 1 Graph library is not yet compatible but it includes its own graph class nodebox.graphics.physics.Graph http : www.cityinabottle.org nodebox physics graph . To use it you ll need to download : .. . .. . Nodebox for OpenGL http : www.cityinabottle.org nodebox .. . pyglet cross-platform multimedia library http : www.pyglet.org .. . .. . Extract these and install or just place the nodebox and pyglet packages somewhere on your Python path site-packages . When you run 07-graph.py you should see this : .. . .. . enter image description here http : i.stack.imgur.com gCz7g.png Comment : There s a slight problem with this answer it gives directions for Mac OS X users while the questionnaire is specifying his OS as Windows . Comment : Yep the mention of the Graph library is what threw me off -- it only runs on the Mac . Updated the answer with that info and a workaround .", "Question : I am trying to add a label to each edge in my Graph below : .. . .. . enter image description here http : i.stack.imgur.com Qw9L5.png .. . .. . Basically the above with labels for each edge at the center : .. . .. . enter image description here http : i.stack.imgur.com n6Nis.png .. . .. . I ve tried to add a label when I add an edge to each graph like so for the graph g : .. . .. . After some research I found that such labeling was possible under Nodebox 1 which only works for Mac http : nodebox.net code index.php Graph there seems to be no suitable alternative for Nodebox-OpenGL http : www.cityinabottle.org nodebox physics from the documentation . The error I receive : .. . .. . You can reproduce the problem : .. . .. . So the question remains how can one add a label to a graph s edge in Nodebox-OpenGL Comment : cbg @games would ya mind posting the full traceback Comment : @KDawG Hey there . Updated but the traceback won t help you any . The error is pretty clear . .. . Answer : As you can see in the source http : pydoc.net Python nodebox-opengl 1.6 nodebox.graphics.physics there is no argument label for add edge . search for class Edge object : .. . .. . The best way i can see is to create your own MyEdge Class derived from the official Edge Class which adds a Text the label using .. . .. . or .. . .. . in the draw Method . EDIT Mind the add edge Methods docstring :", "Question : The NodeBox English linguistic library http : nodebox.net code index.php Linguistics for Python has some nice features like conjugation that could be very useful for a project . I tried installing through pip in a particular virtualenv but pip search nodebox only brings up : .. . .. . Is it pip-installable in a virtualenv by another name maybe Or is the only way to install to .. . .. . Put the en library folder in the same folder as your script so NodeBox can find the library . You can also put it in Library Application Support NodeBox . It takes some time to load all the data the first time . as stated on their website .. . Answer : The Nodebox library has been succeeded by pattern http : www.clips.ua.ac.be pattern which is on the PyPI . The NLP functionality is contained in the pattern.en module . It can be installed with : Comment : thanks I saw that at least one of the authors of pattern was mentioned somewhere in the nodebox website but I thought nodebox was a bit of a tangential project . is this info somewhere on any of their websites", "Question : I am trying to create a graph of the connections between the users in my database using nodebox ubuntu-12.04 python-2.7 django-1.3 but when I enter the following instructions I get the error message underneath it : .. . .. . How can I get nodebox to draw my graph should I add a try-catch or if-statement to graph init .py in order to prevent object of type none from being written to I know displaying more code would help solve the problem faster I am running into formatting problem but I will add code to the question as soon as I can . .. . Answer : Nodebox has a graph web page which is concise informative and seemed what I need . As the file to download is on the same page it seemed ideal BUT it fails to mention it is Nodebox 1 which is for Mac ...only Then a further rummage finds NodeBox OpenGL which has a new methodology and is cross-platform BUT it only lists compatibility with python 2.5-2.6 so with 2.7 should be worth a try BUT installing the graphics util Pyglet failed the first time ....so more investigation required . Sadly Nodebox 3 seems all different and haven t yet seen a comparable graph command .. . .. . Looking back on the outcome .. . .. . After achieving an install I prototyped network viewer with a mouse selectable attribute viewer low frame-rate and a constant data set . A flavour of the interactiveness is demonstrated in this site .. . .. . http : www.visualthesaurus.com app view word link try a click and drag on the central word .. . .. . But problems I needed to solve were how to .. . .. . show a live data set consistently ie dealing with orphans transitions as branches you may be viewing may disappear from the data .. . partitioning the viewing of large amounts of data ie view 2 to 20 nodes from several hundred items .. . displaying data without overlapping obscuring or going off the display area .. . displaying differences when not on the current level .. . portability .. . .. . In my case a periodically updated structured html-table with colours and zoom levels was the best solution Comment : I have tried NodeBox OpenGL but it s not working either . Some basic commands such has create graph or add node prompted error messages . Right now I am using networkx to generate JSON file and trying to animate them with d3js .", "Question : I am trying to use Nodebox Graph on Ubuntu and python-2.7 . So I got Nodebox OpenGL : http : www.cityinabottle.org nodebox .. . .. . Nodebox Graph : https : www.nodebox.net code index.php Graph .. . .. . I tried to run their basic example 1 : .. . .. . That doesn t work because ximport is not defined it is only define by nodebox so instead I tried two things first doing a normal import import graph second putting the ximport function from nodebox in my code : .. . .. . That still doesn t work because now the function size is not recognized . If I just comment size out I get the following error : .. . .. . .. . self.x ctx.WIDTH - max.x self.d - min .x self.d .. . .. . .. . AttributeError : NoneType object has no attribute WIDTH .. . .. . What do I do This question could be similar : .. . .. . Pydev Nodebox : AttributeError : NoneType object has no attribute WIDTH http : stackoverflow.com questions 14996530 pydev-nodebox-attributeerror-nonetype-object-has-no-attribute-width .. . .. . but the given answer is not helpful at all to me . Comment : ctx in nodebox1 is basically the same as canvas in nodeboxgl . You could probably change your ximport to the one below . . things will probably break as the API is a little different though. . you could probably make wrap the changed APIs in ximport. . def ximport canvas lib : library import lib library . ctx canvas return library .. . Answer : The code in https : www.nodebox.net code index.php Graph doesn t work for nodebox opengl it is only compatible for nodebox 1 for mac so there is no easy fix . However nodebox opengl has it s own interactive functions to it is possible to use them instead . Here is partial example code :", "Question : Hello I am trying to install and make use of NodeboxOpenGL the python library so I can create my own graphs with nodes and edges . But I am running into some trouble starting off at NodeBox OpenGL site http : www.cityinabottle.org nodebox . I downloaded NodeBox for OpenGL and then pyglet I then did easy install nodebox-opengl . Note I did not do pip install I installed pyglet from pyglet http : www.lfd.uci.edu gohlke pythonlibs pyglet . So now I am thinking its all ready to go . I did a quick check of my c : python27 Lib site-packages location just be sure the nodebox folder was there all seems good . I tried the sample program that s on the site .. . .. . tried to run it but i keep getting this error .. . .. . I tried modifying the python script i.e In your script add the location of NodeBox to sys.path before importing it : MODULE users tom python nodebox import sys if MODULE not in sys.path : sys.path.append MODULE import nodebox .. . .. . But still the same error . I am using Python2.7 running on windows . I am not sure what I am doing wrong . Has anyone got any experience with running this library on windows . What am I doing wrong .. . Answer : I am having a similar problem with Linux . The Nodebox-opengl site http : www.cityinabottle.org nodebox says that python-2.5 or 2.6 must be used so it is possible that the problem is that you are using 2.7 . EDIT : Ok I installed pyglet first with pip and or apt-get I did both and I don t get a problem with pyglet . But I still do get other problems .", "Question : I did the Nodebox tutorial on the graph library : .. . .. . http : nodebox.net code index.php Graph loading the library .. . .. . I installed the library in Application Support I pasted the following code : .. . .. . And I got this error message : .. . .. . And before that I got this : .. . .. . If I close the file and reopen and just say graph ximport graph .. . .. . Nothing happens it seems to work . I think it would be a very cool library to work with . Any help would be great . .. . Answer : The problem is with your Path as the tutorial link that you pointed to said : .. . .. . Put the graph library folder in the same folder as your script so NodeBox can find the library . You can also put it in Library Application Support NodeBox . .. . .. . Otherwise install content from the graph.zip .. . .. . and do .. . .. . Sorry I don t have MAC to try these . But the error messages are saying that Python is not able to find your modules properly . For python to find it they should be in the current directory or in the PYTHONPATH . Comment : So if I look up the package contents of Nodebox it says in Python Framework-Versions only 2.5 . I am running on 2.6 and I had problems with this . So do you think Nodebox is using 2.5 and therefore cant find what I dont know what could possible miss . Other modules worked fine . Maybe the graph module is using something that it cant find . What would that be Thanks Comment : Download the graph.zip and extract it . You will get a folder by by name graph . You will have to this graph folder to a particular directory . Move it to the place which is suggested in the tutorial . OR . Open your python interpreter and type import sys sys.path . Move the graph folder into any of these directories . After you restart the interpeter you shoudl do import graph and it should not throw an error . If this happens you are good to go : Comment : Thanks . But now I get an empty white page . Comment : Follow some examples : But you got it working now . Rest should be easy . : Comment : Thanks you very much", "Question : I m working on OS X Mavericks and want to use the NodeBox modules in Python scripts . The post about how to install the modules for console is from 2009 and doesn t work anymore as this refers to version 1.9.x current is 3.0.40 . Also the SVN source isn t there anymore . The sources are available at GitHub . By cloning the project and running : .. . .. . all I get is a build of the desktop version . How do I properly install and run the up to-date NodeBox modules in Python scripts .. . Answer : As said in the docs here http : nodebox.net code index.php Console in section 2 . Installing the NodeBox module : .. . .. . If you want to use NodeBox from the command-line you will have to install it . We currently recommend using Subversion to grab a copy : .. . .. . svn co http : dev.nodebox.net svn nodebox trunk nodebox .. . .. . .. . cd src .. . python setup.py install .. . .. . we should be installing the usual way from the source but as you say the procedure is rather outdated . The source apparently moved from SVN to GitHub at https : github.com nodebox nodebox-pyobjc as mentioned on the download page http : nodebox.net code index.php Download and the source package structure changed too . Let s grab the source and try to install it : .. . .. . So setup.py needs to import the nodebox package let s add the project root dir to Python path so that the nodebox package can be found and try again : .. . .. . Now it turns out some lib paths in setup.py are wrong no one probably used this for some time while the libs moved around but we can fix it : .. . .. . Try install again : .. . .. . Now the package installed successfully and we should be able to use it : .. . .. . Also you may still need to manually install some of the dependencies for everything to work correctly as noted in setup.py itself : .. . .. . I already created a pull request with fixed setup.py lib paths see here https : github.com nodebox nodebox-pyobjc pull 6 files . Tested on OS X Mavericks System Version : OS X 10.9.3 13D65 Kernel Version : Darwin 13.2.0 using Homebrew Python 2.7.6 . Comment : Ok . I tried this . Due to permission i had to switch to root . I also got cc failes with exit status 1 . This questions provides a solution : stackoverflow.com questions 22697440 http : stackoverflow.com questions 22697440 cc-failed-with-exit-status-1-error-when-install-python-library Comment : @jurihandl As for switching to root depends on how your environment is set up . If you use system Python protected filesystem locations etc . you may need root . So what is the actual errors you get the lines before cc failes with exit status 1", "Question : Hello I am trying to install and make use of NodeboxOpenGL the python library so I can create my own graphs with nodes and edges . But I am running into some trouble starting off at NodeBox OpenGL site http : www.cityinabottle.org nodebox . I downloaded NodeBox for OpenGL and then pyglet I then did easy install nodebox-opengl . Note I did not do pip install I installed pyglet from pyglet http : www.lfd.uci.edu gohlke pythonlibs pyglet . So now I am thinking its all ready to go . I did a quick check of my c : python27 Lib site-packages location just be sure the nodebox folder was there all seems good . I tried the sample program that s on the site .. . .. . tried to run it but i keep getting this error .. . .. . I tried modifying the python script i.e In your script add the location of NodeBox to sys.path before importing it : MODULE users tom python nodebox import sys if MODULE not in sys.path : sys.path.append MODULE import nodebox .. . .. . But still the same error . I am using Python2.7 running on windows . I am not sure what I am doing wrong . Has anyone got any experience with running this library on windows . What am I doing wrong .. . Answer : Maybe this helps you : .. . .. . 1 . In geometry.py del pointer import . Replace pointer data to POINTER data .. . 2 . I also had another error so maybe you need add import to shaders.py : from ctypes import c uint", "Question : I downloaded the package http : nodebox.net code index.php Linguistics verb conjugation I m getting an error even when I tried to get a tense of a verb . .. . Answer : The reason you are getting this error is because there is a mistake in the Library Application Support NodeBox en verb verb.txt file they are using to create the dictionary . use is the infinitive http : en.wikipedia.org wiki Infinitive form however used is entered as the infinitive . at line 5857 : .. . .. . used uses using used used .. . .. . should be : .. . .. . use uses using used used .. . .. . after editing and saving the file : .. . .. . gives : .. . .. . extra :", "Question : null .. . Answer : I m trying to use NodeBox for OpenGL http : www.cityinabottle.org nodebox with Python but I m being unable to import the library on both Python 2 and 3 . .. . .. . I don t have a clue on the Python 2 error but the Python 3 one seems nonsensical to me since if I do a tree on the library directory I can see bezier.py in there as such : .. . .. . Why am I getting these errors How may I fix them", "Question : I like the idea of Nodebox and Processing and would like to generate movies to visualize some data algorithms . However Nodebox exports extremely bloated Quicktime files with frame by frame images and Processing only exports Java applications . I want to be able to export movies that don t take a Gigabyte a minute of disk space . Perhaps something like SVG animations or Actionscript which stores the vector-graphics definition of the animation rather than frame images would be better . Is there a framework that is as easy to program as Nodebox and Processing and can export lean movies .. . Answer : Have you tried the MovieMaker library http : processing.org reference libraries video MovieMaker.html that ships with Processing Also it should be fairly simple to save multiple frames using saveFrame http : processing.org reference saveFrame .html . This is option have a couple of advantages : .. . .. . 1 . If your sketch crashes at some point you still have all the frames up to that point unlike writing a .mov file .. . 2 . It s fairly simple to put the frames back into a video file but you also have control over playback speed and can easily do a bit of editing if needed . You can try to a sequence of PDF file using createGraphics http : processing.org reference createGraphics .html to get vector output but I m not sure how stable feasible this option is .", "Question : In Nodebox you can have : .. . .. . 1 . grid as a command .. . 2 . grid as a library .. . .. . If I follow this tutorial : .. . .. . http : nodebox.net code index.php Grid .. . .. . It says to import grid with this : .. . .. . grid ximport grid .. . .. . But in nodebox this is a command which is why I believe things dont work as they should . Is that correct If not how do I import that correct . Thanks .. . Answer : That is correct . When you import the grid library grid ximport grid you can no longer use the built-in grid function . However the functionality of the grid library is a superset of the grid built-in . That is you can do everything and more with the library that you could with the function . The function is provided as a simple to use way of creating a grid whereas the library provides more customization . If you really feel like you need to use both you can do as I suggested in this NB forum thread http : nodebox.net code index.php shared 2009-07-31-13-36-17 and rename the grid function before you import the library :", "Question : I like the idea of Nodebox and Processing and would like to generate movies to visualize some data algorithms . However Nodebox exports extremely bloated Quicktime files with frame by frame images and Processing only exports Java applications . I want to be able to export movies that don t take a Gigabyte a minute of disk space . Perhaps something like SVG animations or Actionscript which stores the vector-graphics definition of the animation rather than frame images would be better . Is there a framework that is as easy to program as Nodebox and Processing and can export lean movies .. . Answer : They are changing the way this works moving towards 2.0 too as they are moving to GSVideo over Quicktime.. . .. . .. . Daniel Shiffman posted about it recently on his blog but it s the only place I ve heard about any changes to post-2.0 tactics though he IS part of the inner circle I know You can find that post at .. . .. . http : www.shiffman.net 2011 12 28 night-8-rendering-out-as-image-sequence .. . .. . Also if you are on OSX you can try Syphon See info here .. . .. . https : forum.processing.org topic syphon-integration-with-processing", "Question : So I tried running an example Nodebox tutorial http : nodebox.net code index.php Grid . Here s the code : .. . .. . Which basically downloads from a site called morguefile . I played with it and tried flickr which also works . I tried google and youtube but neither worked . When I changed back to flickr I started getting errors like : .. . .. . But that is not part of my code anymore I suspect that my pythonpath could be wrong . I once had a similar problem and restarted my Mac and than it worked again . If there is no solution how can I start from scratch Comment : could you instead post the actual code that causes the issue Comment : well i did . That is the code . Only that I modified web.morguefile.search ocean into web.youtube.search and than changed it back to the same and it gave me that error . Like if the error would be stuck in the system . I dont have an explanation for that . .. . Answer : From what I can gather about the library web defined Yahoo morgueFile etc . They did not include youtube + google . Web is a module http : docs.python.org tutorial modules.html the module has methods and attributed hard-coded in . You can t just cut and copy out websites into the attribute and expect it to work . I m pretty sure the reason they re hard-coded in is because you can use these websites to search images probably through their respective APIs and then download them . I have no idea what you re trying to do but I recommend reading the documentation and possibly reading up on python some more . At any rate unless you post your actual code I can t really help you . Comment : Thanks . What you described I knew already . I think I solved it and the problem was the proxy . And to make the problem clear again : I got an error message from nodebox that refereed to code that wasnt part of my code anymore . I deleted youtube and google and went back to the code you see above and then ran it and I got as an error message youtube and google . So it was NOT in my code but nodebox gave me an error as-if it would still be part of the code . That was my problem .", "Question : I m trying to convert certain verbs to other tenses for some NLP task . I m trying to use the NodeBox : : Linguistics library as suggested here : Using NLTK and WordNet how do I convert simple tense verb into its present past or past participle form http : stackoverflow.com questions 3753021 using-nltk-and-wordnet-how-do-i-convert-simple-tense-verb-into-its-present-pas .. . .. . But I find that this code does not print the correct form of the word : .. . .. . I expect it to print find but it actually just prints found . 1 . Is this a bug in the library or am I missing something 2 . Would you recommend using any other library for any other reason .. . Answer : Nodebox uses Ogden Basic English word list 2000 . https : www.nodebox.net code index.php Linguistics ogden .. . .. . From what I see it looks like Found is not part of that list. . http : ogden.basic-english.org word2000.html", "Question : My plan : .. . .. . I m trying to setup my C project to communicate with Nodebox to call a certain function which populates a graph and draws it in a new window . Current situation : fixed.. . see Update2 .. . .. . I have already included all python-modules needed but im still getting a .. . .. . Library GL not found .. . .. . it seems that the pyglet module needs a reference to GL gl.h but can t find it due to IronPython behaviour . Requirement : .. . .. . The project needs to stay as small as possible without installing new packages . Thats why i have copied all my modules into the project-folder and would like to keep it that or a similar way . My question : .. . .. . Is there a certain workaround for my problem or a fix for the library-folder missmatch . Have read some articles about Tao-Opengl and OpenTK but can t find a good solution . Update1 : .. . .. . Updated my sourcecode with a small pyglet window-rendering example . Problem is in pyglet and referenced c-Objects . How do i include them in my c project to be called No idea so far.. . experimenting alittle now . Keeping you updated . SampleCode C : .. . .. . SampleCode Python test.py : .. . .. . Update2 : .. . .. . Line 139 pyglet lib.py sys.platform is not win32.. . there was the error . Fixed it by just using the line : .. . .. . Now the following Error : .. . .. . Kind of a pain to fix it . Updating with results.. . .. . .. . Update3 : .. . .. . Fixed by adding following line right after first line in C -Code : .. . .. . Current Problem : .. . .. . No module named unicodedata but in Python26 DLLs is only a .pyd file . So. . how do i implement it now Update4 : .. . .. . Fixed by surfing : link text http : www.java2s.com Open-Source Python Windows pyExcelerator pywin32-214 isapi test build bdist.win32 winexe temp unicodedata.py.htm and adding unicodedata.py and .pyd to C Projectfolder . Current Problem : .. . .. . libGL.so not found .. . guys. . im almost giving up on nodebox for C . . to be continued .. . .. . Update5 : .. . .. . i gave up : workaround : c communicating with nodebox over xml and filesystemwatchers . Not optimal but case solved . Comment : found following article about getframe : ironpython.codeplex.com workitem 1042 ProjectName ironpython http : ironpython.codeplex.com workitem 1042 ProjectName ironpython And i still dont know how to fix it. . what does -X : Frame option mean .. . Answer : -X : Frames enables the frames option as runtime it slows code down a little to have access to the Python frames all the time . To enable frames when hosting you just need to do : .. . .. . Instead of the null that you re passing now . That s just creating a new dictionary for the options dictionary w the contents Frames set to true . You can set other options in there as well and in general the -X : Name option is the same here as it is for the command-line . Comment : any helping answer is a better then no answer . I ll accept it .", "Question : I have multiple circles as list of connected vertices at random positions . When the circles intersect closed areas are created just like in a venn diagram http : en.wikipedia.org wiki Venn diagram .. . .. . How do I generate separate polygons of all of these areas The goal would be to be able to color every region with a separate polygon like in this example : .. . .. . enter image description here http : i.stack.imgur.com QafLV.png .. . .. . enter image description here http : i.stack.imgur.com kZrSm.png .. . .. . Is a general solution possible with iterative boolean intersection operations EDIT .. . .. . The following simple snipped is a NodeBox http : nodebox.net code index.php Home script that draws intersecting ellipses . oval x0 y0 w h creates an ellipse . According to the doc http : nodebox.net code index.php Compound paths boolean-operations on paths like p 19 .difference p 17 will give a flat result made up of numerous straight line segments . Coordinates of a path can be added or changed . Comment : What information data-structures do you have as input Show us what you have done so far on this . Comment : I added some NodeBox python code the library allows boolean-operations on paths . My rep . is too low to include an image Comment : Add a link-to your image in the question and we can in-line it for you . .. . Answer : You said language-agnostic so I ll answer that way . You can get what you want with boolean-operations on polygons as you propose . If F is a set of non-intersecting polygons and P is a new polygon that overlaps one or more of F then you d want to do this : .. . .. . The idea is to use the new polygon p to split existing flat polygons in F into parts shared with p and not shared with p then remove that overlap with the original polygon from p itself and continue . When you ve done that what s left of p is the part that had no overlap with anything in F so we add that as a new polygon to F . .. . .. . So to handle a random collection of circular polygons you start with F containing one of them which is certainly a flat collection and add more one at a time until done . In practice this is blindingly less efficient than a custom algorithm . A standard way to handle problems like this is the sweep line http : en.wikipedia.org wiki Sweep line algorithm technique . Imagine a vertical line sweepling from left-to-right over the circles . As it touches a circle it starts building a polygon . When it touches an intersection one polygon closes two continue and a new one opens up in the general case . When it reaches the righmost point of a circle the associated polygon closes . A closed polygon is removed from the sweep line and added to an output list . Sweep line algorithms are not conceptually difficult but implementation is fiddly with special cases abounding particularly for lines parallel to the sweeper and when a vertex of one polygon lies on an edge of another though a general technique for working these out is simulation of simplicity http : citeseerx.ist.psu.edu viewdoc summary doi 10.1.1.38.5997 . Generalized arrangement is a term of computational-geometry used to describe problems like this . A generalized arrangement is a collection of lines segments and or polygons normal arrangments are just sets of lines . For example the CGAL library for generalized arrangements http : doc.cgal.org latest Arrangement on surface 2 index.html Chapter 2D Arrangements can do exactly your problem with high efficency . CGAL is a big general libarary in C++ so there are some learning costs . Licensing for commercial purposes is tricky ." ] }
[ "yes-answer-long", "yes-answer-short" ]
python
UNK_RELATION
web-administration@.net@64
web-administration -- microsoft s api for administering iis in @placeholder .
{ "confidence": [ 30.27547836303711, 27.38188934326172, 24.441038131713867, 23.455463409423828, 23.455463409423828, 22.1402645111084, 22.1402645111084, 21.90871238708496, 21.598007202148438, 21.598007202148438, 21.576826095581055, 21.187902450561523, 20.932907104492188, 20.290491104125977, 20.17576789855957, 20.105262756347656, 20.105262756347656, 19.995479583740234, 19.35146141052246, 19.31222152709961, 18.948509216308594, 18.796920776367188, 18.796920776367188, 18.796920776367188, 18.748783111572266, 18.748783111572266, 18.732769012451172, 18.732769012451172, 18.732769012451172, 18.732769012451172, 18.732769012451172, 18.732769012451172, 18.709144592285156, 18.687213897705078, 18.63459014892578, 18.55851173400879, 18.490095138549805, 18.46918487548828, 18.247806549072266, 18.10486602783203, 18.10486602783203, 18.008413314819336, 17.75783920288086, 17.668867111206055, 17.50372886657715, 17.50372886657715, 17.446434020996094, 17.446434020996094, 17.343374252319336, 17.330928802490234, 17.167436599731445, 17.167436599731445, 17.167436599731445, 17.167436599731445, 17.1201171875, 17.094392776489258, 17.094392776489258, 16.940290451049805, 16.884159088134766, 16.673627853393555, 16.673627853393555, 16.671571731567383, 16.671571731567383, 16.47150421142578, 16.414958953857422, 16.296371459960938, 16.154645919799805, 16.042449951171875, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.9047269821167, 15.694353103637695, 15.597824096679688, 15.597824096679688, 15.483194351196289, 15.372676849365234, 15.372676849365234, 15.358943939208984, 15.358943939208984, 15.317437171936035, 15.131921768188477, 15.131921768188477, 15.131921768188477, 15.131921768188477, 15.131921768188477, 14.92979621887207, 14.92979621887207, 14.66672134399414, 14.586703300476074, 14.33468246459961, 14.266351699829102, 14.266351699829102 ], "content": [ "Is there a way to use Web Administration for this", "stackoverflow.com questions 10248365 http : stackoverflow.com questions 10248365 is-microsoft-web-administration-dll-redistributable", "I want to run web-administration tool to set roles for different users .", "I was not able to figure out why the Web Administration module doesn t accept any other parameters .", "I need help in getting site ID and Status on IIS7 using Web Administration .", "Which version of IIS", "What version of Windows IIS", "When presented with this type of scenario in the past I learned to bypass Web Administration and just crack the XML file open with LINQ to XML .", "I can see all of these application pools are running different web sites on IIS .", "For servers you need to install the role Management Tools under Web Server IIS to use the WebAdministration module .", "That command works in the powershell command-line but not in script and WEB-JOBS-QA is in the Application pools list returned by Get-ChildItem -Path IIS : AppPools", "Therefore the only possible conclusion is that this was either repeated user error of some kind or that IIS doing something else behind the scenes when you specify the password manually in the UI versus using the Web Administration module in PowerShell .", "change to lt until it will load properly in IIS .", "For Windows 7 to 10 you will need to install the feature IIS Management Scripts and tools under Internet Information Services Web Management Tools .", "You can also check the same if you haven t already here : Web Administration IIS Provider for Windows PowerShell https : technet.microsoft.com en-us library ee909471 v ws.10 .aspx .. . .. . As you pointed it maybe a bug .", "The Web Administration Tool automatically creates a SQL database named ASPNETDB.MDF in the App Data folder that saves membership data .", "However when I start the Web Administration server all I can see is the default 1 node 1 relationship .", "So my question is : How to setup the credentials for an IIS-WebApplication via powershell", "Microsoft product are well known for not following standards with 100 accuracy", "Probably is cause of IIS version .", "So sometimes our web servers Windows Server 2008 IIS 7.5 will randomly get this error on a really really old .net 2.0ish asp.net classic asp web site that we have .", "The drive called IIS does not exist .", "Test-Path IIS : SslBindings 443", "IIS Manager behaves the same way .", "I use VS2010 PowerShell v2.0 Windows Server 2008 R2 Standard for create deploy scripts ps1 for web-applications IIS 7 .", "UPDATE : It seems to work fine if the item is an IIS site but fails if the item is a web application which makes me wonder if this might just be a bug in the provider .", "I might have missed something but IIS config security settings installed roles etc .", "If the directory exists make sure that the iis user and or app user have the required permissions to that directory .", "Have you tried New-Item -Path IIS : Sites -Name iisAppName -physicalPath physicalpath", "When I execute that command in the context of a script it errors with Cannot find path IIS : AppPools AppPoolName because it does not exist . .", "I m trying to create a script which creates amongst other things a WebApplication in the IIS per powershell .", "stackoverflow.com questions 25215354 http : stackoverflow.com questions 25215354 how-to-set-connectas-user-in-iis-using-powershell", "The build makes use of the WebAdministration module to manage the local IIS instance .", "With a little research you will find that the WebAdministration API you are talking about is nothing more than a glorified manager for an XML file that IIS goes to great lengths to hide from you .", "Next I wanted to open web-administration tool so I typed this in the URL .. . .. . But I got this compilation error .. . .. . After some search I found that StringUtil is not accessible inside its own file .", "I used the web-administration tool from Visual Studio and created Users and Rules.When i test it from Visual Studio it works fine .", "It works fine with IIS but when it s used in IIS Expresss then State property throws NotImplementedException .", "One actual result-of Get-ItemProperty -Path SitePath .ApplicationPool I m doing this on numerous web-applications is WEB-JOBS-QA so the actual command being executed is Restart-WebApplication WEB-JOBS-QA .", "I have been having lots of difficulty automating the setup of a Web application and configuring IIS appropriately with the Application Pool Identity .", "I am trying to stop a website in IIS .", "Worth noting is that Get-ChildItem IIS : SslBindings 443", "Probably best to report it on Microsoft Connect .", "I have a Powershell script that sets up new web servers .", "I have ran the IIS Express from the cmd using the following command : .. . .. . After running the command IIS started working properly .", "It covers IIS 7 and 7.5", "It is a built-in IIS feature .", "I am getting the list of both removed and present sites under IIS default site .", "I am not able to understand why it is happening.Does the IIS also caches already removed applications .", "Further the API tends to perform horribly if you re reflecting over multiple web servers it s using DCOM under the hood so there s a lot of overhead there that you may not actually be interested in .", "Detect OS version : .. . .. . Detect IIS version .. . .. . Module loaded and load as Snapin : .. . .. . References : .. . http : forums.iis.net t 1166784.aspx 1 .. . .. . PowerShell : Load WebAdministration in ps1 script on both IIS 7 and IIS 7.5 http : stackoverflow.com questions 1924217 powershell-load-webadministration-in-ps1-script-on-both-iis-7-and-iis-7-5", "Any chance this is arising as a result-of an unexpected IIS and or application-pool crash restart", "I m confused about several ways for manage IIS using Powershell .", "Are you saying that you can t find ASP in IIS manager", "You can see the entry in IIS Configuration Editor as well :", "I am developing with PHP on an Apache web server .", "At the moment you have to connect to the server via Remote Desktop and run the script locally it uses the WebAdministration module and is full of pseudopaths like IIS : Sites www.mysite.com and so on .", "I d hoped something like get-childitem IIS : myserver Sites might work but can t find any documentation or examples of using this module against a remote-server .", "The purpose of the tool was to build a Web application in Visual Studio and then use TFSDeployer to deploy the build to a specific environment remotely configuring IIS based on properties for that environment .", "Specific problem : .. . .. . I m calling Restart-WebAppPool with the name of a web application-pool that verifiably exists .", "I have a web.config file I need to add the SqlMembershipProvider to it for FBA and I wanted to do it using the WebAdministration module for IIS through PowerShell .", "I have IIS 7.5 and PowerShell 4 .. . .. . Does anyone have an idea why this import would be failing in the script but not at the command-line and how to fix it", "Normally an IIS reset will clear up the issue but this issue is now starting to affect our production servers can t really IIS reset these in the middle of the day and it also seems to be happening more often every where else .", "If PowerShell can do it so can C why go round the houses : List all websites in IIS c http : stackoverflow.com questions 4593412 list-all-websites-in-iis-c-sharp", "How can I get the web sites running on an application-pool by WMI", "But using either appcmd.exe or the API of the WebAdministration.dll the following command results in an invalid web.config due to an encoding issue : .. . .. . appcmd.exe .. . .. . WebAdministration.dll API .. . .. . Both result in the following XML Markup .. . .. . where the has been properly XML encoded into lt but not the which now messes up the web.config .", "A drive with the name IIS does not exist . error .", "The app pool name that I m trying to restart aside from restarting in a powershell command-prompt shows up in Get-ChildItem -Path IIS : AppPools .. . .. . What else am I missing that would cause WebAdministration not to be able to find that app pool", "Please install via Programs and Features or Server Manager .. . .. . I think this particular feature is not necessary to load the WebAdministration module but I active all options in Programs and features .. . .. . turn Windows features on or off IIS Web Management Tools IIS Management Scripts and Tools .. . .. . I do those checks : .. . .. . 1 .", "What permissions does your IIS user currently have to C : Windows Microsoft.NET Framework v2.0.50727 Temporary ASP.NET Files", "I think your problem is with IIS in regards with what permission it has to folders eg .", "I want manage IIS 7 websites appPools virtualDirs etc programmatically using Powershell .", "Using Import-Module vs Add-PSSnapin according OS version or IIS version", "I have a problem where adding Application to IIS Site with network physical path .", "http : stackoverflow.com questions 24392696 getting-cant-find-the-drive-the-drive-called-iis-does-not-exist", "Below is my code to read IIS applications in a remote machine which in in domain using WMI .", "The object should capture the ClientIPAddress and SiteID from the GetExecuteRequest WmiMethod for Worker Processes in IIS .", "I am using Windows 7 Home Premium and the version of IIS I m using is 7.5 .", "I doubt it is the issue but you should be quoting that as a good practice Test-Path -LiteralPath IIS : SslBindings 443", "When I look into applicationHost.config the xml generated looks like this : .. . .. . If I add the same user domain1 user1 manually over the IIS Manager the xml looks like that : .. . .. . It looks like the password gets encrypted in a different way when created via code but I didn t find anything topic regarding that in the web .", "I am trying to find out which web sites are running an application-pool .", "Unfortunately I have the Web Management Tools installed and WebAdministration come up when I list available modules .", "I tried to write these code-first : I m trying to recycle the IIS Application Pool without using Restart-WebAppPool cmdlet .. . .. . As I expected it takes time to stop a IIS ApplicationPool and since PowerShell does not wait for cmdlets to finish their job the Stop-WebAppPool stops the application-pool and returns .", "So you are saying Microsoft.Web.Administration.Site method Stop provided by Microsoft is just throwing exception", "I would recommend to report this here : Microsoft Connect - PowerShell https : connect.microsoft.com PowerShell", "My question is will the database work when i add the website at the IIS", "Just try get-itemproperty IIS : AppPools myapppoolnamehere ProcessModel", "I want to do all this programmatically with Microsoft s API .", "IIS IUSRS which I assume has NETWORKSERVICE the iis account which the app pools under it has Read Execute List Folder Contents and Read access .", "example.ps1 windows-10 only : .. . .. . The work-around I m currently using is : .. . .. . Update .. . .. . Worth noting is that Get-ChildItem IIS : SslBindings 443", "Octopus Deploy uses this to configure apps during production deployments but we also use it to set up developers local IIS settings .", "See the second answer to this question - stackoverflow.com questions 2640526 http : stackoverflow.com questions 2640526 detailed-500-error-message-asp-iis-7-5", "The question is not about ASP.NET temporary files it is a more general question on how are you meant to configure 32-bit applications in PowerShell or indeed in IIS", "Description : An unhandled-exception occurred during the execution of the current web request .", "Most of our web-applications include a Deploy.ps1 Powershell script .", "Also check that you have PowerShell s execution Policy set to Unrestricted : .. . .. . You might want to see this Question http : stackoverflow.com questions 10700660 add-pssnapin-webadministration-in-windows7 .", "Last I checked this wasn t really a good idea as you really didn t want your web-applications to have full control over anything especially not on a production web server .", "@Gene S - The site uses windows auth but now that I am looking at it it has both forms and windows auth checked .", "Server 2008 Orignal Recipe did not have V2 out of the box and still used snapins for IIS ActiveDirectory Exchange etc .. . .. . Server 2008 R2 includes Powershell V2 and hence modules are available .", "Add this line at the top of your script it will import the necessary IIS module : .. . .. . EDIT thanks to @KyleMit : if you don t have WebAdministration installed you may need to first run with elevated privilege" ] }
{ "confidence": [ 31.670608520507812, 30.126888275146484, 27.130218505859375, 26.72589111328125, 25.067401885986328, 25.005525588989258, 24.927146911621094, 23.687969207763672, 23.622394561767578, 23.080657958984375, 22.987262725830078, 22.120376586914062, 21.98546600341797, 21.87488555908203, 21.52112579345703, 21.403839111328125, 21.058082580566406, 20.688209533691406, 20.29613494873047, 20.29613494873047 ], "content": [ "Question : I need help in getting site ID and Status on IIS7 using Web Administration . I have this code .. . .. . but it really doesn t work well with some of our servers . Is there a way to use Web Administration for this Any assistance is greatly appreciated . Thanks .. . Answer : With a little research you will find that the WebAdministration API you are talking about is nothing more than a glorified manager for an XML file that IIS goes to great lengths to hide from you . Further the API tends to perform horribly if you re reflecting over multiple web servers it s using DCOM under the hood so there s a lot of overhead there that you may not actually be interested in . When presented with this type of scenario in the past I learned to bypass Web Administration and just crack the XML file open with LINQ to XML . The file structure isn t really that complicated once you start looking at it . It s a standard .config file located at C : Windows System32 inetsrv config applicationHost.config . If you want to reach it across servers use a URI : .. . .. . Note this may be problematic depending on whether or not the account your application is running under has access to the share you re using . Then just parse it using LINQ to XML or load it up using the classes in the Configuration namespace . This configuration file by the way contains the Site ID virtual-directory path physical path application-pool information and everything you could possibly want to know about every site on the server . Good luck .", "Question : Most of our web-applications include a Deploy.ps1 Powershell script . Octopus Deploy uses this to configure apps during production deployments but we also use it to set up developers local IIS settings . Works absolutely fine on Windows 7 Windows 8.1 and on all our Win2012 production servers . It s not working on Windows 10 and this appears to be because the Set-ItemProperty cmdlet has no effect . No error message or anything it just doesn t do anything . The IIS site api.example.com already exists and we re using Powershell to create the myapp application and then change the application s physical path to D : Projects Demo .. . .. . Running the exact same set of commands on Windows 7 you get identical output but at the last step the PhysicalPath property has changed as expected : .. . .. . Any idea what s going on Is there some new admin restriction on IIS10 Some sort of extra elevated permissions I need to modify settings on existing web-applications or something UPDATE : It seems to work fine if the item is an IIS site but fails if the item is a web application which makes me wonder if this might just be a bug in the provider . Any ideas Comment : It s a bug please vote up . windowsserver.uservoice.com forums 301869-powershell https : windowsserver.uservoice.com forums 301869-powershell suggestions 15077202-make-propeties-name-case-insensitive-for-creating .. . Answer : I was able to replicate your problem . Set-ItemProperty worked for me if I was working on a site . These cmdlets are from the WebAdministration module and I have checked the complete documentation . They seems to be using only websites in the relevant examples . You can also check the same if you haven t already here : Web Administration IIS Provider for Windows PowerShell https : technet.microsoft.com en-us library ee909471 v ws.10 .aspx .. . .. . As you pointed it maybe a bug . I would recommend to report this here : Microsoft Connect - PowerShell https : connect.microsoft.com PowerShell Comment : Connect is replaced with windowsserver.uservoice.com forums 301869-powershell https : windowsserver.uservoice.com forums 301869-powershell", "Question : I want to use the Microsft.Web.Administration.dll Assembly . On my Windows 7 the file is located only in the folder c : windows winsxs . Why is the assembly in this folder and is it reccomended to reference from there .. . Answer : I d rather copy it somewhere locally and reference it from there if you really need it . Comment : Only if it is explicitly redistributable . I don t think you can legally ship MS stuff otherwise . Comment : stackoverflow.com questions 10248365 http : stackoverflow.com questions 10248365 is-microsoft-web-administration-dll-redistributable", "Question : I want to run web-administration tool to set roles for different users . I have ran the IIS Express from the cmd using the following command : .. . .. . After running the command IIS started working properly . Next I wanted to open web-administration tool so I typed this in the URL .. . .. . But I got this compilation error .. . .. . After some search I found that StringUtil is not accessible inside its own file . So I exactly followed the solution available here CS0122 : System.Configuration.StringUtil is inaccessible due to its protection level http : stackoverflow.com questions 32116493 cs0122-system-configuration-stringutil-is-inaccessible-due-to-its-protection I tried both the first and third answers . But still I m getting the same compilation error which points to the line number 989 which I have already commented and replaced with the suggested string value in the answer link provided above . It seems that the compiler still sees the old version of WebAdminPage.cs although I have updated it saved it to save the changes I ran it as administrator and even unloaded the project as suggested by the first answer but still the compiler sees the old version . Can anyone please tell me how to solve this problem Thanks . .. . Answer : After checking the files stored in C : Windows Microsoft.NET Framework v4.0.30319 ASP.NETWebAdminFiles App Code I found that WebAdminPage.cs is not being updated for some reason although I ve saved the changes more than once through Visual Studio . To solve this problem I clicked save-as then I found the .cs pages WebAdminPage.cs in the save-as window was updated the modification date is today so I have just copied it then I paste it in C : Windows Microsoft.NET Framework v4.0.30319 ASP.NETWebAdminFiles App Code the system will ask you if you want to replace the old WebAdminPage.cs with the new one being pasted click yes . This solved my problem the tool is working well now . Comment : You should accept this answer and close the discussion .", "Question : null .. . Answer : In this scenario I am trying to set the requestPathInvalidCharacters Attribute in the httpRuntime section of the web.config . But using either appcmd.exe or the API of the WebAdministration.dll the following command results in an invalid web.config due to an encoding issue : .. . .. . appcmd.exe .. . .. . WebAdministration.dll API .. . .. . Both result in the following XML Markup .. . .. . where the has been properly XML encoded into lt but not the which now messes up the web.config . Since I would like to avoid parsing the web.config myself : can anyone help me solving this issue Comment : What exactly do you mean by which now messes up the web.config It looks like entirely legal XML to me . doesn t need to be escaped . Comment : Try to manually edit web.config until you get desired results e.g . change to lt until it will load properly in IIS . Then try to tweak you string @ until it produces desired web.config . Microsoft product are well known for not following standards with 100 accuracy Comment : Check here : hanselman.com blog http : www.hanselman.com blog ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx looks like value should not be escaped Comment : It seems as-if I have been facing some different error . It actually works with a non-escaped greater than character - Thanks guys", "Question : I need help in getting site ID and Status on IIS7 using Web Administration . I have this code .. . .. . but it really doesn t work well with some of our servers . Is there a way to use Web Administration for this Any assistance is greatly appreciated . Thanks .. . Answer : I would definitely not recommend parsing XML manually since there are lots of complexities on getting it right as others suggested such as encryption inheritance of default values and many others that you are likely going to get wrong . It also would mean you cannot access the runtime state doing it is actually pretty simple you can do : .. . .. . See : enter link description here http : msdn.microsoft.com en-us library microsoft.web.administration.site 28v vs.90 29.aspx", "Question : I have created a website for my university that requires membership . I used the web-administration tool from Visual Studio and created Users and Rules.When i test it from Visual Studio it works fine . The Web Administration Tool automatically creates a SQL database named ASPNETDB.MDF in the App Data folder that saves membership data . My question is will the database work when i add the website at the IIS Do i have to create a sql-server database and add a connection Please answer me.It s really important . i only want a very basic membership . .. . Answer : You can use db from App Data as explained in this SO answer : .. . ASP.NET : How to deploy App Data to webhost http : stackoverflow.com questions 1570893 asp-net-how-to-deploy-app-data-to-webhost - but it depends on your server set up . When using Membership my preference is to run it from a separate db in either SQL SQL Express as then have choice to run IIS site and db on different servers if required . Also better for security scaling etc . Once db is created you can use aspnet regsql.exe to install Membership services into the db . It s usually located here - c : Windows Microsoft.NET Framework versionNumber aspnet regsql.exe . Can run as GUI or command-line : .. . http : msdn.microsoft.com en-us library x28wfk74.aspx .. . .. . When running Membership from a separate db you ll also need to configure a provider in web.config . Something along the lines of this : .. . .. . in System.Web section : .. . .. . I ve used a similar set up to this a good few times with no problems . If using db from App Data you shouldn t need to do any of the web.config stuff", "Question : I m coming onto a project that uses PowerShell to script the build . The build makes use of the WebAdministration module to manage the local IIS instance . When I run the build script the following error is thrown when trying to import WebAdministration . Error : 06 29 2016 17 : 28 : 35 : At C : dev src nib-ravendb build ConfigureIis.ps1 : 10 char : 1 + Import-Module WebAdministration + Exception : The specified module WebAdministration was not loaded because no valid module file was fo und in any module directory . ERROR : 1 .. . .. . How ever when I run Import-Module WebAdministration at the PowerShell command-line the module is imported and I can use features from it . Subsequently running the build script still fails . I have IIS 7.5 and PowerShell 4 .. . .. . Does anyone have an idea why this import would be failing in the script but not at the command-line and how to fix it .. . Answer : For servers you need to install the role Management Tools under Web Server IIS to use the WebAdministration module . To see if you have the module available use Get-Module -ListAvailable . For Windows 7 to 10 you will need to install the feature IIS Management Scripts and tools under Internet Information Services Web Management Tools . You could try manually locating the WebAdministration .psd1 file and then import it . Use env : psmodulepath to help locate where your modules are stored then run : .. . .. . If Server 2008 you could try the following but this may not work on 2012 and upwards : .. . .. . Note You will need to run the script with administrator rights to be able to load the WebAdministration module with Import-Module or Add-PSSnapin . Also check that you have PowerShell s execution Policy set to Unrestricted : .. . .. . You might want to see this Question http : stackoverflow.com questions 10700660 add-pssnapin-webadministration-in-windows7 . Comment : Thanks for your response @Richard . Unfortunately I have the Web Management Tools installed and WebAdministration come up when I list available modules . I can even use it from the shell . Just when I run the script it can t be imported . Any idea on that Comment : @Klee I have updated my question with some things you could try . Comment : thanks . The first answer would have likely worked . The other two I had already tried . In the end there was a problem possibly with chocolatey that was truncating env : PSModulePath to the first entry this is why the script was working if I typed it in but not in the script . I worked around it by reordering the entries in env : PSModulePath Thanks heaps for you help .", "Question : null .. . Answer : Specific problem : .. . .. . I m calling Restart-WebAppPool with the name of a web application-pool that verifiably exists . When I execute that command in the context of a script it errors with Cannot find path IIS : AppPools AppPoolName because it does not exist . . When I execute the exact same command in powershell console it runs like a charm . Context : .. . .. . I load the WebAdministration module at the beginning of the script using Import-Module WebAdministration . I rely on other commands from that module in a number of spots in the script all of which operate successfully . I am logging the name of the app pool I am trying to restart into a log file right before calling the command and the name there is right as well as being correct in error message . I am retrieving the app pool name with Get-ItemProperty -Path SitePath .ApplicationPool where SitePath has been used throughout the script to operate on the site in question . Extra-annoyingly immediately before trying to restart the app pool I reset the root directory of the application in question to a new physical path using Set-ItemProperty -Path SitePath -Name PhysicalPath -Value fullAppPath which works perfectly so I know WebAdministration is loaded the most obvious reason for not being able to find the path of the app pool that I m aware of . The app pool name that I m trying to restart aside from restarting in a powershell command-prompt shows up in Get-ChildItem -Path IIS : AppPools .. . .. . What else am I missing that would cause WebAdministration not to be able to find that app pool Comment : What is the value of the -Name parameter you re passing to Restart-WebAppPool A brief snippet actual code being used would be helpful . Comment : well the exact powerhell commands I m using are in the question . One actual result-of Get-ItemProperty -Path SitePath .ApplicationPool I m doing this on numerous web-applications is WEB-JOBS-QA so the actual command being executed is Restart-WebApplication WEB-JOBS-QA . That command works in the powershell command-line but not in script and WEB-JOBS-QA is in the Application pools list returned by Get-ChildItem -Path IIS : AppPools Comment : Strange...I ve run pretty much the same code in a script and it works fine see : gist.github.com kevinkenny 6b482fb8b2fa828c7207 https : gist.github.com kevinkenny 6b482fb8b2fa828c7207 . What version of Windows IIS Which PowerShell version Comment : Sorry also...is this being run over powershell-remoting Comment : No problem @kev in this case no - this is being run on the local machine . I ll be doing the same thing using Microsoft.Web.Administration.ServerManager on a remote machine at some point but first am trying to troubleshoot the local changes that seem like they ought to work .", "Question : I have a web.config file I need to add the SqlMembershipProvider to it for FBA and I wanted to do it using the WebAdministration module for IIS through PowerShell . I used the Add-WebConfiguration cmdlet and can add the provider correctly but it only takes the name and type properties and drops the rest . I had connectionStringName enablePasswordReset passwordFormat and others in a hash table that I was passing to the cmdlet but it only took those two out of the hash table and ignored the rest . The same thing happened for my RoleManager provider . I then tried Add-WebConfigurationProperty to add applicationName to it and got this message : .. . .. . Property applicationName is not found on add . When I opened the web.config file in Visual Studio 2010 I found that the schema file defining configuration-files shows only two properties on membership add : name and type . Where are all the others It seems that the WebAdministration module is validating the properties added using Add-WebConfigurationProperty against the schema file to see if it s a valid property . The problem is that they are valid properties but aren t defined in the schema so how do I override this behavior and make the module add my property that I know is valid Comment : Can t you add them directly accessing the XML file Comment : Yes I can add them when editing the file directly . Comment : So why don t you add them in the file with PowerShell Comment : That is what I m trying to do . Comment : So you are looking a way to insert data in a correct place in an XLM file Can you give us the XML file or a place where we can download it and the things you want to add into and where . .. . Answer : I was not able to figure out why the Web Administration module doesn t accept any other parameters . I resorted to using XDocument to manually manipulate the XML file . Oh well maybe they ll fix it some day.. .", "Question : So sometimes our web servers Windows Server 2008 IIS 7.5 will randomly get this error on a really really old .net 2.0ish asp.net classic asp web site that we have . Normally an IIS reset will clear up the issue but this issue is now starting to affect our production servers can t really IIS reset these in the middle of the day and it also seems to be happening more often every where else . So I ve been looking into possible fixes for this issue but the only one that seems to be popping up everywhere is that if I grant NETWORKSERVICE IIS WPG full control over the temporary asp.net files it should just fix itself . Last I checked this wasn t really a good idea as you really didn t want your web-applications to have full control over anything especially not on a production web server . Any guidance on this issue would be appreciated . Thanks Alex .. . .. . Example Errors : .. . .. . Server Error in Application . Could not load file or assembly Csla.Extension or one of its dependencies . Access is denied . Description : An unhandled-exception occurred during the execution of the current web request . Please review the stack-trace for more information about the error and where it originated in the code . Exception Details : System.IO.FileLoadException : Could not load file or assembly Csla.Extension or one of its dependencies . Access is denied . .. . .. . Could not load file or assembly AjaxControlToolKit or one of its dependencies . Access is denied . Description : An unhandled-exception occurred during the execution of the current web request . Please review the stack-trace for more information about the error and where it originated in the code . Exception Details : System.IO.FileLoadException : Could not load file or assembly AjaxControlToolKit or one of its dependencies . Access is denied . Source Error : No relevant source lines .. . .. . Source File : .. . .. . c : Windows Microsoft.NET Framework v2.0.50727 Temporary ASP.NET Files root 2794b922 App Web search.aspx.cdcab7d2.jqmd63vs.0.cs Comment : Are you using anonymous access What permissions does your IIS user currently have to C : Windows Microsoft.NET Framework v2.0.50727 Temporary ASP.NET Files You do not have to give it full control but in most cases it needs at least Read and Write permission . Comment : Any chance this is arising as a result-of an unexpected IIS and or application-pool crash restart Might check the logs for something like this . Comment : @David W - Yes the site is really old and bulky so the app pool restarting is a definite possibility . We currently have it set up to recycle once a night but it does recycle every so often due to awesome amounts of memory-leaks . Comment : @Gene S - The site uses windows auth but now that I am looking at it it has both forms and windows auth checked . IIS IUSRS which I assume has NETWORKSERVICE the iis account which the app pools under it has Read Execute List Folder Contents and Read access . I can give it Write permissions as well but again isn t that a security risk .. . Answer : I think your problem is with IIS in regards with what permission it has to folders eg . project folders .So check your application which application-pool its in . So you can give the appropriate rights to the account in that pool . By default in IIS7 the account is NETWORK SERVICE . Then you would essentially go to the relevant folders and allow read-write access or whichever needed to the account .", "Question : I have been having lots of difficulty automating the setup of a Web application and configuring IIS appropriately with the Application Pool Identity . I am doing this in a Web application deployment script written in PowerShell . My requirement is that I need my PowerShell script to set the application-pool identity user to a specific service account mydomain svcuser and password . Here is the sample code : .. . .. . When I run this everything appears to work correctly--no errors are thrown and the application identity user name appears in IIS--but for some reason the password does not get set correctly if at all . Since it is a password I cannot verify whether it has been set but I can conclude that it if it is it is not set correctly . It will not authenticate the resulting application-pool user until I manually go in and enter the password in IIS . As a result the application fails after being deployed to the Web server and requires manual intervention . Am I missing something here Comment : I think you can actually verify the password set on the processmodel object if you check it using powershell . Just try get-itemproperty IIS : AppPools myapppoolnamehere ProcessModel Comment : Great thank you . Now at least I can verify what it is actually doing with the password . Hopefully that will let me get closer to a path to a solution . Comment : I have confirmed that the password is in fact being set correctly . Therefore the only possible conclusion is that this was either repeated user error of some kind or that IIS doing something else behind the scenes when you specify the password manually in the UI versus using the Web Administration module in PowerShell . The basic symptom is that after running the deployment of my Web applications the application pools fail and stop the first time they are hit . Then manually re-entering the same password fixes the problem . Comment : As it turns out this whole thing was a red herring . The reason that the password is not getting entered correctly is something that I had not expected . The script runs correctly when I run from PowerShell console but in my actual script I am obtaining an encrypted password from a file then decrypting it using keys that are in the registry and all this is being called remotely using PSExec . When I run in PowerShell it is decrypted properly but when I do it over PSExec the same user cannot access the keys from the registry and thus cannot decrypt the password and sets it incorrectly . Comment : Unfortunately I cannot reproduce the PSExec claim I made above and running PSExec manually I can most certainly read a registry on the machines same machines same account so the search goes on . I may just close or edit the question once I get the details I need in order to even ask the right question . : .. . Answer : You would do this as follows : .. . .. . Set-ItemProperty IIS : AppPools app-pool-name -name processModel -value @ userName user name password password identitytype 3 .. . .. . See this document here for an explanation and a reference of the indentity type numeric for the user type you will run the app pool under : http : www.iis.net configreference system.applicationhost applicationpools add processmodel Comment : This answer is really already part of the question . I was already setting the user name and password . As documented in the comments above the actual issue is that running the code sets the password correctly but not when it is run in my particular case which is TFSDeployer calling PowerShell calling PSExec calling PowerShell . Something gets lost here . I have moved on to a different role at a different company and am unlikely to ever return to this problem and figure out what caused it though so I hope it provides someone some use somewhere down the line . Comment : Using this answer without Import-Module WebAdministration will result in an Set-ItemProperty : Cannot find drive . A drive with the name IIS does not exist . error . as per stackoverflow.com questions 24392696 http : stackoverflow.com questions 24392696 getting-cant-find-the-drive-the-drive-called-iis-does-not-exist Comment : Thanks . This was not the issue I experienced . For me this was an issue that was most likely caused by combining the proposed solution with the use of PSExec and TFSDeployer so the PowerShell was being run remotely by a third party which caused something to get lost in translation and resulted in a null parameter . When I ran the same script directly it worked as expected . The purpose of the tool was to build a Web application in Visual Studio and then use TFSDeployer to deploy the build to a specific environment remotely configuring IIS based on properties for that environment .", "Question : I have a Powershell script that sets up new web servers . At the moment you have to connect to the server via Remote Desktop and run the script locally it uses the WebAdministration module and is full of pseudopaths like IIS : Sites www.mysite.com and so on . Can I use the same WebAdministration module to manage a remote-server I d hoped something like get-childitem IIS : myserver Sites might work but can t find any documentation or examples of using this module against a remote-server . .. . Answer : What you do is set up powershell-remoting before you start with WebAdministration at all . This has to be configured on the remote-server first though as it s not enabled by default . You ll need to run Enable-PSRemoting force while runing PS as admin to turn it on and there s a few other minor bits to get the security sensible . There s a decent technet article on this at http : technet.microsoft.com en-us magazine ff700227.aspx .. . .. . Once you ve done that you can invoke a command on the remote machine using :", "Question : I am trying to find out which web sites are running an application-pool . MicrosoftIISv2 WebServerSetting only offers AppPoolId property and all of the valuse are DefaultAppPool . I can see all of these application pools are running different web sites on IIS . How can I get the web sites running on an application-pool by WMI .. . Answer : I found out it can be done with EnumAppsInPool method . Here s the code : .. . .. . And the string extensions taken from here http : stackoverflow.com questions 186653 c-indexof-the-nth-occurrence-of-a-string 187394 187394 and here http : www.dotnetperls.com string-slice", "Question : I am trying to stop a website in IIS . Here is my code .. . .. . When it reachers oSite.Stop it will throw .. . .. . The method or operation is not implemented . I am using Windows 7 Home Premium and the version of IIS I m using is 7.5 . Any idea how to solve this error Comment : Your code works fine on my 2012 R2 when the application-pool runs as local system . I don t have any Windows 7 anymore . Also review your lambda expression it may not find your site case sensitive or may find another one there may be another site with a similar name . Why not check for equality Comment : i m using indexof is because i identify the unique name using some parts of the full name . I m running on my local . i tried to run application-pool as local system but still it doesn t work . Probably is cause of IIS version . Will try on my server tomorrow . Thanks man . .. . Answer : Your method may be seems like this .. . .. . public void Stop .. . .. . .. . throw new NotImplementedException .. . .. . .. . .. . remove above line from your method and write method code Comment : So you are saying Microsoft.Web.Administration.Site method Stop provided by Microsoft is just throwing exception then there is no other way to fixing it", "Question : null .. . Answer : I m trying to create a script which creates amongst other things a WebApplication in the IIS per powershell . The next step is to set up the credentials for the WebApplication .. . .. . The problem is that the application will run under the pass-through authentication and not under the given credentials . So my question is : How to setup the credentials for an IIS-WebApplication via powershell Thank you in advance Comment : Look here . stackoverflow.com questions 25215354 http : stackoverflow.com questions 25215354 how-to-set-connectas-user-in-iis-using-powershell", "Question : I use VS2010 PowerShell v2.0 Windows Server 2008 R2 Standard for create deploy scripts ps1 for web-applications IIS 7 . I want manage IIS 7 websites appPools virtualDirs etc programmatically using Powershell . I m confused about several ways for manage IIS using Powershell . Which is recommended way about it 1 . Using Microsoft.Web.Administration.dll .. . .. . 2 . Using Import-Module vs Add-PSSnapin according OS version or IIS version Detect OS version : .. . .. . Detect IIS version .. . .. . Module loaded and load as Snapin : .. . .. . References : .. . http : forums.iis.net t 1166784.aspx 1 .. . .. . PowerShell : Load WebAdministration in ps1 script on both IIS 7 and IIS 7.5 http : stackoverflow.com questions 1924217 powershell-load-webadministration-in-ps1-script-on-both-iis-7-and-iis-7-5 .. . Answer : Since you say you are using Server 2008 R2 and Powershell V2 or higher Import-Module is the preferred method . Modules are more powerful than snapins and add a lot more functionality . However the biggest difference is that Modules do not need to be registered added to the registry . Snapins are a legacy feature from Powershell V1 which didn t support modules . Server 2008 Orignal Recipe did not have V2 out of the box and still used snapins for IIS ActiveDirectory Exchange etc .. . .. . Server 2008 R2 includes Powershell V2 and hence modules are available . It boils down to the following :", "Question : null .. . Answer : IIS10 on Windows 10 supports SSL bindings to wildcard host headers e.g . .example.com . Creating a new SSL binding for a wildcard host header works fine however when the binding exists Test-Path fails throwing an InvalidArgument Illegal characters in path e.g . Test-Path IIS : SslBindings 443 .example.com .. . .. . I ve tried using -LiteralPath as well as -Path but both give the same error - but only when the binding exists . Testing a non-existent path returns false as you would expect . Am I missing something Or is this a bug in Test-Path WebAdministration example.ps1 windows-10 only : .. . .. . The work-around I m currently using is : .. . .. . Update .. . .. . Worth noting is that Get-ChildItem IIS : SslBindings 443 .example.com works without an issue . Comment : I doubt it is the issue but you should be quoting that as a good practice Test-Path -LiteralPath IIS : SslBindings 443 .example.com Comment : Thanks @Matt . I did have a go with both options . I d normally use a variables here too . Worth noting is that Get-ChildItem IIS : SslBindings 443 .example.com works without an issue and the powershell console happily tab-completes the path when it exists as well . Comment : @DaveTransom I m not usually one to jump to this conclusion but it sounds like a bug . Probably best to report it on Microsoft Connect . And definitely don t put too much stock into tab completion . AFAIK it still doesn t tab complete ValidateSet items with spaces correctly so it s not exactly to most trustworthy measure .", "Question : Most of our web-applications include a Deploy.ps1 Powershell script . Octopus Deploy uses this to configure apps during production deployments but we also use it to set up developers local IIS settings . Works absolutely fine on Windows 7 Windows 8.1 and on all our Win2012 production servers . It s not working on Windows 10 and this appears to be because the Set-ItemProperty cmdlet has no effect . No error message or anything it just doesn t do anything . The IIS site api.example.com already exists and we re using Powershell to create the myapp application and then change the application s physical path to D : Projects Demo .. . .. . Running the exact same set of commands on Windows 7 you get identical output but at the last step the PhysicalPath property has changed as expected : .. . .. . Any idea what s going on Is there some new admin restriction on IIS10 Some sort of extra elevated permissions I need to modify settings on existing web-applications or something UPDATE : It seems to work fine if the item is an IIS site but fails if the item is a web application which makes me wonder if this might just be a bug in the provider . Any ideas Comment : It s a bug please vote up . windowsserver.uservoice.com forums 301869-powershell https : windowsserver.uservoice.com forums 301869-powershell suggestions 15077202-make-propeties-name-case-insensitive-for-creating .. . Answer : I don t know why but the first letter of the property you want to set must be lowercase e . g . physicalPath .. . .. . This will work : .. . .. . Seems like a bug to me but this notation first letter lowercase also works for your other Windows environments thus should be a valid workaround .", "Question : Most of our web-applications include a Deploy.ps1 Powershell script . Octopus Deploy uses this to configure apps during production deployments but we also use it to set up developers local IIS settings . Works absolutely fine on Windows 7 Windows 8.1 and on all our Win2012 production servers . It s not working on Windows 10 and this appears to be because the Set-ItemProperty cmdlet has no effect . No error message or anything it just doesn t do anything . The IIS site api.example.com already exists and we re using Powershell to create the myapp application and then change the application s physical path to D : Projects Demo .. . .. . Running the exact same set of commands on Windows 7 you get identical output but at the last step the PhysicalPath property has changed as expected : .. . .. . Any idea what s going on Is there some new admin restriction on IIS10 Some sort of extra elevated permissions I need to modify settings on existing web-applications or something UPDATE : It seems to work fine if the item is an IIS site but fails if the item is a web application which makes me wonder if this might just be a bug in the provider . Any ideas Comment : It s a bug please vote up . windowsserver.uservoice.com forums 301869-powershell https : windowsserver.uservoice.com forums 301869-powershell suggestions 15077202-make-propeties-name-case-insensitive-for-creating .. . Answer : This works for me without Set-Location :" ] }
[ "yes-answer-long", "yes-answer-short" ]
.net
UNK_RELATION
greasyspoon@server@88
greasyspoon -- greasyspoon icap server is an internet content adaptation protocol icap @placeholder .
{ "confidence": [ 67.77766418457031, 53.23338317871094, 50.27703094482422, 48.736717224121094, 46.272483825683594, 40.87838363647461, 39.33807373046875, 37.57707977294922, 36.46381759643555, 15.246545791625977, 15.246545791625977, 15.246545791625977, 15.246545791625977, 13.706233978271484, 13.706233978271484, 13.706233978271484, 13.706233978271484 ], "content": [ "We are using squid proxy along with the GreasySpoon ICAP server to modify responses for development purposes .", "This is the header that GreasySpoon inspects to find the user id .", "If this value is not found then GreasySpoon falls back to the IP address .", "I think it proved you can make it with greasyspoon .", "Is it possible to populate this script parameter in GreasySpoon with a proxy user s username using squid", "The GreasySpoon 1.0.10 configuration file service.properties contains a setting : SpoonScript.icapuserheader x-authenticated-user .", "I have a javascript that I want to inject into a website header part using Greasyspoon http : greasyspoon.sourceforge.net .", "Initially when we installed this setup insider our LAN we were able to accommodate this by using the user id script parameter inside the GreasySpoon response scripts .", "The comments in the default GreasySpoon script indicate that the user id can be a user login : .. . .. . I configured authentication with the squid server but the user id is still set to our shared WAN IP .", "We have a need to allow different developers to have different modifications to the responses because they are working on things relevant to different modifications .", "This parameter is populated with the local IP of the developer and so we could base things upon the different IPs .", "When we moved the setup to the cloud everyone had our shared WAN IP for the user id parameter and so our scheme broke .", "So you must configure squid to send the authenticated user s username in the same header as is configured in the properties file .", "This javascript will take care of the mobile display of the website .", "Is it possible to do so", "It s surely possible .", "I have inserted a simple alert function into specific website ." ] }
{ "confidence": [ 92.12002563476562, 57.42864990234375 ], "content": [ "Question : We are using squid proxy along with the GreasySpoon ICAP server to modify responses for development purposes . We have a need to allow different developers to have different modifications to the responses because they are working on things relevant to different modifications . Initially when we installed this setup insider our LAN we were able to accommodate this by using the user id script parameter inside the GreasySpoon response scripts . This parameter is populated with the local IP of the developer and so we could base things upon the different IPs . When we moved the setup to the cloud everyone had our shared WAN IP for the user id parameter and so our scheme broke . The comments in the default GreasySpoon script indicate that the user id can be a user login : .. . .. . I configured authentication with the squid server but the user id is still set to our shared WAN IP . Is it possible to populate this script parameter in GreasySpoon with a proxy user s username using squid .. . Answer : The GreasySpoon 1.0.10 configuration file service.properties contains a setting : SpoonScript.icapuserheader x-authenticated-user . This is the header that GreasySpoon inspects to find the user id . If this value is not found then GreasySpoon falls back to the IP address . So you must configure squid to send the authenticated user s username in the same header as is configured in the properties file .", "Question : I have a javascript that I want to inject into a website header part using Greasyspoon http : greasyspoon.sourceforge.net . This javascript will take care of the mobile display of the website . Is it possible to do so .. . Answer : It s surely possible . I have inserted a simple alert function into specific website . I think it proved you can make it with greasyspoon ." ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
eddystone@open-source@50
eddystone -- developed by google eddystone is an @placeholder beacon specification using bluetooth low energy .
{ "confidence": [ 58.79270935058594, 50.519229888916016, 49.78501892089844, 49.43252182006836, 48.69261932373047, 48.30191421508789, 47.38334655761719, 47.20951461791992, 46.976539611816406, 46.951377868652344, 46.718631744384766, 45.32988739013672, 45.32988739013672, 45.25358581542969, 44.36130905151367, 44.23748779296875, 44.23748779296875, 43.9864501953125, 43.74203872680664, 43.430824279785156, 43.11539077758789, 42.95454406738281, 42.176700592041016, 42.03868865966797, 41.620975494384766, 41.450164794921875, 41.43568420410156, 41.41870880126953, 41.14242935180664, 40.97550964355469, 40.97550964355469, 40.97550964355469, 40.97550964355469, 40.944175720214844, 40.7879524230957, 40.71759796142578, 40.71759796142578, 40.71759796142578, 40.53643035888672, 40.53643035888672, 40.49922561645508, 40.149497985839844, 40.12329864501953, 39.92733383178711, 39.843875885009766, 39.843875885009766, 39.80023193359375, 39.695552825927734, 39.4532356262207, 39.328853607177734, 39.328853607177734, 38.714263916015625, 38.661285400390625, 38.661285400390625, 38.661285400390625, 38.586952209472656, 38.558311462402344, 38.374183654785156, 38.236454010009766, 38.236454010009766, 38.236454010009766, 38.236454010009766, 38.06883239746094, 37.95466613769531, 37.95466613769531, 37.95466613769531, 37.95466613769531, 37.84666442871094, 37.66835403442383, 37.362728118896484, 37.352012634277344, 37.30274200439453, 37.20840072631836, 37.17481231689453, 37.04483413696289, 36.927181243896484, 36.927181243896484, 36.927181243896484, 36.92546081542969, 36.918739318847656, 36.7027702331543, 36.05345916748047, 36.05345916748047, 36.05345916748047, 36.05345916748047, 35.893035888671875, 35.81617736816406, 35.3913459777832, 35.3913459777832, 35.343544006347656, 35.343544006347656, 35.29518508911133, 35.29518508911133, 35.29518508911133, 35.29518508911133, 34.65381622314453, 34.563690185546875, 34.563690185546875, 34.563690185546875, 34.563690185546875 ], "content": [ "Beacon is eddystone .", "---.com.tr .. . .. . Here https : github.com google eddystone blob de5ff70112e73616ab63de3e91a038c70cf9f5bf eddystone-url README.md is the GitHub source for Eddystone protocol .", "This is the only way to select a beacon Eddystone for type", "Ho can you have a beacon that broadcasts both Eddystone-URL and Eddystone-UID", "How to setting Eddystone beacon broadcast 3m or 70m .", "Is background monitoring of Eddystone beacon using altbeacon library on android platform possible", "I suspect the beacon may not be configured for Eddystone .", "I attached data to Eddystone Beacons using The Proximity Beacon API .", "What happens when a client sights an Eddystone-EID beacon", "Thanks Dan but i ve configured the Eddystone beacon with Eddystone-UID frame and it works perfectly with android .", "I can make my BLE device broadcast as an Eddystone Beacon .", "Yes it is possible to detect Eddystone beacons in the background with the Android Beacon Library .", "I can config the beacon to use Eddystone-URL and assign a url .", "I m trying to build an application supporting both of Eddystone-URL and Eddystone-Uid .", "Google has a draft specification for a standard Eddystone configuration service https : github.com google eddystone blob master configuration-service README.md .", "I see Eddystone beacon have some problem with background of iOS .", "Are you sure your beacon is set to broadcast the Eddystone-UID packet", "See more details on working with Eddystone-UID with the Android Beacon Library http : altbeacon.github.io android-beacon-library here : .. . .. . http : altbeacon.github.io android-beacon-library eddystone-how-to.html", "What I m doing : .. . .. . I m using Eddystone with Google Nearby Messages API .", ".. . Eddystone-EID is appropriate for cases where beacon deployers wish to : .. . .. . Prevent other parties from using their beacons .", "The thing to keep in mind is Eddystone-UID and Eddystone-URL are two completely separate types of packets and your beacon might only be able to broadcast one at a time .", "i m using eddystone beacon and android beacon library AltLib I m a beginner user with these beacons and for my project .", "It is broadcasting Eddystone URL with http : www.cypress.com .", "I need to develop a POC wherein I can transmit an Eddystone Beacon too along with Url data .", "Many beacon models that support Eddystone like Radius Networks RadBeacon Eddystone Edition http : store.radiusnetworks.com collections all products eddystone-devkit gclid CjwKEAjw-vewBRDH1-b52Lig1hkSJACTPfVFclm3L9d9fnDRcMID5fUmOt0QrKWisN4EMQWtweFLdhoCDcLw wcB allow you to configure their transmitter power from a low setting a range of just a few meters to a high setting a range of 50 meters or more .", "https : labs.ribot.co.uk exploring-google-eddystone-with-the-proximity-beacon-api-bc9256c97e05 .rndagn22e .. . .. . I used a GET method to retrieve the data .", "I am a bit confused as to how I can set the Url data while building the Beacon using the Builder the docs on the site of Altbeacon library demonstrate the scanning part of Eddystone beacons but transmitting an Eddystone beacon with Url is what is missing over there .", "I m using two eddystone beacon devices to test the applications both are configured with a unique beacon ID .", "The problem is that with the exact same code I can see data from an Eddystone-UID but not form a Eddystone-URL .", "I would like to know what it would take to build an eddystone or physical web beacon management and content creation platform", "As the Eddystone beacon can t hold a large URL many people need to user a URL shortener .", "Eddystone-EID is designed to give developers control over which clients can make use of their beacon signals .", ".. . .. . Eddystone-EID encrypts it s identifier and rotates it periodically to prevent others from making use of the beacon identifier .", "The Nearby Messages library will only scan for beacons configured with an Eddystone-UID it won t find beacons configured with Eddystone-URL or Eddystone-TLM .", "The syntax is eddystone namespace id+instanceid .", "Generally any beacon that supports Eddystone at all supports the UID URL and TLM frames .", "I registered an Eddystone-UID with the Proximity Beacon API https : developers.google.com beacons proximity guide and attached some data .", "That s exactly why Eddystone has multiple frame times just have a beacon that broadcasts both a URL and a UID .", "Battery information requires that the beacon be broadcasting telemetry frames https : github.com google eddystone tree master eddystone-tlm and that people scanning for beacons have seen these TLM frames .", "I ve configured three types of beacons : .. . .. . Eddystone-UID .. . Eddystone-UID with TLM .. . iBeacon .. . .. . They are visible in Google Beacons Dashboard I see these beacons in Beacon Toolkit App in Registered tab too .", "To match Eddystone-UID beacons you need to set up a beacon parser for that beacon type .", "For Radius Networks beacons Eddystone-URL is supported by all Eddystone compatible models as is iBeacon and newer models sold since May 2016 support Eddystone-EID as well .", "They re Eddystone beacons .", "If Eddystone look for a plugin allowing you to access Eddystone telemetry .", "I m trying to experiment with Eddystone and Nearby messages in Android .", "The attachments you describe only work for Eddystone-UID .", ".. . .. . When a client device sights an Eddystone-EID beacon as a result-of a Nearby1 subscription the current EID is sent to the Google Proximity Beacon API2 along with the API key of the calling app .", "Eddystone-UID package Telemetry package .", "The Evothings PhoneGap plugin you re using returns both Eddystone-URL and Eddystone-UID packets it found through a single success callback https : github.com evothings cordova-eddystone scan-for-beacons .", "I m fooling around with an Eddystone beacon and have hit a wall when trying to register it .", "As you noted the beacon itself only broadcasts its identifier i.e . UUID + Major + Minor for iBeacon and Namespace + Instance for Eddystone .", "But now I want to take a Beacon which will support most of the concepts like .. . .. . Should be capable of both Eddystone iBeacon .. . Transmit some sensor s not necessory data .. . Transmit URL .. . .. . Now my question is if the beacon is capable of Eddystone then will it transmits URL", "iOS does allow background detection of service advertisements like Eddystone but Eddystone detection times can be slower than iBeacon .", "Possible duplicate of Eddystone Javascript find UID http : stackoverflow.com questions 34198803 eddystone-javascript-find-uid", "Until now I m going to use the Eddystone format so both of them support Eddystone .", "because with Eddystone-uid only my app work perfectly and with Eddystone-Url only same thing but when I put them both in the same app I get problem with the Eddystone-Uid I get an error while subscribing to the google Nearby Messages Api .", "I got eddystone beacons which broadcast URL and I was able to see the eddystone URL in iPhone Today s widget and came to know that in android phones this feature will be available with Google Play services 7.8 .", "My company s RadBeacon Dot is 10 in quantity and supports Eddystone URL and UID to get Eddystone EID beacons are often codt more .", "I followed this : https : evothings.com detecting-eddystone-beacons-in-javascript-made-easy .. . .. . But I can only detect beacon html .", "If there are any Eddystone-UID beacons nearby the logs should report N beacon s .", "davidgyoung you beacon of your company can support for ios app scan background beacons eddystone .", "I need to get attachments and placeid from a eddystone proximity beacon that already registerd .", "Both the open-source Android Beacon Library or Google s Proximity Beacon API allow Android apps to detect Eddystone-compatible beacons .", "I am trying to send notification to android devices by using a Eddystone URL .", "I have tried transmitting a Eddystone URL using the altbeacon library .", "I have transmitted a Eddystone URL using the Locate App .", "I am using eddystone beacons to transmit my business url .", "No you cannot change the settings on an Eddystone beacon using any built-in Android apps or OS functions .", "When I send the following data to eddystone : .. . .. . I get a 400 response from Eddystone s server saying : .. . .. . To be clear VALID BASE64 EDDYSTONE ID is replaced with a valid base64 encoded Eddystone ID .", "Unfortunately I can t define region for Eddystone profile .", "Content : droidlabs.net https : droidlabs.net It works like a charm with Eddystone-URL but no result with Eddystone-UID and iBeacon :", "An example ephemeral identifier looks like this : .. . .. . Here s a write up I did on the topic : http : altbeacon.github.io android-beacon-library eddystone-eid.html", "My android phone has Google Play Services 7.8 but not able to receive eddystone-URL", "I am trying to make an app using eddystone UID .", "Eddystone standards consist of multiple frames including UID URL TLM and EID there is no requirement that all beacon models implement all these standards implement all of them .", "The beacon transmits eddystone-URL frames containing a https link-to goo.gl which redirects to a twitter https link .", "However when I turn on Eddystone-URL beacon I see this beacon s URL in nearby attractions .", "How would I have to register Estimote beacons with Eddystone to the Proximity Beacon API", "For an Eddystone beacon this will be 16 bytes The BeaconID from the UID Frame https : github.com google eddystone blob master protocol-specification.md whereas for iBeacons this will be 20 bytes 16 byte iBeacon Proximity UUID + 2 byte major + 2 byte minor .", "Scanning for Eddystone beacons on iOS uses CoreBluetooth APIs to access the Bluetooth LE service advertisements .", "You can still make this work by using an iOS Eddystone beacon scanning toolkit like the one I put together here .", "I am trying to develop a Eddystone based app .", "But is it possible to make iOS devices to broadcast as Eddystone Beacons", "And it needs to be discoverable by apps that scan Eddystone beacons .", "As a result it won t be recognized as an Eddystone-UID frame .", "If I m right in that situation I can t parse Eddystone NamespaceID as Identifier for region and can t monitor if user enter beacons which are set to use Eddystone profile .", "I also tried the cordova eddystone plugin https : github.com evothings cordova-eddystone also .", "I m trying to create a background task that will be run when the system detects an eddystone advertisement broadcasted by an estimote beacon .", "Eddystone telemetry frames do so and some beacon manufacturers provide proprietary extensions allowing getting this info .", "See here http : 9to5google.com 2016 02 10 chrome-49-eddystone-beacon-recognition for more info on how this looks on Android .", "Understand that Eddystone-URL beacon advertisements don t automatically do anything on a user s phone unless they have an app installed to detect them .", "The Android version will transmit Eddystone but for iOS you must transmit iBeacon .", "This is how to generate the advertised id : .. . .. . encodeBase64 HexToBinary eddystone namespace id+instanceid", "I am trying to config accent system beacons with to use Eddystone-URL .", "You also need to set it to use Eddystone URL scheme .", "You can get the similar rapid detection of Eddystone beacons by using beacons that interleave both http : developer.radiusnetworks.com 2015 04 21 max-beacon-regions-ios.html an iBeacon transmission and an Eddystone transmission and making your app look for both .", "So when Beacon is set to Eddystone NamespaceID is first Identifier which should define region exactly the same as UUID is first Identifier in iBeacon profile .", "I can successfully read the beacon.getExtraDataFields .get 2 data for the temperature transmission as per Eddystone Telemetry expamples in Android Beacon Library .", "Other ideas : a try a different iOS device b try with another Eddystone-UID beacon c keep scanning for a minute or two just to be sure .", "cache all Eddystone attachments in a particular namespace so that I can effectively get beacon attachments when the app has no connection to the internet ." ] }
{ "confidence": [ 68.83929443359375, 68.69031524658203, 68.32042694091797, 67.62240600585938, 67.53276824951172, 66.9288101196289, 66.02375030517578, 65.46642303466797, 65.14762878417969, 65.11139678955078, 64.04263305664062, 64.0077896118164, 63.622833251953125, 62.49567413330078, 62.202613830566406, 61.95686721801758, 61.84331512451172, 61.632015228271484, 61.519287109375, 61.270751953125 ], "content": [ "Question : Simply put how does Eddystone-EID work and what are the main use cases .. . Answer : Here s an explanation I found on a developers.google.com page here https : developers.google.com beacons eddystone-eid . What happens when a client sights an Eddystone-EID beacon .. . .. . When a client device sights an Eddystone-EID beacon as a result-of a Nearby1 subscription the current EID is sent to the Google Proximity Beacon API2 along with the API key of the calling app . The Google Proximity Beacon API establishes whether the supplied API key is authorized to fetch attachments that have been associated with the beacon . If resolution is allowed the attachments are served back as Nearby message objects in the normal way . Otherwise Google Proximity Beacon API returns an empty value as it would if the beacon had not been registered . 1 - The beacon scanning component of the Google beacon platform .. . .. . 2 - The Proximity Beacon API is a cloud service that allows you to manage data associated with your BLE beacons using a REST interface . Here s another paragraph which I found critical to understand how the technology works . Eddystone-EID is designed to give developers control over which clients can make use of their beacon signals . The beacon identifier changes pseudo-randomly in such a way that it can only be resolved to stable information by a resolution service that shares an encryption key with the beacon . Without access to the resolution service the beacon identifier is of little use . .. . Eddystone-EID is appropriate for cases where beacon deployers wish to : .. . .. . Prevent other parties from using their beacons . Preserve user privacy in scenarios involving wearables or other equipment carried by the user . Lease their beacon network to other parties in a way that allows a provable off switch for access . Provide a strong signal that a user is at a particular place that is not easily spoofed .", "Question : I m new to this beacon technology . I want to use this technology . I did some R D on this and came to know that Estimote RadiusNetworks and some other are we can use . But now I want to take a Beacon which will support most of the concepts like .. . .. . Should be capable of both Eddystone iBeacon .. . Transmit some sensor s not necessory data .. . Transmit URL .. . .. . Now my question is if the beacon is capable of Eddystone then will it transmits URL If you have any idea on Beacons for testing all the features usecases which beacon you ll prefer .. . Answer : Eddystone standards consist of multiple frames including UID URL TLM and EID there is no requirement that all beacon models implement all these standards implement all of them . You should check with the manufacturer to verify before purchasing . The same goes for iBeacon format support . Generally any beacon that supports Eddystone at all supports the UID URL and TLM frames . The EID frame was added later so older Eddystone beacons certainly do not support it . For Radius Networks beacons Eddystone-URL is supported by all Eddystone compatible models as is iBeacon and newer models sold since May 2016 support Eddystone-EID as well . Full disclosure : I work for Radius Networks . Comment : Thank you very much for your response @davidgyoung . I need more clarification on Beacons . Which beacon I need to prefer as a part of testing the all usecases of beacons . on low cost Comment : Recommending a beacon goes beyond what we are supposed to do in this forum which is supposed to be dedicated to tech Q A . I can say that for testing most beacons are pretty affordable . My company s RadBeacon Dot is 10 in quantity and supports Eddystone URL and UID to get Eddystone EID beacons are often codt more .", "Question : How can we change the different setting of an beacon with Eddystone Protocol without using any third party SDK like the SDK s provided by Estimote or AltBeacons . How for instance can we change the transmitting power transmitting frequency or the Instance ID of an beacon from our mobile-devices maybe with the help of an app Can we change them by using the Bluetooth Manager or BluetoothLeScanner present in Android Can it be done or we have to rely on the Beacon manufacturer s SDK to change the values .. . Answer : No you cannot change the settings on an Eddystone beacon using any built-in Android apps or OS functions . You need a third party app to do this . For now this means one of the beacon manufacturer configuration apps you mention . There are plans to change this . Google has a draft specification for a standard Eddystone configuration service https : github.com google eddystone blob master configuration-service README.md . Beacon manufacturers adopting this spec have hardware that can be configured by any app that supports the standard . So while you will still need an app you would not need one from the beacon manufacturer . You could even build your own . Still there are no announced plans by Google to put a default configuration app into Android using this standard . So the need to install some app will probably not change . With the standard you will just have more flexibility in the app you install . Full disclosure : I am the lead developer on the Android Beacon Library project an SDK that is part of the AltBeacon project . Comment : Thanks. . Searched a lot about it over the past few months but could not find anything concrete . Can you please explain as to how the beacon manufacturer configuration apps are able to communicate with the beacon and change their values when at the end of the day they are just apps using the same Android OS functionality Can you explain or provide me with some links as to how its done", "Question : Can we detect beacons in app background Both iOS and Android . I see Eddystone beacon have some problem with background of iOS . How can solve that .. . Answer : iOS does allow background detection of service advertisements like Eddystone but Eddystone detection times can be slower than iBeacon . The reason iBeacon detections are faster is because Apple has optimized it with hardware filters . Hardware filter slots in the bluetooth chip are activated when you monitor an iBeacon region on iOS . This causes iBeacon detections to happen within about 2 seconds when an app is in the background provided hardware slots have not been used up . You can get the similar rapid detection of Eddystone beacons by using beacons that interleave both http : developer.radiusnetworks.com 2015 04 21 max-beacon-regions-ios.html an iBeacon transmission and an Eddystone transmission and making your app look for both . The iBeacon detection will wake up your app very rapidly in the background and once active it will be able to receive Eddystone advertisements immediately thereafter . You can read more about how bluetooth hardware detection slots affect iBeacon detection times here . http : developer.radiusnetworks.com 2015 04 21 max-beacon-regions-ios.html .. . .. . Full Disclosure : I am Chief Engineer at Radius Networks which makes beacons that interleave both iBeacon and Eddystone transmissions . Comment : Good answer We ve actually seen iBeacon detection take up to like 30-40s in the background but it s definitely orders of magnitude better than simple Core Bluetooth background which waits for the once-every-fifteen minute bluetooth wakeup . Comment : Does the first-in-last-out mean that if 2 apps have tried to register 30 regions combined . My app will only be able to get in the best effort group Comment : Yes that is what our tests suggest .", "Question : How to setting Eddystone beacon broadcast 3m or 70m . I find can do that but I can t see how to o that in google beacons https : developers.google.com beacons overview .. . Answer : The Google Beacon Platform does not have a concept of the transmitter range of beacons . Many beacon models that support Eddystone like Radius Networks RadBeacon Eddystone Edition http : store.radiusnetworks.com collections all products eddystone-devkit gclid CjwKEAjw-vewBRDH1-b52Lig1hkSJACTPfVFclm3L9d9fnDRcMID5fUmOt0QrKWisN4EMQWtweFLdhoCDcLw wcB allow you to configure their transmitter power from a low setting a range of just a few meters to a high setting a range of 50 meters or more . As far as Google s registration database goes the concept of the transmitter power just isn t there . It allows you to register a latitude-longitude and a floor but not a radius of transmitter range . From a Google perspective it doesn t really matter exactly how far a beacon can be detected -- it s all pretty close anyway . Full disclosure : I am Chief Engineer at Radius Networks . Comment : I got that . Thanks you very much Comment : davidgyoung you beacon of your company can support for ios app scan background beacons eddystone . Comment : Our beacons with eddystone support also transmit iBeacon which triggers in the background within a couple of seconds on iOS . Once triggered background detection of eddystone is also very rapid . Comment : See my full answer to your question here : stackoverflow.com questions 33162149 http : stackoverflow.com questions 33162149 background-beacon-detection-and-notification-both-ios-and-android-for-eddyston", "Question : null .. . Answer : I m trying to use Nearby API to scan Eddystone BLE with Swift I ve made the same calls : .. . .. . BUT I detect 0 beacon you can see it in my screen log : .. . .. . Maybe I ve missed something Comment : Sarra how is the beacon configured The Nearby Messages library will only scan for beacons configured with an Eddystone-UID it won t find beacons configured with Eddystone-URL or Eddystone-TLM . Comment : Thanks Dan but i ve configured the Eddystone beacon with Eddystone-UID frame and it works perfectly with android . but i still can t get the ios scan Comment : Sarra here are a few more things to check : 1 Does your app have permission to use location It s required for beacon scanning . Check Settings- Privacy- Location Services . 2 Is Bluetooth turned on 3 How long have you waited while it s scanning Sometimes it can take some time to see beacons . Let it scan for a minute or two just to be sure . Comment : Sarra I m at a loss to explain why your app isn t seeing any beacons . If there are any Eddystone-UID beacons nearby the logs should report N beacon s . Other ideas : a try a different iOS device b try with another Eddystone-UID beacon c keep scanning for a minute or two just to be sure . Regarding GNSPermission : This manages the Nearby permission status which is required for Nearby to do any kinds of discovery operations if it were disabled you wouldn t see any of the Nearby logs you re seeing . I ll try to think of any other reason beacon scanning wouldn t be working . Comment : And you re right about not needing location permission for Eddystone beacons I was thinking about iBeacons .", "Question : null .. . Answer : I am trying to config accent system beacons with to use Eddystone-URL . I can config the beacon to use Eddystone-URL and assign a url . However when i add chrome to my today view and enable bluetooth i cannot see the url being broadcasted . Physical web settings on beacon : .. . .. . enter image description here http : i.stack.imgur.com iiHrY.jpg .. . .. . Device settings on beacon : .. . .. . enter image description here http : i.stack.imgur.com zqhi0.jpg enter image description here http : i.stack.imgur.com zqhi0.jpg Comment : Which phone do you test with Comment : I ve tested on IPhone 5 and IPad 2 Air . Comment : I believe you just configuring its Physical Web settings . You also need to set it to use Eddystone URL scheme . Do you have user-manual or something like that", "Question : I m trying to retrieve the mac address from an Eddystone-uid packet on ios . Android allows me access to it easily . I know that on ios the CoreBluetooth library obfuscates pretty much all received ibeacon data values . Eddystone is much more open on ios but I m not sure how to retrieve the mac address data or if it s available at all . .. . Answer : Scanning for Eddystone beacons on iOS uses CoreBluetooth APIs to access the Bluetooth LE service advertisements . You cannot access the raw MAC address of the beacon advertisement using these APIs or any other public APIs on iOS . Apple blocks access to the Bluetooth MACs out of privacy and anti-tracking concerns CoreBluetooth will assign an auto-generated GUID to each unique Bluetooth device which correlates to the MAC but does not have the same value . Bottom line : while you can access the Bluetooth MAC on Android you cannot do it on iOS . Sorry . Comment : This doesn t surprise me as I ve tried in to use CoreBluetooth to read iBeacon data in the past with no luck . I figured that if iOS gives me full access to Eddystone uid info it may also allow access to the sender s mac address in that format as well . Comment : The Eddystone UID identifier is just a series of bytes parsed out of the service data in the received advertisement . CoreBluetooth lets you read these bytes but not the MAC .", "Question : I m trying to experiment with Eddystone and Nearby messages in Android . I registered an Eddystone-UID with the Proximity Beacon API https : developers.google.com beacons proximity guide and attached some data . Then in my app I used the samples from the Nearby Messages API https : developers.google.com nearby messages overview to retrieve it and everything seems to be working fine . Since I want to use Eddystone-URL and a website for casual use but offer the possibility of downloading an app I was trying to use only the Eddystone-URL and attach some data to it so I can have additional information in the app . I did the same steps as for the Eddystone-UID but my app doesn t see any message . The beacon seems registered and the data attached to it but the app it s not receiving anything . Am I missing something Is this not supported Comment : Are you registering something with setResultCallback I think in our experiments here we need to have that set to see some results . Comment : Yes . The problem is that with the exact same code I can see data from an Eddystone-UID but not form a Eddystone-URL . .. . Answer : The attachments you describe only work for Eddystone-UID . The whole purpose of the Eddystone-URL is to be based on the web so this means not using any centralized servers other than your web page . The URL just points you to a website . If you want data attached to that URL you would use web technologies to do that e.g . have the data in your markup as an additional web page etc . Edit : I believe you want to have the best of both worlds : the URL beacon for the simple web page and a UID for your app to have additional data . That s exactly why Eddystone has multiple frame times just have a beacon that broadcasts both a URL and a UID . Comment : Ho can you have a beacon that broadcasts both Eddystone-URL and Eddystone-UID As far as I can see Estimotes are not able to do that", "Question : I am trying to build an android app in js that can detect eddystone beacons emitting UID . I followed this : https : evothings.com detecting-eddystone-beacons-in-javascript-made-easy .. . .. . But I can only detect beacon html . I cannot find the line where you can look for UID . Does anyone has an idea Comment : To be able to give a qualified response you need to describe what beacon you are using . Is it a hardware beacon What brand .. . Answer : Are you sure your beacon is set to broadcast the Eddystone-UID packet The thing to keep in mind is Eddystone-UID and Eddystone-URL are two completely separate types of packets and your beacon might only be able to broadcast one at a time . Check with your beacon s vendor how to set it to broadcast the Eddystone-UID packet . The Evothings PhoneGap plugin you re using returns both Eddystone-URL and Eddystone-UID packets it found through a single success callback https : github.com evothings cordova-eddystone scan-for-beacons . The example app from the tutorial you ve linked to then takes the beacon figures out if its URL or UID or both and only shows what s available https : github.com evothings cordova-eddystone blob master example index.html L140 . Comment : Yes I am sure that i do it .", "Question : I m trying to create a background task that will be run when the system detects an eddystone advertisement broadcasted by an estimote beacon . I already configured the beacon to send eddystone packets and I used UniversalBeaconLibrary to get these packets while the application is in the foreground no problems here . Now I want to get a notification while the application is not launched using a background task reacting to bluetooth broadcasted packets . To my understanding to avoid putting to much strain on the battery cpu I do need to filter these advertisements . One of the simplest form of filtering the one I tried to use is by using the company id given by the Bluetooth SIG . Here is what I tried : .. . .. . As it is I get an exception saying that there is not enough or too much filtering . When uncommenting one of the trigger blocks I got no exception but the task does not seem to launch . EDIT : I asked estimote what was the Company Id they were boradcasting when using eddystone packets . And according to them there is none . In regard of this answer what would be a suitable filter .. . Answer : A Bluetooth SIG company id is only used with a manufacturer Bluetooth LE advertisement like iBeacon and AltBeacon . Eddystone uses service Bluetooth LE advertisements which don t contain a company id . Instead they contain a 16-bit Service UUID of 0xFEAA . See here for more details : https : github.com google eddystone blob master protocol-specification.md Comment : Thanks now I just have to create a Bitmask for this Service UUID .", "Question : We can make iOS devices act as a iBeacon transmitter and We can locate nearby iBeacons if we know their Proximity UUID . With Google s Proximity Beacon API It s possible to configure and register real Beacon hardware and we can locate them with Nearby Messaging API . But is it possible to make iOS devices to broadcast as Eddystone Beacons And it needs to be discoverable by apps that scan Eddystone beacons . Thanks in advance . .. . Answer : Unfortunately this is not possible . While iOS devices can advertise Bluetooth LE service advertisements which are the advertisement type used by Eddystone using CoreBluetooth APIs you cannot attach the necessary data . This is because the CBAdvertisementDataServiceDataKey that associates service data to an advertisement is read-only on iOS . You can t set the data . So while you want to make the iOS device advertise something like this to transmit Eddystone-UID : .. . .. . 0201060303aafe1516aafe00e72f234454f4911ba9ffa6000000000001 .. . .. . You end up advertising something like this : .. . .. . 0201060303aafe0316aafe .. . .. . This leaves off the Eddystone-UID type code 00 the calibrated power e7 the namespace identifier 2f234454f4911ba9ffa6 and the instance identifier 000000000001 . As a result it won t be recognized as an Eddystone-UID frame . Comment : Thanks for the explanation . I did my study on this just to be fully sure . Your detailed explanation helped a lot .", "Question : I m fooling around with an Eddystone beacon and have hit a wall when trying to register it . The supplier of the beacon that I purchased provides an app that allows you to read the following data from the beacon : .. . .. . Eddystone-UID : .. . .. . Namespace : 2F234454F4911BA9FFA6 .. . Instance ID : 1 .. . Power measured at 0 meters : -20 .. . .. . iBeacon AltBeacon : .. . .. . UUID : 41f037b6-f49d-4379-8350-e209ea4eadd1 .. . Major : 0 .. . Minor : 1 .. . Power measured at 1 meter : -61 .. . .. . Given this information what should I use to create my AdvertisedId when registering the beacon using Eddystone Thanks .. . Answer : The syntax is eddystone namespace id+instanceid . This is how to generate the advertised id : .. . .. . encodeBase64 HexToBinary eddystone namespace id+instanceid", "Question : I am trying to send notification to android devices by using a Eddystone URL . What have i tried so far : .. . .. . 1 . I have tried transmitting a Eddystone URL using the altbeacon library . 2 . I have transmitted a Eddystone URL using the Locate App . The above transmitted URL s are successfully getting detected in this Scanner app . https : play.google.com store apps details id de.flurp.beaconscanner.app .. . .. . Google Docs https : developers.google.com beacons get-started says to register the beacon in the Beacon Tools App to send a notification . So i tried to register the beacon in the Beacon Tools App . But the beacon are NOT getting detected . This is happening because i am using my phone as a beacon If so How can i show a notification via my beacon transmitter EDIT .. . .. . My Phone runs Android 5.1 with Chrome 51 . I have enabled Physical web in the privacy settings too . I have tested it on over 2- 3 devices . But still no luck .. . Answer : Understand that a transmitted Eddystone-URL will not automatically lead to a notification on a receiving device unless an app is present to detect and display the URL . Chrome for iOS and Android 49+ will notify you that Physical web pages nearby and tapping on that will bring up the details . See here http : 9to5google.com 2016 02 10 chrome-49-eddystone-beacon-recognition for more info on how this looks on Android . Comment : Please see the EDIT . But why the beacons is not detected in Beacon Tools App", "Question : I am able to run the examples mentioned on the Github site of the Altbeacon library for Android for transmitting an Altbeacon . This works perfectly on my phone wherein I am able to transmit an Altbeacon and detect it via another phone . I need to develop a POC wherein I can transmit an Eddystone Beacon too along with Url data . I am a bit confused as to how I can set the Url data while building the Beacon using the Builder the docs on the site of Altbeacon library demonstrate the scanning part of Eddystone beacons but transmitting an Eddystone beacon with Url is what is missing over there . If someone can point be to the right direction it would be helpful . .. . Answer : Try something like this :", "Question : I m developing an app which provides background Beacon monitoring . I would like to start ranging when user enters beacon from defined region . Unfortunately I can t define region for Eddystone profile . When I create region object with Eddystone NamespaceID the Identifier throws parsing exception.. . When Identifier is in UUID format or integer according to docs https : altbeacon.github.io android-beacon-library javadoc org altbeacon beacon Identifier.html parsing works fine . So when Beacon is set to Eddystone NamespaceID is first Identifier which should define region exactly the same as UUID is first Identifier in iBeacon profile . Do I understand it right If I m right in that situation I can t parse Eddystone NamespaceID as Identifier for region and can t monitor if user enter beacons which are set to use Eddystone profile . Please correct me if I m wrong and please tell me how to define region for Eddystone beacons . Thanks .. . Answer : You can define a Region that matches an Eddystone-UID namespaceID like this : .. . .. . The trick is to prefix the identifier with 0x to indicate to the library that the identifier is a multi-byte hex value . For convenience a prefix is not needed when parsing identifiers from UUIDs or integer values but one is needed for multi-byte hex values otherwise there would be no way to differentiate between 0x1000 4096 decimal and 1000 1000 decimal . See more details on working with Eddystone-UID with the Android Beacon Library http : altbeacon.github.io android-beacon-library here : .. . .. . http : altbeacon.github.io android-beacon-library eddystone-how-to.html Comment : Ehh.. . It was so simple . Thank you", "Question : I m fooling around with an Eddystone beacon and have hit a wall when trying to register it . The supplier of the beacon that I purchased provides an app that allows you to read the following data from the beacon : .. . .. . Eddystone-UID : .. . .. . Namespace : 2F234454F4911BA9FFA6 .. . Instance ID : 1 .. . Power measured at 0 meters : -20 .. . .. . iBeacon AltBeacon : .. . .. . UUID : 41f037b6-f49d-4379-8350-e209ea4eadd1 .. . Major : 0 .. . Minor : 1 .. . Power measured at 1 meter : -61 .. . .. . Given this information what should I use to create my AdvertisedId when registering the beacon using Eddystone Thanks .. . Answer : Google has a sample Android app that will let you register beacons with their backend . You can see the code that calls registerBeacon here https : github.com google beacon-platform blob 2caf614fbbc206e226aab086f5c8ac6f72574101 samples android BeaconServiceDemoApp app src main java com google sample beaconservice ManageBeaconFragment.java L422 . The actual registration process posts JSON to Google s servers and the JSON generation comes from the com.google.sample.beaconservice.Beacon class in this project here . https : github.com google beacon-platform blob 2caf614fbbc206e226aab086f5c8ac6f72574101 samples android BeaconServiceDemoApp app src main java com google sample beaconservice Beacon.java L116 .. . .. . If you look at that line you will see that it converts the identifier from a byte array to base 64 with : .. . .. . So for an Eddystone UID with a 10 byte namespace of 0x010203040506070809 and a 6 byte instance of 0x0a0b0c0d0e0f you can base 64 encode the identifiers like this : Comment : That s the ticket Thanks .", "Question : Simply put how does Eddystone-EID work and what are the main use cases .. . Answer : Standard beacons transmit a unique identifier so apps can tell when they are in a particular place . But because this identifier is in clear text any app can read this identifier and use the transmission to know where it is . An unauthorized third party app can make use of standard beacons that the app s authors did not deploy . .. . .. . Eddystone-EID encrypts it s identifier and rotates it periodically to prevent others from making use of the beacon identifier . Authorized apps can use a trusted resolver to get a stable identifier from the rotating encrypted one in the transmission . A server call is needed to convert the 8-byte AES encrypted identifier to a stable one . Google s Proximity Beacon API provides this conversion . It is theoretically possible to build an independent trusted resolver apart from Google I have done so for testing purposes but otherwise you must register your EID beacons with Google and use their web-services to resolve their identifiers . An example ephemeral identifier looks like this : .. . .. . Here s a write up I did on the topic : http : altbeacon.github.io android-beacon-library eddystone-eid.html", "Question : I m fooling around with an Eddystone beacon and have hit a wall when trying to register it . The supplier of the beacon that I purchased provides an app that allows you to read the following data from the beacon : .. . .. . Eddystone-UID : .. . .. . Namespace : 2F234454F4911BA9FFA6 .. . Instance ID : 1 .. . Power measured at 0 meters : -20 .. . .. . iBeacon AltBeacon : .. . .. . UUID : 41f037b6-f49d-4379-8350-e209ea4eadd1 .. . Major : 0 .. . Minor : 1 .. . Power measured at 1 meter : -61 .. . .. . Given this information what should I use to create my AdvertisedId when registering the beacon using Eddystone Thanks .. . Answer : The namespace and instance id are what you register with Google . But the Namespace identifier you have shown is not valid . It must be a 10 byte 20 character hex number and you are showing a 19 character identifier with a V in it which is an illegal character for a hex number . Is this a typo Comment : Oops Yes this was a typo . In fact I also missed a character as you pointed out . I have adjusted the V to a B and added the second 2 in my response . Comment : I suppose my question is how does one register a namespace and an instance id with Google I see a lot of documentation on converting to Base64 and I know the syntax for their Proximity API but I m not sure exactly how to turn the namespace and instance id into the AdvertisedId as part of that syntax .", "Question : I know iBeacon only broadcasts UUID signal . What I m reading about Proximity Beacon API is confusing . We must register : .. . .. . Advertised ID required .. . Status .. . Stability .. . Latitude and longitude .. . Indoor floor level .. . Google Places API Place ID . Text description .. . Arbitrary properties as key-value pairs .. . .. . Does Eddystone broadcast all the information above as shown on this image https : cdn-images-1.medium.com max 800 1 TVE5vfiqroXpluB1Sn-YcQ.png .. . Answer : Beacons broadcast very little information themselves typically only a Proximity UUID + major + minor for iBeacons or a BeaconID + transmission power for Eddystone UID beacons . The Proximity Beacon API https : developers.google.com beacons proximity guides is a service that allows you to register a beacon along with additional information for it . Some of this information such as : .. . .. . PlaceID .. . Building level .. . Stability .. . Lat Lng .. . Description .. . Properties .. . .. . are entirely optional are only for the registering beacon owner s own uses . You can choose to specify exactly where a beacon is with a lat lng and a PlaceID or you can skip these . The Proximity Beacon API also lets you associate little pieces of data called attachments to your beacon . These are things that people can see when they run into your beacons in the wild . The content and format of these are entirely up to you . So if you want to register a beacon with the PB API the only thing you MUST specify is the advertisementId . For an Eddystone beacon this will be 16 bytes The BeaconID from the UID Frame https : github.com google eddystone blob master protocol-specification.md whereas for iBeacons this will be 20 bytes 16 byte iBeacon Proximity UUID + 2 byte major + 2 byte minor . Note that as per my answer to another question http : stackoverflow.com a 32138427 134686 what you upload to the register function for the beacon is a base64 encoded string representing the underlying BINARY data . So get a Buffer or byte array representing the advertisement ID and then base64 encode that ." ] }
[ "yes-answer-long", "yes-answer-short" ]
open-source
UNK_RELATION
responsiveness@user@97
responsiveness -- responsiveness describes the ability of an ui element or dialog to respond on @placeholder interaction within an acceptable time frame .
{ "confidence": [ 37.362571716308594, 37.147769927978516, 36.17010498046875, 36.17010498046875, 36.17010498046875, 33.314483642578125, 32.51942443847656, 32.51942443847656, 32.18398666381836, 31.17205810546875, 29.46797752380371, 29.46797752380371, 27.113834381103516, 26.98255157470703, 24.477108001708984, 20.255043029785156, 17.999814987182617, 17.76961898803711, 17.407123565673828, 17.407123565673828, 17.370206832885742, 16.28314971923828, 15.699033737182617, 15.565916061401367, 15.457121849060059, 15.406692504882812, 15.288761138916016, 14.85477066040039, 14.85477066040039, 14.608589172363281, 14.544610023498535, 14.241483688354492, 13.993855476379395, 13.810310363769531, 13.810310363769531, 13.810310363769531, 13.451619148254395, 13.253660202026367, 13.253660202026367, 13.152711868286133, 13.103236198425293, 13.045478820800781, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.89411449432373, 12.653980255126953, 12.63892650604248, 12.63892650604248, 12.416177749633789, 12.2485990524292, 11.987466812133789, 11.987466812133789, 11.862432479858398, 11.62712574005127, 11.28017807006836, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008, 11.190034866333008 ], "content": [ "Facing issue in responsiveness of kendoGraph .", "I m using jQuery and @media for the responsiveness .", "CSS media-queries are enough to make good responsiveness .", "I read on w3school that it s a quick fix for responsiveness .", "This meta tag helps in responsiveness of any website .", "@destripet as the hint : check the grid-system section column ordering and responsiveness sections .", "I have setup heavenlyhyams.com.au to forward with masking to helloguest.com.au Heavenly Hyams but the responsiveness on mobile is lost due to the frame .", "There seems to be several way to add responsiveness to the frame so I would appreciate if someone could help me here .", "If I remove the layout attribute It works fine but I lost the responsiveness .", "Trying to determine if there is a minimum expected level of responsiveness I have to implement before Responsive Design Mode will work .", "i am using google.com webmasters tools mobile-friendly https : www.google.com webmasters tools mobile-friendly for checking the responsiveness", "You may check how they do responsiveness with classes in Twitter Bootstrap http : getbootstrap.com css responsive-utilities .", "To do something about mobile responsiveness you can do the following : .. . .. . Next thing would be to add either bootstrap or media-queries .", "By using the above package i m able to apply responsiveness for default master page but not with custom masterpage .", "So far I have this code : jsfiddle example https : jsfiddle.net Premitium nnnau6qu 2 .. . .. . I tried making the text part of the matrix but the different size of the elements cracks the responsiveness for smaller screens .", "The reason is the width of 80 in your my-div element whereas all of their children are within a 1000px container .", "Chrome s UI is not as elegant for presentations but is very accurate and provides better preview on Android devices .", "You have to call kendo.resize on the containing DOM element to automatically resize all kendo widgets within the container .", "Is it scope rootScope or HTML gridster element scope", "You def have an overflow element that may be affecting it .", "Couldn t fix the issue so started using angular ui-sortable instead .", "Add doctype html5 used in my code .. . 5 . put style within head tag .. . 6 . put title within head tag .. . 7 . remove text node in head tag .. . .. . Please indent too .", "UI page with changes in role name http : i.stack.imgur.com bR67C.png .. . .. . What I want : When the roles names are wrapped I want the header division to be responsive such that all the elements appear within the header .", "Perhaps I am missing an element that s expanding past the viewport", "on iPads my video DIV container height does not respond to causing a white margin below the video .", "The second option I am currently trying is to control the frame code .", "The background-image needs to respond to the browser window without stretching .", "The PersistentActor persisted events in the journal are : .. . .. . Every time the commands are sent from the responsive UI such new events are persisted if validation succeeds 202 CommandAccepted or any CommandValidationError being fired back .", "My PROBLEM is that as soon as the photos are started to being uploaded to the server all other post requests are being queued and the waiting time increases significally.So in conclusion my photos post calls are killing my UI post calls .", "When I am in the mobile screen display 375px width 600px height the .wrapper element is set for a width of 100", "thanks for your time but what do you mean by remove all div tags", "So for that I have setup heavenlyhyams.com as an add-on domain and add the same frame code in the index file .", "Here is an example of a force layout that makes all nodes stay within a bounding-box : bl.ocks.org mbostock 1129492 http : bl.ocks.org mbostock 1129492", "and immediately send a GET query command from the UI to read the current state and display the data", "...but still.. . before sending GET query UI needs to know that the current state is available.. .", "I am working on project and facing an issue with HTML CSS related part unfortunately I am bad at UI work .", "But without significant delay in the responsive environment the UI must be able to query the REST API backend and show the latest Contact object after the backend WebSocket push informs the UI that UUID 123af-232ff-232d is available for read : .. . .. . This result should happen after merging all the events with the latest data available as I understand .", "You haven t posted any code for us to look at but you should have a wrapper element that contains all the other content .", "Other than this I m sure my code isn t as good as it could be and certainly not complete on the responsive element that I have started .. .", "http : docs.telerik.com kendo-ui web styles-and-layout using-kendo-in-responsive-web-pages .. . .. . In this example the resize is throttled to no more than once every 100ms .", "Most of the time it would be displayed on a wide-screen HD TV so I would like the structure to be like the first code sample below and yet depending on the width of the screen if it s viewed on smaller screens instead of having 4 repeating columns groups change it to 3 then 2 then 1 for phones .", "Sorry I realize it s not a MCVE .. . but it s the first time I ve posted on stack exchange and will probably need a bit more time to get it down", "Rightblock is not fullheight on mobile-devices .", "In bootsrap i removed responsive features such as col-md- replaced to col-xs- On IOS8 devices everything is ok via browserstack .", "Left block has height : 78vh .", "How to make it simple fixed layout and disable scaling in safari browser .. . .. .", "enter image description here http : i.stack.imgur.com S1sFq.jpg", "You should provide any cod examples of your website to reproduce the problem .", "need to remove", "I d like to remove the Ipad responsive layout on this wp theme to show like the desktop version without having to scroll left to right .", "I tried to remove the Ipad query and media query on the css but it doesn t look good .", "Here s the full css style sheet http : www.jennifer-beals.com news wp-content themes Vox style.css .. . .. . thanks", "Does Safari s responsive-design mode only work if you re using something like bootstrap", "I m pretty much a rookie here and haven t implemented Bootstrap yet on my site BUT when I view my site www.gdbdp.com at html5 http : www.gdbdp.com at html5 in Safari with Responsive Design Mode turned on and iPhone selected it looks almost NOTHING like what it actually looks like on my phone .", "On the phone the images scale down accordingly but in RDM they don t they re huge .", "I would expect that no matter how your site is coded RDM would simply strive to be an approximation of what the page looks like on a specified device browser .", "Any input appreciate .", "Thanks dp", "Safari s responsive-design mode feature was working flawlessly until update in February .", "We have tested views by comparing actual device views to Safari RDM and clearly something is wrong .", "We have changed to using Chrome s RDM .", "You can use iron-media-query https : elements.polymer-project.org elements iron-media-query to set a property on an element apply clsses to HTML elements depending on this property value and then apply different CSS depending on the set classes .", "If you want the GUI to be more responsive call QCoreApplication : : processEvents periodically within whatever code is taking up a lot of cpu cycles .", "These 24 medium columns 36 small columns are placed within a single row which only works with a max layout of 12 columns .", "I was trying to make our sharepoint sites responsive using this http : dev.office.com blogs announcing-responsive-ui-package-for-sharepoint-on-premises-2013-2016 by running powershell scripts .", "table .. . tr .. . th Time th .. . th Hole th .. . th Player th .. . th Time th .. . th Hole th .. . th Player th .. . th Time th .. . th Hole th .. . th Player th .. . th Time th .. . th Hole th .. . th Player th .. . tr .. . tr .. . td 12 : 06 PM td .. . td 2 td .. . td Ackerman td .. . td 11 : 53 AM td .. . td 3 td .. . td Alexander td .. . td 12 : 04 PM td .. . td 3 td .. . td Allan td .. . td 02 : 00 PM td .. . td 2 td .. . td Allen td .. . tr .. . table .. . .. . .. . table .. . tr .. . th Time th .. . th Hole th .. . th Player th .. . tr .. . .. . tr .. . td 12 : 06 PM td .. . td 2 td .. . td Ackerman td .. . tr .. . .. . tr .. . td 11 : 53 AM td .. . td 3 td .. . td Alexander td .. . tr .. . .. . tr .. . td 12 : 04 PM td .. . td 3 td .. . td Allan td .. . tr .. . .. . tr .. . td 02 : 00 PM td .. . td 2 td .. . td Allen td .. . tr .. . .. . tr .. . td 12 : 03 PM td .. . td 1 td .. . td Anderson td .. . tr .. . .. . tr .. . td 02 : 49 PM td .. . td 3 td .. . td Apple td .. . tr .. . .. . tr .. . td 02 : 53 PM td .. . td 1 td .. . td Campbell td .. . tr .. . .. . tr .. . td 02 : 15 PM td .. . td 4 td .. . td Deane td .. . tr .. . .. . tr .. . td 04 : 00 PM td .. . td 1 td .. . td Decker td .. . tr .. . .. . tr .. . td 10 : 31 AM td .. . td 5 td .. . td Esposito td .. . tr .. . .. . tr .. . td 02 : 41 PM td .. . td 4 td .. . td Estes td .. . tr .. . .. . tr .. . td 01 : 29 PM td .. . td 2 td .. . td Faidley td .. . tr .. . .. . tr .. . td 10 : 31 AM td .. . td 5 td .. . td Fisher td .. . tr .. . .. . tr .. . td 02 : 16 PM td .. . td 4 td .. . td Gaus td .. . tr .. . .. . tr .. . td 02 : 15 PM td .. . td 3 td .. . td Giancola td .. . tr .. . .. . tr .. . td 10 : 31 AM td .. . td 5 td .. . td Gibbons td .. . tr .. . .. . tr .. . td 02 : 13 PM td .. . td 3 td .. . td Hansen td .. . tr .. . .. . tr .. . td 02 : 51 PM td .. . td 2 td .. . td Healy td .. . tr .. . .. . tr .. . td 02 : 42 PM td .. . td 4 td .. . td Kain td .. . tr .. . .. . tr .. . td 04 : 01 PM td .. . td 2 td .. . td Kestner td .. . tr .. . .. . tr .. . td 02 : 12 PM td .. . td 3 td .. . td King td .. . tr .. . .. . tr .. . td 11 : 03 AM td .. . td 2 td .. . td Krieger td .. . tr .. . .. . tr .. . td 02 : 51 PM td .. . td 3 td .. . td Lee td .. . tr .. . .. . table", "let s say you got 10 samples within say 50ms. . there is no difference between redrawing once every 50ms or 10 times every 5ms user hardly will notice any difference", "To alleviate this wrap each group of elements that equal 12 column widths within their own row : .. . .. . I updated your initial fiddle https : jsfiddle.net sfmgvs9d 1 to demonstrate this .", "There is no sense to draw anything with a speed of 10ms per sample. . just because an eye is not able to handle this. . you can use as was mentioned in the comments double buffering and render everything you need to show on a separate thread and just refresh an image 100 times a second but again there is no any reasons to keep such high frame rate. .", "So assume you have lots of stuff to draw with a sample time of 10ms namely 9 charts graphs based on qcustomplot library and a GLWidget .", "Here is the relevant code note that I m working with the Types plugin within WordPress hence all the bracketed stuff : .. . .. . HTML .. . .. . CSS .. . .. . If I remove the media query wrap the CSS is applied fine so it s not the CSS rules specifically that are the problem .", "I m having this issue where when I resize the browser window all the elements in the grid get cluttered on top of each other .", "I have added the link-to how it looks before and after resizing window .", "After resizing", "enter image description here http : i.stack.imgur.com NznhR.png .. . .. . Before resizing", "enter image description here http : i.stack.imgur.com bzcqC.png .. . .. . The gridster options are as below :", "Works like a charm .", "try this . .. . .. .", "whose scope is this", "please tell.. .", "scope not rootScope .", "scope was not working in my case I used custom gridster options to implement the corresponding feature .", "Thanks", "I have a section of a site that is not being responsive .", "The whole site is responsive except for this one text portion .", "It is a scrolling text with java .", "I have tried a bunch of @media and size restrictions but nothing works .", "This is the only part that does not work .", "function initQuoteCarousel .. . .. . var quotesWrapper .cust-quotes .. . var quotes quotesWrapper.find blockquote .. . .. . if quotes.length .. . return .. . .. . .. . var selectNextQuote function .. . keep move first quote in dom to the end to make continous .. . var quote quotesWrapper.find blockquote : first .detach .appendTo quotesWrapper .. . .. . setTimeout selectNextQuote quote.data timeout .. . .. . .. . setTimeout selectNextQuote quotes.filter : first .data timeout .. . .. . .. . .. . function .. . initQuoteCarousel .. . .. . .. . .. . body .. . font : 14px 20px Arial sans-serif .. . color : 222 .. . .. . .. . .cust-quotes .. . width : 640px .. . height : 100px .. . position : relative .. . .. . .. . .cust-quotes blockquote .. . position : absolute .. . bottom : 0px .. . left : 0px .. . right : 0px .. . font-size : 14px .. . text-align : center .. . opacity : 0 .. . z-index : 0 .. . transition : opacity 0.5s ease-out 0s transform 0.5s ease-in 0s .. . .. . .. . IE 10 fallback .. . .no-csstransitions .cust-quotes blockquote .. . .no-csstransforms .cust-quotes blockquote .. . position : relative .. . .. . .. . .cust-quotes blockquote : first-child .. . opacity : 0 .. . transform : translateY -10px scale 1.1 .. . .. . .cust-quotes blockquote : first-child + blockquote .. . opacity : 1 .. . z-index : 1 .. . transition : opacity 1.6s ease 0s .. . .. . .cust-quotes blockquote p .. . font-size : 24px .. . font-weight : normal .. . font-style : italic .. . color : 353535 .. . line-height : 30px .. . margin-bottom : 10px .. . .. . .cust-quotes blockquote p : before .. . content : 201C .. . .. . .cust-quotes blockquote p : after .. . content : 201D .. . .. . .cust-quotes blockquote cite .. . text-align : center .. . font-size : 14px .. . color : 898989 .. . .. . .cust-quotes blockquote cite a .. . font-size : 14px .. . font-weight : normal .. . .. . .. . .. . .. . .container .. . .. . max-width : 940px .. . margin : 0 auto .. . .. . .. . .. . testimonials .. . margin : 0 auto .. . width : 940px .. . .. . .. . .. . .. . section id testimonials .. . .. . div class cust-quotes .. . blockquote data-timeout 1800 p Thank you Scott", "Our house is cool once again . br I have you on speed dial", "p cite David Creekmore cite blockquote .. . blockquote data-timeout 1800 p The heating ac system got another clean bill of health from Conrad s Climate Control today .", "Awesome company . p cite Terry Friar cite blockquote .. . blockquote data-timeout 1800 p Scott Conrad of Conrad s Climate Control is awesome", "Made a service call in the evening and got my gas logs burning so we can enjoy a great - if fake smile emoticon - fire on this cold cold evening", "Great service - highly recommend him", "p cite Marianne Walston cite blockquote .. . div .. . section", "What do you mean by responsive", "meaning responsive - mobile and tablet view does not compress size like the rest of the site", "Your cust-quotes class is fixed width .", "Maybe you can provide a fiddle to fully demonstrate the issue", "http : shapeandslim.com .. . .. . If we drag it through the chrome it show that it is responsive also i have checked it in iphone5 safari it works fine as well but when we try google mobile friendly test it just fails only home page fails while rest of the pages successfully passed the mobile friendly test ." ] }
{ "confidence": [ 40.445701599121094, 40.059539794921875, 33.14891052246094, 32.67133331298828, 30.434738159179688, 29.46056365966797, 29.339366912841797, 28.215789794921875, 26.8695011138916, 26.8695011138916, 24.761213302612305, 18.78583526611328, 17.651729583740234, 16.41004753112793, 16.07539939880371, 15.91684341430664, 15.733986854553223, 15.165016174316406, 14.242192268371582, 13.11635971069336 ], "content": [ "Question : Facing issue in responsiveness of kendoGraph . Here is the complete description of the problem . Kendo Graph responsive issue http : www.telerik.com forums responsive-issue-in-kendograph .. . .. . Can anybody please suggest a solution fix . .. . Answer : You have to call kendo.resize on the containing DOM element to automatically resize all kendo widgets within the container . http : docs.telerik.com kendo-ui web styles-and-layout using-kendo-in-responsive-web-pages .. . .. . In this example the resize is throttled to no more than once every 100ms . Updated DOJO http : dojo.telerik.com @ezanker acuKI", "Question : null .. . Answer : I have read numerous posts on the problems but have not found a solution yet.. . so here is my new post . All my domains are hosted at GoDaddy . The main url is helloguest.com.au . I have setup heavenlyhyams.com.au to forward with masking to helloguest.com.au Heavenly Hyams but the responsiveness on mobile is lost due to the frame . It is important for me to mask the final url so what is the best solution I saw a post that the same result can be achieved without masking but by adding a CNAME.. . but I don t understand how . So please explain step by step if that is possible . The second option I am currently trying is to control the frame code . So for that I have setup heavenlyhyams.com as an add-on domain and add the same frame code in the index file . There seems to be several way to add responsiveness to the frame so I would appreciate if someone could help me here .", "Question : null .. . Answer : I was trying to make our sharepoint sites responsive using this http : dev.office.com blogs announcing-responsive-ui-package-for-sharepoint-on-premises-2013-2016 by running powershell scripts . By using the above package i m able to apply responsiveness for default master page but not with custom masterpage . May i know is there anyone following this package to make their sharepoint sites responsive Could you please suggest what changes to make in custom masterpage like adding classes or id s that needs to be added that are available in js and css files of the package . Thanks .", "Question : Does Safari s responsive-design mode only work if you re using something like bootstrap I m pretty much a rookie here and haven t implemented Bootstrap yet on my site BUT when I view my site www.gdbdp.com at html5 http : www.gdbdp.com at html5 in Safari with Responsive Design Mode turned on and iPhone selected it looks almost NOTHING like what it actually looks like on my phone . On the phone the images scale down accordingly but in RDM they don t they re huge . I would expect that no matter how your site is coded RDM would simply strive to be an approximation of what the page looks like on a specified device browser . Trying to determine if there is a minimum expected level of responsiveness I have to implement before Responsive Design Mode will work . Any input appreciate . Thanks dp .. . Answer : Safari s responsive-design mode feature was working flawlessly until update in February . We have tested views by comparing actual device views to Safari RDM and clearly something is wrong . We have changed to using Chrome s RDM . Chrome s UI is not as elegant for presentations but is very accurate and provides better preview on Android devices .", "Question : I have managed to build a decent website for a Beginner in my opinion . And the layout is something like this : .. . .. . enter image description here http : i.stack.imgur.com UCzha.jpg .. . .. . One thing i realised that it s horribly messy when I open it with a phone : .. . .. . enter image description here http : i.stack.imgur.com nKpER.jpg .. . .. . So i decided to google for Responsive Website and there s quite many stuff to do so i figure in the meantime when people access my website using phones it ll be just like they open it with pc s browser they might have to zoom out a bit so they will see this when they access my website : .. . .. . enter image description here http : i.stack.imgur.com lbAFK.jpg .. . .. . So what should i add-in my code lines to make my layout locked in every screen-size Sorry if i m not being clear .. . .. . PS : What i m trying to achieve something like in this website http : www.lionstar.co.id Notice how the layout isn t affected when we zoom in Comment : please provide a code or a jsfiddle of what you ve got so far or what have you tried . It will be easier for us to help you with your problem . Comment : show your html and css code also did you add media-queries to your css codepen.io mlegg10 pen JKdOaj http : codepen.io mlegg10 pen JKdOaj Comment : um but many of my website elements is local but i have deployed my website maybe you can kindly check here link http : polaris-orionis.com Comment : i didnt use any media-queries since im not quite familiar with it.. . Comment : I m not sure if you want to create your custom responsive class or you only want to make your site responsive because you don t have enough experience . If you try the first remember not reinvent the wheel use bootstrap .. . Answer : Nice work on the website . To do something about mobile responsiveness you can do the following : .. . .. . Next thing would be to add either bootstrap or media-queries . To save space people use media-queries and to divide the sections so that a site looks different on different devices people use bootstrap classes . Examples can be looked up on w3schools . Comment : im sorry if im being very ignorant here But what does this meta tag actually do I read on w3school that it s a quick fix for responsiveness . I have put in the meta tag but when i zoomed in using web browser it s still the same as picture 3 Comment : This meta tag helps in responsiveness of any website . If you re still having problems then I prefer you download bootstrap from getboostrap.com Then you can add classes like div class row and can divide content . Comment : I actually use some bootstrap in this website i think i m not using it right.. . please see the edit in the original post to see what i mean i asked Sorry if my question is too confusing Comment : I got the answer . polaris-orionis.com index.html http : polaris-orionis.com index.html this website is currently responsive and works fine in phones and tablets . But its not full width . To do that remove all the div tags and add just one tag div class col-xs-10 col-xs-offset-1 In this tag add your carousel . then look if the carousel works fine . Comment : thanks for your time but what do you mean by remove all div tags wouldn t it mess up all my css styling i used div tags as wrappers", "Question : There s site I m working at and design for tablet mobile-devices require me to move elements from left sidebar to right change order etc . . These elements include simple text and images pretty small logos . My question is what would be the best way to go about this So far I have only two ways . 1 Duplicate HTML content and then show-hide with CSS media-queries . My concern here is that it s not SEO friendly and content images still gets rendered even if hidden . Could that leave me with a performance problem 2 Move elements using JS . My concern here is that people with JS disabled will still see the content in old places and maybe this JS solution could impact performance even more Would really appreciate some input on best practices in a situation like this . Here s what I m trying to achieve : layout http : i.stack.imgur.com dzTIj.png Comment : Are you sure that what you want to achieve isn t possible purely using CSS Comment : Or option 3 : use CSS media-queries to position them as needed . Comment : content images still gets rendered even if hidden What They are not rendered if they are hidden . They are loaded though . Comment : @Teemu yes sorry that s what I meant Comment : @JamesThorpe yes since I m supposed to move some elements from left to right sidebar .. . Answer : The questions are contradicting a bit : .. . .. . First of all it s 2016 in the WEB if you are speaking about having responsive layout support of mobiles tablets desktops - they will have JavaScript support so you shouldn t worry . - it is answer on your question number 2 . The percentage of people not having JS is extremely low it s below 1 . CSS media-queries are enough to make good responsiveness . Sometimes you need to add helper methods with JS to manipulate DOM and to make it even more advanced . You may check how they do responsiveness with classes in Twitter Bootstrap http : getbootstrap.com css responsive-utilities . Sometimes content will be duplicated in HTML but as soon as it s not visible simultaneously on the screen because of visibility rules from CSS media-queries - it will not do any harm on SEO . There s the way to over-complicate things a bit RESS : Responsive Web Design + Server-Side Components http : www.sitepoint.com improving-responsive-web-design-ress and to serve different HTML layouts depending on the detected User Agent . Comment : @destripet I given wide answer with the links . I d highly encourage you to try Twitter Boostrap s responsive tools . They provide strong tools for making responsive layouts thinking of mobile first . You can achieve the same results making your own CSS media-queries but with Bootstrap you ll quicker understand how to reach it . Comment : Thank you I ll check out these links and think I m going to go with javascript aproach : Comment : @destripet as the hint : check the grid-system section column ordering and responsiveness sections . You ll easily achieve what you want v4-alpha.getbootstrap.com layout grid example-column-ordering http : v4-alpha.getbootstrap.com layout grid example-column-ordering Comment : will do thanks a lot", "Question : I am trying to create a matrix that looks like this : .. . .. . enter image description here http : i.stack.imgur.com Sf7M9.png .. . .. . What is bugging me off is how to make the column and row names responsive with the grid in the middle . So far I have this code : jsfiddle example https : jsfiddle.net Premitium nnnau6qu 2 .. . .. . I tried making the text part of the matrix but the different size of the elements cracks the responsiveness for smaller screens . Currently when the vertical-text is not part of the matrix it looks almost alright but the horizontal text is not . I am looking for some advice on how to continue . .. . Answer : What s with .. . .. . If it doesn t fit side-by-side put them on top of each other . .. . .. . You have to look whether it fits your requirements . I would suggest a smaller font-size and smaller line height for the column headings then Comment : It design dependent .", "Question : In the code bellow when I define the attribute layout grid for panelGrid the ajax event of periodo Letivo doesn t work . It should load cadeira component . If I remove the layout attribute It works fine but I lost the responsiveness . If someone can help me thanks . Comment : where is the layout Where is the layout tag Comment : Sorry I edited the post . I mean : layout grid Comment : Off-Topic : layout is an attribute not a tag Comment : Are we talking about my text or about the code Comment : text I corrected it .. . Answer : I solved this issue replacing p : ajax event change update cadeira process periodoLetivo by this f : ajax event change render cadeira f : ajax .", "Question : http : shapeandslim.com .. . .. . If we drag it through the chrome it show that it is responsive also i have checked it in iphone5 safari it works fine as well but when we try google mobile friendly test it just fails only home page fails while rest of the pages successfully passed the mobile friendly test . Also the preview that it shows on google test page it seems like that the css is not being used . whats seems to be the problem here and how to solve it . Comment : You re going to have to be more specific about your google responsive test . What is the exact tool you re using Is it Page Speed Insights https : developers.google.com speed pagespeed insights or something else Comment : i am using google.com webmasters tools mobile-friendly https : www.google.com webmasters tools mobile-friendly for checking the responsiveness Comment : You def have an overflow element that may be affecting it . i.imgur.com qWqsQA6.png http : i.imgur.com qWqsQA6.png .. . Answer : From Google Webmaster FAQ .. . .. . I have a great mobile site but the Mobile-Friendly Test tells me that my pages aren t mobile-friendly . Why If a page is designed to work well on mobile-devices but it s not passing the Mobile-Friendly Test the most common reason is that Googlebot for smartphones is blocked from crawling resources like CSS and JavaScript that are critical for determining whether the page is legible and usable on a mobile device i.e . whether it s mobile-friendly . To remedy : .. . .. . 1 . Check if the Mobile-Friendly Test shows blocked resources often accompanied with a partially rendered image . 2 . Allow Googlebot to crawl the necessary files . 3 . Double-check that your page passes the Mobile-Friendly Test . 4 . Use Fetch as Google with Submit to Index and submit your updated robots.txt to Google to expedite the re-processing of the updated page or just wait for Google to naturally re-crawl and index . Source https : googlewebmastercentral.blogspot.dk 2015 04 faqs-april-21st-mobile-friendly.html Question 6", "Question : http : shapeandslim.com .. . .. . If we drag it through the chrome it show that it is responsive also i have checked it in iphone5 safari it works fine as well but when we try google mobile friendly test it just fails only home page fails while rest of the pages successfully passed the mobile friendly test . Also the preview that it shows on google test page it seems like that the css is not being used . whats seems to be the problem here and how to solve it . Comment : You re going to have to be more specific about your google responsive test . What is the exact tool you re using Is it Page Speed Insights https : developers.google.com speed pagespeed insights or something else Comment : i am using google.com webmasters tools mobile-friendly https : www.google.com webmasters tools mobile-friendly for checking the responsiveness Comment : You def have an overflow element that may be affecting it . i.imgur.com qWqsQA6.png http : i.imgur.com qWqsQA6.png .. . Answer : The reasons according to Google as to why your site is not mobile friendly is because of the following : .. . .. . 1 . Content wider than screen .. . 2 . Links too close together .. . 3 . Uses incompatible plugins .. . .. . Another reason could be that : .. . .. . This page may appear not mobile-friendly because the robots.txt file may block Googlebot from loading some of the page s resources . Learn how to unblock resources for Googlebot . Google is Rendering your website as follows I suggest checking the cache and CSS files accordingly . Make sure the view does now exceed the size of the screen Google Mobile Rendering http : i.stack.imgur.com oDBzW.jpg .. . .. . Check the link here https : developers.google.com speed pagespeed insights utm source MFT utm campaign MFT utm medium incoming-link priorityGroup USABILITY url http 3A 2F 2Fshapeandslim.com 2F for more insight on your page and how to fix it", "Question : I m designing a responsive-design for a client and I m running into the issue that there is a space of unnecessary padding margin on the right side of the page that I can t seem to get rid of . I ve checked all of my elements and styles and it doesn t appear that there is anything that could be causing this issue . I ve got the meta tag header . I m using jQuery and @media for the responsiveness . Here is the URL http : www.smcelectric.com smc https : www.smcelectric.com smc .. . .. . I m using Chrome s device mode view to check it as well as using it on my phone . Any suggestions or requests for extra content welcome . Thank you You will notice on the right side there is some random space . Here s a shot in the Chrome development tool where I have highlighted the html tag. . Highlighted HTML Tag Screen Capture http : i.stack.imgur.com ShH0p.png If you see there are no extruding elements from the code . I ve checked the .wrapper among many other elements to ensure there is nothing going outside from the view port . Perhaps I am missing an element that s expanding past the viewport I am not working on a tablet display simply the mobile display as of right now . Comment : Which padding margin are you talking about A screenshot will be awesome . I checked using my mobile looks okay to me . Comment : @PraveenKumar I ve added a screenshot . Sorry about that . Comment : That s the same issue buddy.. . Check my answer to get it fixed . Comment : @PraveenKumar from what I understand . When I am in the mobile screen display 375px width 600px height the .wrapper element is set for a width of 100 Comment : yea.. . Guess so.. . .. . Answer : If you are telling about this issue : .. . .. . http : i.imgur.com Vm3kTBZ.png 1 .. . .. . The reason is that your content is overflowing the view-port . Just wanted to know if that s the case then you may need to handle it differently because your children : .. . .. . Has a fixed width of greater than the viewport . This should be made 100 . Also it is better to give all the images a maximum width of 100 : Comment : This alluded to my issue . It appears that for some reason the percentages were simply not cooperating well with the responsive-design . So I had made the wrapper 90 . Thank you for your help @Praveen Comment : @kevosoup Welcome :", "Question : I m having this issue where when I resize the browser window all the elements in the grid get cluttered on top of each other . I have added the link-to how it looks before and after resizing window . After resizing enter image description here http : i.stack.imgur.com NznhR.png .. . .. . Before resizing enter image description here http : i.stack.imgur.com bzcqC.png .. . .. . The gridster options are as below : Comment : Couldn t fix the issue so started using angular ui-sortable instead . Works like a charm . .. . Answer : try this . .. . .. . Comment : whose scope is this Is it scope rootScope or HTML gridster element scope please tell.. . Comment : scope not rootScope . Comment : scope was not working in my case I used custom gridster options to implement the corresponding feature . Thanks", "Question : If the page is zoomed out how can i shrink the webpage and all of its content to center This is before zooming out . This is before zooming out http : i.stack.imgur.com BsD9W.png This is after zooming out After zooming out http : i.stack.imgur.com syMse.png .. . .. . How to shrink to center of the page while zooming out Code im using is Comment : Please provide example code . You could probably add margin : auto to make sure the content is centered . Comment : provide code example and what you ve tried so far . Comment : yes I have shared that example code .. . Answer : You are actually centering the page it s just not obvious right away . The reason is the width of 80 in your my-div element whereas all of their children are within a 1000px container . This will solve your problem : .. . .. . You could use max-width alternatively but for your example there really isn t a reason to .", "Question : null .. . Answer : I am working on project and facing an issue with HTML CSS related part unfortunately I am bad at UI work . I would highly appreciate help here . Problem description is below . Image 1 : It is the screenshot of my application . The requirement is to make the role names marked in red to wrap when the screen-resolution of screen or browser zoom level increased . In 1st image zoom level is 100 . Image 2 : I made code changes to wrap the role names when the browser zoom increases but it s causing problems with positioning of other elements . if you see Inbox - Search Initiate Task - Admin labels in two images . In 1st they fixed but when I am zooming in then they start appearing out of header .. . .. . enter image description here http : i.stack.imgur.com OuU04.png .. . .. . UI page with changes in role name http : i.stack.imgur.com bR67C.png .. . .. . What I want : When the roles names are wrapped I want the header division to be responsive such that all the elements appear within the header . Code here : .. . .. . Please look for This is existing code to see my changes .", "Question : I have a responsive video on my page and I ve set to to adjust to a static background-image when the display reaches below 767px width for smartphones . Problem is that anything between 768px to 1199px width eg . on iPads my video DIV container height does not respond to causing a white margin below the video . Ideally the container should adjust from 266px - 347px height in parallel with the video height width . .videobg is my container and .videoheader is the video itself . Here is the code : Comment : Can you provide MCVE http : stackoverflow.com help mcve in addition to css Comment : Also if you are trying to make responsive video-player try looking at this : jsfiddle.net tboyvk5p https : jsfiddle.net tboyvk5p Comment : @Green - sure - you can check it out here : www.zalmah.com newsite Comment : Sorry I realize it s not a MCVE .. . but it s the first time I ve posted on stack exchange and will probably need a bit more time to get it down Comment : @Green I have tried object-fit : fill and object-fit : cover for the video . unfortunately neither have worked .. . Answer : For this certain case it looks that solution will be : .. . .. . I strongly recommend using other scaling for responsive videos e.g . like this https : jsfiddle.net 67akaqnt and oh dear so many media-queries : D But duh if it works for you it s fine .", "Question : I am quite familiar with how the PersistentActor and PersistentView work while implementing Akka Persistence . Consider the following example with the idea as far as I understand . A Scala case class Contact . The PersistentActor persisted events in the journal are : .. . .. . Every time the commands are sent from the responsive UI such new events are persisted if validation succeeds 202 CommandAccepted or any CommandValidationError being fired back . But without significant delay in the responsive environment the UI must be able to query the REST API backend and show the latest Contact object after the backend WebSocket push informs the UI that UUID 123af-232ff-232d is available for read : .. . .. . This result should happen after merging all the events with the latest data available as I understand . So my actual concern is : How and where-in this backend application I do the processing of those events as soon as they are generated merge those data and store the merged data for reading by the query side . .. . .. . Many many thanks in advance if some could shed light on implementing or correcting my thought . Comment : Please also correct me if I have misunderstood the flow from the frontend to the backend and vice-versa in a reactive responsive application . Comment : Is it where I have to maintain the current state inside the PersistentActor by merging each generated events after they are persisted and immediately send a GET query command from the UI to read the current state and display the data Comment : ...but still.. . before sending GET query UI needs to know that the current state is available.. . .. . Answer : The current state of Contact might not be so much a view as the actual state and in the view you will not accept eventual-consistency which will be the case with a view . I would keep that as the state inside the persistent actor and allow for a query against the actor to get the current Contact and use that . Comment : For example I need to query a list of contacts is it not too heavy to maintain the contactList state inside PersistentActor in memory Comment : I found the link-to my answers : groups.google.com forum topic akka-user MNDc9cVG1To https : groups.google.com forum topic akka-user MNDc9cVG1To Akka Persistence on the Query Side : The Conclusion", "Question : So assume you have lots of stuff to draw with a sample time of 10ms namely 9 charts graphs based on qcustomplot library and a GLWidget . Now all the computation with which i mean maths is performed in a separate thread yet instructions like populate the array of the 1 chart or clean the chart are performed in the GUI thread clearly at a speed of 10ms . My problem is that basically due to the high frequency of the drawing buttons become unresponsive . Now my question is : Is there a way to improve the performance of my code I would like to avoid to draw every 50ms rather than every 10ms . Could a possible solution be the use of qApp- processEvents Is there a more elegant way Comment : One thing you could do if you re not doing it already is render a QImage of the appropriate size in the other thread also . Then pass the QImage to the main thread which needs only convert it to a Pixmap and display it . That might be more efficient at least in the main thread than having to do a bunch of drawing commands every 10mS . .. . Answer : There is no sense to draw anything with a speed of 10ms per sample. . just because an eye is not able to handle this. . you can use as was mentioned in the comments double buffering and render everything you need to show on a separate thread and just refresh an image 100 times a second but again there is no any reasons to keep such high frame rate. . Comment : due to the fact that im acquiring data i need to populate charts graph. . so you can clearly notice the difference. . slowing down is indeed a solution though Comment : let s say you got 10 samples within say 50ms. . there is no difference between redrawing once every 50ms or 10 times every 5ms user hardly will notice any difference", "Question : null .. . Answer : I have implemented a web application that gives the opportunity to upload multiple files.I make use of the xmlHttpRequest to do that . I should also mention that in my app the user can request a grid with some data or view of some photos.These are done by making post requests to the server . My PROBLEM is that as soon as the photos are started to being uploaded to the server all other post requests are being queued and the waiting time increases significally.So in conclusion my photos post calls are killing my UI post calls . enter image description here http : i.stack.imgur.com UaXaZ.png", "Question : If the page is zoomed out how can i shrink the webpage and all of its content to center This is before zooming out . This is before zooming out http : i.stack.imgur.com BsD9W.png This is after zooming out After zooming out http : i.stack.imgur.com syMse.png .. . .. . How to shrink to center of the page while zooming out Code im using is Comment : Please provide example code . You could probably add margin : auto to make sure the content is centered . Comment : provide code example and what you ve tried so far . Comment : yes I have shared that example code .. . Answer : Maybe you can share code example You may try to use css property : .. . .. . margin : 0 auto in order to center your block perhaps body in your case . Regards . Edit .. . .. . First you have mistake in your HTML : .. . .. . 1 . close body tag correctly .. . 2 . remove in open body tag .. . 3 . wrap code with html tag .. . 4 . Add doctype html5 used in my code .. . 5 . put style within head tag .. . 6 . put title within head tag .. . 7 . remove text node in head tag .. . .. . Please indent too . Edit .. . .. . Here code works after corrections I use percent instead of pixel dimension enjoy : Comment : yeah i have shared that code", "Question : I have a simple 3 column table second code sample below . Most of the time it would be displayed on a wide-screen HD TV so I would like the structure to be like the first code sample below and yet depending on the width of the screen if it s viewed on smaller screens instead of having 4 repeating columns groups change it to 3 then 2 then 1 for phones . How can I do this with CSS Media queries table .. . tr .. . th Time th .. . th Hole th .. . th Player th .. . th Time th .. . th Hole th .. . th Player th .. . th Time th .. . th Hole th .. . th Player th .. . th Time th .. . th Hole th .. . th Player th .. . tr .. . tr .. . td 12 : 06 PM td .. . td 2 td .. . td Ackerman td .. . td 11 : 53 AM td .. . td 3 td .. . td Alexander td .. . td 12 : 04 PM td .. . td 3 td .. . td Allan td .. . td 02 : 00 PM td .. . td 2 td .. . td Allen td .. . tr .. . table .. . .. . .. . table .. . tr .. . th Time th .. . th Hole th .. . th Player th .. . tr .. . .. . tr .. . td 12 : 06 PM td .. . td 2 td .. . td Ackerman td .. . tr .. . .. . tr .. . td 11 : 53 AM td .. . td 3 td .. . td Alexander td .. . tr .. . .. . tr .. . td 12 : 04 PM td .. . td 3 td .. . td Allan td .. . tr .. . .. . tr .. . td 02 : 00 PM td .. . td 2 td .. . td Allen td .. . tr .. . .. . tr .. . td 12 : 03 PM td .. . td 1 td .. . td Anderson td .. . tr .. . .. . tr .. . td 02 : 49 PM td .. . td 3 td .. . td Apple td .. . tr .. . .. . tr .. . td 02 : 53 PM td .. . td 1 td .. . td Campbell td .. . tr .. . .. . tr .. . td 02 : 15 PM td .. . td 4 td .. . td Deane td .. . tr .. . .. . tr .. . td 04 : 00 PM td .. . td 1 td .. . td Decker td .. . tr .. . .. . tr .. . td 10 : 31 AM td .. . td 5 td .. . td Esposito td .. . tr .. . .. . tr .. . td 02 : 41 PM td .. . td 4 td .. . td Estes td .. . tr .. . .. . tr .. . td 01 : 29 PM td .. . td 2 td .. . td Faidley td .. . tr .. . .. . tr .. . td 10 : 31 AM td .. . td 5 td .. . td Fisher td .. . tr .. . .. . tr .. . td 02 : 16 PM td .. . td 4 td .. . td Gaus td .. . tr .. . .. . tr .. . td 02 : 15 PM td .. . td 3 td .. . td Giancola td .. . tr .. . .. . tr .. . td 10 : 31 AM td .. . td 5 td .. . td Gibbons td .. . tr .. . .. . tr .. . td 02 : 13 PM td .. . td 3 td .. . td Hansen td .. . tr .. . .. . tr .. . td 02 : 51 PM td .. . td 2 td .. . td Healy td .. . tr .. . .. . tr .. . td 02 : 42 PM td .. . td 4 td .. . td Kain td .. . tr .. . .. . tr .. . td 04 : 01 PM td .. . td 2 td .. . td Kestner td .. . tr .. . .. . tr .. . td 02 : 12 PM td .. . td 3 td .. . td King td .. . tr .. . .. . tr .. . td 11 : 03 AM td .. . td 2 td .. . td Krieger td .. . tr .. . .. . tr .. . td 02 : 51 PM td .. . td 3 td .. . td Lee td .. . tr .. . .. . table Comment : why not use a responsive framework like Bootstrap Comment : How exactly would that help me with creating repeating groups of table columns I don t see how bootstrap can help with this specific scenario . It s not just a table with many columns it s a table with 3 columns that I would like to repeat horizontally on wider screens as space permits . Imagine an airport arrival TV screens alphabetically.. . Comment : @pixelwiz did my answer solve your problem or do you have more questions Comment : I still don t see a way to have basically like 4 tables next to each other horizontally on wide screens and reduce it to 3 2 1 depending on screen-size but only show the headings of each table when necessary even if I convert them to divs or UL . Comment : @pixelwiz updated answer pls see below .. . Answer : Ok so I have updated my answer to be EXACTLY like your comment there are 3 tables next to eachother with 2 rows of information for an example...here is the code and here is the example site http : codepen.io anon pen eNYvoq .. . .. . If this doesnt answer your question then comment as to what is not matching what your asking ." ] }
[ "yes-answer-long", "yes-answer-short" ]
user
UNK_RELATION
emulate@emulator@117
emulate -- reproduce a computer system function or software activity via a different hardware or software component @placeholder .
{ "confidence": [ 36.9936637878418, 27.754039764404297, 24.21127700805664, 24.019596099853516, 23.827531814575195, 23.063068389892578, 23.063068389892578, 22.974056243896484, 22.9424991607666, 22.9424991607666, 22.920217514038086, 22.45245361328125, 21.99428939819336, 21.938034057617188, 21.62100601196289, 21.532373428344727, 21.532373428344727, 21.532373428344727, 21.532373428344727, 21.532373428344727, 21.438278198242188, 21.34688377380371, 21.284732818603516, 20.683181762695312, 20.49181365966797, 20.438873291015625, 20.34389877319336, 20.34389877319336, 20.34389877319336, 20.34389877319336, 20.34389877319336, 20.34389877319336, 20.27056312561035, 19.59426498413086, 19.291873931884766, 19.21886444091797, 19.21886444091797, 18.91468048095703, 18.743026733398438, 18.743026733398438, 18.743026733398438, 18.743026733398438, 18.743026733398438, 18.743026733398438, 18.743026733398438, 18.743026733398438, 18.622222900390625, 18.59364128112793, 18.361730575561523, 17.763259887695312, 17.61799430847168, 17.61799430847168, 17.61799430847168, 17.61799430847168, 17.61799430847168, 17.61799430847168, 17.61799430847168, 17.515155792236328, 17.283071517944336, 17.115854263305664, 16.57953643798828, 16.269611358642578, 16.269611358642578, 16.269611358642578, 16.269611358642578, 16.205556869506836, 16.183406829833984, 16.019878387451172, 16.019878387451172, 15.716522216796875, 15.708677291870117, 15.662147521972656, 15.633809089660645, 15.626022338867188, 15.540853500366211, 15.474470138549805, 15.474470138549805, 15.36699390411377, 15.335437774658203, 15.335437774658203, 15.318679809570312, 15.28984546661377, 15.189376831054688, 15.094162940979004, 15.094162940979004, 15.080524444580078, 15.054500579833984, 14.915908813476562, 14.845390319824219, 14.809656143188477, 14.794557571411133, 14.40565299987793, 14.235188484191895, 14.235188484191895, 14.19247055053711, 14.188753128051758, 14.055887222290039, 13.92946720123291, 13.832515716552734, 13.7081298828125 ], "content": [ "Is there any software that can emulate IR devices on a windows based system. .", "To emulate a different domain", "There is a bug on cordova@6.1.1 when emulate android its stuck in emulate process this problem happens before in some last versions but the code of emulate.js is different now .", "However there seems to be some problems with this to http : stackoverflow.com questions 17220523 card-emulation-via-software-nfc 17244315 17244315 .. . .. . Here http : stackoverflow.com questions 20055497 emulate-mifare-card-with-android-4-4 20068329 20068329 someone thinks emulating might be possible .", "And in that case what phone did you use and what software libs", "You need emulate resolution", "the question is how to emulate IE8", "I m wondering if there s some sort of premade application or webapp to emulate what a website will look like to someone with poor eyesight .", "Are you trying to emulate those keys kind of complicated or just change the system brightness considerably simpler", "I am investigating the possibilities to emulate a mifare desfire card to simplify QA of a large authentication system .", "Is there a way to develop a compass sensor emulator based on GPS travel direction so for devices that has no compass sensor but has GPS can emulate the hardware sensor", "Or .. . .. . How can I emulate different version like IE8 IE9 etc using HTML meta tag", "It can emulate a dvd drive I suppose it rewrite a disc driver to mount ISO files but I can t find any materials to support my view .", "So I want to emulate it to .", "@epascarello : I want few of my software features to run properly on my client s machine .", "Is it possible to create an AVD to emulate the Nexus 4", "emulate : match or surpass a person or achievement typically by imitation .", "Is there any way to emulate a picturebox in a console-application", "I m trying to emulate Beagleboard on Windows .", "I am attempting to programatically emulate a mouseclick keypress .", "The problem is that I want to have virtual usb controller with custom vid and pid to emulate different gamepad from different vendor to test my app .", "Flagging for : Questions asking us to recommend or find a book tool software library tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam . The search term you want is accessibility .", "Is there any idea how to emulate TouchInput", "I have been using this to emulate key presses : .. . .. . For letters I can use : kVK ANSI A but how can I press function keys", "Apple frowns on running their software on non-mac hardware and they don t just sell copies of their OS it s technically a violation of the user agreement attached to the OS .. . .. . If you have a copy of the OS to run there are websites that show you how to get it up and running in a Virtual Machine but it will be somewhat involved and technically illegal .", "For this I was wondering whether I could make on-screen buttons which emulate the keys W for example .", "I was wondering if its possible to buy the mac OS and emulate it using VMware .", "Only on this IE window you can choose to emulate other IE versions .", "What can I do to emulate a simple mouse click key press", "The following is the output after dropping to root then running the emulate command .", "Is there a way to fully emulate another windows version and run it for this application alone", "I want to emulate a keypress when the user clicks on a button .", "@John : If you look closely you ll see that it says Upgrade from .. . without the software to upgrade from this doesn t do you any good .", "I would like to create a program that can emulate a gamepad being connected to the computer and pressing buttons using the joystick on that virtual gamepad to control other games on OS X .", "Which hardware are you using", "I was wondering if I can emulate such behavior of SSH tunnels using python", "What WPF-Combination would present me with an adequate solution to emulate a console", "j is a WebBrowser component from DJSwing", "I need real IE8 for dev test .. . .. . How do I emulate it properly", "Emulation mode is not properly named as it does not match or surpass native functionality it therefor does not emulate .", "In order to make the tests available to run we must set the browser to work as emulate touch-events .", "I already check this one but it doesn t work : How to Always Emulate Touch Events in Chrome Dev Tools", "http : stackoverflow.com questions 18366332 how-to-always-emulate-touch-events-in-chrome-dev-tools .. . .. . Any other suggestions", "Last realeased images can be found here : http : beagleboard.org latest-images .. . .. . Anyone know how to emulate it", "You don t need to emulate the browser and then fetch back to server - it s way more complicated and unreliable .", "without any plugin install .. . just creating a new fresh project and try to emulate android .", "Or they disassemble the hardware", "I am currently working on creating applications for this device : .. . .. . http : www.eonreality.com eon-ibench-mobile .. . .. . I do not have 24 hour access to the device and was wondering if it was possible to emulate the tracking system used in the above device .", "When i try to emulate on android device I am getting the below error rm failed for -f No such file or directory .. . .. . Anybody has any idea regarding this", "What I want to do is to be able to emulate the browser and create an image from those files directly from php in order to email them to the appropriate department .", "On conventional PC keyboards the Windows Key can be used to emulate the Fn key and a corresponding integrated numeric keypad .", "What is the xkb keyboard mapping profile that will emulate an integrated numeric keypad using the windows key as the fn key", "I d like to either put a console into a wpf-window not running seperately OR emulate the console itself .", "However I cannot find anywhere on how to emulate the gamepad gamepad button presses .", "Wjoy an Nintendo Wiimote to gamepad event mapper seem to know how to emulate a gamepad in OS X .", "enter image description here http : i.stack.imgur.com vl7w1.png .. . .. . And I want emulate to colums stretching .", "I have this sample code where I emulate screen touch by invoking shell command input tap 807 730 .", "ok i must agree with u but i found it personnaly to reproduce quite closely my page display of native IE8", "The link in the popup is launched via a target blank .", "I am creating my own bash script but i am stuck atm.Basically the script would be used to automate server setup in centos.Some software normally ask user to type a password.I want the script to put the password that i have generated stored as variable instead of asking the user .", "Does the browser treat different ports as a different domain", "Update 2013.08.15 : I managed to emulate touch-event using 1 . adb shell slow 2 .", "Create an app probably service which receives data from the input device and emulate the touch-event .", "Question : Is it possible to use some boot-time settings or other hacks to run emulate these OSes in 32-bit mode", "It s running perfectly on iPhone but when I emulate it with GenyMotion it returns this error : .. . .. . Skipped 33 frames", "Is there a different way of JQuery draggable element moving", "I d just like it to click W for you not execute a function upong clicking W .", "Ideally there is some translation layer available that presents one file system as another type of file system .", "Adb routes through the system so you have privileges like a system app .", ".. . .. . the same is true for the other two jquery function descriptions", "It s possible the WebBrowser component has it s own native integration and isn t using the Swing event queue directly therefore it might not be possible to dispatch events in this .", "Your choices are full multi-boot setup using VMs might hide expose bugs being content with the emulation layer or running the other OS s on different hardware .", "We are trying to run some automated-tests coded ui based on our mobile-application via Chrome browser .", "I can do that but where do I get images with different versions", "If I were able to somehow create my own axis input then I wouldn t even need to emulate the controller but I don t know how to do that either .", "I try to emulate run on android but i ve this error message : .. . .. . FAILURE BUILD failed with an exception .. . .. . Could not resolve all dependencies for configuration : classpath .. . .. . failed to list versions for com.android.tools.build : gradle .. . .. . Connection to https : repo1.maven.org refused .. . .. . If someone have a idea for fixe the problem help me", "How can i from a python script emulate user data like : .. . .. . Say i run os.system grunt-init : gruntfile and i want the python script automatically to enter some data so instead of the user inputs the data that the shell command asks for the python script enters some data hard-coded in the script", "Also check out the SO tag for accessibility http : stackoverflow.com tags accessibility info .", "i m working on a small system overlay and i want to replace my Nexus4 softkeys with it .", "Well I would like to change the system brightness but also play and skip songs with F8 and F9 .", "You can work with ConsoleBuffer s of different sizes for a different number of look behind characters .", "I am also looking for the same thing one app I tried first send a screenshot to other device and then I can emulate the touch on that screenshot .", "I can t figure out why I can no longer build Android apps using Cordova on the same computer that I used to build the same apps that worked last month after having updated Cordova and NodeJS .", "How can I present a Linux native file system e.g .", "You can not send input events to system dialogs for obvious security reasons .", "Didn t know port will treated as a different origin .", "like when i want to add my ssh key to my ssh-agent i automatically pass the pass-phrase to ssh-add via expect .", "I have been reading up on function keys and how function keys are treated differently and I tried things like hitting Fn first but that didn t work .", "The OP said I can not see what they are seeing if I use F12 what can I do different .", "You can do it via code-rewriting .", "I am using Eclipse and I m pretty sure I have updated all of the SDK tools etc along with the 4.2 SDK system Image etc .", "I have program invoked via command1 .. . .. . With above program I need to press ctrl+e cd ctrl+e co and ctrl+e c . key combinations to perform what I need and then exit .", "So far I have : .. . .. . .. . DOCTYPE HTML .. . html .. . head .. . .. . script .. . function genkey .. . .. . var event document.createEvent Event .. . event.initEvent keypress true true .. . event.keyCode 115 .. . document.dispatchEvent event .. . .. . .. . function clicked .. . .. . document.getElementById mytxt .focus .. . genkey .. . .. . .. . .. . function myattachevent obj eventnaam func useCapture .. . .. . try .. . .. . if obj.attachEvent .. . obj.attachEvent on + eventnaam func .. . else .. . if obj.addEventListener .. . obj.addEventListener eventnaam func useCapture .. . else .. . alert both attachEvent and addEventListener do not exist", ".. . .. . catch err .. . .. . alert exception in myattacheevent .. . .. . .. . .. . function keydownfunc event .. . .. . alert keycode + event.keyCode .. . .. . .. . function initpage .. . .. . myattachevent document keypress function event keydownfunc event false .. . .. . .. . script .. . head .. . body onLoad initpage .. . INPUT type button VALUE s onClick clicked return false .. . br .. . input type text id mytxt value hi size 10 maxlength 10 .. . br .. . body .. . html", "This clearly means that Example http : jsfiddle.net aGRDF 2 .. . .. . This allows us to add properties to say Object.prototype Example http : jsfiddle.net aGRDF 1 .. . .. . Question .. . .. . How can we emulate this in non-ES5 compliant browsers", "You can help prevent these kinds of errors from occurring by updating your device drivers after formatting and reinstalling your operating-system or installing a Windows Updates .", "you can also use the window.scrollTo function to cancel the vertical scroll by setting vertical offset back to the value it was before the scroll event .", "Depending on how the target app is implemented it might be ignoring any coordinates provided in mouse events and instead retrieves the mouse s current position via GetCursorPos .", "You may install VirtualPC images with different IE versions for free from this Microsoft provided page https : www.microsoft.com en-us download details.aspx displaylang en id 11575", "When I run ionic build android or ionic emulate android I get the following : .. . .. . Error : Failed do find ANDROID HOME .. ." ] }
{ "confidence": [ 34.91147994995117, 33.87226486206055, 33.08802032470703, 30.159208297729492, 28.724716186523438, 26.136301040649414, 25.90813446044922, 25.539505004882812, 24.477487564086914, 24.432994842529297, 24.417150497436523, 23.43579864501953, 23.227136611938477, 22.63477325439453, 21.88921356201172, 21.11258888244629, 20.869529724121094, 20.759071350097656, 20.540775299072266, 20.251062393188477 ], "content": [ "Question : null .. . Answer : I am investigating the possibilities to emulate a mifare desfire card to simplify QA of a large authentication system . My current ideas are : Arduino implementation Android implementation .. . .. . I want an easy way of doing this . I can see that cyanogenmod has done some development http : review.cyanogenmod.org q status : merged+project : CyanogenMod android packages apps Nfc n z on this specific card . But I also read it might be incompatible http : stackoverflow.com questions 18497803 is-the-samsung-galaxy-s4-compatible-with-cyanogenmods-smart-card-emulation-nfc rq 1 with the Samsung S4 which is my primary device . I can get a hold of some nexus phones if that helps . However there seems to be some problems with this to http : stackoverflow.com questions 17220523 card-emulation-via-software-nfc 17244315 17244315 .. . .. . Here http : stackoverflow.com questions 20055497 emulate-mifare-card-with-android-4-4 20068329 20068329 someone thinks emulating might be possible . Concerning the arduino alternative this seems a little harder to do if the android alternative can be done . Does anybody have any experience with emulating the RFID on Android . And in that case what phone did you use and what software libs", "Question : null .. . Answer : I am currently working on creating applications for this device : .. . .. . http : www.eonreality.com eon-ibench-mobile .. . .. . I do not have 24 hour access to the device and was wondering if it was possible to emulate the tracking system used in the above device . Such as the IR Glasses IR stylus . Is there any software that can emulate IR devices on a windows based system. . Thanks", "Question : null .. . Answer : I m wondering if there s some sort of premade application or webapp to emulate what a website will look like to someone with poor eyesight . Comment : Flagging for : Questions asking us to recommend or find a book tool software library tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam . The search term you want is accessibility . Also check out the SO tag for accessibility http : stackoverflow.com tags accessibility info .", "Question : null .. . Answer : Can anyone guide me how to disable enterprise mode of Internet Explorer using Html code for e.g . meta tag Or .. . .. . How can I emulate different version like IE8 IE9 etc using HTML meta tag I tried something like below but its not helping . Comment : Why are you not manually changing the mode in the browser console or ever better use virtual-machine images from Microsoft with the actual browser . Comment : @epascarello : I want few of my software features to run properly on my client s machine . I cannot ask client to turn off enterprise mode . Is there way anyone know", "Question : Possible Duplicate : .. . Is it possible to run OSX in a virtual-machine http : stackoverflow.com questions 39159 is-it-possible-to-run-osx-in-a-virtual-machine .. . .. . So i want to getting into iphone development . Currently I m a student so money is a problem at the moment . Otherwise i would just go out and buy a mac . I was wondering if its possible to buy the mac OS and emulate it using VMware . I want do develop apps that will go in the app-store so I want a good environment where i can create apps without them getting rejected by the apple store because they were built on a virtual-machine or something . Is this possible or will i just have to wait and buy a Mac Thanks .. . Answer : Apple frowns on running their software on non-mac hardware and they don t just sell copies of their OS it s technically a violation of the user agreement attached to the OS .. . .. . If you have a copy of the OS to run there are websites that show you how to get it up and running in a Virtual Machine but it will be somewhat involved and technically illegal . Comment : I believe you can store.apple.com us product MAC OS X SNGL http : store.apple.com us product MAC OS X SNGL Comment : @John : If you look closely you ll see that it says Upgrade from .. . without the software to upgrade from this doesn t do you any good . The base OS that you would need is not available for purchase in the same way that you would see Windows available for purchase .", "Question : I m developing asp.net website on IE10 Windows 8 + VS2012 .. . .. . Users noticed some artifacts and they use IE8 . If I use F12 tools and set site to IE8 I don t see it . I need real IE8 for dev test .. . .. . How do I emulate it properly Comment : Did you test it on another machine where installation of IE 8 is possible Never believe users : Comment : Yes I remote desktop to one machine with IE8 . But I want to know how to duplicate it on my machine so I can effectively fix it . .. . Answer : click F12 on Internet explorer to activate the debuger find the emulator mode and choose your version Comment : the question is how to emulate IE8 Comment : emulate : match or surpass a person or achievement typically by imitation . Emulation mode is not properly named as it does not match or surpass native functionality it therefor does not emulate . Comment : Furthermore if you read the question again . The OP said I can not see what they are seeing if I use F12 what can I do different . And you said use F12.. . Comment : ok i must agree with u but i found it personnaly to reproduce quite closely my page display of native IE8 Comment : Mostly I see errors in javascrip and with some html tags . When I test in IE compatibility-mode it always misses the gotyas and then the client comes back and said things such as xyz does not work . I now just ignore the compatibility-mode all together", "Question : null .. . Answer : I have been using this to emulate key presses : .. . .. . For letters I can use : kVK ANSI A but how can I press function keys It auto-fills : kVK F2 for the F2 key and so on but it definitely does not change the brightness as expected . I have been reading up on function keys and how function keys are treated differently and I tried things like hitting Fn first but that didn t work . Comment : Are you trying to emulate those keys kind of complicated or just change the system brightness considerably simpler Comment : Well I would like to change the system brightness but also play and skip songs with F8 and F9 . Can I get all the functionality of those keys without emulating them Comment : Yes all of this functionality is available through more direct and reliable means than simulating keypresses . Comment : Okay thanks . But I would like to use keystrokes if possible . I am trying to build a virtual keyboard.. .", "Question : I would like to create a program that can emulate a gamepad being connected to the computer and pressing buttons using the joystick on that virtual gamepad to control other games on OS X . However I cannot find anywhere on how to emulate the gamepad gamepad button presses . .. . Answer : Wjoy an Nintendo Wiimote to gamepad event mapper seem to know how to emulate a gamepad in OS X . https : github.com alxn1 wjoy .. . .. . They do include virtual HID interface driver can be used for creating virtual mouses keyboars joysticks . And it s open-source .", "Question : null .. . Answer : Is there a way to develop a compass sensor emulator based on GPS travel direction so for devices that has no compass sensor but has GPS can emulate the hardware sensor This way apps that want to use the compass can still work fairly accurately . Any thoughts Comment : Sure there is a way . Next question . Comment : Thanks Matt for the answer . Are there any android apps you know of or can someone build one I m sure there are many who would be interested in using such app . I searched and searched but couldn t find any .", "Question : null .. . Answer : It can emulate a dvd drive I suppose it rewrite a disc driver to mount ISO files but I can t find any materials to support my view .", "Question : We are trying to run some automated-tests coded ui based on our mobile-application via Chrome browser . In order to make the tests available to run we must set the browser to work as emulate touch-events . The thing is that as part of our test flow a new chrome browser is being launched on each test but the definition is gone . I already check this one but it doesn t work : How to Always Emulate Touch Events in Chrome Dev Tools http : stackoverflow.com questions 18366332 how-to-always-emulate-touch-events-in-chrome-dev-tools .. . .. . Any other suggestions Thanks Yair .. . Answer : I believe that the dev tools window must be opened for the overrides to kick in have you tried that", "Question : There is a bug on cordova@6.1.1 when emulate android its stuck in emulate process this problem happens before in some last versions but the code of emulate.js is different now . there is anyone can help enter image description here http : i.stack.imgur.com 2oRkI.jpg Comment : What plugins are you using Found similar issue in this link - github.com intercom intercom-cordova issues 48 https : github.com intercom intercom-cordova issues 48 which is pertaining to issue in plugin Comment : without any plugin install .. . just creating a new fresh project and try to emulate android . its stuck . .. . Answer : I figure out the problem . as I m new in cordova and android I installed new android-studio that come with android v.6 and cordova using their emulator but cordova using andriod@5.1.1 so what I dome change the emulator version . : Comment : Glad you resolved it . Comment : thank you Gandhi", "Question : null .. . Answer : I am attempting to programatically emulate a mouseclick keypress . By that I mean telling the application that the mouse or key has been pressed but not having my mouse actually be clicked in windows . I have tried many things up to now and none of them have succeeded in doing what I wish . I attempted to use processMouseMotionEvent which did nothing when I fed it MouseEvent s and I ve tried dispatchEvent which also did nothing of use . What can I do to emulate a simple mouse click key press This is what I have right now though it doesn t do anything . j is a WebBrowser component from DJSwing Comment : It s possible the WebBrowser component has it s own native integration and isn t using the Swing event queue directly therefore it might not be possible to dispatch events in this . You may need to consider using java.awt.Robot Comment : @MadProgrammer Ugh I was worried that might be the issue.. . Is it possible to utilise java.awt.Robot in a way that doesn t control the Windows mouse Comment : Otherwise I ll need to find a new browser independant mouse keyboard control is a key feature to this application Comment : I m not familiar with the core API itself but from what I can get out of the JavaDocs no don t think there is away to do it . No interacting with the Mouse using Robot will effective its Phaeacian properties that s kind of the point . You could remember where the mouse is and out it back after you ve finished with it but that might cause some other issues as well", "Question : null .. . Answer : I can t figure out why I can no longer build Android apps using Cordova on the same computer that I used to build the same apps that worked last month after having updated Cordova and NodeJS . Currently I m having to utilize super user privileges to get as far as Cordova launching the emulator but it is then unable to install the app on the emulator and subsequently crashes with the following error . So first to root with .. . .. . Then the cordova command will launch the emulator without sudo .. . .. . if I try cordova run android I get nothing launching on the connected device . The following is the output after dropping to root then running the emulate command . I never previously had to drop to root to launch the Android emulator with Cordova why is this currently the case and why is the app not installing on the emulator", "Question : I m making a game similar to the proper franchise Agar and on mobile I d like the players to be able to split and eject mass . For this I was wondering whether I could make on-screen buttons which emulate the keys W for example . Thus clicking it will eject mass . I did some searching and I discovered something called accesskey in HTML but this requires the user to also click on ALT or whatever their browser supports to trigger it . Is there something similar to this which does not require ALT and just needs the key e.g . w to shoot I d just like it to click W for you not execute a function upong clicking W . .. . Answer : Just use JQuery in your javascript code put something like :", "Question : null .. . Answer : The problem is that I want to have virtual usb controller with custom vid and pid to emulate different gamepad from different vendor to test my app . For example I ve got a Razer Gamepad with vid 0x1532 pid 0x0900 and I want to use it with vid 0x045e pid 0x028e or vid 0x20d6 pid 0x0dad and so on .", "Question : When i try to emulate on android device I am getting the below error rm failed for -f No such file or directory .. . .. . Anybody has any idea regarding this .. . Answer : If you are using the T3 emulator you have to edit its configuration to use less memory and to use Google Api 16 . At least that fixed it for me . You should check the User s Guide http : developer.kony.com twiki pub Portal Docs Kony Studio User Guide.pdf to configure the emulator .", "Question : null .. . Answer : I m trying to emulate Beagleboard on Windows . Last realeased images can be found here : http : beagleboard.org latest-images .. . .. . Anyone know how to emulate it Comment : check this for ubuntu wiki.linaro.org Resources HowTo Qemu-beagleboard https : wiki.linaro.org Resources HowTo Qemu-beagleboard Comment : Thanks vinay yes I see that article and I try with same parameters and others and can t found the combination to run the image . Comment : R u trying on windows . if you are trying on linux then share what combination u tried Comment : I m trying in Windows Comment : Then u need to get windows compitable binaries for that to work", "Question : Is it possible to create an AVD to emulate the Nexus 4 I am using Eclipse and I m pretty sure I have updated all of the SDK tools etc along with the 4.2 SDK system Image etc . However when I open the AVD manager to add a new AVD there no longer seems to be the ability to enter a custom resolution density etc . There is a droplist containing several devices but no Nexus 4 and no generic version with a resolution of 768x1200 . Am I just missing something obvious Thanks in advance for any help Comment : You need emulate resolution Comment : Yes the resolution is important for me in this case as the app changes behaviour based partly on resolution . .. . Answer : After Update your ADT to version 21 . In Older Version each time you have to set Add Custom Screen if you want custom Device Configurations as-if you want Nexus 4 . .. . .. . In ADT21 version you can get this thing done by .. . .. . open AVD Manager u can define your custom screen in Device Definition .. . .. . Alternative Much Easier approach .. . .. . in Newest Version you Don t Need to Set Custom Device Configurations from the above Suggestion as much easier way is available for it . you Just Have to Make Emulator With your Device Configurations and after you will see those Configurations with Emulator Name Inside Graphical Layout of XML .. . .. . like after Created my Emulator of Nexus7 Emulator with Android 4.2 with Name as Nexus7 Android 4.2 i will get this Device Configuration in Graphical Layout of xml automatically . Below is the Screen Shot of it . enter image description here http : i.stack.imgur.com 0L25n.png .. . .. . Hope it will Help you . Comment : Thank you very much Bhavesh Can t believe I missed that device definitions tab - I must just be stuck in my ways . Thanks also for the extra info on the layout editor - very handy Comment : Welcome : you can also Upvote the Answer for make it more useful for other users . Comment : Thank you Bhavesh - I have upvoted your answer now I didn t have enough reputation to upvote previously .", "Question : null .. . Answer : Is there a way to make cross-site requests in the localhost To emulate a different domain How do you make an application for example to do JSON-P or CORS and test it in your local machine without having an actual domain I am using NodeJS and WebStorm . Thank you . Comment : Start two servers at once each listening on a separate port -- localhost : 3000 and localhost : 3001 for example . One for the page making the request the other for the requested resource . Comment : But the domain will be the same . Does the browser treat different ports as a different domain Comment : Cross-site is determined by the origin not just the domain hostname which also includes the protocol and port . MDN : Same-Origin Policy https : developer.mozilla.org en-US docs Web Security Same-origin policy Comment : Thank you Jonathan . Didn t know port will treated as a different origin ." ] }
[ "yes-answer-long", "yes-answer-short" ]
emulator
UNK_RELATION
linkmovementmethod@api@69
linkmovementmethod -- this is a java movement method in the android @placeholder that traverses links in the text buffer and scrolls if necessary .
{ "confidence": [ 31.013713836669922, 28.417850494384766, 26.77688217163086, 25.33803367614746, 25.33803367614746, 22.605323791503906, 20.203720092773438, 19.47787857055664, 19.145095825195312, 18.669921875, 18.5128116607666, 18.202829360961914, 17.888221740722656, 17.888221740722656, 17.743396759033203, 17.644275665283203, 16.908044815063477, 16.119951248168945, 15.654834747314453, 14.808406829833984, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.866140365600586, 13.710159301757812, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598, 10.786324501037598 ], "content": [ "LinkMovementMethod or OnClick", "You can always just extend LinkMovementMethod and catch the error there .", "I have a couple of text links in my Android applications which are either email addresses or web links .", "Although it is really strange that the OnClickListener does not overwrite the settings of LinkMovementMethod .", "Still I do not understand what LinkMovementMethod actually is good for .", "The big problem I am facing is that I cannot try-catch code in my activity as the click is handled by LinkMovementMethod .. . .. . Any idea on how I can avoid such errors", "Another option is to use the method in this question http : stackoverflow.com questions 7050068 check-if-intent-uri-is-available to determine ahead of time if anything is prepared to handle your links .", "In this case maby that this http : stackoverflow.com questions 11330363 how-to-detect-device-is-android-phone-or-android-tablet post wil guide you .", "stackoverflow.com questions 19908547 http : stackoverflow.com questions 19908547 create-clickable-link-in-text-view-in-android", "I ve the following convenience method : .. . .. . I m using that method to create a clickable link inside a textview given the textview itself the text link and the url .", "I have noticed that we can use the setMovementMethod to make these links clickable : .. . .. . This works pretty well but on some devices it crash with ActivityNotFoundException and that is quite understanble .", "https : support.google.com accessibility android answer 6378148 hl en .. . .. . Any help would be appreciated .", "I have a CheckedTextBox whose text is made up of two SpannableStrings one of which is a URLSpan .", "However I wanted to see if I can go that extra mile to enable the user to scroll and focus to the link portion of the text .", "If your textview his origin is in xml you can try an aproach defined here http : stackoverflow.com questions 2734270 how-do-i-make-links-in-a-textview-clickable .", "I ve checked on the Android Accessibility Help documentation and it seems that as long as the user hears a chime and can see the link in the local context menu it is sufficient .", "Maby seperating the 2 links in 2 textviews because the os can either way do one of the link website thats way it prob makes it clickable and crashes when you try to click the phonenumber one .. . .. . Hope this helps .", "Please note that you have to prefix the url string with mailto : in case of email links .", "Now I would to show a click effect when the user tap on that text .", "Do you have an onClick listener on a parent view that might be overriding the text view", "My question is how do I make so that a user can move the accessibility focus through each span eventually focusing on the URLspan itself", "setMovementMethod and setLinksClickable doesn t seem to work for me .", "I have currently a TextView with some HTML phone numbers and url .", "see code below .. . .. . These problems appear in my developer console and I cannot reproduce them .", "Something like : .. . .. . Will display an error message in the case that there is no application setup to handle the intent .", "Not tested yet but definitely sound like a perfect answer", "Answer accepted", "Use it like this : - setMovementMethod new MovementCheck", "Or use it like this .", "Add : private static MovementCheck sInstance public static MovementCheck getInstance if sInstance null sInstance new MovementCheck return sInstance Also context can be obained from TextView : widget.getContext", "Maby I am almost sure of it .", "but will the OS handle this for u .", "If this doesnt work then you must write device independ code for tablets and for phones .", "When its a Phone you will allow the linking and else you wont .", "ALso crash if set in xml and it crash on some phones too even url crash", "Have you tried to to a device type check", "or maby seperating the phone-number and url in 2 textviews", "I have updated my answer a little .", "Sorry but GalaJon answer looks like the solution I was looking for .", ".. . .. . UPDATE .. . .. . I was able to obtain what I mean in this way : .. . .. . And defining a color state list xml file : .. . .. . Now the color of the text contained in the TextView changes when I press on it .", "I use the following code snippet to set them up example for a web link : .. . .. . The TextView has no special attributes set such as android : linksClickable android : clickable or android : focusable .", "Its style inherits from @android : style TextAppearance.Small .", "For some reason the OnClickListener never gets called .", "you need to use that one thing .", "remove this code .. . .. . and manually add the following a link", "Thx .", "It is not possible to tell from the snippet of code you have pasted .", "Please show more code .", "For instance what does your declaration of textView look like", "Also youmight want to try not using an anonymous-inner-class as your listener an instead use the view.OnClickListener below for click events .", "How can I achieve this", "Thank you very much", "The only things that I don t understand is why the TextView background-color changes too becoming bright blue .", "My code doesn t do that I think .", "Anyone maybe knows that", "Use selector for tihs", "What you mean click effect", "Use a Spannable String .", "Just add android : autoLink web to your .xml file inside your TextView", "TextView textView TextView view.findViewById R.id.textview SpannableString linkText new SpannableString linkText linkText.setSpan new UnderlineSpan 0 linkText.length 0 textView.setText linkText .. . .. . This above code will make your textview have underline like link .", "Now Using implicit intent .", "Intent i new Intent this Intent.ACTION VIEW i.setData Uri.parse your http url .. . .. . startActivity i", "try this :" ] }
{ "confidence": [ 41.729339599609375, 38.07111740112305, 37.256431579589844, 35.799617767333984, 31.60382652282715, 21.454418182373047, 20.729042053222656, 19.894453048706055, 19.894453048706055 ], "content": [ "Question : I have a couple of text links in my Android applications which are either email addresses or web links . I use the following code snippet to set them up example for a web link : .. . .. . The TextView has no special attributes set such as android : linksClickable android : clickable or android : focusable . Its style inherits from @android : style TextAppearance.Small . For some reason the OnClickListener never gets called . Comment : you need to use that one thing . LinkMovementMethod or OnClick .. . Answer : remove this code .. . .. . and manually add the following a link Comment : Thx . Although it is really strange that the OnClickListener does not overwrite the settings of LinkMovementMethod . Still I do not understand what LinkMovementMethod actually is good for . Please note that you have to prefix the url string with mailto : in case of email links .", "Question : I have a couple of text links in my Android applications which are either email addresses or web links . I use the following code snippet to set them up example for a web link : .. . .. . The TextView has no special attributes set such as android : linksClickable android : clickable or android : focusable . Its style inherits from @android : style TextAppearance.Small . For some reason the OnClickListener never gets called . Comment : you need to use that one thing . LinkMovementMethod or OnClick .. . Answer : Do you have an onClick listener on a parent view that might be overriding the text view Also youmight want to try not using an anonymous-inner-class as your listener an instead use the view.OnClickListener below for click events .", "Question : I have a couple of text links in my Android applications which are either email addresses or web links . I use the following code snippet to set them up example for a web link : .. . .. . The TextView has no special attributes set such as android : linksClickable android : clickable or android : focusable . Its style inherits from @android : style TextAppearance.Small . For some reason the OnClickListener never gets called . Comment : you need to use that one thing . LinkMovementMethod or OnClick .. . Answer : It is not possible to tell from the snippet of code you have pasted . Please show more code . For instance what does your declaration of textView look like", "Question : I have currently a TextView with some HTML phone numbers and url . I have noticed that we can use the setMovementMethod to make these links clickable : .. . .. . This works pretty well but on some devices it crash with ActivityNotFoundException and that is quite understanble . see code below .. . .. . These problems appear in my developer console and I cannot reproduce them . The big problem I am facing is that I cannot try-catch code in my activity as the click is handled by LinkMovementMethod .. . .. . Any idea on how I can avoid such errors .. . Answer : You can always just extend LinkMovementMethod and catch the error there . Something like : .. . .. . Will display an error message in the case that there is no application setup to handle the intent . Another option is to use the method in this question http : stackoverflow.com questions 7050068 check-if-intent-uri-is-available to determine ahead of time if anything is prepared to handle your links . Comment : Not tested yet but definitely sound like a perfect answer Answer accepted Comment : Use it like this : - setMovementMethod new MovementCheck Comment : Or use it like this . Add : private static MovementCheck sInstance public static MovementCheck getInstance if sInstance null sInstance new MovementCheck return sInstance Also context can be obained from TextView : widget.getContext", "Question : I have currently a TextView with some HTML phone numbers and url . I have noticed that we can use the setMovementMethod to make these links clickable : .. . .. . This works pretty well but on some devices it crash with ActivityNotFoundException and that is quite understanble . see code below .. . .. . These problems appear in my developer console and I cannot reproduce them . The big problem I am facing is that I cannot try-catch code in my activity as the click is handled by LinkMovementMethod .. . .. . Any idea on how I can avoid such errors .. . Answer : If your textview his origin is in xml you can try an aproach defined here http : stackoverflow.com questions 2734270 how-do-i-make-links-in-a-textview-clickable . Maby I am almost sure of it . but will the OS handle this for u . If this doesnt work then you must write device independ code for tablets and for phones . In this case maby that this http : stackoverflow.com questions 11330363 how-to-detect-device-is-android-phone-or-android-tablet post wil guide you . When its a Phone you will allow the linking and else you wont . Maby seperating the 2 links in 2 textviews because the os can either way do one of the link website thats way it prob makes it clickable and crashes when you try to click the phonenumber one .. . .. . Hope this helps . Comment : ALso crash if set in xml and it crash on some phones too even url crash Comment : Have you tried to to a device type check Comment : or maby seperating the phone-number and url in 2 textviews Comment : I have updated my answer a little . Comment : Sorry but GalaJon answer looks like the solution I was looking for .", "Question : null .. . Answer : I have a CheckedTextBox whose text is made up of two SpannableStrings one of which is a URLSpan . My question is how do I make so that a user can move the accessibility focus through each span eventually focusing on the URLspan itself setMovementMethod and setLinksClickable doesn t seem to work for me . I ve checked on the Android Accessibility Help documentation and it seems that as long as the user hears a chime and can see the link in the local context menu it is sufficient . However I wanted to see if I can go that extra mile to enable the user to scroll and focus to the link portion of the text . https : support.google.com accessibility android answer 6378148 hl en .. . .. . Any help would be appreciated .", "Question : I ve the following convenience method : .. . .. . I m using that method to create a clickable link inside a textview given the textview itself the text link and the url . Now I would to show a click effect when the user tap on that text . How can I achieve this Thank you very much .. . .. . UPDATE .. . .. . I was able to obtain what I mean in this way : .. . .. . And defining a color state list xml file : .. . .. . Now the color of the text contained in the TextView changes when I press on it . The only things that I don t understand is why the TextView background-color changes too becoming bright blue . My code doesn t do that I think . Anyone maybe knows that Comment : Use selector for tihs Comment : What you mean click effect Comment : Use a Spannable String . stackoverflow.com questions 19908547 http : stackoverflow.com questions 19908547 create-clickable-link-in-text-view-in-android .. . Answer : try this :", "Question : I ve the following convenience method : .. . .. . I m using that method to create a clickable link inside a textview given the textview itself the text link and the url . Now I would to show a click effect when the user tap on that text . How can I achieve this Thank you very much .. . .. . UPDATE .. . .. . I was able to obtain what I mean in this way : .. . .. . And defining a color state list xml file : .. . .. . Now the color of the text contained in the TextView changes when I press on it . The only things that I don t understand is why the TextView background-color changes too becoming bright blue . My code doesn t do that I think . Anyone maybe knows that Comment : Use selector for tihs Comment : What you mean click effect Comment : Use a Spannable String . stackoverflow.com questions 19908547 http : stackoverflow.com questions 19908547 create-clickable-link-in-text-view-in-android .. . Answer : Just add android : autoLink web to your .xml file inside your TextView", "Question : I ve the following convenience method : .. . .. . I m using that method to create a clickable link inside a textview given the textview itself the text link and the url . Now I would to show a click effect when the user tap on that text . How can I achieve this Thank you very much .. . .. . UPDATE .. . .. . I was able to obtain what I mean in this way : .. . .. . And defining a color state list xml file : .. . .. . Now the color of the text contained in the TextView changes when I press on it . The only things that I don t understand is why the TextView background-color changes too becoming bright blue . My code doesn t do that I think . Anyone maybe knows that Comment : Use selector for tihs Comment : What you mean click effect Comment : Use a Spannable String . stackoverflow.com questions 19908547 http : stackoverflow.com questions 19908547 create-clickable-link-in-text-view-in-android .. . Answer : TextView textView TextView view.findViewById R.id.textview SpannableString linkText new SpannableString linkText linkText.setSpan new UnderlineSpan 0 linkText.length 0 textView.setText linkText .. . .. . This above code will make your textview have underline like link . Now Using implicit intent . Intent i new Intent this Intent.ACTION VIEW i.setData Uri.parse your http url .. . .. . startActivity i" ] }
[ "yes-answer-long", "yes-answer-short" ]
api
UNK_RELATION
cfstatic@javascript@35
cfstatic -- cfstatic is a css and @placeholder control for cfml applications created by dominic watson .
{ "confidence": [], "content": [] }
{ "confidence": [], "content": [] }
[ "yes-answer-long", "yes-answer-short" ]
javascript
UNK_RELATION
qtquickextras@user@88
qtquickextras -- the qt-quick extras module provides specialized controls for creating @placeholder interfaces .
{ "confidence": [ 29.480308532714844, 29.32211685180664, 27.450634002685547, 26.08570098876953, 20.694835662841797, 20.694835662841797, 19.162397384643555, 18.852922439575195, 17.845792770385742, 17.82449722290039, 17.72456932067871, 16.480859756469727, 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, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309, 12.145659446716309 ], "content": [ "I have just started looking into QML and QT Quick Controls and been playing around with the Tumbler control .", "Taking the code from the same example https : doc.qt.io qt-5 qtquickextras-gallery-example.html you can define your own TumblerStyle : .. . .. . I took this code from the Base TumblerStyle http : code.qt.io cgit qt qtquickcontrols.git tree src controls Styles Base TumblerStyle.qml n284 .", "You can always look into the source code : http : code.qt.io cgit qt qtquickcontrols.git tree src extras DelayButton.qml", "Use the columnForeground http : doc.qt.io qt-5 qml-qtquick-extras-tumblercolumn.html columnForeground-prop property of TumblerColumn : .. . .. .", "tumbler illustration http : i.stack.imgur.com RiIjB.png .. . .. . The implicitWidth of Tumbler is calculated based on the width of each individual TumblerColumn http : code.qt.io cgit qt qtquickcontrols.git tree src controls Styles Base TumblerStyle.qml n319 .", "It adds a check for the current item turning it red if it is current : .. . .. . Here s a list http : doc.qt.io qt-5 qml-qtquick-controls-styles-tumblerstyle.html highlight-prop of other styleData properties available within delegate .", "At the moment I have modified the example and tried to customise it to get a feel for the controls .", "custom tumbler column foreground http : i.stack.imgur.com rMS6r.png .. . .. . If you want to use the same foreground for all columns use the columnForeground http : doc.qt.io qt-5 qml-qtquick-controls-styles-tumblerstyle.html columnForeground-prop property in TumblerStyle instead .", "What am I missing because in the populate property docs http : doc.qt.io qt-5 qml-qtquick-listview.html populate-prop states : .. . .. . populate : Transition This property holds the transition to apply to the items that are initially created for a view .", "That s why I suggested creating a bug report because it s not good .", "I have a DelayButton http : doc.qt.io QtQuickEnterpriseControls qml-qtquick-enterprise-controls-delaybutton.html that I would like to stop flashing after it s been pressed when the operation triggered by the button is completed .", "You can debug this by adding a print line before the return statement of the expression : .. . .. . This prints -1 which is the default-value http : doc.qt.io qt-5 qml-qtquick-layouts-layout.html preferredWidth-attached-prop .", "I have following QML ListView inside ueLoginWindow : .. . .. . Now when I run app the items are fed to ListView from model correctly but non of the items get animated according to populate property .", "I would like all items get animated according to populate property .", ".. . It is applied to all items that are created when : .. . .. . The view is first created The view s model changes The view s model is reset if the model is a QAbstractItemModel subclass", "I think the problem is the model property should be updated after ListView has been initialised :", "still not good for me .", "All of the items get overlapped together at the first item s position .", "However it appears that none of the properties DelayButton are writeable .", "Is there a way to stop the flashing or must it always flash until the user presses the button again", "DelayButton is a subclass of the Button .", "The flashing state is actually linked to the checked property of the Button so the button.checked false will help .", "Perfect .", "Since the flashing is specific to DelayButton I didn t think to check whether it s affected by any of the properties in the base-class .", "Thanks .", "I have following QML Tumbler : .. . .. . Now as you can see in screenshot Tumbler Columns width is greater than parent s ColumnLayout geometry which is wrong .", "What did I miss", "I ve taken into acount ueNumericTumbler s ColumnLayout but the problem persits I do not know what to do", "Should I use anchors", "Tumbler Columns width too great http : i.stack.imgur.com K1NdF.png Or is it maybe problem in ueNumericTumbler s parent contaniner rectangle window named ueKeypad :", "Your last edit is a separate question in itself IMO .", "Maybe someone else will answer it but the original question has a solution .", "You re using the Layout attached property on the wrong object Layout.preferredWidth was only set on the Tumbler not the TumblerColumn .", "You can set the width to this instead : .. . .. . You ll need to account for the width of the separators though.. . ugh .", "This is not very nice .", "Please open a bug report http : bugreports.qt.io that mentions that this use-case should be easier .", "I ve rewritten answer please take a look", "As I said in my answer you ll need to take the width of the separators into account .", "Possibly the frame too .", "ok but if I hardcode widths into every column it will work but this is bad idea isn t it", "It s only a bad idea if you have several different target devices whose resolutions differ .", "But yeah it s better to calculate the width than hard-code it .", "I would like to have centered items in QML ListView and therefore I ve added following code of my ListView : .. . .. . Now print newIndex statement prints out correct value 3 in my case since at the moment I have 5 items and I would like the 3rd item to be in the center of ListView and other two items on the left side and the right side .", "Is this possible", "And out of scope of this question why Transition s also does not work taken from example", "I ve also set highlightRangeMode : ListView.ApplyRange taken from comment hint .", "Here is a screenshot of the problem : .. . .. .", "QML Items not centered http : i.stack.imgur.com e3bx8.png", "The problem here is that you are trying to place ListView delegates according to your needs .", "That s plain wrong since the ListView much like all the other views is meant to do that for you according to the ListView size .", "The ListView will always use all the available space resulting in the delegates all positioned to the left as you experienced .", "Instead of forcing the behaviour on the delegates you should constrain the ListView size and position it to be in the center .", "Then you can exploit highlightRangeMode with preferredHighlightBegin and preferredHighlightEnd from this answer http : stackoverflow.com a 29671761 2538363 to ensure the currently selected Item is in the center of the list .", "Also by using StrictlyEnforceRange you can force the selected Item to stay always in the center which would result in an IMO better way to select the desired Item .", "Here is an example implementing this approach .", "Sizes are hard-coded for simplicity but can be easily parametrised .", "As said I went a little bit further by setting the highlighting policy .", "Hope it helps .", "enter image description here http : i.stack.imgur.com Uu3gt.png", "should this could also work for vertical ListView", "@KernelPanic it should be adapted to consider the height instead of the width but basic steps are there .", "I think you should find something similar on SO or at least I remember giving an answer for the vertical entering...but may be wrong .", "I am trying to give a Tumbler my own style .", "I declare the Tumbler like this : .. . .. . where MyTymblerStyle is defined like this : .. . .. . I use it in a Row like this : .. . .. . Now the result looks like this : .. . .. .", "Screenshot http : i.stack.imgur.com jBbui.png .. . .. . As you can see the Uhr text center is aligned to the top of the Tumbler .", "Also the Row does not seem to recognize the real width of the Tumbler .", "Why", "It does work when I do not use MyTumblerStyle .", "The problem isn t your style it s the width assignment .", "It helps to break out the Rectangle s at a time like this : .. . .. . I don t have access to UIConstants so I guess the width you set .. . .. .", "This allows you to set individual widths for columns something that is necessary for scenarios where some are wider than others for example : .. . .. .", "tumbler date picker http : i.stack.imgur.com ytKpZ.png .. . .. . So you should also set the width of your column or preferably only set the width of your column and not the entire Tumbler : .. . .. . This also explains why the Text is weirdly positioned the Row sees 30 pixels but the column still has its original much wider width .", "I am trying to familiarise myself with QML and was looking at the nice example involving TumblerColumn .", "I have a simple spinner column as : .. . .. . Now I would like to change the colour of the currently selected item .", "I tried to use the highlight property but could not get it to work .", "Is this easy to do", "Do you mean the text colour of the current item for example", "Minimal example :", "Thanks so much", "I started looking into it and quickly had got overwhelmed .", "Still finding my feet with QML .", "So the way it stands is as follows : .. . .. . Now I have overridden most if the default styles as follows : .. . .. . Now what I want to do is instead of having a frame around the whole tumbler control I just want to draw a line at the top and bottom if the TumblerColumn .", "So one can imagine that my Tumbler has-many TumblerColumns and I just want to be able to basically be able to just draw a line at the top of the control along its width and at the bottom .", "However it seems with the TumblerStyle I can only modify things that affect the whole Tumbler control .", "How is it possible to decorate a single TumblerColumn", "Works like a charm" ] }
{ "confidence": [ 41.230712890625, 38.140140533447266, 32.511539459228516, 21.874088287353516, 19.38670539855957, 18.771257400512695, 12.049238204956055 ], "content": [ "Question : I am trying to familiarise myself with QML and was looking at the nice example involving TumblerColumn . I have a simple spinner column as : .. . .. . Now I would like to change the colour of the currently selected item . I tried to use the highlight property but could not get it to work . Is this easy to do Comment : Do you mean the text colour of the current item for example .. . Answer : Taking the code from the same example https : doc.qt.io qt-5 qtquickextras-gallery-example.html you can define your own TumblerStyle : .. . .. . I took this code from the Base TumblerStyle http : code.qt.io cgit qt qtquickcontrols.git tree src controls Styles Base TumblerStyle.qml n284 . It adds a check for the current item turning it red if it is current : .. . .. . Here s a list http : doc.qt.io qt-5 qml-qtquick-controls-styles-tumblerstyle.html highlight-prop of other styleData properties available within delegate . Minimal example : Comment : Thanks so much I started looking into it and quickly had got overwhelmed . Still finding my feet with QML .", "Question : I have just started looking into QML and QT Quick Controls and been playing around with the Tumbler control . At the moment I have modified the example and tried to customise it to get a feel for the controls . So the way it stands is as follows : .. . .. . Now I have overridden most if the default styles as follows : .. . .. . Now what I want to do is instead of having a frame around the whole tumbler control I just want to draw a line at the top and bottom if the TumblerColumn . So one can imagine that my Tumbler has-many TumblerColumns and I just want to be able to basically be able to just draw a line at the top of the control along its width and at the bottom . However it seems with the TumblerStyle I can only modify things that affect the whole Tumbler control . How is it possible to decorate a single TumblerColumn .. . Answer : Use the columnForeground http : doc.qt.io qt-5 qml-qtquick-extras-tumblercolumn.html columnForeground-prop property of TumblerColumn : .. . .. . custom tumbler column foreground http : i.stack.imgur.com rMS6r.png .. . .. . If you want to use the same foreground for all columns use the columnForeground http : doc.qt.io qt-5 qml-qtquick-controls-styles-tumblerstyle.html columnForeground-prop property in TumblerStyle instead . Comment : Works like a charm", "Question : I have a DelayButton http : doc.qt.io QtQuickEnterpriseControls qml-qtquick-enterprise-controls-delaybutton.html that I would like to stop flashing after it s been pressed when the operation triggered by the button is completed . However it appears that none of the properties DelayButton are writeable . Is there a way to stop the flashing or must it always flash until the user presses the button again .. . Answer : DelayButton is a subclass of the Button . The flashing state is actually linked to the checked property of the Button so the button.checked false will help . You can always look into the source code : http : code.qt.io cgit qt qtquickcontrols.git tree src extras DelayButton.qml Comment : Perfect . Since the flashing is specific to DelayButton I didn t think to check whether it s affected by any of the properties in the base-class . Thanks .", "Question : I am trying to give a Tumbler my own style . I declare the Tumbler like this : .. . .. . where MyTymblerStyle is defined like this : .. . .. . I use it in a Row like this : .. . .. . Now the result looks like this : .. . .. . Screenshot http : i.stack.imgur.com jBbui.png .. . .. . As you can see the Uhr text center is aligned to the top of the Tumbler . Also the Row does not seem to recognize the real width of the Tumbler . Why It does work when I do not use MyTumblerStyle . .. . Answer : The problem isn t your style it s the width assignment . It helps to break out the Rectangle s at a time like this : .. . .. . I don t have access to UIConstants so I guess the width you set .. . .. . tumbler illustration http : i.stack.imgur.com RiIjB.png .. . .. . The implicitWidth of Tumbler is calculated based on the width of each individual TumblerColumn http : code.qt.io cgit qt qtquickcontrols.git tree src controls Styles Base TumblerStyle.qml n319 . This allows you to set individual widths for columns something that is necessary for scenarios where some are wider than others for example : .. . .. . tumbler date picker http : i.stack.imgur.com ytKpZ.png .. . .. . So you should also set the width of your column or preferably only set the width of your column and not the entire Tumbler : .. . .. . This also explains why the Text is weirdly positioned the Row sees 30 pixels but the column still has its original much wider width .", "Question : I have following QML ListView inside ueLoginWindow : .. . .. . Now when I run app the items are fed to ListView from model correctly but non of the items get animated according to populate property . I would like all items get animated according to populate property . What am I missing because in the populate property docs http : doc.qt.io qt-5 qml-qtquick-listview.html populate-prop states : .. . .. . populate : Transition This property holds the transition to apply to the items that are initially created for a view . .. . It is applied to all items that are created when : .. . .. . The view is first created The view s model changes The view s model is reset if the model is a QAbstractItemModel subclass .. . Answer : I think the problem is the model property should be updated after ListView has been initialised : Comment : still not good for me . All of the items get overlapped together at the first item s position .", "Question : I have following QML Tumbler : .. . .. . Now as you can see in screenshot Tumbler Columns width is greater than parent s ColumnLayout geometry which is wrong . What did I miss I ve taken into acount ueNumericTumbler s ColumnLayout but the problem persits I do not know what to do Should I use anchors Tumbler Columns width too great http : i.stack.imgur.com K1NdF.png Or is it maybe problem in ueNumericTumbler s parent contaniner rectangle window named ueKeypad : Comment : Your last edit is a separate question in itself IMO . Maybe someone else will answer it but the original question has a solution . .. . Answer : You re using the Layout attached property on the wrong object Layout.preferredWidth was only set on the Tumbler not the TumblerColumn . You can debug this by adding a print line before the return statement of the expression : .. . .. . This prints -1 which is the default-value http : doc.qt.io qt-5 qml-qtquick-layouts-layout.html preferredWidth-attached-prop . You can set the width to this instead : .. . .. . You ll need to account for the width of the separators though.. . ugh . This is not very nice . Please open a bug report http : bugreports.qt.io that mentions that this use-case should be easier . Comment : I ve rewritten answer please take a look Comment : As I said in my answer you ll need to take the width of the separators into account . Possibly the frame too . That s why I suggested creating a bug report because it s not good . Comment : ok but if I hardcode widths into every column it will work but this is bad idea isn t it Comment : It s only a bad idea if you have several different target devices whose resolutions differ . But yeah it s better to calculate the width than hard-code it .", "Question : I would like to have centered items in QML ListView and therefore I ve added following code of my ListView : .. . .. . Now print newIndex statement prints out correct value 3 in my case since at the moment I have 5 items and I would like the 3rd item to be in the center of ListView and other two items on the left side and the right side . Is this possible And out of scope of this question why Transition s also does not work taken from example I ve also set highlightRangeMode : ListView.ApplyRange taken from comment hint . Here is a screenshot of the problem : .. . .. . QML Items not centered http : i.stack.imgur.com e3bx8.png .. . Answer : The problem here is that you are trying to place ListView delegates according to your needs . That s plain wrong since the ListView much like all the other views is meant to do that for you according to the ListView size . The ListView will always use all the available space resulting in the delegates all positioned to the left as you experienced . Instead of forcing the behaviour on the delegates you should constrain the ListView size and position it to be in the center . Then you can exploit highlightRangeMode with preferredHighlightBegin and preferredHighlightEnd from this answer http : stackoverflow.com a 29671761 2538363 to ensure the currently selected Item is in the center of the list . Also by using StrictlyEnforceRange you can force the selected Item to stay always in the center which would result in an IMO better way to select the desired Item . Here is an example implementing this approach . Sizes are hard-coded for simplicity but can be easily parametrised . As said I went a little bit further by setting the highlighting policy . Hope it helps . enter image description here http : i.stack.imgur.com Uu3gt.png Comment : should this could also work for vertical ListView Comment : @KernelPanic it should be adapted to consider the height instead of the width but basic steps are there . I think you should find something similar on SO or at least I remember giving an answer for the vertical entering...but may be wrong ." ] }
[ "yes-answer-long", "yes-answer-short" ]
user
UNK_RELATION
backand@login@81
backand -- backand is a backend-as-a-service for angularjs that provides social @placeholder push notifications and ionic integration .
{ "confidence": [ 65.59577941894531, 65.59577941894531, 62.02391052246094, 43.47055435180664, 39.67222595214844, 38.251548767089844, 36.89256286621094, 36.824283599853516, 35.26377868652344, 28.492080688476562, 27.6458683013916, 24.60793685913086, 23.548736572265625, 22.394487380981445, 17.851947784423828, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 13.451729774475098, 12.092741966247559, 12.092741966247559, 12.092741966247559, 12.092741966247559, 12.092741966247559, 12.092741966247559, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375, 10.463958740234375 ], "content": [ "I m developing an app with ionic and Backand and I m using the sign in with social accounts with the Backand service .", "I m developing an application with ionic and Backand and I m using the sign in with social accounts with the Backand service .", "I started from this example : https : github.com backand backand-ionic-social .. . .. . Thanks to the Backand support team I have got it to work .", "Base backand functionality allow auth with google facebook twiter and so on .", "The backand service show the next error in my browser console : .. . .. . error : message : cna t signup without email .", "I m using Backand as my BaaS and I m looking for a quick way to delete entries I no longer need .", "In fact i ve found the solution thanks to Backand brilliant support team thanks Itay .", "But really I dont need the email from the users in my app I only want a social login but I gess that Backand need it to implement this social login .", "Backand Identified a bug in facebook registration and are currently working on a fix should be out next week", "The core functionality here is based on Backand built-in users object it holds all users you ve added to your app a simple GET to this object will return all your users details including emails .", "I had my backend on backand.com and building an app with Ionic Angular .", "I was talking with the support of Backand and I know that in Security and Auth there is an action beforesocialSignUp and I have not commented the line to get the data : .. . .. . And I have created the fuid field in my user object but when I make a login with Facebook or Google+ It doesn t save nothing .", "What do you mean by custom social auth", "What need to do to realize custom social auth for backand.com", "The social login process is OK but I want to get the ID from Facebook and Google plus in order to get the profile-picture .", "I m using backand.com to make a query that attempts to create a record in a users table if the email isn t already used : .. . .. . It validates but when I run it with params : .. . .. . I get the error : .. . .. . An error occurred please try again or contact the administrator .", "Error details : Duplicate column name test .. . .. . Why is this failing", "I don t get it .", "Thanks .", "please change to and try .", "no dice - same error", "The problem is that you use test as password because you have test as firstName already .", "Since you are not providing column aliases the field name for constant values bacome the constant itself .", "Solution : provide explicit aliases for all 4 fields in the subselect :", "Thanks this corrected the issue .", "How would I modify the query to return the new id if successful", "This is a different question so pls ask it in its own post not just as a follow-up comment .", "But before asking it I would search SO for an answer .", "I m quite sure that this question has already been asked .", "No worries I added SELECT ROW COUNT 0", "F . ex .", "VK .", "I want find some way to add new vendor to work in same way .", "Maybe some kind of cloud-code", "You can try oauth.io https : oauth.io home as an alternative they support hundreds of services .", "Perhaps they support VK as well .", "@dalbaeb yes thank you .", "oath.io supports Vk .", "So It will some inter layer between BaaS and app .", "When connecting through the MySQL client work insert and get value .", "But through the API inserted question marks .", "enter image description here http : i.stack.imgur.com UijPz.png", "Seems to be a problem with the encoding .", "Post some of your code so we can try to find the problem .", "I try add values on site .", "I have not used my code", "If you followed the doc s then you can see the Cyrillic letters in the db .", "I think you missed the last step which is to edit the connection details .. . .. . 1 .", "Go to Setting Database .. . 2 .", "Click Get Password and save it to the clipboard .. . 3 .", "If you don t see the Edit Connection button then add edit to the browser url .. . 4 .", "On the username text box add CharSet utf8 .. . 5 .", "Paste the password from the clipboard .. . 6 .", "Click Save", "Thank you .", "That helped", "In the data model I created I have an object called Auctions in this object I want to add an action that delete the entries that surpassed the end time of the auction .", "I ve been looking in the server-side actions and I didn t find a quick way to do it .", "Thanks", "There are 2 approaches for this issue : .. . .. . 1 .", "Create a scheduled task that will delete them .. . 2 .", "Create a predefined filter that will filter them .. . .. . The downside for the first approach is that there will be gaps in times between the scheduled deletion that those entries will still exist .", "I recommend the second approach let me know if you are interested in the first and I will send instructions .", "For the second you need to go to the security tab of the object with the relevant entries .", "In there you can set a predefined filter either with SQL or NoSQL that will always filter expired entries .", "This will act as-if those entries do not exist for every GET request .", "in the doc it s written that you can sends event to all connected users by using the following server-side code for an update event .. . .. . then in your angular client code you can listen for this event by doing the following .. . .. . i m working with anonymous users i can t use emitUsers or emitRoles to restrict to only concerned users .", "As i don t want all anonymous users to receive all update events but only the ones for the item they are on stupid to listen for updates you don t care isn t it", "would there be a way to only listen for events on a specific item", "thanks for your help", "The solution is quite simple you can play with the event name string", "back to my example let s say i only want the user listen for changes on the item he is actually viewing item id is 57 for example the code then will be : .. . - on the server code side .. . .. . - on the angular client code", "i currently stuck on building an account check like whatsapp .", "When a user clicks on his smartphone on his her contacts it should display which user has an existing account .", "So in theory it should post all user contacts to server server checks if there is an account with this email adresse and sends the updated list back to the client .", "Sounds easy but how do i do something like that : Getting the contacts is working also posting contacts to server .", "This should be very simple .", "Now you can add a serverside js http : docs.backand.com en latest apidocs customactions action that .. . .. . 1 . gets the contacts details from the client-side app in the request body as JSON .. . .. . 2 . does an http call to the users object http : docs.backand.com en latest getting started quick reference index.html manipulating-objects ro fetch exiting users .", "3 . loops the contacts and search for them in the users array", "But making some test with several facebook accounts I ve noticed that when I try to login with some facebook accounts the login fails .", "NO EMAIL SOCIAL provider : facebook origin : http : localhost : 8100 .. . .. . .. . Of course I ve been checking the Facebook settings in that accounts but all is normal they have email they have an app created when they logins and all permissions is OK . .. . .. . Any solution for this problem", "The email-address needs to be verified with Facebook otherwise it will not be returned .", "And since not every user has an email on file with Facebook f.e .", "if they registered using their mobile it is not a good idea for an app to demand an email-address to work properly .", "If an app needs an email-address then it should implement an additional step where the user can input it manually if necessary .", "Really interesting your answer : I have added an verified email in one of this facebook accounts and it works", "In fact there are other questions about this problem with facebook : The email-address you get from Facebook using the Graph API or a FQL query is a verified email .", "If an account hasn t verified it s email yet it s not possible to get it .", "stackoverflow.com questions 14280535 http : stackoverflow.com questions 14280535 is-it-possible-to-check-if-an-email-is-confirmed-on-facebook", "The login is OK but I can t get the ID data .", "Any idea" ] }
{ "confidence": [ 77.14730072021484, 76.38468933105469, 54.43355178833008, 48.106502532958984, 38.64251708984375, 37.27703094482422, 13.295727729797363, 13.295727729797363 ], "content": [ "Question : null .. . Answer : I m developing an app with ionic and Backand and I m using the sign in with social accounts with the Backand service . I started from this example : https : github.com backand backand-ionic-social .. . .. . Thanks to the Backand support team I have got it to work . But making some test with several facebook accounts I ve noticed that when I try to login with some facebook accounts the login fails . The backand service show the next error in my browser console : .. . .. . error : message : cna t signup without email . NO EMAIL SOCIAL provider : facebook origin : http : localhost : 8100 .. . .. . .. . Of course I ve been checking the Facebook settings in that accounts but all is normal they have email they have an app created when they logins and all permissions is OK . .. . .. . Any solution for this problem Thanks Comment : The email-address needs to be verified with Facebook otherwise it will not be returned . And since not every user has an email on file with Facebook f.e . if they registered using their mobile it is not a good idea for an app to demand an email-address to work properly . If an app needs an email-address then it should implement an additional step where the user can input it manually if necessary . Comment : Really interesting your answer : I have added an verified email in one of this facebook accounts and it works But really I dont need the email from the users in my app I only want a social login but I gess that Backand need it to implement this social login . Comment : In fact there are other questions about this problem with facebook : The email-address you get from Facebook using the Graph API or a FQL query is a verified email . If an account hasn t verified it s email yet it s not possible to get it . stackoverflow.com questions 14280535 http : stackoverflow.com questions 14280535 is-it-possible-to-check-if-an-email-is-confirmed-on-facebook Comment : Backand Identified a bug in facebook registration and are currently working on a fix should be out next week", "Question : null .. . Answer : I m developing an application with ionic and Backand and I m using the sign in with social accounts with the Backand service . The social login process is OK but I want to get the ID from Facebook and Google plus in order to get the profile-picture . I was talking with the support of Backand and I know that in Security and Auth there is an action beforesocialSignUp and I have not commented the line to get the data : .. . .. . And I have created the fuid field in my user object but when I make a login with Facebook or Google+ It doesn t save nothing . The login is OK but I can t get the ID data . Any idea", "Question : null .. . Answer : What need to do to realize custom social auth for backand.com F . ex . VK . Comment : What do you mean by custom social auth Comment : Base backand functionality allow auth with google facebook twiter and so on . I want find some way to add new vendor to work in same way . Maybe some kind of cloud-code Comment : You can try oauth.io https : oauth.io home as an alternative they support hundreds of services . Perhaps they support VK as well . Comment : @dalbaeb yes thank you . oath.io supports Vk . So It will some inter layer between BaaS and app .", "Question : i currently stuck on building an account check like whatsapp . When a user clicks on his smartphone on his her contacts it should display which user has an existing account . So in theory it should post all user contacts to server server checks if there is an account with this email adresse and sends the updated list back to the client . Sounds easy but how do i do something like that : Getting the contacts is working also posting contacts to server . I had my backend on backand.com and building an app with Ionic Angular . .. . Answer : This should be very simple . The core functionality here is based on Backand built-in users object it holds all users you ve added to your app a simple GET to this object will return all your users details including emails . Now you can add a serverside js http : docs.backand.com en latest apidocs customactions action that .. . .. . 1 . gets the contacts details from the client-side app in the request body as JSON .. . .. . 2 . does an http call to the users object http : docs.backand.com en latest getting started quick reference index.html manipulating-objects ro fetch exiting users . 3 . loops the contacts and search for them in the users array", "Question : I m using Backand as my BaaS and I m looking for a quick way to delete entries I no longer need . In the data model I created I have an object called Auctions in this object I want to add an action that delete the entries that surpassed the end time of the auction . I ve been looking in the server-side actions and I didn t find a quick way to do it . Thanks .. . Answer : There are 2 approaches for this issue : .. . .. . 1 . Create a scheduled task that will delete them .. . 2 . Create a predefined filter that will filter them .. . .. . The downside for the first approach is that there will be gaps in times between the scheduled deletion that those entries will still exist . I recommend the second approach let me know if you are interested in the first and I will send instructions . For the second you need to go to the security tab of the object with the relevant entries . In there you can set a predefined filter either with SQL or NoSQL that will always filter expired entries . This will act as-if those entries do not exist for every GET request .", "Question : in the doc it s written that you can sends event to all connected users by using the following server-side code for an update event .. . .. . then in your angular client code you can listen for this event by doing the following .. . .. . i m working with anonymous users i can t use emitUsers or emitRoles to restrict to only concerned users . As i don t want all anonymous users to receive all update events but only the ones for the item they are on stupid to listen for updates you don t care isn t it would there be a way to only listen for events on a specific item thanks for your help .. . Answer : In fact i ve found the solution thanks to Backand brilliant support team thanks Itay . The solution is quite simple you can play with the event name string back to my example let s say i only want the user listen for changes on the item he is actually viewing item id is 57 for example the code then will be : .. . - on the server code side .. . .. . - on the angular client code", "Question : I m using backand.com to make a query that attempts to create a record in a users table if the email isn t already used : .. . .. . It validates but when I run it with params : .. . .. . I get the error : .. . .. . An error occurred please try again or contact the administrator . Error details : Duplicate column name test .. . .. . Why is this failing I don t get it . Thanks . Comment : please change to and try . Comment : no dice - same error .. . Answer : The problem is that you use test as password because you have test as firstName already . Since you are not providing column aliases the field name for constant values bacome the constant itself . Solution : provide explicit aliases for all 4 fields in the subselect : Comment : Thanks this corrected the issue . How would I modify the query to return the new id if successful Comment : This is a different question so pls ask it in its own post not just as a follow-up comment . But before asking it I would search SO for an answer . I m quite sure that this question has already been asked . Comment : No worries I added SELECT ROW COUNT 0", "Question : When connecting through the MySQL client work insert and get value . But through the API inserted question marks . enter image description here http : i.stack.imgur.com UijPz.png Comment : Seems to be a problem with the encoding . Post some of your code so we can try to find the problem . Comment : I try add values on site . I have not used my code .. . Answer : If you followed the doc s then you can see the Cyrillic letters in the db . I think you missed the last step which is to edit the connection details .. . .. . 1 . Go to Setting Database .. . 2 . Click Get Password and save it to the clipboard .. . 3 . If you don t see the Edit Connection button then add edit to the browser url .. . 4 . On the username text box add CharSet utf8 .. . 5 . Paste the password from the clipboard .. . 6 . Click Save Comment : Thank you . That helped" ] }
[ "yes-answer-long", "yes-answer-short" ]
login
UNK_RELATION
phonegap-pushplugin@notifications@159
phonegap-pushplugin -- do not use this tag - use phonegap-plugin-push instead this plugin is for use with cordova and allows your application to receive push @placeholder on android ios and wp8 devices .
{ "confidence": [ 81.7423095703125, 74.62360382080078, 74.37474060058594, 72.7325668334961, 72.37553405761719, 71.96937561035156, 71.13150787353516, 70.08489227294922, 70.02660369873047, 69.56197357177734, 68.84416198730469, 67.88977813720703, 66.62853240966797, 66.10797882080078, 65.44728088378906, 63.803009033203125, 63.803009033203125, 63.39768981933594, 62.07926559448242, 61.345977783203125, 61.007080078125, 60.96108627319336, 60.700042724609375, 58.7646484375, 58.25615692138672, 57.44880294799805, 57.161739349365234, 57.08937454223633, 56.529510498046875, 56.37961959838867, 55.959415435791016, 55.862457275390625, 55.08955383300781, 55.029850006103516, 54.68364715576172, 54.60722351074219, 54.40205383300781, 53.917198181152344, 53.89220428466797, 53.76850128173828, 53.66065216064453, 52.760475158691406, 52.55026626586914, 52.443565368652344, 51.69154739379883, 51.51691436767578, 51.107948303222656, 50.381202697753906, 50.19829177856445, 50.19829177856445, 49.46495819091797, 49.229801177978516, 49.08041000366211, 49.01341247558594, 48.70883560180664, 48.55427169799805, 48.4733772277832, 48.365325927734375, 48.275672912597656, 48.02865219116211, 47.999752044677734, 47.945106506347656, 47.75166702270508, 47.11089324951172, 46.857051849365234, 46.35993194580078, 46.34933853149414, 46.10591506958008, 45.64837646484375, 45.62010955810547, 45.60480499267578, 45.498207092285156, 45.455963134765625, 45.294708251953125, 44.654327392578125, 44.618064880371094, 44.39158248901367, 44.28446578979492, 44.07303237915039, 43.88106918334961, 43.63032531738281, 43.54497146606445, 43.321781158447266, 43.31513977050781, 43.01711654663086, 42.839805603027344, 42.77642822265625, 42.56074142456055, 42.41035079956055, 42.361297607421875, 41.87520217895508, 41.82096862792969, 41.82023620605469, 41.23036575317383, 40.859718322753906, 40.7017822265625, 40.53483581542969, 40.26467514038086, 40.05632400512695, 40.009986877441406 ], "content": [ "I m using the Cordova Push Notifications Plugin 1.3.4 https : github.com phonegap-build PushPlugin with my Cordova Phonegap App .", "I use cordova 5.4.1 and phonegap-plugin-push 1.5.3 .", "I m using phonegap-plugin-push to send push notifications to Android devices .", "But I guess for what its worth try cordova plugin add phonegap-plugin-push --save as phonegap phonegap-plugin-push is the new unified version", "Additional info : This application is using phonegap-plugin-push", "I am using the following plugin https : github.com phonegap phonegap-plugin-push with my phonegap application .", "I have cordova javascript running in the background triggered by phonegap pushPlugin background message processing https : github.com phonegap phonegap-plugin-push .", "i use phonegap-plugin-push 1.4.4", "Cordova 6.2.0 and Phonegap-plugin-push version 1.6.4 .", "I m using phonegap-plugin-push .", "phonegap-plugin-push is only supported in android iOS and windows .", "phonegap plugin add phonegap-plugin-push --variable SENDER ID XXXXXXX .. . 3 .", "https : github.com phonegap phonegap-plugin-push issues 1015 https : github.com phonegap phonegap-plugin-push blob master docs API.md pushnotificationinitoptions", "Is this https : github.com phonegap phonegap-plugin-push the lib you are using", "I have implemented Push using this plugin https : github.com phonegap phonegap-plugin-push .", "I just added phonegap-plugin-push to my barebones phonegap app .", "See https : github.com phonegap phonegap-plugin-push issues 93 for more .", "This is the data that I post from AWS SNS console and the app has this plugin https : github.com phonegap phonegap-plugin-push .. . .. . We use ionic-framework and the config.xml has this .. . .. . I explored https : github.com phonegap phonegap-plugin-push blob master docs API.md pushonnotification-callback and https : github.com phonegap phonegap-plugin-push blob master src android com adobe phonegap push GCMIntentService.java .. . .. . if the data contains an element called image it should load the image from the image url .", "pushplugin for phonegap", "I ve tried cordova plugin add phonegap-plugin-push --save but doesn t work.. .", "Couple days ago I had an issue http : stackoverflow.com questions 38164686 phonegap-push-notification-plugin-with-ios with getting APNS token instead of GCM token while using phonegap push plugin .", "I was using the deprecated version of the Phone gap push plugin : .. . .. . https : github.com phonegap-build PushPlugin .. . .. . Now I am using the new version : .. . .. . https : github.com phonegap phonegap-plugin-push .. . .. . And all my code is also using the new push plugin I seem to not be able to get rid of the old push plugin completely and it sucks : .. . .. . It is beyond me how the old push plugin has a version number of 2.5 whereas the new push plugin has a version number of 1.5 or 1.6. .", "For push notifications registration and receiving I am using Push plugin https : github.com phonegap phonegap-plugin-push merged with Worklight generated AppDelegate .", "https : github.com phonegap phonegap-plugin-push blob master docs API.md pushnotificationinitoptions", "This comes probably too late for you but refer to this discussion : github.com phonegap phonegap-plugin-push issues 387 https : github.com phonegap phonegap-plugin-push issues 387 .", "Notification PlugIn User : https : github.com phonegap-build PushPlugin", "https : github.com phonegap-build PushPlugin description .. . .. . Important - Push notifications are intended for real devices .", "If you read the documentation on GCM on iOS https : github.com phonegap phonegap-plugin-push blob master docs API.md ios-gcm-support at the phonegap-plugin-push repository you will see that init needs to be called like this : .. . .. . If the iOS options has a senderID it will register with GCM .", "So in your phonegap-plugin-push onNotification handler for Android you would do something like this :", "In order to use the phonegap cordova PushPlugin with Parse Push you have to make the realization that Parse actually wraps it s content in a non standard way .", "My environment is Windows 10 Cordova -v 6.0.0 phonegap -v 5.5.0 push plugin -v 1.5.3 .. . .. . And here is the code .. . .. . SOLVED .. . .. . As an update .", "I m using the PushNotification plugin https : github.com phonegap phonegap-plugin-push and am correctly receiving messages sent from AWS SNS .", "I m developing an iOS and android app using ionic cordova and I m trying to get the push notifications working on both platforms with the PushPlugin https : github.com phonegap-build PushPlugin library .", "im using phonegap-plugin-push to make push-notification on my javascript app .", "Note : I am using PushPlugin https : github.com phonegap-build PushPlugin", "In the outermost plugins folder I can see the phonegap-plugin-push folder referring to the new push plugin : .. . .. . Users Jurgen .taco home remote-builds taco-remote builds 16880 cordovaApp plugins phonegap-plugin-push .. . .. . Going further into the directory into the platforms folder ios www plugins etc there is no phonegap-plugin-push : .. . .. . Users Jurgen .taco home remote-builds taco-remote builds 16880 cordovaApp platforms ios www plugins ----- .. . .. . I think this might be the cause of the problem : though I am not 100 sure .", "Your senderID and application are registered with GCMRegistrar https : github.com phonegap-build PushPlugin blob master src android com plugin gcm PushPlugin.java L65 .", "you can see browser platform at line number 149 .. . .. . but there is no platform proxy for browser in phonegap-plugin-push s plugin.xml https : github.com phonegap phonegap-plugin-push blob master plugin.xml", "Installed following 3 plugins cordova-plugin-device.git cordova-plugin-media.git PushPlugin .", "I know that we can send Push Notification in between 1 to 1000 users at a time with a single payload using Phonegap push plugin for a Cordova project .", "Trying to handle push Notification using PushPlugin https : github.com phonegap-build PushPlugin .", "I installed PushPlugin https : github.com phonegap-build PushPlugin .", "The plugin that I ve installed with Cordova are : PushPlugin Device Notification InAppBrowser and Network Information .", "you are running your app on browser platform which is not supported by phonegap-plugin-push .", "To play a custom sound the sound file name has to be passed from the server on the push-notification data .. . .. . On iOS the sound file has to be on the app project not on www .. . .. . On android the sound file has to be on the res raw folder not on www .. . .. . https : github.com phonegap phonegap-plugin-push blob master docs PAYLOAD.md sound https : github.com phonegap phonegap-plugin-push blob master docs PAYLOAD.md sound-1", "I m using the PushPlugin https : github.com phonegap-build PushPlugin for cordova and in android I can t make the push-notification play a sound while the app is not running or in background the banner in status bar is presented ok .", "I got success setup push-notification using PushPlugin in android Phonegap .I got Notification when my application close .", "Does content-available have to be a first level child of the push data object for notification event handlers to be triggered by phonegap-plugin-push", "I have a problem with the phonegap push plugin and I ve searched a lot but no solutions found .", "How can I declare the newer version phonegap-plugin-push in the config.xml for remote build", "You can use local notification PhoneGap plugin https : github.com katzer cordova-plugin-local-notifications blob b7b7b13 README.md .", "Below Plugin Added in my Project .. . .. . cordova plugin add phonegap-plugin-push --variable SENDER ID 722784892462 .. . .. . In index.js .. . .. . I tried in my real device . .. . .. . I got the Below error : .. . .. .", "I have replaced the code from PushNotification.js to Push.js .. . .. . https : github.com phonegap phonegap-plugin-push tree master www .. . .. . and added the below code in index.js", "I m a fan of the phonegap-plugin-localNotifications plugin for doing this you can find it at https : github.com Wizcorp phonegap-plugin-localNotifications .", "check this url github.com phonegap-build PushPlugin https : github.com phonegap-build PushPlugin", "The app is using cordova phonegap .", "I am following these docs https : github.com phonegap phonegap-plugin-push blob master docs PAYLOAD.md push-message-arrives-with-app-in-background .. . .. . Notification payload .. . .. . The on Notification event gets called only when app is open .", "we are using PYAPNS https : github.com djacobs PyAPNs to send push notifications from an Django application to iOS devices running an phonegap application .", "Here is the code I m using from the template phonegap-template-push :", "My question is similar to this : Register event not getting called on ios 386 https : github.com phonegap phonegap-plugin-push issues 386 .. . .. . Everything works fine on my android device but on ios it seems to be that the registration part will be skipped I get no error or something : .. . .. . Code : .. . .. . Some information what I m using : .. . .. . cordova : 5.0.0 .. . platforms : android 4.0.0 ios 4.0.0 .. . .. . EDIT .. . .. . I also use this simple notify.js to send my notification to the different devices works fine for android : .. . .. . EDIT2 .. . .. . I finally get this error message :", "I am using PhoneGap to develop application for Windows Android and iOS platform .", "I am using phonegap-plugin-push 1.5.3 to save device token and device Os to database and i include PushNotification.js and PushNotificationSetup.js .", "I have added PushPlugin https : github.com phonegap-build PushPlugin to the project .", "From the docs https : github.com phonegap-build PushPlugin ecb-amazon-fire-os-android-and-ios the callback is the point of entry for your notification .", "I wanted to use a plugin for push notifications and found out that com.phonegap.plugins.pushplugin or something like that is the older version of the plugin .", "I was going through this link https : github.com phonegap phonegap-plugin-push blob master docs PAYLOAD.md action-buttons .. . .. . I am using https : github.com google gcm to send notification from java .", "I m developing a real-time chat application using firebase and phonegap I need to handle push notifications when application is not running.Please guide me to handle push-notification at my backend server for firebase changes .", "The server code looks like this : .. . .. . On the mobile-application the code from Phonegap Push Plugin looks like this : .. . .. . The problem is : I don t get anything for e.custom or e.eventid", "I use the phonegap-plugin-push https : build.phonegap.com plugins 3960 to send GCM notification on a mobile device but I can t find anything how to start an activity when a notification is triggered .", "Any sample code based on new push plugin", "As a result the check on line 202 https : github.com phonegap-build PushPlugin blob master src ios PushPlugin.m L202 is not satisfied in the - void notificationReceived callback .", "This particular issue seems to be open at the Github https : github.com phonegap-build PushPlugin issues 525 page of the older version of the same plugin .", "But take a look at http : plugreg.com plugin Wizcorp phonegap-facebook-plugin .", "Source code for PushPlugin GCMIntentService.java found here official github repo : https : github.com phonegap-build PushPlugin blob master src android com plugin gcm GCMIntentService.java", "I am using the push plugin and the mobile services plugin for cross-platform push notifications .", "I used the example source code from https : github.com phonegap-build PushPlugin tree master Example www .", "phonegap platform android .. . 4 .", "This can be done by registering the push-notification plugin on app start .", "@Arthur Thompson that is the structure of the object that the phonegap plugin passes with the JavaScript notification event .", "Directly install plugin using CLI tried cordova plugin add https : github.com phonegap-build PushPlugin.git as well as cordova plugin add com.phonegap.plugins.pushplugin .. . Create a new project etc .", "So I deleted the old push plugin and installed the new push plugin which happened to be also a more updated version of the new push plugin that I previously had .", "The fix for the issue is to instantiate the PushPlugin class on opening the push-notification every time your app starts .", "phonegap-build android .. . .. . and in my index html the scripts are like : .. . .. . how can i know if the plugin its implemented correctly", "Did someone encounter such an issue with the new push plugin", "It s definitely not a push plugin issue .", "I have installed Phonegap-push-plugin in my app and i see that two files are added to my project.PushPlugin.h and Appdelegate+notification.h Is i need to add delegate for pushnotification in my Appdelegate.h file", "Push notifications are working on both android and ios .", "I have made a windows-phone-8.1 application using cordova Phonegap .", "Using Cordova PushPlugin and AngularJS I want to receive a push-notification and read a URL in the payload and then navigate to that page when the notification is swiped open .", "When my app registers with the push plugin it disconnects firebase .", "Builded app with CLI - phonegap-build android .. . .. . And here is my Index.html code :", "You have to include the Parse SDK using something like github.com avivais phonegap-parse-plugin https : github.com avivais phonegap-parse-plugin but for me the plugin breaks .", "Created Phonegap project .. . .. . 2 .", "Where are you getting the structure from your question in particular the additionalData object is that something that the phonegap plugin is adding", "I m using PhoneGap for develop and Adobe PhoneGap for compile the code and get the .ipa .", "I believe that this problem looks like this question : .. . .. . Cordova Push Plugin : onNotificationGMC is not fired and cannot obtain regID https : stackoverflow.com questions 25664951 cordova-push-plugin-onnotificationgmc-is-not-fired-and-cannot-obtain-regid 26676141 26676141 .. . .. . But I m using Ionic Framework .", "Simon I d really appreciate if you take a look at next problem I dont get any registrationId now stackoverflow.com questions 38268507 http : stackoverflow.com questions 38268507 gcm-registrationid-is-not-received-on-phonegap-push-plugin", "From the docs http : github.com phonegap-build PushPlugin you have to call the register method every time you start the application .", "However This question is related to the push plugin rather than mobile services .", "Print Cordova PushNotification Plugin Demo and registering android and look the alert OK successHandler function works ." ] }
{ "confidence": [ 100.9566879272461, 95.20420837402344, 92.48912811279297, 88.68368530273438, 88.35546875, 88.15361785888672, 86.68853759765625, 85.68737030029297, 84.4281234741211, 84.35860443115234, 82.96476745605469, 80.26580047607422, 79.93772888183594, 79.92972564697266, 79.64047241210938, 79.46939086914062, 78.08985137939453, 77.3777084350586, 77.17538452148438, 76.18335723876953 ], "content": [ "Question : I am developing an app using Cordova Angular and Ionic . I have a problem with the phonegap push plugin and I ve searched a lot but no solutions found . I use cordova 5.4.1 and phonegap-plugin-push 1.5.3 . When I run the app on iPad or emulator from Xcode logs throws this error : .. . .. . I ve reinstalled the plugin several times removing adding the ios platform and nothing works . I ve also tried adding on config.xml lines like : .. . .. . But doesn t work . I ve read for including PushPlugin.m in build phases on Xcode and PushPlugin.h in plugin forlder too but both alredy in . I can see how Xcode is compiling the plugin and generating some warnings everything seems normal but for some reason it can t be included on the app . Like I ve said I ve wasted a lot of time searching and trying solutions but nothing works. . Could anybody help me please .. . Answer : https : github.com phonegap-build PushPlugin description .. . .. . Important - Push notifications are intended for real devices . They are not tested for WP8 Emulator . The registration process will fail on the iOS simulator . But I guess for what its worth try cordova plugin add phonegap-plugin-push --save as phonegap phonegap-plugin-push is the new unified version Comment : You re right I m always testing it on iPad but twice I ve tried it on emulator but like you said doesn t work . I ve tried cordova plugin add phonegap-plugin-push --save but doesn t work.. . Comment : Remove what you added in config.xml and then try it again Comment : Also tried it but nothig changes the error still persists.. . : Comment : Does it show in Cordova plugin list Comment : Yes I can see it with cordova plugin list . Everything looks fine while building and compiling also when Xcode install the app on iPad . I think this error occurs when Xcode tries to launch the app.. .", "Question : I m using the Cordova Push Notifications Plugin 1.3.4 https : github.com phonegap-build PushPlugin with my Cordova Phonegap App . Unfortunately when receiving a push-notification the ecb callback in my JavaScript is never fired and I can t handle the push-notification not even when the app is running in foreground . I m using the example code https : github.com phonegap-build PushPlugin tree master Example www from the demo : .. . .. . The registration is successful but the following callback is never triggered : .. . Answer : If you are using with azure push..below is the working code . pushplugin for phonegap", "Question : null .. . Answer : I have cordova javascript running in the background triggered by phonegap pushPlugin background message processing https : github.com phonegap phonegap-plugin-push . Calling navigator.geolocation.getCurrentPosition doesn t return the callback until the user resumes the app . Is there any way to bypass this restriction Comment : on iOS or Android iOS is very restrictive about what you are allowed to do in the background not much . Comment : Both.. . But Android would be a good start", "Question : I got success setup push-notification using PushPlugin in android Phonegap .I got Notification when my application close . The problem is that I need Push Notification come when my application opens like whatsapp Viber . If it is possible in Phonegap Please help me or send me your valuable comment . Comment : You question is not clear . Is your problem similar to this question : How to handle Push notification when application is resumed http : stackoverflow.com q 29204334 1761793 or any other question in the related sidebar Do update your question with a clear problem so that someone will be able to help you out . .. . Answer : You can use local notification PhoneGap plugin https : github.com katzer cordova-plugin-local-notifications blob b7b7b13 README.md . Make sure to include the dependence org.apache.cordova.device @ 0.2.12 . Thanks Madan", "Question : I am working Cordova iOS Platform . I need to add Push Notification in my Project . Steps : .. . .. . 1 . I have created a project in Google console and created a Project-ID . 2 . Created a APNS PushNotification Production Certificate from Apple Developer . 3 . Below Plugin Added in my Project .. . .. . cordova plugin add phonegap-plugin-push --variable SENDER ID 722784892462 .. . .. . In index.js .. . .. . I tried in my real device . .. . .. . I got the Below error : .. . .. . enter image description here http : i.stack.imgur.com JXHmD.png .. . Answer : Have u add cordova.js file in your html page Comment : cordova.js is already added . My other Plugins are working great except this Comment : i tried this one is working for me . check this url github.com phonegap-build PushPlugin https : github.com phonegap-build PushPlugin", "Question : I m using the Cordova Push Notifications Plugin 1.3.4 https : github.com phonegap-build PushPlugin with my Cordova Phonegap App . Unfortunately when receiving a push-notification the ecb callback in my JavaScript is never fired and I can t handle the push-notification not even when the app is running in foreground . I m using the example code https : github.com phonegap-build PushPlugin tree master Example www from the demo : .. . .. . The registration is successful but the following callback is never triggered : .. . Answer : Mobiletainment s answer fixed it for me I ve been searching all afternoon for the solution to this albeit for the GCM callback but the functionality is the same . I d upvote Mobiletainment but I m new here and it won t let me but thanks For anyone that may be searching for a GCM solution which there are many in the Googleverse without many good answers here was my code that finally worked :", "Question : I m using Parse.com with an Ionic app and the PushPlugin and trying to implement Parse s Push Notifications through GCM with a custom Sender ID . When I m sending a message to all devices or using the REST API with cURL iOS notifications trigger fine when the app is in the background but android-notifications are not . Here s what I tried with the rest API First for iOS which is working well : .. . .. . The iOS notification is received and displayed even when the app is closed or open in the background . Now when I try the same targeting for android devices : .. . .. . The notification is received by the device and partially logged in adb logcat but is not displayed in the notification bar or otherwise acknowledged . I tried changing alert to message but that had no effect . However if I try to use the GCM HTTP API with Postman or cURL everything works well : .. . .. . When logging adb logcat the logs are different when using the GCM API and Parse s Push Notifications API : .. . .. . With Parse : .. . .. . And with GCM cURL call : .. . .. . The current manifest is as follows : .. . .. . Does anyone have any experience in getting GCM notifications to work on phonegap apps Comment : I am having the same exact experience . Any luck on this How did you setup your installation in parse Comment : The reason the notifications are not shown is because Parse sends android-notifications to a different custom receiver . You have to include the Parse SDK using something like github.com avivais phonegap-parse-plugin https : github.com avivais phonegap-parse-plugin but for me the plugin breaks . What I ended up doing is sending android push notifications directly through GCM and not Parse Push . Comment : That was my suspicion . I was also trying to use the same parse-plugin but it would crash every time it opens . I m guessing that means you aren t developing for iOS then . I m looking for a good hybrid solution . Comment : I opened an issue on the parse-plugin repo but so far it hasn t moved . I am developing for iOS actually and my terrible workaround is to use a Cloud Code helper that sorts installations by device type and only uses Parse Push for iOS the rest go to GCM with a REST request . To be honest I m thinking of just implementing my own push server on Heroku with node-apns and use a custom solution altogether . Comment : I m pretty sure I have a solution.. . I ll update when I verify . It s definitely not a push plugin issue . Its how parse wraps their data and it s parsed in GCMIntentService.java basically parse wraps their data one layer deeper than the push plugin is expecting . .. . Answer : In order to use the phonegap cordova PushPlugin with Parse Push you have to make the realization that Parse actually wraps it s content in a non standard way . This results in PushPlugin receiving the push-notification when the app is in the foreground but not when it is in the background . Source code snippet from GCMIntentService.java .. . .. . As you can see when the check for PushPlugin.isInForeground fails it checks for a message property on the extras bundle . 2 Observations : .. . .. . 1 . Parse does not include a message on the notification so the PushPlugin doesn t call createNotification content extras .. . 2 . If you look at the payload property of the bundle it also wraps it one layer deeper than traditional GCM notifications by putting the notification an object with the key data . Here s what the bundle looks like in JSON .. . .. . You therefore have to do some custom logic to extract the payload from the bundle extras.getString payload and then create a new JSONObject documentation here : http : developer.android.com reference org json JSONObject.html . Instead of check bundle.getString message you need to check for check for the existence of payload.data and then parse out message and title and make sure they are in the correct locations for the createNotification function to work by repackaging the bundle or creating your own . My recommendation is to leave the existing code as is but make a separate check for the parse formatted notification and call a custom createNotification function . As in : .. . .. . Hopefully this helps . Honestly I wish parse just sent the data like everyone else so that it was compatible with PushPlugin out of the box . Source code for PushPlugin GCMIntentService.java found here official github repo : https : github.com phonegap-build PushPlugin blob master src android com plugin gcm GCMIntentService.java Comment : That s fantastic @james-gilchrist I really have very little experience in Android development and didn t know where to start with this issue . Comment : You re welcome .", "Question : I ve tried to register my device using pushNotification using a demo . It doesn t work . Print Cordova PushNotification Plugin Demo and registering android and look the alert OK successHandler function works . The problem is that doesn t work the ecb . Why Can you help me The plugin that I ve installed with Cordova are : PushPlugin Device Notification InAppBrowser and Network Information . I ve tried the app on my LG L9 and on emulator . Same problem . This is the code : Comment : onNotificationGCM must have scope in window . See logcat to show more error Comment : That is I don t understand can you give an example Comment : What platform and device you run plugin Note : PushPlugin not working in IOS emulator you must test on real device . In Android you can test it in emulator with google API target included google service for GCM working .. . Answer : I have found the solution for this one in case of iOS . The reason for this issue is that in PushPlugin.m the callback property is set to nil on killing the app . As a result the check on line 202 https : github.com phonegap-build PushPlugin blob master src ios PushPlugin.m L202 is not satisfied in the - void notificationReceived callback . The fix for the issue is to instantiate the PushPlugin class on opening the push-notification every time your app starts . This can be done by registering the push-notification plugin on app start . Call the pushNotification.register method in your javascript everytime your app starts and this will instantiate the plugin and assign the appropriate callback the plugin . I have added the below code to my Ionic app s app.run section", "Question : null .. . Answer : I am trying to receive push notifications to our blackberry devices running software version 10.2.x .. . .. . I am able to post to the blackberry push eval service and receive the status code code 1001 desc The request has been accepted for processing . but messages are never received on the device . The app is using cordova phonegap . I have registered the invoke target in our config.xml : .. . .. . Registered the push in our app : .. . .. . It never seems to call the success handler function or the error handler function . Anyone have any suggestions Let me know if you need any clarification on anything . Thanks Comment : Have you been able to get push notifications working on other platforms with this code Have you also enabled the Dialogs plugin within your cordova project Comment : Push notifications are working on both android and ios . Dialog plugin is also included in the app", "Question : I m using the Cordova Push Notifications Plugin 1.3.4 https : github.com phonegap-build PushPlugin with my Cordova Phonegap App . Unfortunately when receiving a push-notification the ecb callback in my JavaScript is never fired and I can t handle the push-notification not even when the app is running in foreground . I m using the example code https : github.com phonegap-build PushPlugin tree master Example www from the demo : .. . .. . The registration is successful but the following callback is never triggered : .. . Answer : The problem is the way you defined your callback function causing the Push Plugin s evaluation of your callback i.e . via webView stringByEvaluatingJavaScriptFromString to fail since it will not be aware of it . If you define your callback function as a global object instead the plugin will trigger your callback correctly every time a new notification arrives : .. . .. . For Android you d define your onNotificationGCM callback the same way . Comment : Not sure what you mean by parse time definition . onNotificationAPN has to be defined globally since that is the context stringByEvaluatingJavaScriptFromString evaluates javascript in . Comment : yeah right that s what I meant . I like the way you put it +1 on that Comment : It actually makes no sense whatever you wrote . I had to decipher what you said and then @artemave said that id had to be defined globally . Finally got my device to register . Thanks Comment : thank you for rescuing my 2 hours search of the error and resolving this issue for me Comment : I have been working on this all day thank you so much", "Question : null .. . Answer : My question is similar to this : Register event not getting called on ios 386 https : github.com phonegap phonegap-plugin-push issues 386 .. . .. . Everything works fine on my android device but on ios it seems to be that the registration part will be skipped I get no error or something : .. . .. . Code : .. . .. . Some information what I m using : .. . .. . cordova : 5.0.0 .. . platforms : android 4.0.0 ios 4.0.0 .. . .. . EDIT .. . .. . I also use this simple notify.js to send my notification to the different devices works fine for android : .. . .. . EDIT2 .. . .. . I finally get this error message : Comment : Where have you placed this code ...I have placed in method for event deviceready...and sent only iOS with alert badge and sound . remove android and windows options .It works for me . Comment : @sanman thanks for your suggestion but I always tried this : -", "Question : I have implemented Push using this plugin https : github.com phonegap phonegap-plugin-push . Now when I have multiple notifications with different notId and I tap on one of them the event handler is called but the other notifications vanish from the notifications tray . This particular issue seems to be open at the Github https : github.com phonegap-build PushPlugin issues 525 page of the older version of the same plugin . Following is my code : .. . .. . I tried commenting the setApplicationIconBadgeNumber in the bottom but didnt help . Any fix workaround for this Comment : stackoverflow.com questions 37967944 http : stackoverflow.com questions 37967944 tapping-on-one-notification-clears-all-the-other-notification-from-the-same-app doesnt help i guess .. . Answer : This is because the option clearNotifications is default to true for Android which clears all the notifications . Set it to clearNotifications : false for Android and it will work fine . https : github.com phonegap phonegap-plugin-push issues 1015 https : github.com phonegap phonegap-plugin-push blob master docs API.md pushnotificationinitoptions", "Question : I am using the following plugin https : github.com phonegap phonegap-plugin-push with my phonegap application . Am not getting anything on the ioS version on the registration event . On Android it works 100 . I request assistance to see if I am missing anything . The code is below . I have the certificates and have enabled push services . I created a distribution certificate and the application is on the apple store . Basically on startup I have a self-calling function and send the registration via http to our server we are not getting anything from ioS . We used phonegapbuild to build the ioS version and upload via macincloud.com . I have read a few posts here but none solves my issue . My environment is Windows 10 Cordova -v 6.0.0 phonegap -v 5.5.0 push plugin -v 1.5.3 .. . .. . And here is the code .. . .. . SOLVED .. . .. . As an update . It turns out that there was nothing wrong with the code . There were two main issues . I eventually borrowed a mac from macincloud and built the project with .. . .. . The first issue : I got this error .. . .. . Which means the push plugin could not compile with bitcode enabled . I disabled bitcode in xCode and the project built successfully . I am not sure if this was the reason the build from Phonegap Build was failing . The second issue : The other thing I did from XCode was to got the Capabilities tab and enable the Push Notification capability . After these changes the code worked as expected . Hope this helps someone .. . Answer : NOT SURE IF I SHOULD EDIT MY QUESTION OR RATHER PROVIDE SOLUTION AS ANSWER . SOLVED .. . .. . As an update . It turns out that there was nothing wrong with the code . There were two main issues . I eventually borrowed a mac from macincloud and built the project with .. . .. . The first issue : I got this error .. . .. . Build Error .. . .. . clang : error : linker command failed with exit code 1 use -v to see invocation .. . .. . Which means the push plugin could not compile with bitcode enabled . I disabled bitcode in xCode and the project built successfully . I am not sure if this was the reason the build from Phonegap Build was failing . The second issue : The other thing I did from XCode was to got the Capabilities tab and enable the Push Notification capability . After these changes the code worked as expected . Hope this helps someone", "Question : First of all I am developing a Cordova app for Android and iOS primarily . I was using the deprecated version of the Phone gap push plugin : .. . .. . https : github.com phonegap-build PushPlugin .. . .. . Now I am using the new version : .. . .. . https : github.com phonegap phonegap-plugin-push .. . .. . And all my code is also using the new push plugin I seem to not be able to get rid of the old push plugin completely and it sucks : .. . .. . It is beyond me how the old push plugin has a version number of 2.5 whereas the new push plugin has a version number of 1.5 or 1.6. . But moving on . I am running the app on Android and everything is ok . The app is running and working as supposed to . I am also successfully receiving notifications . On iOS also everything was working as supposed to till give or take a month ago but today when trying to deploy on an iOS device using Taco remote build from a windows pc visual-studio to an apple macbook pro I began facing many problems . I then noticed that in the config.xml of the application the one in the root of the project there were both the old and the new push plugin . I mistakenly deleted the new one because of the misleading version numbers I thought it was in fact the old one . It seemed to run properly for a bit on both Android and iOS but after a while I noticed that in reality the app was not going to work properly as it needed the new push plugin and it was not being found . So I deleted the old push plugin and installed the new push plugin which happened to be also a more updated version of the new push plugin that I previously had . Presently my problem is that when running via taco remote build the app manages to successfully deploy on an iOS device iPhone 6 - so yes the remote build seems to be happening correctly however the app seems to not be recognising locating finding the new push plugin when running . I am suspecting that the new push plugin is not being transferred from visual-studio on my windows pc into my apple macbook pro through the taco remote build . In this directory : Users Jurgen .taco home I can see the build with all the generated files . In the outermost plugins folder I can see the phonegap-plugin-push folder referring to the new push plugin : .. . .. . Users Jurgen .taco home remote-builds taco-remote builds 16880 cordovaApp plugins phonegap-plugin-push .. . .. . Going further into the directory into the platforms folder ios www plugins etc there is no phonegap-plugin-push : .. . .. . Users Jurgen .taco home remote-builds taco-remote builds 16880 cordovaApp platforms ios www plugins ----- .. . .. . I think this might be the cause of the problem : though I am not 100 sure . I thought that the iOS build most probably uses the plugins folder from the www folder inside the iOS folder and not the outermost in the first directory shown above : And since the push plugin was nowhere to be seen inside there that could have been the problem even more so when bearing in mind that the .xcodeproject file resides in the same ios folder . So what I did was manually copy the push plugin folder into the innermost directory which didn t work either . Even if it did it does not really make sense and is highly inconvenient . What can I do to ensure that the plugin is transferred into the iOS build with taco remote build Could the problem be something else rather than what I suspect I am completely stuck so any help would be greatly appreciated Comment : When you say ..the app seems to not be recognising locating finding the new push plugin when running. . how do you know that Is there an error .. . Answer : It sounds like the remote project is confused . Try this to see if it helps : .. . .. . On your non-mac machine ensure that only the correct plugin is referenced . This includes both config.xml and in the plugins folder . Consider removing the plugin entirely then re-adding the correct version . If other plugins specify a dependency on the push plugin in their plugin.xml then that may also cause problems especially if the biggest version number is not the latest version . You may need to remove those plugins too . Once that is done perform a clean build . Via taco-cli this would be taco build ios --clean with whatever other device etc flags you want . Using Visual Studio you would go to build - clean i believe . This should copy your project in its entirety again and avoid issues with conflicting plugin versions partially persisting .", "Question : I m missing just a single step I can feel it.. . I added the phonegap plugin to my project as so : .. . .. . and indeed it saved the entry into my config.xml file . When I build and run the browser version .. . .. . I get the error message : Error : exec proxy not found for : : PushNotification : : init .. . .. . In the browser project folder under myapp platforms browser platform www plugins there is a phonegap-plugin-push www folder with a single push.js file and nothing more . push.js has calls to the native plugin eg : exec success fail PushNotification init options but the plugin files that actually run the code are .. . well I don t exactly know . That s likely the problem don t you think : .. . .. . Any help getting this running in Chrome would be a big help . I ll move on and test Android after this . Comment : By running in Chrome do you mean in a laptop browser Comment : @nyluje Yeah Chrome browser on Windows Comment : My guess was like the answer that has been given it is normal it does not work . You need a device that can register to the push-notification service which ever it is GoogleCouldMsg ApplePushNotif and the windows one . .. . Answer : phonegap-plugin-push is only supported in android iOS and windows . you are running your app on browser platform which is not supported by phonegap-plugin-push . .. . .. . you can get more information about plugin s platform support by looking it s plugin.xml file .. . .. . for example if you look at cordova-plugin-device s plugin.xml https : github.com apache cordova-plugin-device blob master plugin.xml . you can see browser platform at line number 149 .. . .. . but there is no platform proxy for browser in phonegap-plugin-push s plugin.xml https : github.com phonegap phonegap-plugin-push blob master plugin.xml Comment : Ah see there s my misunderstanding . I saw Supported for windows and I thought that meant browsers in a windows OS Thanks for the education .", "Question : I m using the PushPlugin https : github.com phonegap-build PushPlugin for cordova and in android I can t make the push-notification play a sound while the app is not running or in background the banner in status bar is presented ok . Here s the function that gets called on android push notifications- .. . .. . the sound plays fine while app is running in foreground . This is the e param value of the function onNotification e after a push is received while I m in foreground which does play the sound fine - .. . .. . I have a feeling that the function onNotification e block is not called at all while the app is not running or in background . In the end what I want is very simple- to play a custom sound file on push-notification while app is not running or app is in background . .. . .. . Thanks in advance . .. . Answer : There is a Pull Request on the official repository that has never been merged but allows you to specify the mp3 file to play from the payload It works nice . The only disadvantage is that you have to put the mp3 file in the android res raw directory you cannot put it in the www directory .. . .. . Have a look here https : github.com phonegap-build PushPlugin pull 301 .. . .. . All you have to do is to send a payload with data.payload sound : myAlert message : blabla note to remove the .mp3 extension in the payload and put the myAlert.mp3 in the platform android res raw directory in your cordova project .", "Question : I used the example source code from https : github.com phonegap-build PushPlugin tree master Example www . Problem is that when I install my app and launch it my android phone or android SDK emulator it fails to register device to Android GCM . All the time error pops-up - Device is not defined . I dont know exactly how I can catch error why it fails to register device . Steps that I preformed is : .. . .. . 1 . Created Phonegap project .. . .. . 2 . Installed following 3 plugins cordova-plugin-device.git cordova-plugin-media.git PushPlugin . 3 . Registered App in Google Android GCM and retrieved my Goolge cloud API and Project Number .. . 4 . Locate the PushNotification.js file that was installed into my project-root plugins folder . This file was copied into my project-root www folder and referenced from the index.html .. . 5 . Added in my index file .. . 6 . Added to my www config.xml file .. . 7 . Added JQuery mobile JS + CSS files to my project .. . 8 . Changed senderID in my HTML code : 1111146417746 .. . 9 . Builded app with CLI - phonegap-build android .. . .. . And here is my Index.html code : .. . Answer : Put your registration code under DeviceReady function", "Question : I used the example source code from https : github.com phonegap-build PushPlugin tree master Example www . Problem is that when I install my app and launch it my android phone or android SDK emulator it fails to register device to Android GCM . All the time error pops-up - Device is not defined . I dont know exactly how I can catch error why it fails to register device . Steps that I preformed is : .. . .. . 1 . Created Phonegap project .. . .. . 2 . Installed following 3 plugins cordova-plugin-device.git cordova-plugin-media.git PushPlugin . 3 . Registered App in Google Android GCM and retrieved my Goolge cloud API and Project Number .. . 4 . Locate the PushNotification.js file that was installed into my project-root plugins folder . This file was copied into my project-root www folder and referenced from the index.html .. . 5 . Added in my index file .. . 6 . Added to my www config.xml file .. . 7 . Added JQuery mobile JS + CSS files to my project .. . 8 . Changed senderID in my HTML code : 1111146417746 .. . 9 . Builded app with CLI - phonegap-build android .. . .. . And here is my Index.html code : .. . Answer : Found a solution for this myself . As it turned out these two JS files : .. . .. . had to been moved in HEAD section not inside BODY section . Then it works fine", "Question : i m using phonegap with phonegap-plugin-push and i tried the example that comes with the plugin i tested it on my phone Galaxy s4 Android 5.0.1 when i send notification while application is on i got vibration and the message is showing inside the cards div as mentioned in index.js but i got no notification on status bar if the application is on background i got also no notification on status bar but i got vibration . i wonder why i have no notification popup on status bar . i use phonegap-plugin-push 1.4.4 Comment : Can you give the call that you are sending I am using it right now and works well . .. . Answer : When you receive the push-notification you will also want to raise a local notification at that point which will appear in your status bar and notification tray . I m a fan of the phonegap-plugin-localNotifications plugin for doing this you can find it at https : github.com Wizcorp phonegap-plugin-localNotifications . So in your phonegap-plugin-push onNotification handler for Android you would do something like this :", "Question : I used the example source code from https : github.com phonegap-build PushPlugin tree master Example www . Problem is that when I install my app and launch it my android phone or android SDK emulator it fails to register device to Android GCM . All the time error pops-up - Device is not defined . I dont know exactly how I can catch error why it fails to register device . Steps that I preformed is : .. . .. . 1 . Created Phonegap project .. . .. . 2 . Installed following 3 plugins cordova-plugin-device.git cordova-plugin-media.git PushPlugin . 3 . Registered App in Google Android GCM and retrieved my Goolge cloud API and Project Number .. . 4 . Locate the PushNotification.js file that was installed into my project-root plugins folder . This file was copied into my project-root www folder and referenced from the index.html .. . 5 . Added in my index file .. . 6 . Added to my www config.xml file .. . 7 . Added JQuery mobile JS + CSS files to my project .. . 8 . Changed senderID in my HTML code : 1111146417746 .. . 9 . Builded app with CLI - phonegap-build android .. . .. . And here is my Index.html code : .. . Answer : Go to your plugins folder and check whether you have a folder named cordova-plugin-device . That plugin should be installed in your project . So if that folder is missing you need to install it by opening your terminal and going to the root of your project to execute the following command .. . .. . This should add the plugin ." ] }
[ "yes-answer-long", "yes-answer-short" ]
notifications
UNK_RELATION
pdftoppm@pdf@58
pdftoppm -- pdftoppm stands for portable document format @placeholder to portable pixmap ppm converter .
{ "confidence": [ 53.65308380126953, 50.038185119628906, 48.759456634521484, 47.16658020019531, 44.7535400390625, 42.69921875, 38.037357330322266, 38.037357330322266, 33.060813903808594, 17.802148818969727, 14.616999626159668, 14.616999626159668, 14.616999626159668, 14.616999626159668, 14.616999626159668, 14.616999626159668, 14.616999626159668, 14.616999626159668, 14.616999626159668, 13.140288352966309, 13.140288352966309, 13.140288352966309, 13.140288352966309, 13.140288352966309, 13.140288352966309, 13.140288352966309, 13.140288352966309, 13.140288352966309, 11.370409965515137 ], "content": [ "I m using pdftoppm to do this .", "pdftoppm is properly installed on Ubuntu and works .", "Use pdftoppm command Then Iterate the generated ppm files then run convert Image.ppm to Image.jpg using imagemagick", "I m using poppler pdftocairo and pdftoppm on windows-10 .", "This is the command : .. . .. . imageExecCommand pdftoppm -jpeg -cropbox -r 100 -f .", "Is there a way in poppler pdftocairo or pdftoppm to format the output number like in Imagemagick or GS adding d", "Because of quality reasons we don t want to use Imagemagick but prefer to use pdftoppm .", "But if I use this code to do the same with pdftoppm it does not work what do I do wrong", "I m using pdftoppm to extract pages from a pdf file so I can later convert the resulting pbm files into multi-page tiffs with ImageMagick .", "I would like my output files to be in this format test-1.jpg test-2.jpg Is is possible", "I m trying to convert a PDF to jpg images but I want the images saved as progressive jpgs .", "pageToCopy .", "-l .", ".", "localPdf .", "SERVER ROOT .", "files .", "hash .. . .. . How can I make the jpeg progressive", "Pipe it through imagemagick http : www.imagemagick.org Usage formats jpg formats", "I need to convert pdf to png in php .", "For performance we prefer not to use the filesystem but the memory .", "For another project html - pdf we use the following code : .. . .. . This works perfect", "Thanks upfront for tips and sugestions Sorry for my bad English. .", "Ok fixed it myself", "removed the hyphens .", "Thanks for all the support", "When converting from multi page PDF to jpg or png it assigns -01 at the end of the file .", "For example : .. . .. . will produce jpg files test-01.jpg test-02.jpg etc .", "I ve got it to work using the following code : .. . .. . However for each item I keep getting these errors even though I have the -q flag to prevent them being written to output : .. . .. . Error : No display font for Symbol .. . .. . Error : No display font for Zapf Dingbats .. . .. . Is this a known bug with the program or is there something else I should do to prevent these errors being printed as they slow my program down" ] }
{ "confidence": [ 67.86505126953125, 56.55192184448242, 53.67368698120117, 40.53697967529297 ], "content": [ "Question : I m trying to convert a PDF to jpg images but I want the images saved as progressive jpgs . I m using pdftoppm to do this . This is the command : .. . .. . imageExecCommand pdftoppm -jpeg -cropbox -r 100 -f . pageToCopy . -l . pageToCopy . . localPdf . . SERVER ROOT . files . hash .. . .. . How can I make the jpeg progressive Comment : Pipe it through imagemagick http : www.imagemagick.org Usage formats jpg formats .. . Answer : Use pdftoppm command Then Iterate the generated ppm files then run convert Image.ppm to Image.jpg using imagemagick", "Question : null .. . Answer : I m using poppler pdftocairo and pdftoppm on windows-10 . When converting from multi page PDF to jpg or png it assigns -01 at the end of the file . For example : .. . .. . will produce jpg files test-01.jpg test-02.jpg etc . Is there a way in poppler pdftocairo or pdftoppm to format the output number like in Imagemagick or GS adding d I would like my output files to be in this format test-1.jpg test-2.jpg Is is possible", "Question : I need to convert pdf to png in php . Because of quality reasons we don t want to use Imagemagick but prefer to use pdftoppm . For performance we prefer not to use the filesystem but the memory . pdftoppm is properly installed on Ubuntu and works . For another project html - pdf we use the following code : .. . .. . This works perfect But if I use this code to do the same with pdftoppm it does not work what do I do wrong Thanks upfront for tips and sugestions Sorry for my bad English. . .. . Answer : Ok fixed it myself removed the hyphens . Thanks for all the support", "Question : null .. . Answer : I m using pdftoppm to extract pages from a pdf file so I can later convert the resulting pbm files into multi-page tiffs with ImageMagick . I ve got it to work using the following code : .. . .. . However for each item I keep getting these errors even though I have the -q flag to prevent them being written to output : .. . .. . Error : No display font for Symbol .. . .. . Error : No display font for Zapf Dingbats .. . .. . Is this a known bug with the program or is there something else I should do to prevent these errors being printed as they slow my program down" ] }
[ "yes-answer-long", "yes-answer-short" ]
pdf
UNK_RELATION
graphdiff@entity-framework@65
graphdiff -- graphdiff provides dbcontext extension-methods for @placeholder code-first that allow you to save an entire detached model entity with child entities and lists to the database without writing the code to do it .
{ "confidence": [ 59.659244537353516, 58.55288314819336, 54.083099365234375, 51.860076904296875, 50.08777618408203, 49.92795181274414, 49.123531341552734, 47.572174072265625, 47.21078872680664, 47.157283782958984, 47.11138153076172, 46.3089599609375, 45.06304168701172, 44.713226318359375, 44.704898834228516, 44.652008056640625, 44.56653594970703, 44.56653594970703, 44.22563171386719, 44.11424255371094, 43.90741729736328, 43.71928024291992, 43.71928024291992, 43.572296142578125, 43.4291877746582, 43.057987213134766, 42.670249938964844, 41.792694091796875, 41.71726989746094, 41.57645797729492, 41.487388610839844, 40.90461730957031, 40.424198150634766, 39.60685729980469, 39.284332275390625, 39.28327178955078, 38.87535095214844, 38.87535095214844, 38.5302619934082, 38.4524040222168, 38.206302642822266, 38.08177185058594, 38.08177185058594, 38.08177185058594, 38.08177185058594, 37.915836334228516, 37.915836334228516, 37.915836334228516, 37.915836334228516, 37.915836334228516, 37.73442459106445, 37.73442459106445, 37.68027114868164, 37.608734130859375, 37.53544998168945, 37.09407043457031, 37.09407043457031, 37.09407043457031, 37.09407043457031, 37.09407043457031, 37.09407043457031, 37.09407043457031, 36.3594970703125, 35.95314025878906, 35.95314025878906, 35.061500549316406, 35.061500549316406, 34.865447998046875, 34.609222412109375, 34.58570861816406, 34.58570861816406, 34.58570861816406, 34.58570861816406, 34.191627502441406, 33.965816497802734, 33.256832122802734, 32.880157470703125, 32.682518005371094, 32.60840606689453, 32.60840606689453, 32.60840606689453, 32.60840606689453, 32.60840606689453, 32.60840606689453, 32.60840606689453, 32.60840606689453, 32.60840606689453, 32.38957595825195, 32.34496307373047, 32.12313461303711, 32.12313461303711, 31.467477798461914, 31.467477798461914, 31.467477798461914, 31.39685821533203, 31.283130645751953, 30.51844596862793, 30.10004425048828, 30.10004425048828, 30.10004425048828 ], "content": [ "You can use this with graphdiff : .. . .. . see this link : GraphDiff Explanation http : blog.brentmckendrick.com introducing-graphdiff-for-entity-framework-code-first-allowing-automated-updates-of-a-graph-of-detached-entities", "I m trying to insert a detached entity into database using GraphDiff .", "GraphDiff on GitHub https : github.com refactorthis GraphDiff .. . .. . UpdateGraph extension method : https : github.com refactorthis GraphDiff blob develop GraphDiff GraphDiff DbContextExtensions.cs .. . .. . How should you hookup Moq with GraphDiff", "The endpoint serializes the JSON into the complex entity then the repository uses GraphDiff to save the entity .", "I am using a third party library GraphDiff which adds Extension methods to DBContext class .", "Can GraphDiff be used in a database first scenario assuming I use the POCO Entity Generator", "Attach the result entity of 6 step to my DbContext using GraphDiff .. . 9 .", "I m trying to use GraphDiff https : github.com refactorthis GraphDiff latest available version in NuGet to handle what I consider a not terribly difficult entity-model .", "Graphdiff will return the updated entity .. . .. . As for 3 : .. . .. . GraphDiff does not do a per-property patch .", "This was a bug in GraphDiff .", "I found GraphDiff http : refactorthis.wordpress.com 2012 12 11 introducing-graphdiff-for-entity-framework-code-first-allowing-automated-updates-of-a-graph-of-detached-entities solution promising and I started exploring it but I couldn t achieve what I intend to as my scenario is somewhat peculiar .", "Can I use GraphDiff for patching entities", "Data Model http : i.stack.imgur.com F7iUq.png .. . .. . My business logic works with detached entities so I m using GraphDiff to perform updates .", "GraphDiff uses ObjectContext .", "I use GraphDiff for complex entities ie .", "To do this we ve come up with a model similar to this : .. . .. . Lets say you have an object : .. . .. . This will save with GraphDiff as expected .", "Thanks for your help and for the work you do on GraphDiff", "Do you have the latest version of GraphDiff", "The other kind of relation handled by GraphDiff is associated which means that only relations to but not the associated entities themselves are changed by GraphDiff when updating a graph .", "Mady : Because GraphDiff works only with Disconnected parent and connected child entities that s what I found .", "I am using GraphDiff along with the latest version of the Entity Framework following the code-first approach .", "I am using GraphDiff 2.0.1 and Entity Framework 6.1.1 .", "I m using EF6 with graphdiff and EDMX and must ignore a property of a particular entity .", "Does that cause a problem with GraphDiff", "I use GraphDiff https : github.com refactorthis GraphDiff to update detached object graphs and I m getting the above exception when saving a parent and its children .", "I solved it by cloning the GraphDiff source code from GitHub and modifying it .", "The develop branch of GraphDiff provides support for attribute based mapping .", "I have created an issue on github on github.com refactorthis GraphDiff issues 116 https : github.com refactorthis GraphDiff issues 116 .", "The other kind of relation handled by GraphDiff is associated which means that only relations to but not the associated entities themselves are changed by GraphDiff when updating a graph .", "If the graph has not been retrieved from the database in the first place then you are not using GraphDiff as it was intended .", "However if we change the child 1 object only so we go from the above model to : .. . .. . and use GraphDiff to save it sees that Child 1v2 is no longer in the graph and deletes it from the database .", "So I found the solution - https : github.com refactorthis GraphDiff issues 32 issuecomment-34420859 .. . .. . Importantly GraphDiff hands you a new instance back so you need to set the return to your entity .", "The NuGet package for GraphDiff has been updated yesterday .", "However GraphDiff is loading the entity again before saving the changes to the DB .", "I m using GraphDiff https : github.com refactorthis GraphDiff with EF to update state of disconnected objects acquired from a REST Service .", "Is there a way to use GraphDiff in an Add Update only mode", "This seems like it should be simple to achieve using GraphDiff but being a relative newby to EF couple with only just finding GraphDiff I m struggling .", "I am not sure if this is an issue with GraphDiff or more likely I have something wrong in my EF mappings or my GraphDiff mappings .", "To model this using GraphDiff you tell it to consider Skills as parts of a Resource owned by a Resource and Technology Category and Competency as associations of a Skill .", "So in GraphDiff when an entity gets updated a different copy of the entity is being created and you have to get this copy in order to get Ids of newly created entities etc .", "I am working with detached object in Entiy Framework so I m using graphdiff to handle it .", "My main entity has multiple children that may be created updated or deleted OwnedCollections in graphDiff .", "This means that instead of letting GrahpDiff to retrieve the entity from the DB it was retrieved in an optimal way and was injected for merging into GraphDiff .", "I have just added GraphDiff in an existing Entity Framework solution which is utilizing Moq framework for testing .", "When using graphDiff for creating a record the new id isn t getting populated back into the entity after saveChanges is called .", "I asked andypelzer in GraphDiff and this is currently not supported .", "If not I suspect GraphDiff might not be able to deal with that .", "I will also be using GraphDiff was updating complex graphs .", "What is the correct way to use GraphDiff in this case", "Is it an EF or GraphDiff issue and is there a way to solve this problem", "Hi I ve opened an issue https : github.com refactorthis GraphDiff issues 105 and started some work on supporting a feature like this in GraphDiff .", "Have a look at GraphDiffs test models https : github.com refactorthis GraphDiff blob develop GraphDiff GraphDiff.Tests Models AttributeTestModels.cs for some examples of this .", "There s also an open-source implementation of this for EF called GraphDiff https : github.com refactorthis GraphDiff .", "Some background : .. . .. . I m using https : github.com refactorthis GraphDiff to support merging of entities for updates .", "I can still use GraphDiff for this specific scenario if I comment the deleting logic in the code .", "This issue is purely related to GraphDiff but I also welcome other solutions .", "I may be wrong someone who uses graphdiff will correct me .", "If i ever have to use delete functionality I ll not use GraphDiff .", "Yeah.I wonder if this is a valid case for GraphDiff EntityFramework to address in their future release .", "GraphDiff basically distinguishes two kinds of relations : owned and associated .", "I am using GraphDiff to update complicate object graphs .", "Please open an issue on github https : github.com refactorthis GraphDiff including the repro .", "The way I was able to work around this while still benefiting from the ease of GraphDiff was as follows : .. . .. . Set your object equal to the GraphDiff method .. . Set each property you wish to ignore to .IsModified false .. . .. . Example", "I probably don t have a full grasp of EF graphs and GraphDiff .", "Since most examples or uses in GraphDiff does not have a problem that is very worrying", "Also if GraphDiff is behaving unexpectedly please do not use the NuGet package but build from source as the package is currently quite outdated .", "GraphDiff appears to do exactly whaty we want so it would be great if we can actually use it : -", "Because you can do that natively with GraphDiff : context.UpdateGraph aEntity map map.OwnedCollection a a.Bs with with .AssociatedCollection b b.Cs Then you can do : context.UpdateGraph bEntity Right", "Graphdiff will load the model before updating and will take care of changed properties accordingly .. . 4 .", "And if I can use GraphDiff will EF change tracking kick in automatically", "GraphDiff basically distinguishes two kinds of relations : owned and associated .", "I have these models : .. . .. . And the mapping classes : .. . .. . I m using GraphDiff for CRUD operations .", "Is it a wrong configuration in my mapping classes or is GraphDiff not behaving as expected", "This Blog Post http : blog.brentmckendrick.com updates-to-graphdiff-with-new-scenarios-supported announcing new GraphDiff functionality seems to indicate that there may be some auditing capabilities available but I cannot find any documentation on how to use this .", "Do you want to say that in Step 3 GraphDiff will take care of changed properties like patch with Delta T", "You can t use the extension method in your case because context is no longer a DbContext but IMyContext and the extension-methods are defined for DbContext not for IMyContext .", "Would you mind having a look at my pull request https : github.com refactorthis GraphDiff issues 107", "So you never told GraphDiff to map PerfModes.CalcPoints and it in turn never updates that collection. . - .. . .. . To ask GraphDiff to do that please move one from the end of the line before the last line to the end of the last line and you should be fine after that your indentation matches the brackets .", "Thanks to this http : stackoverflow.com a 17134895 75500 answer I found GraphDiff which offered a brilliant solution to the situation .", "I know my write up is confusing as I tried to put all my testing experience with GraphDiff .", "to use GraphDiff to prevent EF from trying to add duplicate Technology SkillCategory SkillCompetency records .", "I am having an issue with GraphDiff attaching an object which has a recursive many-to-many relationship .", "I ve just fixed that on the develop branch with pull request 102 https : github.com refactorthis GraphDiff pull 102 .", "Your mapping is using FirstOrDefault which isn t supported in GraphDiff mappings so this is producing the error .", "Using GraphDiff I wanted to update this value likes so : .. . .. . This gives the following exception : .. . .. . Any clues", "I m not familiar with graphdiff but this sounds like both objects are being saved in a pattern that cascades .", "We have only a few scenarios when we are using GraphDiff maybe is there a way to prepare the graphs used in teh applicaton .", "If your problem persists please update your question with the exact scenario that isn t working : please include the state of your DbContext before calling UpdateGraph the changes you expect GraphDiff to make and the ones it fails to make .", "I have downloaded the code and the following code in CollectionGraphNode seems to cause the issue : .. . .. . I know my question is very specific but GraphDiff is my last hope that I ll be able to update my object in a neat way .", "EDIT : I downloaded and compiled GraphDiff in order to inspect what is going on and I noticed the creation of some objects that are empty except from their Entity ID value .", "UPDATE tl dr version : I tried to apply a UpdateGraph call using Entity Framework s GraphDiff of an object with graph depth greater than 2 .", "I m going to debug why that association causes problems as I think it shouldn t - if it s a bug in GraphDiff I ll fix it. .", "I ve updated my answer it wasn t a bug in GraphDiff after all but one in your mapping .", "In my repository I check whether the object is an IMergeable and call the mapping method to pass this to graphdiff .", "I ts 3am and I ve had a fair bit of wine but the problem is fixed : If you get the latest version of code @ https : github.com refactorthis GraphDiff it should work fine .", "I have the following model : .. . .. . From the above and using GraphDiff I want to update the customer aggregate as follows : .. . .. . But the above is not updating anything", "Instead of providing an expression tree mapping your graph you add custom-attributes Owned or Associated to the navigation properties in your model classes and GraphDiff creates the mapping for you .", "GraphDiff currently doesn t support mapping of recursive relationships of non-predetermined depth via the fluent API .", "Caveat : I ve never used GraphDiff and I don t know how it works but I found your question curious .", "Graphdiff seems to ignore members that are collections and that are input with a null value instead of an empty collection ." ] }
{ "confidence": [ 85.42899322509766, 76.93872833251953, 76.6610336303711, 76.6009292602539, 76.59817504882812, 76.17606353759766, 74.73597717285156, 74.69911193847656, 73.02259826660156, 71.84217834472656, 71.7699203491211, 71.28971099853516, 69.68090057373047, 68.9000473022461, 68.0482177734375, 66.27567291259766, 64.61518859863281, 64.4666748046875, 64.3610610961914, 62.598228454589844 ], "content": [ "Question : I have following entities in my DbContext : .. . .. . enter image description here http : i.stack.imgur.com j3UsT.png .. . .. . Sometimes I Want to update a graph : .. . .. . I want to update a with its Bs update C D E too using graphdiff : .. . .. . This updates A B s C s D s but not E s . So I think I need to define a conditional mapping for graphdiff to update E s too somethings like : .. . .. . Is there any way to do this job Comment : In the dbContext have you stated that the d owns the collection Es something like dbContext.UpdateGraph d map map.OwnedCollection x x.Es Comment : @PaulZahra : yeah .. . Answer : You can use this with graphdiff : .. . .. . see this link : GraphDiff Explanation http : blog.brentmckendrick.com introducing-graphdiff-for-entity-framework-code-first-allowing-automated-updates-of-a-graph-of-detached-entities", "Question : I have the following model : .. . .. . From the above and using GraphDiff I want to update the customer aggregate as follows : .. . .. . But the above is not updating anything What is the correct way to use GraphDiff in this case .. . Answer : GraphDiff basically distinguishes two kinds of relations : owned and associated . Owned can be interpreted as being a part of meaning that anything that is owned will be inserted updated deleted with its owner . The other kind of relation handled by GraphDiff is associated which means that only relations to but not the associated entities themselves are changed by GraphDiff when updating a graph . When you use the AssociatedEntity method the State of the child entity is not part of the agregate in other words the changes that you did over the child entity will not be saved just it will update the parent navegation property . Use the OwnedEntity method if you want to save tha changes over the child entity so I suggest you try this :", "Question : I have a complex graph with a collection child entities.The relationship between parent and child entities is one-many relationship and has an Independent association . I know that I cant persist my graph without manual synchronization which I want to avoid . I found GraphDiff http : refactorthis.wordpress.com 2012 12 11 introducing-graphdiff-for-entity-framework-code-first-allowing-automated-updates-of-a-graph-of-detached-entities solution promising and I started exploring it but I couldn t achieve what I intend to as my scenario is somewhat peculiar . This issue is purely related to GraphDiff but I also welcome other solutions . At any given time my Person.Cars collection may have 1 . A new car object . 2 . An existing car object with updated values . insurance or service dates . Id property on Person and PersonId on Car will be 0 . At this point we are not sure the object we received has to added or updated . PersonId on child entities Cars will also be 0.Now if we call . To overcome this I have to update Id property on person . It deletes all entities in dbPerson.Cars and adds person.Cars to dbPerson.Cars and saves . It means all records in my Cars table in database are deleted and records from person.Cars are inserted . I noticed this is happening because Now the child entities does not have a Id property . I have to set them manually . Now if you call .. . .. . This will add entities in collection from transient object missing in the persistent object and updates the object matching in the persistent object and deletes rest of the entities from the persistent object . say dbCars.Count is 8 and person.Cars.Count is 3 . one new car and 2 old cars with updated values Once you run . 2 old cars from person.Cars matching in dbCars will be updated . 1 new car from person.Cars not matching in dbCars will be added . Now the count of dbCars must be 9 as we added a new car . Now check the count . dbCarCount will be 3 . Rest of the 6 cars from dbCars are being removed . I wish I am wrong as I like to use your solution.My work in this area is stalled . Please let me know If I m missing something or you need more information . I know my write up is confusing as I tried to put all my testing experience with GraphDiff . Hope you address this issue . Comment : Now the count of dbCars must be 9 - why If the disconnected graph no longer contains the other 6 cars what happened Surely they were deleted Why aren t they still there Comment : Now the count of dbCars must be 9 - why Mady : Initially there were 8 I added a new car and updated 2 existing car details so the count should be 9 . If the disconnected graph no longer contains the other 6 cars what happened Surely they were deleted Mady : Yes they were deleted . Why aren t they still there Mady : Because GraphDiff works only with Disconnected parent and connected child entities that s what I found . I may be wrong someone who uses graphdiff will correct me . My example in next comment Comment : Example : I have a Author entity with collection of books and I get this entity from various clients to save into database.There is a fair chance where many clients may send Author entity with same different books collection.I have to either update books if exists or add if not . We are not deleting from graph . .. . Answer : If you have a disconnected graph and you want to merge it to the database then there are 3 things it should do : .. . .. . 1 . Insert new entities .. . 2 . Update existing entities .. . 3 . Delete entities not in the graph .. . .. . You appear to be having an issue with the last part . If the graph has not been retrieved from the database in the first place then you are not using GraphDiff as it was intended . You will have to do your adding and updating manually . Comment : Absolutely correct . I can still use GraphDiff for this specific scenario if I comment the deleting logic in the code . If i ever have to use delete functionality I ll not use GraphDiff . Comment : Yes . Or you could add a flag enum to switch modes Comment : Yeah.I wonder if this is a valid case for GraphDiff EntityFramework to address in their future release . For me its a valid case since most of the data aggregation projects which collect data from various sources experience this scenario.I thank you for sharing thoughts : Comment : If you want to vote for and keep track of updates to better support for working with disconnected entities in EF go here : entityframework.codeplex.com workitem 864 https : entityframework.codeplex.com workitem 864 Comment : I did it a week ago.Thankyou", "Question : I use GraphDiff https : github.com refactorthis GraphDiff to update detached object graphs and I m getting the above exception when saving a parent and its children . The models and mapping are : .. . .. . For inserts and updates I have this following method in my repository : .. . .. . I do the following : .. . .. . 1 . Add a new group save and reload .. . 2 . Add a user to the group save and reload .. . 3 . Add a second user save and reload .. . 4 . Add a third user try to save - exception is thrown .. . .. . Whilst debugging the state of the user entities being added is always detached and both GroupId and Id are set to 0 for new entities . The first 2 users added are saved successfully . However on the third one the exception is thrown . If I m always using the same method for saving why does it not always work Is it an EF or GraphDiff issue and is there a way to solve this problem Most questions and related answers here on SO and elsewhere all deal with the situation where a child entity is being deleted . This is not the case in my particular scenario . .. . Answer : please try this.it is untested though", "Question : I use GraphDiff https : github.com refactorthis GraphDiff to update detached object graphs and I m getting the above exception when saving a parent and its children . The models and mapping are : .. . .. . For inserts and updates I have this following method in my repository : .. . .. . I do the following : .. . .. . 1 . Add a new group save and reload .. . 2 . Add a user to the group save and reload .. . 3 . Add a second user save and reload .. . 4 . Add a third user try to save - exception is thrown .. . .. . Whilst debugging the state of the user entities being added is always detached and both GroupId and Id are set to 0 for new entities . The first 2 users added are saved successfully . However on the third one the exception is thrown . If I m always using the same method for saving why does it not always work Is it an EF or GraphDiff issue and is there a way to solve this problem Most questions and related answers here on SO and elsewhere all deal with the situation where a child entity is being deleted . This is not the case in my particular scenario . .. . Answer : Probably is related to UserId not nullable . As you know UserId is used by EF to write User . If User is null it can EF cannot write the entity . Also it could be related to User.GroupId that is used by EF to map the Group.Users collection . Also I can t understand your model . A User have one and only one Group . A Group can have more then one User . If this is true why don t you just simplify your model removing the association entity EF does not need it.. . In this case you need just UserMap . If a User can have more than one Group you can just modify your user model in this way .. . .. . EF understands that is a many-to-many relationship will create the association table UsersGroups but you don t need the association entity . EDIT .. . .. . Rarely you need to set db.Entry myEntity .State EntityState.Modified with EF6 . Proxies works quite good .", "Question : I am working on a project with a very complex entity . The object graph contains approximately 30 objects in a tree with two levels there are children of children . The entity is managed in a browser and sent as Json to a Web API endpoint . The endpoint serializes the JSON into the complex entity then the repository uses GraphDiff to save the entity . On first save the UpdateGraph call takes around 12 seconds on subsequent calls on the same entity takes milliseconds . I assume that the graph is cached per entity i the EF DbContext . Is there any way to optimize the first call We have only a few scenarios when we are using GraphDiff maybe is there a way to prepare the graphs used in teh applicaton . Thank you for your help . .. . Answer : I solved it by cloning the GraphDiff source code from GitHub and modifying it . GraphDiff detects dynamically the keys of the entities and because the way how the dynamic query expressions are generated to retrieve the already persisted objects the expression are recompiled by EF every time when a new entity another primary-key is used for the query . So the compiled queries are not cached only if the entity keys were used before . These query compilations took a lot of time in my case 10s . The source code was modified to allow the injection of the already persisted entity . This means that instead of letting GrahpDiff to retrieve the entity from the DB it was retrieved in an optimal way and was injected for merging into GraphDiff .", "Question : I have just added GraphDiff in an existing Entity Framework solution which is utilizing Moq framework for testing . All my tests that are using Moq in insert and update methods are now failing since method context.UpdateGraph throws following exception : System.NullReferenceException : Object reference not set to an instance of an object . GraphDiff on GitHub https : github.com refactorthis GraphDiff .. . .. . UpdateGraph extension method : https : github.com refactorthis GraphDiff blob develop GraphDiff GraphDiff DbContextExtensions.cs .. . .. . How should you hookup Moq with GraphDiff Comment : You should include more information about the inner exceptions or perhaps use the sorce code of GrpahDiff instead of the assembly to guess where the error comes from Comment : Edited the answer with more info about GraphDif fand UpdateGraph extension method Comment : Mocking entityframework is a pain . You need to mock ObjectContext as well as DbContext . GraphDiff uses ObjectContext . I tried but ended up using nuget Effort instead effort.codeplex.com https : effort.codeplex.com .. . Answer : We had this problem as well . This is how we solved it . So this is in the IContext interface : .. . .. . This is in the base context : .. . .. . and .. . .. . And this is in the actual concrete context : .. . .. . and", "Question : null .. . Answer : I m currently working on a project that requires we be able to pull up the exact state of an object and associated children at an point in time . To do this we ve come up with a model similar to this : .. . .. . Lets say you have an object : .. . .. . This will save with GraphDiff as expected . Then later we load parent 1v1 and change something about it . The version will bump to 2 and the child object versions will bump to 2 . So now this object : .. . .. . will also save like we want . A new record is inserted for each of these objects and the old versions remain . However if we change the child 1 object only so we go from the above model to : .. . .. . and use GraphDiff to save it sees that Child 1v2 is no longer in the graph and deletes it from the database . The only way I see around this is to have to 2 get methods . One that loads what s actually usable the max version parent and children and one that loads the entire graph including every historical object . I d prefer not to do that . This Blog Post http : blog.brentmckendrick.com updates-to-graphdiff-with-new-scenarios-supported announcing new GraphDiff functionality seems to indicate that there may be some auditing capabilities available but I cannot find any documentation on how to use this . Is there a way to use GraphDiff in an Add Update only mode Comment : Hi I ve opened an issue https : github.com refactorthis GraphDiff issues 105 and started some work on supporting a feature like this in GraphDiff . Are you still interested in this feature or have you already found a workaround Comment : We are definitely still interested in this feature . We are currently using a workaround but it forces us to load the entire graph manually merge our changes and then save the graph Comment : Would you mind having a look at my pull request https : github.com refactorthis GraphDiff issues 107 Does it help solve your issue If not please comment why so I know where to improve .", "Question : In my WebApi project I use EF6 follow Uow and generic repository patterns and I also map my models to dto s and vice-versa . Currently I set the following when creating the dbContext : .. . .. . I also use AsNoTracking when fetching data from the db . When updating the db I m using the dbContext directly to attach the entities when handling small entities ie . no relationships . I use GraphDiff for complex entities ie . with relationships . When enabling proxies and tracking and even with disabling them I noticed that the SQL statement sent to the DB includes all the table s columns instead of only those columns that have been actually changed . However GraphDiff is loading the entity again before saving the changes to the DB . The SQL statement in this case also contains all the columns . Is this the correct behavior So in my scenario is it safe to disable proxies and tracking as I m dealing with detached entities .. . Answer : Yes I guess it is this is a way for EF to handle optimistic-concurrency . Optimistic concurrency involves optimistically attempting to save your entity to the database in the hope that the data there has not changed since the entity was loaded . If it turns out that the data has changed then an exception is thrown and you must resolve the conflict before attempting to save again . The only way for EF to check this is to load all the columns checks for any changes and block the save if it gets that the record got modified between the last load and your save . Check this https : msdn.microsoft.com en-us data jj592904.aspx . If you don t have a timestamp column you can use this attribute more info here http : www.entityframeworktutorial.net code-first concurrencycheck-dataannotations-attribute-in-code-first.aspx ConcurrencyCheck to inform EF that that specific column is the column to use to understand if the record changed this should avoid loading all for concurrency check . Hope it helps :", "Question : I use GraphDiff https : github.com refactorthis GraphDiff to update detached object graphs and I m getting the above exception when saving a parent and its children . The models and mapping are : .. . .. . For inserts and updates I have this following method in my repository : .. . .. . I do the following : .. . .. . 1 . Add a new group save and reload .. . 2 . Add a user to the group save and reload .. . 3 . Add a second user save and reload .. . 4 . Add a third user try to save - exception is thrown .. . .. . Whilst debugging the state of the user entities being added is always detached and both GroupId and Id are set to 0 for new entities . The first 2 users added are saved successfully . However on the third one the exception is thrown . If I m always using the same method for saving why does it not always work Is it an EF or GraphDiff issue and is there a way to solve this problem Most questions and related answers here on SO and elsewhere all deal with the situation where a child entity is being deleted . This is not the case in my particular scenario . .. . Answer : Did you try seeing if the entity state is being modified when not being tracked by EF Try .. . .. . The ToList function also could be causing you to accidentally modifying the user state . Comment : Changing ToList to a normali foreach didn t make any difference . Comment : State is Added which is correct . Comment : If the State is added and not unchanged it sounds like a problem with a disconnection of entities . My guess is that EF is recreating the GroupUser then nulling the previous GroupUser when trying to save . Did you try printing the values of the previous added users", "Question : null .. . Answer : I am using GraphDiff to update complicate object graphs . My main entity has multiple children that may be created updated or deleted OwnedCollections in graphDiff . So in GraphDiff when an entity gets updated a different copy of the entity is being created and you have to get this copy in order to get Ids of newly created entities etc . I encountered though the following problem : When I add an entity to a child collection the returned mother entity has the same child twice . I have downloaded the code and the following code in CollectionGraphNode seems to cause the issue : .. . .. . I know my question is very specific but GraphDiff is my last hope that I ll be able to update my object in a neat way . I am not that good in EF and I am trying to understand how the above two lines-of-code add my entity twice in the list . My child entity has reference to the parent could that cause the extra addition Has anyone had a similar issue and how did you resolved it Comment : I m not familiar with graphdiff but this sounds like both objects are being saved in a pattern that cascades . Try adding the child to the parent then saving the parent only . Comment : Hi if you provide a small reproduction of the problem I ll have a look at it . Please open an issue on github https : github.com refactorthis GraphDiff including the repro . Comment : Thanks @andyp for your fast response . I have created an issue on github on github.com refactorthis GraphDiff issues 116 https : github.com refactorthis GraphDiff issues 116 . Thanks a lot .", "Question : null .. . Answer : I m using Entity Framework in an application with a existing SQL Server db . Can GraphDiff be used in a database first scenario assuming I use the POCO Entity Generator Comment : That should work if you re using the DbContext API but I ve never actually tried it. .", "Question : I have the following data model : .. . .. . Data Model http : i.stack.imgur.com F7iUq.png .. . .. . My business logic works with detached entities so I m using GraphDiff to perform updates . I m having trouble updating the PerfModes CalcPoints association . Conceptually Block owns CalcPoints and PerfModes but CalcPoints can be associated with any number of PerfModes . I m trying to do updates at the Block level . The code I came up with doesn t throw any errors while other attempts did but neither does it update the PerfModes CalcPoints association . I probably don t have a full grasp of EF graphs and GraphDiff . How do I ensure that the many-to-many PerfModes CalcPoints association gets updated correctly EDIT .. . .. . After looking over andyp s answer I pulled down the latest version of GraphDiff from GitHub and tried the following mappings : .. . .. . This correctly updates my PerfModes CalcPoints association . I switched back to my original mappings and still saw the issue of the association not updating so it seems there s a problem with trying to update the entire model at once . I d be fine with making multiple UpdateGraph calls but what would be the best way to break them out Here s https : gist.github.com anonymous f64e63497ee5bc5ddad1 a gist with relevant code and a failing unit test . I m inheriting the EF generated container class to create my own context with proxy creation disabled . Does that cause a problem with GraphDiff Comment : I d look into it but I m not willing to type all of your classes your context etc . - could you please post your entire code - including a failing unit test - somewhere I guess its to much code to just paste it into the question A gist https : gist.github.com perhaps. . Comment : I added a gist in the question . Comment : Just a quick update : if you remove .AssociatedEntity f f.CalcPoint everything works as expected . I m going to debug why that association causes problems as I think it shouldn t - if it s a bug in GraphDiff I ll fix it. . Comment : I ve updated my answer it wasn t a bug in GraphDiff after all but one in your mapping . Comment : Ah the parentheses got me Yes that fixes it . Thanks for your help and for the work you do on GraphDiff .. . Answer : As your mappings seemed to be correct I ve tried to reproduce your issue like this : .. . .. . All entities are simple POCOs with an int key and just IDbSet T s on my DbContext . I ve neither added anything in OnModelCreating . . via the fluent API nor used any attributes on the navigation properties . My code above is working properly so I ve got a couple of suggestions questions : .. . .. . Is there anything significant you did differently then me above Do you call SaveChanges after UpdateGraph It s not implied Do you have the latest version of GraphDiff Please note that the NuGet package is quite outdated it s better to grab the current source from Github https : github.com refactorthis GraphDiff and build it yourself . If your problem persists please update your question with the exact scenario that isn t working : please include the state of your DbContext before calling UpdateGraph the changes you expect GraphDiff to make and the ones it fails to make . EDIT : Your mapping wasn t correct after all you re mapping Block.CalcPoints twice once as an owned collection first call to OwnedCollection . . and once as an associated collection last and only call to AssociatedCollection . . . So you never told GraphDiff to map PerfModes.CalcPoints and it in turn never updates that collection. . - .. . .. . To ask GraphDiff to do that please move one from the end of the line before the last line to the end of the last line and you should be fine after that your indentation matches the brackets . The correct mapping looks like this two closing brackets at the end of the last line : Comment : See my edit . Maybe I need to break the code out into multiple UpdateGraph calls", "Question : null .. . Answer : I m trying to use GraphDiff https : github.com refactorthis GraphDiff latest available version in NuGet to handle what I consider a not terribly difficult entity-model . Consider a model like so : .. . .. . If I m updating an instance of A call it aEntity I could do : .. . .. . Now I d also sometimes like to update B s independently . So I figured I could cascade the changes by introducing a property like so : .. . .. . .. . and then use that in both scenarios like so : .. . .. . Updating the B by itself works fine but updating an A falls down in expression land : .. . .. . Is there a way to share mappings in GraphDiff Comment : Is the questions just : I want to be able to map cascading properties or the individual property Because you can do that natively with GraphDiff : context.UpdateGraph aEntity map map.OwnedCollection a a.Bs with with .AssociatedCollection b b.Cs Then you can do : context.UpdateGraph bEntity Right Comment : No the question is whether portions of the cascading property can be defined in their own methods or properties so they can be reused . That way I could define the mapping for a child object and its own child relations in one place and then have parents reuse that code .", "Question : I am using GraphDiff along with the latest version of the Entity Framework following the code-first approach . I am trying to update a Food entity this way : .. . .. . StartObjectSlots and EndObjectSlots are 2 lists containing some other irrelevant data . The InteractiveObjects contains objects of a InteractiveObject type which is the base type for a number of object types that can be put there . One of those derived types let s say IntObjDerived has a One-to-Many property . Now I am trying to update the following entity this way : .. . .. . Now when the code is executed a new empty ActionOfUser entity is inserted into the database . Additionally del a new empty entity is inserted for each of the one-to-many navigation properties of the entities mentioned above del three new recipes are inserted in the database one of empty data one half filled and this one supposed to be saved . Both situations are unwanted and I am trying to find the solution . I experimented with some changes but I have stuck with this . Any suggestions I know that this seems to be 2 questions but I thought to put it as one as it might be relevant-same problem in database . EDIT : I downloaded and compiled GraphDiff in order to inspect what is going on and I noticed the creation of some objects that are empty except from their Entity ID value . I guess that those side effects are caused because practically I add a new node to the object graph a new RecipeStep and I am not sure if graphdiff fully supports this . UPDATE tl dr version : I tried to apply a UpdateGraph call using Entity Framework s GraphDiff of an object with graph depth greater than 2 . By what I have tried it seems that GraphDiff is applying double insertions in graphs of depth greater than 2 and it takes a lots of time especially if a new node is added with subnodes loaded from the database . Should I follow a different approach for example split the UpdateGraph call into multiple calls Thank you in advance Comment : Definitely you need to explain a little bit about your issue . Is very hard to read . Can you simplify the problem Comment : Added simplified version of the question . Comment : Can you please copy your current model Comment : I am afraid that this is not possible . I posted an answer though on this . .. . Answer : What I finally applied as a workaround was to perform the update operation by splitting it into multiple UpdateGraph calls with graph depth less than or equal to 2 and apply manually any sub-node addition to the graph : .. . .. . Also I noticed that the object s graph update was completed much faster than before . These might be indications of something going wrong in GraphDiff complex graph 2 depth updating process or at least I was doing something terribly wrong .", "Question : I have a issue with updating value on a foreign key which is inheriting from another class . I am working with detached object in Entiy Framework so I m using graphdiff to handle it . I ve simplified the code to make it easier to read .. . .. . Project class : .. . .. . Activity class : .. . .. . SurfingActivity class : .. . .. . The update context using graphdiff : .. . .. . I m only able to associate the Company property in Activity but not the Weather of SurfingActivity . When I pass along values for SurfingActivity does Id Name Company and Comment get saved in the Activity table and the SurfingActivity table but not weather . Does anyone have any suggestion how to solve this without having to create a new property on Project that contains a list with surfingActivity .. . Answer : I asked andypelzer in GraphDiff and this is currently not supported . My work around which would work in this case but not if the entities becomes even more nested is to add the foreign key property as datatype it is and data annotation ForeignKey to the foreign key with the entity like this : .. . .. . Link to question : https : github.com refactorthis GraphDiff issues 112", "Question : If I have : .. . .. . and .. . .. . I d like to combine them to be : .. . .. . Is there a way of doing this I d also like to be able to combine : .. . .. . and : .. . .. . to be : .. . .. . Is there a way of doing this one as well I m hoping that these are fairly simple requirements but I m finding it difficult to get to grips with the terminology . Some background : .. . .. . I m using https : github.com refactorthis GraphDiff to support merging of entities for updates . The problem is that it expects an expression tree describing the relationships of the enitity to be updated eg . Mine needs to be a generic solution so I need to examine the various one-to-one one-to-many and many-to-many relationships of my entities type using reflection and convert these to an expression tree . Any help on my specific questions or general help would be appreciated . .. . Answer : The develop branch of GraphDiff provides support for attribute based mapping . Instead of providing an expression tree mapping your graph you add custom-attributes Owned or Associated to the navigation properties in your model classes and GraphDiff creates the mapping for you . Have a look at GraphDiffs test models https : github.com refactorthis GraphDiff blob develop GraphDiff GraphDiff.Tests Models AttributeTestModels.cs for some examples of this . Comment : Thanks @andyp . I did find this and will move to it soon . In the meantime I created an IMergeable interface with a method of Mapping and returned the expression for that class in that method . In my repository I check whether the object is an IMergeable and call the mapping method to pass this to graphdiff .", "Question : The object graph I m working with is basically : .. . .. . A new skill can be added to the user by selecting combinations of existing Technology SkillCategory SkillCompetency . I ve been trying and failing to use GraphDiff to prevent EF from trying to add duplicate Technology SkillCategory SkillCompetency records . This seems like it should be simple to achieve using GraphDiff but being a relative newby to EF couple with only just finding GraphDiff I m struggling . Any ideas Comment : Also if GraphDiff is behaving unexpectedly please do not use the NuGet package but build from source as the package is currently quite outdated . I expect it to be updated soon though. . Comment : Thanks Andy I m just trying out your answer . GraphDiff appears to do exactly whaty we want so it would be great if we can actually use it : - Comment : The NuGet package for GraphDiff has been updated yesterday . .. . Answer : GraphDiff basically distinguishes two kinds of relations : owned and associated . Owned can be interpreted as being a part of meaning that anything that is owned will be inserted updated deleted with its owner . The other kind of relation handled by GraphDiff is associated which means that only relations to but not the associated entities themselves are changed by GraphDiff when updating a graph . Coming back to your scenario : you don t want duplicate Technology Category or Competency entities but Skills are just combinations of those so duplicate Skills are fine . To model this using GraphDiff you tell it to consider Skills as parts of a Resource owned by a Resource and Technology Category and Competency as associations of a Skill . This is mapped like so : Comment : Ok I ve tried your suggestion . I think you might have misunderstood my problem . The problem I m facing is when I add a new skill to a resource the associated objects for Technology SkillCategory SkillCompetency competency get added as new items . Since these are reference data as such I don t want them adding . I think what I m trying to do is have Technology SkillCategory SkillCompetency as AssociatedCollections of Skills which is in turn an AssociatedCollection of Resource but I can t seem to configure it . Comment : You re correct I misunderstood your question yesterday - I ve updated my answer hopefully I didn t misunderstand you again. . : Comment : Thanks Andy . The above code is where I actually got to myself following your initial reply . However it didn t work - I got a replication of developer My scenario was : 1 Create a developer add a skill and then update save the entities 2 With the same developer add a second skill then update and save This gave me a second developer record . My problem was after the first update save the developer id was not being updated with the db identity value . Comment : The code I was executing was : context.UpdateGraph developer .... . I assumed since developer was a reference-type it s id would be just updated . Once I changed the code to : developer context.UpdateGraph developer ... . It all worked lovely . Also I think the rebuild also helped . Thanks very much for your help .", "Question : I have a WebApi2 project with EF6 CodeFirst . I m also using AutoMapper to map between my models and dto s . I m not using OData . I m trying to find a solution to handle updates of entities . As I m not using OData I can t use Delta and I would not like to use JsonPatch . In my scenario : .. . .. . 1 . Client sends the data as dto to the server .. . 2 . Server loads the associated entity entity graph from the DB using EF .. . 3 . Server should patch the entity with values of the dto .. . 4 . Server saves the patched entity and EF should take care of change tracking .. . .. . My problem lies with 3 . Can I use GraphDiff for patching entities I will also be using GraphDiff was updating complex graphs . And if I can use GraphDiff will EF change tracking kick in automatically Comment : Did you find anything out I want to do the same thing . Graphdiff seems to ignore members that are collections and that are input with a null value instead of an empty collection . But if I put in a property value eg Name null it will replace the value with null . Comment : @mortb Check my answer . .. . Answer : In the above-mentioned scenario : .. . .. . 1 . As above .. . 2 . Server maps from dto to model and passes model to service repository .. . 3 . Graphdiff will load the model before updating and will take care of changed properties accordingly .. . 4 . Graphdiff will return the updated entity .. . .. . As for 3 : .. . .. . GraphDiff does not do a per-property patch . It updates the whole object by traversing it and build a diff and then it merges the changes . As the loaded graph is tracked by EF it is then EF s task to send the correct SQL statements . Comment : -1 : For me the answer is not clear . Do you want to say that in Step 3 GraphDiff will take care of changed properties like patch with Delta T If yes then I cannot confirm this for my current situation . Because when I tried to update the graph of an object all none provided properties were set to null if possible otherwise constraint checks take effect . Therefore I ve got the behavior of the update method but not patch method - what do you say Comment : @L4 I updated my answer . Comment : Sounds good ty : I reverted the -1", "Question : I m trying to insert a detached entity into database using GraphDiff . It goes something like : .. . .. . And my addObject function basically is : .. . .. . Problem comes when I try to get the Id of newly added Foo it remains empty 0 . Shouldn t EF update object to what it actually inserted in database Am i missing something .. . Answer : Well I found out right before posting the question that UpdateGraph had a return-type and that I did not use it. . If you don t use the returned entity the entities states will be well updated but the entity tracking will totally fail . Changing my AddObject to this solved the problem : Comment : you should accept your own answer so people know it s solved . Comment : @RaduPascal I will when the 2 days period for accepting a self answer will be over : Comment : Sorry wasn t aware of that ." ] }
[ "yes-answer-long", "yes-answer-short" ]
entity-framework
UNK_RELATION
kendo-grid@widget@41
kendo-grid -- the kendo-grid is a kendo @placeholder that displays tabular data and offers rich support interacting with data including paging sorting grouping and selection .
{ "confidence": [ 71.79350280761719, 70.17485809326172, 69.40322875976562, 67.87687683105469, 67.8131103515625, 67.1807632446289, 67.1807632446289, 67.0849838256836, 66.14216613769531, 66.10881805419922, 66.09632873535156, 65.42298126220703, 64.21578979492188, 63.93143081665039, 63.91698455810547, 63.43287658691406, 63.09047317504883, 62.95673751831055, 62.95673751831055, 62.87192916870117, 62.87192916870117, 62.87192916870117, 62.458011627197266, 62.458011627197266, 62.458011627197266, 62.458011627197266, 61.700435638427734, 61.700435638427734, 61.21236801147461, 61.140262603759766, 60.80997085571289, 60.80997085571289, 60.80997085571289, 60.80997085571289, 60.80997085571289, 60.80997085571289, 60.80997085571289, 60.80997085571289, 60.70703125, 60.69258499145508, 60.69258499145508, 60.49787521362305, 60.396053314208984, 60.396053314208984, 60.396053314208984, 60.396053314208984, 60.396053314208984, 60.23381805419922, 60.23381805419922, 60.23381805419922, 58.64507293701172, 58.64507293701172, 58.6306266784668, 58.51736068725586, 58.484012603759766, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 58.476036071777344, 57.92034912109375, 57.81393814086914, 57.53022766113281, 57.53022766113281, 56.909645080566406, 56.587947845458984, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.41407775878906, 56.32286834716797, 56.32286834716797, 56.30662155151367, 56.30662155151367, 56.30662155151367 ], "content": [ "Kendo grid No Data found message .. . .. .", "I have a kendo-grid inside kendo-grid using integrated grid .", "I have somme issues with filtering grouping the data in the kendo-grid .", "like in this example : kendo-grid with grouping http : demos.telerik.com kendo-ui grid index .. . .. . here we can group this with country .", "I m new in using Kendo Grid and Kendo UI .", "I use kendo-grid .", "I have a kendo-grid .", "I am exporting data from a Kendo Grid .", "I am trying to replicate a user s excel sheet data in kendo-grid .", "But if I use Index action Kendo Grid displays but without data .", "I am trying to get kendo tree in kendo-grid .", "i have a kendo-grid .", "Kendo Grid : .. . .. . These are the ways i tried :", "We use Kendo Grid for heads down data-entry in an accounting application .", "I am using a kendo hierarchichal grid similar to http : demos.telerik.com kendo-ui grid hierarchy .", "I use inline mode for Kendo grid in ASP.NET MVC5 The grid is : .. . .. . Also have kendo-dropdown independent from the grid .", "I have this kendo-grid .. . .. . Here is a picture of the grid", "I worked for literally months to figure out server-side grouping using the Kendo DataSource with a Kendo Grid .", "I want to create a kendo-listview with grouping functionality like we do in kendo-grid .", "I m using kendo-grid with knockout thanks to knockout-kendo package .", "As I tried kendo-tabstrip demo and kendo-grid demo .", "I am trying to bind kendo-dropdown in kendo-ui-grid .", "This is how I initialize kendo-grid :", "I have a kendo-grid like this. .", "How to achieve the same in Kendo Grid", "The kendo-grid definition is in a content.html file .", "How to reload or refresh a Kendo Grid using Javascript", "I have a kendo-grid in my application .", "Kendo-Treelist dose not support paging .", "Editable Kendo Grid http : i.stack.imgur.com DOiCx.png .. . .. . The grid displays data from a model and is working fine for its usual operations .", "I have a kendo-grid inside a kendo-window template .", "I have a kendo Grid with tooltip displaying the details in a kendo-tooltip .", "I want to implement drag-and-drop from kendo-grid to kendo-treeview .", "Why kendo load before Jquery in angular-routing template with Kendo grid .", "I have a Kendo Grid with a Kendo ListView for its client detail template .", "We are making use of Kendo UI Grid Kendo Menu in our application .", "I ve a kendo-menu to dynamically enable or disable the kendo-grid columns .", "i have trouble getting a kendo-datasource for a kendo-grid .", "I am trying to populate a kendo-grid with data through the LLBL adapter .", "demos.telerik.com kendo-ui grid editing-popup http : demos.telerik.com kendo-ui grid editing-popup", "I have a kendo-grid where i want to add a link and a button in same column of kendo-grid .", "Also row selection on kendo-grid is lost after insert is performed .", "Here is my kendo-grid design .. . .. .", "Can Kendo grid can do that", "I have a kendo-grid with datas .", "I have a kendo Grid as follows .", "Im using angularjs with kendo-grid .", "The Kendo Grid however expects Date objects not strings .", "I have a Kendo UI grid that is rendered with javaScript .", "Is that a way to query kendo-datasource without refresh the grid", "Could this be a bug in the way Kendo Grid sends data through Ajax binding", "I am having kendo-grid which loads initially with these data .", "Check out this demo demos.telerik.com kendo-ui grid detailtemplate http : demos.telerik.com kendo-ui grid detailtemplate", "I researched how to input html in a kendo-grid cell .", "I m trying to add a DropDown inside kendo-grid but it displays a TextBox", "I want to change the pagination style of Kendo Grid .", "i am using kendo-grid with angular js .", "I have a Kendo Grid displayed on a site .", "I have a Kendo web grid combined with knockout .", "http : demos.telerik.com kendo-ui grid filter-row", "I have a kendo-grid with a field called TicketStatusID .", "I have 2 level of hierarchy kendo-grid .", "The kendo-grid for roles have checkboxes and Rolenames .", "And i want to make it in Grid Kendo UI .", "Using following Kendo Grid methods for updation :", "I have a kendo-grid it has a date column .", "I have a kendo-grid with multiple-columns i.e .", "I have a kendo-grid in inline editing mode .", "i want to delete the selected row on kendo-grid .", "I want to use OutputCache for Kendo UI Grid .", "I am using kendo UI grid to display few values in grid .", "I am using kendo-ui-grid with server-side paging filtering and sorting .", "I am using Knockout.js integration with Kendo UI Grid http : rniemeyer.github.io knockout-kendo web Grid.html .", "I am using Kendo for the first time and am attempting to convert an HTML table to a Kendo grid .", "What is the appropriate way to filter a grid using the knockout-kendo kendoGrid http : kendo-labs.github.io knockout-kendo web Grid.html binding", "Although this returns filtered data but you can modify the code to ignore the kendo-grid filter and always return all data .", "Currently we re using kendo-ui for grid and all .", "I am using Kendo Grid for MVC .", "There is a bug in kendo-ui-grid rtl css in chrome .", "I have this column in kendo-ui Grid .. . .. .", "I am using a kendo-grid with multiple-columns .", "This contains a header div kendo-grid and footer div .", "But it should refer kendo-grid object. . how to resolve this", "The same Grid I used in Kendo Window .", "I am working on a kendo-grid with a detail template .. . .. .", "I make the kendo-grid selectable by row .", "I want to add checkbox in my kendo-grid .", "We are unable to select a row in the Kendo Grid .", "Except for the Kendo Grid everything else resizes automatically .", "I have a datepicker in my kendo-grid .", "I have Kendo grid with dropdowns datepicker editor .", "i have a kendo-grid with editing inline .", "In my website I use the Kendo-grid .", "But that didn t change the currency unit in my kendo-grid .", "It did change the currency unit outside the kendo grid.. .", "I want to Post the data from a Kendo Grid to the server and save it to a database .", "How can I Post Kendo Grid Data to the Server", "I m trying to write a group header template in Kendo Grid with title and button .", "I have a Kendo grid that I am using in a time entry application .", "I am trying to create a Kendo grid with a list of student details ." ] }
{ "confidence": [ 90.02326202392578, 89.41114807128906, 78.41047668457031, 78.22669219970703, 77.4446029663086, 77.2389144897461, 76.719970703125, 75.87959289550781, 75.41433715820312, 75.41433715820312, 75.34554290771484, 75.20394897460938, 74.90692138671875, 74.78718566894531, 74.3275146484375, 74.2746353149414, 73.40483093261719, 73.39515686035156, 73.384033203125, 73.16127014160156 ], "content": [ "Question : I am using Asp net 5 NHibernate 3.3 and Kendo UI MVC wrapper for grid to render the table of client orders . There are lots of orders in database already and the number is constantly growing . So I decided to use server-side paging to avoid fetching all orders from database . As far as I know you can t do paging manually and delegate filtering sorting and grouping to ToDataSourceResult method . It s either all or nothing . Therefore I made an attempt to implement so called custom binding http : docs.telerik.com kendo-ui getting-started using-kendo-with aspnet-mvc helpers grid custom-binding . No problem until I get to grouping . I need to group first then sort inside of a group then extract data for specific page and all that without loading all data to memory . My code is something like this I put it all in one piece to simplify reading : .. . .. . I will be glad to have any advice on how to add grouping here . .. . Answer : I would like to add onto @aaron-jessen answer with this jewel I found on Telerik s forums http : www.telerik.com forums datasourcerequest-filters-and-sorts-fields-null-here-is-the-solution : Comment : Using this type : aspnetmvc-ajax means Kendo UI Grid will ignore parameterMap : function .. . . Instead use the dataSource.transport.read.data : function e .. .", "Question : I followed that tutorial about exporting Kendo Grid Data : http : www.kendoui.com blogs teamblog posts 13-03-12 exporting the kendo-ui-grid data to excel.aspx .. . .. . Now I m trying to export all data not only the showed page .. . How can I do that I tried change the pagezise before get the data : .. . .. . But with that my actual grid refresh with new pageSize . Is that a way to query kendo-datasource without refresh the grid Thanks .. . Answer : Grid toolbar .. . .. . Endpoint export function .. . .. . a javascript function to generate grid remote export url with all specified parameters .. . .. . For detailed solution see my sample project on Github https : github.com tareknaj kendo-grid-export-excel .. . .. . where u can export grid server-side with current configuration sorting filtering paging using helper function Comment : @AlvaroAV done with including the essential parts here", "Question : I am having a Kendo UI grid showing more than 1000 data . I also have a dropdown list for different page-size - 15 25 50 100 . On selection of a page-size how can we change the page-size of Kendo UI grid .. . Answer : http : docs.kendoui.com api wrappers php Kendo UI GridPageable", "Question : I am using Asp net 5 NHibernate 3.3 and Kendo UI MVC wrapper for grid to render the table of client orders . There are lots of orders in database already and the number is constantly growing . So I decided to use server-side paging to avoid fetching all orders from database . As far as I know you can t do paging manually and delegate filtering sorting and grouping to ToDataSourceResult method . It s either all or nothing . Therefore I made an attempt to implement so called custom binding http : docs.telerik.com kendo-ui getting-started using-kendo-with aspnet-mvc helpers grid custom-binding . No problem until I get to grouping . I need to group first then sort inside of a group then extract data for specific page and all that without loading all data to memory . My code is something like this I put it all in one piece to simplify reading : .. . .. . I will be glad to have any advice on how to add grouping here . .. . Answer : I worked for literally months to figure out server-side grouping using the Kendo DataSource with a Kendo Grid . Paging sorting and filtering were fairly easy . But for whatever reason Telerik did not offer sufficient support documentation for such a critical LOB process as grouping . I m glad you posted this question so I d have an opportunity to share my code . The Solution .. . .. . Basically the solution comes down to knowing 2 key parts and they can be viewed in the following sample project : https : www.dropbox.com s ygtk8rwl1hwjvth KendoServerGrouping.zip dl 0 https : www.dropbox.com sh j1j5wazf678vvyv AABfveWU 7pJvrrJ4Jd2GW1Xa .. . .. . There is a single web application project in the Visual Studio 2012 2013 solution you re downloading which contains a reference to the Kendo.Mvc library . You can download the latest UI for ASP.NET binaries from Telerik s Control Panel installation program . The binaries will be located in the following Windows directory after install : C : Program Files x86 Telerik UI for ASP.NET MVC Telerik Release Version wrappers aspnetmvc Binaries Your Version of MVC Kendo.Mvc.dll . Note : My solution uses Telerik s MVC transport mechanism which provides full-fledged server-side paging filtering sorting and most notably grouping . However I use pure JavaScript to configure the Kendo DataSource and not the MVC wrappers . Still I ve recently found a link http : docs.telerik.com kendo-ui aspnet-mvc helpers grid webapi-editing in Telerik s documentation that shows the MVC wrapper declaration in Razor ASPX . The Server Magic .. . .. . Basically the first part of the magic is the following server-side code residing in the sample WebApi controller in the KendoServerGrouping.Web Controllers directory : .. . .. . This is all you ll need for any of the four server-side actions that the grid will handle auto-magically when the user interacts with it . Pay special attention to the AcceptVerbs attribute above the method it must include the ASPNETMVC-AJAX attribute for the DataSourceRequest input parameter to work properly . ToDataSourceResult is an extension provided by recent versions of the Kendo.Mvc.dll library which I pointed to earlier . The code above will to my knowledge work with any IQueryable data source such as those from ORMs I ve tested Entity Framework and Telerik Data Access Open Access . I ve also been able to group a MongoDB collection using the MongoDB C driver . However this is meant as a proof-of-concept and it has not been tested for performance . For the purposes of this example there is static data source in the WebAPI controller to fake an IQueryable collection . Naturally you can delete the static data from lines 45-57 when you ve swapped in your own data source . The Client Magic .. . .. . The Kendo DataSource automatically passes in a specialized DataSourceRequest object from the grid containing all the parameters for server-side paging filtering sorting and grouping provided you wrap your DataSource schema inside the following JavaScript : .. . .. . This was perhaps the single most elusive line of code I ve ever tracked down . It took about a dozen exchanges with Telerik over several months to get them to cough it up . And even then it was by pure chance that it was revealed . Why such a critical nuance was absent in their documentation is beyond me . Carefully review each of the Kendo DataSource configuration settings toward the bottom half of index.html file . Most importantly pay attention to what isn t there such as the batch and mvcTransport options . Including the latter option somehow negates the above aspnetmvc-ajax schema attribute . In the DataSource s parmaterMap function make note that when and only when - performing a read operation the following line must be present : .. . .. . You will also want to be sure to include this in your HTML before the DataSource executes : .. . .. . The End Result .. . .. . Run the KendoServerGrouping.Web project index.html and if all goes well a grid will be populated with 5 records containing AccountId AccountName AccountTypeCode and CreatedOn fields . If you set the number of visible grid rows to 2 and group-by AccountTypeCode or CreatedOn you ll see that the grouping traverses the paging which I believe is the end result you are looking for . I hope the sample project works and is a good fit for your situation . Please let me know if you have any questions and I ll do my best to help . P.S . This is my first post to SO so please go easy on me if something isn t up to SO standards . Good luck Comment : Thank you very much for such detailed answer The sample project you provided works just fine and it demonstrates the behaviour I need . It will be an excellent starting point . By the way I am very surprised to see that solution is so tricky . Telerik definitely have some space for improvement here . Comment : I m so glad it worked out I completely agree about the solution being tricky it shouldn t have to be this hard to perform server-side grouping . Good luck going forward Comment : Instead of using DataSourceRequest from Telerik you can also try to use KendoGridBinderEx https : github.com StefH KendoGridBinderEx Comment : @Stef thank you for advice . I actually came across this package a while ago though I didn t pay much attention to it since it is not very popular . I suppose I would give it a better look . Comment : @vsevolod there are two version from this package the original KendoGridBinder and my updated version KendoGridBinderEx .", "Question : I am using kendo-ui-grid with server-side paging filtering and sorting . With C WebAPI where all the grid parameters such as filters sorts and currentpage and page-size are sent in the url by kendo-grid API and I have DataSourceRequest in my WebAPI which can read all the query params and apply them while I return back the data from the API . I have a specific situation where . I have an export link in which I will need to use http service to invoke the same API which I have used with all the filters and sorts that are applied to the grid with all the records to be returned . I have all the properties of grid such as filters and sorts . which I can access from kendogrid s datasource .. . .. . I need to invoke the same API which I use to render kendogrid by applying all the filters and sorts . can any one help me how does kendo-grid generate the query-string with all these params . so may be I can re-use the same function .. . .. . http : localhost : 3306 api test 62ca5945e15b0cb85bec257eec8f0bf1 grid filter stepType eq 27Rejected 27 sort aggregate pageSize 10 page 2 isFirstLoad false showColumns name 2CtotalScore 2Crank 2CexpirationDate 2CstepName 2C 1450310137369 .. . .. . Can anyone help me where can I find a function to generate all the query parameters with the filters pagination and sorting values that I retrieved from grid . .. . Answer : I have implemented this previously using parameterMap using angular but I imagine it would be very similar when just using jQuery . See this url http : docs.telerik.com kendo-ui api javascript data datasource configuration-transport.parameterMap . A snippet of my code using parameterMap .. . .. . ParmeterMap is returning ProjectID PageNumber PageSize Sorting and Filtering . The api should expect to recieve that data and return data based on that . The initial call will call the same api where the pageNumber would be 1 pageSize would be the default pageSize sorting would be null and there would be no filtering . The call to the api is a post so there will not be any parameters in the url .", "Question : null .. . Answer : I want to create a kendo-listview with grouping functionality like we do in kendo-grid . like in this example : kendo-grid with grouping http : demos.telerik.com kendo-ui grid index .. . .. . here we can group this with country . I want same functionality in listview . I don t wanna do it at rum time . I want listview display grouped records on the basis of give column name .", "Question : I am having a Kendo UI grid showing more than 1000 data . I also have a dropdown list for different page-size - 15 25 50 100 . On selection of a page-size how can we change the page-size of Kendo UI grid .. . Answer : Its also built into the latest version of the grid by doing the following in js .. . .. . http : docs.kendoui.com api web pager", "Question : I m currently building an application using knockoutjs for the MVVM pattern and Kendo Web for the controls . I have somme issues with filtering grouping the data in the kendo-grid . I need to have highly customizable rows and so I choose to use row template according to this sample : .. . .. . http : rniemeyer.github.io knockout-kendo web Grid.html .. . .. . I also need to have a two-way binding with the grid cause I need to add remove update items . The grid : .. . .. . The row template : .. . .. . When I m using the grid it works fine expect when I use grouping filtering : it s like the grid is using the observable objet instead of the value to perform the operations . Example : When I m grouping on Note integer value : enter image description here http : i.stack.imgur.com FBZJX.png .. . .. . To prevent that I have replaced in columns definition field : Note by field : Note : the grouping works fine now since grid use the integer value instead of a function . But the filtering remain impossible : the column filter menu has changed from number filter to string filter when I have make the Note change . I suppose it s because the fields entry key Note does not match the columns entry key Note anymore I ve tried to replace Note by Note in fields definition : does not work . I ve replace Note observable by a non observable variable in my item model : all is working fine but i m not enable to edit those values anymore and I want to . Thanks for your help EDIT : here a jsfiddle reproducting the bug : http : jsfiddle.net camlaborde htq45 1 .. . .. . EDIT 2 here s the final solution thanks to sroes : http : jsfiddle.net camlaborde htq45 7 .. . .. . EDIT 3 final solution plus inline grid edition : http : jsfiddle.net camlaborde 8aR8T 4 Comment : What if you change data : LienActionIndicateurPourFicheCollection to data : ko.toJS LienActionIndicateurPourFicheCollection Comment : I just tried but as I expected i m losing the binding between the grid and the collection if i m doing that remove a row from collection does not update the grid . .. . Answer : I solved this issue by using Knockout ES5 . Then when assigning my data to my model I used knockout-mapping with a mapping object like this : .. . .. . This makes the filtering and sorting work out of the box for the knockout-kendo grid .", "Question : I am having a Kendo UI grid showing more than 1000 data . I also have a dropdown list for different page-size - 15 25 50 100 . On selection of a page-size how can we change the page-size of Kendo UI grid .. . Answer : You can set the page-size in the combobox change event . Also see JSBin example http : jsbin.com umejit edit source . Comment : Thanks Daniel your code did worked . :", "Question : I am having a Kendo UI grid showing more than 1000 data . I also have a dropdown list for different page-size - 15 25 50 100 . On selection of a page-size how can we change the page-size of Kendo UI grid .. . Answer : To expand on Rick Glos answer http : stackoverflow.com a 17582299 1677912 : .. . .. . You can set the Pageable PageSizes to an array of generic objects so you can have an All option without having to set pageSizes in JavaScript .", "Question : I am using Kendo Grid for MVC . Following is my controller and actions . Now Following is my Kendo Grid Code I am using in a view . If I use GetData action Kendo Grid is working fine with all data shown . But if I use Index action Kendo Grid displays but without data . While using Index action following json data is displayed without any page layout and HTML . What am I missing .. . Answer : needs to be changed to .. . .. . if you want to get it working with Index . If your datasource never calls Index action method then your grid will always be empty . Comment : Yes thats what i am asking If I use Index as you said I just get plain JSON data as shown in my question no grid no HTML . And thats my question .", "Question : null .. . Answer : I am using a kendo hierarchichal grid similar to http : demos.telerik.com kendo-ui grid hierarchy . I am also using a detailTemplate http : docs.telerik.com kendo-ui api javascript ui grid configuration-detailTemplate to specify my HTML to be used for child grid . How can I add edit an existing parent + child record For example if we imagine this http : demos.telerik.com kendo-ui grid editing-popup as some sort of hierarchical grid on click of Add Edit button I need the popup to show the parent record which is currently shown along with all the child records associated with it . Basically I need to perform Add Edit functionality on http : demos.telerik.com kendo-ui grid hierarchy . Does kendo support this out of the box Is there a way to achieve this Edit mode must be popup . Thanks", "Question : null .. . Answer : I m new to MVC and trying to produce a view with a Kendo Grid that will bind to a model . My View has .. . .. . My model are .. . .. . and .. . .. . Unfortunately I don t seem to be able to bind to my model I get an error in VS wavy line under Model.GridDetailPersons which states Class GridBuilder Of Person cannot be indexed because it has no default Property . .. . .. . If I change the line to Html.Kendo .Grid Of Model.GridDetailPersons the error changes to Type Model.GridDetailPersons is not defined . .. . .. . What am I doing wrong.. . there is so little out there especially if using razor vb syntax . My grid will be used for display only.. . no edit add or delete will be required . Comment : not familiar with kendo extensions and VB but have you tried using a List Of Person instead of IQueryable Maybe it doesn t like IQueryables Comment : also. . when you tell the Grid what the type of object is you have to specify the actual type. . not the property name. . so it would look like Html.Kendo .Grid Of Person unless you have the namespace imported somewhere you also have to fully qualify the names Comment : Yeah I think the IQueryable with the Paging is an issue . When I use paging I m running my Iqueryable through ToDataSourceResult . Not sure if kendo can work with an Iqueryable to determine page info If you can make a controller action that works with DataSourceResult as explained here : blog.falafel.com http : blog.falafel.com server-paging-sorting-filtering-kendo-datasourcerequest Comment : as far as i know kendo mvc uses System.Web.Script.Serialization.JavaScriptSerializer for serializing model to json Comment : Gentlemen many thanks for your comments . I ve managed to sort out this issue . The new code can be found in my next question : stackoverflow.com questions 34062506 http : stackoverflow.com questions 34062506 adding-view-or-button-link-to-kendo-grid", "Question : I m using kendo-grid in inline GridEditMode and GridInsertRowPosition set to bottom . Ajax is used for the data-binding . Sorting is enabled and sorted by DateTime field . Page size is set to 10 . To problem occur when there are multiple pages more that 10 records . I have a javascript function that jumps to the last page and show new row at the bottom . But on some point sort event is triggered and grid moves to read only mode . Is there a possibility to prevent Grid sorting only for the case-when new row is added Any help is welcome . Thank you .. . Answer : Check out new kendo setting : createAt http : docs.telerik.com kendo-ui api web grid configuration-editable-createAt .. . .. . just set it to the bottom : Comment : This is the right answer . And if using Razor syntax : .Editable editable editable.CreateAt GridInsertRowPosition.Bottom Comment : Works out of the box for me too", "Question : I m using Kendo UI grid in my project to build a orders list it has a data-source that loads all the orders immediately with an ajax request and it works on them filtering ordering paging locally with no additional requests . This is the code i ve used to set it up : .. . .. . This works very good except when i try to filter the customer column since that filter is an autocomplete it performs exactly the same request executed to load the grid to show all the options so the question is : is it possible to avoid that request by sharing data between the grid and its filters .. . Answer : You can provide dataSource http : docs.telerik.com kendo-ui api javascript ui grid configuration-columns.filterable.cell.dataSource to Customer column filter : Comment : I don t have a fixed array of customers they are taken from the grid data-source Comment : @mck89 you can update them in grid dataBound event or set transport.read which will make ajax call to get data for autocomplete Comment : Ok i understand what you are saying but really there isn t a way to make that process automatic i mean i ve read something about shared data-sources and this is exactly that case since data is the same for grid and filters Comment : @mck89 since your grid is using paging its dataSource may have only data corresponding to current page Comment : Data-source contains the complete list of orders that s why i haven t used serverPaging because i want client-side pagination filtering sorting on server provided data but i start to think that this behaviour is not handled correctly by Kendo", "Question : Is it possible to specify a default sort when using the knockout-kendo binding to bind the Telerik Kendo grid I am binding the grid like this : .. . .. . However I have not found a way to specify the default sort . Standard Kendo has a sort : field : Col1 dir : asc element that can be specified on the data source but it s unclear how this can be applied to the kendoGrid binding .. . .. . Default Kendo sort element : http : docs.telerik.com kendo-ui api framework datasource sort-array--objectdefault .. . Answer : The comments from the following answer gave me a clue : .. . .. . What is the difference between the data and dataSource in knockout-kendo grid widget http : stackoverflow.com questions 22688217 what-is-the-difference-between-the-data-and-datasource-in-knockout-kendo-grid-wi .. . .. . It seems like you can use data and dataSource in tandem if you want to specify this behavior :", "Question : I m trying to add a DropDown inside kendo-grid but it displays a TextBox Comment : The question is not clear can you explain it a little bit more in words . Comment : @NitinRawat hi What I need is to add a DropDownList inside the grid . I think it s not possible to use ForeignKey column because the DataSet for the DropDown is completely independent and no relationship with the Grid data source Comment : @chamara please that the required scripts files are present and are in correct order . .. . Answer : You might look into Kendo Grid ForeignKey Column concept . It can be used as .. . .. . Detail can be found here http : demos.telerik.com kendo-ui web grid foreignkeycolumn.html", "Question : Using Kendo UI in MVC4 I have a Grid that makes Ajax calls for data back into the Controller : .. . .. . How do I use this call to inform the page that there was an error .. . Answer : Try to raise the exception and check whether it is prompting an alert message or not . For Kendo grid there is error event which might be helpful for you . http : docs.kendoui.com documentation getting-started using-kendo-with aspnet-mvc migration widgets grid .. . .. . We used telerik-mvc grids which automatically displays alert messages if there is any error while binding . http : www.telerik.com community forums aspnet-mvc grid exception-handling.aspx .. . .. . http : www.telerik.com community forums aspnet-mvc grid how-to-do-error-handling-in-gridaction-methods.aspx Comment : Unfortunatly the Kendo Grid does not handle exceptions in the Controller when accessing data via Ajax it seems . I am wondering if there is a message that we can send back though that it might pick up on Comment : If you are manually binding the grid using JQuery ajax requests try sending the error message from onexception method of the controller . Comment : The last two links are premium-access only .", "Question : I am trying to put the first column of the Kendo grid as the serial index which is not affected by sorting of the row records . Is there any way I can achieve this Thank You .. . Answer : You can implement this using a template column . Here is a live demo showing how to do that : http : jsbin.com olutin 10 edit Comment : thanks it works perfect . Comment : I d like to achive this with a grid with pagination . This answer only works when the grid has one page . Comment : Updated the demo to handle paging .", "Question : I am trying to replicate a user s excel sheet data in kendo-grid . In some columns shapes are inserted .. . .. . enter image description here http : i.stack.imgur.com GnaLu.png .. . .. . How can I insert draw a shape in a kendo-grid cell I am new to this and at the moment only know how to specify a data source and then push it . Any ideas and suggestions .. . Answer : I researched how to input html in a kendo-grid cell . That led me to the property encoded . I set it to false for the columns in which I wanted to generate my custom html i.e . a circle .. . .. . Then when I pushed the data I pushed the complete desired html . And this is the result I got : .. . .. . enter image description here http : i.stack.imgur.com huQmN.png .. . .. . Which is pretty much what I wanted . I hope this helps someone" ] }
[ "yes-answer-long", "yes-answer-short" ]
widget
UNK_RELATION
deap@prototyping@65
deap -- deap is an evolutionary computation framework for rapid @placeholder and testing of ideas .
{ "confidence": [ 54.687767028808594, 51.89781188964844, 47.222747802734375, 46.94159698486328, 46.83032989501953, 46.60532760620117, 44.30284881591797, 43.87762451171875, 43.820892333984375, 42.677391052246094, 42.62621307373047, 41.24169158935547, 41.24169158935547, 39.80317687988281, 39.61677551269531, 39.61677551269531, 38.948246002197266, 38.948246002197266, 38.948246002197266, 38.948246002197266, 38.948246002197266, 38.948246002197266, 38.948246002197266, 38.17826461791992, 37.90991973876953, 37.748008728027344, 37.748008728027344, 37.748008728027344, 37.748008728027344, 36.91880798339844, 36.471405029296875, 36.471405029296875, 36.30949783325195, 36.30949783325195, 36.30949783325195, 36.30949783325195, 35.8759765625, 34.242279052734375, 34.242279052734375, 33.04204559326172, 33.04204559326172, 33.04204559326172, 31.603530883789062, 31.603530883789062, 31.36212921142578, 30.474699020385742, 30.161893844604492, 30.161893844604492, 30.161893844604492, 29.945457458496094, 28.72338104248047, 28.72338104248047, 28.136253356933594, 28.136253356933594, 28.136253356933594, 28.136253356933594, 19.811843872070312, 18.846702575683594, 16.394182205200195, 16.394182205200195, 16.394182205200195, 16.394182205200195, 16.394182205200195, 16.394182205200195, 16.394182205200195, 16.394182205200195, 16.394182205200195, 16.394182205200195, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416, 13.68953800201416 ], "content": [ "I m writing my first evolutionary-algorithm with DEAP .", "I ve also looked at this one in deap https : github.com DEAP deap blob master deap tools hypervolume pyhv.py but it seems the have the same issue .", "You install deal and import deap .. . Maybe if you tried to install deap", "I am working with DEAP .", "I m trying to use DEAP in python .", "Is there any way to implement fitness sharing niching using DEAP https : github.com DEAP deap", "There s no DEAP tag unfortunately .", "If you don t need necessarily stable release you can install from home repository https : github.com DEAP deap", "So I m trying to use the DEAP .", "I am using DEAP https : pypi.python.org pypi deap toolbox in Python for Genetic Algorithm .", "https : github.com DEAP deap blob a2765c3344cb834f47eaab22efbb961e18f4aed7 examples ga knapsack.py I would like to hear about how to view the contents of this population .", "the varOr is part of one of the standard DEAP algorithms : eaMuPlusLambda .", "Are you using strongly typed gp in deap", "DEAP is an awesome Python package to supporting evolution algorithm .", "Assuming deap is not installed type : .. . .. . If you get the response .. . .. . Then you have just installed deap and you are ready to import it into your projects .", "If you get the response Requirement already satisfied use --upgrade to upgrade : deap in . Path To site-packages deap is already installed and you are ready to import it .", "I am using Python and the DEAP Genetic programming libraries .", "Is this supported by DEAP itself or do I need to create these subsets on my own", "I just started with my first GA algorithm using DEAP .", "Pypi says there is a new version on their website https : pypi.python.org pypi deap 1.0.2 .", "I m trying to construct a typed genetic-programming solution with DEAP http : deap.readthedocs.org .", "But there is perhaps something I m not understanding correctly about how deap works .", "I guess that my question is more related to multiprocessing than to DEAP .", "Different posts suggest to use DEAP https : code.google.com p deap I am using python but I do not even understand how to start .", "The Deap framework would need to be redesigned under the hood to use threads if you needed it to share memory .", "I looked into the DEAP library but was not able to develop a cohesive attempt .", "I was able to work this out with help from the DEAP developers .", "How should I instal deap package for python from spyder", "I have tried : pip instal deal import deap deap.download", "The default routines are at deap tools selection.py https : github.com DEAP deap blob master deap tools selection.py and might be useful as a guide to get started .. . .. . For example : .. . .. . Then use it with the rest of deap as they prescribe : .. . .. . I ve got one that does something more like a probablistic selection based on relative fitness which I don t have the rights to it s only about 10-15 lines of python so it can be done and isn t crazy difficult .", "For the project I was working on I set 3 different objectives as optimization target in DEAP which is an evolution framework based on Python .", "Introduction .. . .. . As an DEAP user I felt easy to write code under the rule of its framework .", "I am using DEAP in Python and am using genetic-algorithm there .", "Here is the code which I directly copied in DEAP website .", "If you know of any other methods that are in DEAP that would be useful as well .", "The dummy script is created using a example from the deap library .", "You could always try posting on their Google Group http : groups.google.com forum forum deap-users though it can take a couple of days for a reply .", "I found some insight to the issue in the comments here https : gist.github.com macrintr 9876942 a modified version of generate function of DEAP .", "Depending on your application of course in my experience with DEAP and cProfile the top two consumers of CPU time was evaluating individuals and copying .", "A simple example of one of the primitives could be note that this is pseudocode-ish : .. . .. . and an example terminal could be : .. . .. . Is this possible with DEAP", "I had an earlier implementation with strongly typed GP in DEAP but that didn t seem to help with this situation .", "The example problem is obviously trivial and useless it s meant to be a straightforward example of DEAP working on DataFrames .", "We can consider for example f on the interval i .. . .. . How can I minimize this function using DEAP", "Actually there is an example for that : http : deap.rtfd.org en master examples pso basic.html .. . .. . Note that I m a DEAP developer .", "i m doing some test in deap python and i took some benchmarks problems to see how it works but i have a problem with Korns-12 .", "This question already has an answer here : .. . .. . Python multiprocessing shared-memory questions 14124588 python-multiprocessing-shared-memory 2 answers .. . .. . I am implementing a genetic-algorithm using Deap framework .", "python version : 2.7 .. . .. . EDITED : After a suggestion on how solving the problem I ve added to the DEAP mutation library a couple of print to better understand what is happening .", "For those who find themselves in my position below is some working code for a DEAP GP algorithm that optimizes the values in two columns of a DataFrame to 0 .", "I m using strongly typed genetic-programming using the excellent DEAP module but I realise that 1 0 is the same as True and False .", "I m using this bit of code from a deap symbolic regression example problem and the graph displays fine but I want the nodes to expand as rounded rectangles to fit the text automatically .", "What s more I found out my AddOrRemove function which follows by the example from DEAP official website don t fit my target prefectly .", "I am quite the beginner in Python so even reading through library documentations for PyGMO DEAP or even SciPy seems too complex for me .", "Out of the box DEAP provides three tools repeat iterate and cycle for population generation which can be found here in their docs https : deap.readthedocs.org en master api tools.html initialization .", "Figured it was rambling enough already whilst I ve focused on a specific error message I expect it is moreso my general un appreciation of the workings of GP DEAP that is at fault .", "I am using Python s DEAP pacakge and I want to multi-core my code and I used the tutorial at http : deap.gel.ulaval.ca doc dev tutorials distribution.html to successfully do it using multiprocessing .", "I m new to DEAP and i want to represent my chromosome as a set of features which will be tested by SVM classifier my problem now is how to represent my 35 features in the chromosome", "Even if mutFlipBit function could discriminate between a Primitive http : deap.gel.ulaval.ca doc default api gp.html deap.gp.Primitive and a Terminal http : deap.gel.ulaval.ca doc default api gp.html deap.gp.Terminal and would only try to negate Terminal s deap will use symbolic terminals because the primary target of a PrimitiveTree is not to find a single expressions equivalent to a value i.e .", "In general if anybody can help I wanted to understand how multicoring changes the flow of computation .", "I m running a genetic-algorithm program and can find the best individual at the end of the run hof 0 but i want to know which generation produced it .", "Is there any attributes of hof 0 that will help print the individual and the generation that created it .", "I tried looking at the manuals and Google for answers but could not find it anywhere .", "I also couldn t find a list of the attributes of individuals that I could print .", "Can someone point to the right link and documentation to that .", "Thanks", "There is no built-in way to do this yet to the best of my knowledge and implementing this so would probably be quite a large task .", "The simplest of which simplest in thought not in implementation would be to change the individual to be a tuple where tup 0 is the individual and tup 1 is the generation it was produced in or something similar .", "If you re looking for a hacky way you could maybe try writing the children of each generation to a text file and cross-checking your final solution with the text file but other than that I m not sure .", "Good luck", "I don t want to just specify the node size through trial and error .", "How would I do that", "There isn t a simple way to do that with matplotlib and networkx of course it is possible with enough code .", "Graphviz does a really excellent job with labels and it is easy to write dot format files from networkx to process with Graphviz .", "Also take a look at https : github.com chebee7i nxpd which might do exactly what you need .", "I have GraphViz and pygraphviz installed and working .", "Do you know of or can you provide any specific example code for doing this specific type of binary-tree with pygraphviz", "I found the answer here there s a pygraphviz example in there : deap.gel.ulaval.ca doc dev tutorials advanced gp.html http : deap.gel.ulaval.ca doc dev tutorials advanced gp.html", "Sounds like a separate question .", "But yes use the dot layout with graphviz .", "The argument node size accepts both scalar and vector values .", "While scalar makes all nodes of equal sizes vector helps you to specify individual values in a list to be used for each node .", "If your node ids are strings then the following strategy works quite well .", "Just change the size argument to a list in networkx.draw networkx nodes based on the length of each node id .", "Choose the base size appropriately .", "networkx.draw networkx nodes graph pos node size len v the base size for v in graph.nodes node color w .. . .. . You can adapt this to the case where you can handles labels too .", "However I am not sure if one-to-one correspondence will be preserved while it chooses the node sizes from the list based on label sizes .", "Do share your results .", "I have personally used it for string node ids and it works well .", "I was implemented Example of knapsack-problem as a trial .", "What can not be seen or have been calculated from the individual population is", "For example MAX and has been calculated as 49 .", "865.83549407 but I think of it is calculated by the combination of any such individuals .", "population : toolbox.select population + offspring mu If you selected mu number of individuals from the current population + descendants in this part we have record stats.compile population immediately after that .", "Since the max of a certain generation have been calculated here here considered as individual list can be obtained if the print population I changed the code as follows .", "However the results for the MAX 48 .", "823.83477683 MAX Individual 1 2 3 5 6 7 8 10 12 14 16 17 18 and did not work .", "Please tell me the solution", "Based on a HyperVolume function found here https : ls11-www.cs.uni-dortmund.de rudolph hypervolume start direct download link https : ls11-www.cs.uni-dortmund.de media rudolph hypervolume hv python.zip I am trying to return hypervolume metrics for my algorithm .", "However not even the test code works : .. . .. . I m getting errors which seem to be related to the fact that I m using Python 3 and the function itself is using Python 2 .", "Is there a way around that", "Is there a similar function implemented in Python 3" ] }
{ "confidence": [ 53.87843322753906, 51.120819091796875, 51.11724090576172, 49.997947692871094, 49.36591339111328, 48.403831481933594, 48.02158737182617, 46.193782806396484, 45.28046417236328, 44.98686981201172, 44.87090301513672, 43.45266342163086, 43.15965270996094, 43.0296630859375, 42.81114196777344, 42.75259017944336, 40.988426208496094, 40.94346237182617, 40.88611602783203, 39.736549377441406 ], "content": [ "Question : How should I instal deap package for python from spyder I have tried : pip instal deal import deap deap.download Comment : You tried these steps and.. . Comment : What exactly go wrong when you try the steps you mentioned Comment : You install deal and import deap .. . Maybe if you tried to install deap .. . Answer : Assuming deap is not installed type : .. . .. . If you get the response .. . .. . Then you have just installed deap and you are ready to import it into your projects . If you get the response Requirement already satisfied use --upgrade to upgrade : deap in . Path To site-packages deap is already installed and you are ready to import it .", "Question : I need to minimize a function using genetic-algorithm and PSO . Different posts suggest to use DEAP https : code.google.com p deap I am using python but I do not even understand how to start . We can consider for example f on the interval i .. . .. . How can I minimize this function using DEAP Comment : There s no DEAP tag unfortunately . .. . Answer : Actually there is an example for that : http : deap.rtfd.org en master examples pso basic.html .. . .. . Note that I m a DEAP developer .", "Question : Is there any way to implement fitness sharing niching using DEAP https : github.com DEAP deap Specifically I m looking for an implementation of the method defined here http : citeseerx.ist.psu.edu viewdoc download doi 10.1.1.30.8270 rep rep1 type pdf Goldberg s fitness sharing on page 98 of the pdf . If you know of any other methods that are in DEAP that would be useful as well . Thanks Comment : Note that this was cross-posted http : stats.stackexchange.com q 146821 9964 on the stats site . .. . Answer : Write your own selection routine . The default routines are at deap tools selection.py https : github.com DEAP deap blob master deap tools selection.py and might be useful as a guide to get started .. . .. . For example : .. . .. . Then use it with the rest of deap as they prescribe : .. . .. . I ve got one that does something more like a probablistic selection based on relative fitness which I don t have the rights to it s only about 10-15 lines of python so it can be done and isn t crazy difficult . I m not aware of any implementations of that specific selection routine that are publically available yet .", "Question : I need to minimize a function using genetic-algorithm and PSO . Different posts suggest to use DEAP https : code.google.com p deap I am using python but I do not even understand how to start . We can consider for example f on the interval i .. . .. . How can I minimize this function using DEAP Comment : There s no DEAP tag unfortunately . .. . Answer : I have solved . This is my code", "Question : I m using DEAP s implementation of genetic-programming http : deap.readthedocs.org en latest tutorials advanced gp.html for one of my research projects . I would like to create a GP that works on pandas DataFrames : Each primitive will be a custom function that takes a DataFrame as input and returns a DataFrame as output . Similarly the terminals can be a DataFrame of all 1 s or all 0 s . A simple example of one of the primitives could be note that this is pseudocode-ish : .. . .. . and an example terminal could be : .. . .. . Is this possible with DEAP What would the code look like I keep getting e.g . NoneType errors from the terminals . .. . Answer : I was able to work this out with help from the DEAP developers . For those who find themselves in my position below is some working code for a DEAP GP algorithm that optimizes the values in two columns of a DataFrame to 0 . The example problem is obviously trivial and useless it s meant to be a straightforward example of DEAP working on DataFrames .", "Question : Pypi says there is a new version on their website https : pypi.python.org pypi deap 1.0.2 . pip search tells me I have an old version and there is a new one . But pip install -U with all the overrides says there is no new version . What silly detail am I overlooking Comment : possible duplicate of Why is pip installing an old version of my package http : stackoverflow.com questions 14617136 why-is-pip-installing-an-old-version-of-my-package Comment : Bit sad when I have to vote to close my own question . The related suggestions are so much more useful than trying to hit exactly the right keywords via the search . .. . Answer : I have the same behavior . If you don t need necessarily stable release you can install from home repository https : github.com DEAP deap", "Question : null .. . Answer : I m trying to use DEAP in python . I was implemented Example of knapsack-problem as a trial . https : github.com DEAP deap blob a2765c3344cb834f47eaab22efbb961e18f4aed7 examples ga knapsack.py I would like to hear about how to view the contents of this population . What can not be seen or have been calculated from the individual population is For example MAX and has been calculated as 49 . 865.83549407 but I think of it is calculated by the combination of any such individuals . population : toolbox.select population + offspring mu If you selected mu number of individuals from the current population + descendants in this part we have record stats.compile population immediately after that . Since the max of a certain generation have been calculated here here considered as individual list can be obtained if the print population I changed the code as follows . However the results for the MAX 48 . 823.83477683 MAX Individual 1 2 3 5 6 7 8 10 12 14 16 17 18 and did not work . Please tell me the solution", "Question : I am using Python and the DEAP Genetic programming libraries . I have a population set but I need to create three mutually exclusive and collectively exhaustive subsets of my population . Is this supported by DEAP itself or do I need to create these subsets on my own .. . Answer : Out of the box DEAP provides three tools repeat iterate and cycle for population generation which can be found here in their docs https : deap.readthedocs.org en master api tools.html initialization . These tools allow the user to provide a function to create a single individual which can be called in a certain manner to eventually produce a population of size n . To the best of my knowledge none of these carry out population generation in the way you describe so you might want to write it yourself . If you do I d encourage you to maybe fork the repository and add it to the source that way maybe creating a pull request once you have finished to contribute to the library .", "Question : Based on a HyperVolume function found here https : ls11-www.cs.uni-dortmund.de rudolph hypervolume start direct download link https : ls11-www.cs.uni-dortmund.de media rudolph hypervolume hv python.zip I am trying to return hypervolume metrics for my algorithm . However not even the test code works : .. . .. . I m getting errors which seem to be related to the fact that I m using Python 3 and the function itself is using Python 2 . Is there a way around that Is there a similar function implemented in Python 3 I ve also looked at this one in deap https : github.com DEAP deap blob master deap tools hypervolume pyhv.py but it seems the have the same issue . LE : I ve been asked for specific errors so I ll keep a log of them as they re being solved .. . .. . 1 . name xrange is not defined - fixed by replacing with range .. . 2 . TypeError : unorderable types : Node Node https : gyazo.com 4201992829b71904bf6467a73129d7b4 Comment : I m getting errors Please edit http : stackoverflow.com posts 38057598 edit your question and include them . Comment : I can do but it ll just be error after error and I ll only be able to post them 1 at a time as they re being solved.. . .. . Answer : Use 2to3 to convert hv.py to hv3.py : .. . .. . Then change your import line to .. . .. . If you want 2to3 to change the modify the original file you need to pass the -w option as shown in the documentation https : docs.python.org 2 library 2to3.html using-2to3 Comment : I tried applying 2to3 in-place hopefully I did it right gyazo.com bf0816763e9d62a9bccef088bb3a3b69 https : gyazo.com bf0816763e9d62a9bccef088bb3a3b69 However I m still getting the same errors when I run my main function . Comment : @SilviuTofan : If you do not pass the -w switch to 2to3 it will not modify the file . See the documentation https : docs.python.org 2 library 2to3.html using-2to3 : Writing the changes back is enabled with the -w flag . Comment : Oh sorry about that . I did it passing -w and still same result . However when I modified range back into xrange manually it did modify that . But the function itself is still working . Could there be something wrong with the function itself That s highly unlikely though as the reference seems to be credible enough . Comment : I get no errors when using hv3 with python3 . It sounds like you are still having problems with 2to3 . Comment : I just tried it again with the original example and it does indeed work now . It s just not working for my existing algorithm so I ll guess I ll go and figure that one out . Well try at least . Thanks a bunch for your help", "Question : I m using DEAP s implementation of genetic-programming http : deap.readthedocs.org en latest tutorials advanced gp.html for one of my research projects . I would like to create a GP that works on pandas DataFrames : Each primitive will be a custom function that takes a DataFrame as input and returns a DataFrame as output . Similarly the terminals can be a DataFrame of all 1 s or all 0 s . A simple example of one of the primitives could be note that this is pseudocode-ish : .. . .. . and an example terminal could be : .. . .. . Is this possible with DEAP What would the code look like I keep getting e.g . NoneType errors from the terminals . .. . Answer : Are you using strongly typed gp in deap Defining the type of the primatives .. . .. . There is a nice code sample here .. . .. . http : deap.readthedocs.org en latest tutorials advanced gp.html strongly-typed-gp Comment : I had an earlier implementation with strongly typed GP in DEAP but that didn t seem to help with this situation . Comment : Just looking at your primitive example should it not be pset.addPrimitive add 5 1 Comment : Yeah it s really just pseudocode-ish up there . I suppose I m looking for a working example with pandas DataFrames -- it doesn t have to follow my example .", "Question : I m writing my first evolutionary-algorithm with DEAP . Everything is working but the MultiFlipBit mutation operator . When I attempt to mutate a Tree Individual I get the following error : .. . .. . Here is the code : .. . .. . Thanks in advance for the help . python version : 2.7 .. . .. . EDITED : After a suggestion on how solving the problem I ve added to the DEAP mutation library a couple of print to better understand what is happening . Here is the same error as per original question but with some extra information : .. . .. . Thanks again for any contributes .. . Answer : The error is complaining that you are trying to use a deap.tools.mutFlipBit function as a mutator on a indivual that is instance of deap.gp.PrimitiveTree . From the docs of mutFlipBit http : deap.readthedocs.org en master api tools.html deap.tools.mutFlipBit : .. . .. . The individual is expected to be a sequence and the values of the attributes shall stay valid after the not-operator is called on them . So if the code decided to mutate the element i of individual it is trying to evaluate deap.dp.Primitive not ind i . And the error complains that the constructor of Primitive takes 4 arguments self name args ret instead of the passed self not ind 1 . The cause of the error is twofold .. . .. . 1 . A mutBitFlip mutator is being a applied to an individual that consists of a list of both symbolic values and operators instead of a list of booleans as expected . So the code could try to negate an operator e.g . fliping an and which is not defined . However the code will produce False because an object is evaluated to True in a boolean context and will end up trying to create a new Primitive from a single argument which is a boolean value . 2 . Even if mutFlipBit function could discriminate between a Primitive http : deap.gel.ulaval.ca doc default api gp.html deap.gp.Primitive and a Terminal http : deap.gel.ulaval.ca doc default api gp.html deap.gp.Terminal and would only try to negate Terminal s deap will use symbolic terminals because the primary target of a PrimitiveTree is not to find a single expressions equivalent to a value i.e . constant but rather a expressions with arguments equivalent to a function . You should revisit what are you trying to evolve an expression that maps to a boolean equation or a set of arguments to a boolean function . And based on that redesign your code . INITIAL ANSWER : .. . .. . Your code is not complete since the line offspring varOr population toolbox lambda cxpb mutpb is not shown . However the problem is caused by the type of one of your invidivuals in your population variable . The code is assuming that your individuals are a list of booleans so the code individual i type individual i not individual i would work : .. . .. . The error says that type individual i got the init of a class which expects 3 arguments e.g . self + other 3 arguments . Comment : Hi memoselyk thanks for the answer . the varOr is part of one of the standard DEAP algorithms : eaMuPlusLambda . Comment : I was not able to sort out the problem but I m not sure I ve understood your suggestion . I ve edited my question to include further results and provide some hints on the problem . Please have a look at it . Many thanks again and apologies if I haven t understood your suggestion correctly . Comment : @InterceptK Thanks the source of the varOr was missing in the first traceback but things are now more clear.. . Comment : thanks for the new answer . I ve used gp.mutUniform and now is running . I ll check the results and if there something weird I ll let you know thanks again for the help .", "Question : I m trying to construct a typed genetic-programming solution with DEAP http : deap.readthedocs.org . I start the program with a photo of a black white triangle and the 3 vertices of a different triangle . The hope is for the program to come up with a program which moves the vertices of the given triangle closer to the one in the photo . I provide it random constants arithmetic primitives add subtract etc . if-then-else . and tests for is black and is white at given coordinates . I ve set up all my primitives but I keep running into this error which seems to be telling me to add more primitives which either provide or consume not sure which the photo . I find the error difficult because : .. . .. . I have primitives which use the photo as input . I do not have primitives which produce the photo as output . I don t want to morph the photo just consume it . I m thinking the winning program will be a long sequence of commands like if 10 10 is black add 3 2 to vertex 1 repeated somewhat nauseatingly . But there is perhaps something I m not understanding correctly about how deap works . How do I overcome error messages like this This error typically fires from gp.gengrow when it is trying to generate the starting population . What may may not be related is that I don t have much in the way of Terminals : I m not clear how they apply to my problem . I expect to hear crickets but if anyone actually takes an interest in this question and wants to see code or at least the primitive set I can tack it on or stick it somewhere . Figured it was rambling enough already whilst I ve focused on a specific error message I expect it is moreso my general un appreciation of the workings of GP DEAP that is at fault . .. . Answer : First I discovered that if I added a bunch of integer terminals the error disappeared . In one example I just added a bunch of integers . I found some insight to the issue in the comments here https : gist.github.com macrintr 9876942 a modified version of generate function of DEAP . It s all about the number of layers or depth of the tree : genGrow is asking for something which returns the required type plus of the right depth . Sometimes it needs an int result in one layer a terminal and sometimes it needs an int result that consumes two layers a function . Hence the NONE AVAILABLE message : it has none available that match both the type and the depth it needs to plug into the tree . I ve haven t used it yet but my understanding is that the gist above implements a generate function which is more flexible it is willing to be less rigid about ensuring the tree is exactly balanced and will plug in whatever it has that fits the required type even if it does not match the demanded depth exactly .", "Question : null .. . Answer : I m new to DEAP and i want to represent my chromosome as a set of features which will be tested by SVM classifier my problem now is how to represent my 35 features in the chromosome Comment : In what language Comment : @Gabriel IIharco In python", "Question : I am using Python s DEAP pacakge and I want to multi-core my code and I used the tutorial at http : deap.gel.ulaval.ca doc dev tutorials distribution.html to successfully do it using multiprocessing . My question is the following : using 8 cores how much speedup to I get in theory The reason I ask is because I want to decide how many individuals and generations I can run in the same amount of time as the single-cored version . My code used to take 200s to run and with 8 cores it now takes 0.5 seconds this is a 400X speedup . Can I assume that anything will be sped up by 400X I know it s complex but your help will be very appreciated . In general if anybody can help I wanted to understand how multicoring changes the flow of computation . Does it just map the evaluation of each individual over different cores for each generation Or does it run generations in parallel If you know of any documentation I could read about this please let me know . I did not provide a code example as it seems not necessary because this is a very high-level question . .. . Answer : Does it just map the evaluation of each individual over different cores for each generation or does it run generations in parallel The example maps the evaluate operation thus.. . The lone running process hits the map : all the invalid ind s are marshaled into a single queue and as a core comes available the next individual in the queue is assigned to that core to run the evaluate routine . When the queue is empty all the results are assembled into a list and assigned back to fitnesses . Thence the process continues on it s lonesome . So : .. . .. . Yes it does map the evaluation of each individual over different cores and .. . No it does not run generations in parallel .. . .. . At least that s what I surmise from when I asked this question http : stackoverflow.com questions 13264435 . Depending on your application of course in my experience with DEAP and cProfile the top two consumers of CPU time was evaluating individuals and copying .", "Question : null .. . Answer : Introduction .. . .. . As an DEAP user I felt easy to write code under the rule of its framework . To achieve the mutation function easily typing : .. . .. . My target .. . .. . In my recently project I want to achieve the two-step mutation describing like this : .. . .. . 1 . The number of gene in each individual is not stable Typically the length is fixed . 2 . The genes in each individuals are in list type from 6 560 represent different items . 3 . First mutation : Randomly add or remove one gene from the individuals .. . 4 . Second mutation : Randomly change multi-point genes in individuals .. . .. . My attempt .. . .. . So I wrote code follows : .. . .. . My problem .. . .. . But when I use the code above into my genetic program the result can be produced . But I m not sure it s truly two-step mutation or just using the second one mulFlipBit . What s more I found out my AddOrRemove function which follows by the example from DEAP official website don t fit my target prefectly . I want to add or remove or stay the same length for each individual in each evolution process and I haven t figured it out . Any advices would be appreciate", "Question : I m trying to construct a typed genetic-programming solution with DEAP http : deap.readthedocs.org . I start the program with a photo of a black white triangle and the 3 vertices of a different triangle . The hope is for the program to come up with a program which moves the vertices of the given triangle closer to the one in the photo . I provide it random constants arithmetic primitives add subtract etc . if-then-else . and tests for is black and is white at given coordinates . I ve set up all my primitives but I keep running into this error which seems to be telling me to add more primitives which either provide or consume not sure which the photo . I find the error difficult because : .. . .. . I have primitives which use the photo as input . I do not have primitives which produce the photo as output . I don t want to morph the photo just consume it . I m thinking the winning program will be a long sequence of commands like if 10 10 is black add 3 2 to vertex 1 repeated somewhat nauseatingly . But there is perhaps something I m not understanding correctly about how deap works . How do I overcome error messages like this This error typically fires from gp.gengrow when it is trying to generate the starting population . What may may not be related is that I don t have much in the way of Terminals : I m not clear how they apply to my problem . I expect to hear crickets but if anyone actually takes an interest in this question and wants to see code or at least the primitive set I can tack it on or stick it somewhere . Figured it was rambling enough already whilst I ve focused on a specific error message I expect it is moreso my general un appreciation of the workings of GP DEAP that is at fault . .. . Answer : I ve found a fix for this problem . When I need the input type only in terminals as you did I create an identity function : .. . .. . Which creates long branches of nested idems of the right depth : idem idem idem x .. . .. . .. . Then I stringify the primitivetree replace all of those nested idems with a single x and convert the string in a primitivetree again with deap.gp.PrimitiveTree.from string string pset . It s not elegant it s not pythonic but it works for me .", "Question : This question already has an answer here : .. . .. . Python multiprocessing shared-memory questions 14124588 python-multiprocessing-shared-memory 2 answers .. . .. . I am implementing a genetic-algorithm using Deap framework . The algorithm works but I noticed that the multi-process version of the GA is very memory consuming 9 GB against the 2 GB of the single-process and I suspect because it has been allocate memory for each process . In fact as soon as the map is executed the memory used increases . Since data shared among processes are used only to be read all of them can access to the same memory . This is the structure of my code . Then I have a class containing the dataset read by using pandas and a dictionary . What is the easiest way to share the memory I tried to use global-variables for self.data and self.dict but nothing.. . Comment : I read several topics about this problem on the forum but I am not good enough to find a solution alone . Can you show me what is the right way to share data please Comment : If you are looking for a GA code that can use multiprocessing or threading interchangeably then you might want to look at using mystic which when run using a ThreadingPool instance from the pathos.multiprocessing fork of multiprocessing does what you want -- GA in parallel using threads without a huge memory hit . Get all the relevant codes here : github.com uqfoundation https : github.com uqfoundation . I d have answered this since it s really what your question is after.. . but the question was already closed . .. . Answer : The multiprocessing module is uses the multiple processes model rather than threaded model so each process can t share memory without using shared-memory IPC calls . The Deap framework would need to be redesigned under the hood to use threads if you needed it to share memory .", "Question : null .. . Answer : i m doing some test in deap python and i took some benchmarks problems to see how it works but i have a problem with Korns-12 . When i want to evaluate the problem and put in the parameters the 2 variables x0 and x4 in func it show me an error with lambda . error : TypeError : takes exactly 1 argument 2 given .. . .. . someone have an idea Thanks", "Question : I am using DEAP https : pypi.python.org pypi deap toolbox in Python for Genetic Algorithm . toolbox.register attr bool random.randint 0 1 is a function randomly chooses 0 and 1 for populations in GA . I want to force GA to choose 0 and 1 randomly but with for example 80 one and the rest zero . I think srng.binomial X.shape p retain prob is a choice but I want to use random.randint function . Wondering how we can do that Comment : You could do something like 0 if random.randint 0 4 0 else 1 or 0 if random.random 0.2 else 1 . Comment : The problem is that when I use 0 if random.randint 0 4 0 else 1 instead of random.randint in toolbox.register attr bool random.randint 0 1 it gives me the following error TypeError : the first argument must be callable .. . Answer : The arguments to toolbox.register http : deap.gel.ulaval.ca doc default api base.html deap.base.Toolbox.register must be a function and the arguments that you want to pass to that function when you run it .. . .. . Since 0 if random.randint 0 4 0 else 1 is not a function its a random number you got an error . The fix is to package this expression inside a function that you can pass to toolbox.register :", "Question : null .. . Answer : I need to minimize a function using genetic-algorithm . So I m trying to use the DEAP . I used Python There is a need to set the individual but it does not work . We are trying to multi-objective optimization but hopes to set a two two-dimensional array in the configuration of the individual . Function is a plan to use these . Please tell me or do I How can I pass the two lists to the individual in the argument How should I do whether please tell me ." ] }
[ "yes-answer-long", "yes-answer-short" ]
prototyping
UNK_RELATION
genero@deployment@64
genero -- genero is a unique rapid application development and @placeholder environment tailored for mission-critical business applications .
{ "confidence": [ 49.77751159667969, 47.12211990356445, 45.09637451171875, 45.09637451171875, 41.46179962158203, 36.56605529785156, 35.59549331665039, 33.56974792480469, 33.56974792480469, 32.239524841308594, 32.225860595703125, 26.570215225219727, 23.328655242919922, 18.356395721435547, 18.356395721435547, 18.356395721435547, 18.356395721435547, 18.356395721435547, 18.356395721435547, 18.356395721435547, 18.356395721435547, 18.356395721435547, 18.356395721435547, 15.328032493591309, 15.328032493591309, 15.328032493591309, 13.985918045043945, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 13.302288055419922, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541, 11.95839786529541 ], "content": [ "No Genero by design is single-threaded .", "I m working in Genero Mobile on an app for iOS and Android .", "I m looking to test some table-locking in Genero .", "Does Genero have an equivalent to C s fork function", "Most Genero developers should be aware of that forum and have access .", "What I really wanted to comment on was that at Genero we were discussing wether to add built-in functions to do these types of calculations .", "In case someone encounters this and is looking for the answer this question was also asked and was answered in the Genero Developers Forum http : www.4js.com fjs forum index.php topic 960.0", "Looking at other 4GL Genero customers library code I have seen I suspect other developers thought the same thing .", "I ve checked Genero documentation at : http : www.4js.com online documentation fjs-fgl-manual-html but haven t come up with anything useful yet .", "So I have something like this : .. . .. . In the code I have fetched those states and I m ready to apply them to the options in the radio group but I don t know how and the 4Js Genero BDL manual isn t helping .", "I would like to add tags 4js and genero-studio but they don t exist and I haven t got enough reputation to do it myself .", "I would keep it simple and break the problem into two nested loops one for year one for month .. . .. . I would also encourage you to also post questions like this in the dedicated 4Js Genero developers forum at the 4Js website http : www.4js.com fjs forum as well as here .", "Have you tried creating a simple application and testing it", "whenever a modal-dialog e.g .", "call fgl winmessage .. . is open from a MDI window the close action is disabled .", "I allready tried to reactived from the menu with a dialog.setActionActive with no sucess .", "Any ideas will be highly appreciated .", "TIA Frederico Moreira", "I did this and there is no close action but there is an ok action which is enabled .", "Any buttons on other forms would be disabled because the modal form has exclusive focus .", "The window menu has a Close Alt+F4 menu item and it is enabled too .", "I suspect you might need to look at your action defaults or style files to see if anything is interfering there .", "The fgl winMessage function has no COMMAND close block in the code so if a button for close did appear on the modal form then it would be disabled .", "On one screen is a form with a RADIOGROUP .", "That RADIOGROUP can have only 3 options that are turned on and off by a web service .", "I m already collecting the state of those radio options but I need to tell the form to hide specific radio options if they re not allowed by the web service .", "Is there a way to run the command-line below within a Java application without opening FGLTTY GUI", "This routine is returning 12 31 2016 instead of 12 31 2015 and messing up a report .", "Any idea where it is going wrong", "Welcome to Stack Overflow .", "Please read the About http : stackoverflow.com tour page soon .", "One thing I notice about your question is that it contains part of an IF statement in the second block it is missing the second END IF .", "It isn t clear whether there s another assignment in it or whether the END IF simply got dropped it probably did .", "The second problem is that it is not 100 clear what the input value for p selection.date from has when you get the erroneous result nor whether the value stored in p selection.date from or p selection.date thru is wrong or both are wrong .", "Make sure everything is spelled out .", "It is often helpful to create an MCVE How to create a Minimal Complete and Verifiable Example", "http : stackoverflow.com help mcve or SSCCE Short Self-Contained Correct Example http : sscce.org two names and links for the same basic idea .", "Your material is close enough that it isn t a big problem but please keep the ideas in those links in mind in future .", "Thanks .", "Assuming the input p selection.date from is 12 01 2015 .. . .. . .. . IF date month 12 returns TRUE so date thru gets calculated as 01 01 2016 .. . .. . But then the second IF statement also returns TRUE adding another year to p selection.date thru 01 01 2017 before decrementing it one day to 12 31 2016 .", "Seems to me that someone has had several goes at trying to calculate the date of the last day of the month and one or the other method is required not both .", "The one that appears first in your code is particularly dubious - there s an assumption that DBDATE is US format when it casts between DATE and CHAR which is entirely unnecessary .", "A far simpler solution would be to simply calculate : .. . .. . In other words find the first day of the selected month add a month and subtract a day .", "Simple and robust it works at the year boundary and when a leap day occurs .", "Here s some old code that s not seen the light of day in a while but is still valid I4GL .", "ltmonth.4gl .. . .. . fnmonth.4gl .. . .. . lastthismonth.spl .. . .. . And here s some SPL based on the I4GL above : .. . .. . firstnextmonth.spl .. . .. . Note the alternative expression .", "It works but it is an incredible mixture of DATE and DATETIME calculations .", "I had .. . .. . with an appropriate function days in month to return 28 29 30 31 as appropriate based on month and year .. . .. . For the OP you should be creating a function and re-using it rather than potentially repeating logic like it looks like you are doing .", "If everyone has their own first of month last of month add months then the thought was we should include them in the language rather than having everyone reinvent the wheel .", "As part of the discussions what I learned was that the + 1 UNITS MONTH as used by RET in his answer is as he says leap-year safe .", "For some reason I thought it wasn t and had tended to avoid it and write in the style of JLefflers answer .", "Hi @fourjs.reuben +1 UNITS MONTH is problematic when adding to a date on the 29 30 31st but you can rely on every month having a 1st .", ": -", "@RET True but what I was trying to say is that +1 UNITS MONTH will return a valid date for the 29 30 31st cases .", "Perception I ve got from looking at various customers code is that developers have avoided that syntax unnecessarily .", "I think @JonathanLeffler can probably verify this but I think that fix for month arithmetic in date columns is only fairly recent .", "It is definitely the case that MDY 1 31 2015 + 1 UNITS MONTH would error on older versions .", "Turns out Jonathan already has see : stackoverflow.com a 33142330 14750 http : stackoverflow.com a 33142330 14750 .", "The fix was introduced in 11.70.FC5", "Hopefully I m just missing something", "RUN can be used to start another process but will not pass variables databases connections etc across to the new process .", "If you are using the DATABASE command to connect to the database you could use the CONNECT statement instead http : www.4js.com online documentation fjs-fgl-manual-html path fjs-fgl-manual c fgl Connections 042.html .", "This allows you to have more than one database-connection and so potentially could allow you to test table locking scenarios from within the one program", "I have to develop a system where user will specify a starting range and an ending range By Range I mean to say a particular period where PERIOD is given as a concatenation of YEAR AND MONTH .", "For example PERIOD 201304 where 2013 is the user entered Year and 04 is the MONTH .", "The user can specify a maximum range of upto 2 years only .", "Data needs to be selected on the basis of the user entered range .", "The problem is whenever I try to loop through the period the PERIOD changes after 201312 to 201313 .", "I have separate variables for user selected year and month start year start month end year end month .. . .. . I did a IF loop there in which I tried to do the following .. . .. . I even tried thsi one : .. . .. . IF p fromperiod MOD p yearfrm 13 THEN .. . .. . Still the period changes after reaching 201212 to 201213 .", "I want this to be 201301 .", "Please help .", "As you have probably guessed you have some flaws in your logic .", "The first example is too hard to decipher whilst the second shows you don t understand what the MOD operator does .", "If used correctly in this context it would be of the form IF variable MOD 12 0 i.e .", "every 12th value do something .", "I think where you are going wrong is trying to do it all in one loop .", "The manual says that windowMenu http : www.4js.com online documentation fjs-fgl-manual-html path fjs-fgl-manual r fgl presentation styles window style attributes.html .. . .. . Defines if the WCI container should display an automatic Window menu with Cascade and Tile features and list of child windows .", "Values can be yes no default .", "Setting StyleAttribute name windowMenu value yes in the style file enables the Window menu group .", "The problem is that when a TopMenu is loaded the Window menu group appears on the left of the other menu groups .", "I want to be able to control the order of the menu groups and put the Window menu group on the right-hand side of the other menu groups .", "How do I implement that requirement", "Screenshot showing placement of Window menu group http : i.stack.imgur.com 6YuDi.png", "Would someone please oblige", "Thank you Sneftel .", "So I finally cleared all the errors and warnings on the C files and proceeded to link them .", "I have 2 C files which I need to link with the compiler .", "The compile command I was provided : .. . .. . Doesn t work I get this error :", "Try the file command to see what it reports on et51bwqm0.o and intfac fl.o .", "Also it would help to see the commands used to compile them .", "The compiler compiles the linker .. .", "@Olaf The gcc command hides the distinction since it figures out from the options whether it should compile or link .", "@Barmar : I know .", "It is actually a driver for the correct underlying tools compiler assembler linker etc .", "Yet it is not the compiler .", "Anyway we need more information .", "Have you tried purging all .o files in the compilation directory", "I don t remeber but you should pre-compile your C file .", "For that : .. . .. . 1 . gcc -c et5ibwqm0.c .. . 2 . gcc -c intfac fl.c" ] }
{ "confidence": [ 54.182342529296875, 53.879512786865234, 41.033592224121094, 35.34440612792969, 34.939186096191406, 20.1800594329834, 12.887091636657715, 12.887091636657715, 12.799600601196289, 11.563570022583008, 11.563570022583008, 11.563570022583008 ], "content": [ "Question : I m looking to test some table-locking in Genero . Does Genero have an equivalent to C s fork function I ve checked Genero documentation at : http : www.4js.com online documentation fjs-fgl-manual-html but haven t come up with anything useful yet . Hopefully I m just missing something .. . Answer : No Genero by design is single-threaded . RUN can be used to start another process but will not pass variables databases connections etc across to the new process . If you are using the DATABASE command to connect to the database you could use the CONNECT statement instead http : www.4js.com online documentation fjs-fgl-manual-html path fjs-fgl-manual c fgl Connections 042.html . This allows you to have more than one database-connection and so potentially could allow you to test table locking scenarios from within the one program", "Question : I m working in Genero Mobile on an app for iOS and Android . On one screen is a form with a RADIOGROUP . That RADIOGROUP can have only 3 options that are turned on and off by a web service . I m already collecting the state of those radio options but I need to tell the form to hide specific radio options if they re not allowed by the web service . So I have something like this : .. . .. . In the code I have fetched those states and I m ready to apply them to the options in the radio group but I don t know how and the 4Js Genero BDL manual isn t helping . .. . Answer : In case someone encounters this and is looking for the answer this question was also asked and was answered in the Genero Developers Forum http : www.4js.com fjs forum index.php topic 960.0", "Question : I have to develop a system where user will specify a starting range and an ending range By Range I mean to say a particular period where PERIOD is given as a concatenation of YEAR AND MONTH . For example PERIOD 201304 where 2013 is the user entered Year and 04 is the MONTH . The user can specify a maximum range of upto 2 years only . Data needs to be selected on the basis of the user entered range . The problem is whenever I try to loop through the period the PERIOD changes after 201312 to 201313 . I have separate variables for user selected year and month start year start month end year end month .. . .. . I did a IF loop there in which I tried to do the following .. . .. . I even tried thsi one : .. . .. . IF p fromperiod MOD p yearfrm 13 THEN .. . .. . Still the period changes after reaching 201212 to 201213 . I want this to be 201301 . Please help . .. . Answer : As you have probably guessed you have some flaws in your logic . The first example is too hard to decipher whilst the second shows you don t understand what the MOD operator does . If used correctly in this context it would be of the form IF variable MOD 12 0 i.e . every 12th value do something . I think where you are going wrong is trying to do it all in one loop . I would keep it simple and break the problem into two nested loops one for year one for month .. . .. . I would also encourage you to also post questions like this in the dedicated 4Js Genero developers forum at the 4Js website http : www.4js.com fjs forum as well as here . Most Genero developers should be aware of that forum and have access .", "Question : null .. . Answer : The manual says that windowMenu http : www.4js.com online documentation fjs-fgl-manual-html path fjs-fgl-manual r fgl presentation styles window style attributes.html .. . .. . Defines if the WCI container should display an automatic Window menu with Cascade and Tile features and list of child windows . Values can be yes no default . Setting StyleAttribute name windowMenu value yes in the style file enables the Window menu group . The problem is that when a TopMenu is loaded the Window menu group appears on the left of the other menu groups . I want to be able to control the order of the menu groups and put the Window menu group on the right-hand side of the other menu groups . How do I implement that requirement Screenshot showing placement of Window menu group http : i.stack.imgur.com 6YuDi.png Comment : I would like to add tags 4js and genero-studio but they don t exist and I haven t got enough reputation to do it myself . Would someone please oblige Comment : Thank you Sneftel .", "Question : This routine is returning 12 31 2016 instead of 12 31 2015 and messing up a report . Any idea where it is going wrong Comment : Welcome to Stack Overflow . Please read the About http : stackoverflow.com tour page soon . One thing I notice about your question is that it contains part of an IF statement in the second block it is missing the second END IF . It isn t clear whether there s another assignment in it or whether the END IF simply got dropped it probably did . The second problem is that it is not 100 clear what the input value for p selection.date from has when you get the erroneous result nor whether the value stored in p selection.date from or p selection.date thru is wrong or both are wrong . Make sure everything is spelled out . Comment : It is often helpful to create an MCVE How to create a Minimal Complete and Verifiable Example http : stackoverflow.com help mcve or SSCCE Short Self-Contained Correct Example http : sscce.org two names and links for the same basic idea . Your material is close enough that it isn t a big problem but please keep the ideas in those links in mind in future . Thanks . .. . Answer : I had .. . .. . with an appropriate function days in month to return 28 29 30 31 as appropriate based on month and year .. . .. . For the OP you should be creating a function and re-using it rather than potentially repeating logic like it looks like you are doing . What I really wanted to comment on was that at Genero we were discussing wether to add built-in functions to do these types of calculations . If everyone has their own first of month last of month add months then the thought was we should include them in the language rather than having everyone reinvent the wheel . As part of the discussions what I learned was that the + 1 UNITS MONTH as used by RET in his answer is as he says leap-year safe . For some reason I thought it wasn t and had tended to avoid it and write in the style of JLefflers answer . Looking at other 4GL Genero customers library code I have seen I suspect other developers thought the same thing . Comment : Hi @fourjs.reuben +1 UNITS MONTH is problematic when adding to a date on the 29 30 31st but you can rely on every month having a 1st . : - Comment : @RET True but what I was trying to say is that +1 UNITS MONTH will return a valid date for the 29 30 31st cases . Perception I ve got from looking at various customers code is that developers have avoided that syntax unnecessarily . Comment : I think @JonathanLeffler can probably verify this but I think that fix for month arithmetic in date columns is only fairly recent . It is definitely the case that MDY 1 31 2015 + 1 UNITS MONTH would error on older versions . Comment : Turns out Jonathan already has see : stackoverflow.com a 33142330 14750 http : stackoverflow.com a 33142330 14750 . The fix was introduced in 11.70.FC5", "Question : whenever a modal-dialog e.g . call fgl winmessage .. . is open from a MDI window the close action is disabled . I allready tried to reactived from the menu with a dialog.setActionActive with no sucess . Any ideas will be highly appreciated . TIA Frederico Moreira .. . Answer : Have you tried creating a simple application and testing it I did this and there is no close action but there is an ok action which is enabled . Any buttons on other forms would be disabled because the modal form has exclusive focus . The window menu has a Close Alt+F4 menu item and it is enabled too . I suspect you might need to look at your action defaults or style files to see if anything is interfering there . The fgl winMessage function has no COMMAND close block in the code so if a button for close did appear on the modal form then it would be disabled .", "Question : This routine is returning 12 31 2016 instead of 12 31 2015 and messing up a report . Any idea where it is going wrong Comment : Welcome to Stack Overflow . Please read the About http : stackoverflow.com tour page soon . One thing I notice about your question is that it contains part of an IF statement in the second block it is missing the second END IF . It isn t clear whether there s another assignment in it or whether the END IF simply got dropped it probably did . The second problem is that it is not 100 clear what the input value for p selection.date from has when you get the erroneous result nor whether the value stored in p selection.date from or p selection.date thru is wrong or both are wrong . Make sure everything is spelled out . Comment : It is often helpful to create an MCVE How to create a Minimal Complete and Verifiable Example http : stackoverflow.com help mcve or SSCCE Short Self-Contained Correct Example http : sscce.org two names and links for the same basic idea . Your material is close enough that it isn t a big problem but please keep the ideas in those links in mind in future . Thanks . .. . Answer : Assuming the input p selection.date from is 12 01 2015 .. . .. . .. . IF date month 12 returns TRUE so date thru gets calculated as 01 01 2016 .. . .. . But then the second IF statement also returns TRUE adding another year to p selection.date thru 01 01 2017 before decrementing it one day to 12 31 2016 . Seems to me that someone has had several goes at trying to calculate the date of the last day of the month and one or the other method is required not both . The one that appears first in your code is particularly dubious - there s an assumption that DBDATE is US format when it casts between DATE and CHAR which is entirely unnecessary . A far simpler solution would be to simply calculate : .. . .. . In other words find the first day of the selected month add a month and subtract a day . Simple and robust it works at the year boundary and when a leap day occurs .", "Question : This routine is returning 12 31 2016 instead of 12 31 2015 and messing up a report . Any idea where it is going wrong Comment : Welcome to Stack Overflow . Please read the About http : stackoverflow.com tour page soon . One thing I notice about your question is that it contains part of an IF statement in the second block it is missing the second END IF . It isn t clear whether there s another assignment in it or whether the END IF simply got dropped it probably did . The second problem is that it is not 100 clear what the input value for p selection.date from has when you get the erroneous result nor whether the value stored in p selection.date from or p selection.date thru is wrong or both are wrong . Make sure everything is spelled out . Comment : It is often helpful to create an MCVE How to create a Minimal Complete and Verifiable Example http : stackoverflow.com help mcve or SSCCE Short Self-Contained Correct Example http : sscce.org two names and links for the same basic idea . Your material is close enough that it isn t a big problem but please keep the ideas in those links in mind in future . Thanks . .. . Answer : Here s some old code that s not seen the light of day in a while but is still valid I4GL . ltmonth.4gl .. . .. . fnmonth.4gl .. . .. . lastthismonth.spl .. . .. . And here s some SPL based on the I4GL above : .. . .. . firstnextmonth.spl .. . .. . Note the alternative expression . It works but it is an incredible mixture of DATE and DATETIME calculations .", "Question : null .. . Answer : Is there a way to run the command-line below within a Java application without opening FGLTTY GUI If I run the above Java code it establishes a connection via FGLTTY with server IP 10.171.0.105 and prompts to give usr bin test.sh . Instead I want to open it without GUI .", "Question : So I finally cleared all the errors and warnings on the C files and proceeded to link them . I have 2 C files which I need to link with the compiler . The compile command I was provided : .. . .. . Doesn t work I get this error : Comment : Try the file command to see what it reports on et51bwqm0.o and intfac fl.o . Also it would help to see the commands used to compile them . Comment : The compiler compiles the linker .. . Comment : @Olaf The gcc command hides the distinction since it figures out from the options whether it should compile or link . Comment : @Barmar : I know . It is actually a driver for the correct underlying tools compiler assembler linker etc . Yet it is not the compiler . Anyway we need more information . Comment : Have you tried purging all .o files in the compilation directory .. . Answer : I don t remeber but you should pre-compile your C file . For that : .. . .. . 1 . gcc -c et5ibwqm0.c .. . 2 . gcc -c intfac fl.c", "Question : So I finally cleared all the errors and warnings on the C files and proceeded to link them . I have 2 C files which I need to link with the compiler . The compile command I was provided : .. . .. . Doesn t work I get this error : Comment : Try the file command to see what it reports on et51bwqm0.o and intfac fl.o . Also it would help to see the commands used to compile them . Comment : The compiler compiles the linker .. . Comment : @Olaf The gcc command hides the distinction since it figures out from the options whether it should compile or link . Comment : @Barmar : I know . It is actually a driver for the correct underlying tools compiler assembler linker etc . Yet it is not the compiler . Anyway we need more information . Comment : Have you tried purging all .o files in the compilation directory .. . Answer : You tagged this with Informix . Are these C modules that you are trying to call from a 4GL program and therefore need to combine them into a common executable If so just include all of your source modules in the compile directive . Assuming c4gl something like : .. . .. . c4gl main.4gl others.4gl et5ibwqm0.c intfac fl.c -o mainwithccalls.4ge", "Question : So I finally cleared all the errors and warnings on the C files and proceeded to link them . I have 2 C files which I need to link with the compiler . The compile command I was provided : .. . .. . Doesn t work I get this error : Comment : Try the file command to see what it reports on et51bwqm0.o and intfac fl.o . Also it would help to see the commands used to compile them . Comment : The compiler compiles the linker .. . Comment : @Olaf The gcc command hides the distinction since it figures out from the options whether it should compile or link . Comment : @Barmar : I know . It is actually a driver for the correct underlying tools compiler assembler linker etc . Yet it is not the compiler . Anyway we need more information . Comment : Have you tried purging all .o files in the compilation directory .. . Answer : Turns out it was just a missing -m32 specifier which caused the compiler to reject one of the objects user5586678" ] }
[ "yes-answer-long", "yes-answer-short" ]
deployment
UNK_RELATION
jsr82@bluetooth@35
jsr82 -- jsr 82 - java-me api for @placeholder .
{ "confidence": [ 42.734249114990234, 37.578712463378906, 37.2404899597168, 34.820960998535156, 34.43522644042969, 34.43522644042969, 34.39409637451172, 34.345890045166016, 33.57486343383789, 33.304683685302734, 32.64643478393555, 32.20691680908203, 31.52042007446289, 30.999225616455078, 30.999225616455078, 29.551776885986328, 29.551776885986328, 28.685813903808594, 26.32569122314453, 26.03067398071289, 25.81757354736328, 25.767925262451172, 24.119548797607422, 23.83922576904297, 23.05583953857422, 23.025724411010742, 22.909465789794922, 21.446651458740234, 21.288747787475586, 20.977981567382812, 20.288955688476562, 19.61893081665039, 19.58364486694336, 18.841506958007812, 18.70751190185547, 18.70751190185547, 18.70751190185547, 16.796457290649414, 16.41362190246582, 16.412477493286133, 15.954582214355469, 15.722294807434082, 15.627367973327637, 15.627367973327637, 15.360016822814941, 15.227727890014648, 14.666221618652344, 14.666221618652344, 14.231646537780762, 14.231646537780762, 14.217144012451172, 14.217144012451172, 13.859479904174805, 13.859479904174805, 13.654552459716797, 13.654552459716797, 13.587762832641602, 13.299442291259766, 13.067154884338379, 13.028003692626953, 12.412031173706055, 12.412031173706055, 12.01768684387207, 12.01108169555664, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707, 11.954136848449707 ], "content": [ "does your device support JSR 82 J2ME Bluetooth API http : stackoverflow.com tags jsr82 info", "Device supports JSR 82 J2ME Bluetooth API .", "does your device support JSR 82 Java APIs for Bluetooth http : www.jcp.org en jsr detail id 82", "I am searching for some help with JSR-82 .", "I recommend you to use Java on both mobile phone JSR 82 and computer BlueCove JSR 82 implementation : bluecove.org http : bluecove.org", "update device supports JSR 82 http : www.jcp.org en jsr detail id 82 Java APIs for Bluetooth 1.1 . .. . .. . and this is my servlet code", "yes it does support JSR 82 Java APIs for Bluetooth 1.1", "Yes it does support JSR 82 J2ME bluetooth api. .", "It should be possible without JSR82 OBEX API .", "I have found a java implementation for the jsr82 API in this link : http : www.jsr82.com jsr-82-sample-device-discovery .. . .. . The code has no errors and no warnings but the invocation of the line : .. . .. . returns null so it can not find my Bluetooth device .", "I believe the JSR-82 JAR file distributed with the Wireless Toolkit contains only the interfaces not a working implementation of the Bluetooth API .", "This allows you to compile code that uses JSR-82 but not to test it .", "Are there any workarounds to connect to HID device using L2CAP in JAVA ME using JSR-82 specification implementation native to mobile device not BlueCove etc .", "I have a host device that connects to anything running JSR-82 .", "The problem is that I don t have a mobile device that runs JSR-82 applications .", "Using JSR-82 you create a server based on a UUID .", "Depending on the JSR-82 implementation receive.read buffer will return -1 or will throw an IOException .", "You should get a copy of Bluecove http : www.bluecove.org a free implementation of JSR-82 you can run on the desktop .", "you will be needing 4 jar files : bluecove.jar bluecove-emu.jar electricblue.jar javabluetooth.jar .. . .. . however my code based on jsr82 implimentation did not work on samsung mobiles... . it is said that it does not support jsr82 stack .", "It is a JSR-82 implementation the same protocol as in MIDP so desktop and mobile parts share a lot of code .", "If you know what protocol the host device is speaking you could write your own client using regular desktop Java and the Bluecove http : bluecove.org implementation of JSR-82 .", "Ive tried using JSR82.com but that wasnt much help at all .. . .. . If any one has the time to assist me you would be concidered a god", "It looks like device I used doesn t support JSR-82 which is J2ME Bluetooth API this is built into phone no way of installing it required to use Bluetooth from J2ME Midlets here is snippet which should check for JSR-82 support : .. . .. . Please note that I got uncaught exception trying to run above snippet but maybe it would work on some other device .", "Is there a way to create a server using a port-number in JSR-082 API", "I am trying to do communication between a mobile-application using J2ME and JSR82 and Desktop application in C using InTheHand Library .", "And I don t know how many devices will support jsr82 .", "Jsr-82 apparently doesn t define the const for that new header so quoting from the OBEX specification : .. . .. . MODIFICATION .. . 2.1 OBEX Headers .. . .. . So create the following etc .", "In pybluez the way you connect to a server is as follows : .. . .. . However in JSR-082 bluetooth API the way you create a server is as follows : .. . .. . or as follows : .. . .. . In pybluez API we use port numbers and in JSR-082 API we use URLs .", "Its not possible using java-me", "So there are many SO posts related to this issue - .. . .. . java.io.IOException : JSR82 accept : Connection is not created failed or aborted http : stackoverflow.com questions 17327579 java-io-ioexception-jsr82-accept-connection-is-not-created-failed-or-aborte .. . .. . java.io.IOException : JSR82 while connecting to a bluetooth device http : stackoverflow.com questions 22009141 java-io-ioexception-jsr82-while-connecting-to-a-bluetooth-device .. . .. . Other Posts - .. . .. . http : android.2317887.n4.nabble.com getting-exception-while-connecting-to-server-via-bluetooth-td11390.html .. . .. . http : www.coderexception.com Cbz1B31bPPQixWQQ connection-is-not-created-failed-or-aborted-exception-thrown-during-bluetooth-connection-in-android .. . .. . Tried everything from reflection to without reflection but none worked - .. . .. . If you see carefully to the above code then you notice - .. . .. . 1 Tried reflection with port 1 .. . .. . 2 If 1 fails then tried reflection with port 2 .. . .. . 3 If 2 fails then tried reflection with port 3 .. . .. . 4 If 3 fails then tried without reflection .. . .. . In short used everything but none worked .", "This page https : jcp.org aboutJava communityprocess maintenance jsr082 MR4changes.html suggests that the restriction was removed in JSR-82 1.2 : .. . .. . Legal PSM values are in the range 0x0005..0xFFFF and the least significant byte must be odd and all other bytes must be even .", "I am trying to establish a bluetooth connection between my J2ME application using JSR-082 API and my desktop application written with Python using pybluez bluetooth API .", "I am C developer which started working in Java lately never done anything in Java ME .", "answer to this question http : stackoverflow.com questions 3198306 bluetooth-client-server-communication-between-computer-and-mobile-phone mentions and refers to code of an application that not only connects but also sends in real-time screenshots of area around the mouse cursor on a computer to a JSR 82 mobile phone client.. .", "After having another look at the Java API I can t see any way of sending an arbitrary command over ClientSession .", "If a handset does not have Bluetooth API then the Java Virtual Machine does not have javax.bluetooth package .", "I m building a simple Java Bluetooth server for my computer using the Bluecove API .", "My question is : What is the way to go when working with java and Bluetooth dongles", "Some of the handsets does not have support for bluetooth API so the phone is not allowing the installation of the application as it does not support the bluetooth API .", "The reason behind this is when you run Java ME code on Emulator it detects localhost .", "I am working in a Windows 7 32-bit computer to develop a java desktop application to communicate with a Bluetooth dongle .", "Can anyone help me to find a solution to my problem", "Please help me to do this .", "Can anyone help me", "Yes its working fine for me .", "Both client and server are written in Java .", "I have searched for a long time and even had my project supervisor at uni helping me out and so far I have had no luck .", "It just hangs at the message : Waiting for incoming connection.. . .. . .. . J2ME code in Mobile Application : .. . .. . C Code in Desktop App : .. . .. . Please help me out on this .", "Have you tried for example using phone emulator from Nokia s SDK http : www.forum.nokia.com Resources 5Fand 5FInformation Tools Java 5FTools.xhtml", "It then starts to communicate with the client .. . In Java we normally put opening brackets on the same line as the statement which asks for it but this is just a detail and not a must .", "If Bluetooth in my phone is on then it throws : javax.bluetooth.bluetoothstateexception : initialize - GetProperty failed .. . .. . Please help me to get rid of this error so that I can move forward with my learning process .", "For me the issue was that my SPP server was bound to a channel which was already used so actually the android device didn t try to connect to the SPP server but something else .", "It doesn t help me creating headers which the target device will recognize as OBEX ones .", "Jigar joshi.Thanks for ur reply.Im added some additional points in my query.Please refer it and give me valuable ideas", "Anyway if Java prevents you from using new Opcodes only allowing GET and PUT and also prevents you from using new HeaderId values then you can t proceed anyway .", "And the comment : .. . .. . Remove reserved ranges from L2CAP PSM values to allow a Java application to use a Bluetooth protocol that is built on top of L2CAP using a PSM value in the reserved range .", "Using JSR082 1.1.jar from Java Wireless Toolkit 3.0 .. . I m trying to get the local device for later discovery of others .. . but i keep getting null for the call LocalDevice.getLocalDevice .. . .. . while in the docs they say this method cannot return null.. . docs http : bluecove.org bluecove apidocs javax bluetooth LocalDevice.html getLocalDevice 28 29 .. . .. . My bluetooth is ON checked on 2 computers Win7 OSX 10.6 .. . .. . Help", "I need help to connect a J2me midlet program to a java application on my desktop using bluethooth connection .", "@gnat please can you tell me the solution for my problem. .", "Considering even the latest Java Platform Micro Edition Software Development Kit 3.0 doesn t officially support Vista x64 http : java.sun.com javame downloads sdk30.jsp req I can only advise using a different operating-system .", "What s troubling me is how would the thread eventually die when a device goes out of range", "I am pasting my codes and would be highly obliged if anyone could tell me the reason and if the codes are correct .", "My next project requires to pass simple keypress from phone keyboard to C application using bluetooth there are some examples on sending recieving files over bluetooh but so little documentation how to pass messages between applications : .. . .. . I stumbled on 32feet.NET library but provided samples are just poor and bigger mystery for me is J2ME side of application .", "can you give me any example my live ip is 117.224.102.39 and i made the string like http : 117.224.102.39 j2metest getText but it is not accessible .", "All I want to do is send hello to the first incoming RFCOMM Bluetooth connection and then exit .", "My code works on Nokia N73 but not on more modern devices like Nokia E52 .", "In Nokia E52 the application hangs just after : .. . .. . Here is the code : .. . .. . All the code is inside the run method of my Thread : .. . .. . I first set my bluetooth device discoverable : .. . .. . Then I prepare my server socket : .. . .. . Then I wait for an incoming RFCOMM Bluetooth connection : .. . .. . Once I get the StreamConnection object I send hello and then close the connection : .. . .. . In Nokia N73 I get Connection received .", "on the logs and I receive hello on the client-side .", "But on Nokia E52 Nokia 5230 Nokia E71 the application hangs just after streamConnectionNotifier.acceptAndOpen .", "Does anyone have an idea", "If you need more information please state .", "Instead of using the SPP UUID 0x1101 you should specify your own 128-bit UUID using uuidgen or a similar tool .", "On the phones where the application hangs there is probably another SPP service running .", "I will try your suggestion and then tell you the result thanks", "Did that fix your problem", "Hi pwc unfortunately that project was cancelled and I have never had a chance to test it .", ":", "Thanks", "What Bluetooth driver stack are you using at least for Windows and second is it a x86 or x64 architecture", "Make sure you re using the 32-bit JVM though use the -d32 command-line argument .", "Thank you", "both Bluecove and the link and the -d32 comments were spot on", "My Problem.. .", "I have a project whereby I simply need to scan for Bluetooth Devices .. . .. . I have not yet been able to get my Bluetooth device scanning .", "I am using Eclipse IDE in CentOS 5.5 and am trying to use Bluecove .", "I have downloaded bluecove-gpl-2.1.0.jar and added it to my Eclipse Build Path and the code i am using is sample code provided by BlueCove RemoteDeviceDiscovery Found here : http : bluecove.org bluecove apidocs overview-summary.html DeviceDiscovery .", "Before i can even compile javax.Bluetooth .", "is underlined suggesting it cannot find it - Now as far as i am aware this should be within the bluecove jar file i mentioned previously .", "How on earth do I get this thing working", "haha .. . .. . thanks .. . .. . Ryan", "With bluecove on linux you need to provide the bluecove.jar and bluecove-gpl.jar .", "http : code.google.com p bluecove wiki Documentation", "Hi Thankyou for your answer .", "I have been reading through the documentation for BlueCove and although it suggests that both the bluecove.jar and bluecove-gpl.jar are required on the downloads section of the website it says that the bluecove-gpl.jar is for linux and bluecove.jar is for windows Mac.. . Am i supposed to be adding these to the CLASSPATH system variable or can i just get away with adding these to the Eclipse Project build path", "Thanks once again - Ryan", "Adding them in eclipse should be fine .", "From my understanding of whats going on over at bluecove you need the bluecove.jar to implement any j2se bluetooth support .", "the bluetooth-gpl.jar is an extension of the bluecove.jar that provides access to blueZ driver in linux .", "Thanks again for the reply .", "But ive still got a problem - Im still trying to use Bluecove s code RemoteDeviceDiscovery but everytime i compile run from Eclipse i got the following error. ." ] }
{ "confidence": [ 54.65857696533203, 52.96136474609375, 52.96136474609375, 42.95170974731445, 41.36274719238281, 40.163021087646484, 39.96725082397461, 38.71820831298828, 37.0417594909668, 37.0417594909668, 35.572479248046875, 35.543582916259766, 34.81534194946289, 32.738983154296875, 29.243682861328125, 28.705368041992188, 25.296754837036133, 24.503036499023438, 22.93539047241211, 18.899696350097656 ], "content": [ "Question : I am working in a Windows 7 32-bit computer to develop a java desktop application to communicate with a Bluetooth dongle . I have found a java implementation for the jsr82 API in this link : http : www.jsr82.com jsr-82-sample-device-discovery .. . .. . The code has no errors and no warnings but the invocation of the line : .. . .. . returns null so it can not find my Bluetooth device . Note : The dongle is recognized by the pc . My question is : What is the way to go when working with java and Bluetooth dongles Can anyone help me to find a solution to my problem .. . Answer : Use bluecove as library when working with Bluetooth dongles .", "Question : I need help to connect a J2me midlet program to a java application on my desktop using bluethooth connection . How can I configure my midlet application to connect to the desktop application using bluetooth Device supports JSR 82 J2ME Bluetooth API . Here is my MIDLet Code : Comment : does your device support JSR 82 J2ME Bluetooth API http : stackoverflow.com tags jsr82 info Comment : Yes it does support JSR 82 J2ME bluetooth api. . Comment : answer to this question http : stackoverflow.com questions 3198306 bluetooth-client-server-communication-between-computer-and-mobile-phone mentions and refers to code of an application that not only connects but also sends in real-time screenshots of area around the mouse cursor on a computer to a JSR 82 mobile phone client.. . Comment : You will have to use RFCOMM or L2CAP Protocols and a Client Server Program for Bluetooth Access.. . Refer this Link developers.sun.com mobility midp articles bluetooth2 http : developers.sun.com mobility midp articles bluetooth2 .. . Answer : Here is the Code for Bluetooth Communication using RFCOMM Protocol .. . .. . The Program Consists of a Client and Server . So Make sure the device is paired before you test the code . The Program BTServer.java will be running on the Desktop Machine with a Bluetooth active and Visible . The Program BTClient.java is a Midlet which runs on Mobile . BTServer.java .. . .. . BTClient.java", "Question : I need help to connect a J2me midlet program to a java application on my desktop using bluethooth connection . How can I configure my midlet application to connect to the desktop application using bluetooth Device supports JSR 82 J2ME Bluetooth API . Here is my MIDLet Code : Comment : does your device support JSR 82 J2ME Bluetooth API http : stackoverflow.com tags jsr82 info Comment : Yes it does support JSR 82 J2ME bluetooth api. . Comment : answer to this question http : stackoverflow.com questions 3198306 bluetooth-client-server-communication-between-computer-and-mobile-phone mentions and refers to code of an application that not only connects but also sends in real-time screenshots of area around the mouse cursor on a computer to a JSR 82 mobile phone client.. . Comment : You will have to use RFCOMM or L2CAP Protocols and a Client Server Program for Bluetooth Access.. . Refer this Link developers.sun.com mobility midp articles bluetooth2 http : developers.sun.com mobility midp articles bluetooth2 .. . Answer : public gui.Main mid null .. . .. . Something wrong in this line code of BTserver", "Question : I am searching for some help with JSR-82 . I have searched for a long time and even had my project supervisor at uni helping me out and so far I have had no luck . My Problem.. . I have a project whereby I simply need to scan for Bluetooth Devices .. . .. . I have not yet been able to get my Bluetooth device scanning . I am using Eclipse IDE in CentOS 5.5 and am trying to use Bluecove . I have downloaded bluecove-gpl-2.1.0.jar and added it to my Eclipse Build Path and the code i am using is sample code provided by BlueCove RemoteDeviceDiscovery Found here : http : bluecove.org bluecove apidocs overview-summary.html DeviceDiscovery . Before i can even compile javax.Bluetooth . is underlined suggesting it cannot find it - Now as far as i am aware this should be within the bluecove jar file i mentioned previously . How on earth do I get this thing working Ive tried using JSR82.com but that wasnt much help at all .. . .. . If any one has the time to assist me you would be concidered a god haha .. . .. . thanks .. . .. . Ryan .. . Answer : you will be needing 4 jar files : bluecove.jar bluecove-emu.jar electricblue.jar javabluetooth.jar .. . .. . however my code based on jsr82 implimentation did not work on samsung mobiles... . it is said that it does not support jsr82 stack . if anyone has idea on this share. .", "Question : I am trying to establish a bluetooth connection between my J2ME application using JSR-082 API and my desktop application written with Python using pybluez bluetooth API . However I could not find a suitable bluetooth communication protocols to pair them . In pybluez the way you connect to a server is as follows : .. . .. . However in JSR-082 bluetooth API the way you create a server is as follows : .. . .. . or as follows : .. . .. . In pybluez API we use port numbers and in JSR-082 API we use URLs . How am I going to establish a bluetooth connection then Is there a way to create a server using a port-number in JSR-082 API Comment : I tried to do the same thing but I failed . I recommend you to use Java on both mobile phone JSR 82 and computer BlueCove JSR 82 implementation : bluecove.org http : bluecove.org .. . Answer : Using JSR-82 you create a server based on a UUID . You need to perform an SDP search to determine the port actually channel number for RFCOMM or PSM for L2CAP of the remote service . So in pybluez you d call bluetooth.find service as shown here http : code.google.com p pybluez source browse trunk examples simple sdp-browse.py examine each of the services returned and pick the one with a matching UUID service-id in bluez .", "Question : I have a host device that connects to anything running JSR-82 . The problem is that I don t have a mobile device that runs JSR-82 applications . I wish I could simply connect to my host device within windows . Is this possible I am currently running Vista x64 .. . Answer : If you know what protocol the host device is speaking you could write your own client using regular desktop Java and the Bluecove http : bluecove.org implementation of JSR-82 .", "Question : Using JSR082 1.1.jar from Java Wireless Toolkit 3.0 .. . I m trying to get the local device for later discovery of others .. . but i keep getting null for the call LocalDevice.getLocalDevice .. . .. . while in the docs they say this method cannot return null.. . docs http : bluecove.org bluecove apidocs javax bluetooth LocalDevice.html getLocalDevice 28 29 .. . .. . My bluetooth is ON checked on 2 computers Win7 OSX 10.6 .. . .. . Help Thanks Comment : What Bluetooth driver stack are you using at least for Windows and second is it a x86 or x64 architecture .. . Answer : I believe the JSR-82 JAR file distributed with the Wireless Toolkit contains only the interfaces not a working implementation of the Bluetooth API . This allows you to compile code that uses JSR-82 but not to test it . You should get a copy of Bluecove http : www.bluecove.org a free implementation of JSR-82 you can run on the desktop . Make sure you re using the 32-bit JVM though use the -d32 command-line argument . Comment : Thank you both Bluecove and the link and the -d32 comments were spot on", "Question : I made the simple j2me login application code is below . It s working perfectly on emulator now I want to run it on my mobile-application via bluetooth connection . In other word phone j2me application -pc servlet communication via bluetooth . Need help . update device supports JSR 82 http : www.jcp.org en jsr detail id 82 Java APIs for Bluetooth 1.1 . .. . .. . and this is my servlet code Comment : does your device support JSR 82 Java APIs for Bluetooth http : www.jcp.org en jsr detail id 82 Comment : yes it does support JSR 82 Java APIs for Bluetooth 1.1 Comment : @gnat please can you tell me the solution for my problem. . .. . Answer : I think this is where the actual problem is Just change your String url http : localhost : 8084 j2metest getText to its computer s ip like 192.168.1.1 kind of and then try again . The reason behind this is when you run Java ME code on Emulator it detects localhost . But Now when you deployed that application on mobile and connects it with Bluetooth you are accessing Computer from the outside so in this case localhost will not work . you need to pass its IP . Comment : so in that case it should be like http : 192.168.1.23 j2metest getText am i right.. . But this is an public ip LAN that can t be accessible using internet . On the other hand i need the interaction via bluetooth . And thanks for your reply. . Comment : yes you are right just put that ip string try again . I am 1000 sure that 192.168.1.23 will not be accessible by internet . on internet it might has some another live ip-address . Comment : can you give me any example my live ip is 117.224.102.39 and i made the string like http : 117.224.102.39 j2metest getText but it is not accessible . I mean google says Oops Google Chrome could not connect to 117.224.102.39 . Comment : contact to your network admin and tell him this issue Comment : it s done i was missing port-number . thanks for ur valuable help .", "Question : I have a host device that connects to anything running JSR-82 . The problem is that I don t have a mobile device that runs JSR-82 applications . I wish I could simply connect to my host device within windows . Is this possible I am currently running Vista x64 .. . Answer : Have you tried for example using phone emulator from Nokia s SDK http : www.forum.nokia.com Resources 5Fand 5FInformation Tools Java 5FTools.xhtml Comment : I tried.. . but I can t seem to get these to install in Vista x64", "Question : I have a host device that connects to anything running JSR-82 . The problem is that I don t have a mobile device that runs JSR-82 applications . I wish I could simply connect to my host device within windows . Is this possible I am currently running Vista x64 .. . Answer : Considering even the latest Java Platform Micro Edition Software Development Kit 3.0 doesn t officially support Vista x64 http : java.sun.com javame downloads sdk30.jsp req I can only advise using a different operating-system . Sorry .", "Question : When I run following code on my phone I get black screen saying there was uncaught exception but whole block is wrapped in try-catch block so it is weird anyway when I proceed with execution code just gets to Getting device. . so it obviously fails on this line : .. . .. . Here is whole method : .. . .. . Any ideas .. . Answer : It looks like device I used doesn t support JSR-82 which is J2ME Bluetooth API this is built into phone no way of installing it required to use Bluetooth from J2ME Midlets here is snippet which should check for JSR-82 support : .. . .. . Please note that I got uncaught exception trying to run above snippet but maybe it would work on some other device .", "Question : Are there any workarounds to connect to HID device using L2CAP in JAVA ME using JSR-82 specification implementation native to mobile device not BlueCove etc . I know that HID devices usually uses PSMs Protocol Service Multiplexor with 0x0011 value . Unfortunately as I found : .. . .. . Legal PSM values are in the range 0x1001..0xFFFF and the least significant byte must be odd and all other bytes must be even . Above explains why javax.microedition.io.Connector connect method throws exception when I try following code : .. . Answer : This page https : jcp.org aboutJava communityprocess maintenance jsr082 MR4changes.html suggests that the restriction was removed in JSR-82 1.2 : .. . .. . Legal PSM values are in the range 0x0005..0xFFFF and the least significant byte must be odd and all other bytes must be even . When a server connection-string does not have a psm parameter the server PSM value assigned by the implementation must be no less than 0x1001 . And the comment : .. . .. . Remove reserved ranges from L2CAP PSM values to allow a Java application to use a Bluetooth protocol that is built on top of L2CAP using a PSM value in the reserved range . Also the interrupt endpoint is PSM 0x13 that s where keyboards mice etc will send unsolicited reports just like they would send on the control channel 0x11 in response to GET REPORT .", "Question : null .. . Answer : So there are many SO posts related to this issue - .. . .. . java.io.IOException : JSR82 accept : Connection is not created failed or aborted http : stackoverflow.com questions 17327579 java-io-ioexception-jsr82-accept-connection-is-not-created-failed-or-aborte .. . .. . java.io.IOException : JSR82 while connecting to a bluetooth device http : stackoverflow.com questions 22009141 java-io-ioexception-jsr82-while-connecting-to-a-bluetooth-device .. . .. . Other Posts - .. . .. . http : android.2317887.n4.nabble.com getting-exception-while-connecting-to-server-via-bluetooth-td11390.html .. . .. . http : www.coderexception.com Cbz1B31bPPQixWQQ connection-is-not-created-failed-or-aborted-exception-thrown-during-bluetooth-connection-in-android .. . .. . Tried everything from reflection to without reflection but none worked - .. . .. . If you see carefully to the above code then you notice - .. . .. . 1 Tried reflection with port 1 .. . .. . 2 If 1 fails then tried reflection with port 2 .. . .. . 3 If 2 fails then tried reflection with port 3 .. . .. . 4 If 3 fails then tried without reflection .. . .. . In short used everything but none worked . My exception trace - .. . .. . Any help will be appreciated Comment : I had a similar problem . For me the issue was that my SPP server was bound to a channel which was already used so actually the android device didn t try to connect to the SPP server but something else . I modified the UUID of my server tried to connect to that channel identified by that unique UUID and worked . So if someone has a problem check that you really try to connect to the very channel you d like to Comment : Have you find a solution", "Question : Bluetooth FTP specification says I need to use ACTION operation here s a page http : i47.tinypic.com 2425t2v.png .. . .. . But the ClentSession http : library.developer.nokia.com index.jsp topic Java Developers Library GUID-9F75713D-5642-4C39-9A33-C20928F37BF7 javax obex ClientSession.html provides only GET and PUT operations and nothing mentioned in javadocs . here s how the create file operation looks it s pretty easy .. . .. . Question 1 : How do I implement ACTION operation with custom headers to perform move rename and set permissions It should be possible without JSR82 OBEX API . Please help me to do this . Question 2 : Did I understand how to set permissions According to OBEX Errata Compiled For 1.3.pdf thanks alanjmcf 1 http : i45.tinypic.com 2h84led.jpg .. . .. . 2 http : i49.tinypic.com 2wgysmx.png .. . .. . So to set read-only I should do the following : .. . .. . if right the only problem remains the question 1 : how do I make ACTION operation and how to set the headers . Comment : +1 for all shiny pictures Comment : code.google.com p blueframe source checkout http : code.google.com p blueframe source checkout - maybe something in there Comment : @AmigableClarkKant The devices exchange data of their own format . It doesn t help me creating headers which the target device will recognize as OBEX ones . .. . Answer : Note that the text you quote from the Bluetooth FTP specification mentions three headers : ActionId Name DestName . So you need to add one NAME header and one DestName header . Jsr-82 apparently doesn t define the const for that new header so quoting from the OBEX specification : .. . .. . MODIFICATION .. . 2.1 OBEX Headers .. . .. . So create the following etc . My Java s a bit rusty .. . .. . And use that in your code . ADD All the operations actions that are actions use the ACTION operation : - That is use OBEX opcode ACTION instead of PUT or GET etc . The value of opcode ACTION is 0x86 . I m reading this from OBEX Errata Compiled For 1.3.pdf . The IrDA did charge for specifications but seem to now provide them on request http : www.irda.org . Ask for a copy of the latest OBEX specs 1.5 IIRC . I ve done so myself but not yet got a response . Or you could maybe try googling for say move rename object action to get that 1.3 Errata PDF . Anyway if Java prevents you from using new Opcodes only allowing GET and PUT and also prevents you from using new HeaderId values then you can t proceed anyway . : - There s no reason for them to do that as HeaderId encodes the data type it contains . After having another look at the Java API I can t see any way of sending an arbitrary command over ClientSession . You d have to manually build the packets connect to the OBEX service and then send and receive packets over that connection . It isn t too difficult to build the packets.. . Comment : But I still don t have the idea how to do that . Comment : Though this answer was awarded my question remains unanswered .", "Question : I am searching for some help with JSR-82 . I have searched for a long time and even had my project supervisor at uni helping me out and so far I have had no luck . My Problem.. . I have a project whereby I simply need to scan for Bluetooth Devices .. . .. . I have not yet been able to get my Bluetooth device scanning . I am using Eclipse IDE in CentOS 5.5 and am trying to use Bluecove . I have downloaded bluecove-gpl-2.1.0.jar and added it to my Eclipse Build Path and the code i am using is sample code provided by BlueCove RemoteDeviceDiscovery Found here : http : bluecove.org bluecove apidocs overview-summary.html DeviceDiscovery . Before i can even compile javax.Bluetooth . is underlined suggesting it cannot find it - Now as far as i am aware this should be within the bluecove jar file i mentioned previously . How on earth do I get this thing working Ive tried using JSR82.com but that wasnt much help at all .. . .. . If any one has the time to assist me you would be concidered a god haha .. . .. . thanks .. . .. . Ryan .. . Answer : With bluecove on linux you need to provide the bluecove.jar and bluecove-gpl.jar . http : code.google.com p bluecove wiki Documentation Comment : Hi Thankyou for your answer . I have been reading through the documentation for BlueCove and although it suggests that both the bluecove.jar and bluecove-gpl.jar are required on the downloads section of the website it says that the bluecove-gpl.jar is for linux and bluecove.jar is for windows Mac.. . Am i supposed to be adding these to the CLASSPATH system variable or can i just get away with adding these to the Eclipse Project build path Thanks once again - Ryan Comment : Adding them in eclipse should be fine . From my understanding of whats going on over at bluecove you need the bluecove.jar to implement any j2se bluetooth support . the bluetooth-gpl.jar is an extension of the bluecove.jar that provides access to blueZ driver in linux . Comment : Thanks again for the reply . But ive still got a problem - Im still trying to use Bluecove s code RemoteDeviceDiscovery but everytime i compile run from Eclipse i got the following error. . Native Library bluecove not available Exception in thread main javax.bluetooth.BluetoothStateException : BlueCove library bluecove not available From my understanding it cannot find Javax.bluetooth . but in Eclipse its not underlining the import for bluetooth . Although in my JRE Directory opt jdk1.6.0 24 jre lib ext I have put the 2 JAR s aswell..but still no luck . im just getting the same error Comment : A quick google found this : groups.google.com group bluecove-users browse thread thread http : groups.google.com group bluecove-users browse thread thread d55f719fdf590989 Comment : @Ryan Have you implemented bluecove in android . If so share your experience to implement the same .", "Question : null .. . Answer : I am trying to do communication between a mobile-application using J2ME and JSR82 and Desktop application in C using InTheHand Library . I am using RFComm protocol with UUID : 00000003-0000-1000-8000-00805f9b34fb . I have manually specified uuid on both devices . I have mobile-application to wait for incoming connections while desktop application sends data to it . But my mobile-application just does not listen to incoming connection . It just hangs at the message : Waiting for incoming connection.. . .. . .. . J2ME code in Mobile Application : .. . .. . C Code in Desktop App : .. . .. . Please help me out on this .", "Question : I am trying to implement a server-client connection over the spp . After initializing the server I start a thread that first listens for clients and then receives data from them . It looks like that : .. . .. . It s working fine for I am able to receive messages . What s troubling me is how would the thread eventually die when a device goes out of range Firstly the call to receive.read buffer blocks so that the thread waits until it receives any data . If the device goes out of range it would never proceed onward to check if meanwhile it has been interrupted . Secondly it would never close the connection i.e . the server would not accept the device once it goes back in range . .. . Answer : When the remote device goes out of range after the link supervision timeout expires the local stack should close the connection . Depending on the JSR-82 implementation receive.read buffer will return -1 or will throw an IOException . You can simulate this by turning off the remote device or moving it out of range . Comment : Much appreciated Comment : You can also by let the phone actually go out of range by putting it inside a potato chip bag . Or any other bag with a thin metal layer .", "Question : I need just a basic example or tutorial of making a mobile phone and a computer communicate via Bluetooth . A good link website to start from is also appreciated . Server part computer part can be made on many programming-languages Java C++ Python or even something else . Client part mobile phone must be a Java Micro Edition MIDlet . .. . Answer : After many days of research I managed to make an application that sends in real-time screenshots of area around the mouse cursor on a computer to a mobile phone client . Both client and server are written in Java . I used BlueCove http : bluecove.org to make the desktop part . It is a JSR-82 implementation the same protocol as in MIDP so desktop and mobile parts share a lot of code . .. . .. . In case someone needs it I release the application as public domain without any responsibilities . Download the code http : dl.dropbox.com u 3146321 web dl files stack stackoverflow-3198306 BluetoothClientServer.zip .. . .. . I m not really proud of it . After all I was 15 when I wrote it . The code is horrible in some places but I enjoyed making the abstraction for code-reuse . Comment : Can you help me solve my problem. . please post in details how you created the server j2se and the client j2me .. . just by a simple function or 2 for each of them. . I need it badly. . and i am not getting my answer here .", "Question : I have requirement of getting an unique identification number programmatically from all j2me supported phones . As we already know getting IMEI IMSI in S40 devices is almost not possible bluetooth MAC address obex push profile UUID may help . But for this bluetooth should be turned on in mobile . And I don t know how many devices will support jsr82 . Is there some other unique id which will differentiate j2me devices .. . Answer : Use the value of System.currentTimeMillis when the user first starts the app . Unless two users start their app at precisely the same millisecond v . unlikely this will be unique .", "Question : Currently I am using jad to set the http and Bluetooth permissions . But I have a problem with this approach . Some of the handsets does not have support for bluetooth API so the phone is not allowing the installation of the application as it does not support the bluetooth API . Is there any alternate way of setting these permissions Comment : This will be the soln : MIDlet-Permissions-Opt : javax.microedition.io.Connector.bluetooth.client This is how u can specify optional permission . Comment : So . . Did it work Comment : Yes its working fine for me . .. . Answer : If a handset does not have Bluetooth API then the Java Virtual Machine does not have javax.bluetooth package . Because of this the handset may not allow you to install the app . Create another version of your app without any usage of the javax.bluetooth package and try installing again . Comment : This will be the soln : MIDlet-Permissions-Opt : javax.microedition.io.Connector.bluetooth.client This is how u can specify optional permission ." ] }
[ "yes-answer-long", "yes-answer-short" ]
bluetooth
UNK_RELATION
cached-resource@web-services@111
cached-resource -- cachedresource is a ruby gem whose goal is to increase the performance of interacting with @placeholder via activeresource by caching responses based on request parameters .
{ "confidence": [ 34.279258728027344, 32.75879669189453, 25.224729537963867, 14.999215126037598, 10.188333511352539, 10.188333511352539, 10.188333511352539, 10.188333511352539, 10.188333511352539 ], "content": [ "Gem activeresource-response was causing that problem .", "Please suggest if any other gem can help me in caching activeresource calls .", "Using cached-resource https : github.com Ahsizara cached-resource gem for caching active resources .", "Check this blog post bloggershetty.blogspot.in 2007 04 http : bloggershetty.blogspot.in 2007 04 ruby-typeerror-singleton-cant-be-dumped.html could help you :", "User model .. . .. . I am trying to cache user resources .", "users : user id .. . .. . Whenever i am calling users : user id endpoint it gives me error singleton can t be dumped at line super User.find @teacher id .. . .. . Please let me know if any other info is required .", "I am stucked with it please help me out .", "It was making my class singleton .", "Because of that it was throughing singleton dump error ." ] }
{ "confidence": [ 45.161155700683594 ], "content": [ "Question : Using cached-resource https : github.com Ahsizara cached-resource gem for caching active resources . User model .. . .. . I am trying to cache user resources . users : user id .. . .. . Whenever i am calling users : user id endpoint it gives me error singleton can t be dumped at line super User.find @teacher id .. . .. . Please let me know if any other info is required . I am stucked with it please help me out . Please suggest if any other gem can help me in caching activeresource calls . Comment : Check this blog post bloggershetty.blogspot.in 2007 04 http : bloggershetty.blogspot.in 2007 04 ruby-typeerror-singleton-cant-be-dumped.html could help you : .. . Answer : Gem activeresource-response was causing that problem . It was making my class singleton . Because of that it was throughing singleton dump error ." ] }
[ "yes-answer-long", "yes-answer-short" ]
web-services
UNK_RELATION
intellisense@code-completion@73
intellisense -- intellisense is microsoft s implementation of automatic @placeholder best known for its use in the microsoft visual-studio integrated development-environment .
{ "confidence": [ 46.83123779296875, 45.553775787353516, 44.2672119140625, 44.139015197753906, 43.41191864013672, 42.71537780761719, 41.938926696777344, 41.80970764160156, 41.742515563964844, 41.4444465637207, 40.7720947265625, 39.996337890625, 39.996337890625, 39.969783782958984, 39.96635818481445, 39.96635818481445, 39.554927825927734, 39.554927825927734, 39.52728271484375, 38.77657699584961, 38.62118148803711, 38.52888107299805, 38.41994094848633, 38.08559799194336, 37.91083526611328, 37.91083526611328, 37.90045928955078, 37.81352996826172, 37.74155807495117, 37.48027801513672, 37.38645935058594, 36.87322235107422, 36.87322235107422, 36.87322235107422, 36.87322235107422, 36.87322235107422, 36.86610412597656, 36.82916259765625, 36.798980712890625, 36.74722671508789, 36.65369415283203, 36.253021240234375, 35.93896484375, 35.672401428222656, 35.65605545043945, 35.621891021728516, 35.601131439208984, 35.00384521484375, 34.99653244018555, 34.94916534423828, 34.87192153930664, 34.82981872558594, 34.8213005065918, 34.750343322753906, 34.750343322753906, 34.69301223754883, 34.62541961669922, 34.61513137817383, 34.23873519897461, 34.18678283691406, 34.142486572265625, 34.085819244384766, 33.99824142456055, 33.98225402832031, 33.96623229980469, 33.811344146728516, 33.811344146728516, 33.79496765136719, 33.697174072265625, 33.65739822387695, 33.64201354980469, 33.60954666137695, 33.60741424560547, 33.577518463134766, 33.52482223510742, 33.52482223510742, 33.52482223510742, 33.52482223510742, 33.277130126953125, 33.277130126953125, 33.277130126953125, 33.277130126953125, 33.26824188232422, 33.2315673828125, 33.2315673828125, 33.11746597290039, 33.084983825683594, 32.950340270996094, 32.950340270996094, 32.80952453613281, 32.74906539916992, 32.65908432006836, 32.65908432006836, 32.65908432006836, 32.65908432006836, 32.65908432006836, 32.65908432006836, 32.65908432006836, 32.65908432006836, 32.65908432006836 ], "content": [ "IntelliSense from Visual Studio : .. . .. .", "The source code of Visual Studio Intellisense", "Resharper- Options- IntelliSense- General Set to Visual Studio native IntelliSense.. .", "Visual Studio 2010 SP1 breaks SSMS 2008 R2 s IntelliSense .", "If IntelliSense from Visual Studio Menu RESHARPER- Options .. . - IntelliSense and select Visual Studio then the drop-down menu has hints .", "You can use a CDN and still have Intellisense support in Visual Studio .", "I installed Security Update for microsoft Visual Studio 2010 Service Pack 1 KB2565057 and lost Intellisense in SQL Server Management studio 2008 not R2 .", "How to configure IntelliSense in Visual Studio Code", "I use Visual Studio at work and use intellisense as a crutch quite often .", "jQuery Intellisense in Visual Studio 2008 http : codeasp.net articles jquery-intellisense-in-visual-studio-2008 102 tips-tricks-of-visual-studio", "My intellisense is not working in visual-studio-2015 .", "possible duplicate of Visual Studio 2015 Broken Razor Intellisense http : stackoverflow.com questions 31581666 visual-studio-2015-broken-razor-intellisense", "See also : Visual Studio 2015 Broken Razor Intellisense http : stackoverflow.com questions 31581666 visual-studio-2015-broken-razor-intellisense", "I have been having issues with Intellisense in Microsoft Visual Studio 2012 http : en.wikipedia.org wiki Microsoft Visual Studio Visual Studio 2012 .", "How in detail do Microsoft implement their as-you-type Intellisense", "An uninstall of the SP restored Intellisense . . Don t you just love Microsoft", "Resharper overrides the intellisense of Visual Studio and therefore it will not work .", "On the page Intellisense General : change to Visual Studio .", "Microsoft must use a XML library of command keywords but my question is : How in detail do Microsoft implement their Intellisense as-you-type Intellisense and how hard would it be for me to create my own of the same standard", "I m looking for a Visual Studio Intellisense-like feature with Resharper .", "IntelliSense can be reverted to Visual Studio as follows : .. . .. . Resharper Options IntelliSense General Custom IntelliSense set C to Visual Studio .. . .. . No sure how much Resharper benefit I m losing by doing this - but needs must .", "restart Visual Studio and you will get the Jquery intellisense working .", "I use Microsoft Visual Studio 2012 .", "The problem is that the Intellisense still shows the following line as an error : .. . .. . Is a way to add this to the Visual Studio 2013 Intellisense", "There are some problems with my Visual Studio 2015 actually with Intellisense .", "Visual studio by default doesn t has IntelliSense syntax-highlighting for PHP .", "Visual Studio has the best intellisense support and you can utilize that using IronPython", "@a3.14 Infinity not directly - I m looking to pull in intellisense for Visual Studio Code not Visual Studio .", "Possible duplicate of Visual Studio not showing IntelliSense descriptions anymore http : stackoverflow.com questions 37500027 visual-studio-not-showing-intellisense-descriptions-anymore", "As @Balthasar pointed out and in case you are using Resharper you will need to enable intellisense from Visual Studio for it to work : .. . .. . Resharper - options - environment - intellisense - general select Custom Intellisense and for Javascript you can select Visual studio .", "I had read this post http : www.johnpapa.net intellisense-witha-visual-studio-code which talks about this issue demonstrating how you can use intellisense with angular .", "I m in Visual Studio 2008 SP1 with the vsdoc intellisense hotfix patch applied .", "Visual Studio Code uses OmniSharp http : www.omnisharp.net to provide IntelliSense support .", "I am wanting to write an addition to intellisense in Visual Studio .", "Convert the Visual Studio Intellisense Helper into a format Aptana can understand .", "Native C++ intellisense does not work reliably in any version of Visual Studio .", "How can I disable automatic namespace resolution in Intellisense for C Visual Studio 2010", "How can i extend the timeout for intellisense appearing in Visual Studio .", "I guess this has something to do with the ReSharper extension and its IntelliSense settings which override Visual Studio s IntelliSense settings .", "I had to reset the settings.. . .. . .. . C : Program Files Microsoft Visual Studio 9.0 Common7 IDE devenv.exe ResetSettings .. . .. . thread on this here http : stackoverflow.com questions 178846 visual-studio-intellisense-stopped-working", "In Visual Studio Intellisense always substitutes string for String so that I get things like : .. . .. . where the underlined section was added by Intellisense .", "Microsoft VisualStudio 14.0 for Visual Studio 2015", "Intellisense is known to kill over on large C++ projects .", "I m trying the Visual Studio Code 1.0 but the new Intellisense called Salsa is not working for me .", "I am trying to get Jquery intellisense working in Visual Studio 2010 .", "In my previous company I was supposed to use it but the moment I installed ReSharper it completely hijacked the Visual Studio native intellisense .", "How would i have my language use intellisense in visual studios", "The visual-studio IDE will scan any js files referenced in the HTML files and use them if neccesary for the intellisense etc .", "Intellisense now works as does Phat Studio .", "If you want to pick up the Intellisense file from the Microsoft CDN you can use :", "I trying to create a class in TypeScript in Visual Studio 2013 with method func1 with alias func1 Alias and show both in IntelliSense as methods but IntelliSense shows alias as property instead of method .", "Can you program configure Visual Studio to produce custom intellisense for your own server controls .", "Possible Duplicate : .. . Visual Studio not showing IntelliSense descriptions anymore http : stackoverflow.com questions 37500027 visual-studio-not-showing-intellisense-descriptions-anymore .. . .. . A most frustrating problem : Visual Studio 2015 Intellisense has suddenly stopped showing class-method etc information in the pop-up a most useful feature just gone", "To get it working again : .. . .. . options - developer assistant - Intellisense - Default Visual Studio Intellisense .. . .. . Took me 5 hours to find that : .. . .. . HTH .", "All of those little icons in the IntelliSense window do have a meaning http : stackoverflow.com questions 4462439 meaning-of-visual-studio-intellisense-icons you know .", "Is there a way in Visual Studio 2015 to have IntelliSense work the way it used to in Visual Studio 2013", "I am trying to customize intellisense in a javascript function in visual-studio without annotating the function .", "Some very useful links jQuery intellisense in Visual Studio : .. . .. . FAQ on JavaScript Intellisense : http : blogs.msdn.com webdevtools archive 2008 11 18 jscript-intellisense-faq.aspx .. . It explains how the path style is important to Visual Studio ASP.NET Web Forms and ASP.NET MVC .", "The intellisense is determined by a .d.ts file .", ".. . .. . So Intellisense tooling for Python is reduced to best-guesses .", "By default all I get in intellisense are the functions and its signature .", "I ve tried it with Visual Studio 2008 and its IntelliSense is a whole lot better than the default one .", "like a microsoft visual-studio tool for example", "Explicitly enable Visual Studio s javascript-intellisense .", "I have a .less file that is basically a .css file but visual-studio will not use .css intellisense on the file .", "And IntelliSense will be enabled .", "Yet no Intellisense .", "The only reliable solution I have found despite their attempts to hotfix is to disable Intellisense by removing renaming Program Files x86 Microsoft Visual Studio 9.0 VC vcpackages feacp.dll .", "If you want the Visual Studio style statement completion then you can switch back by using ReSharper - Options.. . - Environment - IntelliSense - General and selecting Visual Studio or Custom IntelliSense if you want to customize it a bit more .. . .. . ReSharper s IntelliSense may not have coloured tooltips but is more configurable and more intelligent than the Visual Studio version .", "Visual Studio uses independent implementations of IntelliSense for each of its supported languages so the answer will likely depend on the particular language in use .", "Looking forward to the resolution of 957 - Intellisense for nodejs required packages https : github.com Microsoft vscode issues 957 .", "Since not all people use jQuery in a Visual Studio Environment the intellisense file was created later after VS added in better support for JavaScript .", "C : Program Files x86 Microsoft Visual Studio 11.0 JavaScript References", "You ll want to look at this link : .. . .. . http : blogs.ipona.com james archive 2008 02 15 JQuery-IntelliSense-in-Visual-Studio-2008.aspx .. . .. . UPDATE : There is a new HotFix for Visual Studio 2008 and a new jQuery Intellisense Documentation file that brings full jQuery Intellisense to VS 08 .", "When using Intellisense in Visual Studio 2015 update 3 it adds color to the class types parameters return-type etc .", "As an example to illustrate my question if the intellisense file contains : .. . .. . Then in Visual Studio I can do this i.e .", "stackoverflow.com questions 30206049 http : stackoverflow.com questions 30206049 how-to-set-intellisense-for-angular-js-and-javascript-in-visual-studio-code", "This documentation is available in the intellisense if you are using visual-studio and can remind you or others later of the exceptions that you can expect .", "It worked one time but after I closed Visual Studio and restarted it intellisense didn t work again .", "I am having a very strange IntelliSense issue and I m not sure if it s Visual Studio 2013 or ReSharper 8.1 .", "I m seeing some strange behaviour with JavaScript intellisense in Visual Studio 2013 Express for Web .", "I am having problems making Intellisense work under Visual Studio 2013 2015 with RequireJS client-side .", "I have been playing around with Visual Studio Code today and have been having a problem getting intellisense to work with some of the code in a JavaScript project .", "Standard Intellisense http : i.stack.imgur.com q1GDH.png .. . .. . ReSharper Intellisense .. . .. .", "ReSharper - Options - IntelliSense - General - Limited Resharper IntelliSense .", "The problem I have with this setup is that visual-assist intellisense features is disable even after I disable resharper intellisense features .", "DIY Intellisense By yetanotherchris http : www.codeproject.com Articles 5839 DIY-Intellisense .. . .. . 2 .", "IntelliSense for function http : i.stack.imgur.com OvBSp.png", "IntelliSense for property http : i.stack.imgur.com Ks0eu.png", "The PyDev http : pydev.sf.net environment for Eclipse has intellisense-like functionality for Python .", "I d like to get Intellisense support in Visual Studio for the options objects I use in my method calls .", "Since Visual Studio can t figure out where the MasterPage is it s causing all of the intellisense to break .", "Visual Studio Code updated itself after that I found that my C IntelliSense seems to be broken .", "Visual Studio intellisense for AngularJS is extremelly sentimental nice way to say it s most likely poorly developed .", "Look at this post here http : stackoverflow.com questions 8902232 how-to-turn-intellisense-on-in-visual-studio-2010 .", "I m trying to get proper Intellisense suggestions for my javascript code in Visual Studio Code .", "When using std : : async to run a member function in a thread Visual Studio IntelliSense says that there is an error :", "Visual Studio http : s2.ipicture.ru uploads 20130319 n0UQD0fs.png .. . .. . IntelliSense from ReSharper : .. . .. .", "possible duplicate of stackoverflow.com questions 1644490 http : stackoverflow.com questions 1644490 emacs-completions-or-intellisense-the-same-as-on-visual-studio", "I m trying to get intellisense into my visual-studio-code install for various libraries ." ] }
{ "confidence": [ 58.14875793457031, 56.556610107421875, 56.107994079589844, 54.390220642089844, 53.639732360839844, 53.451622009277344, 52.3156623840332, 52.28644943237305, 52.184730529785156, 51.988189697265625, 51.47284698486328, 51.076454162597656, 51.01118850708008, 50.498573303222656, 50.164608001708984, 49.73417282104492, 49.66975402832031, 49.3929443359375, 48.65503692626953, 48.54697036743164 ], "content": [ "Question : I have a fairly large C++ solution in Visual Studio 2008 SP1 . When I RIGHT CLICK I see the updating intellisense in the status bar and the whole studio freezes for several minutes . Right click worked fine in 2005 . Any workarounds .. . Answer : Intellisense is known to kill over on large C++ projects . The only reliable solution I have found despite their attempts to hotfix is to disable Intellisense by removing renaming Program Files x86 Microsoft Visual Studio 9.0 VC vcpackages feacp.dll . Luckily an add-on like Visual Assist is quite the superior replacement to Intellisense I find .", "Question : does anyone know how to get intellisense to work reliably when working in C C++ projects It seems to work for about 1 in 10 files . Visual Studio 2005 seems to be a lot better than 2008 . Edit : Whilst not necessarily a solution the work-around provided here : .. . .. . http : stackoverflow.com questions 39474 how-to-get-intellisense-to-reliably-work-in-visual-studio-2008 39590 .. . .. . Is probably the best bet if I want a decent intellisense system . .. . Answer : Native C++ intellisense does not work reliably in any version of Visual Studio . I find there are two common problems : .. . .. . 1 Header file paths are not set-up correctly . When you find a type where intellisense is not working use the IDE to click through each header file to find the one containing the type . Right click on include and select Open Document.. . . If this fails before you get to the file which declares the type then this is your problem . Make sure header file-search paths are set-up correctly . And .. . .. . 2 The intellisense database is corrupt . This happens ALL The time . You need to close the solution delete the .ncb file and then reopen the solution . I posted the macro I use for this in answer to another question here http : stackoverflow.com questions 15056 do-you-have-any-recommended-macros-for-microsoft-visual-studio 32884 . .. . .. . The preprocessor can also confuse intellisense - so make sure any defines during build are also available to intellisense . Other than that I don t know what else can break it . I ve not seen any particular issues with forward declarations . Comment : Thats a helpful solution to delete the ncb file . : Comment : Note : Intellisense was fixed in VS2010 . Comment : Damn it Microsoft I have 544 includes in this project not counting the nested includes in them and countless defines . Fix your s Thanks to the poster for the idea . Comment : +1 deleting the sdf VS2010 s new extension for what what was ncb in 08 worked for me . I closed the VS solution deleted the solution s SDF file re-opened the solution re-built the solution and voila .", "Question : I am interested in writing a generic Intellisense enabled editor for SQL and C et al . if possible . I would like to do this in C as an overridden or extended WPF richTextBox-type control . I know there are many example projects available and I have implemented a basic version of my own but most of the examples that I have come across and indeed my own are just that basic . A couple of code examples are : .. . .. . 1 . DIY Intellisense By yetanotherchris http : www.codeproject.com Articles 5839 DIY-Intellisense .. . .. . 2 . CodeTextBox - another RichTextBox control with syntax-highlighting and Intellisense By Tamas Honfi http : www.codeproject.com Articles 29154 CodeTextBox-another-RichTextBox-control-with-synta .. . .. . I have however found a great example of an SQL editor with Intellisense QueryCommander SQL Editor By Mikael H kansson http : www.codeproject.com Articles 9465 QueryCommander-SQL-Editor which seems to work well . Microsoft must use a XML library of command keywords but my question is : How in detail do Microsoft implement their Intellisense as-you-type Intellisense and how hard would it be for me to create my own of the same standard .. . .. . Edit A : A year on and I have managed to develop my own editor control with basic intellisense mainly for my own enjoyment . I thought I would come back provide a list of freely available .NET projects that helped me with my own development and can be used out-of-the-box and free of charge : .. . .. . 1 . ICSharpCode WinForms http : www.codeproject.com Articles 30936 Using-ICSharpCode-TextEditor .. . .. . 2 . AvalonEdit WPF http : www.codeproject.com Articles 42490 Using-AvalonEdit-WPF-Text-Editor .. . .. . 3 . ScintillaNET WinForms http : scintillanet.codeplex.com .. . .. . 4 . Query Commander for example of intellisense implementation WinForms http : www.codeproject.com Articles 9465 QueryCommander-SQL-Editor .. . .. . .. . .. . Edit B : 15 months after the question was asked I am still looking for new improved editors . This one is nice.. . .. . .. . 1 . RoslynPAD http : arbel.net 2013 05 11 roslynpad is cool .. . .. . .. . .. . Edit C : 2 years+ on from the question I have found the following projects both using WPF and backed by AvalonEdit . .. . .. . 1 . CodeCompletion for AvalonEdit https : github.com lukebuehler NRefactory-Completion-Sample using NRefactory . This project is really nice and has a full implementation of intellisense using NRefactory . 2 . ScriptCS https : github.com scriptcs scriptcs ScriptCS makes it easy to write and execute C with a simple text-editor . Comment : What exactly do you want The source code of Visual Studio Intellisense How is VS Intellisense better than yours and what problem do you have with implementing that Comment : Have you taken a look at codeproject.com Articles 42490 Using-AvalonEdit-WPF-Text-Editor http : www.codeproject.com Articles 42490 Using-AvalonEdit-WPF-Text-Editor yet AvalonEdit not only has syntax-highlighting but also an extendable autocomplete feature . Comment : I would like to code an editor-like control that can be used in WPF and Win7 Phone apps . I don t neccessary want MS source just the methodology they use to implement this functionality . It seems that every thing I have come accross doesn t come close to its efficiency . I will take a look at AvlonEdit now . Thank you both for your time . Comment : Any more updates since last edit - Thanks . .. . Answer : This is an area where Microsoft typically produces great results - Microsoft developer tools really are awesome . And there is a clear commercial advantage for sales of their developer tools and for sales of Windows to having the best intellisense so it makes sense for Microsoft to devote the kind of resources Eric describes in his wonderfully detailed answer . Still I think it s worth pointing out a few of things : .. . .. . 1 . Your customers may not actually need all the features that Microsoft s implementation provides . The Microsoft solution might be incredibly over-engineered in terms of the features that you need to provide to your customers users . Unless you re actually implementing a generic coding environment that is intended to be competitive with Visual Studio it is likely that there are aspects of your intended use that either simplify the problem or that allow you to make compromises on the solution that Microsoft feels they cannot make . Microsoft will likely spend resources decreasing response times that are already measured in hundreds of milliseconds . That may not be something you need to do . Microsoft is spending time on providing an API for others to use for code-analysis . That s likely not part of your plan . Prioritize your features and decide what good enough looks like for you and your customers then estimate the cost of implementing that . 2 . In addition to bearing the obvious costs of implementing requirements that you may not actually have Microsoft also carries some costs that may not be obvious if you haven t worked in a team . There are huge communication costs associated with teams . It s actually incredibly easy to have five smart people take longer to produce a solution than it takes for a single smart person to produce the equivalent solution . There are aspects of Microsoft s hiring practices and organizational structure that make this scenario more likely . If you hire a bunch of smart people with egos and then empower all of them to make decisions you too can get a 5 better solution for 500 of the cost . That 5 better solution might be profitable for Microsoft but it could be deadly for a small company . 3 . Going from a 1 person solution to a 5 person solution increases the costs but that s just the intra-team development costs . Microsoft has separate teams that are devoted to roughly design development and testing even for a single feature . The project-related communication between peers across these boundaries has higher friction than within each of the disciplines . This not only increases communication costs between individuals but it also results in larger team sizes . And more than that - since it s not a single team of 12 individuals but is instead 3 teams of 5 individuals there is 3x the upward communication cost . More costs that Microsoft has chosen to carry that may not translate to similar costs for other companies . My point here is not to describe Microsoft as an inefficient company . My point is that Microsoft makes a ton of decisions about everything from hiring to team organization to design and implementation that start from assumptions about profitability and risk that simply do not apply to companies that are not Microsoft . In terms of the intellisense thing there are various ways of thinking about the problem . Microsoft is producing a very generic reusable solution that doesn t just solve intellisense but also targets code navigation refactoring and various other uses for code-analysis . You don t need to do things the same way if your sole goal is to make it easy for developers to enter code without having to type much . Targeting that feature doesn t take years of effort and there are all sorts of creative things you can do if you re not just providing an API but you actually control the UI too . Comment : Re : Microsoft will likely spend resources decreasing response times that are already measured in hundreds of milliseconds -- absolutely . If an analysis is taking more than roughly 30 milliseconds we start to worry . Re : you can find efficiencies if you solve a smaller problem : absolutely true But the question specifically was how to do as good a job as the Microsoft implementation not how to do a job good enough for some other standard so that s the question I answered . Comment : @StefanSteiger You should try using netbeans and eclipse instead of visual-studio sometimes .", "Question : I m being driven to insanity trying to figure out why Intellisense just fails to work at all . The server I m using is local and is 2008 the database is set to 2008 compatibility Intellisense is on in every menu I can find and yet no member list will pop-up even with a CTRL-J . Has anyone experienced something like this and found a way to fix it I really can t bring myself to start work unless I have Intellisense working . Comment : Microsoft SQL Server 2008 R2 Service Pack 1 - microsoft.com download en http : www.microsoft.com download en details.aspx displaylang en id 26727 Comment : This looks like it s just for SQL Server 2012 but many of the fixes are relevant to earlier versions as well and worth a look if you re already patched and still have symptoms : mssqltips.com sqlservertip 2591 http : www.mssqltips.com sqlservertip 2591 troubleshooting-intellisense-in-sql-server-management-studio-2012 Comment : Direct Link From MS Support Hot Fix hotfixv4.microsoft.com SQL 20Server 202008 20R2 nosp http : hotfixv4.microsoft.com SQL 20Server 202008 20R2 nosp SQLServer2008R2 RTM CU7 2507770 10 50 17 10.50.1777.0 free 431249 intl i386 zip.exe Comment : SQL prompt can also be an alternative red-gate.com products sql-development sql-prompt http : www.red-gate.com products sql-development sql-prompt Comment : I ve been using SSMS without intellisense for several years at least before finding out by accident that it supposed to have a working autocomplete feature . It never worked properly for me . Right now I m on a brand new machine with a fresh install of SQL Express 2014 and guess what it still doesn t work . .. . Answer : I m posting this here as I am sure more people will be comeing across this issue . I installed Security Update for microsoft Visual Studio 2010 Service Pack 1 KB2565057 and lost Intellisense in SQL Server Management studio 2008 not R2 . An uninstall of the SP restored Intellisense . . Don t you just love Microsoft", "Question : does anyone know how to get intellisense to work reliably when working in C C++ projects It seems to work for about 1 in 10 files . Visual Studio 2005 seems to be a lot better than 2008 . Edit : Whilst not necessarily a solution the work-around provided here : .. . .. . http : stackoverflow.com questions 39474 how-to-get-intellisense-to-reliably-work-in-visual-studio-2008 39590 .. . .. . Is probably the best bet if I want a decent intellisense system . .. . Answer : I had to reset the settings.. . .. . .. . C : Program Files Microsoft Visual Studio 9.0 Common7 IDE devenv.exe ResetSettings .. . .. . thread on this here http : stackoverflow.com questions 178846 visual-studio-intellisense-stopped-working", "Question : does anyone know how to get intellisense to work reliably when working in C C++ projects It seems to work for about 1 in 10 files . Visual Studio 2005 seems to be a lot better than 2008 . Edit : Whilst not necessarily a solution the work-around provided here : .. . .. . http : stackoverflow.com questions 39474 how-to-get-intellisense-to-reliably-work-in-visual-studio-2008 39590 .. . .. . Is probably the best bet if I want a decent intellisense system . .. . Answer : I ve also realized than Intellisense is sometime lost on some big project . Why No idea . This is why we have bought Visual Assist http : www.wholetomato.com from Tomato software http : www.wholetomato.com and disabled Intellisense by deleting the dll feacp.dll in the Visual studio subdirectory C : Program Files Microsoft Visual Studio 8 VC vcpackages .. . .. . This is not a solution just a workaround . Comment : +1 for how to disable the intellisense . The macro s I used for disabling in 2005 didn t work anymore in 2008 . Comment : I read elsewhere that just deleting that dll should be handled carefully creating a folder named Solutionname.ncb should be preferred . Results in annyoing error messages at every startup though . And +1 for mentioning VAX . Comment : This is still good advice as of VS2010 since intellisense in VS2010 is very slow although now it s possible to disable intellisense using the config page in VS", "Question : I ve been working on setting up Visual Studio Code specifically to work with a Angular 1.5 codebase that we have at work . Here s what I ve done up to this point : .. . .. . Installed TSD https : www.google.com.au url sa t rct j q esrc s source web cd 1 cad rja uact 8 ved 0ahUKEwiyjLjg1dvNAhXDo5QKHZy CcEQFggbMAA url https 3A 2F 2Fwww.npmjs.com 2Fpackage 2Ftsd usg AFQjCNGAzyG2lgfrh5xiq3PhaekmY-JEjA bvm bv.126130881 d.dGo .. . Ran tsd query -r -o -a install angular -s .. . Add a reference at the top of my file to tsd.d.ts like so : .. . .. . .. . reference path . . typings tsd.d.ts .. . .. . function .. . use-strict .. . .. . angular.module moduleName .controller CtrlName .. . scope window function scope window .. . .. . .. . .. . .. . .. . At this point it looks like I have partial success when I hover over the angular keyword I see type-specific information i.e . namespace angular var angular : ng.IAngularStatic but none of the type information is coming through in the angular specific dependencies i.e . when I hover over window it tells me it is of any type . My questions : .. . .. . 1 . What more do I have to do to get intellisense to work properly 2 . Is there a way around having to add the reference at the top of every single JS file I have in the codebase to be able to get intellisense working Comment : stackoverflow.com questions 30206049 http : stackoverflow.com questions 30206049 how-to-set-intellisense-for-angular-js-and-javascript-in-visual-studio-code Comment : @a3.14 Infinity I saw that . It doesn t help unfortunately - it doesn t explain why intellisense works for angular but not for the angular-services . Comment : nuget.org packages AngularJS.Intellisense https : www.nuget.org packages AngularJS.Intellisense and github.com jmbledsoe angularjs-visualstudio-intellisense https : github.com jmbledsoe angularjs-visualstudio-intellisense . Does these help you Comment : @a3.14 Infinity not directly - I m looking to pull in intellisense for Visual Studio Code not Visual Studio . .. . Answer : After some digging around I found that this used to be supported in VS Code once upon a time but support was lost in the latest versions . Source : https : github.com Microsoft vscode issues 8163", "Question : I have Visual Studio 2010 SP1 MVC 3 With April Tools Update installed on a machine with a fresh install of Windows 7 64-bit Professional . I do not have resharper installed . I never installed an RC or Beta of anything on this new OS Install . My install steps were as follows : .. . .. . 1 . Install Visual Studio Professional . 2 . Install Web Platform Installer . 3 . Install Visual Studio SP1 from WPI . 4 . Install Microsoft ASP.net MVC 3 with April Tools Update .. . 5 . Install Productivity Power Tools .. . .. . Help About Microsoft Visual Studio shows : .. . .. . Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel .. . .. . Microsoft .NET Framework Version 4.0.30319 SP1Rel .. . .. . System.Web.Mvc.dll file version shows : 3.0.20105.0 .. . .. . Once installed I did the following : .. . .. . 1 . Open Visual Studio . 2 . File New Project .. . 3 . Choose ASP.Net MVC 3 Web Application . 4 . On the New ASP.NET MVC 3 Project dialog . I chose Internet Application Razor View Engine . Hit OK . Within the project here is the behavior : .. . .. . 1 . Open any cshtml file and Razor @blocks are not highlighted . 2 . Intellisense gives html snippets as options in and outside of razor blocks but does not recognize Html helpers or models etc within them . 3 . The project builds . 4 . You can run the project and everything works when built . Razor views are rendered normally . Does anyone know a definitive set of prerequisites to have Razor Intellisense working Something I can diff between the other Win7 64-bit machines that have Razor Intellisense working and the 2 that have this issue Registry entries Are there any Visual Studio logs that can help debug this After hours of frustration and reading every Razor Intellisense post and question I have run across without coming up with anything that works I am just hoping for some new thoughts on what to troubleshoot try next . Thanks for any help on this . Comment : Try right clicking cshtml and choosing Open With.. . and making sure it s set to Razor Editor .. . Answer : I was experiencing the same issue . It started to happen randomly when I changed the view engine in the Views web.config to a custom one . It is a known problem VS2010 Intellisense has issues with recognizing reserved-words when custom view engine is in-place or when a view inherits from a custom view page . Everyone running into Razor Intellisense issues should check this out . None of the above fixes reinstalling VS rapplying SP1 reapplying MVC3 Tools Update did help .", "Question : I m being driven to insanity trying to figure out why Intellisense just fails to work at all . The server I m using is local and is 2008 the database is set to 2008 compatibility Intellisense is on in every menu I can find and yet no member list will pop-up even with a CTRL-J . Has anyone experienced something like this and found a way to fix it I really can t bring myself to start work unless I have Intellisense working . Comment : Microsoft SQL Server 2008 R2 Service Pack 1 - microsoft.com download en http : www.microsoft.com download en details.aspx displaylang en id 26727 Comment : This looks like it s just for SQL Server 2012 but many of the fixes are relevant to earlier versions as well and worth a look if you re already patched and still have symptoms : mssqltips.com sqlservertip 2591 http : www.mssqltips.com sqlservertip 2591 troubleshooting-intellisense-in-sql-server-management-studio-2012 Comment : Direct Link From MS Support Hot Fix hotfixv4.microsoft.com SQL 20Server 202008 20R2 nosp http : hotfixv4.microsoft.com SQL 20Server 202008 20R2 nosp SQLServer2008R2 RTM CU7 2507770 10 50 17 10.50.1777.0 free 431249 intl i386 zip.exe Comment : SQL prompt can also be an alternative red-gate.com products sql-development sql-prompt http : www.red-gate.com products sql-development sql-prompt Comment : I ve been using SSMS without intellisense for several years at least before finding out by accident that it supposed to have a working autocomplete feature . It never worked properly for me . Right now I m on a brand new machine with a fresh install of SQL Express 2014 and guess what it still doesn t work . .. . Answer : When trying the accepted answer I was getting an installation error : A failure was detected for a previous installation patch or repair blah blah blah.. . .. . .. . To fix this in my registry I changed all DWORD values to 1 in the following Keys : As always be careful modifying the registry and create a backup of the key http : antivirus.about.com cs tutorials ht regkey.htm before changing anything .. . .. . HKLM SOFTWARE Microsoft Microsoft SQL Server 100 ConfigurationState HKLM SOFTWARE Microsoft Microsoft SQL Server MSAS10 50.MSSQLSERVER ConfigurationState HKLM SOFTWARE Microsoft Microsoft SQL Server MSRS10 50.MSSQLSERVER ConfigurationState HKLM SOFTWARE Microsoft Microsoft SQL Server MSSQL10.SQLEXPRESS ConfigurationState HKLM SOFTWARE Microsoft Microsoft SQL Server MSSQL10 50.MSSQLSERVER ConfigurationState .. . .. . See my full post about Fixing Intellisense issue in SSMS http : www.someguyssite.com technology intellisense-not-working-in-sql-server-management-studio .", "Question : I want to use VS Code to try out the examples of a JavaScript book but there s no intellisense or at least I don t know how to activate it . In Visual Studio this feature works out of the box : .. . .. . enter image description here http : i.stack.imgur.com kpKTs.jpg .. . .. . But in VS Code all I got is a message saying There s no suggestions .. . .. . enter image description here http : i.stack.imgur.com u3pPX.jpg .. . .. . What do I need to do to enable the intellisense in VSCode Thanks . .. . Answer : Currently Unsupported .. . .. . JS intellisense doesnt work in HTML script-tag - VSCode GitHub Issues 4369 https : github.com Microsoft vscode issues 4369 .. . .. . Smart Javascript suggestions inside HTML files no loger working after Visual Studio Code update - StackOverflow http : stackoverflow.com questions 37039910 smart-javascript-suggestions-inside-html-files-no-loger-working-after-visual-stu Comment : sad but it s true :", "Question : my collegues and me are using Vs2012 for some weeks now . Sometimes after working several hours the whole intellisense is broken . After closing all open tabs it works again . Are there more people out there having the same problem It can t be an extensionproblem because at home I have the same problem . Maybe there is a workaround for this Comment : Does using Ctrl + Space works after this problem appears Comment : No Ctrl+Space does have no effect Comment : Having the same problem Comment : Visual Studio uses independent implementations of IntelliSense for each of its supported languages so the answer will likely depend on the particular language in use . In addition several Visual Studio extensions alter augment or even completely replace the IntelliSense features for one or more languages which is likely to change the answer provided here . Comment : Please vote in this uservoice to ask for a soft-reset chord to at least mitigate this : visualstudio.uservoice.com forums 121579-visual-studio https : visualstudio.uservoice.com forums 121579-visual-studio suggestions 6595642-add-intellisense-reset-option .. . Answer : I was having a similar issue in Visual Studio 2013 I just cleaned the solution and then deleted 4 : Close Visual Studio 2013 and delete this folder : AppData Microsoft VisualStudio 12.0 and it solved the problem .", "Question : I m using VS 2010 RC1 . I download MSBuild Community Tasks MCT and install it . To give full information I have also installed MSBuild Extension Pack .. . .. . Then in order to have Intellisense work for MCT s tasks I copied the file C : Program Files MSBuild MSBuildCommunityTasks MSBuild.Community.Tasks.xsd to C : Program Files Microsoft Visual Studio 10.0 Xml Schemas 1033 MSBuild MSBuild.Community.Tasks.xsd .. . .. . I start VS and create a project build file as below : .. . .. . As starting to type a Target I have no Intellisense there . I try to open the property pane click the schema browsing button add the file C : Program Files MSBuild MSBuildCommunityTasks MSBuild.Community.Tasks.xsd but Intellisense still not work Removing this shcema the Intellisense returns to work and of course just works for other tasks but MCT tasks . Does anyone have met the same problem like me Please help Comment : I m working on this as well it appears there s a circular-reference the community .xsd includes Microsoft.Build.CommonTypes.xsd while that is the file you are supposed to be adding the include line for the extra tasks . Comment : Just ran into the same issue with VS 2010 . .. . Answer : You need to add the following line to C : program files Microsoft Visual Studio 10.0 Xml Schemas 1033 Microsoft.Build.xsd .. . .. . It should be put at the end of the file before the xs : schema Comment : Great I ll check it and accept your answer when I m done . Comment : Did this solve your problem because after I posted this i checked my VS2010 and I dont have intellisense either for any msbuild file . and it highlights the namespace saying there is an error in the namespace .", "Question : I have just downloaded and installed Visual Studio 2012 Ultimate RC but I m having an issue with the intellisense : it does not work until I press Ctrl+Space . Code suggestions are disabled also method parameters for example . I think the problem is with the VS installation because at the end of the process the following message is shown : The event log file is full . Why do I have this problem and what can I do to fix it Comment : I ve had the same problem . I think this is becouse I ve had vs2010 with resharper and vs2012 imported settings from it . You can make everething to work as expected by Tools- Import and export settins- Reset all settings Comment : I have resharper installed too but it seems it s not the problem in my case . in the end it seems VS12 doesn t activate intellisense by default you need to use CTRL+Space to get autocomplete and code suggestions . I had to enable it from the Tools- Options configuration menu . Comment : it s Tools - Options - Text Editor - C - Intellisense . check Show Completion list after a character is typed and the underlying checkboxes Comment : Found it under TOOLS - Settings - Import and Export Settings.. . . Doing a reset brought Intellisense back for me . Comment : I just restarted VS2012 and Intellisense worked again .. . Answer : Look at this post here http : stackoverflow.com questions 8902232 how-to-turn-intellisense-on-in-visual-studio-2010 . This worked for me : .. . .. . Delete the files in this folder . vs2010 : .. . .. . vs2012 .. . .. . VS Ultimate 2013 .. . .. . VS Professional 2015 Comment : This was the only fix that worked for me Thanks so much Its 12.0 now Comment : The only fix that help me . Thanks . Comment : @GregoryKhrapunovich Glad i could help Comment : To me the correct path was AppData Microsoft VisualStudio 12.0 ReflectedSchemas since AppData included Roaming Comment : Microsoft VisualStudio 14.0 for Visual Studio 2015", "Question : I m using VS 2010 RC1 . I download MSBuild Community Tasks MCT and install it . To give full information I have also installed MSBuild Extension Pack .. . .. . Then in order to have Intellisense work for MCT s tasks I copied the file C : Program Files MSBuild MSBuildCommunityTasks MSBuild.Community.Tasks.xsd to C : Program Files Microsoft Visual Studio 10.0 Xml Schemas 1033 MSBuild MSBuild.Community.Tasks.xsd .. . .. . I start VS and create a project build file as below : .. . .. . As starting to type a Target I have no Intellisense there . I try to open the property pane click the schema browsing button add the file C : Program Files MSBuild MSBuildCommunityTasks MSBuild.Community.Tasks.xsd but Intellisense still not work Removing this shcema the Intellisense returns to work and of course just works for other tasks but MCT tasks . Does anyone have met the same problem like me Please help Comment : I m working on this as well it appears there s a circular-reference the community .xsd includes Microsoft.Build.CommonTypes.xsd while that is the file you are supposed to be adding the include line for the extra tasks . Comment : Just ran into the same issue with VS 2010 . .. . Answer : I am using VS2008 and I manually copied the MSBuild Community Tasks schema file .xsd into the proper Visual Studio directory . However that wasn t enough for my community tasks to register with Intellisense . I had to open the .csproj file within Visual Studio and then go to the XML menu and select Schemas.. . . The MSBuild Community Schema file was not on the list anywhere so I clicked Add and then added the file . Once I did that and closed the dialog viola I had intellisense for the community tasks . I was inspired by this posting on MDSN http : social.msdn.microsoft.com Forums pl-PL msbuild thread 015ca645-a388-492f-b386-7bef6ce31f3b Comment : Thanky you worked for me .", "Question : If IntelliSense from Visual Studio Menu RESHARPER- Options .. . - IntelliSense and select Visual Studio then the drop-down menu has hints . If IntelliSense from ReSharper Menu RESHARPER- Options .. . - IntelliSense and select ReSharper the hints do not appear . How to do that in the case of ReSharper IntelliSense worked tips hint IntelliSense from Visual Studio : .. . .. . Visual Studio http : s2.ipicture.ru uploads 20130319 n0UQD0fs.png .. . .. . IntelliSense from ReSharper : .. . .. . ReSharper http : s2.ipicture.ru uploads 20130319 zTR8z8uB.png .. . Answer : Try turning on ReSharper Options - Environment Intellisense Completion Appearance - Show member signatures and maybe Show summary .", "Question : I have Visual Studio 2010 SP1 MVC 3 With April Tools Update installed on a machine with a fresh install of Windows 7 64-bit Professional . I do not have resharper installed . I never installed an RC or Beta of anything on this new OS Install . My install steps were as follows : .. . .. . 1 . Install Visual Studio Professional . 2 . Install Web Platform Installer . 3 . Install Visual Studio SP1 from WPI . 4 . Install Microsoft ASP.net MVC 3 with April Tools Update .. . 5 . Install Productivity Power Tools .. . .. . Help About Microsoft Visual Studio shows : .. . .. . Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel .. . .. . Microsoft .NET Framework Version 4.0.30319 SP1Rel .. . .. . System.Web.Mvc.dll file version shows : 3.0.20105.0 .. . .. . Once installed I did the following : .. . .. . 1 . Open Visual Studio . 2 . File New Project .. . 3 . Choose ASP.Net MVC 3 Web Application . 4 . On the New ASP.NET MVC 3 Project dialog . I chose Internet Application Razor View Engine . Hit OK . Within the project here is the behavior : .. . .. . 1 . Open any cshtml file and Razor @blocks are not highlighted . 2 . Intellisense gives html snippets as options in and outside of razor blocks but does not recognize Html helpers or models etc within them . 3 . The project builds . 4 . You can run the project and everything works when built . Razor views are rendered normally . Does anyone know a definitive set of prerequisites to have Razor Intellisense working Something I can diff between the other Win7 64-bit machines that have Razor Intellisense working and the 2 that have this issue Registry entries Are there any Visual Studio logs that can help debug this After hours of frustration and reading every Razor Intellisense post and question I have run across without coming up with anything that works I am just hoping for some new thoughts on what to troubleshoot try next . Thanks for any help on this . Comment : Try right clicking cshtml and choosing Open With.. . and making sure it s set to Razor Editor .. . Answer : Razor Intellisense work with Razor Editor .. . .. . Check if it is selected as default editor For this do .. . .. . Right Click on view file .cshtml .. . Select Open With.. . .. . Check Razor editor Select as default .. . if not uninstall mvc3 from control panel reinstall it . Again check files must be opened in Razor Editor . I have done this and its working now .", "Question : I m being driven to insanity trying to figure out why Intellisense just fails to work at all . The server I m using is local and is 2008 the database is set to 2008 compatibility Intellisense is on in every menu I can find and yet no member list will pop-up even with a CTRL-J . Has anyone experienced something like this and found a way to fix it I really can t bring myself to start work unless I have Intellisense working . Comment : Microsoft SQL Server 2008 R2 Service Pack 1 - microsoft.com download en http : www.microsoft.com download en details.aspx displaylang en id 26727 Comment : This looks like it s just for SQL Server 2012 but many of the fixes are relevant to earlier versions as well and worth a look if you re already patched and still have symptoms : mssqltips.com sqlservertip 2591 http : www.mssqltips.com sqlservertip 2591 troubleshooting-intellisense-in-sql-server-management-studio-2012 Comment : Direct Link From MS Support Hot Fix hotfixv4.microsoft.com SQL 20Server 202008 20R2 nosp http : hotfixv4.microsoft.com SQL 20Server 202008 20R2 nosp SQLServer2008R2 RTM CU7 2507770 10 50 17 10.50.1777.0 free 431249 intl i386 zip.exe Comment : SQL prompt can also be an alternative red-gate.com products sql-development sql-prompt http : www.red-gate.com products sql-development sql-prompt Comment : I ve been using SSMS without intellisense for several years at least before finding out by accident that it supposed to have a working autocomplete feature . It never worked properly for me . Right now I m on a brand new machine with a fresh install of SQL Express 2014 and guess what it still doesn t work . .. . Answer : I did all of the above and ultimately gave up . Then one last resort was a third part SQL Intellisense add-on I found SQL Complete Express by devArt . It s Intellisense plus more . Intellisense is back and all is well . Supports SSMS 2005 - 2012 also includes Visual Studio Add-In . SQL Complete http : www.devart.com dbforge sql sqlcomplete download.html", "Question : I have a clean out-of-the-box installation of Visual Studio 2012 Web Developer Express and for some reason the support for JavaScript both jQuery jQuery UI and other libraries has disappeared . I believe it worked before and then for no reason it stopped . I ve browsed the web as supposed to and discovered four discrepancies . 1 . I don t have the key HKEY CURRENT USER Software Microsoft VisualStudio 11.0 JavaScriptLanguageService ImplicitReferences in my registry . In fact I don t even have JavaScriptLanguageService directory . 2 . I ve checked that the referred file domWindows.js indeed is where the options point to . 3 . The output window under JavaScriptLanguageService is empty and nothing is being typed there while I develop and run my application . 4 . I ve referred to the jQuery-file that I m using through the options but it didn t produce any changes . All in all I get the error message saying that : .. . .. . intellisense was unable to determine an accurate completion list for this expression The provided list contains all identifiers in the file .. . .. . Any suggestions would be warmly appreciated . .. . Answer : Go to menu Tools - Options - Text Editor - JavaScript - Intellisense - References and place a reference to the intellisense files for the version of jQuery you are using in the Implicit Web group . Enter image description here http : i.stack.imgur.com XdouN.jpg .. . .. . OR .. . .. . place an add reference to the intellisense file in the references.js file which you can add to the Scripts folder of your project . Though this will only provide intellisense for the project you are in the first will for any open JavaScript file not just the ones in the project you are in . .. . .. . To get the latest jQuery files with intellisense use the NuGet http : en.wikipedia.org wiki NuGet package installer which by default will create a scripts folder and place the jQuery version.js the min.js and intellisense.js files into.. . From there you can copy them to the location most of the Microsoft references are placed in which is typically : .. . .. . install-package jquery in the package manager console . C : Program Files x86 Microsoft Visual Studio 11.0 JavaScript References", "Question : null .. . Answer : After upgrading Visual Studio 2015 to Enterprise I have some issues . Default code-snippets like for stopped working . Custom written snippets still work . Also Intellisense was working perfect before upgrading but after upgrading Intellisense started working poorly . JSDoc style comments became mostly useless . It also takes more time for Javascript Language Service to do its job . Below is the information I got from About : .. . .. . Microsoft Visual Studio Enterprise 2015 Version 14.0.25123.00 Update 2 Microsoft .NET Framework Version 4.6.01055 .. . .. . Installed Version : Enterprise .. . .. . Architecture and Modeling Tools 00322-80000-00000-AA244 Microsoft Architecture and Modeling Tools UML and Unified Modeling Language are trademarks or registered trademarks of the Object Management Group Inc . in the United States and other countries . .. . Visual Basic 2015 00322-80000-00000-AA244 Microsoft Visual Basic 2015 .. . .. . Visual C 2015 00322-80000-00000-AA244 Microsoft Visual C 2015 .. . .. . Visual C++ 2015 00322-80000-00000-AA244 Microsoft Visual C++ 2015 .. . .. . ASP.NET and Web Tools 2015 RC1 Update 1 14.1.20203.0 ASP.NET and Web Tools 2015 RC1 Update 1 .. . .. . ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0 For additional information visit http : go.microsoft.com fwlink LinkID 309563 .. . .. . ASP.NET Web Frameworks and Tools 2013 5.2.40314.0 For additional information visit http : www.asp.net .. . .. . Azure App Service Tools v2.7.1 14.0.11112.0 Azure App Service Tools v2.7.1 .. . .. . Common Azure Tools 1.7 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools . .. . GitHub.VisualStudio 1.0 A Visual Studio Extension that brings the GitHub Flow into Visual Studio . .. . JavaScript Language Service 2.0 JavaScript Language Service .. . .. . JavaScript Project System 2.0 JavaScript Project System .. . .. . JScriptStubOptions 1.0 Provides a way to make customizeable options for the JScript vsdoc Stub Generator . .. . Microsoft Azure Mobile Services Tools 1.4 Microsoft Azure Mobile Services Tools .. . .. . NuGet Package Manager 3.4.3 NuGet Package Manager in Visual Studio . For more information about NuGet visit http : docs.nuget.org . .. . PreEmptive Analytics Visualizer 1.2 Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product . .. . SQL Server Data Tools 14.0.60311.1 Microsoft SQL Server Data Tools .. . .. . TypeScript 1.8.30.0 TypeScript tools for Visual Studio .. . .. . Visual Studio Tools for Unity 2.2.0.0 Visual Studio Tools for Unity .. . .. . Web Essentials 2015.1 1.0.211 Adds many useful features to Visual Studio for web developers . Requires Visual Studio 2015", "Question : According to this post http : blogs.msdn.com b visualstudio archive 2015 02 05 using-angularjs-in-visual-studio-2013.aspx intellisense should also be working on the new VS 2015 but so far I only get intellisense for the angular object and not for the dependencies or my custom modules . image https : cloud.githubusercontent.com assets 5376927 7302873 0ff0620c-e9b2-11e4-89ff-97d090131f4e.png .. . .. . Here s what I did : 1 Added the angular.intellisense.js to the global javascript references at .. . .. . C : Program Files x86 Microsoft Visual Studio 14.0 JavaScript References 2 Restarted VS2015 And then nothing it just showed exclamation marks whenever I tried to use intellisense on a http object . I also added the file to the same place as my angular.js but it still didn t work . The question that I have in this case is where should I place the file on the angular public folder with only my angular.js or on my dev angular folder where all the files downloaded from bower are . I also tried addind it directly into the tools options text-editor javascriptr intellisense reference menu on the Implicit Web reference group but it still didn t work . On my project I have the following folder structure inside the src folder : .. . .. . wwwroot .. . app my angular site stuff .. . controllers .. . services .. . views .. . lib js dependencies only the .min.js file of each library .. . angular .. . angular-route .. . ... . .. . references.js the visual-studio js references file contains reference to the files inside the app and lib folders .. . Libraries contains the full libraries as downloaded by bower .. . angular .. . angular-route .. . .. . .. . .. . As a side note I don t have a scripts folder and therefore no scripts references.js file .. . .. . . Comment : i d like to know this as well . In 2015 RC angularjs intellisense for the new asp.net 5 template seems completely broken . Comment : For me the disappeared after installing the 2015 RC Comment : I have this issue for RTM ..apart from angular object and in a hello world complexity senario http and all custom objects dont work . . Followed the references setups . My only suspicsion is I upgraded from RC to RTM no fresh install have created a issue on Git link github.com jmbledsoe angularjs-visualstudio-intellisense issues https : github.com jmbledsoe angularjs-visualstudio-intellisense issues 26 5Blink 5D ..Grabbing a VHD Win 10 image and going to try that once the d l finishes : .. . Answer : As @Balthasar pointed out and in case you are using Resharper you will need to enable intellisense from Visual Studio for it to work : .. . .. . Resharper - options - environment - intellisense - general select Custom Intellisense and for Javascript you can select Visual studio . Alternatively you can use the Visual Studio statement completion second option .. . .. . enter image description here http : i.stack.imgur.com LYRv9.png Comment : THANKS Comment : Thanks Balthasar and HaRoLD . I m using Resharper and wondered why my typings d.ts files was recogniced in my typescript files by Visual Studio Code but not in Visual Studio 2015 ." ] }
[]
code-completion
UNK_RELATION
nvorbis@vorbis@60
nvorbis -- nvorbis is a .net library for decoding xiph.org @placeholder files .
{ "confidence": [ 49.25764465332031, 41.68052673339844, 36.90264892578125, 36.90264892578125, 29.903762817382812, 29.903762817382812, 22.50658416748047, 17.054168701171875, 16.880836486816406, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583, 11.2708101272583 ], "content": [ "I ve got NVorbis reference added.. .", "It s probably due to the framework version you are targeting.. . NVorbis is built using .Net 3.5SP1 .", "NVorbis is not actually throwing the exception itself but is instead causing the resource stream to do so.. .", "If you write NVorbis output to a file-move it to a PC and load it into an audio editor does it look correct play correctly", "EDIT I downloaded source code of NVorbis and used it directly from my project and when i do this I don t get any FileNotFoundExceptions and everything seems to work .", "I try to play a ogg music file using NVorbis to decode it and sharpdx + XNA SoundEffect Vorbis decoder seems to work as the informations channels duration SampleRate are fine .", "Maybe you know some other library for wp8 which can decode ogg files", "I would expect it in properties of project but theres nothing about .net version .", "Maybe this exception is caused by missing library", "I want to convert ogg file to wav and then play it on wp8 devives .", "I ve already checked many solutions but none of them worked .", "This looks promising but something doesn t work : .. . .. . When I execute it I see FileNotFoundException at VorbisReader contruction .", "I also checked if stream is readable and it is .", "I was able to get the file content using Read method .", "Do you have any ideas why it doesn t work", "I think you are running into the same issue as this guy http : social.msdn.microsoft.com Forums vstudio en-US 5584c595-e7b2-47b1-b1d2-88045e996e25 why-does-this-soundplayer-call-fail-in-wpf-code- forum wpf .", "Short version : I believe your Pack URI should be pack : application : SomeProject Component Sounds a dog.ogg .", "doesn t work .", "I tried this uri : @ pack : application : SomeProject component Sounds a dog.ogg and it s crashing at the GetResourceStream with UriFormatException .", "Also I tried static resources but it returns byte not a stream so I couldn t use it .", "Hrmm.. . Can you post the stacktrace of the original error to pastebin or something", "It s almost certainly related to the XAML resource being in the app assembly but I m not certain how to fix it.. .", "pastebin.com krsWgwFf http : pastebin.com krsWgwFf so it is not a problem with opening my ogg file but some system lib.. .", "What framework version are you targeting in your project", "I can t find any info .", "Target OS was set to WP7.5 but I upgraded it to WP8 project .", "then I use Sharpdx to create the wave Stream that will be used to create the SoundEffect .", "But when I try to play it I can recognise my sound but there also a lot of noise in background and the music is distorted .", "I don t know what to do.. . thanks for help", "here is my code :", "If you skip the Vorbis decode load a WAV file s audio data into buffer does it still sound noisy", "Hello If I load directly the wave file no problem it sound correctly I may have a begin of answer .", "I success playing the decoded ogg file using xna DynamicSoundEffectInstance using this code : link https : gist.github.com nickgravelyn 5580531 and modify it a bit to make it work on Windows phone .", "I have to load the data by small buffer or I run out-of-memory if I try to load the decoded wav file in one time .", "So I success now to play it correctly but I still don t understand why my first method wuth SoundEffect doen t work with the decoded data because it work with the wave file ." ] }
{ "confidence": [ 58.68115997314453, 43.32984924316406 ], "content": [ "Question : I want to convert ogg file to wav and then play it on wp8 devives . I ve already checked many solutions but none of them worked . This looks promising but something doesn t work : .. . .. . When I execute it I see FileNotFoundException at VorbisReader contruction . I also checked if stream is readable and it is . I was able to get the file content using Read method . Do you have any ideas why it doesn t work Maybe you know some other library for wp8 which can decode ogg files EDIT I downloaded source code of NVorbis and used it directly from my project and when i do this I don t get any FileNotFoundExceptions and everything seems to work . Maybe this exception is caused by missing library I ve got NVorbis reference added.. . .. . Answer : I think you are running into the same issue as this guy http : social.msdn.microsoft.com Forums vstudio en-US 5584c595-e7b2-47b1-b1d2-88045e996e25 why-does-this-soundplayer-call-fail-in-wpf-code- forum wpf . Short version : I believe your Pack URI should be pack : application : SomeProject Component Sounds a dog.ogg . NVorbis is not actually throwing the exception itself but is instead causing the resource stream to do so.. . Comment : doesn t work . I tried this uri : @ pack : application : SomeProject component Sounds a dog.ogg and it s crashing at the GetResourceStream with UriFormatException . Also I tried static resources but it returns byte not a stream so I couldn t use it . Comment : Hrmm.. . Can you post the stacktrace of the original error to pastebin or something It s almost certainly related to the XAML resource being in the app assembly but I m not certain how to fix it.. . Comment : pastebin.com krsWgwFf http : pastebin.com krsWgwFf so it is not a problem with opening my ogg file but some system lib.. . Comment : It s probably due to the framework version you are targeting.. . NVorbis is built using .Net 3.5SP1 . What framework version are you targeting in your project Comment : I can t find any info . I would expect it in properties of project but theres nothing about .net version . Target OS was set to WP7.5 but I upgraded it to WP8 project .", "Question : null .. . Answer : I try to play a ogg music file using NVorbis to decode it and sharpdx + XNA SoundEffect Vorbis decoder seems to work as the informations channels duration SampleRate are fine . then I use Sharpdx to create the wave Stream that will be used to create the SoundEffect . But when I try to play it I can recognise my sound but there also a lot of noise in background and the music is distorted . I don t know what to do.. . thanks for help here is my code : Comment : If you skip the Vorbis decode load a WAV file s audio data into buffer does it still sound noisy If you write NVorbis output to a file-move it to a PC and load it into an audio editor does it look correct play correctly Comment : Hello If I load directly the wave file no problem it sound correctly I may have a begin of answer . I success playing the decoded ogg file using xna DynamicSoundEffectInstance using this code : link https : gist.github.com nickgravelyn 5580531 and modify it a bit to make it work on Windows phone . I have to load the data by small buffer or I run out-of-memory if I try to load the decoded wav file in one time . So I success now to play it correctly but I still don t understand why my first method wuth SoundEffect doen t work with the decoded data because it work with the wave file ." ] }
[ "yes-answer-long", "yes-answer-short" ]
vorbis
UNK_RELATION
pyudev@python@35
pyudev -- is a lgpl licensed pure @placeholder 2 3 binding to libudev the device and hardware management and information library of linux .
{ "confidence": [ 39.78789520263672, 35.04800033569336, 33.24390411376953, 33.212554931640625, 29.701108932495117, 29.41525650024414, 27.45589828491211, 27.45589828491211, 27.45589828491211, 25.104307174682617, 25.104307174682617, 24.919395446777344, 24.919395446777344, 24.919395446777344, 24.919395446777344, 24.731325149536133, 23.821308135986328, 23.821308135986328, 23.821308135986328, 23.619544982910156, 22.061641693115234, 21.916704177856445, 20.855945587158203, 20.667165756225586, 20.613719940185547, 19.95294189453125, 19.60742950439453, 19.60742950439453, 19.44546890258789, 18.815889358520508, 18.654361724853516, 18.654361724853516, 18.497329711914062, 18.301761627197266, 18.03330421447754, 18.03330421447754, 18.03330421447754, 17.788345336914062, 17.6480712890625, 17.6480712890625, 17.6480712890625, 17.616233825683594, 17.448375701904297, 17.354511260986328, 17.134990692138672, 17.134990692138672, 17.134990692138672, 17.032201766967773, 17.032201766967773, 16.660947799682617, 16.585203170776367, 16.348222732543945, 16.348222732543945, 16.348222732543945, 16.342403411865234, 16.342403411865234, 16.17704200744629, 15.732351303100586, 15.59349250793457, 15.04255485534668, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.825716018676758, 14.450786590576172, 14.450786590576172, 14.450786590576172, 14.293643951416016, 13.519172668457031, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727, 12.866357803344727 ], "content": [ "Also is there any other mechanism otherthan pyudev to get hardware information", "Use pyudev to monitor USB events similar to this http : stackoverflow.com questions 25494086 retrieve-usb-information-using-pyudev-with-device-name example .", "How can I use pyudev to detect whether or not the hotplugged device is a keyboard", "I have a problem with pyudev library usage .", "I have been using pyudev to look for bluetooth devices and then used the features attribute to determine if the device has LE support .", "Trying to make a program to monitor usb-drive connections using pyudev .", "But I use pyudev to monitor the insertion of USB removable devices .", "Am I missing something or is Pyudev simply not capable of discovering such devices", "I m writing a program that uses pyudev to find the uuid of USB devices that are plugged in .", "I ve been picking through this question http : stackoverflow.com questions 10410462 set-keyboard-layout-using-pyudev to try to detect a hotplug of a USB keyboard but ID INPUT KEYBOARD isn t a key in the udev Device object that represents my keyboard .", "For the KeyError you are getting you can replace .. . .. . with one of : .. . .. . or .. . .. . or .. . .. . However I m afraid I don t know how if you can use pyudev to get beyond the USB SATA converter to the device connected to it .", "You should probably rely on PyUSB http : walac.github.io pyusb rather than PyUDEV for that kind of stuff .", "I am trying to monitor and filter usb mass storage devices using pyudev in python .", "Well I am a newbie in pyudev and read some tutorial example where they used getitem .", "Been working on the below sample code to retrieve the connected HDD detail using pyudev .", "Here is a code that works but is ugly as you can see I can extract all information I want using pyudev except the usb size capacity : .. . .. . An example output of this script would be :", "I retrieve the first device information from the block subsystem .", "No I already have the dev sdb block device information .", "I want to retrieve USB information like the manufacturer of the USB device .", "I m using glib since the version of pyudev in the Pi repo is 0.13 but I guess the newer way is the gobject equivalent .", "Updated .. . .. . I have the following and according to the example on the pyudev readthedocs site it should be daemon threaded .", "But how can I find my USB device with the information I retrieved from the block subsystem", "Try printing the list of properties for each device with print dir device possibly it is not being mounted as a block device .", "Since the device management under udev is very flexible it may depend on the udev rules installed in lib udev rules.d or etc udev rules.d that determine what keys you can filter on .", "The problem is it always hangs on monitor.receive device and waits for AC device udev event .", "Is there anyway I retrieve the device info", "As you will notice the device connected method has the arguments - device connected observer device but the code doesn t work in that case either .", "In fact the name the docs are using is device-added which isn t even a valid function name in Python .", "But I dont know how to access the specific USB device pyudev.readthedocs.org en latest http : pyudev.readthedocs.org en latest guide.html accessing-individual-devices-directly in the USB subsystem with the information from the block subsystem .", "USB to SATA converter .. . 3 .", "here is the pastebin for print dir device : pastebin.com rbbSyFKB http : pastebin.com rbbSyFKB .", "In fact I can t seem to retrieve any info of the device .", "Since udev only runs on Linux kernel at least as of now you could filter out by MAJOR number 8 http : www.lanana.org docs device-list devices-2.6+.txt which represents all SCSI SATA disk driver based devices .", "Also running the program after I make the function a stand-alone one along with pulling the all the monitor related code out of the class throws the error : observer.connect device-added device connected NameError : name device connected is not defined", "Afaik if I want this information I must use the usb subsystem .", "PyUSB would be a good address for detailed USB information indeed .", "So I ll just have to rethink how I get that information now .", "I m looking to enumerate all hard disks on a computer using udev and specifically pyudev to enumerate everything : .. . .. . This prints out the following : .. . .. . Since I m mainly concerned with actual drives and not optical disk drives loopback devices or ram devices how can I filter my results down to only get real physical media", "how can I find my USB device What do you mean by find it", "Here the device dev sdd does have a property called ID FS USAGE which is not none .", "The reason that you only get an error for the first device is probably that python stops on the first error .", "2 .", "So I tried to do all I need with one library. .", "You get an event for the device enumeration and then separate events for each enumerated interface .", "Similarly your script could be modified to output this information as follows : .. . .. . This will allow you to determine what keys are available for filtering .", "USB Sticks .. . .. . With the below script I have been able to retrieve the USB sticks information .", "I think changes have been made in the kernel code to use debugfs instead of sysfs for several bits of information .", ": D .. . .. . UPDATE : The same device number page lists dev hdX to be the one used by IDE hard drives and IDE cdroms too may be .", "If instead of using device ID FS USAGE which fails if there is no attribute matching you need to use device.get ID FS USAGE which will return None for missing attributes .", "I m not really sure if IDE hard drives are mapped as sdX or hdX with the latest 2.6 or 3.x kernels .", "This is all the infos I can retrieve via the block subsystem : .. . .. . I want to get some detailed information from the usb subsystem .", "I would like to be able to disconnect and reconnect the MIDI device and still be able to read it .", "The problem with 1 is that it seems that pygame.midi always returns the same values both get count and info regardless of whether the device is still connected .", "Since I would like to read the midi device in realtime continuously quitting and reiniting seems like a bad idea .", "Even if it has access to devices characteristics during processing udev is mostly a device mapper and so probably does not keep track by default of the data you need after that .", "Here s what details I do get : .. . .. . And then on another device that is continuing to work as I expected I get : .. . .. . Is there some sort of configuration change somewhere that causes the difference in responses", "Devices that I am trying to probe : .. . .. . 1 . regular sata hard disk .. . 2 .", "The output i get when i plug in an USB device is : .. . .. . I searched all over but could not find an answer Please help Thank you", "So far I ve managed to get it to work for regular USB storage devices and few sensors which are connected as mass storage devices .. . .. . However I m having trouble getting the uuid of my android tablet since the tablet is conencted as a mass storage device I thought this was pretty straightforward .", "I m using PyGame to read a USB MIDI device very similar to what is used here https : github.com davr ArtemisMidiKontrol blob master AMK.py except I run it as a background service on a Raspberry Pi .", "Here is the code : .. . .. . The traceback : .. . .. . Please help me rectify this .", "I am trying to use the piece of code given on the docs http : pyudev.readthedocs.org en v0.16 api pyudev.glib.html page .", "It returns the throws the same error .", "But I was wondering how it would work in the first place .", "Shouldn t every method of a class have self as an argument", "The docs don t say those are methods of the class but signals that are sent by that class .", "The function should be a standalone one which you register as a listener for that signal .", "You can see in the code snippet at the top of the page an example of how to connect your signal to the observer .", "oh yea", "But then how can I make changes to self.window if the function is not a part of the class", "And if I were to make the function a part of the class how do I resolve the arguments issue", "Ok the above seems to have been resolved.Placing the method declaration before observer.connect does the trick .", "I try to react on AC udev events plug in out .", "It then continues to execute the MonitorObserver .", "I assume there is a way where this does not happen .", "Should I use something like monitor.filter by", "The problem with 2 is that it would never call the asynchronous function I registered for events though the standalone example works fine just changing the subsytem to usb .", "So before I waste many more hours debugging 2 I was hoping someone could perhaps point me in the right direction .", "It seems that it indicates 2 is the right way to go but then I m wondering if it s necessary to spawn a new thread after registering the USB monitor .", "Oddly though if I try the quit and init then reinitialize the device subsequent calls to midi in.poll fail : PortMidi call failed.. . PortMidi : Bad pointer type ENTER.. . And I verified that the new midi in was a valid object pygame.midi.Input object at 0xb4a959d0 .", "I figured this might be a problem with threading so I called everything to register for events from a dedicated thread which then ran glib.MainLoop.run to idle wait but discovered the pygame would not be able to read the midi device if I started any thread before running my AMK class even just a thread that printed something and returned .", "On my system your code outputs the following : .. . .. . After filtering by major number 8 I see the following output : .. . .. . Note that you would also get USB hard drives and USB sticks in the list since they also tend to use the same SCSI disk driver .", "Do not have an IDE hard drive to verify and long since I have had one .", "If you want to filter these as well I believe you could do something like this :", "I m not really sure if IDE hard drives are mapped as sdX or hdX with the latest 2.6 or 3.3 kernels .", ": D it s sdX", "You can use udevadm to get a list of devices and their associated udev keys .", "On my Debian system some of the entries look like this : .. . .. . It would be possible to filter on these key-value pairs to return just those disks which are real .", "The UDISKS PRESENTATION NOPOLICY entry for example can be used to filter out loop devices .", "You can peruse the udev rules to determine how it tries to distinguish between real virtual disks .", "Something like this will filter out cdroms and loop devices :", "udisks s nopolicy is defined by simple pattern-matching in lib udev rules.d 80-udisks.rules .", "ID TYPE is a udev builtin based on ATA commands it looks reliable enough .", "For example that a USB stick was assigned to dev sdb .", "Physically", "Or are you looking for its entry in dev", "May I suggest you to do some research in that area -- then if needed to close this question and then ask an other question with some more descriptive title like How to retrieve the manufacturer name of an USB drive or whatever suits you .", "In the given code devices are being filtered out if their ID FS USAGE property is None : .. . .. . The traceback shown after executing the above code is : .. . .. . I connected two devices a usb memory drive and a smartphone in usb mass storage mode .", "The dev entries that correspond to the usb memory drive are dev sdc and dev sdc1 ." ] }
{ "confidence": [ 46.50493621826172, 41.826568603515625, 37.77599334716797, 36.14628601074219, 35.61286163330078, 35.283504486083984, 35.261756896972656, 33.84814453125, 33.49762725830078, 32.98468780517578, 31.37670135498047, 29.38593101501465, 27.450206756591797, 21.81679916381836, 19.53322410583496, 11.29961109161377 ], "content": [ "Question : Been working on the below sample code to retrieve the connected HDD detail using pyudev . Devices that I am trying to probe : .. . .. . 1 . regular sata hard disk .. . 2 . USB to SATA converter .. . 3 . USB Sticks .. . .. . With the below script I have been able to retrieve the USB sticks information . But when I connect the USB to SATA converter I get the serial-number of the converter not the HDD . Also for my regular SATA hard drives I get exception on ID VENDOR . sample output : .. . .. . Sample Code : .. . .. . Is there any parameters I am missing.Please give me some pointers . .. . Answer : For the KeyError you are getting you can replace .. . .. . with one of : .. . .. . or .. . .. . or .. . .. . However I m afraid I don t know how if you can use pyudev to get beyond the USB SATA converter to the device connected to it . Comment : This makes my system not to detect SATA drives s serial number.This breaks my whole intetntion . Also is there any other mechanism otherthan pyudev to get hardware information", "Question : I retrieve the first device information from the block subsystem . For example that a USB stick was assigned to dev sdb . This is all the infos I can retrieve via the block subsystem : .. . .. . I want to get some detailed information from the usb subsystem . But how can I find my USB device with the information I retrieved from the block subsystem Comment : how can I find my USB device What do you mean by find it Physically Or are you looking for its entry in dev Comment : No I already have the dev sdb block device information . I want to retrieve USB information like the manufacturer of the USB device . Afaik if I want this information I must use the usb subsystem . But I dont know how to access the specific USB device pyudev.readthedocs.org en latest http : pyudev.readthedocs.org en latest guide.html accessing-individual-devices-directly in the USB subsystem with the information from the block subsystem . Comment : Even if it has access to devices characteristics during processing udev is mostly a device mapper and so probably does not keep track by default of the data you need after that . You should probably rely on PyUSB http : walac.github.io pyusb rather than PyUDEV for that kind of stuff . May I suggest you to do some research in that area -- then if needed to close this question and then ask an other question with some more descriptive title like How to retrieve the manufacturer name of an USB drive or whatever suits you . .. . Answer : PyUSB would be a good address for detailed USB information indeed . But I use pyudev to monitor the insertion of USB removable devices . So I tried to do all I need with one library. . Here is a code that works but is ugly as you can see I can extract all information I want using pyudev except the usb size capacity : .. . .. . An example output of this script would be :", "Question : null .. . Answer : I ve been picking through this question http : stackoverflow.com questions 10410462 set-keyboard-layout-using-pyudev to try to detect a hotplug of a USB keyboard but ID INPUT KEYBOARD isn t a key in the udev Device object that represents my keyboard . How can I use pyudev to detect whether or not the hotplugged device is a keyboard", "Question : I m using PyGame to read a USB MIDI device very similar to what is used here https : github.com davr ArtemisMidiKontrol blob master AMK.py except I run it as a background service on a Raspberry Pi . I would like to be able to disconnect and reconnect the MIDI device and still be able to read it . I have tried two approaches : .. . .. . 1 . Regularly enumerate the MIDI devices using pygame.midi.get count and info . 2 . Use pyudev to monitor USB events similar to this http : stackoverflow.com questions 25494086 retrieve-usb-information-using-pyudev-with-device-name example . The problem with 1 is that it seems that pygame.midi always returns the same values both get count and info regardless of whether the device is still connected . The problem with 2 is that it would never call the asynchronous function I registered for events though the standalone example works fine just changing the subsytem to usb . I figured this might be a problem with threading so I called everything to register for events from a dedicated thread which then ran glib.MainLoop.run to idle wait but discovered the pygame would not be able to read the midi device if I started any thread before running my AMK class even just a thread that printed something and returned . I m using glib since the version of pyudev in the Pi repo is 0.13 but I guess the newer way is the gobject equivalent . Thus I resorted to using udevd to detect the connect event and restart my service via a etc udev rules.d trigger which works okay but is kludgy and loses the state in my script which I would like to save . So before I waste many more hours debugging 2 I was hoping someone could perhaps point me in the right direction . .. . Answer : pygame uses PortMidi which was originally designed for the Windows MIDI API and assumes that the set of MIDI ports never changes . You have to use a separate monitor process that restarts your program whenever MIDI ports change . Comment : Interesting thanks . So that explains the issues with approach 1 . It seems that it indicates 2 is the right way to go but then I m wondering if it s necessary to spawn a new thread after registering the USB monitor . If it is then I m wondering why PyGame doesn t play well with threads and if not then why my even handler isn t called when I run my PyGame class .", "Question : I have a problem with pyudev library usage . I want to have a program which detects USB plug in and prints something to console . Here s the code i have : .. . .. . The problem is when i run the script it seems that device event function gets called twice . The output i get when i plug in an USB device is : .. . .. . I searched all over but could not find an answer Please help Thank you .. . Answer : You get an event for the device enumeration and then separate events for each enumerated interface .", "Question : I m looking to enumerate all hard disks on a computer using udev and specifically pyudev to enumerate everything : .. . .. . This prints out the following : .. . .. . Since I m mainly concerned with actual drives and not optical disk drives loopback devices or ram devices how can I filter my results down to only get real physical media .. . Answer : Since the device management under udev is very flexible it may depend on the udev rules installed in lib udev rules.d or etc udev rules.d that determine what keys you can filter on . You can use udevadm to get a list of devices and their associated udev keys . Similarly your script could be modified to output this information as follows : .. . .. . This will allow you to determine what keys are available for filtering . On my Debian system some of the entries look like this : .. . .. . It would be possible to filter on these key-value pairs to return just those disks which are real . The UDISKS PRESENTATION NOPOLICY entry for example can be used to filter out loop devices . You can peruse the udev rules to determine how it tries to distinguish between real virtual disks . Something like this will filter out cdroms and loop devices : Comment : udisks s nopolicy is defined by simple pattern-matching in lib udev rules.d 80-udisks.rules . ID TYPE is a udev builtin based on ATA commands it looks reliable enough .", "Question : I have been using pyudev to look for bluetooth devices and then used the features attribute to determine if the device has LE support . However just recently in the latest version of Ubuntu udev no longer reports anything for features . Here s what details I do get : .. . .. . And then on another device that is continuing to work as I expected I get : .. . .. . Is there some sort of configuration change somewhere that causes the difference in responses EDIT I ve found that most of those missing values are now in sys kernel debug bluetooth hci0 but I have no idea why that s so . However the format of the features file is different . Is this controlled by a configuration file compiler-options or something else .. . Answer : I think changes have been made in the kernel code to use debugfs instead of sysfs for several bits of information . So I ll just have to rethink how I get that information now .", "Question : I m using PyGame to read a USB MIDI device very similar to what is used here https : github.com davr ArtemisMidiKontrol blob master AMK.py except I run it as a background service on a Raspberry Pi . I would like to be able to disconnect and reconnect the MIDI device and still be able to read it . I have tried two approaches : .. . .. . 1 . Regularly enumerate the MIDI devices using pygame.midi.get count and info . 2 . Use pyudev to monitor USB events similar to this http : stackoverflow.com questions 25494086 retrieve-usb-information-using-pyudev-with-device-name example . The problem with 1 is that it seems that pygame.midi always returns the same values both get count and info regardless of whether the device is still connected . The problem with 2 is that it would never call the asynchronous function I registered for events though the standalone example works fine just changing the subsytem to usb . I figured this might be a problem with threading so I called everything to register for events from a dedicated thread which then ran glib.MainLoop.run to idle wait but discovered the pygame would not be able to read the midi device if I started any thread before running my AMK class even just a thread that printed something and returned . I m using glib since the version of pyudev in the Pi repo is 0.13 but I guess the newer way is the gobject equivalent . Thus I resorted to using udevd to detect the connect event and restart my service via a etc udev rules.d trigger which works okay but is kludgy and loses the state in my script which I would like to save . So before I waste many more hours debugging 2 I was hoping someone could perhaps point me in the right direction . .. . Answer : I haven t tested this thoroughly yet but I believe that if you call quit and then again init you can then get a properly updated list of MIDI devices . Here is an example : Comment : Thanks for the tip . Oddly though if I try the quit and init then reinitialize the device subsequent calls to midi in.poll fail : PortMidi call failed.. . PortMidi : Bad pointer type ENTER.. . And I verified that the new midi in was a valid object pygame.midi.Input object at 0xb4a959d0 . Regardless this seems like a pretty ugly way to do what I want anyway . Since I would like to read the midi device in realtime continuously quitting and reiniting seems like a bad idea . Comment : If you don t want to resort on external procedures you could monitor the system log in your main loop and look for MIDI connect disconnect events . For example use mesg commands.getoutput dmesg grep -i midi and check if mesg has changed from the previous iteration . Only in that case you d need to do the midi quit and init . I m at the office now and can t check the problem with the midi in.poll but did you remember to reassociate the midi port again with midi in pygame.midi.Input portnumber", "Question : null .. . Answer : I m writing a program that uses pyudev to find the uuid of USB devices that are plugged in . So far I ve managed to get it to work for regular USB storage devices and few sensors which are connected as mass storage devices .. . .. . However I m having trouble getting the uuid of my android tablet since the tablet is conencted as a mass storage device I thought this was pretty straightforward . In fact I can t seem to retrieve any info of the device . This is the code I ve written . Is there anyway I retrieve the device info", "Question : I am trying to monitor and filter usb mass storage devices using pyudev in python . In the given code devices are being filtered out if their ID FS USAGE property is None : .. . .. . The traceback shown after executing the above code is : .. . .. . I connected two devices a usb memory drive and a smartphone in usb mass storage mode . The dev entries that correspond to the usb memory drive are dev sdc and dev sdc1 . dev sdd and dev sde correspond to the phone . Here the device dev sdd does have a property called ID FS USAGE which is not none . But it still raises a KeyError . Surprisingly no such error is raised for dev sdc1 . What is going wrong Please Help .. . Answer : The reason that you only get an error for the first device is probably that python stops on the first error . If instead of using device ID FS USAGE which fails if there is no attribute matching you need to use device.get ID FS USAGE which will return None for missing attributes . Comment : Python doesn t stop execution . It executes for dev sdc1 perfectly Executes the window as it s supposed to . The problem lies with reading the ID FS USAGE property of the phone dev sdd should ve been executed just like dev sdc1 but it doesn t Comment : .get does remove the errors in the previous error though it doesn t read the value for ID FS USAGE either . Comment : Try printing the list of properties for each device with print dir device possibly it is not being mounted as a block device . Comment : Can I ask why you are using get item rather than get it is a a private member b a lot more to type c looks worse Comment : here is the pastebin for print dir device : pastebin.com rbbSyFKB http : pastebin.com rbbSyFKB . Well I am a newbie in pyudev and read some tutorial example where they used getitem . I see your point and like it too . Will change it", "Question : I m looking to enumerate all hard disks on a computer using udev and specifically pyudev to enumerate everything : .. . .. . This prints out the following : .. . .. . Since I m mainly concerned with actual drives and not optical disk drives loopback devices or ram devices how can I filter my results down to only get real physical media .. . Answer : Since udev only runs on Linux kernel at least as of now you could filter out by MAJOR number 8 http : www.lanana.org docs device-list devices-2.6+.txt which represents all SCSI SATA disk driver based devices . On my system your code outputs the following : .. . .. . After filtering by major number 8 I see the following output : .. . .. . Note that you would also get USB hard drives and USB sticks in the list since they also tend to use the same SCSI disk driver . I m not really sure if IDE hard drives are mapped as sdX or hdX with the latest 2.6 or 3.x kernels . Do not have an IDE hard drive to verify and long since I have had one . : D .. . .. . UPDATE : The same device number page lists dev hdX to be the one used by IDE hard drives and IDE cdroms too may be . If you want to filter these as well I believe you could do something like this : Comment : I m not really sure if IDE hard drives are mapped as sdX or hdX with the latest 2.6 or 3.3 kernels . Do not have an IDE hard drive to verify and long since I have had one . : D it s sdX", "Question : Trying to make a program to monitor usb-drive connections using pyudev . Here is the code : .. . .. . The traceback : .. . .. . Please help me rectify this . I am trying to use the piece of code given on the docs http : pyudev.readthedocs.org en v0.16 api pyudev.glib.html page . As you will notice the device connected method has the arguments - device connected observer device but the code doesn t work in that case either . It returns the throws the same error . But I was wondering how it would work in the first place . Shouldn t every method of a class have self as an argument .. . Answer : The docs don t say those are methods of the class but signals that are sent by that class . In fact the name the docs are using is device-added which isn t even a valid function name in Python . The function should be a standalone one which you register as a listener for that signal . You can see in the code snippet at the top of the page an example of how to connect your signal to the observer . Comment : oh yea But then how can I make changes to self.window if the function is not a part of the class And if I were to make the function a part of the class how do I resolve the arguments issue Comment : Also running the program after I make the function a stand-alone one along with pulling the all the monitor related code out of the class throws the error : observer.connect device-added device connected NameError : name device connected is not defined Comment : Ok the above seems to have been resolved.Placing the method declaration before observer.connect does the trick .", "Question : I am writing an application which monitors some devices connected to the computer . I loop over all the devices like this : .. . .. . USB devices are detected along with most of built-in boards ethernet .. . but no clue of devices connected in Bluetooth paired and connected in rfcomm . Am I missing something or is Pyudev simply not capable of discovering such devices .. . Answer : udev and thus pydev is only meant to tell you about devices on the local system . It can t tell you about remote devices . Comment : Well at least that s clear . Thank you .", "Question : null .. . Answer : Updated .. . .. . I have the following and according to the example on the pyudev readthedocs site it should be daemon threaded . However even coupling it with Threading it blocks when using eventlet s monkey patching . Runs this : .. . .. . I m using eventlet s monkey patching for Flask-SocketIO which is causing useless thread1 to stop firing . If I comment out the monkey patch call all works as intended . Comment : I ran it without threading and it doesn t seem to block : lpaste.net 174029 http : lpaste.net 174029 Comment : Interesting I just did the same...removed the threading calls and it did not block . Is this because MonitorObserver is asynchronous Comment : It appears that MonitorObserver starts a thread of its own . You can use observer.stop to stop that thread . link http : pyudev.readthedocs.io en latest api pyudev.html pyudev.MonitorObserver.send stop Comment : So it looks like my problem is the combination of this with other threads . I m using threading.Thread to run a Flask Weurkzeug and handle a couple of other flask-socketio responses . When I use MonitorObserver in conjunction with any of it the other threads appear to lock .", "Question : null .. . Answer : I try to react on AC udev events plug in out . The problem is it always hangs on monitor.receive device and waits for AC device udev event . It then continues to execute the MonitorObserver . I assume there is a way where this does not happen . Should I use something like monitor.filter by", "Question : null .. . Answer : Whenever I use eventlet s monkey patching necessary for Flask-SocketIO the disk monitor thread prevents other threads from firing . Eventlet and monkey patching is a must for me . Is there a way to get pyudev s MonitorObserver to place nice and release the GIL with monkey patching results in : .. . .. . and never moves forward from there" ] }
[ "yes-answer-long", "yes-answer-short" ]
python
UNK_RELATION
java-ee-web-profile@java@72
java-ee-web-profile -- java-ee-web-profile web profile a profile ofthe @placeholder platform enterprise edition specifically targeted at web-applications .
{ "confidence": [ 80.2962646484375, 78.70863342285156, 74.0264892578125, 73.0247573852539, 70.81502532958984, 66.46382141113281, 65.86941528320312, 65.86941528320312, 65.86941528320312, 65.58230590820312, 65.14508819580078, 64.30557250976562, 63.22709655761719, 61.706485748291016, 60.591163635253906, 54.41533279418945, 52.7688102722168, 52.06886291503906, 50.20722198486328, 48.00239181518555, 46.42420959472656, 46.19721221923828, 45.20713424682617, 44.74770736694336, 43.75340270996094, 43.30717468261719, 43.264312744140625, 42.99677276611328, 42.029884338378906, 41.86931610107422, 41.748085021972656, 41.04928970336914, 40.94438552856445, 40.20374298095703, 39.16471862792969, 39.13756561279297, 39.075897216796875, 37.2015380859375, 36.7468147277832, 36.543113708496094, 36.543113708496094, 33.54091262817383, 33.54091262817383, 33.54091262817383, 33.54091262817383, 33.54091262817383, 33.23591613769531, 33.048397064208984, 33.048397064208984, 32.59029006958008, 31.514389038085938, 31.327991485595703, 30.04619598388672, 30.04619598388672, 30.04619598388672, 30.04619598388672, 29.958009719848633, 28.51397705078125, 27.90735626220703, 27.90735626220703, 27.890432357788086, 27.497650146484375, 27.474018096923828, 26.886451721191406, 26.665077209472656, 25.913103103637695, 25.511775970458984, 24.88823127746582, 24.88823127746582, 24.714107513427734, 24.52623748779297, 24.442996978759766, 24.442996978759766, 24.442996978759766, 23.728744506835938, 23.412506103515625, 23.12454605102539, 22.91090202331543, 22.597496032714844, 22.258317947387695, 21.978139877319336, 21.550636291503906, 21.4407958984375, 21.4407958984375, 21.13681411743164, 21.13681411743164, 21.13681411743164, 21.13681411743164, 20.41030502319336, 20.41030502319336, 20.140522003173828, 20.140522003173828, 20.031570434570312, 19.25611686706543, 18.77154541015625, 18.310890197753906, 17.39859962463379, 16.44210433959961, 16.44210433959961, 16.44210433959961 ], "content": [ "For Java EE 7 there is a list http : www.oracle.com technetwork java javaee tech index.html of all EE technologies also showing which are included in the Web Profile .", "Am I right to conclude that Tomcat 8 is in fact an incomplete implementation of the Java EE Web Profile", "How to know for a currently running WildFly that if it is running with Web Profile or Full Profile", "For example if you add the JMS extension to web-profile you will be running something that isn t web or full profile .", "questions 2857077 which-technologies-does-tomcat-support 4 answers .. . .. . JPA 2.0 is part of the Java EE Web Profile since Java EE 6 however it is not available in Tomcat 8 .", "I am using JAVA SE 1.7 and JAVA EE 7 in project .. . what are all the available servers commercial free which will support JAVA EE 7 web profile 2.1", "Some technologies formerly available only in the Full Profile are now included in the Web Profile such as JAX-RS .", "As I can see in the Standalone mode it can be run with 2 profiles : Web Profile and Full Profile .", "longer answer : Wildfly doesn t really have any internal distinction between web-profile and full-profile .", "Web profile is a subset of Java EE and it s purpose is to allow developers to create more lightweight applications which can be used inside simple servlet container like Tomcat or Jetty .", "Web Profile Definition .. . .. . The following technologies are required components of the Web Profile : .. . .. . Servlet 3.0 .. . JavaServer Pages JSP 2.2 .. . Expression Language EL 2.2 .. . Debugging Support for Other Languages JSR-45 1.0 .. . Standard Tag Library for JavaServer Pages JSTL 1.2 .. . JavaServer Faces JSF 2.0 .. . Common Annotations for theJava Platform JSR-250 1.1 .. . Enterprise JavaBeans EJB 3.1 Lite .. . Java Transaction API JTA 1.1 .. . Java Persistence API JPA 2.0 .. . Bean Validation 1.0 .. . Managed Beans 1.0 .. . Interceptors 1.1 .. . Contexts and Dependency Injection for the Java EE Platform 1.0 .. . Dependency Injection for Java 1.06 .. . .. . There are no optional components in the Web Profile .", "Hi Tomaz Cerar You are correct in the sense of JAVA EE 7 stuff whether WildFly EE7 full web profile certifed", "I am a starter developer and I would like to understand what is the difference between a server Java EE 6 Web Profile certified like JOnAS 5.x and a server Java EE 6 Full Platform certified like JBoss 7.x .", "However TomEE http : tomee.apache.org apache-tomee.html is : .. . .. . Apache TomEE pronounced Tommy is an all-Apache Java EE 6 Web Profile certified stack where Apache Tomcat is top dog .", "Wildfly 10 is shipping with a servlet profile that is even more stripped down than web profile because people tend to want to customize a lot .", "javaee-spec WebProfile https : java.net downloads javaee-spec WebProfile.pdf .. . .. . I try to use JBoss EAP 6.1 Jboss 7 but I came to know it ll support JAVA EE 6 web profile http : geronimo.apache.org GMOxDEV road-map-for-java-ee6-web-profile.html .", "I m trying to find the best way to add help to a Java EE web application .", "Tomcat is not an implementation of java EE .", "Web applications are not standalone application they run on some applications what we call servletContainer in java context so there is no main method or java process os for any web application .", "Could someone more familiar with the java ecosystem please explain what is available to bridge the gap between an implementation of the web profile and the features described above namely a user registration login framework", "Web applications does not have to contain main methods .", "The Java EE 6 specification https : jcp.org aboutJava communityprocess final jsr316 index.html JSR 316 contains the following lists : .. . .. . Full Java EE Product Requirements .. . .. . The following technologies are required : .. . .. . EJB 3.1 .. . Servlet 3.0 .. . JSP 2.2 .. . EL 2.2 .. . JMS 1.1 .. . JTA 1.1 .. . JavaMail 1.4 .. . Connector 1.6 .. . Web Services 1.3 .. . JAX-RPC 1.1 .. . JAX-WS 2.2 .. . JAX-RS 1.1 .. . JAXB 2.2 .. . JAXR 1.0 .. . Java EE Management 1.1 .. . Java EE Deployment 1.2 .. . JACC 1.4 .. . JASPIC 1.0 .. . JSP Debugging 1.0 .. . JSTL 1.2 .. . Web Services Metadata 2.1 .. . JSF 2.0 .. . Common Annotations 1.1 .. . Java Persistence 2.0 .. . Bean Validation 1.0 .. . Managed Beans 1.0 .. . Contexts and Dependency Injection for Java EE 1.0 .. . Dependency Injection for Java 1.0 .. . .. . There are no optional technologies .", "web-profile1 https : access.redhat.com site articles 112673 web-profile2 http : stackoverflow.com a 7649023 1213738 .. . .. . .. . I found JAVA EE 7 compatible http : www.oracle.com technetwork java javaee overview compatibility-jsp-136984.html servers are GlassFish Server Open Source Edition 4.0 TMAX JEUS 8 .", "I ve created a Maven Java Enterprise application which contains an EJB application and a Web application .", "I am interested in using something like TomEE an implementation of the Java EE 6 Web Profile for building a web site in a tool like Eclipse or NetBeans as the following things are appealing to me : .. . .. . OOB data-layer complete with transactions POJO JPA to avoid writing a database layer connection-pooling caching for performance optimistic-concurrency .. . MVC concepts for presentation layer i.e .", "I was trying to understand how the Web Services work and I came across this tutorial http : www.dreamsyssoft.com blog blog.php archives 7-Simple-REST-Web-Service-in-Java-with-Spring-and-CXF.html .. . .. . Now I ve seen spring being used in enterprise applications and always wondered where the main method was and how everything worked", "Web applications don t have a main the program that is running is actually the web container Apache Tomcat Glassfish JBoss Weblogic whatever and that program will service the web application s you deploy into it .", "I have 2 applications projects deployed in tomcat 7 web server .", "I have a java web EE project running locally which uses this https : github.com mrniko netty-socketio This works and I can run the demo locally using localhost as the host .", "When I am double-clicking on local Java EE 6 Web Profile Server then I can t see Users tab there : https : www.dropbox.com s rw11yer4cghh78e server 20 28previous 29.png dl 0 .. . .. . But when I create new local server in Eclipse then Users tab is there : https : www.dropbox.com s dggu243jogratxq server 20new.png dl 0 .. . .. . Can anyone know what is going wrong and how to fix it", "When Eclipse created the Java EE project for me it created the following directory structure : .. . .. . I put all of my Java source files---servlets and classes---in the src directory and all of the Web files---.jsp .html and various .xml resources---in WebContent .", "You might want to read the JEE tutorial to actually learn and understand what a Java web environment is .", "As specification In a Java EE environment if this element is not specified the default is JTA .", "This project is built into a web application archive WAR file which is deployed into a web server servlet container e.g .", "The main purpose of that is to improve my programming skills and learning a bit about Java EE .", "How can I do that in web server level", "it is used to prevent users with insufficient authorization to access web application resources such as access to portions of code or web pages or other web application resources .", "i added the jars to my web application WEB-INF lib folder and also to build path .", "Should I place and dependencies in the Enterprise Application dependency folder or only in the Web or EJB project as required", "The default standalone.xml configuration is a certified web-distribution but Wildfly doesn t know that .", "I am developing a web app in Eclipse for deployment to a Tomcat server .", "The WAR project s dependencies can be put into WEB-INF lib .", "just select the version of Dynamic Web Module from 3.0 to 2.5 .", "Then you can check the box of dynamic web module 3.0 .", "I moved the classes and jars to WEB-INF lib folder .", "The site will only be accessed on a private LAN through a web browser .", "Could I implement some type of tool-tips written in Java EE or otherwise that would prompt quicker than an HTML page would load", "You don t see any explicit main method just because it is a Web project .", "@Magnilex I am working with web server Apache Tomcat 7.0 not any application server .", "TomEE The Web Profile version of TomEE contains .. . .. . CDI - Apache OpenWebBeans .. . EJB - Apache OpenEJB .. . JPA - Apache OpenJPA .. . JSF - Apache MyFaces .. . JSP - Apache Tomcat .. . JSTL - Apache Tomcat .. . JTA - Apache Geronimo Transaction .. . Servlet - Apache Tomcat .. . Javamail - Apache Geronimo JavaMail .. . Bean Validation - Apache BVal .. . .. . TomEE+ The TomEE Plus distribution adds the following : .. . .. . JAX-RS - Apache CXF .. . JAX-WS - Apache CXF .. . JMS - Apache ActiveMQ .. . Connector - Apache Geronimo Connector", "Here is an list of Certified application servers http : en.wikipedia.org wiki Java EE Certified application servers both of GlassFish server Open Source Edition v4.0 WildFly v8.0.0.Final TmaxSoft JEUS v8 are Java EE 7 full certified .", "You can go through Facebook APIs for JAVA developers and can use them in your application like google-calendar API google-Picasa-web API etc .", "All files flagged as resources : images not dinamic web pages CSS javascripts .xsd etc .", "For the same i have placed my web app in ROOT folder of the apache tomcat in AWS and i can access the app .", "I replaced the old jars with my new jars in WEB-INF lib folder .", "Are you adding the jar files to your application or to the Tomcat WEB-INF lib folder", "In my website which is built-in Java EE I want to add a feature so that the users can login into my webpage using their Facebook login details or Gmail login details .", "@SunilSharma : I did read your question again but I d say my anwer is still valid - your tomcat is trying to serve the wrong URL and has not context for it so it produces an ugly 404 web page itself .", "The thing is I m concerned I might lose too much flexibility and control if I went with a full-blown web framework like Play Vaadin or Grails .", "I can t add my project to tomcat server 7 so i went to properties of my project and Dynamic Web module was unchecked .", "Normally if I were to run a simple java project from command-line I d do java mainClass .", "From Tomcat website http : tomcat.apache.org : .. . .. . The Apache Tomcat software is an open-source implementation of the Java Servlet JavaServer Pages Java Expression Language and Java WebSocket technologies .", "JSF .. . communication capabilities to other java components running on other JVM instances .. . .. . Next I d like to determine the feasibility of incorporating some additional building blocks to give me a framework for a typical web-facing registration login mechanism .", "Every Java app you deploy on HANA Cloud Platform has a unique URL available .", "And my Extension is .. . .. . .. . .. . I m running on GlassFish 4.1 with javax : javaee-web-api : 7.0 and org.jboss.weld : weld-core : 1.1.29.Final on the classpath .", "In theory you should be able to modify the web.xml of the default tomcat web application but according to this http : stackoverflow.com questions 8135388 is-there-a-way-to-configure-usage-of-one-custom-error-page-for-all-error-codes-i that doesn t work for Tomcat 7 .", "Apache-Shiro is pretty robust and provides a very nice abstraction-layer with looser coupling it integrates with numerous other technologies including spring-security and provides web ui integration with JSF .", "cloud.google.com appengine docs java modules routing https : cloud.google.com appengine docs java modules routing -- is this link helpful for you", "cloud.google.com appengine docs java modules routing https : cloud.google.com appengine docs java modules routing", "Is this okay for enterprise", "Most of EE7 stuff works TCK for EE7 is almost passing and when it is it will enter certification process which will then result into showing up on the web page you linked .", "This is because you don t need to explicitly start any Java process from within your webapp .", "They are just deployed on those containers that have main method and java process in OS runtime .", "The remote-server running in the cloud is a CentOS 5.5 system running Tomcat 7 and Java 8 .", "This is totally different from what I see in the applications .", "While I don t think it s pertinent for the record my system is : .. . .. . Eclipse Luna on a Windows 10 localhost with Tomcat 8 and Java 8 .", "@user2991030 - and you don t see any Java Exception in server logs", "I have a small web application witch contains a button witch declared in HTML like that input-type-file name b1 value browse I would use any file selected from the descktop how i can keeped the name of this file and the file a lot to write her contains into TextArea and thanks .", "What s the purpose of having the dependencies folder in the Enterprise project", "And whenever I would go to spring tutorial they ll start with beanFactory and Contexts and what not all in a main java method and from there just keep getting beans as required .", "HCP is just an enormous platform .", "All other files used by your enterprise application need a weblogic restart .", "Define the target parameter in the queue definition file : https : cloud.google.com appengine docs java config queue target", "See here : https : docs.oracle.com javase 8 docs api java nio file Files.html deleteIfExists-java.nio.file.Path-", "So I want to handle All requests to Servlet .", "But if I put wildcard in my web.xml then get infinite-loop in : .. . .. . And I want all my requests not to end with .jsp but rather with like main main level main level 1 etc .", "Question is How to avoid infinite-loop there", "Find out that if I want to handle all requests through servlet I can create my Filter where then I can use .. . .. . After that I can pass req and resp objects to who I want .", "In Backends base app engine project Java i was doing .. . .. . But now for Modules How can i target a specific Module for my specific URL .", "The Modules API https : cloud.google.com appengine docs java javadoc com google appengine api modules package-summary provides similar capabilities .", "In the Netbeans Projects tab it shows both of these application projects as well as the Enterprise application that uses both of the above .", "As part of enterprise application usage i know for js and jsp it does not require restart .", "How can I fix this code and not misuse the platform in the future", "But for Java Spring Security seems to be the most widelly deployed solution as it s highly customizable - you can for example configure it to store users on a database or LDAP grant accesses based on roles or access-control lists and so on .", "i need to restrict perticular Active Directory Domain users from accessing applications .", "PicketLink is a very powerful technology with many security features but might not be as turn key as Shiro or Spring if you think that down the road you will want your security-framework to be enterprise grade and implement features such as IDP .", "Running my code produces the following error : .. . .. . The Resource code is as follows : .. . .. . The code in the ProfilesBean is as follows : .. . .. . Here is the code for the Entity class : .. . .. . It seems like the error comes from my misusing the platform somehow .", "Can someone tell me how exactly does spring work in this case .", "What is the sequence of calls .", "I guess there will be some hidden main method somewhere but I am not sure of that ." ] }
{ "confidence": [ 105.29419708251953, 96.7600326538086, 91.72042083740234, 90.41585540771484, 89.4475326538086, 85.44757843017578, 67.77316284179688, 66.07695770263672, 62.923828125, 62.29652404785156, 58.92673873901367, 54.6431884765625, 54.21673583984375, 51.37474060058594, 47.240684509277344, 46.89480972290039, 46.659271240234375, 45.40685272216797, 45.11115264892578, 39.394962310791016 ], "content": [ "Question : I am a starter developer and I would like to understand what is the difference between a server Java EE 6 Web Profile certified like JOnAS 5.x and a server Java EE 6 Full Platform certified like JBoss 7.x . If someone could clarify this difference with simple words it could be really helpfull . Thank you .. . Answer : The Java EE 6 specification https : jcp.org aboutJava communityprocess final jsr316 index.html JSR 316 contains the following lists : .. . .. . Full Java EE Product Requirements .. . .. . The following technologies are required : .. . .. . EJB 3.1 .. . Servlet 3.0 .. . JSP 2.2 .. . EL 2.2 .. . JMS 1.1 .. . JTA 1.1 .. . JavaMail 1.4 .. . Connector 1.6 .. . Web Services 1.3 .. . JAX-RPC 1.1 .. . JAX-WS 2.2 .. . JAX-RS 1.1 .. . JAXB 2.2 .. . JAXR 1.0 .. . Java EE Management 1.1 .. . Java EE Deployment 1.2 .. . JACC 1.4 .. . JASPIC 1.0 .. . JSP Debugging 1.0 .. . JSTL 1.2 .. . Web Services Metadata 2.1 .. . JSF 2.0 .. . Common Annotations 1.1 .. . Java Persistence 2.0 .. . Bean Validation 1.0 .. . Managed Beans 1.0 .. . Contexts and Dependency Injection for Java EE 1.0 .. . Dependency Injection for Java 1.0 .. . .. . There are no optional technologies . Web Profile Definition .. . .. . The following technologies are required components of the Web Profile : .. . .. . Servlet 3.0 .. . JavaServer Pages JSP 2.2 .. . Expression Language EL 2.2 .. . Debugging Support for Other Languages JSR-45 1.0 .. . Standard Tag Library for JavaServer Pages JSTL 1.2 .. . JavaServer Faces JSF 2.0 .. . Common Annotations for theJava Platform JSR-250 1.1 .. . Enterprise JavaBeans EJB 3.1 Lite .. . Java Transaction API JTA 1.1 .. . Java Persistence API JPA 2.0 .. . Bean Validation 1.0 .. . Managed Beans 1.0 .. . Interceptors 1.1 .. . Contexts and Dependency Injection for the Java EE Platform 1.0 .. . Dependency Injection for Java 1.06 .. . .. . There are no optional components in the Web Profile . For Java EE 7 there is a list http : www.oracle.com technetwork java javaee tech index.html of all EE technologies also showing which are included in the Web Profile . Some technologies formerly available only in the Full Profile are now included in the Web Profile such as JAX-RS .", "Question : I am a starter developer and I would like to understand what is the difference between a server Java EE 6 Web Profile certified like JOnAS 5.x and a server Java EE 6 Full Platform certified like JBoss 7.x . If someone could clarify this difference with simple words it could be really helpfull . Thank you .. . Answer : Here is nice image which explains it . Web profile is a subset of Java EE and it s purpose is to allow developers to create more lightweight applications which can be used inside simple servlet container like Tomcat or Jetty . enter image description here http : i.stack.imgur.com uuPbl.jpg Comment : Thank you for your reply You can t do more clear", "Question : I am using JAVA SE 1.7 and JAVA EE 7 in project .. . what are all the available servers commercial free which will support JAVA EE 7 web profile 2.1 Required Components . I need to use Servlet 3.1 and CDI 1.1 ..etc . javaee-spec WebProfile https : java.net downloads javaee-spec WebProfile.pdf .. . .. . I try to use JBoss EAP 6.1 Jboss 7 but I came to know it ll support JAVA EE 6 web profile http : geronimo.apache.org GMOxDEV road-map-for-java-ee6-web-profile.html . web-profile1 https : access.redhat.com site articles 112673 web-profile2 http : stackoverflow.com a 7649023 1213738 .. . .. . .. . I found JAVA EE 7 compatible http : www.oracle.com technetwork java javaee overview compatibility-jsp-136984.html servers are GlassFish Server Open Source Edition 4.0 TMAX JEUS 8 . Any other servers available .. . Answer : Here is an list of Certified application servers http : en.wikipedia.org wiki Java EE Certified application servers both of GlassFish server Open Source Edition v4.0 WildFly v8.0.0.Final TmaxSoft JEUS v8 are Java EE 7 full certified .", "Question : I am using JAVA SE 1.7 and JAVA EE 7 in project .. . what are all the available servers commercial free which will support JAVA EE 7 web profile 2.1 Required Components . I need to use Servlet 3.1 and CDI 1.1 ..etc . javaee-spec WebProfile https : java.net downloads javaee-spec WebProfile.pdf .. . .. . I try to use JBoss EAP 6.1 Jboss 7 but I came to know it ll support JAVA EE 6 web profile http : geronimo.apache.org GMOxDEV road-map-for-java-ee6-web-profile.html . web-profile1 https : access.redhat.com site articles 112673 web-profile2 http : stackoverflow.com a 7649023 1213738 .. . .. . .. . I found JAVA EE 7 compatible http : www.oracle.com technetwork java javaee overview compatibility-jsp-136984.html servers are GlassFish Server Open Source Edition 4.0 TMAX JEUS 8 . Any other servers available .. . Answer : Yes there is also WildFly 8 http : www.wildfly.org renamed JBossAS . which is nearing CR1 this weak . Most of EE7 stuff works TCK for EE7 is almost passing and when it is it will enter certification process which will then result into showing up on the web page you linked . I would say that you should give WildFly a try if noting else . Comment : Hi Tomaz Cerar You are correct in the sense of JAVA EE 7 stuff whether WildFly EE7 full web profile certifed I don t have much knowledge in LGPL if I need to use wildfly to develop client applications in office should I company need to buy and what are the licensing and security Issues need to take care could yo please help me on this", "Question : This question already has an answer here : .. . .. . Which technologies does Tomcat support questions 2857077 which-technologies-does-tomcat-support 4 answers .. . .. . JPA 2.0 is part of the Java EE Web Profile since Java EE 6 however it is not available in Tomcat 8 . Am I right to conclude that Tomcat 8 is in fact an incomplete implementation of the Java EE Web Profile .. . Answer : Tomcat is not an implementation of java EE . From Tomcat website http : tomcat.apache.org : .. . .. . The Apache Tomcat software is an open-source implementation of the Java Servlet JavaServer Pages Java Expression Language and Java WebSocket technologies . However TomEE http : tomee.apache.org apache-tomee.html is : .. . .. . Apache TomEE pronounced Tommy is an all-Apache Java EE 6 Web Profile certified stack where Apache Tomcat is top dog . TomEE The Web Profile version of TomEE contains .. . .. . CDI - Apache OpenWebBeans .. . EJB - Apache OpenEJB .. . JPA - Apache OpenJPA .. . JSF - Apache MyFaces .. . JSP - Apache Tomcat .. . JSTL - Apache Tomcat .. . JTA - Apache Geronimo Transaction .. . Servlet - Apache Tomcat .. . Javamail - Apache Geronimo JavaMail .. . Bean Validation - Apache BVal .. . .. . TomEE+ The TomEE Plus distribution adds the following : .. . .. . JAX-RS - Apache CXF .. . JAX-WS - Apache CXF .. . JMS - Apache ActiveMQ .. . Connector - Apache Geronimo Connector Comment : I see . . However that page makes it clear what it is but doesn t say much about what it is not . Comment : @GabrielBR I am not sure I understand your point . Tomcat is an implementation of the 4 technologies Servlet JSP EL and WS . Therefore it is not an implementation of anything else :", "Question : I am using JAVA SE 1.7 and JAVA EE 7 in project .. . what are all the available servers commercial free which will support JAVA EE 7 web profile 2.1 Required Components . I need to use Servlet 3.1 and CDI 1.1 ..etc . javaee-spec WebProfile https : java.net downloads javaee-spec WebProfile.pdf .. . .. . I try to use JBoss EAP 6.1 Jboss 7 but I came to know it ll support JAVA EE 6 web profile http : geronimo.apache.org GMOxDEV road-map-for-java-ee6-web-profile.html . web-profile1 https : access.redhat.com site articles 112673 web-profile2 http : stackoverflow.com a 7649023 1213738 .. . .. . .. . I found JAVA EE 7 compatible http : www.oracle.com technetwork java javaee overview compatibility-jsp-136984.html servers are GlassFish Server Open Source Edition 4.0 TMAX JEUS 8 . Any other servers available .. . Answer : You can use WildFly 8 but It does not have commercial support by RedHat yet . So you can use it for anything but you have to wait for the next EAP version if you want to have official support . LGPL is not a problem you can use it to build any applications however I suggest to use an Application server with commercial support once you need to deploy to production but this should depends of your applications needs .", "Question : I am exploring WildFly first time . I have installed WildFly 8.2.1.Final . As I can see in the Standalone mode it can be run with 2 profiles : Web Profile and Full Profile . How to know for a currently running WildFly that if it is running with Web Profile or Full Profile Thanks Comment : Check this out stackoverflow.com questions 26400059 http : stackoverflow.com questions 26400059 is-there-an-easy-way-to-create-a-new-wildfly-server-instance Comment : @happy Thanks for the link but this is not what I am looking for . Suppose there is a WildFly running on a server and I don t know if it was started with standalone.xml or standalone-full.xml . Is there any way through its console to figure it out .. . Answer : short answer : no . longer answer : Wildfly doesn t really have any internal distinction between web-profile and full-profile . The configuration is all there is . The default standalone.xml configuration is a certified web-distribution but Wildfly doesn t know that . As you add or remove extensions in the configuration you are making it non-standard in terms of configuration . For example if you add the JMS extension to web-profile you will be running something that isn t web or full profile . Wildfly 10 is shipping with a servlet profile that is even more stripped down than web profile because people tend to want to customize a lot . As to knowing what you are running the best way to tell this at runtime is to : .. . .. . this will give you a list of running extensions and you can check for the presence of the ones you care about . Comment : Thanks . Can you give me Windows equivalent of what you suggested the best way to tell at runtime We are running all Windows here . Comment : I don t know windows . But there should be a .bat equivalent in the bin directory .", "Question : I am interested in using something like TomEE an implementation of the Java EE 6 Web Profile for building a web site in a tool like Eclipse or NetBeans as the following things are appealing to me : .. . .. . OOB data-layer complete with transactions POJO JPA to avoid writing a database layer connection-pooling caching for performance optimistic-concurrency .. . MVC concepts for presentation layer i.e . JSF .. . communication capabilities to other java components running on other JVM instances .. . .. . Next I d like to determine the feasibility of incorporating some additional building blocks to give me a framework for a typical web-facing registration login mechanism . The thing is I m concerned I might lose too much flexibility and control if I went with a full-blown web framework like Play Vaadin or Grails . However I d also like to avoid having to reinvent the wheel by implementing the following mechanisms entirely on my own : .. . .. . Email verification during registration .. . Lost password account recovery Update : Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . CAPTCHA during registration Update : Spring Security 3 : Integrating reCAPTCHA Service http : krams915.blogspot.ca 2011 02 spring-security-3-integrating-recaptcha.html Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . Peer-reviewed implementation of password handling storage .. . Nice to have : Alignment with OWASP security best practices .. . Nice to have : Basic user administration Update : Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . .. . Ideally I d like an authentication authorization mechanism that uses an extensible POJO layer complete with basic sample pages . From my research it seems like JAAS probably isn t going to cut it and I m a bit fuzzy on if projects like Apache Shiro Spring Security DeltaSpike or PicketLink would give me a push in the forwards direction or if these are overkill . Could someone more familiar with the java ecosystem please explain what is available to bridge the gap between an implementation of the web profile and the features described above namely a user registration login framework .. . Answer : Spring security is as far as I knoiw a low-level security : i.e . it is used to prevent users with insufficient authorization to access web application resources such as access to portions of code or web pages or other web application resources . User registration CAPTCHA you would have probably implement on your own perhaps by taking existing components libraries e.g . http : stackoverflow.com a 220452 999264 for CAPTCHA etc and integrate it with spring-security yourself .", "Question : null .. . Answer : Recently I copied my Eclipse workspace to new PC . And now I have problems with Servers that was previous deffined in Eclipse . When I am double-clicking on local Java EE 6 Web Profile Server then I can t see Users tab there : https : www.dropbox.com s rw11yer4cghh78e server 20 28previous 29.png dl 0 .. . .. . But when I create new local server in Eclipse then Users tab is there : https : www.dropbox.com s dggu243jogratxq server 20new.png dl 0 .. . .. . Can anyone know what is going wrong and how to fix it I do not want to re-create server and add all my apps on it . I want to use my previous deffined server existing and fix this missing Users tab issue . If you need more information please let me know . BR Kristaps Comment : I m not sure about this solution but you could give it a try : Open old workspace and export your preferences - File Export Preferences Present under General . It will be saved in a file . Now open your new workspace and import this preference file : File Import Preferences Comment : Hi I do not have my old pc old workspace available . Is there any other solution to add missing Users tab Comment : Sorry but have no other clue .", "Question : I am interested in using something like TomEE an implementation of the Java EE 6 Web Profile for building a web site in a tool like Eclipse or NetBeans as the following things are appealing to me : .. . .. . OOB data-layer complete with transactions POJO JPA to avoid writing a database layer connection-pooling caching for performance optimistic-concurrency .. . MVC concepts for presentation layer i.e . JSF .. . communication capabilities to other java components running on other JVM instances .. . .. . Next I d like to determine the feasibility of incorporating some additional building blocks to give me a framework for a typical web-facing registration login mechanism . The thing is I m concerned I might lose too much flexibility and control if I went with a full-blown web framework like Play Vaadin or Grails . However I d also like to avoid having to reinvent the wheel by implementing the following mechanisms entirely on my own : .. . .. . Email verification during registration .. . Lost password account recovery Update : Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . CAPTCHA during registration Update : Spring Security 3 : Integrating reCAPTCHA Service http : krams915.blogspot.ca 2011 02 spring-security-3-integrating-recaptcha.html Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . Peer-reviewed implementation of password handling storage .. . Nice to have : Alignment with OWASP security best practices .. . Nice to have : Basic user administration Update : Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . .. . Ideally I d like an authentication authorization mechanism that uses an extensible POJO layer complete with basic sample pages . From my research it seems like JAAS probably isn t going to cut it and I m a bit fuzzy on if projects like Apache Shiro Spring Security DeltaSpike or PicketLink would give me a push in the forwards direction or if these are overkill . Could someone more familiar with the java ecosystem please explain what is available to bridge the gap between an implementation of the web profile and the features described above namely a user registration login framework .. . Answer : CAPTCHA Email verification and Password recovery are not parts of core security services and are more of added features . Core services are Authentication Authorization and Session management . Some of the aspect that distinguish these technologies are : .. . .. . Does using a specific technology binds you to it .. . .. . How much custom development will need to be done . The scale and volume that a technology can support and the effort required to get it there . Technologies .. . .. . Using spring usually means that you would need to bring in the whole spring ecosystem into your project it does many things for you and simplifies development but it does mean a pretty tight coupling to spring . Apache-Shiro is pretty robust and provides a very nice abstraction-layer with looser coupling it integrates with numerous other technologies including spring-security and provides web ui integration with JSF . PicketLink is a very powerful technology with many security features but might not be as turn key as Shiro or Spring if you think that down the road you will want your security-framework to be enterprise grade and implement features such as IDP . Picketlink could be a very good choice to build on .", "Question : I am interested in using something like TomEE an implementation of the Java EE 6 Web Profile for building a web site in a tool like Eclipse or NetBeans as the following things are appealing to me : .. . .. . OOB data-layer complete with transactions POJO JPA to avoid writing a database layer connection-pooling caching for performance optimistic-concurrency .. . MVC concepts for presentation layer i.e . JSF .. . communication capabilities to other java components running on other JVM instances .. . .. . Next I d like to determine the feasibility of incorporating some additional building blocks to give me a framework for a typical web-facing registration login mechanism . The thing is I m concerned I might lose too much flexibility and control if I went with a full-blown web framework like Play Vaadin or Grails . However I d also like to avoid having to reinvent the wheel by implementing the following mechanisms entirely on my own : .. . .. . Email verification during registration .. . Lost password account recovery Update : Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . CAPTCHA during registration Update : Spring Security 3 : Integrating reCAPTCHA Service http : krams915.blogspot.ca 2011 02 spring-security-3-integrating-recaptcha.html Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . Peer-reviewed implementation of password handling storage .. . Nice to have : Alignment with OWASP security best practices .. . Nice to have : Basic user administration Update : Emmet http : metadata.net sites emmet-0.6-SNAPSHOT .. . .. . Ideally I d like an authentication authorization mechanism that uses an extensible POJO layer complete with basic sample pages . From my research it seems like JAAS probably isn t going to cut it and I m a bit fuzzy on if projects like Apache Shiro Spring Security DeltaSpike or PicketLink would give me a push in the forwards direction or if these are overkill . Could someone more familiar with the java ecosystem please explain what is available to bridge the gap between an implementation of the web profile and the features described above namely a user registration login framework .. . Answer : Check the Emmet http : metadata.net sites emmet-0.6-SNAPSHOT framework which contains extensions on Spring security it has several of the features you mention although not all . If you decide to implement some of the components yourself it might help to have a look at their code . But for Java Spring Security seems to be the most widelly deployed solution as it s highly customizable - you can for example configure it to store users on a database or LDAP grant accesses based on roles or access-control lists and so on . I think no-framework provides all these building blocks but for user registration for example there are external services that manage the user database and send registration transactional emails on your behalf that are more or less guaranteed not to fall on the spam mailbox . An example of such service is mailjet https : uk.mailjet.com api-developers . One of the advantages of going to a full stack like Vaadin is that these framework will use most of the OWASP best practices for you like putting in-place CSRF tokens or avoiding script injection with proper escaping etc . This helps to somewhat compensate for the lack of flexibility which is usually less than it might seem . For example in Spring MVC almost everything is pluggable in Vaadin if you don t like a given widget you can customize it and write your own .", "Question : I was trying to understand how the Web Services work and I came across this tutorial http : www.dreamsyssoft.com blog blog.php archives 7-Simple-REST-Web-Service-in-Java-with-Spring-and-CXF.html .. . .. . Now I ve seen spring being used in enterprise applications and always wondered where the main method was and how everything worked And whenever I would go to spring tutorial they ll start with beanFactory and Contexts and what not all in a main java method and from there just keep getting beans as required . This is totally different from what I see in the applications . Can someone tell me how exactly does spring work in this case . What is the sequence of calls . I guess there will be some hidden main method somewhere but I am not sure of that . Normally if I were to run a simple java project from command-line I d do java mainClass . Now how would it happen in this case . Thanks .. . Answer : Web applications don t have a main the program that is running is actually the web container Apache Tomcat Glassfish JBoss Weblogic whatever and that program will service the web application s you deploy into it . You might want to read the JEE tutorial to actually learn and understand what a Java web environment is . http : docs.oracle.com javaee 7 tutorial doc", "Question : I was trying to understand how the Web Services work and I came across this tutorial http : www.dreamsyssoft.com blog blog.php archives 7-Simple-REST-Web-Service-in-Java-with-Spring-and-CXF.html .. . .. . Now I ve seen spring being used in enterprise applications and always wondered where the main method was and how everything worked And whenever I would go to spring tutorial they ll start with beanFactory and Contexts and what not all in a main java method and from there just keep getting beans as required . This is totally different from what I see in the applications . Can someone tell me how exactly does spring work in this case . What is the sequence of calls . I guess there will be some hidden main method somewhere but I am not sure of that . Normally if I were to run a simple java project from command-line I d do java mainClass . Now how would it happen in this case . Thanks .. . Answer : Web applications are not standalone application they run on some applications what we call servletContainer in java context so there is no main method or java process os for any web application . They are just deployed on those containers that have main method and java process in OS runtime .", "Question : I was trying to understand how the Web Services work and I came across this tutorial http : www.dreamsyssoft.com blog blog.php archives 7-Simple-REST-Web-Service-in-Java-with-Spring-and-CXF.html .. . .. . Now I ve seen spring being used in enterprise applications and always wondered where the main method was and how everything worked And whenever I would go to spring tutorial they ll start with beanFactory and Contexts and what not all in a main java method and from there just keep getting beans as required . This is totally different from what I see in the applications . Can someone tell me how exactly does spring work in this case . What is the sequence of calls . I guess there will be some hidden main method somewhere but I am not sure of that . Normally if I were to run a simple java project from command-line I d do java mainClass . Now how would it happen in this case . Thanks .. . Answer : You don t see any explicit main method just because it is a Web project . This project is built into a web application archive WAR file which is deployed into a web server servlet container e.g . Tomcat in this tutorial . Web applications does not have to contain main methods . This is because you don t need to explicitly start any Java process from within your webapp . Somewhere in its depths Tomcat calls a main method of the code it has been built from . This happens at server startup time . Then it will bind your code to incoming HTTP calls but it will not start new processes for that . It will rather start new threads .", "Question : I m trying to find the best way to add help to a Java EE web application . I am reading that .chm files are obsolete and shouldn t be used due to security issues in Windows . The site will only be accessed on a private LAN through a web browser . It sounds kind of old school but I was thinking that I would just write the HTML and have hyperlinks to jump to the section of the page where the relevant content is . I m wondering if just a regular old HTML page will work Is this okay for enterprise Are there any standards or software programs that would help with a table of contents and list of help items The users will obviously need to be able to have quick and easy access to help if they have questions on a particular page . Could I implement some type of tool-tips written in Java EE or otherwise that would prompt quicker than an HTML page would load Comment : We use an HTML popup for our homepage which is accessible via a link . Comment : Thanks Tim . How does it appear on the page Just a small box Comment : It is a popup say two-thirds the width of the screen . .. . Answer : You can have a HELP link throughout your application . When clicked it opens a plain browser window showing the help content . Plain browser window means no navigation buttons this way users won t be using this window to continue their work which can be problematic . This will force them to simply close the window when they are done with it . Help content can be plain HTML or dynamic .jsp depending on how complex the help structure is . Advantage of jsp is the content can be served dynamically from a database and you can build the table of contents from server-side so more suited for larger help content . The help link can be customised depending on what page you re on so that users are taken directly to the relevant help . This can be done with query strings for example help.html abc or help.jsp topic abc to take users directly to the abc topic . In addition to the full-blown help page s you could also have inline tooltips for individual fields for example . Add a small question mark icon next to the field label that when hovered or clicked will display a short information about that particular field . A good example of this tooltip is what you can find next to the CVV field on various credit-card payment pages . Hope that helps . Comment : In-line tool-tips with question mark that hyperlink jump to the help.jsp page Ever done this : Comment : @PeachesToad I haven t but if it works for you why not", "Question : In my website which is built-in Java EE I want to add a feature so that the users can login into my webpage using their Facebook login details or Gmail login details . Comment : and what have you tried What research have you done Show some effort don t just dump your work on others . .. . Answer : You can go through Facebook APIs for JAVA developers and can use them in your application like google-calendar API google-Picasa-web API etc . First you can access only publicly shared-objects without credentials . If you want private objects access you can implement these API calls by using OAuth . Please read below resources for your reference as per your project needs : .. . .. . http : projects.spring.io spring-social-facebook .. . .. . https : developers.facebook.com docs apis-and-sdks", "Question : null .. . Answer : I am developing a web app in Eclipse for deployment to a Tomcat server . Currenly it works fine when I launch it from within Eclipse using a Tomcat installation on the localhost . But when I export a .war file and install it on a remote-server it fails because of a mismatch between the file system in Eclipse and the file system in the .war file . When Eclipse created the Java EE project for me it created the following directory structure : .. . .. . I put all of my Java source files---servlets and classes---in the src directory and all of the Web files---.jsp .html and various .xml resources---in WebContent . So that my app could use the .xml resources I put them all in a WebContent subdirectory named not coincidentally resources . I then defined a variable pointing to these files.. . .. . .. . ...in each class that needs to access the .xml files . This works well when I run the app from within Eclipse . But when I export and deploy the app if fails . The .war file Eclipse creates does not include a WebContent folder so the search for resources fails and the app crashes shutting down Tomcat in the process . So I guess I m looking for some advice on how best to structure Eclipse or my app so that a single code base works both in Eclipse on the localhost and from a .war file on a remote-server with a minimum of fuss and fidgeting with build configurations or having to manually edit the .war file . While I don t think it s pertinent for the record my system is : .. . .. . Eclipse Luna on a Windows 10 localhost with Tomcat 8 and Java 8 . The remote-server running in the cloud is a CentOS 5.5 system running Tomcat 7 and Java 8 . Thanks . Jerry", "Question : I ve created a Maven Java Enterprise application which contains an EJB application and a Web application . In the Netbeans Projects tab it shows both of these application projects as well as the Enterprise application that uses both of the above . Should I place and dependencies in the Enterprise Application dependency folder or only in the Web or EJB project as required What s the purpose of having the dependencies folder in the Enterprise project .. . Answer : An EJB project does not have a lib folder so all it s dependencies must be added in another archive . The WAR project s dependencies can be put into WEB-INF lib . What you ll generally find in the EAR archive s lib folder are the dependencies required by the EJB project . Remember that you don t need to actually include any of the JavaEE libraries use the provided scope in Maven .", "Question : I was trying to understand how the Web Services work and I came across this tutorial http : www.dreamsyssoft.com blog blog.php archives 7-Simple-REST-Web-Service-in-Java-with-Spring-and-CXF.html .. . .. . Now I ve seen spring being used in enterprise applications and always wondered where the main method was and how everything worked And whenever I would go to spring tutorial they ll start with beanFactory and Contexts and what not all in a main java method and from there just keep getting beans as required . This is totally different from what I see in the applications . Can someone tell me how exactly does spring work in this case . What is the sequence of calls . I guess there will be some hidden main method somewhere but I am not sure of that . Normally if I were to run a simple java project from command-line I d do java mainClass . Now how would it happen in this case . Thanks .. . Answer : There is still a main method it s just not written by the developer of the application but by the developer of the container . You can still see the main method being called by using the debugger like this : .. . .. . Put a breakpoint in some initialization method such as the init method of some servlet Servlet.init http : tomcat.apache.org tomcat-5.5-doc servletapi javax servlet Servlet.html init 28javax.servlet.ServletConfig 29 .. . When the breapoint hits scroll down the call trace and the main method should be at the bottom . This is an example with jetty : .. . .. . enter image description here http : i.stack.imgur.com sqSM7.png .. . .. . To see this we need to put the breakpoint in an initialization method so that we get the main thread of the application . Putting the breakpoint in the processing of a request instead of an initialization method would show Thread.run at the bottom of the stack-trace and not main . Thread.run is the equivalent of the main method for threads other than the main thread . So the main method still exists it s just being handled at the level of the container .", "Question : I have a productive HCP set up and would like to get it running as a socket.io server . I have been able to get websockets working however I already have a lot of software running socket.io and don t want to change all of it . I m basically hoping to swap out the node server I have now with the HCP one . I have a java web EE project running locally which uses this https : github.com mrniko netty-socketio This works and I can run the demo locally using localhost as the host . However once I deploy it my HCP instance I m at a loss as to how I would point another device at the correct server IP and port Things I have tried : using websockets instead cloud connector just using node.js and a db tunnel which isn t great as the tunnel closes after 24hrs . If someone even knew what areas I could research to get a greater understanding of it it would be helpful . HCP is just an enormous platform . Unfortunately socket.io really is the only thing I could use in this case so this question is more about the routing of urls and ports than socket.io . Comment : Hi Moe can you please be more specific about your use-case Especially what kind of components you have and how they should interact with each other . For me it s not 100 clear yet of what you are trying to achieve . Comment : Hi . Sorry about the late response I didn t get any notification about your comment . So I have the HCP instance running as mostly just a DB and interface have some websocket stuff in the interface that will be going to a node server we will call this MAIN MAIN would return socket.io messages to other node servers APPS running on various machines . Basically what I wanted to acheive above is to eliminate the MAIN server and have the HCP instance communicate directly with the APPS . Comment : Continued from above : I need to work out if you can create a server with an IP and port on a HCP as I also have an external device that communicates solely through http requests and the only parameters you can set on it is IP and port . Ha I imagine this actually makes it more confusing .. . Answer : Not sure about socket.io but based on your comments above it shouldn t be difficult to put in the correct address for your clients . Every Java app you deploy on HANA Cloud Platform has a unique URL available . And in case you use HTTP you would need to use port 80 for your clients for HTTPS port 443 . enter image description here http : i.stack.imgur.com JYCzN.png" ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
maven-nar-plugin@java@164
maven-nar-plugin -- the nar-maven-plugin formerly maven-nar-plugin is a maven-plugin that provides a platform-agnostic way of managing native-code dependencies of @placeholder projects .
{ "confidence": [ 139.5287322998047, 126.54142761230469, 125.888427734375, 124.97064208984375, 122.63724517822266, 122.6320571899414, 120.62834167480469, 119.30093383789062, 118.79678344726562, 118.47846221923828, 117.4931640625, 116.68289947509766, 115.96432495117188, 115.83662414550781, 113.73221588134766, 113.53518676757812, 113.49684143066406, 112.83561706542969, 112.69883728027344, 111.8160400390625, 111.1417007446289, 111.02379608154297, 110.40386199951172, 110.40386199951172, 109.64395141601562, 109.35061645507812, 108.92562103271484, 108.77700805664062, 108.76480102539062, 107.01083374023438, 106.85199737548828, 106.85199737548828, 106.67005920410156, 106.12132263183594, 104.20654296875, 103.99593353271484, 101.72122192382812, 101.24201202392578, 99.72476196289062, 98.69552612304688, 98.42931365966797, 96.27464294433594, 96.23199462890625, 96.23199462890625, 96.07133483886719, 95.94759368896484, 95.94759368896484, 95.94759368896484, 95.94759368896484, 95.94759368896484, 94.38743591308594, 93.6078109741211, 93.6078109741211, 92.70509338378906, 90.80351257324219, 90.80351257324219, 90.80351257324219, 90.19096374511719, 88.2935791015625, 87.51395416259766, 87.51395416259766, 87.51395416259766, 86.89234924316406, 85.04808807373047, 82.77073669433594, 79.87371826171875, 79.0186767578125, 75.72911071777344, 75.08609008789062, 74.31689453125, 74.31689453125, 71.51260375976562, 71.51260375976562, 71.2171630859375, 70.75775909423828, 68.41287231445312, 68.41287231445312, 68.22303771972656, 68.12516021728516, 68.00955200195312, 67.42668151855469, 65.67195129394531, 65.42886352539062, 64.62239074707031, 64.44573974609375, 63.89083480834961, 63.33217239379883, 62.571651458740234, 62.52498245239258, 62.38467788696289, 62.332855224609375, 61.83638000488281, 61.332820892333984, 60.52787780761719, 60.124298095703125, 59.69746017456055, 59.47188186645508, 58.63232421875 ], "content": [ "github.com maven-nar nar-maven-plugin wiki Working-examples https : github.com maven-nar nar-maven-plugin wiki Working-examples", "pljava uses maven and the maven-nar-plugin for building .", "Is this a known issue in the maven-nar-plugin", "I think a lot of people are still googling for maven-nar-plugin instead of nar-maven-plugin .", "The nar plugin developers didn t add it to Maven Central .", "The third slide in this presentation http : www.slideserve.com annick maven-nar-plugin about the NAR Plugin by Mark Donszelmann of the Stanford Linear Accelerator Center compares the native-maven-plugin and the maven-nar-plugin .", "You can see this in the source code https : github.com maven-nar maven-nar-plugin blob 5889a13d495beaca6ad1362672d45f2ba477c261 src main java org apache maven-plugin nar Linker.java L203 .", "Both of these are produced as NAR artifacts and require the maven-nar plugin in order to be used .", "You can find both projects on GitHub https : github.com maven-nar . s .. . .. . EDIT : nar-maven-plugin version 3.0.0 has been released and is now available from Maven Central http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.0.0 7Cmaven-plugin .", "To process this native-code I use the maven-nar-plugin .", "The maven-nar plugin never seems to get invoked .", "Someone recently added basic ARM support to the NAR plugin https : github.com maven-nar nar-maven-plugin pull 89 .", "The maven-nar-plugin produces both a jar file with only java code and a nar file with the proper native-code as it should .", "An official nar-maven-plugin version 3.0.0 has been released and is now available from Maven Central http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.0.0 7Cmaven-plugin .", "Have you checked the most recent version of nar-maven-plugin http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.2.2 7Cmaven-plugin", "I originally found this page github.com sonatype maven-nar-plugin https : github.com sonatype maven-nar-plugin but you are right this repository github.com duns maven-nar-plugin https : github.com duns maven-nar-plugin was updated more recently .", "And we released nar-maven-plugin 3.0.0 available now from Maven Central http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.0.0 7Cmaven-plugin .", "It depends on how you want to use the dependencies created by maven-nar-plugin .", "The groupId and artifactId changed the GAV is now : .. . .. . plugin .. . groupId com.github.maven-nar groupId .. . artifactId nar-maven-plugin artifactId .. . version 3.0.0 version .. . plugin .. . .. . .. . 2 .", "Did you take a look at any of the NAR working examples https : github.com maven-nar nar-maven-plugin wiki Working-examples", "And either way adding something about CLion to the NAR wiki https : github.com maven-nar nar-maven-plugin wiki would be great .", "I m trying to build a native C project using maven using maven-nar-plugin .", "For what it s worth : development of maven-nar-plugin has now moved to its own GitHub organization https : github.com maven-nar maven-nar-plugin unifying several of the GitHub forks .", "Here is an example project https : github.com maven-nar nar-maven-plugin tree nar-maven-plugin-3.2.2 src it it0023-local-aol-properties that defines its own custom AOL properties .", "From the documentation http : duns.github.com maven-nar-plugin index.html .. . .. . Other maven projects may specify dependencies on these nar files using the standard maven-dependency declaration .", "I m trying to include configuration-files in a NAR archive using nar-maven-plugin building a c++ application .", "Is there anyway to give a directory to the maven-nar-plugin and include everything within it", "On this link https : github.com maven-nar nar-maven-plugin wiki Compiling-for-multiple-platforms I read the recommendation for compiling on the native systems with help of Jenkins .", "On a related note a group of interested developers have recently resurrected maven-nar-plugin migrating the official repository to a new maven-nar organization https : github.com maven-nar .", "You should be referencing the dependency http : duns.github.com maven-nar-plugin narDependencies.html using type nar type .", "We invite interested developers to join the discussion on the new maven-nar-plugin mailing list https : groups.google.com forum fromgroups forum maven-nar", "FWIW we fixed the javah problems with Java 7 on OS X https : github.com maven-nar nar-maven-plugin issues 41 .", "I m trying to use JNI and I m using the maven-nar-plugin to package up the C++ code into a NAR .", "I m trying to build and test a DLL using Maven and the NAR plugin .", "Only when I change the project s packaging to NAR does the maven-nar plugin kick in .", "So any help and details about how to build projects with maven-nar-plugin would be appreaciated", "I am trying to build a simple C++ project with maven and the nar-maven-plugin but I m getting the following error : .. . .. . Failed to execute goal com.github.maven-nar : nar-maven-plugin : 3.2.3 : nar-validate default-nar-validate on project it0015-cpp-executable : Could not launch cmd.exe X C link", "If the NAR plugin s standard ARM settings https : github.com maven-nar nar-maven-plugin blob nar-maven-plugin-3.2.2 src main resources com github maven nar aol.properties L562-L600 do not work for you you can try using your own variation .", "The build is complicated and can t be done via the Maven NAR plugin as such but I m building the nar files myself and using the mvn command-line tool for deployment .", "The FAQ http : duns.github.com maven-nar-plugin faq.html has a section on how to load the native library from java code .", "I have two maven modules : .. . .. . 1 . native-wrapper - is a JNI wrapper over system lib that is build by nar-maven-plugin .", "However you can use the following module which is a repackage of the nar plugin : .. . .. . http : mvnrepository.com artifact org.codeswarm maven-nar-plugin .. . .. . It has been working fine for me .", "I have a native shared library that is built and packaged using the maven-nar plugin .", "Can the native shared library and JNI artifacts produced using the maven-nar plugin be successfully used in web-applications i.e .", "has anyone using maven-nar-plugin to build C++ code for different platforms using different compilers", "s Unfortunately neither maven-nar-plugin nor cpptasks-parallel are currently deployed to Central .", "The cpptasks-parallel project has been merged into nar-maven-plugin so no need to worry about that dependency anymore .", "I cannot see the maven-nar-plugin in the Central Repository http : repo.maven.apache.org maven2 either .. . 3 .", "An official nar-maven-plugin version 3.0.0 has been released now see my answer for details .", "To use gcc instead you need to configure that in your POM in the maven-nar-plugin configuration .", "main-module s pom : .. . .. . If I remove nar-maven-plugin plugin from main-module s pom maven does not find any classes from native-wrapper module .", "I did edit the maven-nar-plugin tag yesterday to reflect the new name and location .", "If not it seems like creating a nar-maven-plugin tag too might dilute the question pool .", "Teach the NAR plugin about 2 .", "I am trying to build a very simple C++ program using the Maven NAR plugin .", "Went into the source of maven-nar-plugin and tried changing dependency scope to compile based on NarTestMojo.java : 156 .", "I m using nar-maven-plugin 3.0.0 My pom resemble following : .. . .. . And it actually works .", "I came across maven-nar-plugin http : duns.github.com maven-nar-plugin index.html which seems to target native builds but seems to be more oriented towards building a JNI project from code rather than bundling a 3rd party JNI library and I can t get to piece the jigsaw puzzle together .", "As far as I can see I have the choice between the maven-nar-plugin which wasn t updated for one and a half year now and the native-maven-plugin which seems less user friendly to me .", "I ve only used the maven-nar-plugin for standalone C C++ apps but it s worked very well for that .", "I m using for the first time the maven-nar-plugin to compile a bounce of corba IDL files in C++ .", "I am trying to build an C++ application for both x86 amd64 and ARM with the Maven NAR plugin on Debian Ubuntu .", "This might take some reading of the source of the NAR plugin .", "Following are details about my environment : .. . .. . When I try to build using the maven-nar plugin I get the following error : .. . .. . I have google d and it seems to be related to maven not finding the gcc compiler .", "This maven nar build is currently creating a dylib instead of a .so .", "Currently the most surefire way to build multiple platform binaries with maven-nar-plugin is to actually do it on different platforms rather than attempting a cross-compilation-based solution .", "Any help in configuring the NAR plugin for Windows would be appreciated .", "Here is the pom section which configures the NAR plugin : .. . .. . Thanks .", "This makes it seem like NAR packaging needs to be infectious in order to work if there s a NAR dependency then all upstream projects need to be NAR-packaged .", "I am just wondering how can be a NAR file built for different platforms with maven .", "I am able to install nar library to local maven repository but I fail to use it in dependent module .", "Nar files get downloaded unpacked and installed in the local maven repository just like jar files are apart from the unpacking .", "I ve also defined a JNI library also built using maven-nar that wraps the shared library .", "I look at the NAR plugin but ended up writing my own for the QtJambi project .", "The other nar with java classes contains META-INF nar some.native.wrapper native-wrapper nar.properties .", "The DLL I m building depends on another DLL which I built also using the NAR plugin .", "Its today possible to cross compile my case on a linux AMD64 machine with the nar plugin", "I have a very simple C++ Maven NAR project and I want to compile it from CLion s terminal .", "Is there a way to workaround it by telling the NAR plugin to use different library names to link against in the linker section", "The maven-nativedependencies-plugin http : code.google.com p mavennatives plugin will do this for you automatically as long as you follow their naming convention .", "I set up multi-module maven project which comprises a module destined to build nar jni library and a jar packaged module that is dependent on that library .", "Thanks I linked it from the NAR wiki", "For example the ImageJ https : github.com imagej imagej project uses maven-nar-plugin to build a small native launcher https : github.com imagej imagej-launcher for Linux OS X and Windows 32-bit and 64-bit versions .", "This is the output from turning postgres trace on : .. . .. . So my question is - how can I make maven nar output a .so file instead of a .dylib", "I didn t find a way to add this text-files to the NAR archive .", "How do I go about including the native part in Maven to be bundled in my project and eventually exported with the copy-dependencies plugin .", "How can I make nar find the lib", "Maven is so better for managing versions and dependencies.. .", "And my question is : Is it possible to configure it somehow to create under Linux nar with .dll next to nar with .so", "I ve also heard it suggested that there are some forks of the NAR plugin floating around might this problem be fixed in some version of the plugin other than the one I m using", "For me i m using MinGW so i update my user path environment variable with C : MinGW bin and in the nar-maven-plugin i specify the linker name to g++ .. . .. . Now you can launch mvn validate to check if it works", "As for JNI I ve been using the native-maven-plugin for a few years now on a sizable application .", "directory structure C C++ Maven NAR project http : i.stack.imgur.com 2D1EX.png .. . .. . I can compile it if I use the Developer Command Prompt .", "The DLL s NAR is unpacked in the executable s target directory as it should be .", "The documentation http : mojo.codehaus.org maven-native native-maven-plugin usage.html is pretty good and explains basic usage but you still have to deal with the C compiler and linker and whatever options that are required for building .", "http : maven.apache.org plugins maven-war-plugin examples adding-filtering-webresources.html .. . .. . is one approach .", "http : blog.bigpixel.ro 2012 07 building-cc-applications-with-maven comment-page-1 comment-8196 .. . .. . I m following the example above for the maven-nar-plugin but I get the following error when I do a mvn package .. . .. . could not find artifact net.sf.antcontrib : cpptasks-parallel : jar : 1.0-beta-5-parallel-1-SNAPSHOT but I see the following folder tree and its contents in my .m2 repository.. . What gives", "To fix this you will probably need to either : A tweak something in your CLion environment or B teach the NAR plugin about CLion and or your MSVS configuration by patching it ." ] }
{ "confidence": [ 159.86590576171875, 157.43348693847656, 153.46316528320312, 150.5482635498047, 149.67039489746094, 149.61244201660156, 149.55706787109375, 148.3844451904297, 145.3115234375, 141.8767852783203, 140.38121032714844, 139.7435760498047, 138.467529296875, 138.35858154296875, 133.5092010498047, 132.99754333496094, 132.35751342773438, 129.84303283691406, 129.5456085205078, 121.49956512451172 ], "content": [ "Question : I m trying to use JNI and I m using the maven-nar-plugin to package up the C++ code into a NAR . Now I want to include this code in another Java project . How do I go about doing this properly .. . Answer : It depends on how you want to use the dependencies created by maven-nar-plugin . From the documentation http : duns.github.com maven-nar-plugin index.html .. . .. . Other maven projects may specify dependencies on these nar files using the standard maven-dependency declaration . Nar files get downloaded unpacked and installed in the local maven repository just like jar files are apart from the unpacking . The FAQ http : duns.github.com maven-nar-plugin faq.html has a section on how to load the native library from java code . Hope these help .", "Question : has anyone using maven-nar-plugin to build C++ code for different platforms using different compilers If there is someone please give me more info regarding this . I am just wondering how can be a NAR file built for different platforms with maven . I know that in order to be able to build a project on a specific platform you should run the build on that platform and use the specific compilers and linkers of that platform . But my experience is related to Java projects and Maven and as you already know java is pretty platform portable so I ve not experienced problems like thin until now . So any help and details about how to build projects with maven-nar-plugin would be appreaciated Thanks Comment : I look at the NAR plugin but ended up writing my own for the QtJambi project . qt.gitorious.org qt-jambi qtjambi-community-maven trees master https : qt.gitorious.org qt-jambi qtjambi-community-maven trees master the project builds for Windows Linux and MacOSX for Windows there is MSVC and MinGW and all platforms are both 32bit and 64bit . You ll need to extract it from the one git tree . .. . Answer : Currently the most surefire way to build multiple platform binaries with maven-nar-plugin is to actually do it on different platforms rather than attempting a cross-compilation-based solution . For example the ImageJ https : github.com imagej imagej project uses maven-nar-plugin to build a small native launcher https : github.com imagej imagej-launcher for Linux OS X and Windows 32-bit and 64-bit versions . To accomplish this the project has a Jenkins CIS on a Linux server a Windows 7 64-bit VM in VirtualBox with a Jenkins slave and an OS X desktop Jenkins slave each of which performs the Maven build for its respective platforms . It was quite involved to set up there are detailed instructions in this ticket of the ImageJ issue tracker http : trac.imagej.net ticket 832 . On a related note a group of interested developers have recently resurrected maven-nar-plugin migrating the official repository to a new maven-nar organization https : github.com maven-nar . One of the items of interest is cross-compilation which would make it easier to build native binaries for multiple AOLs on the same platform without resorting to Jenkins slaves . But there are many challenges e.g . GCC changes behavior often and it is not yet easy to do . We invite interested developers to join the discussion on the new maven-nar-plugin mailing list https : groups.google.com forum fromgroups forum maven-nar Comment : Your link for the launcher is broken does it still exist Comment : Sorry Paul I updated the link-to its current location .", "Question : http : blog.bigpixel.ro 2012 07 building-cc-applications-with-maven comment-page-1 comment-8196 .. . .. . I m following the example above for the maven-nar-plugin but I get the following error when I do a mvn package .. . .. . could not find artifact net.sf.antcontrib : cpptasks-parallel : jar : 1.0-beta-5-parallel-1-SNAPSHOT but I see the following folder tree and its contents in my .m2 repository.. . What gives Comment : Are you sure you have Jar there Or only Pom .. . Answer : s Unfortunately neither maven-nar-plugin nor cpptasks-parallel are currently deployed to Central . So you need to mvn install them yourself or better mvn deploy them to your own Maven repository . You can find both projects on GitHub https : github.com maven-nar . s .. . .. . EDIT : nar-maven-plugin version 3.0.0 has been released and is now available from Maven Central http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.0.0 7Cmaven-plugin . Two notes : .. . .. . 1 . The groupId and artifactId changed the GAV is now : .. . .. . plugin .. . groupId com.github.maven-nar groupId .. . artifactId nar-maven-plugin artifactId .. . version 3.0.0 version .. . plugin .. . .. . .. . 2 . The cpptasks-parallel project has been merged into nar-maven-plugin so no need to worry about that dependency anymore .", "Question : I m trying to build a native C project using maven using maven-nar-plugin . I am getting the following errors : .. . .. . Following is the relevant section from my pom file : .. . .. . More info : .. . .. . 1 . I m using Maven version 3.0.5 .. . 2 . I cannot see the maven-nar-plugin in the Central Repository http : repo.maven.apache.org maven2 either .. . 3 . I see it is available @ http : duns.github.io maven-snapshots . I don t know how to tell maven to look here . It s looking into 2 by default . .. . Answer : The nar plugin developers didn t add it to Maven Central . However you can use the following module which is a repackage of the nar plugin : .. . .. . http : mvnrepository.com artifact org.codeswarm maven-nar-plugin .. . .. . It has been working fine for me . Comment : An official nar-maven-plugin version 3.0.0 has been released now see my answer for details .", "Question : I am going to create a java project that uses JNI . I want to deploy the project as a stand-alone application but some modules might be used as libraries of other applications as well . I want to support different platforms and everything should be as painless as possible . As far as I can see I have the choice between the maven-nar-plugin which wasn t updated for one and a half year now and the native-maven-plugin which seems less user friendly to me . Do you have any experiences with one of them or recommendations which I should use Comment : The GitHub page has been updated on 7 . November 2010.. . Comment : That s true . I originally found this page github.com sonatype maven-nar-plugin https : github.com sonatype maven-nar-plugin but you are right this repository github.com duns maven-nar-plugin https : github.com duns maven-nar-plugin was updated more recently . Comment : For what it s worth : development of maven-nar-plugin has now moved to its own GitHub organization https : github.com maven-nar maven-nar-plugin unifying several of the GitHub forks . .. . Answer : The third slide in this presentation http : www.slideserve.com annick maven-nar-plugin about the NAR Plugin by Mark Donszelmann of the Stanford Linear Accelerator Center compares the native-maven-plugin and the maven-nar-plugin . Quoting from slide 3 the pros and cons of the native-maven-plugin : .. . .. . Pros .. . .. . Very configurable .. . .. . Cons .. . .. . Did not run out of the box no defaults .. . No binary dependencies .. . Not cross-platform different profiles for different platforms", "Question : I am going to create a java project that uses JNI . I want to deploy the project as a stand-alone application but some modules might be used as libraries of other applications as well . I want to support different platforms and everything should be as painless as possible . As far as I can see I have the choice between the maven-nar-plugin which wasn t updated for one and a half year now and the native-maven-plugin which seems less user friendly to me . Do you have any experiences with one of them or recommendations which I should use Comment : The GitHub page has been updated on 7 . November 2010.. . Comment : That s true . I originally found this page github.com sonatype maven-nar-plugin https : github.com sonatype maven-nar-plugin but you are right this repository github.com duns maven-nar-plugin https : github.com duns maven-nar-plugin was updated more recently . Comment : For what it s worth : development of maven-nar-plugin has now moved to its own GitHub organization https : github.com maven-nar maven-nar-plugin unifying several of the GitHub forks . .. . Answer : I ve used a lot native-maven-plugin since one year to cross-compile C and C++ source code with a profile for each platform options like compiler compiler-options linker options etc.. . . It works like a charm but I feel pretty alone in my situation . Now I don t understand why C C++ developper still use make or cmake tools from an other era . Maven is so better for managing versions and dependencies.. .", "Question : I m trying to build a native C project using maven using maven-nar-plugin . I am getting the following errors : .. . .. . Following is the relevant section from my pom file : .. . .. . More info : .. . .. . 1 . I m using Maven version 3.0.5 .. . 2 . I cannot see the maven-nar-plugin in the Central Repository http : repo.maven.apache.org maven2 either .. . 3 . I see it is available @ http : duns.github.io maven-snapshots . I don t know how to tell maven to look here . It s looking into 2 by default . .. . Answer : An official nar-maven-plugin version 3.0.0 has been released and is now available from Maven Central http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.0.0 7Cmaven-plugin . Two notes : .. . .. . 1 . The groupId and artifactId changed the GAV is now : .. . .. . plugin .. . groupId com.github.maven-nar groupId .. . artifactId nar-maven-plugin artifactId .. . version 3.0.0 version .. . plugin .. . .. . .. . 2 . The cpptasks-parallel project has been merged into nar-maven-plugin so no need to worry about that dependency anymore . See also SO 15771086 http : stackoverflow.com a 16611910 1207769 .", "Question : I have a native shared library that is built and packaged using the maven-nar plugin . This works great and builds on Linux MacOSX Windows . I ve also defined a JNI library also built using maven-nar that wraps the shared library . Both of these are produced as NAR artifacts and require the maven-nar plugin in order to be used . The problem arises when declaring a dependency on these NARs from a non-NAR-packaged project . The maven-nar plugin never seems to get invoked . Only when I change the project s packaging to NAR does the maven-nar plugin kick in . This makes it seem like NAR packaging needs to be infectious in order to work if there s a NAR dependency then all upstream projects need to be NAR-packaged . Is this correct or am I missing something Can the native shared library and JNI artifacts produced using the maven-nar plugin be successfully used in web-applications i.e . WARs If they can be used and deployed in a WAR how is it done Otherwise is the only option to manually place the native libraries in some location in the java.library.path on the app server Here s a snippet of the POM for the project that depends on the NAR JNI artifact : Comment : Can you post relevant pom snippet It should be possible to declare native libraries as dependencies for a war type project .. . Answer : No or at least not easily . If you have JNI you need to mess with -Djava.library.path and perhaps LD LIBRARY PATH DYLD LIBRARY PATH PATH and all that has to happen in the launch of the overall container . There s no mechanism for propagating all that from inside a war to the container . In full-blown Java EE the JCA model was is intended to be the way that native-code gets integrated in web-applications . But typical lightweight containers don t support it . If your native-code has no dependencies on other shared libs and if you aren t concerned about JVM native-code conflicts a given native class can only be in one class loader then your problem is merely getting the shared-objects into the war file at all . http : maven.apache.org plugins maven-war-plugin examples adding-filtering-webresources.html .. . .. . is one approach . Use the maven-dependency-plugin to drop the shared lib s into some directory under project.build.directory and then pick them up as web resources . Comment : So the only way would be to extract the platform-specific shared-libraries to a temp file and load them using a custom loader of some sort Recursing through dependencies as needed to extract and load their native libraries as well . Comment : That doesn t solve the problem . Your big problem is changing the jvm command-line options when Tomcat or whatever is launched in the first place . Comment : Wouldn t that only be the case if I used System.loadLibrary to load the libraries I could use System.load instead and provide the path to the temp file and avoid having to mess with the environment and java.library.path . Comment : If your libraries have zero dependencies on other libraries and if you never try to load the same library in two webapps or use hot redeploy yes . Comment : Got it . Thanks .", "Question : I have a project with multiple sub-modules and sub-sub-modules which has both java and native language code Mostly native language . To process this native-code I use the maven-nar-plugin . Now I don t have all the includes needed to compile the native-code in my local repository . Is there anyway to give a directory to the maven-nar-plugin and include everything within it I ve used systemIncludePaths and includePaths in the module s pom but it still couldn t compile . If there is an easier way to do this than the direction I m going please do explain . .. . Answer : The following is still work in progress but I think I am on the right track . I started with the following standard directory structure in which I want to include a git c++ project : .. . .. . Because I do not want to change the directory structure of the original make project I needed to define the custom source directory and a custom include directory . This is the resulting directory structure after a pull I left out irrelevant file structures : .. . .. . With the following configuration I got the project compiled . EDIT : to make javah run properly I had to symlink it as maven kept looking in the wrong place for it : Comment : FWIW we fixed the javah problems with Java 7 on OS X https : github.com maven-nar nar-maven-plugin issues 41 . And we released nar-maven-plugin 3.0.0 available now from Maven Central http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.0.0 7Cmaven-plugin . - Comment : Yeah I saw that . Thanks . But I only found the version after I stumbled upon the name change FAQ topic . I think a lot of people are still googling for maven-nar-plugin instead of nar-maven-plugin . Should the tags in stackoverflow be changed added accordingly you think Comment : I did edit the maven-nar-plugin tag yesterday to reflect the new name and location . Can SO tags be renamed If not it seems like creating a nar-maven-plugin tag too might dilute the question pool . I guess we could ask on Meta about it .", "Question : I am going to create a java project that uses JNI . I want to deploy the project as a stand-alone application but some modules might be used as libraries of other applications as well . I want to support different platforms and everything should be as painless as possible . As far as I can see I have the choice between the maven-nar-plugin which wasn t updated for one and a half year now and the native-maven-plugin which seems less user friendly to me . Do you have any experiences with one of them or recommendations which I should use Comment : The GitHub page has been updated on 7 . November 2010.. . Comment : That s true . I originally found this page github.com sonatype maven-nar-plugin https : github.com sonatype maven-nar-plugin but you are right this repository github.com duns maven-nar-plugin https : github.com duns maven-nar-plugin was updated more recently . Comment : For what it s worth : development of maven-nar-plugin has now moved to its own GitHub organization https : github.com maven-nar maven-nar-plugin unifying several of the GitHub forks . .. . Answer : I ve only used the maven-nar-plugin for standalone C C++ apps but it s worked very well for that . As for JNI I ve been using the native-maven-plugin for a few years now on a sizable application . We use it to allow our Java apps to interface with other applications that only offer C APIs . I ve actually found it pretty user-friendly . The documentation http : mojo.codehaus.org maven-native native-maven-plugin usage.html is pretty good and explains basic usage but you still have to deal with the C compiler and linker and whatever options that are required for building . We just pass it the compiler and linker commands and options the source location and the javah file locations and it works . I have to say that with all of the pain we ve been through with JNI the maven-plugin is one of the few things that hasn t been a big hassle .", "Question : I have two maven modules : .. . .. . 1 . native-wrapper - is a JNI wrapper over system lib that is build by nar-maven-plugin . 2 . main-module - depends on native-wrapper and uses it s JNI calls during tests . Tests in native-wrapper work fine . But during tests in main-module I get UnsatisfiedLinkError - NarSystem is unable to locate my JNI lib . .. . .. . native-wrapper s pom includes : .. . .. . I opened generated .nar in . target - it does contain lib amd64-Linux-gpp jni libnative-wrapper-0.1.0-SNAPSHOT.so . The other nar with java classes contains META-INF nar some.native.wrapper native-wrapper nar.properties . main-module s pom : .. . .. . If I remove nar-maven-plugin plugin from main-module s pom maven does not find any classes from native-wrapper module . How can I make nar find the lib .. . Answer : It seems like one can t just add artifact with type nar type and run tests . You should set proper library path for java yourself . I did it like this in addition to main-module s pom :", "Question : I m trying to setup a simple project with an empty function .c and .h file on windows-7 using maven cygwin and gcc . Following are details about my environment : .. . .. . When I try to build using the maven-nar plugin I get the following error : .. . .. . I have google d and it seems to be related to maven not finding the gcc compiler . The output from the mvn command also suggests that maven is trying to build my project with msvc which is not available on my machine . I have the gcc compiler in my path etc and I have tried to follow some of the steps suggested in this very old thread https : issues.sonatype.org browse NAR-150 focusedCommentId 180398 page com.atlassian.jira.plugin.system.issuetabpanels 3acomment-tabpanel comment-180398 . Does anyone know how to overcome this problem If I m in the wrong forum could someone please point me to the right one .. . Answer : Yes that error is caused by a command-line tool being unavailable on the path . However in this case since your AOL is x86-Windows-msvc the relevant command-line tool is link not gcc . You can see this in the source code https : github.com maven-nar maven-nar-plugin blob 5889a13d495beaca6ad1362672d45f2ba477c261 src main java org apache maven-plugin nar Linker.java L203 . Of course you aren t trying to use the MSVC compiler at all so you shouldn t need link in your path anyway . To use gcc instead you need to configure that in your POM in the maven-nar-plugin configuration . Here is a sample configuration from this project https : github.com imagej imagej blob e36e91145b3f13d3759b8b920e792bcfb15dcc4f launcher pom.xml L53 which you will of course need to tweak to your needs : Comment : Thank you so much . You really did help me out . I ve been stuck on this for quite a few days . Comment : I put a live example on github.com jjYBdx4IL example-maven-project-setups https : github.com jjYBdx4IL example-maven-project-setups . Comment : Thanks I linked it from the NAR wiki github.com maven-nar nar-maven-plugin wiki Working-examples https : github.com maven-nar nar-maven-plugin wiki Working-examples", "Question : I am trying to build an C++ application for both x86 amd64 and ARM with the Maven NAR plugin on Debian Ubuntu . I ve troubles to set up a correct profile for the ARM cross-compile build with arm-linux-gnueabi-gcc . The profile snippet from my pom.xml looks like this : .. . .. . Building that profile with mvn compile -P arm-linux-cross does not work : .. . .. . Obviously the AOL used here is not available so Maven does not recognize the compiler linker . But how can I add the required AOL Or is there another way to cross-compile for ARM with Maven Comment : Have you checked the most recent version of nar-maven-plugin http : search.maven.org artifactdetails 7Ccom.github.maven-nar 7Cnar-maven-plugin 7C3.2.2 7Cmaven-plugin Comment : Yes same error . .. . Answer : Someone recently added basic ARM support to the NAR plugin https : github.com maven-nar nar-maven-plugin pull 89 . But the AOL is just arm-Linux-gcc I don t know where your gnueabi above is coming from . If the NAR plugin s standard ARM settings https : github.com maven-nar nar-maven-plugin blob nar-maven-plugin-3.2.2 src main resources com github maven nar aol.properties L562-L600 do not work for you you can try using your own variation . Here is an example project https : github.com maven-nar nar-maven-plugin tree nar-maven-plugin-3.2.2 src it it0023-local-aol-properties that defines its own custom AOL properties .", "Question : I have created a jni project with java code native methods and C code . The maven-nar-plugin produces both a jar file with only java code and a nar file with the proper native-code as it should . However when I want to reference this project module from another project I get an error that the dependency is not found . Upon inspection of my local repository I notice that I only have nar files for both the java code native-code . How can I reference this dependency and will it automatically include the native-code .. . Answer : You should be referencing the dependency http : duns.github.com maven-nar-plugin narDependencies.html using type nar type . Comment : Odd that I missed that because I do remember trying that . Oh well it works now . Downloading the attached native nar is failing now as that seems to be another problem that I have to tackle .", "Question : null .. . Answer : I have a Java project that relies on C source files . I have the proper JNI header-files I just need to compile them with the C code to a dll or Linux OSX equivalent in target . My current pom.xml builds the Java code but doesn t build the dll . xml version 1.0 encoding UTF-8 .. . project xmlns http : maven.apache.org POM 4.0.0 xmlns : xsi http : www.w3.org 2001 XMLSchema-instance xsi : schemaLocation http : maven.apache.org POM 4.0.0 http : maven.apache.org maven-v4 0 0.xsd .. . modelVersion 4.0.0 modelVersion .. . groupId xyz.jadonfowler groupId .. . artifactId o artifactId .. . packaging jar packaging .. . version 2.0 version .. . properties .. . -- Native compiler -- .. . compiler-name clang compiler-name .. . linker-name clang linker-name .. . properties .. . dependencies .. . dependency .. . groupId com.sparkjava groupId .. . artifactId spark-core artifactId .. . version 2.2 version .. . dependency .. . dependency .. . groupId com.heroku.sdk groupId .. . artifactId heroku-jdbc artifactId .. . version 0.1.0 version .. . dependency .. . dependency .. . groupId commons-codec groupId .. . artifactId commons-codec artifactId .. . version 1.9 version .. . dependency .. . dependency .. . groupId junit groupId .. . artifactId junit artifactId .. . version 4.12 version .. . dependency .. . dependencies .. . build .. . defaultGoal install defaultGoal .. . sourceDirectory src sourceDirectory .. . testSourceDirectory src testSourceDirectory .. . resources .. . resource .. . directory res directory .. . resource .. . resources .. . plugins .. . plugin .. . groupId org.apache.maven.plugins groupId .. . artifactId maven-dependency-plugin artifactId .. . version 2.4 version .. . executions .. . execution .. . id copy-dependencies id .. . phase package phase .. . goals .. . goal copy-dependencies goal .. . goals .. . execution .. . executions .. . plugin .. . plugin .. . groupId org.apache.maven.plugins groupId .. . artifactId maven-compiler-plugin artifactId .. . version 2.5.1 version .. . configuration .. . source 1.8 source .. . target 1.8 target .. . optimize true optimize .. . debug true debug .. . configuration .. . plugin .. . plugin .. . groupId org.apache.maven.plugins groupId .. . artifactId maven-jar-plugin artifactId .. . version 2.4 version .. . configuration .. . archive .. . manifest .. . mainClass xyz.jadonfowler.o.WebIDE mainClass .. . manifest .. . archive .. . configuration .. . plugin .. . plugin .. . groupId org.apache.maven.plugins groupId .. . artifactId maven-shade-plugin artifactId .. . version 2.1 version .. . configuration .. . filters .. . filter .. . artifact : artifact .. . excludes .. . exclude META-INF .SF exclude .. . exclude META-INF .DSA exclude .. . exclude META-INF .RSA exclude .. . excludes .. . filter .. . filters .. . configuration .. . executions .. . execution .. . phase package phase .. . goals .. . goal shade goal .. . goals .. . configuration .. . transformers .. . transformer implementation org.apache.maven.plugins.shade.resource.ManifestResourceTransformer .. . mainClass xyz.jadonfowler.o.WebIDE mainClass .. . transformer .. . transformers .. . configuration .. . execution .. . executions .. . plugin .. . plugin .. . groupId com.alexkasko.maven groupId .. . artifactId jni-headers-maven-plugin artifactId .. . version 1.0.6 version .. . executions .. . -- generate header for native methods -- .. . execution .. . id javah id .. . phase compile phase .. . goals .. . goal javah goal .. . goals .. . configuration .. . javahClass xyz.jadonfowler.o.OCBindings javahClass .. . javahOutputFilePath project.basedir xyz jadonfowler o OCBindings.h javahOutputFilePath .. . configuration .. . execution .. . -- generate header for java methods -- .. . -- Not need atm .. . execution .. . id javap id .. . phase compile phase .. . goals .. . goal javap goal .. . goals .. . configuration .. . javapClass xyz.jadonfowler.o.OCBindings javapClass .. . javapOutputFilePath project.basedir my header callbacks.h javapOutputFilePath .. . configuration .. . execution -- .. . executions .. . plugin .. . plugin .. . groupId com.github.maven-nar groupId .. . artifactId nar-maven-plugin artifactId .. . version 3.2.3 version .. . extensions true extensions .. . configuration .. . c .. . name compiler-name name .. . debug false debug .. . includes .. . include .h include .. . include .c include .. . includes .. . -- Options for compiler -- .. . options combine.children append .. . option -I JAVA HOME option .. . option -I JAVA HOME option .. . options .. . c .. . linker .. . name linker-name name .. . linker .. . libraries .. . library .. . type jni type .. . narSystemPackage xyz.jadonfowler.o narSystemPackage .. . library .. . libraries .. . configuration .. . plugin .. . plugins .. . build .. . profiles .. . profile .. . id windows-common id .. . activation .. . os .. . family windows family .. . os .. . activation .. . build .. . plugins .. . plugin .. . groupId com.github.maven-nar groupId .. . artifactId nar-maven-plugin artifactId .. . extensions true extensions .. . configuration .. . cpp .. . options combine.children append .. . option -mthreads option .. . options .. . cpp .. . configuration .. . plugin .. . plugins .. . build .. . profile .. . .. . profile .. . id linux-common id .. . activation .. . os .. . family linux family .. . os .. . activation .. . build .. . plugins .. . plugin .. . groupId com.github.maven-nar groupId .. . artifactId nar-maven-plugin artifactId .. . extensions true extensions .. . configuration .. . cpp .. . options combine.children append .. . option -pthread option .. . options .. . cpp .. . configuration .. . plugin .. . plugins .. . build .. . profile .. . profiles .. . project .. . .. . I m using Java 8 with Clang . I have the jni-headers-maven-plugin but I don t think I need it because I don t need to generate the headers on-the-fly . I also have the nar-maven-plugin which I think is configured correctly but it isn t showing up in the log anywhere . Comment : Did you take a look at any of the NAR working examples https : github.com maven-nar nar-maven-plugin wiki Working-examples Start from something working and then try to splice the working configuration into your project Comment : @ctrueden That s where most of this comes from . I don t know what parts I need in order to compile it though .", "Question : null .. . Answer : I m trying to include configuration-files in a NAR archive using nar-maven-plugin building a c++ application . I didn t find a way to add this text-files to the NAR archive . Is there anyway to do it", "Question : I am trying to build a simple C++ project with maven and the nar-maven-plugin but I m getting the following error : .. . .. . Failed to execute goal com.github.maven-nar : nar-maven-plugin : 3.2.3 : nar-validate default-nar-validate on project it0015-cpp-executable : Could not launch cmd.exe X C link : Error while executing process . Cannot run program link : CreateProcess error 2 The system cannot find the file specified - Help 1 .. . .. . I am using Windows 8.1 . Does anyone have ideas on how to investigate this issue Comment : link.exe is part of Microsoft Visual Studio which is what NAR typically uses under the hood to compile C++ code on Windows . Do you have MSVS installed Are the executables on your path Did you try running the Maven build from the MSVS command-prompt instead of the vanilla command-prompt .. . Answer : you should specify the linker you are using . For me i m using MinGW so i update my user path environment variable with C : MinGW bin and in the nar-maven-plugin i specify the linker name to g++ .. . .. . Now you can launch mvn validate to check if it works", "Question : null .. . Answer : I would cross compile my JNI NAR project to arm linux . On this link https : github.com maven-nar nar-maven-plugin wiki Compiling-for-multiple-platforms I read the recommendation for compiling on the native systems with help of Jenkins . But I need only compiling for linux and the architectures arm x86 and AMD64 . For this case the using of Jenkis is many overhead my opinion . Its today possible to cross compile my case on a linux AMD64 machine with the nar plugin If the answer yes has anyone an example pom Best regards Comment : I don t have an answer but +1 to the question . I would love for someone to contribute a working cross-compilation example of this sort to the NAR documentation", "Question : I m trying to build and test a DLL using Maven and the NAR plugin . The DLL I m building depends on another DLL which I built also using the NAR plugin . Here s my POM : .. . .. . If I remove the dependency on com.mycompany : shared-library - also removing the code that wants to call into it - then it works fine . ProjectTest runs normally and does what it s supposed to . But with the dependency present maven can t run the test because it can t find shared-library . It crashes out with error 0xc0000135 . When I run Maven in debug mode I can see that when it compiles the test it correctly adds the include paths for both DLLs header-files to the compiler command . And when it links the test it correctly adds the export libraries for both DLLs to the linker command . The problem arises when Maven executes the test : Maven wants to add the path to the DLL to the system path and it does this - but it only adds the path to the myproject DLL . It does not add the path to the shared-library DLL . Hence the crash . Is this a known issue in the maven-nar-plugin I ve also heard it suggested that there are some forks of the NAR plugin floating around might this problem be fixed in some version of the plugin other than the one I m using Or is there some workaround that can be recommended Comment : Went into the source of maven-nar-plugin and tried changing dependency scope to compile based on NarTestMojo.java : 156 . Still didn t work . .. . Answer : Discovered that this is a known issue : https : issues.sonatype.org browse NAR-189", "Question : I wish to add a JNI library including its shared object .so file to my project using Maven . Unfortunately it is not yet on a public repository so I guess I have to install it myself on my local repository to have it working . How do I go about including the native part in Maven to be bundled in my project and eventually exported with the copy-dependencies plugin . This is a standard J2SE app not a web-app with packaging .jar The library I am trying to add is junixsocket http : code.google.com p junixsocket just in case it helps to know . It has a .so native library component and the Java .jar component . I came across maven-nar-plugin http : duns.github.com maven-nar-plugin index.html which seems to target native builds but seems to be more oriented towards building a JNI project from code rather than bundling a 3rd party JNI library and I can t get to piece the jigsaw puzzle together . How do I go about : .. . .. . 1 . Installing these in my local repository having the .jar depending on the .so library . 2 . Including the dependency on the .jar and .so in the POM file . Thanks . .. . Answer : My approach : .. . .. . Put .so files to repository with platform specific classifier like this : sqlite3-3.7.9-linux-x86 64.so . Add .so dependencies for all required platforms : .. . .. . Use this maven-assembly-plugin config to put all native libs into lib native directory of you dist : .. . .. . Use this class https : github.com alx3apps ctz-utils blob master src main java ru concerteza util jni CtzJniUtils.java to load libs on app-startup planning to change classifier naming to GNU triplets http : wiki.debian.org Multiarch Tuples : Comment : Is it possible to add the .so with the platform specific classifier with the normal mvn install command Comment : @jbx Maybe you mean mvn deploy I used it only for java deps built by maven itself . Our JNI deps are built without maven and loaded to maven repository with cURL by simple bash script . Comment : No I meant mvn install . I usually do this for 3rd party libraries which are not in the maven repository . maven.apache.org guides mini guide-3rd-party-jars-local.html http : maven.apache.org guides mini guide-3rd-party-jars-local.html So essentially what I wish to do is include the .so with the 3rd party jar ." ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
lighttpd@web@73
lighttpd -- lighttpd is a lightweight and high-performance event-driven @placeholder server .
{ "confidence": [ 44.90106964111328, 44.73524475097656, 44.73524475097656, 44.73524475097656, 44.73524475097656, 43.474708557128906, 42.4473876953125, 42.4473876953125, 42.4473876953125, 41.42360305786133, 41.123329162597656, 40.91698455810547, 40.414894104003906, 40.414894104003906, 40.414894104003906, 40.414894104003906, 40.144447326660156, 40.102806091308594, 39.977962493896484, 39.901710510253906, 39.240535736083984, 39.00215148925781, 38.884490966796875, 38.884490966796875, 38.884490966796875, 38.835472106933594, 38.684871673583984, 38.684871673583984, 38.44041442871094, 38.44041442871094, 37.89503860473633, 37.87069320678711, 37.87069320678711, 37.86921691894531, 37.86921691894531, 37.80973815917969, 37.79427719116211, 37.30506896972656, 37.080848693847656, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.71429443359375, 36.65237808227539, 36.38193130493164, 36.3646354675293, 36.3646354675293, 36.3646354675293, 36.289791107177734, 36.289791107177734, 36.289791107177734, 36.289791107177734, 35.690399169921875, 35.550445556640625, 35.550445556640625, 35.550445556640625, 35.550445556640625, 35.550445556640625, 35.27222442626953, 35.18389129638672, 35.18389129638672, 35.18389129638672, 35.18389129638672, 35.07295608520508, 34.53517150878906, 34.53517150878906, 34.53517150878906, 34.53517150878906, 34.53517150878906, 34.53517150878906, 34.16861343383789, 34.16861343383789, 34.16861343383789, 34.16861343383789, 34.16861343383789, 34.16861343383789, 34.13252258300781, 34.13252258300781, 33.847537994384766, 33.84103775024414, 33.84103775024414, 33.84103775024414, 33.84103775024414, 33.84103775024414, 33.84103775024414, 33.84103775024414, 33.31833267211914, 32.951778411865234, 32.951778411865234, 32.951778411865234, 32.951778411865234, 32.951778411865234, 32.951778411865234, 32.83226013183594 ], "content": [ "Currently I have a lighttpd server with flup and webpy .", "I made a site hosted by my raspberry-pi 2 server : lighttpd .", "Assume a directory show 3 4 is requested from the lighttpd server .", "This from my experience through trial and error from running a lighttpd server .", "I have a lighttpd server running on an AWS EC2 instance .", "I m playing about with lighttpd http : en.wikipedia.org wiki Lighttpd on a small virtual private server .", "I m looking for the url rewrite configuration for processwire CMS on lighttpd server .", "I have a Linux server in which I have installed Lighttpd 1.4.28 .", "It should Print .. . .. . I am using lighttpd as http Server on Fedora 14 .", "There is for LigHTTPD :", "I have installed Lighttpd in centos .", "I d recommend using the CherryPy built-in server for development and using lighttpd for production .", "Environment : Debian lighttpd fam .", "Does lighttpd have this feature", "What is your lighttpd configuration", "I ve setup lighttpd and gitweb .", "I am reading a journal it stated .. . .. . Lighttpd is asynchronous server and Apache2 is a process-based server .", "I tried increasing the number of sever threads in Lighttpd but it is not recommended by Lighttpd .", "Is this possible in lighttpd", "We are using lighttpd web server in our code base .", "I have install lighttpd and lighttpd-fcgi by using commands : sudo yum install lighttpd and sudo yum install lighttpd-fcgi .", "According to your lighttpd configuration this is how the symbols are resolved .", "Lighttpd version is : 1.4.36 .", "This lighttpd use port 81 .", "Node.js or Lighttpd with PHP", "http : 192.168.1.2 is parsed with lighttpd .. . 2 .", "I have been trying to configure a web server using lighttpd on Windows .", "But now I don t know how to run it with lighttpd web server .", "I installed both Apache and Lighttpd i have configured Lighttpd to proxy only static files and lighttpd is listening on port 81 .", "Lighttpd code : .. . .. . And the error in my lighttpd error logs : .. . .. . This makes me feel like lighttpd is breaking because flup didn t respond .", "masdeni.com archives 6-Lighttpd-+-PHP-Session-Problem.html http : www.masdeni.com archives 6-Lighttpd-+-PHP-Session-Problem.html", "On the Lighttpd wiki it says it supports Windows OS s but on the actual Lighttpd site it doesn t .", "I have followed this tutorial to setup lighttpd : http : joshdick.net writing lighttpd .", "Switched to Lighttpd + FastCGI .", "But unable to achieve this in lighttpd .", "I am using lighttpd as a web server and I ve noticed that Opencart offers Apache .htaccess configuration for SEO URL s but no luck for lighttpd .", "I am migrating an over loaded server from apache2 to lighttpd currently I am proxying all the static resources from the lighttpd server but that still doesn t fix the load problems .", "I m using Lua FASTCGI with Lighttpd .", "Also if you have access to the lighttpd server log check the error.log and verify that the url is correct .", "3 . client fetch the file from lighttpd .", "4 . lighttpd does not find the file in its cache .", "Is this a bug of lighttpd or should I add some parameters", "I try to reload lighttpd logout etc .", "http : 192.168.1.2 path1 is parsed with lighttpd .. . 3 .", "What does your lighttpd config look like", "The lighttpd and nginx are installed with yum on centos 5 box .", "Perhaps lighttpd is using some kind of caching", "However I am looking for a solution for lighttpd .", "What programming language can be used for lighttpd", "Does LIGHTTPD cache the output", "I am using Django as web framework and then Apache and Lighttpd as web server and static media server respectively .", "I use lighttpd as my default webserver to run static websites and PHP blogs so my obvious choice was lighttpd .", "I could see define HAVE FORK in lighttpd sources if this is not defined lighttpd will not make any fork calls .", "FYI : this is fixed in lighttpd git master and the fix will be part of the upcoming lighttpd 1.4.40 release .", "I also have lighttpd as webserver .", "Here s my lighttpd config abbreviated :", "I use Htdigest authentication with lighttpd .", "I use lighttpd on centos 5 .", "The bytecode for LUA scripts is cached in lighttpd and is not a problem for high traffic if your script doesn t do anything pretty intensive .", "What I mean by it works only the first time is the following : I start lighttpd server .", "I have always used Apache as my web-server but have started a migration of code over to lighttpd .", "I am using lighttpd as my web server cgi to run my scripts and python-2.7 as my scripting-language .", "I have a lighttpd server with website placed in home httpd example.com httpdocs and there I have a file called file.php .", "I think my lighttpd server is configured fairly correctly because if i replace the above text with this the page is displayed .", "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 .", "Im planning to port LIGHTTPD to my embedded system .", "That s where the light in lighttpd comes into play .", "If you re using lighttpd then you re just using the framework .", "How can I translate this to work in Lighttpd", "I have a website in PHP Lighttpd .", "I have deployed a web service to a ubuntu-server running lighttpd and fastcgi-mono-server2 .", "I m using lighttpd as a web server and I kind-a know my way around it .", "We use Lua 5.1 on the server-side which is not as powerful as PHP but it runs as FASTCGI in Lighttpd 1.4 on Linux 2.6 .", "edit : To clarify the program in question is a lighttpd http : www.lighttpd.net plugin and the server is running with multiple worker threads .", "I am having trouble deploying my django app to a server that uses lighttpd on which I m root .", "The route I chose was to serve static files through a different server like lighttpd or cherokee .", "Please try lighttpd 1.4.40 released earlier this week .", "The question is how to start lighttpd and don t lock a terminal .", "The network-drive is mounted and can be read by lighttpd .", "I m trying out lighttpd for an embedded Linux project .", "I only switched Apache + mod-python to Lighttpd + FastCGI .", "Lighttpd is well known for serving static content .", "I have the content of my lighttpd-inc.conf file here http : trykinchat.com temporary lighttpd-inc.conf .", "Perhaps you should have added this line to the lighttpd config http : redmine.lighttpd.net projects lighttpd wiki Docs ModSSI file as well :", "By now I ve gone through a few iterations of etc lighttpd lighttpd.conf the most recent one being .. . .. . That spat out an error on etc init.d lighttpd start .", "I ve tried to translate processwire s .htaccess into lighttpd configuration without successs .", "I d like to configure Lighttpd 1.4.35 with a second document-root-path .", "lighttpd mod auth does a simple prefix match as it walks the auth.require list .", "How to convert this apache rewrite rule to lighttpd rewrite rule", "Source : .. . http : masdeni.com archives 6-Lighttpd-+-PHP-Session-Problem.html", "To enable per-user cgi directories add .. . .. . to the lighttpd configuration file .", "I am trying to install ikiwiki on a raspberry-pi which runs lighttpd .", "Check that you have etc lighttpd conf-available 10-cgi.conf config file and there is mod cgi server module included .", "There s a section on how to setup lighttpd and prettify URLs .", "It seems to me as-if LIGHTTPD is caching the output of the process that it executes .", "Can you post relevant parts of lighttpd config", "CGI or FCGI is the glue that binds PHP and lighttpd together .", "Note : We re on Linux with a Mono - FastCGI - Lighttpd construction .", "just has etc lighttpd lighttpd.conf file .", "First installed flup and then added .. . .. . to my Code.py .. . .. . Then I downloaded lighttpd from here http : lighttpd.dtech.hu and extracted LightTPD-1.4.39-1-IPv6-Win32-SSL.zip ." ] }
{ "confidence": [ 48.64620590209961, 48.16520309448242, 47.04125213623047, 46.36946105957031, 46.36568069458008, 46.24274826049805, 46.24274826049805, 46.115150451660156, 45.98581314086914, 45.76485061645508, 45.59318161010742, 45.22906494140625, 45.17854690551758, 45.15958786010742, 45.02207565307617, 44.84103012084961, 44.7934684753418, 44.755615234375, 44.44078826904297, 44.1873779296875 ], "content": [ "Question : I am using a simple uploader through ajax but until the file is uploaded the server will be unable to serve any other ajax calls . Lighttpd version is : 1.4.36 . This is a lighttpd problem : https : redmine.lighttpd.net boards 2 topics 2130 .. . .. . Already tried : .. . .. . But it doesn t work as intended . What i would want is a workaround if anyone found one so that i am able to make the server accepting and returning the other calls . .. . Answer : FYI : this is fixed in lighttpd git master and the fix will be part of the upcoming lighttpd 1.4.40 release .", "Question : I know this is not directly a programming question but people on stackoverflow seems to be able to answer any question . I have a server running Centos 5.2 64 bit . Pretty powerful dual core 2 server with 4GB memory . It mostly serves static files flash and pictures . When I use lighttpd it easily serves over 80 MB sec but when I test with nginx it drops down to less than 20 MB sec . My setup is pretty straight forward uses the default setup file and I have added the following .. . .. . And I thought nginx was supposed to be at least as powerful so I must be not doing something . Comment : What does your lighttpd config look like Could be interesting to compare . Also since lighttpd is single-threaded but you are on dual core - do you start two lighttpds or do you handle 80mb s with a single instance Comment : Can you outline your testing method That might help . Comment : This is an extremely active web server that just does static files . The lighttpd and nginx are installed with yum on centos 5 box . Pretty straight forward from there . All is monitored with munin and active sessions on the load balancer . The box with nginx does 50 of what lighty does .. . Answer : Perhaps lighttpd is using some kind of caching There s a great article here http : www.igvita.com 2008 02 11 nginx-and-memcached-a-400-boost that describes how to set up memcached with nginx for a reported 400 performance boost . The nginx doc on the memcached module is here http : wiki.codemongers.com NginxHttpMemcachedModule .", "Question : null .. . Answer : Currently I have a lighttpd server with flup and webpy . If you make enough requests fast enough say clicking a link repeatedly many times or doing an apache bench Lighttpd throws a 500 internal server error . At this point it is pretty easy to exploit I can break it with several clicks of a link . Lighttpd code : .. . .. . And the error in my lighttpd error logs : .. . .. . This makes me feel like lighttpd is breaking because flup didn t respond . Now I can simply throw more threads at the problem and it goes away or at least makes it harder to exploit . flup server code : .. . .. . Another reason I think this is a flup problem is because I can bypass the flup server and just do a proxy that sends requests directly to webpy and I don t have the problem . Now I would rather not just up the threads if there is a more elegant solution out there . Does anyone know what could be causing flup to break Or are my conclusions thus far misplaced", "Question : I have a Linux server in which I have installed Lighttpd 1.4.28 . Now I have setup authentication for multiple folders 13 like this : .. . .. . And the lighttpdpasswd is like this : .. . .. . Now for folders from 1 to 9 authentication works great for 10 11 ..13 the access is refused with correct credentials Is this a bug of lighttpd or should I add some parameters .. . Answer : lighttpd mod auth does a simple prefix match as it walks the auth.require list . It does not look for complete path match just prefix match . A workaround is to place your longer paths before your shorter paths in the auth.require list so test10 and test11 prior to test1", "Question : I know this is not directly a programming question but people on stackoverflow seems to be able to answer any question . I have a server running Centos 5.2 64 bit . Pretty powerful dual core 2 server with 4GB memory . It mostly serves static files flash and pictures . When I use lighttpd it easily serves over 80 MB sec but when I test with nginx it drops down to less than 20 MB sec . My setup is pretty straight forward uses the default setup file and I have added the following .. . .. . And I thought nginx was supposed to be at least as powerful so I must be not doing something . Comment : What does your lighttpd config look like Could be interesting to compare . Also since lighttpd is single-threaded but you are on dual core - do you start two lighttpds or do you handle 80mb s with a single instance Comment : Can you outline your testing method That might help . Comment : This is an extremely active web server that just does static files . The lighttpd and nginx are installed with yum on centos 5 box . Pretty straight forward from there . All is monitored with munin and active sessions on the load balancer . The box with nginx does 50 of what lighty does .. . Answer : When you reload your nginx kiil -HUP you ll get something like this in your error logs .. . .. . What event method is your nginx compiled to use Are you doing any access log ing Consider adding buffer 32k which will reduce the contention on the write lock for the log file . Consider reducing the number of workers it sounds counter intuitive but the workers need to synchronize with each other for sys calls like accept . Try reducing the number of workers ideally I would suggest 1 . You might try explicitly setting the read and write socket buffers on the listening socket see http : wiki.codemongers.com NginxHttpCoreModule listen", "Question : I have site running on lighttpd and I run some tests in here : https : developers.google.com speed pagespeed .. . .. . I get 89 points but google says : .. . .. . Use HTTP-Headers for some css files . So How I do that or can I just put caches in htaccess file And how I put these in there because I m very new about lighttpd . Thank you . .. . Answer : You can follow by example using H5PB s https : h5bp.github.io lighthttpd server configs located at https : github.com h5bp server-configs-lighttpd blob master lighttpd.conf .. . .. . Example :", "Question : null .. . Answer : I have always used Apache as my web-server but have started a migration of code over to lighttpd . One piece of functionality that I cannot find a way to implement is apache s mod-rewrite : : RewriteMap to an external program configuration : .. . .. . I understand how to rewrite urls in lighttpd but I am specifically looking for a way to call a program that returns the rewritten url prior to content being made available to say a fastcgi application running as a standalone server . The only option I have found to-date is to use lighttpd : mod auth with the configuration : .. . .. . Does lighttpd have an external program rewrite map", "Question : I have implementing a program that using lighttp web server and fcgi c script . And I have searched many times but don t find any page guide to do this . Just setting lighttpd and python fcgi or php fcgi.. . but C fcgi . Can anyone help me to configure lighttpd and c fcgi Many thanks . I have wrote a sample as below and build it to executable file . But now I don t know how to run it with lighttpd web server . .. . Answer : By default lighthttp allows execute cgi scripts in directory cgi-bin only . So just put your cgi program in cgi-bin and it should work with default configuration . This is example of cgi in C .. . .. . compiling .. . .. . Test .. . .. . UPDATED .. . .. . By default you have configuration file for cgi placed here : .. . .. . You have to make a symlinc and restart lighthttpd .. . .. . This is what have to be inside the cgi config file Comment : I have create a cgi-bin directory in var www lighttpd . Then I write a sample which using fcgi library to display hello world string . I build to executable file then copy this file to var www lighttpd cgi bin . Then I entered localhost cgi-bin test http : localhost cgi-bin test on browser . The binary file just downloaded but not show hello world . Comment : Here I have to use fcgi only not cgi . Which downloaded on fastcgi.com http : www.fastcgi.com page . Comment : I updated the answer . Check that you have etc lighttpd conf-available 10-cgi.conf config file and there is mod cgi server module included . Comment : I have install lighttpd and lighttpd-fcgi by using commands : sudo yum install lighttpd and sudo yum install lighttpd-fcgi . But I don t see any etc lighttpd conf-available 10-cgi.conf file . just has etc lighttpd lighttpd.conf file . Comment : OK . Then just try to add the last config piece to the lighttpd.conf and restart it", "Question : I am trying to build library application . Converting the PDF documents to PNG images . each page is one PNG file .. . .. . So there will be several millions of PNG s going to be there in the server . Number of hits per second will be more than 500 and i have to serve the png s . 1 I am choosing MemcacheDB to maintain the PNG s 2 I am choosing Lightpd server for serving the PNG s .. . .. . Question : 1 I am new to Lighttpd and don t know how to authenticate each request based on paramters i want to serve pngs or deny the access . What programming language can be used for lighttpd 2 Did i choose the right option for my requirement I don t want to be argumental . Thanks .. . Answer : Probably fastest mechanism in lighttpd would use standard http auth support : http : redmine.lighttpd.net wiki 1 Docs : ModAuth .. . .. . If you d rather do something more custom complex then you would need to use e.g . FastCGI with your language of choice . nginx seems to be the webserver getting the majority of the buzz lately it may be able to serve faster than lighttpd maybe not . It wouldn t hurt to try both . It also supports standard http auth : http : wiki.nginx.org NginxHttpAuthBasicModule and you could also use FastCGI with your language of choice if you don t wish to use http auth .", "Question : I m setting up a simple web server on my Raspberry Pi and I can t seem to set up lighttpd fastcgi and flask correctly . By now I ve gone through a few iterations of etc lighttpd lighttpd.conf the most recent one being .. . .. . That spat out an error on etc init.d lighttpd start . The first line looked wrong so I added a set of parens after the fat arrow : .. . .. . This didn t spit out an error but when I tried to connect I get ERR CONNECTION REFUSED in Chrome . Then I tried removing test and that had the same problem . I have also tried the config shown in this question http : stackoverflow.com questions 30120924 flask-deployement-on-lighttpd-and-raspberry-pi and the same problem occurred . In var www py test.fgci : .. . .. . In var www py test.py : .. . .. . The current lighttpd.conf fails when I start it with etc init.d lighttpd start . .. . Answer : I can t really help you with the Python part as it is outside of my skillset however when running php as a fcgi server i would use a lighttpd.conf like the following . So I would assume that something like the following is what you need for python .", "Question : So I m trying to do more web development in python and I ve picked cherrypy hosted by lighttpd w fastcgi . But my question is a very basic one : why do I need to restart lighttpd or apache every time I change my application code or the code for an underlying library I realize this question extends from a basic mis i.e . poor understanding of the fastcgi model so I m open to any schooling here but I m used to just changing a PHP file and it showing up versus having to bounce the web server . Any elucidation useful mockery appreciated . Comment : bounce Does that mean restart or something Usually in computers bounce refers to an attempt to retrieve something which is rejected as an error or similar concepts . Comment : Yup bounce as in to restart the process . Usually in my experience folks always talk about bouncing Apache Tomcat etc etc . Comment : Related : stackoverflow.com questions 1711483 http : stackoverflow.com questions 1711483 python-web-hosting-why-are-server-restarts-necessary Comment : Okay got it bounce as in definition 4 at jargon.net jargonfile b bounce.html http : www.jargon.net jargonfile b bounce.html .. . Answer : This is because of performance . For development autoreloading is helpful . But for production you don t want to autoreload . This is actually a decently-sized bottleneck in say PHP . Every time you access a PHP webpage the server has to parse and load each page from scratch . With Python the script is already loaded and running after the first access . As has been pointed out CherryPy has a autoreload setting . I d recommend using the CherryPy built-in server for development and using lighttpd for production . That will likely save you some time . The tutorial http : www.cherrypy.org wiki CherryPyTutorial shows you how to do this . Comment : Thanks- I am noticing a lot of comments upon a Googling that flup doesn t seem to work when cherrypy s auto reloading is on- any ideas there I guess I could use a non-flup WSGI module . Comment : Bear in mind that CherryPy is actually two components : a framework and server . If you re using lighttpd then you re just using the framework . If you use the server in development then you don t need to worry about this as it will autoreload automagically . Once you move to production then I would switch to lighttpd .", "Question : I have been trying to configure a web server using lighttpd on Windows . After installing PHP everytime I try to access a PHP file from the directory htdocs I get the error : 403 - Forbidden . I have followed this tutorial to setup lighttpd : http : joshdick.net writing lighttpd . I have searched Google but haven t found any good documentation on this problem . FYI : I m pretty new to this . I have the content of my lighttpd-inc.conf file here http : trykinchat.com temporary lighttpd-inc.conf . Any help would be greatly appreciated . Thanks .. . Answer : Your cgi fcgi to your php is not configured correctly . CGI or FCGI is the glue that binds PHP and lighttpd together . check your lighttpd error.log it will state something like : .. . .. . i use : .. . .. . make sure that fastcgi is enabled in modules.conf", "Question : I have a lighttpd server running on an AWS EC2 instance . It can serve on port 80 or any other port if I change server.port in etc lighttpd lighttpd.conf with no problems . However when I serve an alternative document-root on a different port say 8080 browsers can never connect to the server . The relevant section of my lighttpd.conf file : .. . .. . Full file here http : pastebin.com BDn0RaLN .. . .. . The site rooted at server root + dev works fine - I have tested by reversing their port assignations in which case dev loads fine on : 80 and release is not found . I ve read numerous guides e.g . here http : kevinworthington.com lighttpd-mini-howto-using-different-ports-with-same-urlip-address official docs http : redmine.lighttpd.net projects 1 wiki Docs Configuration here http : forum.lighttpd.net topic 85 etc . to no avail . The first of these mentioned that there might be a firewall conflict but I don t know how to resolve that on EC2 and the fact that I can set server.port 8080 with no problem makes me think this is not the issue . Both folders are owned by my lighttpd user which has full rights in both folders . I don t see anything of note in log files when making a request to my address : 8080 . .. . Answer : Whoops I can now answer my own question . It was indeed a firewall issue but it was very simple to fix - go to console.aws.amazon.com log in if necessary select the relevant security group and add a firewall rule allowing incoming traffic on that port - either from a particular source if you wish to restrict access or from 0.0.0.0 0 for universal access .", "Question : Im planning to port LIGHTTPD to my embedded system . I do not have fork system call in my environment . I could see define HAVE FORK in lighttpd sources if this is not defined lighttpd will not make any fork calls . So far so good. . But in one of the lighttpd module mod cgi I can see a fork call which is not protected by the statement if HAVE FORK .. . .. . .. . Is there a way to avoid this fork call in mod cgi also can I disable this module during compilation Your help is greatly appreciated can some one comment of this please . .. . Answer : CGI in lighttpd is only supported by communication with an external CGI process e.g . php-cgi so the mod cgi module needs to fork . If you don t need CGI then just omit mod cgi from the build I d guess in your environment that you ll be omitting almost all the modules only a couple are mandatory . If you do need CGI then you either have a lot of work to do on lighttpd or you should look at a web server that does CGI in process .", "Question : null .. . Answer : I followed this instruction to make my ASP.NET MVC4 run on my Raspberry Pi model B : Raspberry Pi Mono MVC Razor View Engine ASP.net XSP FastCgi Lighttpd Implementation http : c-mobberley.com wordpress 2013 06 16 raspberry-pi-mono-mvc-asp-net-xsp-fastcgi-lighttpd-implementation .. . .. . The only difference is I compile Mono 3.4.x XSP and Mono-FastCGI from Git . The performance of it running under Lighttpd FastCGI is horrible specially on its first run or whenever it became idle . Unlike on XSP4 where there is a slow loading time on first access but things will become a lot faster even if it became idle overnight . I thought FastCGI is using XSP for serving ASP.NET pages but why is the performance is slow under under Lighttpd with Mono-FastCGI but almost smooth on XSP4 Is there something I have to configure on Lighttpd and Mono-FastCGI to attain same performance as XSP4 This is my first time using Lighttpd with ASP.NET Mono only Apache2 + mod mono . Tried Nginx too on RPi but still have this performance issue worse than what I experience than Lighttpd .", "Question : null .. . Answer : I have a video website that use lighttpd for the images and stream the videos . This lighttpd use port 81 . The issue is When a user see my site in proxy servers the files that use lighttpd port 81 show error and redirect to port 80 . Example : http : media.mydomain.ws : 81 thumbs 576e28d7a4b959.39018847.mp4 576e28d7a4b959.39018847.mp4-8.jpg .. . .. . When I see this in public proxies show a error .. . .. . The server can not find the requested page : .. . .. . http : media.mydomain.com thumbs 576e28d7a4b959.39018847.mp4 576e28d7a4b959.39018847.mp4-8.jpg port 80 .. . .. . I would like to know is there is a way to fix this issue thanks .", "Question : I m looking for the url rewrite configuration for processwire CMS on lighttpd server . I ve tried to translate processwire s .htaccess into lighttpd configuration without successs . The only discussion I found about it https : processwire.com talk topic 7970-strange-error-in-admin-page-unrecognized-path doesn t contain the solution . I think but not sure that the relevant part is : .. . .. . I translated in .. . .. . As suggested here : https : redmine.lighttpd.net boards 2 topics 2259 .. . .. . But still won t work . Anybody can help Thanks .. . Answer : Thanks gilbertp I already resolved using this : .. . .. . As you said I need to add extra rows for protecting private areas Comment : I find it fascinating that lighttpd doesn t separate query strings from the request URI .", "Question : I am migrating an over loaded server from apache2 to lighttpd currently I am proxying all the static resources from the lighttpd server but that still doesn t fix the load problems . I want to migrate everything to lighttpd but I ve run into a problem . Apache2 has multiviews functionality to clean up URLs which lighttpd doesn t . I found the following code to do it in lighttpd .. . .. . It works but it has two problems .. . .. . 1 : website.com returns 404 I guess its trying to find .php .. . .. . 2 : website.com user Username also returns 404 Its supposed to find user.php then the php script does the rest by looking at SERVER REQUEST URI .. . .. . How do I rewrite the code to fix these problems .. . Answer : I d prolly try to use add something like : .. . .. . http : redmine.lighttpd.net wiki 1 Docs : ModRewrite .. . About your load problems : You might want to read about squid which has caching besides simple proxy features .", "Question : I have this php code .. . .. . Why it Prints following everytime when I refreshes the page. . It should Print .. . .. . I am using lighttpd as http Server on Fedora 14 . Comment : it should not...and it wont...but first time you will always get the first result. . second time the next one Comment : I know but everytime I am getting the first result Comment : Have you checked your session ini settings Comment : ya and is php the first line of program no space before it.. . make sure of that Comment : shouldn t be I read that running chown -R root : lighttpd var lib php fixed the problem . masdeni.com archives 6-Lighttpd-+-PHP-Session-Problem.html http : www.masdeni.com archives 6-Lighttpd-+-PHP-Session-Problem.html .. . Answer : I read that running chown -R root : lighttpd var lib php fixed the problem for others that were having the same issue . Source : .. . http : masdeni.com archives 6-Lighttpd-+-PHP-Session-Problem.html Comment : Thanks you. . : Comment : Glad I could help", "Question : null .. . Answer : I made a site hosted by my raspberry-pi 2 server : lighttpd . It works well with firefox but not in chrome and IE I found nothing about that . Thanks for your help . I have error-name-not-resolved with chrome" ] }
[ "yes-answer-long", "yes-answer-short" ]
web
UNK_RELATION
fileapi@w3c@54
fileapi -- use this tag for questions related to the @placeholder file api .
{ "confidence": [ 36.68625259399414, 34.86030578613281, 30.551170349121094, 27.874462127685547, 27.83619499206543, 27.712963104248047, 27.712963104248047, 27.30411148071289, 26.597118377685547, 26.597118377685547, 26.521671295166016, 25.935304641723633, 25.553691864013672, 25.528783798217773, 25.185001373291016, 25.084331512451172, 24.9593505859375, 24.89306640625, 24.59793472290039, 24.323787689208984, 23.80642318725586, 23.80642318725586, 23.571624755859375, 23.460723876953125, 23.162202835083008, 22.777652740478516, 22.631114959716797, 22.361900329589844, 21.824832916259766, 20.865543365478516, 19.81943130493164, 18.906728744506836, 18.601917266845703, 18.601917266845703, 18.393878936767578, 18.27977752685547, 17.930070877075195, 17.930070877075195, 17.930070877075195, 17.42308807373047, 17.383052825927734, 17.383052825927734, 17.22235870361328, 17.22235870361328, 17.130464553833008, 16.993839263916016, 16.925779342651367, 16.59605598449707, 16.45792007446289, 16.445247650146484, 16.314212799072266, 16.272476196289062, 15.935410499572754, 15.823959350585938, 15.635557174682617, 15.630228996276855, 15.559612274169922, 15.559612274169922, 15.279428482055664, 15.251042366027832, 15.251042366027832, 15.229532241821289, 15.229532241821289, 15.229532241821289, 15.19836711883545, 15.19836711883545, 15.193177223205566, 15.041775703430176, 15.041775703430176, 15.041775703430176, 15.005644798278809, 14.935943603515625, 14.906999588012695, 14.879739761352539, 14.82927417755127, 14.818218231201172, 14.779833793640137, 14.744945526123047, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.584882736206055, 14.514383316040039, 14.443767547607422, 14.3432035446167, 14.25898551940918, 14.249561309814453, 14.249561309814453, 14.113686561584473, 14.113686561584473, 13.969451904296875, 13.969451904296875 ], "content": [ "I am trying to use the File API library https : github.com mailru FileAPI as a fallback for browsers which do not support the File API in order to read a file as a Data URL and pass that on to another function .", "Im trying to get the file size and file-type from an input field.. . .. . .. . That requires the File API http : www.w3.org TR FileAPI which isn t supported by IE9 http : caniuse.com feat fileapi .", "I make use of the Html 5 File API to generate the thumbnail .", "stackoverflow.com questions 6217652 http : stackoverflow.com questions 6217652 html5-file-api-crashes-chrome-when-using-readasdataurl-to-load-a-selected-image", "References : .. . .. . https : developer.mozilla.org en DOM File .. . http : html5demos.com file-api", ".. . .. . And note that size is already a number on browsers that support the File API no need to parseInt it .", "I went through File API documentation but I couldn t get it working .", "Can I use file select file api to select and push a document to the PDFObject viewer or does it not allow that sort of connection", "I would like to draw an image opened with the HTML5 File API on a canvas .", "How do I draw an image from the File API on HTML5 canvas", "I m trying to figure out how to create audio elements from local files using the File API FileReader API .", "So I m trying to use file select or file API to select file from desktop and send it to an embedded PDF viewer in my HTML Doc .", "I m using HTML5 technology with the FileApi .", "I use the FileApi from HTML5 to break it down and get all the information .", "Problem solved read comment .. . .. . The third problem I have with the HTML5 File API : I still use Chrome 12 on Mac OS X Snow Leopard and I m still trying to read files with the HTML5 File API but FileHandler.error get called because a SECURITY ERR occurres .", "Have I done something wrong with File API polyfill or is there a shim or other polyfill I have to use to get data URLs to work", "I have to read a big file which user uploads using javascript s file api .", "Looks like there are no signs in FireFox FileAPI that can tell if this is a folder or a file .", "If I upload the file from blob with the File API and XHR and use a src attribute with a normal URL of the wav file on the server it also plays back fine .", "If you have a multiple file input field and select a video then the File API returns a file size of 0 .", "Feature is implemented yet via flash - thanks to the author of FileAPI plugin .", "Whole thread here : https : github.com mailru FileAPI issues 153", "It looks like this answers your doubt : w3.org TR FileAPI dfn-readAsDataURL http : www.w3.org TR FileAPI dfn-readAsDataURL .", "http : stackoverflow.com questions 246801 how-can-you-encode-a-string-to-base64-in-javascript interestingly ironic as am now asking similar Question is there any way to convert the file to an arraybuffer without fileReader api http : stackoverflow.com questions 34302231 is-there-any-way-to-convert-the-file-to-an-arraybuffer-without-filereader-api Blob .slice method https : w3c.github.io FileAPI slice-method-algo FileReader .readAsDataURL method https : w3c.github.io FileAPI readAsDataURL", "I ve tried a lot of different ways with my limited knowledge to push the file from the file-api to the PDFObject and nothing seems to work .", "From http : dev.w3.org 2006 webapi FileAPI dfn-SecurityError that error could be occurring because the browser has not been permitted access to the file .", "Is it possible to use the HTML 5 File API for example this library : https : github.com 23 resumable.js in conjunction with the S3 multi-part upload feature", "click non core detects - file-api when creating you custom build .. . .. . And my JS :", "You may look at the inline JavaScript of the example where i create the image out of a file object or blob if file api is not available which is Safari and IE .", "The approach I will take is to use the FileSystem API http : www.w3.org TR 2012 WD-file-system-api-20120417 .", "var myBlobURL window.URL.createFor object https : www.w3.org TR FileAPI dfn-createFor .. . returns a Blob URL that is automatically revoked after it s first use .", "The first allows me to view a preview of the file in an img tag only images will be uploaded .", "The current draft of the URL Object Extension https : www.w3.org TR media-source url specifies that : .. . .. . This algorithm is intended to mirror the behavior of the createObjectURL FILE-API method with autoRevoke set to true .", "Note that the current spec of the File API s window.URL.createObjectURL no longer has an autoRevoke or flag oneTimeOnly boolean flag accessible to the programmer who should be using window.URL.createFor for this purpose instead .", "var myBlobURL window.URL.createObjectURL object del flag oneTimeOnly del https : www.w3.org TR FileAPI dfn-createObjectURL .. . returns a re-usable Blob URL which can be revoked with : window.URL.revokeObjectURL myBlobURL https : www.w3.org TR FileAPI dfn-revokeObjectURL adds the Blob URL string to the Revocation List .", "When I submit the form containing my input element the server receives the file that was originally uploaded by the user not the file that was rotated by the 2nd API .", "Is it possible to make file uploads resumable after page redirect browser restart through Resumable.js or any other Javascript API", "I can actually read the contents of the uploaded file using the FileReader API but that s the issue.. .", "Actually FileList https : developer.mozilla.org en-US docs Web API FileList is a property of input-type-file .", "So there s no way to use a file reader on a website basically", "Useful link : stackoverflow.com questions 12570834 http : stackoverflow.com questions 12570834 how-to-preview-image-get-file-size-image-height-and-width-before-upload 12570870 12570870", "I also tried to upload using a popup window but still no luck with IE family stackoverflow.com questions 34198760 http : stackoverflow.com questions 34198760 javascript-persist-file-upload-between-redirects .", "First that you can get a real path from the input-type-file field coupled with .. . that you can read arbitrary files from the user file system just by path and finally .. . that the FileReader API is synchronous .", "or .. . .. . For the final piece the FileReader api is asynchronous - you don t get the full contents of the file right away but need to wait until the onloadend callback is invoked again from http : www.html5rocks.com en tutorials file dndfiles .", "s To get contents of a File use a FileReader .", "How can I merge the blob arrays to form a data-url to add to attribute tag of html 5 video tag", "Server .. . makes request to Amazon API to complete the creation of file .. . 10 .", "I was trying to create a file using the file system API in chrome .", "IE 9 : The entire FileReader API is not supported .", ".. . .. . Here is what s happening to an audio or video source linked to an MediaSource Object using an MediaSource object URL returned by window.URL.createObjectURL MediaSource : .. . The Media Source Extensions MSE https : www.w3.org TR media-source also extend the File-API s window.URL.createObjectURL to accept a MediaSource Object .", "You want to use this polyfill to read file as Data URL and it tell you that it dont support Data URL .", "TL DR : It seems your question bounty might be mixing up 2 different types of URL returned by window.URL.createObjectURL : .. . .. . Blob URL https : www.w3.org TR FileAPI url referencing objects that represent raw local data like Local- File Blob etc .", "Maybe related to the fact that FF doesn t update the input s files if the name is the same no onchange event fired", "Is there a way to get the file dimensions from the selected file and then create the Image object", "As far as I can see you can only use new File name when writing extensions : https : developer.mozilla.org en Extensions Using the DOM File API in chrome code", "+1 for the file http hint .", "If you re testing an app from file : you can run Chrome with the following flags : --allow-file-access-from-files --allow-file-access .", "If you re testing an app from file : you can run Chrome with the following flags : --allow-file-access-from-files --allow-file-access .", "Unfortunately this isn t fully supported by every browser : .. . .. . http : caniuse.com feat filesystem .. . .. . .. . and it doesn t seem likely that many browsers will adopt this API : .. . .. . http : www.w3.org TR file-system-api .. . .. . Work on this document has been discontinued and it should not be referenced or used as a basis for implementation", "one workaround would be to upload the File somewhere and then refetch it with XHR but try to answer these first questions first", "http : stackoverflow.com questions 15766644 any-workarounds-for-the-safari-html5-multiple-file-upload-bug 17515693 17515693", "I m trying to get the file size and file-type from an input field from my form using jQuery .", "Instead of passing in the String you might pass in the input-type-file the user is interacting with and get the file they selected from there .", "The FileList object can be used to access that single File object which just contains metadata about the uploaded file .", "You can t use an Uint16Array here because the file has an odd number of bytes .", "You can use URL.createObjectURL to get an URL referencing to a Blob a File is also a Blob : http : jsfiddle.net t7mv6 86 .", "Some browsers can t find a compatibility table support passing File objects through the web-worker postMessage because they now use the structured clone algorithm https : developer.mozilla.org en-US docs Web API Web Workers API Structured clone algorithm to handle the message parameters .", "Do I need to submit the file in a form", "Not submit but let the user browse to a file then look at their selection .", "I have a input element with type file .", "Browsers that support the FileReader API allow access to this by reading the files property of the input element .", "In this case the source point is blob : which then will be what IMG tag references via src and is what the browser use when the data is to be saved .", "Now the only way I know how to actually save a file that is being sent in this way is by doing what is described in this blog post : .. . .. . http : bloggeek.me send-file-webrtc-data-api .. . .. . .. . described in Step 6 : Downloading to regular FS .", "Read this post please what-to-use-instead-of-filereader-for-safari http : stackoverflow.com questions 7734150 what-to-use-instead-of-filereader-for-safari", "No file : protocol will only be used when testing the website locally without any server running once deployed the file will be transfered over http : protocol", "This Question is related to and inspired by How to updoad in old browsers ex Safari 5.1.4 http : stackoverflow.com questions 38193605 how-to-updoad-in-old-browsers-ex-safari-5-1-4 .. . .. . Given an input-type-file element having a files property containing File objects which inherit from Blob is it possible to create a ArrayBuffer and convert the ArrayBuffer to a data URI from a Blob or File object without using FileReader", "Populate ng-flow with jpeg jpg as blob http : stackoverflow.com questions 28254375 populate-ng-flow-with-jpeg-jpg-as-blob", "MediaSource object URL https : www.w3.org TR media-source mediasource-object-url referencing a special MediaSource Object https : www.w3.org TR media-source mediasource .. . These URL s are .. . only intended to link src of a HTMLMediaElement http : www.w3.org TR html5 embedded-content-0.html htmlmediaelement think audo video elements to the special MediaSource Object .. . Note : a new tab window is not an HTMLMediaElement .. . already automatically revoked https : www.w3.org TR media-source url .. . Note : even though they are created through window.URL.createObjectURL .. . .. . .. . .. . Here s what s happening for the fiddle in your question s image and similar code that downloaded a video as Blob where you downloaded the whole video-file s data binary on the server using an xhr or any other local data : .. . You are essentially using the bare un-enhanced File-API https : www.w3.org TR FileAPI .", "And finally are you sure the file you are reading is permitted by the browser", "Could you give a concrete example of using that input-type-file bit", "I think you are correct about the browser not allowing access to the file .", "and then how do I save to local hard disk using File Saver", "What should I pass to the File Saver Saveas method .", "I am wondering how to get the progress of a file-upload using XMLHTTPRequest .", "While this is still running delete 5 characters from the file and save .. . 4 .", "Interesting looks like FF is caching the buffer size even the file is modified .", "If a tablet executes a HTML5 application will it be using a file : or http : protocol", "I need a way to change the file that my input element points to .", "Is there a way to transfer file to Worker", "Unfortunately from what I ve researched there is no way to open the file save file download dialog and save download a file in a streaming fashion .", "The file I try to read is a regular .txt file from my desktop but it neither works with other files although I can open them with regular applications .", "In the Windows API the maximum path length limitation is 256 chars the Unicode version API is 32 767 chars .", "Or use an object URL : http : jsfiddle.net 8C4UB", "How should I use those flags", "I expect user to submit that file wia drag n drop or otherwise obtaining a File object : .. . .. . I heard of Transferable objects .", "I m using WebRTC to send a file to a connected peer and I m sending the file in chunks .", "I m trying to populate ng-flow with the file it uploaded previously page is in edit mode for this example .", "I m trying to upload https : github.com mzabriskie axios tree master examples upload a file using axios ." ] }
{ "confidence": [ 41.89613342285156, 38.370880126953125, 37.037559509277344, 32.61316680908203, 26.512836456298828, 26.502147674560547, 25.745166778564453, 25.11724853515625, 24.86457061767578, 24.789081573486328, 24.72126579284668, 22.720699310302734, 22.586238861083984, 22.397384643554688, 22.3812255859375, 22.17523956298828, 22.026926040649414, 21.940000534057617 ], "content": [ "Question : I am trying to use the File API library https : github.com mailru FileAPI as a fallback for browsers which do not support the File API in order to read a file as a Data URL and pass that on to another function . I have this code : .. . .. . However console.log evt returns an Object which reports error : filreader not support DataURL . Have I done something wrong with File API polyfill or is there a shim or other polyfill I have to use to get data URLs to work Thanks . -- Sam . .. . Answer : Feature is implemented yet via flash - thanks to the author of FileAPI plugin . Whole thread here : https : github.com mailru FileAPI issues 153 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 .", "Question : I m trying to get the file size and file-type from an input field from my form using jQuery . I thought it was working however apparently not in IE 9 . Any insight would be greatly appreciated Comment : And what do you mean by not working Any errors Comment : None of what you posted is jQuery Comment : see what gives you console.log my field .. . Answer : Im trying to get the file size and file-type from an input field.. . .. . .. . That requires the File API http : www.w3.org TR FileAPI which isn t supported by IE9 http : caniuse.com feat fileapi . .. . .. . And note that size is already a number on browsers that support the File API no need to parseInt it . Comment : Is there a work around for this Comment : @user875293 : Not using just JavaScript and web-standards no . It may be possible with things like Flash signed Java applets or Silverlight .", "Question : I am trying to use the File API library https : github.com mailru FileAPI as a fallback for browsers which do not support the File API in order to read a file as a Data URL and pass that on to another function . I have this code : .. . .. . However console.log evt returns an Object which reports error : filreader not support DataURL . Have I done something wrong with File API polyfill or is there a shim or other polyfill I have to use to get data URLs to work Thanks . -- Sam . .. . Answer : I think the error message is clear . You want to use this polyfill to read file as Data URL and it tell you that it dont support Data URL . So I assume there is no other way to do this . Comment : That s what I assumed in the end too . There is demo code showing data URL usage though but maybe it hasn t been implemented in the library yet . Thanks .", "Question : I would like to draw an image opened with the HTML5 File API on a canvas . In the handleFiles e method I can access the File with e.target.files 0 but I can t draw that image directly using drawImage . How do I draw an image from the File API on HTML5 canvas Here is the code I have used : .. . Answer : You have a File instance which is not an image . s To get contents of a File use a FileReader . Then pass the contents to an Image instance which can be drawn on a canvas : http : jsfiddle.net t7mv6 . s .. . .. . To get an image use new Image . The src needs to be an URL referencing to the selected File . You can use URL.createObjectURL to get an URL referencing to a Blob a File is also a Blob : http : jsfiddle.net t7mv6 86 . Note : be sure to revoke the object url when you are done with it otherwise you ll leak memory . If you re not doing anything too crazy you can just stick a URL.revokeObjectURL img.src in the img.onload function . References : .. . .. . https : developer.mozilla.org en DOM File .. . http : html5demos.com file-api Comment : Please attach onload before src . The load event can trigger between those two lines . If the image is cached etc Comment : @Raynos : Thanks . Though the file must have been loaded extremely super fast in that case.. . Comment : Out of curiosity could you reference where it says setting .src to a Blob File should work in the HTML5 spec I have a slight snag that this might be a proprietary extension . It happens to work in Chrome FF6 Don t have opera IE10 or Saf nightlies around to test Comment : @Raynos : My fault I misread . It looks like this answers your doubt : w3.org TR FileAPI dfn-readAsDataURL http : www.w3.org TR FileAPI dfn-readAsDataURL . Set the result attribute to be blob s data content represented as a Data URL DataURL on getting the result attribute returns the complete data of blob as a Data URL . Obviously the Data URL can be set to the src of an Image this will load fine . Comment : @Jonas : Won t be fixed : code.google.com p chromium issues detail id 60889 http : code.google.com p chromium issues detail id 60889 .", "Question : First I know that there are no blob urls only objects . I made my own blob object for a video buffer and then I used it in a src of video tag which is something like blob : website.com blabla . So I opened this url in new tab of my chrome browser it worked perfectly Now when I tried to open the url of youtube video src into a new tab that did t work but mine blob worked like charm Why Is That .. . Can i also make my own system like this so that blob not work in browsers but in src Is this any kind of htaccess code that I can use Lets copy the blob url in src of the image http : i.stack.imgur.com bXj2q.png .. . .. . Its working and I don t want it to work http : i.stack.imgur.com 0wrPi.png .. . .. . and I don t want it to work in new tab . Comment : Ans needed on this question same problem I am facing . tried to search a lot but still empty hands . : Comment : Open a youtube video paste this code in console document.querySelector video .src now copy the src and paste it into the browser s url section and press enter it ll not work at all now create your own website in which there is a blog in the src of video copy it in the url section and surprise its working like charm .. . Answer : The question seems somewhat vague to me so here is what I interpret also from the code in the fiddle-images in your question : .. . .. . you receive a Blob image s binary-data through a XMLHttpRequest GET -request responseType blob .. . you create a Blob URL with URL.createObjectURL in the URL Store for XMLHttpRequest response -object the Blob holding the binary-data .. . you set the resulting Blob URL -string as src for a image and append the image to the document thereby showing the image you just downloaded .. . You don t want it to work in new tab it being the Blob URL -string I assume . In your comments you say : .. . .. . In fiddle I inspected the image and copied the src and then pasted it in new tab and it worked and showed the image I don t want the image to be shown directly with the blob url . .. . .. . If you go to youtube and open the src of video in new tab : It will not work I want this to happen .. . .. . It appears to me that you do not want the user to be able to view download the blob when they copy the Blob URL -string by examining the live source or simply right-click-on-image Copy Imagelocation and paste it into a new tab window for which you give youtube as an example . But you are also talking about video s . TL DR : It seems your question bounty might be mixing up 2 different types of URL returned by window.URL.createObjectURL : .. . .. . Blob URL https : www.w3.org TR FileAPI url referencing objects that represent raw local data like Local- File Blob etc . For these you want to automatically or programmatically revoke the Blob URL from the browser s URL Store which you could consider a simplified local webserver inside the browser only available to that browser . var myBlobURL window.URL.createObjectURL object del flag oneTimeOnly del https : www.w3.org TR FileAPI dfn-createObjectURL .. . returns a re-usable Blob URL which can be revoked with : window.URL.revokeObjectURL myBlobURL https : www.w3.org TR FileAPI dfn-revokeObjectURL adds the Blob URL string to the Revocation List . Note : there used to be a second argument flag oneTimeOnly which used to revoke the Blob URL automatically after it s first use but that is currently no longer part of the spec Also this flag often didn t work anyway at least in firefox . var myBlobURL window.URL.createFor object https : www.w3.org TR FileAPI dfn-createFor .. . returns a Blob URL that is automatically revoked after it s first use . Note : quite some browsers were late to implement this one . MediaSource object URL https : www.w3.org TR media-source mediasource-object-url referencing a special MediaSource Object https : www.w3.org TR media-source mediasource .. . These URL s are .. . only intended to link src of a HTMLMediaElement http : www.w3.org TR html5 embedded-content-0.html htmlmediaelement think audo video elements to the special MediaSource Object .. . Note : a new tab window is not an HTMLMediaElement .. . already automatically revoked https : www.w3.org TR media-source url .. . Note : even though they are created through window.URL.createObjectURL .. . .. . .. . .. . Here s what s happening for the fiddle in your question s image and similar code that downloaded a video as Blob where you downloaded the whole video-file s data binary on the server using an xhr or any other local data : .. . You are essentially using the bare un-enhanced File-API https : www.w3.org TR FileAPI . The URL Store is only maintained during a session so it will survive a page-refresh since it is still the same session and lost when the document is unloaded . So if your fiddle is still open then fiddle-document the document that created the Blob URL is obviously not yet unloaded and therefore it s Blob URL s are available to the browser any tab window as long as it is not revoked This is a relevant feature : you can build download modify a Blob in the browser create a Blob URL and set it as href to a file-download link which the user can right-click and open in a new tab window Close the fiddle or revoke the Blob URL from the URL Store and the Blob URL is no longer accessible also not in a different tab window . Try yourself with your modified fiddle : https : jsfiddle.net 7cyoozwv .. . In this fiddle it should now no longer be possible to load your sample image into a different tab window after you copied the image url once the image is displayed in your page . Here I revoked the URL manually revokeObjectURL as it is currently the best cross-browser method partially due to the api not yet fully being stabilized . Also note : an element s onload event can be an elegant place to revoke your Blob URL . .. . .. . Here is what s happening to an audio or video source linked to an MediaSource Object using an MediaSource object URL returned by window.URL.createObjectURL MediaSource : .. . The Media Source Extensions MSE https : www.w3.org TR media-source also extend the File-API s window.URL.createObjectURL to accept a MediaSource Object . The current draft of the URL Object Extension https : www.w3.org TR media-source url specifies that : .. . .. . This algorithm is intended to mirror the behavior of the createObjectURL FILE-API method with autoRevoke set to true . Note that the current spec of the File API s window.URL.createObjectURL no longer has an autoRevoke or flag oneTimeOnly boolean flag accessible to the programmer who should be using window.URL.createFor for this purpose instead . I wonder when the Media-Source spec will mimic that and for backward compatibility alias their createObjectURL to a new createFor extension seems more appropriate as that is how it seems to be intended to work currently . These resulting automatically revoked URL-strings are only intended to link the src of a HTMLMediaElement think audo video elements to the special MediaSource Object . I don t think that an empty Document from a new tab window is a audo or video element . Perhaps A quick tutorial on MSE source : MSDN https : msdn.microsoft.com en-us library dn551368 28v vs.85 29.aspx might help clarify the difference and basic use : .. . .. . To use the MSE API follow these steps : .. . .. . 1 . Define an HTML5 video element in the HTML section of a page . 2 . Create a MediaSource object in JavaScript . 3 . Create a virtual URL using createObjectURL with the MediaSource object as the source . 4 . Assign the virtual URL to the video element s src property . 5 . Create a SourceBuffer using addSourceBuffer with the mime type of the video you re adding . 6 . Get the video initialization segment from the media file online and add it to the SourceBuffer with appendBuffer . 7 . Get the segments of video data from the media file append them to the SourceBuffer with appendBuffer . 8 . Call the play method on the video element . 9 . Repeat step 7 until done . 10 . Clean up . .. . .. . You or a big-time player like youtube who will dynamically select supported technologies for playback on the client s platform so there is no way to tell for sure what kind of youtube video URL s you are talking about could be using the new special MediaSource Object to play video s or audio . This adds buffer-based source options to HTML5 video for streaming support compared to to downloading a complete video file before playing or use an add-on like Silverlight or Adobe Flash to stream media . Hope this is what you were after Comment : Your image on fiddle is t displaying at all can you please check the address Comment : If you open console it ll say 404 not found Comment : I got everything now . ThanksAlso . Comment : OMG your answer was very long to read.Just keep it simple to understand . Comment : Thank you for accept and bounty and you are welcome For what it s worth I think a bounty-answer should provide all relevant reference and source without explanation the answer would literally just be : revocation and Document HTMLMediaElement . I also felt it was important to point out how the counter-intuitive createObjectURL does completely different things depending on how you use it I m always having a battle to combine short and complete . I just re-checked my fiddle was working ok . I assume you got it to work in the end", "Question : I require to generate a thumbnail of an image in my Web Application . I make use of the Html 5 File API to generate the thumbnail . I made use of the examples from the below URL to generate the thumbnails . http : www.html5rocks.com en tutorials file dndfiles .. . .. . I am successfully able to generate the thumbnails . The problem that I have is I am able to generate thumbnail only by using a static size . Is there a way to get the file dimensions from the selected file and then create the Image object Comment : Useful link : stackoverflow.com questions 12570834 http : stackoverflow.com questions 12570834 how-to-preview-image-get-file-size-image-height-and-width-before-upload 12570870 12570870 .. . Answer : Or use an object URL : http : jsfiddle.net 8C4UB Comment : This approach doesn t load the image into memory . readAsDataURL does . stackoverflow.com questions 6217652 http : stackoverflow.com questions 6217652 html5-file-api-crashes-chrome-when-using-readasdataurl-to-load-a-selected-image", "Question : I m using HTML5 technology with the FileApi . My problem is very simple but i m searching since 2 days ago and I have not find anything on the web .. . .. . I have a DicomFile . I use the FileApi from HTML5 to break it down and get all the information . Finally I get the image data in a byte array . The problem is that I can not decode a JPEG2000 Image and show it in the browser Chrome FireFox any . For example if the image data is coded in JPEG format I have no problem at all to show the image in the browser but the problem is with JPEG2000 or JPEG-LS . I know that those Image formats aren t able to show in the web browers but It must exist a library in Javascript to decode the image data that is in JPEG2000 or JPEG-LS . It s very important and I am a bit desesperate . If I can not find any way to do this I ll have to change all my work . Thank you very much in advance .. . Answer : I believe pdf.js https : github.com mozilla pdf.js project can decode jpeg2000 images compressed in a pdf file . See this comment https : github.com mozilla pdf.js blob 93ca387d1bbc5f824907aa5504d212e50280032a src stream.js L872 and this tweet https : twitter.com pdfjs status 160445587102240770 . Hope it helps .", "Question : null .. . Answer : So I m trying to use file select or file API to select file from desktop and send it to an embedded PDF viewer in my HTML Doc . I ve tried a lot of different ways with my limited knowledge to push the file from the file-api to the PDFObject and nothing seems to work . I m not sure if it s not able to do this or if I m just doing it wrong in many different ways . Can I use file select file api to select and push a document to the PDFObject viewer or does it not allow that sort of connection", "Question : This Question is related to and inspired by How to updoad in old browsers ex Safari 5.1.4 http : stackoverflow.com questions 38193605 how-to-updoad-in-old-browsers-ex-safari-5-1-4 .. . .. . Given an input-type-file element having a files property containing File objects which inherit from Blob is it possible to create a ArrayBuffer and convert the ArrayBuffer to a data URI from a Blob or File object without using FileReader Approaches have tried so far have been .. . .. . create a mock WebSocket with .binaryType set to arraybuffer create a MessageEvent with event.data set to File object result is File object at onmessage handler .. . .. . set prototype of File to ArrayBuffer Uint8Array result is Uncaught TypeError : Method ArrayBuffer.prototype.byteLength called on incompatible receiver ArrayBuffer Uncaught TypeError : Method get TypedArray.prototype.byteLength called on incompatible receiver object Object .. . .. . set File at FormData object attempt to post request body to iframe admittedly not well-conceived result Bad Request at plnkr http : plnkr.co edit Ca7pNsmVhXpv8Us5v8hE p preview .. . .. . Expected result : Convert Blob and File objects to TypedArray then to data URL https : tools.ietf.org html rfc2397 or directly to data URL .. . .. . .. . .. . See also Display image from blob using javascript and websockets http : stackoverflow.com questions 11089732 display-image-from-blob-using-javascript-and-websockets How can you encode a string to Base64 in JavaScript http : stackoverflow.com questions 246801 how-can-you-encode-a-string-to-base64-in-javascript interestingly ironic as am now asking similar Question is there any way to convert the file to an arraybuffer without fileReader api http : stackoverflow.com questions 34302231 is-there-any-way-to-convert-the-file-to-an-arraybuffer-without-filereader-api Blob .slice method https : w3c.github.io FileAPI slice-method-algo FileReader .readAsDataURL method https : w3c.github.io FileAPI readAsDataURL Comment : I don t have safari 5 at hand btw this browser is deprecated for years users should change it to an up-to-date one ASAP nor a browser that does support Blob objects or File but doesn t support the FileReader . Does it really exists aren t you looking the wrong way one workaround would be to upload the File somewhere and then refetch it with XHR but try to answer these first questions first Comment : @Kaiido nor a browser that does support Blob objects or File but doesn t support the FileReader . Does it really exists Do not have access to safari here either . According to MDN browser compatibility input-type-file is supported at version 1.0 of safari Blob at 5.1 FileReader at 6.0 responseType blob and arraybuffer at XMLHttpRequest state Yes . Curious how raw data is actually stored accessed within Blob object Comment : Probably an early implementation.. . Too bad it doesn t support URL.createObjectURL either otherwise you could have tried something as simple as var url URL.createObjectURL blob var xhr new XMLHttpRequest xhr.onload function rawData this.response xhr.open get url xhr.send . Ps talking about early implementations you can see that IE9 didn t support TypedArray but still had one kind through canvas imageData object . Comment : @Kaiido Yes curious how the process was discussed being implemented or implemented that is accessing raw data stored in Blob or input.files object at 1.0-5.1 If Blob is an object the raw data is stored within object yes Another way to ask Question would be how to follow algorithm for FileReader to create a FileReader implementation from scratch using steps in algorithm - without using FileReader Comment : Read this post please what-to-use-instead-of-filereader-for-safari http : stackoverflow.com questions 7734150 what-to-use-instead-of-filereader-for-safari .. . Answer : Can try createObjectURL if it supports .. . .. . URL.createObjectURL static method creates a DOMString containing an URL representing the object given in parameter you can get url of whatever image document the user uploads but if its binary it will simply start download .. . .. . https : jsfiddle.net y2u6hzb7 .. . .. . it only creates link and not bin array so to see txt open the link in new tab . Comment : See original Question How to create an ArrayBuffer and data URI from Blob and File objects without FileReader URL.createObjectURL does not convert Blob to ArrayBuffer or data URI", "Question : I require to generate a thumbnail of an image in my Web Application . I make use of the Html 5 File API to generate the thumbnail . I made use of the examples from the below URL to generate the thumbnails . http : www.html5rocks.com en tutorials file dndfiles .. . .. . I am successfully able to generate the thumbnails . The problem that I have is I am able to generate thumbnail only by using a static size . Is there a way to get the file dimensions from the selected file and then create the Image object Comment : Useful link : stackoverflow.com questions 12570834 http : stackoverflow.com questions 12570834 how-to-preview-image-get-file-size-image-height-and-width-before-upload 12570870 12570870 .. . Answer : Yes read the file as a data URL and pass that data URL to the src of an Image : http : jsfiddle.net pimvdb eD2Ez 2 .", "Question : I require to generate a thumbnail of an image in my Web Application . I make use of the Html 5 File API to generate the thumbnail . I made use of the examples from the below URL to generate the thumbnails . http : www.html5rocks.com en tutorials file dndfiles .. . .. . I am successfully able to generate the thumbnails . The problem that I have is I am able to generate thumbnail only by using a static size . Is there a way to get the file dimensions from the selected file and then create the Image object Comment : Useful link : stackoverflow.com questions 12570834 http : stackoverflow.com questions 12570834 how-to-preview-image-get-file-size-image-height-and-width-before-upload 12570870 12570870 .. . Answer : I have wrapped pimvdb answer in a function for general purpose in my project :", "Question : Problem solved read comment .. . .. . The third problem I have with the HTML5 File API : I still use Chrome 12 on Mac OS X Snow Leopard and I m still trying to read files with the HTML5 File API but FileHandler.error get called because a SECURITY ERR occurres . The file I try to read is a regular .txt file from my desktop but it neither works with other files although I can open them with regular applications . The code generates the following console output : http : cl.ly 1x1o2F0l2m3L1T2c0H0i Comment : Problem solved I just uploaded the script to a webspace it works perfect . Comment : If you re testing an app from file : you can run Chrome with the following flags : --allow-file-access-from-files --allow-file-access . This should only be used for testing purposes . Comment : @ebidel You should add that comment as an answer so this post can be closed : .. . Answer : If you re testing an app from file : you can run Chrome with the following flags : --allow-file-access-from-files --allow-file-access . This should only be used for testing purposes . Comment : So there s no way to use a file reader on a website basically You can t require your users to start their chrome browser with a special flag : S Comment : No file : protocol will only be used when testing the website locally without any server running once deployed the file will be transfered over http : protocol Comment : If a tablet executes a HTML5 application will it be using a file : or http : protocol And if it is the latter will it runs into this error too Comment : +1 for the file http hint . But I created a Chrome shortcut and added mentioned flags as parameters and it doesn t work . How should I use those flags", "Question : I can not find the way to distinguish between folders and files drop in FireFox Ajax . Looks like there are no signs in FireFox FileAPI that can tell if this is a folder or a file . However I see that Google docs somehow can distinguish between folders and files drop . It does not relie on extensions or file length files without extensions are uploaded correctly as well as 0-lenth files are uploaded with no problem . How do I distinguish between files and folders during D D in FF .. . Answer : This http : hs2n.wordpress.com 2012 08 13 detecting-folders-in-html-drop-area blog post suggests trying to read the file and reacting to the exception that will be thrown if it is a folder . In general : First assume the folder is a file and treat it like one at some point things will go wrong and you can react to that .", "Question : I m using HTML5 technology with the FileApi . My problem is very simple but i m searching since 2 days ago and I have not find anything on the web .. . .. . I have a DicomFile . I use the FileApi from HTML5 to break it down and get all the information . Finally I get the image data in a byte array . The problem is that I can not decode a JPEG2000 Image and show it in the browser Chrome FireFox any . For example if the image data is coded in JPEG format I have no problem at all to show the image in the browser but the problem is with JPEG2000 or JPEG-LS . I know that those Image formats aren t able to show in the web browers but It must exist a library in Javascript to decode the image data that is in JPEG2000 or JPEG-LS . It s very important and I am a bit desesperate . If I can not find any way to do this I ll have to change all my work . Thank you very much in advance .. . Answer : I doubt that you will be able to decode jpeg 2000 and jpeg-ls in a reasonable time using just javascript . The best way to go is to look for a browser-plugin that is able to display such images . Comment : Thanks for your answer . The JPEG2000 images are perfect for the web size quality etc . and I haven t found any kind of posibility to show them on a web browser in the client-side . I m dissapointed beacuse is a format that created in 2000 with lots of potential . Comment : @user1211709 I think that if you install QuickTime from Apple then Opera will be able to display jpeg2000 . Firefox needs a plugin . More info about supporting browsers here : en.wikipedia.org wiki JPEG 2000 http : en.wikipedia.org wiki JPEG 2000 Comment : I can t find any plugin for firefox . I ve found instead this http : browserspy.dk images.php", "Question : I have written code to download the video from GoogleCloud storage .. . .. . How to get the blob object and then how do I save to local hard disk using File Saver What should I pass to the File Saver Saveas method . I went through File API documentation but I couldn t get it working . Any suggestions .. . Answer : I have never tried in JavaScript . Here is an example in Ruby .", "Question : I would like to draw an image opened with the HTML5 File API on a canvas . In the handleFiles e method I can access the File with e.target.files 0 but I can t draw that image directly using drawImage . How do I draw an image from the File API on HTML5 canvas Here is the code I have used : .. . Answer : Here is a complete example Fiddle http : jsfiddle.net kepd5d40 3 using FileReader which has better browser support as mentioned by Raynos . In this example I also scale Canvas to fit the image . In real life example you might scale the image to some maximum so that your form will not blow up - . Here is an example with scaling Fiddle http : jsfiddle.net kepd5d40 5 .", "Question : I have to read a big file which user uploads using javascript s file api . Since this file is huge reading it as is crashes the browser . So I slice the file and it forms an array of blobs Can slice method create array of any other type . JS Code : .. . .. . After this I have an array of blobs known as blobs . How do I store this array I am using localforage indexeddb . Currently I am storing the blobs array as it is . JS Code : .. . .. . Can converting it to something else help Or should I read the blobs in blobs array and convert them to one big array If yes how do I do that . After retrieving x will contain the array of blobs which I had store . Now How do I merge this blob to get the original file as a big data-url .. . .. . Snapshot of the retrieved blobs array http : i.stack.imgur.com DlqLP.png .. . .. . If I upload a video in similar way How can I merge the blob arrays to form a data-url to add to attribute tag of html 5 video tag Also Can someone provide a little bit of high-level explanation of how localforage stores this array . Does it directly set it .. . Answer : The blob constructor takes a mixed array of buffers strings and other blobs : Comment : Thanks I came across this bit of information but as you ll see my problems are big files . If I merge the small blobs to form a big blob . I will have a hard time to read it again . For instance I have a blob array of size 3500 each of 10 mb comes around 300 mb total . When I try to read this huge blob it will crash the browser . Any way to read Big blobs so that they do not crash the browser Comment : @AkshayShinde you wouldn t read a large file at once in any environment . I d say even 10mb chunks are unnecessarily large . You have already solved your problem of reading large-files : do it in chunks . I was answering your question of how to merge the blob slices back to a single blob .", "Question : null .. . Answer : I m trying to figure out how to create audio elements from local files using the File API FileReader API . I m using jQuery can someone please help me out Comment : What doesn t work about this It looks right to me . You could also try using var audio new Audio setting the src to the data : URL then appending the node . Should be the same thing though : Comment : @ebidel : Thanks for the comment I was attempting to run it locally - turns it DOES work if I run it on my web-server or localhost . Thanks" ] }
[ "yes-answer-long", "yes-answer-short" ]
w3c
UNK_RELATION
apache-utils@server@67
apache-utils -- apache-utils are the tools provided by apache web @placeholder .
{ "confidence": [ 37.31727600097656, 31.49782943725586, 29.90713119506836, 28.071718215942383, 18.439661026000977, 15.943000793457031, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 15.158230781555176, 14.809395790100098, 14.159177780151367, 14.159177780151367, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.626840591430664, 13.486767768859863, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688, 11.791427612304688 ], "content": [ "Is this apache 2.2 2.4 etc", "@ Harry : Server version : Apache 2.4.7 Ubuntu and Server MPM : event .", "I have a NGINX server and I use Apache-utility s for password requirement .htpasswd .", "Also things like this are typically configuration related ie if this is apache what MPM module are you using and what s it s configuration .", "when trying to install ab apache benchmark like this : .. . .. . on my Mint 16 Ubuntu 13 system I get this messages : .. . .. . the .. . .. . doesn t change anything while this : .. . .. . changed the last line ofe the messages : .. . .. . ordering was unable to handle the media swap - I see .. . .. . When browsing the http : security.ubuntu.com ubuntu pool main a apache2 directory I can see that there are numerous packages but the 2.4.6 is missing : .. . .. . So the questions are : .. . .. . why does the installer tries to install the non-existing package 2.4.6", "In this case I am using Virtual Linux and in that i am running my web server .", "If the input is today June 7 then it should give me May 1 12 : 00 AM to May 31 11 : 59 PM .", "I was using Calendar but I want to use DateUtils .", "What is it about DateUtils that you find compelling", "Yes Calendar is awkward to use but you already have a working solution and can easily convert a Calendar into a Date .", "Ya I just wanted to use DateUtils .", "But I found out DateUtils internally uses Calendar .", "So ended up using Calendar anyways .", "DateUtils can do the required : .. . .. . Edit : Adding output", "Gives me error for last line : The method ceiling Date int is undefined for the type DateUtils", "Make sure you re using the latest DateUtils .", "If using maven then add the following to your pom.xml dependencies dependency groupId org.apache.commons groupId artifactId commons-lang3 artifactId version 3.4 version dependency dependencies", "I ended up using JodaTime .", "Much easier", "After that When i have tried run my web server on host Linux and i have execute ab command in another system i got perfect output in 100 concurrent process .", "Another side My own Web Server is waiting for request at that IP address port : 8558 and when we execute the ab command my own server accept the requests and did process gives response factorial of 5 but some of 10-20 request fails every time in native Linux system .", "So from this I conclude that this type of load-testing we need to see the hardware latency as well as port forwarding issue also is there when you are testing you web server from Virtual box but in host Linux system there is no issue .", "It MOSTLY works fine .", "The following this work fine : .. . .. . but.. .", "When I type example.com admin index.php and don t type any password at all and press abort the server show s the index.php without any CSS or JS files .", "I think my PHP-FPM is the problem .", "Please take a look :", "See this http : nginx.org en docs http-request processing.html but basically your authentication applies to location admin and the .php files are processed by location .php .", "I see .", "But how do I fix that", "I have no clue .", "Just looking at the last two locations in your question : .. . .. . Adding the modifier makes the location admin block take precedence over the other regex blocks specifically the existing location .php block .", "So the authentication rules are uniformly applied to any URI beginning with admin .", "See this document http : nginx.org en docs http ngx http core module.html location for details .", "To avoid breaking PHP the location .php block is duplicated within the location admin block to process URIs that begin with admin and end with .php .", "Nice .", "The the bug is now fixed .", "But now he always says 403 Forbidden .", "I checked the dir permissions but there all right .", "403 may be caused when the URI is a bare directory like admin or admin and no index or try files rule exists to resolve it .", "You might want to look at adding an index or try files into the location admin block to get the desired behaviour .", "I tried but still 403 .", "Even when I point the URI at the file .", "Do you have an Idea why", "Make sure you clear your browser-cache .", "I did .", "Still not working .", "What i have done : .. . .. . I have used following ab command : .. . .. . ab -n 1000 -c 100 http : 192.168.101.143 : 8558 num num 5 .. . .. . Here I am trying to generate 1000 http-request 100 concurrent process port is 8558 and i want factorial of 5 from my own web server .", "and - more important - how to fix this", "- can I use a specific version", "- and what version is recommended for my system", "System Version Infos :", "I m facing the very same problem right now did you find a way", "But When I have run my own server on native windows system it give 1000 correct response with 100 concurrent process on time without fail any request .", "Problem : .. . .. . In windows 100 concurrent process thread working fine but In Linux some request fails Why", ".. . How to solve this issue for Linux", ".. . Is there any socket related issue", "When Server on in Windows Platform : .. . .. . When Server Running in Linux Platform :", "What server are you using .", "Is event prefork worker effect on only Linux because when my server run from windows and i am executing this command from Ubantu it is working fine but when my server running in ubantu this command fails some request .", "Any hardware issues on your Linux server", "CPU overheating hard drive problems and broken network ports cables can all cause increased latency even when doing the easiest things.. .", "Can you try running that test on the server itself pointing to localhost", "You might want to tune your linux server for such kind of loads .", "Refer : serverfault.com questions 10852 http : serverfault.com questions 10852 what-limits-the-maximum-number-of-connections-on-a-linux-server", "so when I am execute my ab command from the another system .", "some what problem in port forwarding in Virtual box NAT Bridge Host Only .", "so some of the request fails ." ] }
{ "confidence": [ 29.384323120117188, 25.699901580810547, 23.620956420898438, 14.832679748535156, 14.832679748535156 ], "content": [ "Question : What i have done : .. . .. . I have used following ab command : .. . .. . ab -n 1000 -c 100 http : 192.168.101.143 : 8558 num num 5 .. . .. . Here I am trying to generate 1000 http-request 100 concurrent process port is 8558 and i want factorial of 5 from my own web server . Another side My own Web Server is waiting for request at that IP address port : 8558 and when we execute the ab command my own server accept the requests and did process gives response factorial of 5 but some of 10-20 request fails every time in native Linux system . But When I have run my own server on native windows system it give 1000 correct response with 100 concurrent process on time without fail any request . Problem : .. . .. . In windows 100 concurrent process thread working fine but In Linux some request fails Why .. . How to solve this issue for Linux .. . Is there any socket related issue When Server on in Windows Platform : .. . .. . When Server Running in Linux Platform : Comment : What server are you using . Is this apache 2.2 2.4 etc Also things like this are typically configuration related ie if this is apache what MPM module are you using and what s it s configuration . Comment : @ Harry : Server version : Apache 2.4.7 Ubuntu and Server MPM : event . Is event prefork worker effect on only Linux because when my server run from windows and i am executing this command from Ubantu it is working fine but when my server running in ubantu this command fails some request . Comment : Any hardware issues on your Linux server CPU overheating hard drive problems and broken network ports cables can all cause increased latency even when doing the easiest things.. . Comment : Can you try running that test on the server itself pointing to localhost Comment : You might want to tune your linux server for such kind of loads . Refer : serverfault.com questions 10852 http : serverfault.com questions 10852 what-limits-the-maximum-number-of-connections-on-a-linux-server .. . Answer : In this case I am using Virtual Linux and in that i am running my web server . so when I am execute my ab command from the another system . some what problem in port forwarding in Virtual box NAT Bridge Host Only . so some of the request fails . After that When i have tried run my web server on host Linux and i have execute ab command in another system i got perfect output in 100 concurrent process . So from this I conclude that this type of load-testing we need to see the hardware latency as well as port forwarding issue also is there when you are testing you web server from Virtual box but in host Linux system there is no issue .", "Question : null .. . Answer : when trying to install ab apache benchmark like this : .. . .. . on my Mint 16 Ubuntu 13 system I get this messages : .. . .. . the .. . .. . doesn t change anything while this : .. . .. . changed the last line ofe the messages : .. . .. . ordering was unable to handle the media swap - I see .. . .. . When browsing the http : security.ubuntu.com ubuntu pool main a apache2 directory I can see that there are numerous packages but the 2.4.6 is missing : .. . .. . So the questions are : .. . .. . why does the installer tries to install the non-existing package 2.4.6 and - more important - how to fix this - can I use a specific version - and what version is recommended for my system System Version Infos : Comment : I m facing the very same problem right now did you find a way", "Question : I have a NGINX server and I use Apache-utility s for password requirement .htpasswd . It MOSTLY works fine . The following this work fine : .. . .. . but.. . When I type example.com admin index.php and don t type any password at all and press abort the server show s the index.php without any CSS or JS files . I think my PHP-FPM is the problem . Please take a look : Comment : See this http : nginx.org en docs http-request processing.html but basically your authentication applies to location admin and the .php files are processed by location .php . Comment : I see . But how do I fix that I have no clue . .. . Answer : Just looking at the last two locations in your question : .. . .. . Adding the modifier makes the location admin block take precedence over the other regex blocks specifically the existing location .php block . So the authentication rules are uniformly applied to any URI beginning with admin . See this document http : nginx.org en docs http ngx http core module.html location for details . To avoid breaking PHP the location .php block is duplicated within the location admin block to process URIs that begin with admin and end with .php . Comment : Nice . The the bug is now fixed . But now he always says 403 Forbidden . I checked the dir permissions but there all right . Comment : 403 may be caused when the URI is a bare directory like admin or admin and no index or try files rule exists to resolve it . You might want to look at adding an index or try files into the location admin block to get the desired behaviour . Comment : I tried but still 403 . Even when I point the URI at the file . Do you have an Idea why Comment : Make sure you clear your browser-cache . Comment : I did . Still not working .", "Question : If the input is today June 7 then it should give me May 1 12 : 00 AM to May 31 11 : 59 PM . I was using Calendar but I want to use DateUtils . Comment : What is it about DateUtils that you find compelling Yes Calendar is awkward to use but you already have a working solution and can easily convert a Calendar into a Date . Comment : Ya I just wanted to use DateUtils . But I found out DateUtils internally uses Calendar . So ended up using Calendar anyways . .. . Answer : DateUtils can do the required : .. . .. . Edit : Adding output Comment : Gives me error for last line : The method ceiling Date int is undefined for the type DateUtils Comment : Make sure you re using the latest DateUtils . If using maven then add the following to your pom.xml dependencies dependency groupId org.apache.commons groupId artifactId commons-lang3 artifactId version 3.4 version dependency dependencies", "Question : If the input is today June 7 then it should give me May 1 12 : 00 AM to May 31 11 : 59 PM . I was using Calendar but I want to use DateUtils . Comment : What is it about DateUtils that you find compelling Yes Calendar is awkward to use but you already have a working solution and can easily convert a Calendar into a Date . Comment : Ya I just wanted to use DateUtils . But I found out DateUtils internally uses Calendar . So ended up using Calendar anyways . .. . Answer : I ended up using JodaTime . Much easier" ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
typo3-6.2.x@php@89
typo3-6.2.x -- typo3 is a free and open-source web content-management-system written in @placeholder .
{ "confidence": [ 66.15481567382812, 59.62760543823242, 58.88249206542969, 54.97589111328125, 54.89960479736328, 54.6031379699707, 53.12995529174805, 51.84504699707031, 51.84504699707031, 50.94194030761719, 50.834068298339844, 50.701995849609375, 50.701995849609375, 50.701995849609375, 50.701995849609375, 50.103363037109375, 49.64910888671875, 48.93937683105469, 48.80029296875, 48.60968017578125, 48.034061431884766, 47.94390106201172, 47.94390106201172, 47.94390106201172, 47.94390106201172, 47.94390106201172, 47.94390106201172, 47.94390106201172, 47.7484130859375, 47.58314895629883, 47.108245849609375, 47.10476303100586, 46.91824722290039, 46.60491180419922, 46.57813262939453, 46.52626419067383, 46.49905776977539, 46.49905776977539, 46.49905776977539, 46.18128967285156, 46.14071273803711, 45.911460876464844, 45.71149444580078, 45.685691833496094, 45.64398956298828, 45.449825286865234, 45.449825286865234, 45.449825286865234, 45.44717788696289, 45.44717788696289, 45.44717788696289, 45.44717788696289, 45.07371520996094, 44.94561767578125, 44.840423583984375, 44.708534240722656, 44.708534240722656, 44.708534240722656, 44.708534240722656, 44.22502899169922, 43.740966796875, 43.68287658691406, 43.68287658691406, 43.574546813964844, 43.574546813964844, 43.41026306152344, 43.39867401123047, 43.319976806640625, 43.30308532714844, 43.15947723388672, 43.15947723388672, 43.15947723388672, 43.15947723388672, 43.15336990356445, 42.98463439941406, 42.945919036865234, 42.9276008605957, 42.89166259765625, 42.867759704589844, 42.867759704589844, 42.867759704589844, 42.6890869140625, 42.6890869140625, 42.6890869140625, 42.6890869140625, 42.6890869140625, 42.6890869140625, 42.6890869140625, 42.66679382324219, 42.52382278442383, 42.52382278442383, 42.52382278442383, 42.52382278442383, 42.37664031982422, 42.31562805175781, 42.31562805175781, 42.31562805175781, 42.31562805175781, 41.4895133972168, 41.46693801879883 ], "content": [ "Typo3 CMS is an Open Source content-management-system and TYPO3 Flow is a PHP-based application framework then is there any relation between Typo3 CMS and TYPO3 Flow .", "That was with TYPO3 6.2 too .", "Requirements for TYPO3.CMS 6.2 http : typo3.org typo3-cms overview requirements", "I just upgraded a typo3 4.5 LTS to typo3 6.2 LTS .", "I am using typo3 6.2 is there any backend extension available to import csv OR xls data into tt address in typo3", "It is available for TYPO3 6.2 but its future is uncertain AFAIK .", "It is tested with TYPO3 7.6.x .", "class.t3lib scbase.php .. . .. . .. . Then the extension should be working again on typo3 6.2", "After upgrade to TYPO3 6.2 these field disappeared .", "I am using TYPO3 6.2.17 I try to group button in RTE of TYPO3 Content with .. . .. . But it seems wrong .", "I m writing a TYPO3 extension using TYPO3 CMS 6.2.x LTS and Extension Builder .", "I just upgraded my typo3 4.5 to 6.2 lts .", "In typo3 6.2 install tool there is an option to check form incompatible extension .", "Users can register for various events with powermail forms on a TYPO3 6.2 site .", "How is it possible to see the sys file uid of a document in the TYPO3 6.2 backend", "Download TYPO3 6.2 . source and replace the typo3 folder and index.php file next go to Install Tool and process upgrade wizard steps .", "The TYPO3 road map at https : typo3.org typo3-cms roadmap and the TYPO3 download pages have 6.2 LTS support ending March 2017 and 7 LTS support going to November 2018 .", "This is tested on Typo3 4.x but with little updates", "But it is not working for typo3 6.2.17", "Put the TYPO3 6.2 core back in it s place .", "I want to migrate an extension from Typo3 6.2 to Typo3 7.5 In Typo3 6.2 it works fine but in the Typo3 7.5 I get the following error : .. . .. . Fatal error : Class t3lib pageSelect not found in .. . .. . .. . It think that its not anymore supported but when I m right what I must use now", "I want to compare two dates in a condition with fluid in an extension in Typo3 6.2 .", "fluidcontent an flux but the latest versions do not support TYPO3 6.2 .", "did you upgrade the version in your ext emconf.php in typo3 6.2-7.6.99", "What are the recommended steps to upgrade TYPO3 4.5 or 6.1 to 6.2", "This version is working on Typo3 6.2 but it might not include every feature .", "Thank you so much .. . .. . Ps : I m using TYPO3 6.2", "For TYPO3 6.2 I cannot manage to have real url setup for tt-news .", "After the update to Typo3 6.2 these fields disappeared in the backend so I can t edit them anymore .", "I have a backend-problem with Typo3 6.2 and my tt address extended fields : .. . In Typo3 4.5 I extended the tt address database-fields with a little extension built with kickstarter .", "There is no direct relation between TYPO3 CMS and TYPO3 Flow .", "I have created a custom content element in TYPO3 6.2 LTS using FlexForms .", "I ve got some problems upgrading my extension from typo3 6.2 to 7.6.X .. . .. . got this code .. . .. . and got this error :", "My typo3 6.2 Upgraded from Typo3 4.5 fluid paginate displays all the items instead of 5 items .", "See also : Retaining compatibility to TYPO3 CMS 6 https : typo3.org news article retaining-compatibility-to-typo3-cms-6 .. . .. . Downgrading from 7.x back to 6.2 .. . .. . There is no such thing as a documentation with downgrade instructions .", "I am using the news https : github.com TYPO3-extensions news extension in TYPO3 6.2.14 .", "My TYPO3 ver .", "TYPO3 is behaving correctly .", "TYPO3-Version : 6.2.15", "In Typo3 7.x there is no support for the old classes anymore .", "Unfortunately this kind of feature is not part of typo3 core system .", "Now in the TYPO3-Backend on Page A I m adding a new content with type of plugin .", "Off-topic but you are aware that 6.2.14 contains severe security issues https : typo3.org teams security security-bulletins typo3-core typo3-core-sa-2016-013", "This more of a comprehension question about FAL in TYPO3 6.x .", "On TYPO3 ver .", "See the TYPO3 family brand page http : typo3.org about the-brand the-typo3-family .", "Still in this location create a symlink to typo3 folder pointing folder in created symlink : .. . .. . ln -s typo3 src typo3 typo3 .. . .. . .. . 8 .", "typo3-blog.com typo3-tipps http : www.typo3-blog.com typo3-tipps bild-aus-seiteneigenschaften-fuer-alle-sprachen", "I m writing an extension-function in TYPO3 CMS 6.2 Extbase that must process every object in a large repository .", "What would be the recommended method to add custom page property fields in TYPO3 6.2", "With TYPO3 6.2 my site entirely lives in public html mydir which corresponds to mydir.mydomain.com .", "In a TYPO3 6.2 site that was upgraded from 4.5 the Ref column in the file list doesn t provide accurate data .", "typo3 template http : i.stack.imgur.com IfPPI.jpg", "I have updated TYPO3 6.1 6.2 and tx news 2.x 3.x using a classic setup with a separate list and detail page .", "I m completely new to Typo3 and have inherited a live Typo3 6.1 website .", "I try to install the module htmlArea RTE in TYPO3 6.2 The LTS version .", "I have developed TYPO3 6.2 extensions with some FE plugins .", "How to create query object for typo3 6.2 fluid paginate", "I searche to use the modul indexed search of TYPO3 on the version 6.2 .", "t3lib div to TYPO3 CMS Core Utility GeneralUtility or t3lib extmgm to TYPO3 CMS Core Utility ExtensionManagementUtility .", "the version is TYPO3 6.2.15 .", "IN typo3-6.2.x paginate will not work with query statement so we need to convert it into extbase query format .", "In typo3-6.2.x paginate will not work with query statement so we need to convert it into extbase query format .", "First I ignored the problem Typo3 complained about because on a local System I was not worried about security .", "Hello please try reinstall your extension which extends tt address and clean system and general cache in Typo3 backend .", "I have created some extensions for typo3 and added it to TYPO3 Extension Respository http : typo3.org extensions repository .. . .. . But after uploading and checked through out to see the manuel added along with it as a link .", "In some checkbox fields of a Powermail 2.x form in TYPO3 6.2.x I have HTML inside the Value of a checkbox which is needed on the website but should be parsed away in the email to the receiver .", "I m fairly new to TYPO3 and after an update from 6.2 to 7.6 all the CSS styled Content classes have changed to csc-default .", "Compatibility mode for TYPO3 6.x .. . .. . The system extension compatibility6 is shipped with TYPO3 7 have you tried installing this extension already", "TYPO3 does exactly what you want .", "I ve tested my example with TYPO3 6.2.14 .", "I m updating an old TYPO3 to latest verison 6.2.12 .", "I m using TYPO3 6.2.14 and the FluidTYPO3-ecosystem .", "I want to parse RTE content in TYPO3 6.2.9 extBase .", "There are no supported way for TYPO3 6.2 but in the new TYPO3 7.6 LTS it should be possible to register a hook in your ext localconf.php file add this : .. . .. . Create the file Classes Hooks BackendUserAuthentication.php and write something like this : .. . .. . The params array will contain this : .. . .. . Now use the table and field name to change the upload folder - good look :", "The website s Typo3 version at the moment is 4.5.x .", "I learned with typo3 6.x all pibased extensions will die .", "I use TYPO3 CMS 6.2.9 and the Versatile News System tx news .", "I just installed Yet Another Gallery 4.0.7 on Typo3 6.2.19 .", "Using Typo3 6.2.19 with themes theme engine themes gridelements theme bootstrap .", "I ve just installed the plugin cb indexedsearch autocomplete for typo3 and included it in the template .", "So I ve got the latest fluidcontent who supported TYPO3 6.2 - it s 4.3.3 .", "In a TYPO3 6.2 site I have the following postVarSets in realurl conf.php for an extbase extension : .. . .. . This works .", "Gimme your email and i will send you a working version of quixplorer with TYPO3 6.2", "I am currently troubleshooting a TYPO3 6.2 LTS Site with latest tt-news v3.6.0 .", "On a new project I have to upgrade a old typo3 installation from 4.2 to 6.2 or even 7.6 .", "I try to automaticly set the language in my typo3 6.2 One-Tree Page .", "In TYPO3 6.2 just upgraded from 4.5 I have a TMENU with Images using a cObject in NO to build the menu as desired .", "Anyway the basic ideas and concepts of building web-applications have been backported to TYPO3 CMS within the system extension extbase .", "t3lib folder can be deleted after all it s not used anymore in TYPO3 6.2 all sources are now in typo3 .. . .. . IMPORTANT : make a full copy of site files+DB before any changes .", "You can also try to get the original version http : typo3.org extensions repository view t3quixplorer running on Typo3 6.2 by modifying the t3quixplorer mod1 index.php file of the extension .", "You will still find all the missing API calls in the extension div2007 https : typo3.org extensions repository view div2007 which uses the same Migrations as in TYPO3 6.2 .", "When using fluidpages fluidcontent and flux in TYPO3 6.2 the time to load a page in list mode takes more than a minute in our environment which was not the case with TYPO3 4.7 .", "According to official TYPO3 website it is recommended 256M memory limit instead of 128M : Source https : typo3.org typo3-cms overview requirements .. . .. . So my first suggestion would be trying to do that first and it might solve your problem now .", "Btw : TYPO3 is always the correct spelling :", "Create your local TYPO3 instance .", "TYPO3 has a default stylesheet e.g .", "How to change it via TYPO3 Backend", "I am looking for a way to be able to set some content dynamically in the layout of a typo3 site .", "TYPO3 family has a few more members the most important are TYPO3 CMS and Neos ." ] }
{ "confidence": [ 68.5312271118164, 66.38468933105469, 65.96398162841797, 62.4922981262207, 62.074954986572266, 61.78241729736328, 61.614723205566406, 60.88576889038086, 60.36113739013672, 60.12087631225586, 59.16242980957031, 58.886619567871094, 58.805633544921875, 58.61514663696289, 57.758270263671875, 57.04801940917969, 56.743751525878906, 55.97743225097656, 55.94725799560547, 55.662513732910156 ], "content": [ "Question : Typo3 CMS is an Open Source content-management-system and TYPO3 Flow is a PHP-based application framework then is there any relation between Typo3 CMS and TYPO3 Flow . Please help me to find an answer . Thanks in advance . .. . Answer : Flow is a PHP framework from TYPO3 family which can be used on its own . TYPO3 family has a few more members the most important are TYPO3 CMS and Neos . See the TYPO3 family brand page http : typo3.org about the-brand the-typo3-family . Released at the end of 2011 Flow was initially developed as a foundation for a next generation web publishing platform called Neos released one year later . Nowadays Flow is used as a standalone framework suitable for building complex web-applications offering advanced features like Dependency Injection Aspect Oriented Programming and more . Flow - together with Fluid the templating-engine used by Flow - is backported to TYPO3 CMS as a extbase and fluid system extensions . It is just a backport made to ease developing TYPO3 CMS extensions and offer some of sophisticated Flow features there . Though you cannot just take Flow package and drop it into TYPO3 CMS expecting it will work . Although under rapid development TYPO3 CMS has its historical background and the core principals are different than in newer younger Flow .", "Question : Typo3 CMS is an Open Source content-management-system and TYPO3 Flow is a PHP-based application framework then is there any relation between Typo3 CMS and TYPO3 Flow . Please help me to find an answer . Thanks in advance . .. . Answer : There is no direct relation between TYPO3 CMS and TYPO3 Flow . Anyway the basic ideas and concepts of building web-applications have been backported to TYPO3 CMS within the system extension extbase . Many features of Flow are present in extbase as well so that CMS extension developers can rely on a alike framework . A incomlete list is : .. . .. . MVC Design Pattern .. . Domain Driven Design .. . Dependency Injection .. . Repository Pattern for access the database .. . Folder Structure .. . Signals and Slots .. . Use of Template enginge Fluid .. . .. . Since extbase is an backport of Flow it relies on the contribution of its maintainers to keep up with new features introduces to flow . On a sidenote : in contrast to TYPO3 CMS TYPO3 Neos is completly build on top of Flow in fact Neos is a Flow package so there is a direct relation .", "Question : I have a backend-problem with Typo3 6.2 and my tt address extended fields : .. . In Typo3 4.5 I extended the tt address database-fields with a little extension built with kickstarter . After the update to Typo3 6.2 these fields disappeared in the backend so I can t edit them anymore . In the Frontend everything is fine all fields are there . Any idea how I can access these fields again in the backend Here s the content of my ext tables.php : .. . Answer : Instead class t3lib extMgm try use ExtensionManagementUtility : .. . .. . ExtensionManagementUtility Class Reference https : typo3.org api typo3cms class t y p o3 1 1 c m s 1 1 core 1 1 utility 1 1 extension management utility.html Comment : Hi Robert I changed it but the result is the same : the additional fields aren t shown in the Backend : Comment : I also tried just ExtensionManagementUtility : : add.. . but than I receive an error in one point a good thing because so I know the extension is loaded . Comment : Hello please try reinstall your extension which extends tt address and clean system and general cache in Typo3 backend . Comment : If that fails you can send me your extension zip Comment : Still not working . How can i send you the extension", "Question : I want to migrate an extension from Typo3 6.2 to Typo3 7.5 In Typo3 6.2 it works fine but in the Typo3 7.5 I get the following error : .. . .. . Fatal error : Class t3lib pageSelect not found in .. . .. . .. . It think that its not anymore supported but when I m right what I must use now .. . Answer : I found a solution . In Typo3 7.x there is no support for the old classes anymore . Instead of t3lib pageSelect I must use the new class with namespace : TYPO3 CMS Frontend Page PageRepository . So for my case I want to read the Typo3 cache and know I must use .. . .. . An in the case of save the cache I must use .. . .. . Thats the new one for the old class t3lib pageSelect . Comment : The old classes can be used with extension compatibility6 typo3.org extensions repository view compatibility6 http : typo3.org extensions repository view compatibility6 But this is not recommended .", "Question : I ve got some problems upgrading my extension from typo3 6.2 to 7.6.X .. . .. . got this code .. . .. . and got this error : enter image description here http : i.stack.imgur.com eszmd.jpg Comment : did you upgrade the version in your ext emconf.php in typo3 6.2-7.6.99 .. . Answer : You have to spell the namespace correctly . In this case TYPO3 has to be in upper case : .. . .. . The class should be loaded . No further actions required but flushing the system cache . Btw : TYPO3 is always the correct spelling : Comment : Thanks for that . Have found this just some miniutes ago too .. . damn in 6.2.9 Typo3 is absolute proper . Thanks Comment : No further actions required might be a bit misleading . I just again made the experience that the Controller would not inject a class where I switched from nothing to @inject - until I cleared the system cache . Deleting typo3temp Cache wasn t enough . Comment : You are correct if you add an injection to a controller you have to rebuild the system cache I ll update the answer :", "Question : I tried to find the answer on the web but there seems to be no information at what point old piBase extensions are going to stop working in TYPO3 . The transition of the old TYPO3 in direction of FLOW is visible but I have to give a client an assessment of how long he will be able to use a piBase extension he had custom programmed . With the current 6.2 LTS Version he should at least be save for the next two years but does anybody know more about the plans regarding piBase Thnx .. . .. . Florian .. . .. . P.S . : My apologies if there is an article somewhere explaining this that I didn t find . .. . Answer : Concluding this discussion http : typo3.3.n7.nabble.com TYPO3-6-2-which-Extensions-will-still-work-td244691.html you don t need to afraid that will be dropped soon anyway.. . .. . .. . Keep in mind that next versions of TYPO3 rises PHP requirements introduces depreciated and or removed functions etc . Therefore if author of some extension won t fix it to fit new requirements it can stop working even tomorrow . That happened many times before and will happen in the future - for sure . Lot of extensions written let s say ten years ago doesn t work even in 4.x branch . It s rather obvious that if you client want to continue with newest stable versions of TYPO3 you need to prepare to massive debugging of old fashioned extensions and also rewrite some part of them . Finally if some TYPO3 instance works well on 4.x you don t need to rise it only because there s new polished 6.x in such case I d recommend to leave it as is and develope new functionality with newer versions avoiding next piBase exts . Comment : Thanks a lot for the link-to the discussion that helps a lot . Thing is at some point he will have to upgrade from 4.5 to 6.X most likely 6.2 and the decision is rewriting everything in Extbase Fluid or only update everything to get it running again . If piBase would have been dropped anytime soon there kind of is no choice then rewriting his stuff . But again thnx for your help . Comment : I d suggest rewriting custem extensions now otherwise it may be required on some next T3 upgrades in deep future Sometimes during such a large upgrade it s just better to start new portal on newest stable src and then just migrate data to new solution.. . but it s depending on many factors . Comment : I would suggest that too but as always money is the issue here : .", "Question : What are the steps to downgrade a typo3 site and is this even possible I cannot get a few plugins to work on my 7.4 typo site so I decided to downgrade but I cannot find anything about it on typo forums or in the documentation . Are there any steps I can follow if this is possible . .. . Answer : Before upgrading your website you should always backup your data and avoid downgrading at any time . Compatibility mode for TYPO3 6.x .. . .. . The system extension compatibility6 is shipped with TYPO3 7 have you tried installing this extension already See also : Retaining compatibility to TYPO3 CMS 6 https : typo3.org news article retaining-compatibility-to-typo3-cms-6 .. . .. . Downgrading from 7.x back to 6.2 .. . .. . There is no such thing as a documentation with downgrade instructions . But if you have no other option than you can try the following : .. . .. . Before running TYPO3 again : .. . .. . 1 . Backup your data .. . 2 . Remove the TYPO3 7 core as well the composer.json and vendor directory .htaccess and index.php file from your website . 3 . Remove the content of typo3temp fileadmin processed and fileadmin temp . 4 . uninstall all TYPO3 7 related system extensions by setting the state to inactive in the typo3conf PackagesStates.php file . 5 . Uninstall or downgrade all extensions which are only compatible with TYPO3 7.x . 6 . Set manual the SYS compat version in typo3conf LocalConfiguration.php to 6.0 we let TYPO3 think that we are uograding from 6.0 . Please note that TYPO3 7 doesn t have this option anymore and you need to create it yourself . 7 . Remove all array items from the array INSTALL wizardDone in typo3conf PackagesStates.php . 8 . Set manual options such as FE activateContentAdapter back if needed . 9 . Put the TYPO3 6.2 core back in it s place . Now you re allowed to run TYPO3 again : .. . .. . 10 . Log in on the install tool by accessing typo3 install . 11 . Run the database compare but please don t remove fields or tables that belongs-to extensions which you have temporary disabled for downgrading purposes . 12 . Clear all caches from the install tool . 13 . Run al steps from the upgrade wizard . 14 . Reactivate disabled extensions manually . 15 . Check if the SYS compat version is set to 6.2 . 16 . Test your TYPO3 instance as good as you can . Comment : Yes I have an backup but I did not want to go through the process of adding files of the backup again . I have to update typo3 4.0 to 6.2 wich will probably not be without any issues . I will try to install the extension my main problem is templavoila not working . thank you for the quick response I will keep updating my question progress . Comment : After installing the compatibilty plugin I came across this issue Calculated absolute path to typo3 sysext directory does not exist . would you know what this means Comment : I can t support you from here with resolving different issues you ll face when enabling the compatibility6 extension . Your question is about downgrading from 7.4 to 6.2 and this is my best answer I can give . Comment : I suppose that is true I shall ask this in another question . Thank you for your help", "Question : On a new project I have to upgrade a old typo3 installation from 4.2 to 6.2 or even 7.6 . The big problem is that everything is done with templavoila and all extensions are pibased . I learned with typo3 6.x all pibased extensions will die . But with my research now I found out that pibased extensions can still run in newer typo3 versions . My question now is is it smart to stay with pibased extensions and templavoila The alternative is to create the page new with extbase and fluid-templates new from scratch . Or is there a better way The last thing is I will have to maintain this page and I have not much knowledge in templavoila . I also understand extbase extensions much better than pibased ones . But the time difference between keeping everything with pibase and templavoila and creating the whole page from scratch is months . So I am not sure which way I shall suggest . What are your experiences .. . Answer : On TYPO3 ver . 6.x some pibased extension may work - after fixing some things . I don t remember status of TemplaVoila but it s rather not optimistic on 6.1+ .. . .. . On ver . 7.x they won t work anymore most of 4.x API methods was removed and replaced with new ones 6.x were the last versions where they was marked as depreciated but still available .. . .. . So staying with pibase and TemplaVoila is dead-end-street you have no choice - if you want to upgrade TYPO3 version you need to create it from the scratch . Good news is that creating extensions with Extbase Fluid etc is much more effective than pibase bad news is that you will need to move the content manually . If you have big instance create new site first then consider writing the data converter.. . If it s rather small one just spend several hours to copy-paste the content to the new one . Comment : There is a version of TemplaVoila available for 6.2 I m successfully using it in one site . Don t know where I got it from though might be some GitHub Repo . Comment : Just to mention : there is an EXT : compatibility6 https : typo3.org extensions repository view compatibility6 which makes old pibase code work in TYPO3 7 . But I wouldn t recommend using it on a long term bcs you simply get no speed boost benefits of T3 7 with this extension enabled . Comment : You will still find all the missing API calls in the extension div2007 https : typo3.org extensions repository view div2007 which uses the same Migrations as in TYPO3 6.2 . So most TYPO3 extension will work without any adaptions . Or the only modification which must be done is : remove the include once statements and create the file ext autoload.php . You recommendation to use Extbase Fluid is misleading . Comment : @FranzHolzinger Great to know anyway I can t find any logical reason to use new TYPO3 versions with old extension or vice versa I have several instances under maintenance-mode created many years ago which uses old APIs and they just works no need to update the core . There s no reason to update the TYPO3 if whole stuff is done with 3.x or 4.x approach and works . For instances that should be done with quite new feel look I just suggest to create them from the scratch", "Question : I have installed Typo3 on my computer running on W7 with wamp and I have some problem to connect to the backend . The installation process is working fine but when I try to connect after typing my username and password the system displays Verifying login data.. . forever . I am sure that I have typed the correct information . I used PHP 5.3.28 UI have tried with PHP 5.4.31 with the same result apache 2.2.17 and MySQL 5.5.8 . Could you please help me Thanks .. . .. . Manu Comment : provide your wamp log otherwise the community can t help you much . .. . Answer : Try to check the http-calls in the browser F12 - Network-Tab maybe there is a response with a helpful message Also check your server-logs and post more specific errors . Check if you have all php-dependencies modules installed and set .. . .. . in the php.ini for your TYPO3-instance . Requirements for TYPO3.CMS 6.2 http : typo3.org typo3-cms overview requirements", "Question : I m completely new to Typo3 and have inherited a live Typo3 6.1 website . I have spent a good while researching for 6.1 6.2 upgrade guides but have found nothing so far . From what I have inderstood earlier versions just required the overwriting of t3lib typo3 and index.php and then possibly some DB adjustments using the BE Upgrade Wizard . However there is no 6.2 blank package any more . Just the source file.. . .. . .. . Can anybody give or recommend a simple step by step upgrade guide from 6.1 to 6.2 Just to note I will have to do everything manually FTP - no symlinks and no SSH . Thanks R .. . Answer : Download TYPO3 6.2 . source and replace the typo3 folder and index.php file next go to Install Tool and process upgrade wizard steps . That s all . t3lib folder can be deleted after all it s not used anymore in TYPO3 6.2 all sources are now in typo3 .. . .. . IMPORTANT : make a full copy of site files+DB before any changes . Honestly doing it via FTP is nervous operation - especially when using with unstable net connection it would be best to do changes via SSH or at least with some tool allowing for remote unpacking and renaming files so you can make a copy just on the server . Most probably Install tool will claim about not using symlinks but that s rather cosmetic requirement and your installation will work well without them .", "Question : I am using typo3 6.2 is there any backend extension available to import csv OR xls data into tt address in typo3 .. . Answer : We are working on a 6.2 compatibility upgrade of EXT : rs userimp . You can find the current working state over at Github https : github.com visol ext-rs userimp . Comment : Thanks Lorenz . When we will get the updated version Comment : I don t know . I m not the official maintainer of the extension . I created to fork for my own use so everyone can use it but I don t know if I will be able to release it .", "Question : I wanna setup a TYPO3 6.2 Installation on MAMP PRO but when I start I get the error : .. . .. . typo3 src should be a link but it does not exist Links cannot be fixed by this system .. . .. . So what to do now Structure is : Application MAMP htdocs typo3 .. . .. . Any suggestions .. . Answer : You have to create symlinks manually checklist : .. . .. . 1 . Open the terminal .. . .. . 2 . Move downloaded typo3 src-6.2.4.zip to host s root .. . .. . mv Downloads typo3 src-6.2.4.zip Application MAMP htdocs typo3 .. . .. . .. . 3 . Go to destination folder : .. . .. . cd Application MAMP htdocs typo3 .. . .. . .. . 4 . Still in this location unzip downloaded package you can remove zip file after that .. . .. . unzip typo3 src-6.2.4.zip .. . .. . .. . 5 . Still in this location create a symlink to that extracted directory with name typo3 src : .. . .. . ln -s typo3 src-6.2.4 typo3 src .. . .. . .. . 6 . Still in this location create a symlink to index.php pointing file in created symlink : .. . .. . ln -s typo3 src index.php index.php .. . .. . .. . 7 . Still in this location create a symlink to typo3 folder pointing folder in created symlink : .. . .. . ln -s typo3 src typo3 typo3 .. . .. . .. . 8 . Still in this location copy file .htaccess from source folder to host s root : .. . .. . cp typo3 src .htaccess . .. . .. . .. . 9 . Still in this location copy file composer.json from source folder to host s root : .. . .. . cp typo3 src composer.json . .. . .. . .. . 10 . Still in this location create file FIRST INSTALL .. . .. . touch FIRST INSTALL .. . .. . .. . 11 . That s it Open the host in the browser and start the configuration .. . .. . After all the steps your file structure should look like command ls -la : .. . .. . NOTE : try to avoid using name typo3 as a folder name for host s root it s better to use name according to project i.e . : Application MAMP htdocs my-project-1 Comment : System looks good thx a lot . Just a little addition it had to be Applications instead of Application . Comment : Bonus question : What is the whole point of this : D Comment : The idea with symlinks is that you can replace whole sources to newer version just by replacing one symlink - i.e . : typo3 src - typo3 src-6.9.9 Comment : And you can have multiple TYPO3s using the same source Comment : Step 8.1 mv .htaccess .htaccess", "Question : I m writing an extension-function in TYPO3 CMS 6.2 Extbase that must process every object in a large repository . My function works fine if I have about 10 000 objects but runs out-of-memory if I have over about 20 000 objects . How can I handle the larger repository The program exceeds memory near . . GeneralUtility.php : 4427 in TYPO3 CMS Core Utility GeneralUtility : : instantiateClass after passing through the findByUid line above . It took 117 seconds to reach this error during my latest test . The error message is : .. . .. . Fatal error : Allowed memory size of 134217728 bytes exhausted tried to allocate 4194304 bytes in .. . typo3 sysext core Classes Utility GeneralUtility.php on line 4448 .. . .. . If it matters I do not use @lazy because of some of the processing I do later in the function . .. . Answer : According to official TYPO3 website it is recommended 256M memory limit instead of 128M : Source https : typo3.org typo3-cms overview requirements .. . .. . So my first suggestion would be trying to do that first and it might solve your problem now . Also you should use importRecordRepository- findAll instead of fetching each record by iterating uid since someone might have deleted some records . Comment : Increasing php.ini memory limit from 128M to 256M solves the problem in my development-environment .", "Question : I just did a fresh Typo3 6.2.5 Install and wanted to use some kind of file editor which is able to edit .htaccess in Typo3 root . The standard BE file list doesn t list any file above fileadmin . In the past T3Quixplorer was the way to go for me but it doesn t seem to be developed any further . I found the kmcs fileedit extension but that doesn t allow me to edit .htaccess . Any suggestions Comment : You should really really really consider to set up a local development system and an automated deployment process . Then you can edit the .htaccess in whatever IDE or editor you like . This also improves security for example you generally don t want the webserver or PHP-user to be able to modify its configuration .htaccess . But when using something like T3Quixplorer at least the PHP user must have writing-rights for the .htaccess . Comment : Gimme your email and i will send you a working version of quixplorer with TYPO3 6.2 .. . Answer : 1 . There is an early extbase-version available on Github : .. . .. . Quixplorer : Extbase-Version https : github.com madsbrunn t3quixplorer tree extbaseVersion . This version is working on Typo3 6.2 but it might not include every feature . .. . .. . 2 . You can also try to get the original version http : typo3.org extensions repository view t3quixplorer running on Typo3 6.2 by modifying the t3quixplorer mod1 index.php file of the extension . Comment out lines 55 and 57 of the file : .. . .. . .. . require BACK PATH . template.php LANG- includeLLFile EXT : t3quixplorer mod1 locallang.xml require-once PATH t3lib . class.t3lib scbase.php .. . .. . .. . Then the extension should be working again on typo3 6.2", "Question : On a new project I have to upgrade a old typo3 installation from 4.2 to 6.2 or even 7.6 . The big problem is that everything is done with templavoila and all extensions are pibased . I learned with typo3 6.x all pibased extensions will die . But with my research now I found out that pibased extensions can still run in newer typo3 versions . My question now is is it smart to stay with pibased extensions and templavoila The alternative is to create the page new with extbase and fluid-templates new from scratch . Or is there a better way The last thing is I will have to maintain this page and I have not much knowledge in templavoila . I also understand extbase extensions much better than pibased ones . But the time difference between keeping everything with pibase and templavoila and creating the whole page from scratch is months . So I am not sure which way I shall suggest . What are your experiences .. . Answer : The TYPO3 road map at https : typo3.org typo3-cms roadmap and the TYPO3 download pages have 6.2 LTS support ending March 2017 and 7 LTS support going to November 2018 . So this gives you about a year from now to keep using extensions dependent on 6.2 and develop new code at the same time . It would be good to check extension developer plans too . I depend on at least one extension where the developer says he ll get around to a version 7 but not right now . In my opinion Extbase is the way to go . Play with Extension Builder to get you well on the way .", "Question : I ve made an extension update at my TYPO3 6.2.19-Website but the update failed so I step back to the previous version of the extension fluidcontent . Now my Homepage is a blank white Page but all other subpages are still there . At the backend I ve get this error after login : .. . .. . TYPO3 6.2.19 PHP 5.6.20 Configuration presets Development .. . .. . .. . How can I recover my Website What tells me the error message at backend error typo3 backend hookPbject http : i.stack.imgur.com PQL9e.png .. . .. . error typo3 backend panel http : i.stack.imgur.com 290bJ.png Comment : I also tried to downgrade the typo3-core version but I ve got still the same error typo3 src-6.2.17 typo3 sysext backend Classes View PageLayoutView.php in line 1471 . Comment : have you installed the bootstrap extension Comment : no I use fluidcontent with flux . I think the problem must be with fluidcontent because that s the ext . I ve tried to update . No bootstrap ext . or sth . else Comment : could you post me the ext localconf.php of fluidcontent Comment : I insert the ext localconf.php at my post . . .. . Answer : the problem has sth . to do with fluidcontent because every page uid with fluid content elements was false . So I ve got the latest fluidcontent who supported TYPO3 6.2 - it s 4.3.3 . Nothing happend at all .. . I ve got still the error message s . initial post .. . .. . After a long time . . I also change the flux to 7.3.2 and that was it . I ve made a mistake to update the ext . fluidcontent an flux but the latest versions do not support TYPO3 6.2 .", "Question : Is it possible when using FAL to set the upload destination folder directly in the TCA column My configuration looks like this at the moment : .. . .. . I have such columns in different TCAs and want their images to be saved in different folders . So a standard folder setting doesn t work here . .. . Answer : I know this one is old but here is a answer . There are no supported way for TYPO3 6.2 but in the new TYPO3 7.6 LTS it should be possible to register a hook in your ext localconf.php file add this : .. . .. . Create the file Classes Hooks BackendUserAuthentication.php and write something like this : .. . .. . The params array will contain this : .. . .. . Now use the table and field name to change the upload folder - good look :", "Question : I m fairly new to TYPO3 and after an update from 6.2 to 7.6 all the CSS styled Content classes have changed to csc-default . I ve included css styled content to my template and that gave the site it s overall stylesheet but it just seems that none of the content itself are given their individual classes e.g . csc-frame-nav in the HTML typo3 outputs . Any pointers or help of what to do would be greatly appreciated . Comment : Are you saying that the HTML class attributes have changed Or that the style element is missing from the page Or something else Comment : All the styles in the stylesheet are there it s just that typo3 isn t applying the classes to the elements : Comment : Are you saying that the class attributes are missing from the HTML Comment : Yes sorry about that .. . Answer : First thing to trym is include an older version of the static template from CSS styled content in your TS template include static . Also make sure you do not accidentally render your frontend with Fluid styled template which is new in TYPO3 7 LTS .", "Question : I m writing an extension-function in TYPO3 CMS 6.2 Extbase that must process every object in a large repository . My function works fine if I have about 10 000 objects but runs out-of-memory if I have over about 20 000 objects . How can I handle the larger repository The program exceeds memory near . . GeneralUtility.php : 4427 in TYPO3 CMS Core Utility GeneralUtility : : instantiateClass after passing through the findByUid line above . It took 117 seconds to reach this error during my latest test . The error message is : .. . .. . Fatal error : Allowed memory size of 134217728 bytes exhausted tried to allocate 4194304 bytes in .. . typo3 sysext core Classes Utility GeneralUtility.php on line 4448 .. . .. . If it matters I do not use @lazy because of some of the processing I do later in the function . .. . Answer : In general Extbase is not really suitable for processing such a large amount of data . An alternative would be to use the DataHandler if a correct history etc . is required . It also has quite some overhead compared to using the TYPO3 Database API DatabaseConnection GLOBALS TYPO3 DB which would be the best-performance approach . See my comments and tutorial in this answer http : stackoverflow.com a 23077743 1517316 . If you decide to stay with the Extbase API the only way that could work would be to persist every X item try what works in your setup to free some memory . From your code I cannot really see at which point your manipulation works but take this as an example : Comment : I edited my question to show the point where I manipulate other models from data in importRecord . Comment : I decided for this case to stay with the Extbase API and use your iterated persistence technique . This solved the problem but only when I also edited php.ini to increase memory limit from 128M to 256M and to increase max execution-time from 240 to 960 .", "Question : My typo3 6.2 Upgraded from Typo3 4.5 fluid paginate displays all the items instead of 5 items . My Repository Method : .. . .. . My controller code : .. . .. . My template : .. . .. . In TYPO3 CMS Fluid ViewHelpers Widget Controller PaginateController.php indexaction I m getting following results . Code : .. . .. . Values I got from here are : .. . .. . itemsPerPage : 5 .. . .. . modifiedObjects count 26 .. . .. . But I need modifiedObjects count as 5 . I think Following are not working for my query object .. . .. . I think this issue is something related to my query object using in the paginate . How to create query object for typo3 6.2 fluid paginate Please help me . Comment : You cannot use a statement with paginate because paginate will alter the orginal statement before being executed . It can only do this if it is a query create via query-builder . Comment : Thank you Pgampe . Your hint helps me a lot . I rebuilt my query using query-builder and ti s working now . Comment : Hi all To fix the above issue i rebuilt the query in extbase query format . IN typo3-6.2.x paginate will not work with query statement so we need to convert it into extbase query format . Comment : Please add your rebuilt query as answer instead of using a comment . .. . Answer : To fix the above issue i rebuilt the query in extbase query format . In typo3-6.2.x paginate will not work with query statement so we need to convert it into extbase query format . My rebuilt query format is" ] }
[ "yes-answer-long", "yes-answer-short" ]
php
UNK_RELATION
idn@domain-name@50
idn -- internationalized domain-name an internet @placeholder containing non-ascii characters .
{ "confidence": [ 57.17882537841797, 53.30153274536133, 46.272117614746094, 44.80659866333008, 41.05860900878906, 40.22840881347656, 38.50706481933594, 38.343345642089844, 36.53845977783203, 36.31205368041992, 35.9716796875, 35.563140869140625, 35.320030212402344, 34.6107063293457, 33.05537033081055, 32.84406280517578, 32.69792175292969, 32.537086486816406, 32.24609375, 31.732547760009766, 31.16054916381836, 30.94873046875, 30.94261360168457, 30.873384475708008, 30.277341842651367, 30.242647171020508, 30.242647171020508, 30.19432830810547, 29.608816146850586, 29.48832130432129, 29.417539596557617, 29.065378189086914, 29.015926361083984, 28.676040649414062, 28.665163040161133, 28.54825782775879, 28.384613037109375, 28.174541473388672, 27.69310188293457, 27.64740562438965, 27.574254989624023, 26.666271209716797, 26.608535766601562, 26.30976104736328, 26.1563777923584, 26.141368865966797, 25.966354370117188, 25.949512481689453, 25.562564849853516, 25.290645599365234, 25.175552368164062, 25.127321243286133, 25.100454330444336, 24.94467544555664, 24.814180374145508, 24.646060943603516, 24.492677688598633, 24.392854690551758, 24.36383056640625, 24.299644470214844, 24.186939239501953, 24.15766716003418, 24.090295791625977, 24.05023956298828, 24.02361297607422, 23.916526794433594, 23.834392547607422, 23.719684600830078, 23.64421272277832, 23.633872985839844, 23.606002807617188, 23.542354583740234, 23.503782272338867, 23.43675422668457, 23.43675422668457, 23.43675422668457, 23.399044036865234, 23.18198013305664, 23.077510833740234, 23.077510833740234, 23.077510833740234, 22.918819427490234, 22.864116668701172, 22.7490234375, 22.628381729125977, 22.628381729125977, 22.628381729125977, 22.628381729125977, 22.457599639892578, 22.451892852783203, 22.333045959472656, 22.247804641723633, 22.223299026489258, 22.132919311523438, 22.073348999023438, 22.006446838378906 ], "content": [ "A special marker xn-- is added to the beginning of each label containing non-ASCII characters to show that the label was not originally ASCII .", "These hazardous phishing activities may result from domains containing non-ASCII characters .", "I try to convert an internationalized Domain Name IDN into its punycode equivalent using the idn function from OS Ubuntu .", "I have bought an IDN domain-name with non-latin characters .", "What is the best way to convert an internationalized domain-name http : en.wikipedia.org wiki Internationalized 5Fdomain 5Fname to its ASCII-form", "Domain names can contain non-ASCII characters .", "Domain names cannot contain non-ASCII characters so the actual domain-name is always the Punycode encoded xn--.. . form .", "Here are the definitions of the ICANN : .. . .. . A-label .. . .. . The ASCII-compatible encoded ACE representation of an internationalized domain-name i.e .", "Here is what it says about IDN section 6.4.2 http : tools.ietf.org html rfc6125 section-6.4.2 : .. . .. . .. . If the DNS domain-name portion of a reference identifier is an .. . internationalized domain-name then an implementation MUST convert .. . any U-labels IDNA-DEFS in the domain-name to A-labels before .. . checking the domain-name .", "if your domain contains 62 characters and one of them was a non-ASCII character then the resulting domain would exceed the limit and fail .", ".. . .. . U-label .. . .. . The Unicode representation of an internationalized domain-name i.e .", "I found RFC3986 http : tools.ietf.org html rfc3986 but that doesn t allow non-ASCII characters http : tools.ietf.org html rfc3986 section-2 like you might find in internationalized domain names IDNA .", "When it is not set any kind of WebRequest can not resolve internationalized domain names although CookieContainer stores IDN cookies as it should .", "Isn t IDN Punycode should be ASCII representation of Unicode characters", "Is there is anyway I can rewrite the domain-name to the original IDN not the punycode", "If using non-ASCII domain names you should read : .. . .. . Internationalized domain-name https : en.wikipedia.org wiki Internationalized domain-name on Wikipedia .. . Domain Name System DNS Case Insensitivity Clarification http : tools.ietf.org html rfc4343 Official spec IETF RFC 4343", "right now I m working with the idn to ascii function to convert some IDN domain names into ascii ones .", "It s not a PATH problem because if I try the script with a non-IDN domain it works on both php and php-cli", "Process query part using Uri.EscapeUriString .. . .. . Partially related question how-to-convert-idn-to-ascii http : stackoverflow.com questions 852274 how-to-convert-idn-to-ascii", "The domain-name and the entry in the DNS are two different things with IDN .", "OK I think I found out myself and this snippet I found by searching the internet helped : .. . .. . There were essentially two different options open for introducing internationalized domain names IDN .", "See RFC3490 about internationalized domain names .", "I need a SSL cert for an IDN domain and am wondering if I should enter the UTF-8 name or the punycode name in CN etc in the cert request .", "Do you know may I call this same method on non IDN domain names as well", "For example all of these represent the same domain : .. . .. . example.com .. . Example.com .. . EXAMPLE.COM .. . EXampLE.com .. . .. . In modern DNS https : en.wikipedia.org wiki Domain Name System we now have Internationalized Domain Names https : en.wikipedia.org wiki Internationalized domain-name IDN which allows Unicode characters .", "Everything I know about it can be found at Internationalized domain-name https : en.wikipedia.org wiki Internationalized domain-name .", "Is there a library to help parse the user input and detect if the user types an internationalized domain-name as part of a string", "You can try converting domains here : IDN Conversion Tool http : mct.verisign-grs.com .. . .. . EDIT .. . The idn conversion tool is for converting the domain namne only .", "Using jQuery 1.5 or 1.5.1 any ajax calls to encoded Internationalized domain names http : en.wikipedia.org wiki Internationalized domain-name IDN like xn--bcher-kva.ch seems to fail in Internet Explorer 8 .", "Any has configured an IDN domain in Wordpress for Android 2.2.7 app", "Another possibility of your function failing is if the resulting ASCII-converted domain exceeds 63-characters .", "The version that is readable to a user of whichever language the idn is in is the unicode u label .. . .. . ASCII - American Standard Code for Information Interchange", "an IDN is a representation of the domain-name only you appear to including the protocol http : in the string you are converting .", "The domain-name m ller.de has 9 characters but the corresponding ACE ASCII Compatible Encoding string xn--mller-kva.de however has 16 characters .", "If I am issued a SSL certificate for an IDN domain should I expect the value in the CN field to be the literal UTF-8 string for the domain-name or the escaped punycode version", "From this article https : www.w3.org International articles idn-and-iri : .. . .. . Resolving a domain-name .. . .. . If the string that represents the domain-name is not in Unicode the user-agent converts the string to Unicode .", "It is definitely IDN problem because regular domain cookies are stored well .", "This is due to the restrictions imposed on the allowable characters in a traditional domain-name .", "The introduction of IDN means that for the very first time the entry in the DNS is no longer identical with the domain-name .", "I m not sure if modern user agents treat a href as an IDN-unaware domain-name slot http : www.ietf.org rfc rfc3490.txt .", "Does Excel VBA provide any sort of method function or API for Punycode or converting to and from Unicode Ascii for Internationalized Domain Names", "The question is about IDN not IRI .", "Since regular domains cannot contain non-ascii characters if your conversor is correctly implemented it will never transform any pure-ascii string .", "No I have not enabled the php5-idn module .", "But the domain-name would be . not .ru .", "I m writing a Rails app that needs to convert an IDN domain-name from Punycode into its Unicode equivalent .", "Can I somehow set the .htaccess file to UTF-8 and just use the non-ASCII characters e.g .", "Each label MUST match in .. . order for the domain names to be considered to match except as .. . supplemented by the rule about checking of wildcard labels .. . Section 6.4.3 but see also Section 7.2 regarding wildcards in .. . internationalized domain names .", "Are you sure the IDN is the problem", "See w3.org International articles idn-and-iri http : www.w3.org International articles idn-and-iri", "It s up to the browser to prettify this but many choose to not do so to avoid domain-name spoofing using lookalike Unicode characters .", "Is it correct to send the ASCII representation ACE label of the domain like this", "For my customer I need name of domain in Cyrillic .", "Known fact : .. . .. . Now I know the maximum number of characters in a domain-name including any subdomains is 255 characters .", "See RFC 3987 Internationalized Resource Identifiers IRIs .", "URLs are still case insensitive even for IDN .", "A domain-name is just part of the IRI .", "My old code was : .. . .. . It works but this code doesn t validate IDNs internationalized domain names such as .com or . and doesn t check www http : terms .", "I tried the following without success : .. . redirect 301 http : www.b C3 BCcher.ch .. . .. . For context the following page on internationalized domain names IDN https : www.nic.ch reg cm wcm-page faqs idn.jsp lid en has a section about the technical solution to include accents and umlauts in domains .", ".. . The user-agent then converts the non-ASCII bytes to percent-escapes .", "There must be idn enabled All section set in config file for normal IDN handling .", "For old-fashioned ASCII https : en.wikipedia.org wiki ASCII -based domain names https : en.wikipedia.org wiki Domain name Yes domain names have been and continue to be case-insensitive .", "This involved compiling an algorithm to specify how a unicode string should be converted into a permitted ASCII domain-name .", "Internationalized Resource Identifiers IRIs .. . .. . http : tools.ietf.org html rfc3987 .. . .. . This document defines a new protocol element the Internationalized Resource Identifier IRI as a complement to the Uniform Resource Identifier URI .", "In the domain part you must use ASCII Compatible Encoding ACE .", "Here s the regex I could find here : Properly Matching a IDN URL http : stackoverflow.com questions 1974941 properly-matching-a-idn-url", "I have created a new wordpress site on Azure Web Sites this time using IDN Domain .", "I can t think of a second-level IDN name that can be relied on to exist unfortunately .", "If you look at how the procedure for converting unicode strings to ascii punycode the process only alters any non-ascii character .", "What about things like zero-width characters that are not allowed in IDN but exist in UTF 8", "Assuming you re talking about HTTPS the rules traditionally used for host name verification are defined in RFC 2818 Section 3.1 http : tools.ietf.org html rfc2818 section-3.1 which doesn t mention Internationalized Domain Names at all .", "And the filter extension fails to validate IDN URLs .", "The intent of domain names is to be case-insensitive but there may be complications with particular characters .", "Only the domain-name part is encoded with punycode .", "But the actual domain-name in the DNS system cannot .", "Hence the name IDNA : International Domain Names in Applications .", "Regarding the domain-name itself I couldn t find any reliable source but I think the regular expression for non-IDNs I m not sure how to write a IDN compatible version is something like : .. . .. . Can someone help me out with this regular expression or point me to a good direction", "The list of current top-level domains at http : data.iana.org TLD tlds-alpha-by-domain.txt contains at the time of writing 123 live IDN domain names .", "Well except it doesn t do IDN domains so no luck .", "Thank you for your response I didn t think that it was needed to convert to IDN .", "Have a look at the GNU IDN Library - Libidn http : www.gnu.org software libidn .", "Notice all the non Latin domain extensions at the bottom of the list .", "Is it possible to keep the IDN by passing something special og : url to facebook to tell that the IDN HAS TO BE USED instead of the ACE String", "The first was to make adjustments to the domain-name system DNS which would allow unicode characters to be used directly .", "You probably enabled the php5-idn module http : php.net manual en ref.intl.idn.php in order to use this function", "Since you re using exec it finds the idn command via your PATH setting .", "The idn function I used is from the system command-line in Ubuntu this is why I used the php exec function .", "I have tried calling full path usr bin idn but it didn t worked .", "However the RFC tools.ietf.org html rfc3986 https : tools.ietf.org html rfc3986 for URLs defines the characters to be in ASCII not 8859-1 Latin1 .", "It worked fine to add the punyencoded IDN name to the custom domain list but my server does not repsond to requests and instead I get a default Azure Error 404 - Web Site not found", "I have a website with cyrillic domain-name .", "I used this : github.com wordpress-mobile NSURL-IDN https : github.com wordpress-mobile NSURL-IDN And converted the string before creating the NSURL and it works like a charm .", "In theory this subdivision can go down to 127 levels deep and each DNS label can contain up to 63 characters as long as the whole domain-name does not exceed a total length of 255 characters .", "The end result is not very user friendly but accurately represents the original string of characters while using only the characters that were previously allowed for domain names .", "I was reading about IDN homograph atack and didn t find exactly stated does browsers encode in punycode only domain or rest of the URL is included path and query .", "@Stilleur The aspect of International Domain Name IDN s validation is not discussed anywhere on that page ." ] }
{ "confidence": [ 64.70986938476562, 56.730804443359375, 56.48521423339844, 56.27096176147461, 55.38351821899414, 53.17986297607422, 52.127742767333984, 51.13322448730469, 49.249114990234375, 49.02652359008789, 48.69593048095703, 48.049564361572266, 47.42031478881836, 45.937992095947266, 44.75633239746094, 43.719078063964844, 43.4861946105957, 43.45758056640625, 43.22956085205078 ], "content": [ "Question : I ve got a wkwebview that works as a browser . I can t manage to load addresses with special-characters such as http : www.h bo.se http : www.h C3 A5bo.se swedish character . I m using : .. . .. . which is promising as it creates an address that looks like follows : http : www.h c3 a5bo.se .. . .. . If I enter that in Chrome it works . But when I try to load it in the wkwebview i get the following I can load all other pages : .. . .. . Here s the full NSError printed .. . Answer : This one is complicated . From this article https : www.w3.org International articles idn-and-iri : .. . .. . Resolving a domain-name .. . .. . If the string that represents the domain-name is not in Unicode the user-agent converts the string to Unicode . It then performs some normalization functions on the string to eliminate ambiguities that may exist in Unicode encoded text . .. . Normalization involves such things as converting uppercase characters to lowercase reducing alternative representations eg . converting half-width kana to full eliminating prohibited characters eg . spaces etc . .. . Next the user-agent converts each of the labels ie . pieces of text between dots in the Unicode string to a punycode representation . A special marker xn-- is added to the beginning of each label containing non-ASCII characters to show that the label was not originally ASCII . The end result is not very user friendly but accurately represents the original string of characters while using only the characters that were previously allowed for domain names . For example following domain-name : .. . .. . JP . .jp .. . .. . converts to next representation : .. . .. . xn--jp-cd2fp15c.xn--fsq.jp .. . .. . You can use following code https : github.com OnionBrowser iOS-OnionBrowser blob master OnionBrowser NSStringPunycodeAdditions.h to perform this conversion . Resolving a path .. . .. . If the string is input by the user or stored in a non-Unicode encoding it is converted to Unicode normalized using Unicode Normalization Form C and encoded using the UTF-8 encoding . .. . The user-agent then converts the non-ASCII bytes to percent-escapes . For example following path : .. . .. . dir1 .html .. . .. . converts to next representation : .. . .. . dir1 E5 BC 95 E3 81 8D E5 89 B2 E3 82 8A.html .. . .. . For this purpose you may use following code : .. . .. . Note that stringByAddingPercentEscapesUsingEncoding : is deprecated because each URL component or subcomponent has different rules for what characters are valid . Putting it all together .. . .. . Resulting code : .. . .. . Unfortunately actual URL normalization is more complicated - you need to handle all remaining URL components too . But I hope I ve answered your question . Comment : Thank you for your response I didn t think that it was needed to convert to IDN . I used this : github.com wordpress-mobile NSURL-IDN https : github.com wordpress-mobile NSURL-IDN And converted the string before creating the NSURL and it works like a charm .", "Question : If I use a domain such as www . .com is there any way to avoid it being displayed as www.xn--4ca0bs.com in users browsers Domains such as www.xn--4ca0bs.com cause a lot of confusion with average internet users I guess . Comment : Not using IDNs at all would be a solution . .. . Answer : This is entirely up to the browser . In fact IDNs are pretty much a browser-only technology . Domain names cannot contain non-ASCII characters so the actual domain-name is always the Punycode encoded xn--.. . form . It s up to the browser to prettify this but many choose to not do so to avoid domain-name spoofing using lookalike Unicode characters . Comment : Domain names can contain non-ASCII characters . Russia China and Serbia already allow users to register such domains . See w3.org International articles idn-and-iri http : www.w3.org International articles idn-and-iri Comment : But the actual domain-name in the DNS system cannot . That s why they re encoded into the xn--.. . Punycode format . Comment : Hence the name IDNA : International Domain Names in Applications .", "Question : I am working on extra SSL requirement of hostname check . Want to know what A-label and U-label in DN . Thanks .. . Answer : Here are the definitions of the ICANN : .. . .. . A-label .. . .. . The ASCII-compatible encoded ACE representation of an internationalized domain-name i.e . how it is transmitted internally within the DNS protocol . A-labels always commence with the prefix xn-- . Contrast with U-label . .. . .. . U-label .. . .. . The Unicode representation of an internationalized domain-name i.e . how it is shown to the end-user . Contrast with A-label . .. . .. . The links .. . .. . Glossary A http : www.icann.org en resources idn glossary a language 2a 2a 2aCURRENT LANGUAGE 2a 2a 2a .. . Glossary U http : www.icann.org en resources idn glossary u language 2A 2A 2ACURRENT LANGUAGE 2A 2A 2A", "Question : Some people will reply that domain names are not case-sensitive . In the new Unicode world this is no longer true . Source http : english.stackexchange.com questions 41695 should-i-use-capitalization-when-mentioning-a-domain-name 41791 41791 .. . .. . I thought one of the steps in the Unicode Punycode conversion was a normalisation which rendered domain names lower case . Comment : See official spec IETF RFC 4343 : Domain Name System DNS Case Insensitivity Clarification http : tools.ietf.org html rfc4343 .. . Answer : For old-fashioned ASCII https : en.wikipedia.org wiki ASCII -based domain names https : en.wikipedia.org wiki Domain name Yes domain names have been and continue to be case-insensitive . For example all of these represent the same domain : .. . .. . example.com .. . Example.com .. . EXAMPLE.COM .. . EXampLE.com .. . .. . In modern DNS https : en.wikipedia.org wiki Domain Name System we now have Internationalized Domain Names https : en.wikipedia.org wiki Internationalized domain-name IDN which allows Unicode characters . The problem is that defining upper- and lowercase can be tricky in languages and character sets outside of ASCII . The intent of domain names is to be case-insensitive but there may be complications with particular characters . So there is no simple YES or NO answer to your question . If using non-ASCII domain names you should read : .. . .. . Internationalized domain-name https : en.wikipedia.org wiki Internationalized domain-name on Wikipedia .. . Domain Name System DNS Case Insensitivity Clarification http : tools.ietf.org html rfc4343 Official spec IETF RFC 4343", "Question : If I am issued a SSL certificate for an IDN domain should I expect the value in the CN field to be the literal UTF-8 string for the domain-name or the escaped punycode version What about the X509v3 Subject Alternative Name DNS entries would those be in the same format Could I see some example crt files or link-to IDNs that are using SSL Is there a normative spec on this .. . Answer : Assuming you re talking about HTTPS the rules traditionally used for host name verification are defined in RFC 2818 Section 3.1 http : tools.ietf.org html rfc2818 section-3.1 which doesn t mention Internationalized Domain Names at all . More recently a best practice RFC RFC 6125 was written to harmonise the host name verification procedures across protocols and clarify a number of other points . Here is what it says about IDN section 6.4.2 http : tools.ietf.org html rfc6125 section-6.4.2 : .. . .. . .. . If the DNS domain-name portion of a reference identifier is an .. . internationalized domain-name then an implementation MUST convert .. . any U-labels IDNA-DEFS in the domain-name to A-labels before .. . checking the domain-name . In accordance with IDNA-PROTO A-labels .. . MUST be compared as case-insensitive ASCII . Each label MUST match in .. . order for the domain names to be considered to match except as .. . supplemented by the rule about checking of wildcard labels .. . Section 6.4.3 but see also Section 7.2 regarding wildcards in .. . internationalized domain names . .. . .. . Unfortunately this may not help you in practice . Firstly RFC 6125 is relatively recent and few applications or libraries claim to implement it as far as I know . Secondly not all libraries follow RFC 2818 to the letter anyway browsers can sometimes be more tolerant regarding which CNs are acceptable for example . Comment : Any news on this since May 30 2012 I need a SSL cert for an IDN domain and am wondering if I should enter the UTF-8 name or the punycode name in CN etc in the cert request .", "Question : To redirect to a new URL that contains diacritics via .htaccess what is the correct and safe way Can I somehow set the .htaccess file to UTF-8 and just use the non-ASCII characters e.g . : .. . redirect 301 http : www.b cher.ch .. . .. . Need I use the ACE string instead e.g . : .. . redirect 301 http : www.xn--bcher-kva.ch .. . .. . Is urlencode the way to go I tried the following without success : .. . redirect 301 http : www.b C3 BCcher.ch .. . .. . For context the following page on internationalized domain names IDN https : www.nic.ch reg cm wcm-page faqs idn.jsp lid en has a section about the technical solution to include accents and umlauts in domains . .. . Answer : In the domain part you must use ASCII Compatible Encoding ACE . In the rest of the URL you use urlencode . So in .htaccess .. . .. . http : www.b cher.ch sch ne .. . .. . needs to be written as .. . .. . http : www.xn--bcher-kva.ch sch C3 B6ne", "Question : What is the best way to convert an internationalized domain-name http : en.wikipedia.org wiki Internationalized 5Fdomain 5Fname to its ASCII-form I want to convert B cher.ch into xn--bcher-kva.ch by using some sort of free .net code . .. . Answer : Have a look at the GNU IDN Library - Libidn http : www.gnu.org software libidn . The introduction says that C libraries are available . Comment : -1 for suggesting a 3rd party library when .NET itself is capable of this . Comment : +1 to nullify @Venemo s -1 Comment : @Venemo The .NET library does not support all chars . link http : manage.resellerclub.com kb answer 1740 for example : is not supported .", "Question : null .. . Answer : I try to convert an internationalized Domain Name IDN into its punycode equivalent using the idn function from OS Ubuntu . Here is my simple script : .. . .. . This code is not working into my browser out is an empty array and var 1 guess there is an error . But when I run the code with php-cli everything is fine and the result as it should be : .. . .. . Do you have some clue of what is happening Comment : You probably enabled the php5-idn module http : php.net manual en ref.intl.idn.php in order to use this function Keep in mind that the Apache PHP and the command-line PHP both have their own configuration . Did you enable the module in both configuration-files Comment : Since you re using exec it finds the idn command via your PATH setting . If the command isn t in one of the standard system binary directories the webserver won t find it . Try using the full path to the command . Comment : No I have not enabled the php5-idn module . The idn function I used is from the system command-line in Ubuntu this is why I used the php exec function . Comment : I have tried calling full path usr bin idn but it didn t worked . It s not a PATH problem because if I try the script with a non-IDN domain it works on both php and php-cli", "Question : I m developing a web-app on a cyrillic domain . Currently this domain hosts a parked page saying the site is under construction . If I access it in Chrome I see punycode in the address-bar . Safari decodes it though . For the development purposes I have modified my etc hosts-file to be able to access localhost via a test cyrillic domain . However both Chrome and Safari fail to decode the hostname . I have looked up this issue but could not find any sensible solution . There is a module for Node.js called punycode . Now if my req.url contains cyrillic characters it gets URIComponent -encoded hence I ve written a middleware to decode it : .. . .. . It works fine I can use cyrillic routing now . But when I try to apply this logic to hostname it doesn t work : .. . .. . Any help is very much appreciated . Thanks Comment : Do you have an example for a cyrillic host that you are testing .. . Answer : Ok so after a research I figured out that it s pretty much impossible . Host-resolving policies are strictly browser-specific and are there in regard to IDNs to prevent hazardous phishing activities . Safari on the one hand resolves IDNs from punycode to UTF-8 string Chrome on the other hand does not . These hazardous phishing activities may result from domains containing non-ASCII characters . Consider a set of ASCII letters o e a and UTF-8 Russian cyrillic letters . They pretty much look the same and hence indistinguishable for the client . Therefore a hacker may register a domain which looks just like a well-known one paypal.com with ASCII a and p yp l.com with UTF-8 cyrillic . To prevent such malicious activities Chrome encodes non-ASCII characters to punycode p yp l.com with UTF-8 cyrillic will look like xn--pypl-53dc.com in the browser address-bar to warn the client that it s not the original web-site . Sigh seems like IDNs are not the best solution so far .", "Question : In an UTF-8 encoded HTML document is it valid to use an IDN https : en.wikipedia.org wiki Internationalized domain-name as a value for src and href attributes Are there any objections that enforce the use of the Punycode-encoded version I m not sure if modern user agents treat a href as an IDN-unaware domain-name slot http : www.ietf.org rfc rfc3490.txt . .. . Answer : Looking at the HTML specification for a-tag http : www.w3.org TR html-markup a.html is says that href is an URL http : www.w3.org TR html-markup datatypes.html common.data.uri defined in RFC3987 Internationalized Resource Identifiers http : tools.ietf.org html rfc3987 .. . .. . From RFC 3987 : .. . .. . Abstract .. . .. . This document defines a new protocol element the Internationalized Resource Identifier IRI as a complement to the Uniform Resource Identifier URI . An IRI is a sequence of characters from the Universal Character Set Unicode ISO 10646 . A mapping from IRIs to URIs is defined which means that IRIs can be used instead of URIs where appropriate to identify resources . So the simple answer is : yes you can use idn in href at least for HTML 5 documents . You should however look at RFC 3987 section 4 if your text is bidirectional .", "Question : I m trying to find the current spec for URLs . I found RFC3986 http : tools.ietf.org html rfc3986 but that doesn t allow non-ASCII characters http : tools.ietf.org html rfc3986 section-2 like you might find in internationalized domain names IDNA . URLs are one of the key bits of the Internet surely there must be a spec for them If so where is it .. . Answer : Internationalized Resource Identifiers IRIs .. . .. . http : tools.ietf.org html rfc3987 .. . .. . This document defines a new protocol element the Internationalized Resource Identifier IRI as a complement to the Uniform Resource Identifier URI . An IRI is a sequence of characters from the Universal Character Set Unicode ISO 10646 . A mapping from IRIs to URIs is defined which means that IRIs can be used instead of URIs where appropriate to identify resources . .. . .. . Note that Anne van Kesteren http : annevankesteren.nl edits a new URL specification at WHATWG http : url.spec.whatwg.org as a Living Standard which states to have the goal to Align RFC 3986 and RFC 3987 with contemporary implementations and obsolete them in the process . .", "Question : idn to ascii : Could not convert http : www.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaskvaliifidqabddddddddddsddddddddddddd.com to ASCII : Output would be too large or too small .. . .. . Is there any limit to the url size Comment : I just tested and got no errors but I also got no return . .. . Answer : There s a 63-character limit to domain names and your domain exceeds that limit . So basically this domain couldn t even exist . Another possibility of your function failing is if the resulting ASCII-converted domain exceeds 63-characters . E.g . if your domain contains 62 characters and one of them was a non-ASCII character then the resulting domain would exceed the limit and fail . As you can see here the converted domain is often longer than the original domain : www.clich .com would return www.xn--clich-fsa.com . You can try converting domains here : IDN Conversion Tool http : mct.verisign-grs.com .. . .. . EDIT .. . The idn conversion tool is for converting the domain namne only . Which means that you need to pick out the domain-name from the url convert that part and then replace that in your original url . If you need to convert other parts of the url you probably need to use another function for that . Comment : OK I agree that that domain can t exist . It was just an example . What about that link nok.si assets PDF Slovensko-ogrodje-kvaliifikacij EN http : www.nok.si assets PDF Slovensko-ogrodje-kvaliifikacij EN Final-Report-SI-2014-pk.pdf . Why does it fail Comment : Updated my answer", "Question : First things first : .. . .. . I m storing multiple-domains to a database after I ve converted each and every domain-name to it s IDNA version . What I need to know the maximum length such an IDNA-converted domain-name can have so I can define the database field s max length . Known fact : .. . .. . Now I know the maximum number of characters in a domain-name including any subdomains is 255 characters . Where I lost it : .. . .. . That s easy at first glance but.. . does this mean regular ascii characters of international characters think UTF-8 encoding To give you an example : The domain m ller.de has 9 characters when I ignore that is an international character that needs more bytes to be represented . The IDNA version of m ller.de is xn--mller-kva.de which has 16 characters . This shows there s definitely a difference in maximum length depending on if it is IDNA converted or not . Depending on what kind of characters they mean the 255-character maximum could be the international character version the IDNA converted version or even both . And that s where I lost it a bit.. . especially since I have to take into account that not all domains will be sane and stuff like .example . - .test . .com and even worse is to be expected . So guessing and hoping for the best is not an option . I need to know for sure.. . .. . .. . The question is : .. . .. . Based on the known fact that the maximum number of characters in a domain-name including any subdomains is 255 characters.. . what is the maximum length of an IDNA converted domain-name .. . .. . Or did they mean the IDNA converted version punycode is also restricted to 255 characters which would mean that domains with international unicode characters would actually have shorter limits in their unicode representation because their IDNA converted version would have to respect the 255 char limit .. . Answer : OK I think I found out myself and this snippet I found by searching the internet helped : .. . .. . There were essentially two different options open for introducing internationalized domain names IDN . The first was to make adjustments to the domain-name system DNS which would allow unicode characters to be used directly . It was felt that this was too drastic a measure and hence the second option was chosen . This involved compiling an algorithm to specify how a unicode string should be converted into a permitted ASCII domain-name . This ACE string ACE stands for ASCII Compatible Encoding is then entered into the DNS . The introduction of IDN means that for the very first time the entry in the DNS is no longer identical with the domain-name . .. . Source https : www.nic.ch reg cm wcm-page faqs idn.jsp lid en .. . .. . The answer is that the length to respect is the 255 character limit as DNS expects it . My suspicion was correct . The domain-name and the entry in the DNS are two different things with IDN . It s the maximum length of the DNS entry that counts . The domain-name m ller.de has 9 characters but the corresponding ACE ASCII Compatible Encoding string xn--mller-kva.de however has 16 characters . It s the ACE string that is used by DNS and it s the ACE string that falls under the 255 character limit . This means that the maximum limit of it s unicode domain version is defined by the number of unicode characters used and if - after IDNA conversion - the string still fits within the 255 character limit . Geez the specs sure could ve been be a bit clearer on things like this . Especially as international domain names have been around since somewhere near March 1st 2004 . But I found the answer and that s what counts . Perhaps this can help someone who s having the same question . The simple answer related to my database field length is 255 CHARs . .. . .. . The fact that I store the domain names in their IDNA converted punycode ACE string version only confirms this maximum character limit . Comment : Mere seconds apart.. . I think you win though : - Excellent question and glad we came to the same conclusion Comment : Bah who s counting the seconds I ll simply accept your answer instead of my own . It s the least I can do to give you something back for your effort . Guess I m in a social mood today.. . : Comment : Thanks for the question and answer . Any chance you could include a pointer link-to the source of the snippet or any references RFC IETF etc . docs Thanks Comment : @JJC added the source article for the quote which references the relevant RFCs . Comment : DNS name limit is actually 253 characters not 255 - stackoverflow.com a 28918017 18829 http : stackoverflow.com a 28918017 18829", "Question : I was reading about IDN homograph atack and didn t find exactly stated does browsers encode in punycode only domain or rest of the URL is included path and query . So my question is does one of popular browsers FF IE Chrome Safari Opera encode rest of the URL IRI to be exact with punycode .. . Answer : Only the domain-name part is encoded with punycode . This is due to the restrictions imposed on the allowable characters in a traditional domain-name . The path part of the URL has no such restrictions so UTF-8 is often used . Comment : I know or at least presume that you don t have the magic crystal ball : - and I don t expect definitive answer or any but if you please can share your opinion what are the chances that some browser starts to use punycode on path part Comment : I think the chance of that is very low if not zero . IDNA is just for domain names . Everything I know about it can be found at Internationalized domain-name https : en.wikipedia.org wiki Internationalized domain-name . Comment : @Antonio The path part of the URL doesn t just use UTF-8 it often uses a percent-encoded version of the bytes of the UTF-8 encoded version because at the point where the path is passed the server is supposed to assume ISO 8859-1 for the bytes actually presented . The punycoding is only used for the domain-name and in fact it is only used for individual pieces because that s processed at a totally different and much earlier stage of URL retrieval . Comment : @DonalFellows is correct in that URLs do not allow UTF-8 . However the RFC tools.ietf.org html rfc3986 https : tools.ietf.org html rfc3986 for URLs defines the characters to be in ASCII not 8859-1 Latin1 . Either way all unicode data in the path should come through as percent-encoded values .", "Question : Some people will reply that domain names are not case-sensitive . In the new Unicode world this is no longer true . Source http : english.stackexchange.com questions 41695 should-i-use-capitalization-when-mentioning-a-domain-name 41791 41791 .. . .. . I thought one of the steps in the Unicode Punycode conversion was a normalisation which rendered domain names lower case . Comment : See official spec IETF RFC 4343 : Domain Name System DNS Case Insensitivity Clarification http : tools.ietf.org html rfc4343 .. . Answer : URLs are still case insensitive even for IDN . Comment : See RFC 3987 Internationalized Resource Identifiers IRIs . They are case sensitive but based on specific scheme they MAY be case insensitive . Domain part of IRI is case insensitive but not other parts such as paths and filenames . Comment : The question is about IDN not IRI . A domain-name is just part of the IRI . Check RFC 3490 . toASCII calls nameprep RFC 3491 which refers stringprep RFC 3454 . Section 3.2 Case folding specifies the exact folding table CaseFolding.txt and the Unicode version 3.2 So not only that is case insensitive but the exact case conversion table is specified . Comment : So the approved answer is not accurate by saying defining upper- and lowercase can be tricky in languages and character sets outside of ASCII . It is Unicode and exact version specified . No other character sets . Even the Wikipedia article recommended by the answer say apply the Nameprep algorithm which converts the label to lowercase and performs other normalization . So please before down-voting do the homework .", "Question : I need help building a regular expression that can properly match an URL inside free text . .. . .. . scheme .. . One of the following : ftp http https is ftps a protocol optional user and optional pass .. . host with support for IDNs .. . support for www and sub-domain s with support for IDNs .. . basic filtering of TLDs a-zA-Z 2 6 is enough I think .. . optional port-number .. . path optional with support for Unicode chars .. . query optional with support for Unicode chars .. . fragment optional with support for Unicode chars .. . .. . Here is what I could find out about sub-domains : .. . .. . A subdomain expresses relative dependence not absolute dependence : for example wikipedia.org comprises a subdomain of the org domain and en.wikipedia.org comprises a subdomain of the domain wikipedia.org . In theory this subdivision can go down to 127 levels deep and each DNS label can contain up to 63 characters as long as the whole domain-name does not exceed a total length of 255 characters . Regarding the domain-name itself I couldn t find any reliable source but I think the regular expression for non-IDNs I m not sure how to write a IDN compatible version is something like : .. . .. . Can someone help me out with this regular expression or point me to a good direction Comment : With support for IDNs do you mean that it should support www.emilvikstr m.se or just the punycode version www.xn--emilvikstrm-0fb.se Comment : @Emil : emilvikstr m.se I believe I should have to use the p L property but I m not sure . .. . Answer : This will get you most of the way there . If you need it more refined please provide test data . Comment : It fails for http : www.emilvikstr m.se for instance . Comment : Is that a valid URL from ietf.org rfc rfc1738.txt http : www.ietf.org rfc rfc1738.txt .. . only alphanumerics the special-characters - .+ and reserved characters used for their reserved purposes may be used unencoded within a URL . Comment : See RFC3490 about internationalized domain names . In technical terms like DNS it is always converted to punycode but it is shown in applications with the international characters .", "Question : Using jQuery 1.5 or 1.5.1 any ajax calls to encoded Internationalized domain names http : en.wikipedia.org wiki Internationalized domain-name IDN like xn--bcher-kva.ch seems to fail in Internet Explorer 8 . It worked fine in jQuery 1.4.4 and also with 1.5+ in any other browser than IE . It also works when using the unencoded domain-name . Can anyone with deeper knowledge of jQuery and access to a IDN confirm or help with this We only have access to one IDN which belongs-to a customer which is why we unfortunately can t provide a proper test case . It would be great if someone else could confirm this before posting an official bug report . .. . Answer : You sure it s not a cache problem try to add : .. . .. . And add this to the end of your argument list Comment : Thanks for answering . I tested adding your code to our test and got the same result as before in IE8 the ajax error callback is triggered with the not so helpful error in the textstatus variable and jqXHR.responseText as undefined .", "Question : I have bought an IDN domain-name with non-latin characters . It is good but when I access the domain-name the address-bar shows the punycode for the domain not the actual domain which will be hard for any user to remember . Is there is anyway I can rewrite the domain-name to the original IDN not the punycode example : IDN .com .. . .. . punycode that show in address-bar xn--mgbaaa1ksacgkcs1a.com .. . Answer : The way that address-bar is displayed is dependent on browser its version and possibly the used locale : .. . .. . regardless of the locale I see .com in Opera 11 .. . I see xn--mgbaaa1ksacgkcs1a.com in Firefox 6 and Chrome 14 in my default locale cs CZ .. . however when I set locale to ar in Chrome it shows the original version of the IDN like Opera .. . IE6 dies a horrible death as expected .. . IE7 shows the punycoded version .. . IE8 shows the punycoded version + an information button listing both versions .. . .. . So I m afraid that there s not much that you can do about this as the site owner unfortunately .", "Question : What is the best way to convert an internationalized domain-name http : en.wikipedia.org wiki Internationalized 5Fdomain 5Fname to its ASCII-form I want to convert B cher.ch into xn--bcher-kva.ch by using some sort of free .net code . .. . Answer : Comment : +1 This is the right answer ." ] }
[ "yes-answer-long", "yes-answer-short" ]
domain-name
UNK_RELATION
rodeo@jupyter@57
rodeo -- rodeo is a data science ide built atop project @placeholder and the electron cross-platform desktop app framework .
{ "confidence": [ 50.55657958984375, 50.31904220581055, 48.27369689941406, 47.844146728515625, 47.43482971191406, 46.843563079833984, 45.92138671875, 45.91902160644531, 45.369728088378906, 45.369728088378906, 44.61907196044922, 44.208927154541016, 44.208534240722656, 43.9593505859375, 43.9593505859375, 42.9824333190918, 42.791099548339844, 41.32432174682617, 40.63924026489258, 40.63924026489258, 37.808921813964844, 37.755027770996094, 37.755027770996094, 37.755027770996094, 37.755027770996094, 37.755027770996094, 37.755027770996094, 35.867000579833984, 35.8314208984375, 35.8314208984375, 35.8314208984375, 35.8314208984375, 32.947208404541016, 32.947208404541016, 32.947208404541016, 29.59324073791504, 27.99261474609375, 26.709026336669922, 26.709026336669922, 21.002986907958984, 20.169662475585938, 18.920639038085938, 15.795873641967773, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 14.962985038757324, 13.250860214233398, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.985485076904297, 12.845202445983887, 12.845202445983887, 11.673600196838379, 11.673600196838379, 11.673600196838379, 11.673600196838379, 11.673600196838379, 11.673600196838379, 11.673600196838379, 11.673600196838379, 11.673600196838379, 11.387439727783203, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496, 10.101271629333496 ], "content": [ "After reinstalling anaconda launching rodeo with rodeo .", "You should be able to tell by clicking Rodeo About Rodeo .", "But when i type rodeo in cmd to start rodeo it is giving an error saying .. . .. . i am not able to start rodeo .", "I recommend checking out the latest version 1.4.9 downloadable from the Rodeo project page on github https : github.com yhat rodeo .", "Install the latest version of Rodeo https : github.com yhat rodeo .. . .. . 4 .", "What version of Rodeo are you using", "I tried with rodeo .", "Rodeo version : 1.3.0 .. . .. . Spark version : 1.6.1 .. . .. . Platform : Linux", "I searched about installing rodeo on top of this but seems like conda install rodeo wont work so i did pip install rodeo .", "or should I try like this http : www.marsja.se installing-rodeo-1-0-linux .. . .. . where media dev1 Rodeo is the rodeo folder in another drive", "Yhat has released a native desktop version of Rodeo recently .", "This issue is related to one described here : link https : github.com yhat rodeo issues 231 .. . .. . Rodeo as a desktop app has a hard time working with shell environment-variables .", "I removed everything and rodeo started working again .", "https : www.yhathq.com products rodeo downloads", "Writing and running scripts via Rodeo .", "I recommend checking out the latest release v2.0 downloadable from the Rodeo project page on github https : github.com yhat rodeo .", "I want to install rodeo software https : github.com yhat rodeo in my ubuntu 14.04 .", "Just to clarify you are typing rodeo . right", "I installed Anaconda then Rodeo using the setup file on their website .", "Is it possible to install rodeo without killing the previous installation of Spyder", "Also Rodeo is undergoing rapid development so it s helpful if you put your version number in the question .", ".. . .. . Here s how I set up Anaconda and Rodeo .. . .. . 1 .", "Open Rodeo and set the Python Path to your fresh anaconda virtual environment .", "Run which python .. . .. . More details in the Rodeo docs http : rodeo.yhat.com docs .", "Folks .. . .. . I am trying to install RODEO on my debian jessie box .", "I ve successfully pip installed rodeo and the installation was completed without any issues .", "If that doesn t work rodeo may require IPython 3.x for now .", "Updated Answer as of 2016-6-8 .. . .. . Rodeo has been undergoing a significant re-write since the latest major release v1.3 which is the currently downloadable version https : www.yhat.com products rodeo on yhat s website .", "I installed Rodeo using : .. . .. . It worked however the spyder stopped working it just didnt start .", "The Rodeo team has been working on a major re-write from version 1.3 the current downloadable version on yhat s website .", "I recommend upgrading to their latest release version 1.4.9 https : github.com yhat rodeo downloadable from github .", "Oh and whenever I reached out to the Rodeo team via github with a reasonable request they were quick to implement it .", "Because of the lack of space in my Ubuntu system drive I want to install rodeo in another device disk .", "Do I just download the deb file http : bareback.s.yhat.com of rodeo and then copy it on the devices disk and double click the deb file", "What kind of steps should I follow to install rodeo in disk other than the system disk", "I am using rodeo with jupyter however the keyboard-shortcuts for switching to and clearing terminal are not working and either is the ability to view and sort pandas dataframes by clicking on them in the top right panel .", "In Rodeo if my script A imports a module B and I make modifications to module B after running script A once I have to restart the session in order for my script A to read the updated module B in the process wiping my workspace and namespace clean .", "However when I type rodeo on the command-line I am greeted with the following error message : .. . .. . Could someone shed some light as I have ipython installed .", "If rodeo supports the 4.0 APIs you can install these with : .. . .. . Almost anything that worked with IPython 3 should work with IPython 4 and Jupyter as long as the extra packages are installed .", "The following simple script works fine in pyspark when it is ran from the terminal : .. . .. . But when ran in Rodeo it produces an error most important line of which says : .. . .. . And the full error output can be found at this link : http : pastebin.com raw unGuGLhq .. . .. . My SPARK HOME conf spark-env.sh file contains the following lines : .. . .. . The problem persists despite that and putting the same lines in .bashrc doesn t solve the problem either .", "The line with problems is : .. . .. . Strangely this code does run perfectly using the Spyder2 IDE .", "Install virtualenv and virtualenv-wrapper and you can install each IDE in his own Isolated environment .", "All I understand is that desktop programs tend to operate using different environment-variables than shell programs because they somehow don t exactly run as my threads.. . No idea what s this about I m a noob", "Is there a way to iterate quickly on importing B into A in a less disruptive way", "Try this : .. . .. . after new edits in ModuleB you can just use reload moduleB", "I do this with exec .", "But keep an eye out for updated versions as they re coming in almost daily at this point .", "enter image description here http : i.stack.imgur.com vVrFe.png .. . .. .", "enter image description here http : i.stack.imgur.com c0v2V.png .. . .. .", "enter image description here http : i.stack.imgur.com TUn2T.png .. . .. . I installed anaconda but the envs folder is empty .", "So I gave the following D : sw python python.exe D : sw Anaconda3 python.exe in the textbox beside set path button but it didn t work .", "User Environment variables of my computer .. . .. . path : .. . .. .", "enter image description here http : i.stack.imgur.com alHsB.png .. . .. . System environment-variables of my computer .. . .. . path : .. . .. .", "enter image description here http : i.stack.imgur.com KJvho.png .. . .. .", "enter image description here http : i.stack.imgur.com x8VT7.png", "Try setting the path without .exe", "@Ben Still it s not working :", "I uninstalled python from D : and then re installed in the default location and reset all the environment-variables .", "Now it works :", "For both of these options I would recommend backing up your data somewhere using rsync before you proceed .", "However when I run a script I get the error below .", "Any suggestions", "Steve", "Yes there is a way .", "Now you can create an isolated virtual environment where each python package has each own libraries and interpreter .", "See the documentation for virtualenv here https : virtualenv.pypa.io en latest .", "Once you are comfortable with virtualenv I highly recommend using virtualenvwrapper .", "http : rodeo.yhat.com docs", "Can t speak for other versions but in 1.4.9 you can clear the console using ctrl+l and you can switch between the editor and the console using cmd+1 and cmd+2 .", "Also keep checking for updated versions on github as they are coming fast", "The directories of interest are usually : .. . .. . usr : majority of user utilities and applications .. . opt : software which is not handled by the package manager .. . media : data stored on external devices .. . 2 .", "Just in case something doesn t go according to plan you wouldn t want to lose all of the data stored in one of your system directories", "I have read the other question and it doesn t solve my problem but your comment reminded me of an incredibly important info I forgot to include thank you for that .", "And you also set me on the right track to the solution thank you again", "The answer I submitted is similar to one of the answers offered in a question that mine was suspected of being a duplicate of but the user that provided that answer did not specify where to put appropriate code .", "I still don t get why it doesn t pick these from SPARK HOME conf spark-env.sh .", "Strange.. .", "I also don t fully understand that I just paraphrased what I ve found in the bug thread I linked there so I suppose these guys understand this issue better .", ": BTW you should accept your own answer if it solved the issues .", "The trick is to put variables we d normally declare in spark-env.sh in Rodeo s .rodeoprofile instead using os module to add them .", "Specifically in this case adding the following lines to .rodeoprofile helped : .. . .. . though the second one is redundant and I added it just for consistence as the driver used 3.5 anyway", "The mount points for every directory are specified in that file so whenever you would like to move a folder that contains a lot of data usually the folders I mentioned above to a hard drive with more space you can simply move that folder to the other hard drive while keeping the rest of your system exactly as it was when Ubuntu was installed", "I have a 64bit anaconda python distribution version 2.3 with python 3.4.3 installed on windows-7 machine .", "Please advise .", "Thanks", "Install the latest version of Anaconda https : www.continuum.io downloads .. . 2 .", "Create a fresh virtual environment http : conda.pydata.org docs using envs.html create-an-environment which includes jupyter .", "conda create --name datasci jupyter .. . .. . 3 .", "In my case anaconda envs datasci bin python .. . .. .", "enter image description here http : i.stack.imgur.com mkff5.png .. . .. . If you re not sure what path to set .. . .. . 1 .", "Open Terminal .. . 2 .", "Activate your virtual environment source activate datasci .. . 3 .", "And keep checking github for version updates as they re coming almost daily at this point .", "It will be better than the web version .", "This can be easily installed by downloading the installable from their website mentioned below .", "I think the problem is that you need to make sure you are using pip as seen by Anaconda .", "To get around this I have an alias set up in my .bash aliases file not sure what the equivalent is in windows to call anaconda s version of pip : .. . .. . That means that I use the command pip-ana to install things to Anaconda s python environment rather than simply pip as that defaults to an alternative python environment .", "So to solve your problem make sure you are using the correct pip by calling the executable file from anaconda bin .", "I only have 1 python related installation in my system which is from anaconda distribution ." ] }
{ "confidence": [ 61.223915100097656, 58.828033447265625, 58.52173614501953, 57.633914947509766, 57.0913200378418, 55.99483871459961, 53.184234619140625, 52.4898796081543, 50.86594009399414, 46.52001190185547, 45.7486686706543, 33.624244689941406, 14.797262191772461 ], "content": [ "Question : I have a 64bit anaconda python distribution version 2.3 with python 3.4.3 installed on windows-7 machine . I searched about installing rodeo on top of this but seems like conda install rodeo wont work so i did pip install rodeo . But when i type rodeo in cmd to start rodeo it is giving an error saying .. . .. . i am not able to start rodeo . Please advise . Thanks .. . Answer : Yhat has released a native desktop version of Rodeo recently . It will be better than the web version . This can be easily installed by downloading the installable from their website mentioned below . https : www.yhathq.com products rodeo downloads", "Question : I installed Rodeo using : .. . .. . It worked however the spyder stopped working it just didnt start . I removed everything and rodeo started working again . Is it possible to install rodeo without killing the previous installation of Spyder .. . Answer : Yes there is a way . Install virtualenv and virtualenv-wrapper and you can install each IDE in his own Isolated environment . Now you can create an isolated virtual environment where each python package has each own libraries and interpreter . See the documentation for virtualenv here https : virtualenv.pypa.io en latest . Once you are comfortable with virtualenv I highly recommend using virtualenvwrapper .", "Question : In Rodeo if my script A imports a module B and I make modifications to module B after running script A once I have to restart the session in order for my script A to read the updated module B in the process wiping my workspace and namespace clean . Is there a way to iterate quickly on importing B into A in a less disruptive way .. . Answer : I do this with exec . Also Rodeo is undergoing rapid development so it s helpful if you put your version number in the question . I recommend checking out the latest version 1.4.9 downloadable from the Rodeo project page on github https : github.com yhat rodeo . But keep an eye out for updated versions as they re coming in almost daily at this point .", "Question : The following simple script works fine in pyspark when it is ran from the terminal : .. . .. . But when ran in Rodeo it produces an error most important line of which says : .. . .. . And the full error output can be found at this link : http : pastebin.com raw unGuGLhq .. . .. . My SPARK HOME conf spark-env.sh file contains the following lines : .. . .. . The problem persists despite that and putting the same lines in .bashrc doesn t solve the problem either . Rodeo version : 1.3.0 .. . .. . Spark version : 1.6.1 .. . .. . Platform : Linux Comment : I have read the other question and it doesn t solve my problem but your comment reminded me of an incredibly important info I forgot to include thank you for that . Comment : And you also set me on the right track to the solution thank you again The answer I submitted is similar to one of the answers offered in a question that mine was suspected of being a duplicate of but the user that provided that answer did not specify where to put appropriate code . Comment : I still don t get why it doesn t pick these from SPARK HOME conf spark-env.sh . Strange.. . Comment : I also don t fully understand that I just paraphrased what I ve found in the bug thread I linked there so I suppose these guys understand this issue better . All I understand is that desktop programs tend to operate using different environment-variables than shell programs because they somehow don t exactly run as my threads.. . No idea what s this about I m a noob Comment : : BTW you should accept your own answer if it solved the issues . .. . Answer : This issue is related to one described here : link https : github.com yhat rodeo issues 231 .. . .. . Rodeo as a desktop app has a hard time working with shell environment-variables . The trick is to put variables we d normally declare in spark-env.sh in Rodeo s .rodeoprofile instead using os module to add them . Specifically in this case adding the following lines to .rodeoprofile helped : .. . .. . though the second one is redundant and I added it just for consistence as the driver used 3.5 anyway", "Question : I have a 64bit anaconda python distribution version 2.3 with python 3.4.3 installed on windows-7 machine . I searched about installing rodeo on top of this but seems like conda install rodeo wont work so i did pip install rodeo . But when i type rodeo in cmd to start rodeo it is giving an error saying .. . .. . i am not able to start rodeo . Please advise . Thanks .. . Answer : Updated Answer as of 2016-6-8 .. . .. . Rodeo has been undergoing a significant re-write since the latest major release v1.3 which is the currently downloadable version https : www.yhat.com products rodeo on yhat s website . I recommend checking out the latest release v2.0 downloadable from the Rodeo project page on github https : github.com yhat rodeo . .. . .. . Here s how I set up Anaconda and Rodeo .. . .. . 1 . Install the latest version of Anaconda https : www.continuum.io downloads .. . 2 . Create a fresh virtual environment http : conda.pydata.org docs using envs.html create-an-environment which includes jupyter . conda create --name datasci jupyter .. . .. . 3 . Install the latest version of Rodeo https : github.com yhat rodeo .. . .. . 4 . Open Rodeo and set the Python Path to your fresh anaconda virtual environment . In my case anaconda envs datasci bin python .. . .. . enter image description here http : i.stack.imgur.com mkff5.png .. . .. . If you re not sure what path to set .. . .. . 1 . Open Terminal .. . 2 . Activate your virtual environment source activate datasci .. . 3 . Run which python .. . .. . More details in the Rodeo docs http : rodeo.yhat.com docs . And keep checking github for version updates as they re coming almost daily at this point .", "Question : I am using rodeo with jupyter however the keyboard-shortcuts for switching to and clearing terminal are not working and either is the ability to view and sort pandas dataframes by clicking on them in the top right panel . http : rodeo.yhat.com docs .. . Answer : What version of Rodeo are you using You should be able to tell by clicking Rodeo About Rodeo . The Rodeo team has been working on a major re-write from version 1.3 the current downloadable version on yhat s website . I recommend upgrading to their latest release version 1.4.9 https : github.com yhat rodeo downloadable from github . Can t speak for other versions but in 1.4.9 you can clear the console using ctrl+l and you can switch between the editor and the console using cmd+1 and cmd+2 . Also keep checking for updated versions on github as they are coming fast Oh and whenever I reached out to the Rodeo team via github with a reasonable request they were quick to implement it .", "Question : I have a 64bit anaconda python distribution version 2.3 with python 3.4.3 installed on windows-7 machine . I searched about installing rodeo on top of this but seems like conda install rodeo wont work so i did pip install rodeo . But when i type rodeo in cmd to start rodeo it is giving an error saying .. . .. . i am not able to start rodeo . Please advise . Thanks .. . Answer : I think the problem is that you need to make sure you are using pip as seen by Anaconda . To get around this I have an alias set up in my .bash aliases file not sure what the equivalent is in windows to call anaconda s version of pip : .. . .. . That means that I use the command pip-ana to install things to Anaconda s python environment rather than simply pip as that defaults to an alternative python environment . So to solve your problem make sure you are using the correct pip by calling the executable file from anaconda bin . Comment : I only have 1 python related installation in my system which is from anaconda distribution . So pip install should refer to pip from anaconda only right Also i can see the rodeo.exe in C : Program Files anaconda Scripts Comment : Just to clarify you are typing rodeo . right The . is important as this provides a directory as an argument . Comment : I tried with rodeo . also . Its not working . Comment : Are you sure your path points to the anaconda directory In my bashrc not sure what the windows equivalent is I have the following : export PATH home usr anaconda bin : PATH which was put there by anaconda . Comment : After reinstalling anaconda launching rodeo with rodeo . worked .", "Question : null .. . Answer : I installed Anaconda then Rodeo using the setup file on their website . However when I run a script I get the error below . The line with problems is : .. . .. . Strangely this code does run perfectly using the Spyder2 IDE . Any suggestions Steve", "Question : Folks .. . .. . I am trying to install RODEO on my debian jessie box . I ve successfully pip installed rodeo and the installation was completed without any issues . However when I type rodeo on the command-line I am greeted with the following error message : .. . .. . Could someone shed some light as I have ipython installed . When searched for jupyter client in apt repos I couldn t fine one . Any help would be appreciated . Comment : Jupyter is the new name of ipython perhaps you have an old version . Try pip install jupyter-notebook .. . Answer : IPython 4.0 has split https : blog.jupyter.org 2015 08 12 first-release-of-jupyter into many packages many of the notebook- and execution-related ones now being part of Jupyter . If rodeo supports the 4.0 APIs you can install these with : .. . .. . Almost anything that worked with IPython 3 should work with IPython 4 and Jupyter as long as the extra packages are installed . IPython includes shims for the imports that have moved . If that doesn t work rodeo may require IPython 3.x for now . You can pin IPython to 3.x with : Comment : pip install --upgrade jupyter worked :", "Question : I want to install rodeo software https : github.com yhat rodeo in my ubuntu 14.04 . Because of the lack of space in my Ubuntu system drive I want to install rodeo in another device disk . I have python 2.7.6 numpy matplotlib installed in my system without IPython Jupyter library . Do I just download the deb file http : bareback.s.yhat.com of rodeo and then copy it on the devices disk and double click the deb file whether this will install the file in that device only What kind of steps should I follow to install rodeo in disk other than the system disk or should I try like this http : www.marsja.se installing-rodeo-1-0-linux .. . .. . where media dev1 Rodeo is the rodeo folder in another drive .. . Answer : Challenges of Installing Packages on Ubuntu onto a Separate Drive .. . .. . On Ubuntu packages aren t installed in just one directory such as Program Files in Windows OS . The reason for this is that packages installed on Ubuntu unlike Windows follow the Filesystem Hierarchy Standard https : help.ubuntu.com community LinuxFilesystemTreeOverview Main directories . A very well-written explanation of this can be found in this answer on the AskUbuntu StackExchange site http : askubuntu.com a 320655 . Briefly here is a digestible explanation of the installation procedure for packages on Ubuntu : .. . .. . user-level executables are installed in usr share bin documentation in usr share doc system-wide config files in etc library files in usr share lib and so on . I have taken this information from a post on another forum site .. . .. . You can read more about the difficulties of choosing a single installation path in Ubuntu on that Ubuntu Forums post http : ubuntuforums.org showthread.php t 2224879 p 13027357 post13027357 . Installing Your Package to A Separate Drive .. . .. . Before I Continue : .. . .. . It is important to note that if you follow either of these approaches you can simply install the package as per the installation instructions provided with the package . There is no need to specify the directory explicitly as you do in the sample commands you have provided . In fact I hope that the explanation I provided above of the file-system organization in Ubuntu has convinced you that explicitly providing a directory won t necessarily do what you would think as it would in Windows if you specified a directory other than Program Files . Your Options : .. . .. . I suggest one of two options : .. . .. . 1 . Move the mount point of the system directory that your package will be installed to into another drive . The directories of interest are usually : .. . .. . usr : majority of user utilities and applications .. . opt : software which is not handled by the package manager .. . media : data stored on external devices .. . 2 . Install Add a new hard drive or partition of a hard drive to Ubuntu . For both of these options I would recommend backing up your data somewhere using rsync before you proceed . Just in case something doesn t go according to plan you wouldn t want to lose all of the data stored in one of your system directories Option 1 : Moving the Mount Point .. . .. . Simply you must edit the mount point the fstab file located in the etc system directory . For your case say that your usr directory is stored located on the hard drive at dev hda12 and you would like to install user applications on the hard drive at dev hda6 . Then you would edit the line in your fstab file reading dev hda12 usr .. . to dev hda6 usr .. . . The mount points for every directory are specified in that file so whenever you would like to move a folder that contains a lot of data usually the folders I mentioned above to a hard drive with more space you can simply move that folder to the other hard drive while keeping the rest of your system exactly as it was when Ubuntu was installed Remember to keep in mind which partitions you are using for Ubuntu or you might reformat a partition on accident if you re sharing a drive between OS s . As all of the necessary information is already very well laid-out.. . if you would like more detailed information or debugging help I would recommend that you follow the Advanced Example provided in this Ubuntu Community Guide https : help.ubuntu.com community MoveMountpointHowto Advanced Example . Option 2 : Installing Adding a New Drive .. . .. . This is essentially the same as the the first option except the hard drive must be formatted first by GParted https : help.ubuntu.com community HowtoPartition CreatingPartitions or the fdisk command https : help.ubuntu.com community InstallingANewHardDrive Command Line Partitioning in terminal . Then you create a new mount point according to the same instructions provided in the first option . I hope that this helps you happy coding", "Question : In Rodeo if my script A imports a module B and I make modifications to module B after running script A once I have to restart the session in order for my script A to read the updated module B in the process wiping my workspace and namespace clean . Is there a way to iterate quickly on importing B into A in a less disruptive way .. . Answer : Try this : .. . .. . after new edits in ModuleB you can just use reload moduleB", "Question : null .. . Answer : Using Python 3.5.1 installed via Anaconda on a Mac . Writing and running scripts via Rodeo . Tried to execute a simple function http : 20https : gist.github.com elainechan 82c6dade7c761250f1778ba88f717517 . Returned this error https : gist.github.com elainechan 427fae397cc458c250de1b2864626756 . First I thought it was a Python 2 vs . 3 issue and changed raw input to input on the first line as such https : gist.github.com elainechan c31b51767a47a18138c643b15a8458dd . Returned a more baffling error https : gist.github.com elainechan 8e3b5b0a832d2c5f3073c0141e5cdb25 . Googled the error and it doesn t seem to be widely discussed . Here are some search results that confused me even further : .. . .. . result 1 https : github.com millejoh emacs-ipython-notebook issues 37 .. . .. . result 2 https : github.com nteract hydrogen issues 146 .. . .. . result 3 https : github.com nteract hydrogen issues 146 .. . .. . result 4 http : nullege.com codes search IPython.core.error.StdinNotImplementedError .. . .. . result 5 http : minrk.github.io ipython-doc dev development messaging.html .. . .. . Any idea on how to resolve this", "Question : null .. . Answer : enter image description here http : i.stack.imgur.com vVrFe.png .. . .. . enter image description here http : i.stack.imgur.com c0v2V.png .. . .. . enter image description here http : i.stack.imgur.com TUn2T.png .. . .. . I installed anaconda but the envs folder is empty . So I gave the following D : sw python python.exe D : sw Anaconda3 python.exe in the textbox beside set path button but it didn t work . User Environment variables of my computer .. . .. . path : .. . .. . enter image description here http : i.stack.imgur.com alHsB.png .. . .. . System environment-variables of my computer .. . .. . path : .. . .. . enter image description here http : i.stack.imgur.com KJvho.png .. . .. . enter image description here http : i.stack.imgur.com x8VT7.png Comment : Try setting the path without .exe Comment : @Ben Still it s not working : Comment : I uninstalled python from D : and then re installed in the default location and reset all the environment-variables . Now it works :" ] }
[ "yes-answer-long", "yes-answer-short" ]
jupyter
UNK_RELATION
asmack@asmack@70
asmack -- before smack added native support for android in smack 4 1 @placeholder was the build environment for using the smack library on android enabling xmpp protocols .
{ "confidence": [ 73.21021270751953, 69.69010925292969, 69.29090881347656, 68.58377838134766, 68.46389770507812, 68.41120910644531, 67.93163299560547, 67.45226287841797, 66.31629943847656, 66.05384826660156, 66.05384826660156, 63.813438415527344, 62.99602508544922, 62.34191131591797, 62.300804138183594, 61.55236053466797, 60.676673889160156, 60.60673522949219, 60.102630615234375, 59.64039611816406, 59.01416015625, 58.967567443847656, 58.08229064941406, 57.88060760498047, 56.82133483886719, 56.153953552246094, 56.1416015625, 56.059661865234375, 55.817649841308594, 55.817649841308594, 55.817649841308594, 55.5400390625, 55.44598388671875, 54.29484939575195, 54.01228332519531, 53.34416198730469, 53.34416198730469, 53.33624267578125, 53.321693420410156, 53.321693420410156, 52.96009826660156, 52.95800018310547, 52.879940032958984, 52.866546630859375, 51.930320739746094, 51.05731964111328, 50.95933532714844, 50.95933532714844, 50.633056640625, 50.47715759277344, 50.35045623779297, 50.110931396484375, 49.950843811035156, 49.777618408203125, 49.55272674560547, 49.16094970703125, 48.82904815673828, 48.82904815673828, 48.77918243408203, 48.619903564453125, 48.619903564453125, 48.20233154296875, 48.071144104003906, 47.885467529296875, 47.78667449951172, 47.78667449951172, 47.64935302734375, 47.17255401611328, 47.15070343017578, 46.88946533203125, 46.84107208251953, 46.37373352050781, 45.78788757324219, 45.69264221191406, 45.6214714050293, 45.43138122558594, 45.04138946533203, 45.04138946533203, 44.75811004638672, 44.495635986328125, 43.981849670410156, 43.941070556640625, 43.78782653808594, 43.48912811279297, 43.48912811279297, 43.48912811279297, 43.48912811279297, 43.48912811279297, 42.4593505859375, 42.4593505859375, 42.25480651855469, 41.57671356201172, 41.485755920410156, 41.40903854370117, 41.344764709472656, 41.225135803222656, 41.225135803222656, 41.225135803222656, 41.225135803222656, 41.21588134765625 ], "content": [ "I am using smack library for JAVA and Asmack Library for android", "I am developing an android chatting app with the use of Openfire as a support server for XMPP and smack library as a android implementation of XMPP .", "Merged Smack 3.2.0 into asmack .", "I am using the asmack build of smack 4.0.4 .", "Don t rely on XMPP file-transfer using aSmack Smack as it is buly .", "I am not able to use Smack http : www.igniterealtime.org projects smack on Android whereas aSmack http : asmack.org works perfectly", "Smack https : igniterealtime.org projects smack .. . .. . Smack is a open-source XMPP client library .", "I think they are using smack with android .", "Try to move from Asmack to Smack 4.1 in Android application .", "aSmack is obsolete and deprecated by Smack 4.1 .", "What is the difference between Smack and aSmack", "It modifies Smack to allow it to work on Android .", "but issue is in only android using smack api .", "Besides that I m using smack asmack as a library in my application .", "IIRC talkmyphone uses the pretty old smack patch from here : davanum.wordpress.com 2007 12 31 http : davanum.wordpress.com 2007 12 31 android-just-use-smack-api-for-xmpp with that diff : people.apache.org dims android smack-android.diff http : people.apache.org dims android smack-android.diff", "I am crating room using android application using smack library .", "and also what is difference between Smack and asmack", "I am using smack library for implementing xmpp based chat on my android device .", "What i wanted to say is that i have the source code for both smack and asmack but the code doesn t have any difference as such that smack shouldn t work on android.Which patch or what thing stops smack to be used on android and enables asmack to work fine on android", "It is a way to modify Smack so that it can be used on Android .", "I conclude from the stacktrace that you are using aSmack which is Smack ported to Android .", "@aftab As stated in my answer asmack https : github.com Flowdalic asmack and the used smack branch https : github.com Flowdalic smack can be found on github .", "i m trying to build a chat on android with ejabberd 15.11 and smack 4.1.5 .", "Smack 4.x is supposed to replace asmack but I don t know if Smack 4.x uses Novell or Java SASL implementation .", "I am facing the issue to retrieve offline message in android apps using smack api from XMPP Mongoose server .", "There is a open feature request to implement Stream Management in Smack : SMACK-333 https : igniterealtime.org issues browse SMACK-333 .", "I am using smack", "While implementing Smack you need to take care of maintaining sessions of Smack Connections and related ones. . For this you can refer the following the GitHub demo app : Smack Android Demo https : github.com meisterfuu SmackAndroidDemo", "hi Flow how we can merge existing asmack with latest smack", "or it is availabel wherer from I can download asmack with latest smack", "As the project description states ASmack adds a set of patches to regular Smack .", "I m receiving this packet with smack on Android Showing in the debug log .", "and smack 4.2.0", "In smack this is done via an configuration file but this approach does not work on Android and therefore on aSmack .", "If you look at the javadoc for ConnectionException https : www.igniterealtime.org builds smack docs latest javadoc org jivesoftware smack SmackException.ConnectionException.html : .. . .. . ConnectionException is thrown if Smack is unable to connect to all hosts of a given XMPP service .", "In the past few days I tried GTalk Facebook chat integration with Android Smack http : www.igniterealtime.org projects smack index.jsp and it s working fine .", "I tried to implement the same logic for AIM MSN chat integration with Android Smack http : www.igniterealtime.org projects smack index.jsp but it did not work .", "Am developing an Android app which makes use of XMPP Smack 4.1.7 to implement the chat feature .", "Smack is designed to be extended in this way .", "SmackAndroid smack SmackAndroid.init context .", "Can anyone explain the above behaviour of smack library .", "Your smack work is very commendable and a blessing for the android community .", "Filled as SMACK-561 http : issues.igniterealtime.org browse SMACK-561", "Android runtime does not have javax.security.sasl package upgrade your Smack library there is a custom SASL implementation for android", "I want Java code with smack library .", "I have this code almost unmodified from examples : .. . .. . This works perfectly in a Desktop environment using Smack library but I can t get it to work in Android where I have to use asmack .", "Currently i stopped working with smack .", "Looks like this changed in Smack 4.0.0 .", "Smack 4.1 comes with ServerPingWithAlarmManager https : github.com igniterealtime Smack blob master smack-android-extensions src main java org jivesoftware smackx ping android ServerPingWithAlarmManager.java which will check if a ping is required according to the settings of PingManager every 30 mintues .", "I want to create an android chat application using smack api and talk.google.com server but the problem is that when I create a connection to Smack API using gmail id and password and check my user name using connection.getuser my id is showm in following format anything@gmail.com Smack some smack id .Now if I send a message from my app using another phone to anything@gmail.com it is not recieved but if I send it to anything@gmail.com Smack same smack id it is properly recieved .", "These providers are automatically registered when are using JAVA s smack library In java Development but in Android we have to register them ourself .", "Smack 4.1 does not work on Android mostly because of APIs missing on Android e.g .", "And it looks like they will-change it again in Smack 4.1 : .. . .. . Please see this link : https : igniterealtime.org issues browse SMACK-574 .. . .. . There is also an upgrade guide for SMACK 4.0 : https : community.igniterealtime.org docs DOC-2703 .. . .. . UPDATE : .. . .. . Also looks like the new Smack 4.x libraries will only run with Java 7 and above .", "Smack have this reconnection mechanism already implicitly implemented in there library which listen to connection and if connection drops Smack try to reconnect with XMPP server at some interval of time .", "Read their own documentation : SMACK DOCS http : www.igniterealtime.org builds smack docs latest documentation index.html", "@Prince can you use java smack in android i thought i have to use Asmack in order to use Xmpp in android.I am trying to implement gcm Xmpp client in android so that i can send broadcast message to gcm CCS xmpp .hope you will reply to this comment soon thanks :", "I created a Chat application in Android and using Smack API 4.1.7 to communicate Chat Server .", "Resume : .. . .. . I m trying to send and receive Custom IQ packets in android app using smack .", "I implemented a chat client using GTalk servers and a Smack library .", "Try to debug why smack does not try SASL authentication . .. . .. . Note : The lines in the smack source viewer are a bit off because off different versions and the patches from asmack .", "org.jivesoftware.smack.packet.DefaultPacketExtension cannot be cast to org.jivesoftware.smackx.packet.MUCUser is usually an indicator that you didn t initialized the static code of aSmack that takes care of registering the Smack providers for the various packet and packet extension classes of Smack .", "For more information have a look at the Smack 4.1 Readme https : github.com igniterealtime Smack wiki Smack-4.1-Readme-and-Upgrade-Guide and watch the Ignite Realtime blog .", "I downloaded the Smack 4.0.0 library and I see that XMPPConnection is abstract", "try this : ProviderManager.getInstance .addIQProvider vCard vcard-temp new VCardProvider should work for regular smack not sure about asmack.. .", "This isn t working with smack 4.1.7 providing exception for this .", "I was at a loss on why I couldn t use Smack.. .", "Is there any other way to retrieve offline message using smack api 4.1.6 in android if server not support this flexible offline message retrieval", "igniterealtime.org builds smack docs 4.1.0 javadoc org https : www.igniterealtime.org builds smack docs 4.1.0 javadoc org jivesoftware smack tcp XMPPTCPConnection.html addStanzaAcknowledgedListener org.jivesoftware.smack.StanzaListener", "I am working on an android chat application in which i am using smack library for instant messaging everything is working fine but the huge problem is in subscription .", "I am new to xmpp asmack in android .", "I ve been using the patched Smack library from here http : davanum.wordpress.com 2008 12 29 updated-xmpp-client-for-android as is suggested in many other questions here in SO .", "By default Smack loads this from its own resource directory which is not reachable in Android .", "I reccomend you take a closer look to the documentation Smack documentation http : www.igniterealtime.org builds smack docs latest documentation privacy.html", "As I am learning smack and xmpp please guide me if i am wrong at some places .", "I need help in sending these three location data latitude-longitude altitude via aSmack or Smack if anybody can .", "You don t need that value when using Smack 4.1 .", "First question on SO and new to smack so please bear with me .", "Just checking did you configure your smack providers", "To handle message events look at this igniterealtime.org builds smack docs latest documentation http : www.igniterealtime.org builds smack docs latest documentation extensions messageevents.html", "Using asmack-android-8-4.0.4 library version .", "I am trying to send files over my android app with smack library 4.1.1 though i am having some errors to do so .", "To register a new user using smack library after logging in through admin or some other account .", "I tried both smack and asmack.I am able to login register and send message and send file also.but problem is when i am sending file to offline user i am getting service unavailable 503 error.how can i send file to offline user using smack or asmack ...if not possible with smack and asmack then what is alternate way", "XEP-198 is still not up for smack so this is the only solution", "However that s a patched version of the Smack API from two years ago .", "I am trying to decide whether to use official smack or not", "a Smack is open-source so you can easily debug the code .", "ConnectionException means that Smack is unable to connect to the configured IP Port .", "I am trying to connect ejabberd server from smack client with SSL .", "Key-store is generated with key-tool and try to connect with smack code .", "In my XMPP chat application I am using ASMACK library 4.0.6 on the Android client-side .", "Asmack is able to establish a new connection to the server but it falls into Non-SASL mode http : fisheye.igniterealtime.org browse smack trunk source org jivesoftware smack XMPPConnection.java r 12588 to212 for some reason The call of NonSASLAuthentication.authenticate NonSASLAuthentication.java : 77 .", "can you please describe any way to start with smack library ... . this is totally new for me .", "I am trying to build an Android chat client using asmack http : code.google.com p asmack library and an XMPP server like openfire http : www.igniterealtime.org projects openfire .", "I am using asmack library for my chat application.I am using below described code for getting messagecount : .. . .. . But i got exception as described below : .. . .. . Anybody who have implemented it with asmack or have alternate solution with smack lib Please help me to get out of this problem .", "Smack 3.x uses Java s SASL implementation so it works fine .", "Try to use only one stream method and or submit bugreport to Smack .", "@vitalyster It is correct that there are many file-transfer related questions to Smack .", "But of course I m happy about every report where Smack violates the spec .", "I ve been looking at the official Smack API http : www.igniterealtime.org projects smack and after a little research it seems it might work just fine nowadays although I have not tried it yet in a real application ." ] }
{ "confidence": [ 100.04878997802734, 95.02555847167969, 94.879150390625, 90.55369567871094, 89.65815734863281, 89.29020690917969, 89.04104614257812, 87.73471069335938, 87.29330444335938, 85.23355102539062, 85.06332397460938, 84.77899169921875, 81.54287719726562, 80.1854248046875, 78.78256225585938, 77.8692626953125, 77.6321029663086, 76.79776000976562, 76.61378479003906, 76.28921508789062 ], "content": [ "Question : I am not able to use Smack http : www.igniterealtime.org projects smack on Android whereas aSmack http : asmack.org works perfectly When compared the source code it looks somewhat similar where does the difference comes from What is the difference between Smack and aSmack .. . Answer : Smack 4.1 does not work on Android mostly because of APIs missing on Android e.g . most of the javax APIs . That is the reason the aSmack build environment was born . It is a way to modify Smack so that it can be used on Android . Besides many minor changes the biggest changes are .. . .. . 1 . Disabling XMPP SASL auth methods that are not supported on Android .. . 2 . Using apache harmony for SASL instead of the javax API .. . .. . Make sure to read the README https : github.com Flowdalic asmack blob master README.asmack and and init the relevant code before doing any XMPP related actions . More information can be found @ https : github.com Flowdalic asmack wiki Modifications Comment : if you don t mind can you give a reason or some details on why this doesn t happen Basically Dalvik can run standard java code right Comment : Thanks a lot I was at a loss on why I couldn t use Smack.. . Thanks Comment : If you find this answer helpful then please consider upvoting . Comment : Could you help me with one more thing.. . Is this the reason why asmack comes in different jars for different android versions Any specific reason Why can t the same jar be used Comment : ATM the only difference between the aSmack versions for different Android API levels is that they are build with the android.jar of this levels . This does not result in any functional differences and as the time of writing this it should make a difference which one you use .", "Question : I d like to pose a question as to which XMPP library would be the best choice nowadays for Android development . I ve been using the patched Smack library from here http : davanum.wordpress.com 2008 12 29 updated-xmpp-client-for-android as is suggested in many other questions here in SO . However that s a patched version of the Smack API from two years ago . And although it generally works well I m exploring any other more recent options . I ve been looking at the official Smack API http : www.igniterealtime.org projects smack and after a little research it seems it might work just fine nowadays although I have not tried it yet in a real application . There s also another solution I came across Beem s aSMACK library http : www.beem-project.com projects beem files . Beem is a fairly new XMPP client for android and from what I understand they are using their own patched version of aSMACK . Finally there s aSMACK http : code.google.com p asmack but that too hasn t been updated for quite some time as the site suggests . Do you have any other suggestions or can you explain why I should choose one of the above over the rest Comment : What did you go with in the end I am trying to decide whether to use official smack or not Comment : Just a ping note I ve re-opened this in favor of the duplicate that caused this to be closed . Comment : I think that closing this question is a big mistake . Being involved in XMPP on Android I can tell that is the only reliable and up to-date resource when it comes to the question How can I use XMPP on Android on the whole net . By closing it you take a high quality value from SO . The question was open for over a year without problems and questions that asked the same where closed as duplicates pointing to this question . I don t even see the point in closing it as not constructive : It s based on a real world problem involves facts and references . See also upvote and fav count . Comment : @casperOne Thanks for your patient explanations . It helps me understanding where the problem with stackoverflow is . Maybe I will bring this up on meta but it seems that this is the majority s opinion and was discussed many times already . It just doesn t feels right especially since it wasn t closed by votes for years . Comment : Apart from my need for How to use XMPP in android the discussion between Flow and casperOne is more interesting . I wandered on internet for xmpp and in the end of the day I am here on this post which is providing me more specific informations about libraries I can use for XMPP even after TWO YEARS of OP is definitely constructive to me and will be to hundreds of newbie for chat apps . EVENTS speaks more than RULES that FLOW S point of view is correct over this questions closure . .. . Answer : Smack https : igniterealtime.org projects smack .. . .. . Smack is a open-source XMPP client library . Since version 4.1 it runs natively on Android . For more information have a look at the Smack 4.1 Readme https : github.com igniterealtime Smack wiki Smack-4.1-Readme-and-Upgrade-Guide and watch the Ignite Realtime blog . aSmack is obsolete and deprecated by Smack 4.1 . Comment : Merged Smack 3.2.0 into asmack . Check out the branches on github : Comment : Edited comments hi all I am using asmack for developing my xmpp client I am facing a problem When i come from 1st time login I start my chatting with user B and receiving messages from user B also that is fine.i switch off my wifi and switch on it again then programatically reconnecting my jabber server and again login my account after reconnecting I am sending messages to user B that is fine but when user B sending me messages that messages on my side not receiving .I don t know what s is wrong with it.plz guide Comment : hi Flow how we can merge existing asmack with latest smack or it is availabel wherer from I can download asmack with latest smack Comment : @aftab As stated in my answer asmack https : github.com Flowdalic asmack and the used smack branch https : github.com Flowdalic smack can be found on github . Make sure to read the README s on github . Comment : @J K github.com meisterfuu SmackAndroidDemo https : github.com meisterfuu SmackAndroidDemo", "Question : I am not able to use Smack http : www.igniterealtime.org projects smack on Android whereas aSmack http : asmack.org works perfectly When compared the source code it looks somewhat similar where does the difference comes from What is the difference between Smack and aSmack .. . Answer : You can see how things are done in talkmyphone http : code.google.com p talkmyphone . I think they are using smack with android . Comment : IIRC talkmyphone uses the pretty old smack patch from here : davanum.wordpress.com 2007 12 31 http : davanum.wordpress.com 2007 12 31 android-just-use-smack-api-for-xmpp with that diff : people.apache.org dims android smack-android.diff http : people.apache.org dims android smack-android.diff", "Question : I d like to pose a question as to which XMPP library would be the best choice nowadays for Android development . I ve been using the patched Smack library from here http : davanum.wordpress.com 2008 12 29 updated-xmpp-client-for-android as is suggested in many other questions here in SO . However that s a patched version of the Smack API from two years ago . And although it generally works well I m exploring any other more recent options . I ve been looking at the official Smack API http : www.igniterealtime.org projects smack and after a little research it seems it might work just fine nowadays although I have not tried it yet in a real application . There s also another solution I came across Beem s aSMACK library http : www.beem-project.com projects beem files . Beem is a fairly new XMPP client for android and from what I understand they are using their own patched version of aSMACK . Finally there s aSMACK http : code.google.com p asmack but that too hasn t been updated for quite some time as the site suggests . Do you have any other suggestions or can you explain why I should choose one of the above over the rest Comment : What did you go with in the end I am trying to decide whether to use official smack or not Comment : Just a ping note I ve re-opened this in favor of the duplicate that caused this to be closed . Comment : I think that closing this question is a big mistake . Being involved in XMPP on Android I can tell that is the only reliable and up to-date resource when it comes to the question How can I use XMPP on Android on the whole net . By closing it you take a high quality value from SO . The question was open for over a year without problems and questions that asked the same where closed as duplicates pointing to this question . I don t even see the point in closing it as not constructive : It s based on a real world problem involves facts and references . See also upvote and fav count . Comment : @casperOne Thanks for your patient explanations . It helps me understanding where the problem with stackoverflow is . Maybe I will bring this up on meta but it seems that this is the majority s opinion and was discussed many times already . It just doesn t feels right especially since it wasn t closed by votes for years . Comment : Apart from my need for How to use XMPP in android the discussion between Flow and casperOne is more interesting . I wandered on internet for xmpp and in the end of the day I am here on this post which is providing me more specific informations about libraries I can use for XMPP even after TWO YEARS of OP is definitely constructive to me and will be to hundreds of newbie for chat apps . EVENTS speaks more than RULES that FLOW S point of view is correct over this questions closure . .. . Answer : I recently stumbled across another open-source solution : jaxmpp2 https : projects.tigase.org projects jaxmpp2 .. . .. . jaxmpp2 also targets Android and Java SE . I can t really say anything else about it because I don t use jaxmpp2 in my Android XMPP projects . But it looks like a valid alternative to aSmack http : asmack.org . Comment : can you please describe any way to start with smack library ... . this is totally new for me . please make a blog or some libaray project that guys with normal mind can understand this library properly . Comment : I found a tutorial on developer.samsung.com android technical-docs http : developer.samsung.com android technical-docs Building-a-Chat-Application which is especially good note that there calls for some small modification due to compatibility reasons : stackoverflow.com questions 23506658 begginer-asmack-error http : stackoverflow.com questions 23506658 begginer-asmack-error", "Question : I am trying to build an Android chat client using asmack http : code.google.com p asmack library and an XMPP server like openfire http : www.igniterealtime.org projects openfire . So can anybody provide me with some links to tutorials or code-snippets for my client programm . Comment : try google.com http : www.google.com it will help you more than stackoverflow.com http : www.stackoverflow.com . Its not a problem . make some effort . Comment : Try this xmpp-tutorials.blogspot.com.br Comment : @akshay u got any thing .. . Answer : Read their own documentation : SMACK DOCS http : www.igniterealtime.org builds smack docs latest documentation index.html Comment : Try this xmpp-tutorials.blogspot.com.br http : xmpp-tutorials.blogspot.com.br", "Question : I am not able to use Smack http : www.igniterealtime.org projects smack on Android whereas aSmack http : asmack.org works perfectly When compared the source code it looks somewhat similar where does the difference comes from What is the difference between Smack and aSmack .. . Answer : As the project description states ASmack adds a set of patches to regular Smack . Check this conversation http : groups.google.com group android-developers browse thread thread 0a8a0fb16752ba52 631dcf2137e79e7f lnk raot pli 1 for further details . Regards . Comment : What i wanted to say is that i have the source code for both smack and asmack but the code doesn t have any difference as such that smack shouldn t work on android.Which patch or what thing stops smack to be used on android and enables asmack to work fine on android", "Question : I want to create an android chat application using smack api and talk.google.com server but the problem is that when I create a connection to Smack API using gmail id and password and check my user name using connection.getuser my id is showm in following format anything@gmail.com Smack some smack id .Now if I send a message from my app using another phone to anything@gmail.com it is not recieved but if I send it to anything@gmail.com Smack same smack id it is properly recieved . The smack id being appended is random and changes everytime I connect so it is impossible for me to obtain it by any means and thus message cannot be sent so how can I overcome this problem . The code for my ChatActivity is : Comment : it sounds strange message will be sent broadcastly so every client will receive the message maybe you can post your code.I have wrote similar app too . Comment : @user1242027 i have added the code also Comment : @Prince can you use java smack in android i thought i have to use Asmack in order to use Xmpp in android.I am trying to implement gcm Xmpp client in android so that i can send broadcast message to gcm CCS xmpp .hope you will reply to this comment soon thanks : Comment : @user3523641 I used Asmack I have not tried much of GCM yet but for broadcasting you could use Smack based quickblox.com http : quickblox.com API or something similar . The benefit is that all your code will be in JAVA and you don t need to worry about back end . Comment : thank you vary much for your answer can you suggest me is there any way by which i can implement gcm CCS xmpp in my android phone i am working on the code you have wrote above to implement gcm xmpp client in android phone . .. . Answer : You can set the resource id to some known value when you connect so no generated id will be used unless the server changes it which I believe it can do if it wishes . Comment : user can use another XMPP client software like spark when how to handle it @robin", "Question : I d like to pose a question as to which XMPP library would be the best choice nowadays for Android development . I ve been using the patched Smack library from here http : davanum.wordpress.com 2008 12 29 updated-xmpp-client-for-android as is suggested in many other questions here in SO . However that s a patched version of the Smack API from two years ago . And although it generally works well I m exploring any other more recent options . I ve been looking at the official Smack API http : www.igniterealtime.org projects smack and after a little research it seems it might work just fine nowadays although I have not tried it yet in a real application . There s also another solution I came across Beem s aSMACK library http : www.beem-project.com projects beem files . Beem is a fairly new XMPP client for android and from what I understand they are using their own patched version of aSMACK . Finally there s aSMACK http : code.google.com p asmack but that too hasn t been updated for quite some time as the site suggests . Do you have any other suggestions or can you explain why I should choose one of the above over the rest Comment : What did you go with in the end I am trying to decide whether to use official smack or not Comment : Just a ping note I ve re-opened this in favor of the duplicate that caused this to be closed . Comment : I think that closing this question is a big mistake . Being involved in XMPP on Android I can tell that is the only reliable and up to-date resource when it comes to the question How can I use XMPP on Android on the whole net . By closing it you take a high quality value from SO . The question was open for over a year without problems and questions that asked the same where closed as duplicates pointing to this question . I don t even see the point in closing it as not constructive : It s based on a real world problem involves facts and references . See also upvote and fav count . Comment : @casperOne Thanks for your patient explanations . It helps me understanding where the problem with stackoverflow is . Maybe I will bring this up on meta but it seems that this is the majority s opinion and was discussed many times already . It just doesn t feels right especially since it wasn t closed by votes for years . Comment : Apart from my need for How to use XMPP in android the discussion between Flow and casperOne is more interesting . I wandered on internet for xmpp and in the end of the day I am here on this post which is providing me more specific informations about libraries I can use for XMPP even after TWO YEARS of OP is definitely constructive to me and will be to hundreds of newbie for chat apps . EVENTS speaks more than RULES that FLOW S point of view is correct over this questions closure . .. . Answer : Use qsmack for android .. . .. . https : code.google.com p qsmack downloads list .. . .. . Its the latest build for Android .. . .. . I have worked on one-to-one chat group chat video transfer audio transfer last seen change registration number.. . almost complete whats app . I have created lots of plugin on openfire Comment : @jaspreet .... . which one to use aSmack qSmack . Comment : @jaspreet .. . any library roject for integrating qsamck in android Comment : It s all Chinese and no help available . Comment : dropbox.com s dnc9nule3hjh08f qsmack.zip dl 0 https : www.dropbox.com s dnc9nule3hjh08f qsmack.zip dl 0 Comment : let me know If you face any issue in it", "Question : I am working in android chat app.I would like to use one of the following xmpp client Tigase Asmack . But I don t know which one to use . Can you tell me which one is better based on performance and features available in library Comment : XEP-0198 is a important feature which Tigase xmpp client supports specially for android client implementations . As i checked asmack still doesn t support it . But only issue with tigase is lack of documentations .. . Answer : For me Asmack worked just fine . I ve had no problems with it whatsoever also smack has a very nice documentation with a lot of examples . Don t know much about Tigase all I can say is that I had a lot of fun playing around with smack . Comment : I already used asmack in my app . But it struggle in voice chat implementation using jingle . And Tigase support caching of server data.So I need any other information regarding voice chat implementation using tigase .", "Question : Background : .. . .. . I have implemented one-to-one chat using aSmack for XMPP on Android . I am also able to send and receive IQ messages . The issue is : .. . .. . I am unable to send and receive custom IQ messages . for example if i want to send an IQ .. . .. . aSmack works fine for this IQ as it is not custom but if i change the name space here from disco items to Match it will not work it will send back server a response stating .. . .. . and this response is send from my client . but i tried to debug it i put break points on all receiving and sending packets code . but it does not enter there . My code for receiving packet is : .. . .. . I guess i need to add some listeners to get the custom response . can somebody guide me through that Comment : @Flow i am facing a problem in sending and receiving message on android device from xmpp server using asmack Can you come over this link http : chat.stackoverflow.com rooms 68853 trying-to-learn to help me Thanks Comment : i am facing a problem in sending and receiving message on android device from xmpp server using asmack Can you come over this link http : chat.stackoverflow.com rooms 68853 trying-to-learn to help me Thanks .. . Answer : You need to use ServiceDiscoveryManager http : www.igniterealtime.org builds smack docs latest javadoc org jivesoftware smackx ServiceDiscoveryManager.html and register your custom namespace like this : .. . .. . Look at Smack sources https : github.com igniterealtime Smack blob master extensions src main java org jivesoftware smackx iqversion VersionManager.java all internal IQ handlers add themselves as feature match incoming query packets by namespace and build result or error reply . Comment : can you quote a codded example. . ServiceDiscoveryManager.addfeature Comment : and exactly where do i need to call this function . before sending packet Comment : I have add example code also check link-to ServiceDiscoveryManager reference there is a note where better to call addFeature Comment : The missing feature definition can not cause the described problem .", "Question : I d like to pose a question as to which XMPP library would be the best choice nowadays for Android development . I ve been using the patched Smack library from here http : davanum.wordpress.com 2008 12 29 updated-xmpp-client-for-android as is suggested in many other questions here in SO . However that s a patched version of the Smack API from two years ago . And although it generally works well I m exploring any other more recent options . I ve been looking at the official Smack API http : www.igniterealtime.org projects smack and after a little research it seems it might work just fine nowadays although I have not tried it yet in a real application . There s also another solution I came across Beem s aSMACK library http : www.beem-project.com projects beem files . Beem is a fairly new XMPP client for android and from what I understand they are using their own patched version of aSMACK . Finally there s aSMACK http : code.google.com p asmack but that too hasn t been updated for quite some time as the site suggests . Do you have any other suggestions or can you explain why I should choose one of the above over the rest Comment : What did you go with in the end I am trying to decide whether to use official smack or not Comment : Just a ping note I ve re-opened this in favor of the duplicate that caused this to be closed . Comment : I think that closing this question is a big mistake . Being involved in XMPP on Android I can tell that is the only reliable and up to-date resource when it comes to the question How can I use XMPP on Android on the whole net . By closing it you take a high quality value from SO . The question was open for over a year without problems and questions that asked the same where closed as duplicates pointing to this question . I don t even see the point in closing it as not constructive : It s based on a real world problem involves facts and references . See also upvote and fav count . Comment : @casperOne Thanks for your patient explanations . It helps me understanding where the problem with stackoverflow is . Maybe I will bring this up on meta but it seems that this is the majority s opinion and was discussed many times already . It just doesn t feels right especially since it wasn t closed by votes for years . Comment : Apart from my need for How to use XMPP in android the discussion between Flow and casperOne is more interesting . I wandered on internet for xmpp and in the end of the day I am here on this post which is providing me more specific informations about libraries I can use for XMPP even after TWO YEARS of OP is definitely constructive to me and will be to hundreds of newbie for chat apps . EVENTS speaks more than RULES that FLOW S point of view is correct over this questions closure . .. . Answer : I would like to use libstrophe and jni . Goals to use this is cross-platform simple to use and performance . libstrophe is written in c so it easy to write android makefile since the dependency is only openssl and expat lib . In my case I m using openssl and expat lib from libjingle which already port to android and ios . Just need to port gyp file to android makefile or IOS project . Below is my android makefile", "Question : I am not able to use Smack http : www.igniterealtime.org projects smack on Android whereas aSmack http : asmack.org works perfectly When compared the source code it looks somewhat similar where does the difference comes from What is the difference between Smack and aSmack .. . Answer : It modifies Smack to allow it to work on Android . I am not sure of what those changes are with the exception of altering the ProviderManager mechanism so that it can load the smack.providers XML file from an Android friendly directory . By default Smack loads this from its own resource directory which is not reachable in Android .", "Question : Hello Everyone i am new to android and i am currently stuck on this . I have to return list of public rooms created on xmpp server . The problem i am having is that the code below works fine for java but there is a null-pointer exception in case of android . Any help regarding this would be appreciated . I am using an openfire server and testing it on local machine so that is the reason why i am using ip Address instead of domain-name . I am using smack library for JAVA and Asmack Library for android Comment : The stacktrace of the NPE would be helpful . We can t help if you don t show use the actual error . Also make sure to use an up to-date version of aSmack . See this question http : stackoverflow.com questions 4769020 android-and-xmpp-currently-available-solutions 5487854 5487854 Comment : Thankyou very much for ur help . it was a library issue . So i have already solved it Comment : If you have solved your question add the solution as an answer : meta.stackexchange.com questions 17845 http : meta.stackexchange.com questions 17845 etiquette-for-answering-your-own-question .. . Answer : The problem is that the static block of the ServiceDiscoveryManager class http : fisheye.igniterealtime.org browse smack trunk source org jivesoftware smackx ServiceDiscoveryManager.java hb true to63 has to be evaluated before any connection is created . In smack this is done via an configuration file but this approach does not work on Android and therefore on aSmack . The workaround mentioned in the answer is somehow ugly since you really don t want to use the Constructor to fetch the SDM object instead the get method should be used . But the get method only works if there was actually a SDM created for the connection . So in order to init the SDM correctly on Android you need to call the full forName notation http : docs.oracle.com javase 6 docs api java lang Class.html forName 28java.lang.String 20boolean 20java.lang.ClassLoader 29 to init the static blocks of the class before you create the first XMPP Connection object . This is tracked as aSmack Issue 8 https : github.com Flowdalic asmack issues 8 Comment : THanku very Much for the answer Comment : @SherazKhilji feel free to upvote the answer s if you find it helpfull", "Question : I m trying to implement a simple jabber messenger on Android using asmack library . Here s the code : .. . .. . Exception I get after connection.login connection looks fine : .. . .. . What could be the mistake Comment : Hum could you please add more details what server are you trying to connect to are you sure to specify the right port domain host service unavailable generally means that it can be reached or that you specified wrong information . .. . Answer : Asmack is able to establish a new connection to the server but it falls into Non-SASL mode http : fisheye.igniterealtime.org browse smack trunk source org jivesoftware smack XMPPConnection.java r 12588 to212 for some reason The call of NonSASLAuthentication.authenticate NonSASLAuthentication.java : 77 . I think that s what the server is trying to tell you with the service-unavailable 503 response is that it does not support Non-SASL authentication . Try to debug why smack does not try SASL authentication . .. . .. . Note : The lines in the smack source viewer are a bit off because off different versions and the patches from asmack . Comment : what can be the solution for this we need to authenticate facebook user and fetch list of friends and send message to them but we cannot loggin as we are getting authentication error Comment : this is getting after some times as message body what could be the issue", "Question : In the past few days I tried GTalk Facebook chat integration with Android Smack http : www.igniterealtime.org projects smack index.jsp and it s working fine . I tried to implement the same logic for AIM MSN chat integration with Android Smack http : www.igniterealtime.org projects smack index.jsp but it did not work . Is there any special configuration needed for AIM chat integration Please provide any way or any tutorial or reference link that can solve my problem . Thanks in advance . Comment : Is it uses XMPP server for chat Comment : I m trying to get xmpp for facebook working now I have gtalk but I m having issues with the facebook-authentication would you mind sharing your working code .. . Answer : For MSN we can used LiveSDK XMPP Sample for Android https : github.com liveservices LiveSDK tree master Samples XMPP-Samples Android .. . .. . Note : There is some authentication issue in this library I m working on it and clear ASAP . For AIM this API http : dev.aol.com may help to get authentication . Comment : i gone through those links what you shared by using live sdk we cant chat with buddy i think it s a file sharing app . and from AIM api i did t get anything from that . can you share any links how you worked on this.please .", "Question : Hi there i am using asmack-android-19-0.8.10.jar and openfire to develop file-transfer . i refered to harryjoy.me http : harryjoy.com 2012 08 18 file-transfer-in-android-with-asmack-and-openfire comments but i have problems when sending the file where transfer.getProgress always return 0.0 . below is the log file . Send File : .. . .. . Receive file : .. . .. . This is the error-code i got from transfer.getException for sendFile .. . .. . UPDATED .. . .. . Sender.java .. . .. . Receiver.java .. . .. . ServiceFileTransferListener.java Comment : have you solved your problem of file sending in xmpp if yes please send me the dummy for sending file Comment : @nitesh i solved the file sending problem by using back the older version of asmack asmack-jre-buddycloud-2012-12-11.jar . Refer to my question above harryjoy.com Comment : i got service unavailable 503 while debuging is this related to my server or not Comment : XML RESPONSE error-code 503 type cancel service-unavailable xmlns urn : ietf : params : xml : ns : xmpp-stanzas error iq Comment : check your connection to the server and please follow as the guide stated . Then should be no problem . .. . Answer : First thanks for the detailed question . That makes it easy to get an idea what could be wrong . While vitalyster http : stackoverflow.com a 23519620 194894 is right the stanza is a violation of the spec I don t think this is the cause for the problem . What looks wrong is that we don t see any result IQs for the set IQs that carry a data element ie the stanza of Example 7 in XEP-47 http : www.xmpp.org extensions xep-0047.html send is missing . That s all I can say with the provided information . I suggest you grab a debugger to find the root cause . Good that a Smack is open-source .. . .. . Edit : You call SmackAndroid.init Context as aSmacks README tells you to do or not Comment : Yes . I ve included SmackAndroid.init getApplicationContext before creating connection . Also add IQProvider manually . What do you mean grab a debugger ConnectionConfiguration..setDebuggerEnabled true i included this as well Comment : i tried use back the version of asmack-jre-buddycloud-2012-12-11.jar guess what it worked how it is possible Comment : @Flow of course when both parties uses Smack they can somehow transfer files without following specs : But when another party uses different library it is a root of problem . For example I get negotiation failed error just after that stanza and that is why I have found specs violation . Not all libraries have detailed error reporting and we can see lot of filetransfer-related Smack questions here on StackOverflow when user can not send receive file using Smack . Comment : @vitalyster why is it an old asmack would work but not for the new version i revert back to the old version but other features of my app crash due to the old library has some bug on other features . Comment : @vitalyster It is correct that there are many file-transfer related questions to Smack . I usually credit this due the complexity of XMPP file-transfer and most people failing to understand it . But of course I m happy about every report where Smack violates the spec .", "Question : I have this code almost unmodified from examples : .. . .. . This works perfectly in a Desktop environment using Smack library but I can t get it to work in Android where I have to use asmack . The problem is searchForm is null because getSearchForm returns null . This seems to be pretty odd as I can t seem to find any documentation on which cases that method should return null . The server is Openfire if it helps . .. . Answer : Update 04 2014 .. . .. . The original answer below contains now old and outdated information . Since aSmack 0.8 it s no longer necessary to manually configure the provider manager . Calling SmackAndroid.init Context as the aSmack README tells you to do takes care of all necessary initializations . Original Answer .. . .. . In the end the problem was global to all asmack . It seems it s a known issue : the smack.providers file usually in META-INF folder in normal versions of smack can t be loaded in Android because its jar packaging . So all the providers must be initialized by hand as shown in Mike Ryan s answer in this thread : http : community.igniterealtime.org message 201866 201866 .. . .. . I removed the stuff that didn t worked for me and this is the result . .. . .. . I only commented a couple lines and voil . This should be called before instantiating XMPPConnection with a line like this : .. . .. . Now I ll have to deal with my other problems but at least this one is solved :", "Question : Here is my code for connecting to OpenFire through aSmack API . I am getting an error saying unfortunately app has stopped when trying to run the app on my phone . When i remove the code of aSmack the app is working fine with creating one button . I also have added the jars into the classpath . Please help me . And here is the manifest code : Comment : can you add logcat log .. . Answer : Without log after watching your code what I can guess is that you are running smack methods on Main Thread. . The exception should be of NetworkOnMainThreadException . You should do the task in your button click on background threads . You might want to create AsyncTask for this . Also you dont have Internet permission . So please fix that too. . While implementing Smack you need to take care of maintaining sessions of Smack Connections and related ones. . For this you can refer the following the GitHub demo app : Smack Android Demo https : github.com meisterfuu SmackAndroidDemo", "Question : Hello Everyone i am new to android and i am currently stuck on this . I have to return list of public rooms created on xmpp server . The problem i am having is that the code below works fine for java but there is a null-pointer exception in case of android . Any help regarding this would be appreciated . I am using an openfire server and testing it on local machine so that is the reason why i am using ip Address instead of domain-name . I am using smack library for JAVA and Asmack Library for android Comment : The stacktrace of the NPE would be helpful . We can t help if you don t show use the actual error . Also make sure to use an up to-date version of aSmack . See this question http : stackoverflow.com questions 4769020 android-and-xmpp-currently-available-solutions 5487854 5487854 Comment : Thankyou very much for ur help . it was a library issue . So i have already solved it Comment : If you have solved your question add the solution as an answer : meta.stackexchange.com questions 17845 http : meta.stackexchange.com questions 17845 etiquette-for-answering-your-own-question .. . Answer : I have found the Solution to the problem . .. . .. . The Android asmack library was using this in getHostedRooms Connection connection String serviceName method .. . .. . i replaced it with .. . .. . For those who are confused where this method is its in .. . .. . Package : org.jivesoftware.smackx.muc .. . .. . File : MultiUserChat.java .. . .. . After you have done this . We have to register all the providers in Android whose detail can be found here http : community.igniterealtime.org message 201866 201866 . These providers are automatically registered when are using JAVA s smack library In java Development but in Android we have to register them ourself .", "Question : I am using asmack library for my chat application.I am using below described code for getting messagecount : .. . .. . But i got exception as described below : .. . .. . Anybody who have implemented it with asmack or have alternate solution with smack lib Please help me to get out of this problem . Comment : u got any solution .. . Answer : Just checking did you configure your smack providers Before establishing the connection this should be called .. . .. . Without calling this you will definitely get" ] }
[ "yes-answer-long", "yes-answer-short" ]
asmack
UNK_RELATION
freestanding@operating-system@100
freestanding -- a freestanding implementation of c++ is an implementation that can work without an @placeholder and has an implementation-defined set of libraries .
{ "confidence": [ 58.079071044921875, 52.847381591796875, 51.684417724609375, 45.800331115722656, 42.226829528808594, 41.70301818847656, 39.415794372558594, 39.36220169067383, 39.23230743408203, 37.974830627441406, 36.31761932373047, 36.31761932373047, 35.687408447265625, 35.687408447265625, 35.494293212890625, 34.20123291015625, 34.20123291015625, 32.67697525024414, 32.67697525024414, 30.75124168395996, 29.59029197692871, 29.59029197692871, 28.224815368652344, 28.224815368652344, 27.599668502807617, 25.627578735351562, 21.739849090576172, 20.046916961669922, 18.253761291503906, 18.103742599487305, 17.91379737854004, 17.47362518310547, 17.19255256652832, 17.19255256652832, 17.15610694885254, 16.999553680419922, 16.898656845092773, 16.83775520324707, 16.602571487426758, 16.602571487426758, 16.309770584106445, 16.24435043334961, 15.948511123657227, 15.882692337036133, 15.668563842773438, 15.56280517578125, 15.538858413696289, 15.507686614990234, 15.416918754577637, 15.39149284362793, 15.362215042114258, 15.358530044555664, 15.358530044555664, 15.140692710876465, 15.124773979187012, 14.895956993103027, 14.889525413513184, 14.825881958007812, 14.803635597229004, 14.803635597229004, 14.749141693115234, 14.612918853759766, 14.612918853759766, 14.612918853759766, 14.612918853759766, 14.612918853759766, 14.612918853759766, 14.612918853759766, 14.551155090332031, 14.370783805847168, 14.370783805847168, 14.370783805847168, 14.36401081085205, 14.172877311706543, 14.172877311706543, 14.172877311706543, 13.988347053527832, 13.773223876953125, 13.64548397064209, 13.55959415435791, 13.55959415435791, 13.307113647460938, 13.126742362976074, 13.126742362976074, 13.126742362976074, 12.861827850341797, 12.565114974975586, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305, 12.313947677612305 ], "content": [ "I understood the difference between hosted and freestanding implementation .", "http : stackoverflow.com questions 30825151 is-there-a-meaningful-distinction-between-freestanding-and-hosted-implementation", "For example a conforming freestanding implementation doesn t have to support malloc but a conforming hosted implementation does .", "The option -nostdinc is too restrictive I still want to use the headers required for a freestanding implementation in particular stddef.h and limits.h .", "In freestanding mode the compiler can not rely on semantical considerations .", "Curious.. . why are you building for freestanding", "In freestanding mode using strcpy function means ANYTHING .", "I m writing C++ code to run in a freestanding environment basically an ARM board .", "Freestanding implementations of the C programming language are primarily used for operating-system development and embedded systems where some features required for a hosted implementation such as a file system or floating-point math may not be available .", "So for the freestanding build target I create a folder include-freestanding-c89 and link the relevant system headers -- float.h iso646.h limits.h stdarg.h and stddef.h -- there .", "Possible duplicate of Is there a meaningful distinction between freestanding and hosted implementations", "So why would we not want to use the biltins with a freestanding environment", "Also a minimal system is needed to actually build a C library so this is another case of a freestanding environment .", "You may in freestanding mode decide to format your hard drive with strcpy and this is perfectly legal for the C language .", "It simply imposes a more limited set of requirements on such freestanding implementations than it does on hosted implementations .", "I can do literally anything I want in a freestanding environment but only exactly what I said I wanted .", "The C89 directory can then be used as base for include-freestanding-c99 the extra headers to link are stdbool.h and stdint.h .. . .. . The command-line to use is then .. . .. . or", "A freestanding environment doesn t have to provide most of the C library which may be a burden to implement for some embedded system that doesn t need the functionality .", "The GCC docs at http : gcc.gnu.org onlinedocs gcc C-Dialect-Options.html say under -ffreestanding that a freestanding environment implies -fno-builtin .", "I might be misunderstanding exactly what a freestanding environment is or how it works but it seems to me that since the builtins usually emit inline code instead of calling the library function this is ideal for a freestanding environment where the standard-library may be missing functionality or even missing entirely .", "The code I m working on is supposed to be possible to build for both hosted and freestanding environments providing private implementations for some stdlib functions for the latter case .", "The idea of freestanding mode is that there is no standard-library even on definition level except float.h iso646.h limits.h stdarg.h stdbool.h stddef.h stdint.h C99 standard 4.6 .", "You can however in freestanding mode explicitly do something like define memcpy x y z builtin memcpy x y z As stated in the gcc manual .", "stating that the ability to create PIC depends on the operating-system I wondered : .. . .. . Can GCC create position independent code for freestanding environments when no operating-system is present", "So I had to come up with my own implementation .", "Mixing C++ with C libraries should not be a problem .", "- nope you can write a kernel without a C library if you want to or with something totally different .", "I tried to use std : : function without any luck also I d rather not depend on libraries not even the standard one", "I m not exactly sure what the stdlib libc has to do with a kernel but if you want to C or assembly code to link with your library the functions need to be compiled with extern C so you don t have the C++ name-mangling issues .", "Most of the time I see the code written in C and then wrapped in extern C .", "Moreover you can in all cases use builtin xxx directly but it is not standard C it is GNU extension .", "This is what it looks like : .. . .. . The heap symbol is defined by the linker .", "Not having access to a standard-library does not directly impact performance in any way it simply limits the C features that a program can use .", "From the C++ standard point of view you can implement the standard-library in COBOL as long as it does what the standard says it should .", "IT would be nice if the entire thing could be written in C++ .", "Basically what EXTRN does is tell the assembler that a symbol label is defined outside of the file .", "extern C is only needed to stop the C++ compiler from trying to search for the mangled names and as such it s only needed around the declarations of the functions .", "That s doable but I m not sure if the additional work to essentially create your own mini-OS outweighs the productivity benefit of using C over assembler .", "One of the tasks in writing a kernel is that a C library must be ported .", "One of the tasks in writing a kernel is that a C library must be ported .", "However this complicates my build-process because there s a lot of files written in C and a lot of files written in C++ that must be linked together and it s just a headache .", "Hosted means someone else is providing utility of which I may or may not make complete use but I can only use what they provided which must include at least a predefined minimal set of stuff", "You can .. . get away with using a C compiler - Definitely avr-gcc for example which supports all AVRs that have RAM .", "I don t have room for the entire C library on my Arduino right now and I program comfortably on it : P I love doing low-level work though .", "Digikey probably has similar prices .", "Obviously I had a lot more memory to work with on the slaves but what I wanted to share with you is this : .. . .. . With regard to your communication protocol bear in mind that the uncalibrated internal oscillator on the ATtiny13 has an accuracy of + - 10 .", "If so how can it be done", "Either way as long as in the end you have an object file with the needed symbols correct calling convention and the standardised behaviour behind each of them you can write that C library in probably almost any language you like .", "For sure this has nothing to do with execution speed why would the availitbility or not of some functions make code faster", "Well since no answer is given yet I d might as well describe how I made this work .", "Can you clarify your issue", "You ll certainly have to do the c runtime setup yourself - stacks etc .", "Why allocate memory from DOS that you can t use in C anyways", "You can probably get away with using a C compiler that targets this architecture but you ll have to create your own runtime environment and not rely on the one supplied with the compiler .", "Ideally you will only need to set up the stack and a few registers .", "I can t compile my game without optimizations because it will exceed 64KB when doing so .", "@ProtonMail : You re getting it backwards the language standard is smply accounting for runtime environments that cannot support the full C standard-library either because of memory constraints or because there s no host operating-system to provide the needed functionality .", "Did I mention that my answer has more content after the comma", "Can I reliably test this with just GCC on a normal workstation build-server", "It s pretty simple although depending on the target system it can be tedious .", "Other headers might be included in these depending on your platform so you might have to do some research and set up more links hence the tediousness if you need to do this for several target platforms .", "What I m saying is : It s quite feasible and sensible to use C as a high level assembler .", "Just like me though you will be facing the problem of providing C with a tiny runtime environment .", "Also you won t have room for the C library so you will need to program any needed functions yourself .", "C-compilers for microcontrollers usually generate simple cstartup code and any necessary interrupt vectors and that s about it .", "If you do not use C library functions very little code is generated in addition to your own functions .", "Including full support for slave enumeration etc . the C source code compiles into 1626 bytes .", "If arguments become parameters std : : tuple char int arg C -3 makes no sense whatsoever .", "Most builtins in GCC work silently -- for instance the compiler sees that you are using strcpy and in hosted mode it may guess that when you are using strcpy you are intending exactly to copy a string .", "Ok . can please you be more concrete on why those two environments were created", "You can however explicitly do something like define memcpy x y z builtin memcpy x y z", "GCC can generate PIC code for an OS-less environment if you take responsibility to load it to the target computer .", "Yes probably though if you know your compiler very well you might be able to get away with c . .. . .. . What you could do is use a compiler to emit any standalone functions you need based on c code then glue them together with a little of your own .", "An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM .", "Google pointed towards using .init array instead of .ctors an EABI thing but that has not changed anything .", "1 If isn t that size-t is 16-bits my concern is that math of hbreak + size +0x40 has a 17-bit answer .", "Yes but that crt0 probably also includes code to set up a heap and possibly other unnecessary code too so it may well be a waste of space to use it .", "I don t think any AVR chip has over 128k of program space and there is not a avr-libc and hence malloc and free due to those restrictions .", "I used Borland Turbo C it was a long time ago in the tiny model and obtained code that was hardly bulkier than I could have done in assembler with a fraction of the effort .", "Note : Code can be found at Linkage http : liveworkspace.org code 4luGAx 240", "Or can anyone spot something obviously wrong with the above code", "The problem now is : I created my runtime https : github.com Zirias clang-libdos here malloc is in src libdos stdlib.c wrote a lot of testing stuff and in the end everything seemed to work quite well .", "Then you can use as much time as you need to read the voltages with your master processor .", "You can either return std : : function or make a named function object-type .", "With Microsoft compiler you can use far to access the memory outside the current data segment .", "It s not just about the naming being bad - if you don t know what they represent how can you hope to correctly implement something like this", "Since you only need to send data which is simpler than receiving and you can select your own protocol it should not be a problem to fit the code in the available memory space .", "I would like to know the reason for such separation .", "One reason is execution speed of the user written program .", "Since free standing does not have access to any standard-library free standing is quicker than hosted .", "Rectify me I am wrong and please tell what are the others reason for creating two different execution environments .", "References : .. . .. . 1 http : www.iso-9899.info n1570.html 4.p6 .. . .. . 2 https : vineetgupta22.wordpress.com 2011 11 02 environment", "are you writing a compare contrast essay for school", "everything you need to know is in your own references .", "One reason is execution speed of the user written program .", "No this is not true .", "The -ffreestanding option looked promising but it seems that it only disables built-ins and sets the STDC HOSTED macro properly it still provides all system headers .", "What am I missing here", "Oh and I m using GCC 4.4.3 for the moment will upgrade to 4.5.0 soon ." ] }
{ "confidence": [ 66.21512603759766, 55.52326202392578, 52.014244079589844, 51.96321105957031, 32.54456329345703, 29.863178253173828, 22.4398250579834, 20.011829376220703, 18.908309936523438, 16.358686447143555, 16.349069595336914, 16.016948699951172, 15.874160766601562, 14.747615814208984, 12.879018783569336, 12.26462173461914, 12.239842414855957, 12.137319564819336, 12.137319564819336 ], "content": [ "Question : I understood the difference between hosted and freestanding implementation . I would like to know the reason for such separation . One reason is execution speed of the user written program . Since free standing does not have access to any standard-library free standing is quicker than hosted . Rectify me I am wrong and please tell what are the others reason for creating two different execution environments . References : .. . .. . 1 http : www.iso-9899.info n1570.html 4.p6 .. . .. . 2 https : vineetgupta22.wordpress.com 2011 11 02 environment Comment : For sure this has nothing to do with execution speed why would the availitbility or not of some functions make code faster A freestanding environment doesn t have to provide most of the C library which may be a burden to implement for some embedded system that doesn t need the functionality . Also a minimal system is needed to actually build a C library so this is another case of a freestanding environment . Comment : Ok . can please you be more concrete on why those two environments were created Comment : are you writing a compare contrast essay for school everything you need to know is in your own references . I can do literally anything I want in a freestanding environment but only exactly what I said I wanted . Hosted means someone else is providing utility of which I may or may not make complete use but I can only use what they provided which must include at least a predefined minimal set of stuff Comment : @ProtonMail : You re getting it backwards the language standard is smply accounting for runtime environments that cannot support the full C standard-library either because of memory constraints or because there s no host operating-system to provide the needed functionality . It simply imposes a more limited set of requirements on such freestanding implementations than it does on hosted implementations . For example a conforming freestanding implementation doesn t have to support malloc but a conforming hosted implementation does . Comment : Possible duplicate of Is there a meaningful distinction between freestanding and hosted implementations http : stackoverflow.com questions 30825151 is-there-a-meaningful-distinction-between-freestanding-and-hosted-implementation .. . Answer : One reason is execution speed of the user written program . Since free standing does not have access to any standard-library free standing is quicker than hosted . No this is not true . Not having access to a standard-library does not directly impact performance in any way it simply limits the C features that a program can use . Freestanding implementations of the C programming language are primarily used for operating-system development and embedded systems where some features required for a hosted implementation such as a file system or floating-point math may not be available .", "Question : The code I m working on is supposed to be possible to build for both hosted and freestanding environments providing private implementations for some stdlib functions for the latter case . Can I reliably test this with just GCC on a normal workstation build-server The -ffreestanding option looked promising but it seems that it only disables built-ins and sets the STDC HOSTED macro properly it still provides all system headers . The option -nostdinc is too restrictive I still want to use the headers required for a freestanding implementation in particular stddef.h and limits.h . What am I missing here Oh and I m using GCC 4.4.3 for the moment will upgrade to 4.5.0 soon . Comment : Curious.. . why are you building for freestanding Are you making one of those hardcore sbin programs Are you writing a kernel I ve only seen -ffreestanding mentioned in the context of custom Linux . Comment : Short answer is market demand . Some of our customers on the embedded mobile side wants our product to be completely self-contained . .. . Answer : Well since no answer is given yet I d might as well describe how I made this work . It s pretty simple although depending on the target system it can be tedious . Using -nostdinc means that the standard system include paths will be skipped other include-paths given with -I will of course still be searched for headers . So for the freestanding build target I create a folder include-freestanding-c89 and link the relevant system headers -- float.h iso646.h limits.h stdarg.h and stddef.h -- there . Other headers might be included in these depending on your platform so you might have to do some research and set up more links hence the tediousness if you need to do this for several target platforms . The C89 directory can then be used as base for include-freestanding-c99 the extra headers to link are stdbool.h and stdint.h .. . .. . The command-line to use is then .. . .. . or", "Question : The GCC docs at http : gcc.gnu.org onlinedocs gcc C-Dialect-Options.html say under -ffreestanding that a freestanding environment implies -fno-builtin . I might be misunderstanding exactly what a freestanding environment is or how it works but it seems to me that since the builtins usually emit inline code instead of calling the library function this is ideal for a freestanding environment where the standard-library may be missing functionality or even missing entirely . So why would we not want to use the biltins with a freestanding environment .. . Answer : In freestanding mode the compiler can not rely on semantical considerations . Most builtins in GCC work silently -- for instance the compiler sees that you are using strcpy and in hosted mode it may guess that when you are using strcpy you are intending exactly to copy a string . Then it may replace strcpy with an extensionally equivalent builtin which is better for the given target to copy a string . In freestanding mode using strcpy function means ANYTHING . The idea is just not the standard-library absence in linkage . The idea of freestanding mode is that there is no standard-library even on definition level except float.h iso646.h limits.h stdarg.h stdbool.h stddef.h stdint.h C99 standard 4.6 . You may in freestanding mode decide to format your hard drive with strcpy and this is perfectly legal for the C language . The compiler thus don t know how to use builtins and it declines to use them at all . Comment : You can however explicitly do something like define memcpy x y z builtin memcpy x y z Comment : You can however in freestanding mode explicitly do something like define memcpy x y z builtin memcpy x y z As stated in the gcc manual . Comment : Moreover you can in all cases use builtin xxx directly but it is not standard C it is GNU extension . Main profit of silent GCC builtins is standard context replacement keeping code portability . If you dont care about compliance and also don t care about the fact that your target may not support this builtin then explicit builtin usage or usage under macro is good option .", "Question : The code I m working on is supposed to be possible to build for both hosted and freestanding environments providing private implementations for some stdlib functions for the latter case . Can I reliably test this with just GCC on a normal workstation build-server The -ffreestanding option looked promising but it seems that it only disables built-ins and sets the STDC HOSTED macro properly it still provides all system headers . The option -nostdinc is too restrictive I still want to use the headers required for a freestanding implementation in particular stddef.h and limits.h . What am I missing here Oh and I m using GCC 4.4.3 for the moment will upgrade to 4.5.0 soon . Comment : Curious.. . why are you building for freestanding Are you making one of those hardcore sbin programs Are you writing a kernel I ve only seen -ffreestanding mentioned in the context of custom Linux . Comment : Short answer is market demand . Some of our customers on the embedded mobile side wants our product to be completely self-contained . .. . Answer : This Xen Makefile uses gcc -print-search-dirs to get the directory with stddef.h and similar adds it with -isystem then uses -nostdinc to build : .. . .. . https : github.com mirage xen blob 2676bc915157ab474ee478d929b0928cf696b385 stubdom Makefile L35", "Question : null .. . Answer : I have always thought that the generation of position independent code PIC basically only depended on the CPU one is compiling for . However after reading this in the GCC documentation http : gcc.gnu.org onlinedocs gcc Code-Gen-Options.html : .. . .. . For the 386 GCC supports PIC for System V but not for the Sun 386i . stating that the ability to create PIC depends on the operating-system I wondered : .. . .. . Can GCC create position independent code for freestanding environments when no operating-system is present Comment : yes . gcc cross compilers for embedded systems will create PIC . The 20 year old version of Solaris that ran on the 386i might not have supported PIC . Comment : Relevant info is here http : www.sonic.net coad sun386i-FAQ . In short gcc was not able to produce PIC code usable on the 386i with native tools such as assembler linker and dynamic loader . GCC can generate PIC code for an OS-less environment if you take responsibility to load it to the target computer . Comment : So 386i is a different kind of computer Then in my eyes the documentation suffers from a bad choice of words . Comment : No it s not . It s a different kind of OS . Comment : Then why does the FAQ say The only OS that runs on the 386i is Sun OS", "Question : I m writing C++ code to run in a freestanding environment basically an ARM board . It s been going well except I ve run into a stumbling block - global static constructors . To my understanding the .ctors section contains a list of addresses to each static-constructor and my code simply needs to iterate this list and make calls to each function as it goes . However I ve found that this section in my binary is in fact completely empty Google pointed towards using .init array instead of .ctors an EABI thing but that has not changed anything . Any ideas as to why my static constructors don t exist Relevant linker script and objdump output follows : .. . .. . -- .. . .. . I m using an arm-elf targeted GCC compiler 4.4.1 . Update : The output binary is also full of static initialization and destruction 0 symbols which I ve never seen before . Update 2 : This is an excerpt from an objdump of a compiled object file which is linked into the main binary with the .ctors section intact : Comment : Well . Just to state the obvious question . Do you in fact have any static-class instances Comment : I certainly do - at least two should be in the final binary for ARM . Comment : Question updated with a bit more information . Comment : static initialization and destruction 0 are for function static objects which shouldn t be constructed until execution passes through them . Comment : @R Samuel Klatchko - ah that makes sense - they re in a very similar location to functions with static objects . The original problem remains though . .. . Answer : This ended up being a build-system problem - the linker script was being specified multiple times on the linker command-line which somehow caused g++ to choke .", "Question : null .. . Answer : I m working on a kernel . One of the tasks in writing a kernel is that a C library must be ported . Some functions such as memcmp strlen and so on have to be rewritten . Most of the time I see the code written in C and then wrapped in extern C . However this complicates my build-process because there s a lot of files written in C and a lot of files written in C++ that must be linked together and it s just a headache . IT would be nice if the entire thing could be written in C++ . Would this make sense Comment : From the C++ standard point of view you can implement the standard-library in COBOL as long as it does what the standard says it should . Comment : Mixing C++ with C libraries should not be a problem . Can you clarify your issue Comment : I m not exactly sure what the stdlib libc has to do with a kernel but if you want to C or assembly code to link with your library the functions need to be compiled with extern C so you don t have the C++ name-mangling issues . Comment : One of the tasks in writing a kernel is that a C library must be ported . - nope you can write a kernel without a C library if you want to or with something totally different . It s up to you . Comment : Do you want to use it from within kernel code or provide it to user applications Either way as long as in the end you have an object file with the needed symbols correct calling convention and the standardised behaviour behind each of them you can write that C library in probably almost any language you like . extern C is only needed to stop the C++ compiler from trying to search for the mangled names and as such it s only needed around the declarations of the functions .", "Question : A little background first : stumbling upon this blog post http : nullprogram.com blog 2014 12 09 I learned it was possible to create DOS .COM files with the GNU linker and it s not even rocket science . Using clang and the -m16 switch creating real-mode compatible 32bit code by prefixing 32bit instructions accordingly this worked out quite well . So I had the idea to try implementing just enough runtime to get a little curses game https : github.com Zirias cursedsnake I wrote recently to compile to a .COM and run in real-mode DOS . The game is small enough so that squeezing everything text data bss heap stack in 64KB seemed doable . Of course it uses malloc . So I had to come up with my own implementation . This is what it looks like : .. . .. . The heap symbol is defined by the linker . Not showing realloc here as it isn t used right now anyways and therefore completely untested . The problem now is : I created my runtime https : github.com Zirias clang-libdos here malloc is in src libdos stdlib.c wrote a lot of testing stuff and in the end everything seemed to work quite well . My game on the other hand is thoroughly tested and checked for invalid memory accesses using valgrind . Still putting both parts together it just crashes . Try building the game from git with make -f libdos.mk you will need to have llvm-clang installed . As I experienced a strange heisenbug first I worked around it for now I guess it COULD be the optimizers fault getting things wrong when compiling for real-mode which is indeed uncommon . But I can t be sure and the next sensitive candidate would be probably my memory-management see above . Now the tricky question : How would I debug such a thing With just my own test code it works very well . I can t compile my game without optimizations because it will exceed 64KB when doing so . Any suggestions Or can anyone spot something obviously wrong with the above code Comment : Minor : Recommend hbreak + size stack - 0x40 -- hbreak + size +0x40 stack to avoid potential underflow . Also at hbreak stack - 0x40 . Comment : As the stack starts at 0xffff and the code at 0x0100 for .COM this would be a very b0rked situation but nevertheless might be a good idea in general Comment : Could the problem be in reverse If stack is 0xFFFF might some computations be overflowing wrapping -around given 16-bit unsigned If so use 32-bit unsigned as in 1UL hbreak + size +0x40 stack - just an idea . Comment : Hmmm .. . it doesn t make sense to have a size-t bigger than 16 bits because addresses greater than 0xffff are invalid in real-mode you d have to use segment registers of course clang doesn t support this . But still pointers are 32bit so the expression should be calculated in 32bit anyways . With some constructed test code my malloc failed as soon as reaching the stack area as expected .. . Comment : 1 If isn t that size-t is 16-bits my concern is that math of hbreak + size +0x40 has a 17-bit answer . 2 : Rather than use with the heap pointer create a global mem N where N is about as large as reasonable possible leaving enough stack for the code . Use mem for your memory-pool . Effectively this is about the same as using the heap but with less asm tricks . 3 In real-mode and .COM thought all pointers are 16-bit same code data stack segment . .. . Answer : If this is real-mode DOS I m not sure about the upper bits of esp . As for malloc use the memory between ss : sp and 0xa000 : 0000 the memory between the top of the stack and the 640k boundary . I don t recall if MS-DOS allocates all of the 640k region for a .COM program or not . There are two DOS calls INT 21H ah 04Ah releases memory ah 048H allocates memory but I don t recall if these are for .COM or .EXE programs . Comment : Wait for .COM cs ds es and using clang I have no way to access memory in any other segment except through inline-assembly of course so I m using just 64KB here . Why allocate memory from DOS that you can t use in C anyways The heap starts wherever sections placed by the linker end right now around ds : 8300 and the stack starts in the same segment from ds : ffff . Comment : With Microsoft compiler you can use far to access the memory outside the current data segment . For example char far fpchar", "Question : I ve got the following function .. . .. . That I can t seem to find a feasible return-type for or way to call I d like to be able to call it alike this .. . .. . Given f arg and param as .. . .. . Anyone got a hint or even a solution Note : Code can be found at Linkage http : liveworkspace.org code 4luGAx 240 Comment : A question : Do you know the difference between the definition of an argument and a parameter Comment : @Xeo : I know the naming is bad yes and it s subject to change once the system gets working . Comment : It s not just about the naming being bad - if you don t know what they represent how can you hope to correctly implement something like this With the correct definition of argument and parameter this code doesn t make a whole lot of sense read : none . Comment : @Xeo : I know what they represent the reason for the name is that this function fits into a larger system where s the arguments to a given template function ends up as parameters in a generated function . Comment : If arguments become parameters std : : tuple char int arg C -3 makes no sense whatsoever . Maybe you should explain what you re trying to do on a larger scale . .. . Answer : You can either return std : : function or make a named function object-type . Comment : I tried to use std : : function without any luck also I d rather not depend on libraries not even the standard one Comment : Then your question is too localized . Comment : Closevote cannons.. . Fire Now really what s the reasoning behind not using standard-library Comment : @Skeen : functional is not on that list of required headers yeah but the same goes for tuple which you rely upon . As such I think it s still too localised . Comment : Did I mention that my answer has more content after the comma", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : I ve done embedded programming in similar constraints . I used Borland Turbo C it was a long time ago in the tiny model and obtained code that was hardly bulkier than I could have done in assembler with a fraction of the effort . What I m saying is : It s quite feasible and sensible to use C as a high level assembler . Just like me though you will be facing the problem of providing C with a tiny runtime environment . Ideally you will only need to set up the stack and a few registers . Also you won t have room for the C library so you will need to program any needed functions yourself . Comment : I don t have room for the entire C library on my Arduino right now and I program comfortably on it : P I love doing low-level work though . Also I will be using avr-gcc . Also I m not sure of the machine code compactness when comparing x86 and avr code .", "Question : Just a simple question : .. . .. . Let s say I had the following two assembly programs : .. . .. . 1 : .. . .. . 2 : .. . .. . Could I call add10 declared in the first file from the second file or vice-versa If so how can it be done even if it isn t feasible .. . .. . NOTE : This will be running on bare metal not on any fancy NT calls Thanks . Edit : I m using NASM on Windows . Comment : To answer this we need to know what assembler and linker you are using . .. . Answer : If both files are linked into the same executable yes . Lookup EXTERN or EXTRN . Comment : I tried searching it up although I couldn t seem to find anything related . Do you have any links Comment : nasm.us doc nasmdoc6.html http : www.nasm.us doc nasmdoc6.html Scroll down to EXTERN 6.5 . Basically what EXTRN does is tell the assembler that a symbol label is defined outside of the file .", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : Yes probably though if you know your compiler very well you might be able to get away with c . .. . .. . What you could do is use a compiler to emit any standalone functions you need based on c code then glue them together with a little of your own . You ll certainly have to do the c runtime setup yourself - stacks etc . Comment : Well I believe avr-gcc comes with a simple crt0 that will bootstrap main but good point . Have to check into it . Comment : Yes but that crt0 probably also includes code to set up a heap and possibly other unnecessary code too so it may well be a waste of space to use it . Comment : are you sure I don t think any AVR chip has over 128k of program space and there is not a avr-libc and hence malloc and free due to those restrictions . Comment : Nope I m not sure hence probably may it s still a good idea to check how big the crt is though . Comment : C-compilers for microcontrollers usually generate simple cstartup code and any necessary interrupt vectors and that s about it . If you do not use C library functions very little code is generated in addition to your own functions .", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : You can probably get away with using a C compiler that targets this architecture but you ll have to create your own runtime environment and not rely on the one supplied with the compiler . That s doable but I m not sure if the additional work to essentially create your own mini-OS outweighs the productivity benefit of using C over assembler . Comment : You can .. . get away with using a C compiler - Definitely avr-gcc for example which supports all AVRs that have RAM .", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : I designed a master-slave system recently using an AT90USB646 master and ATtiny85 slaves . Obviously I had a lot more memory to work with on the slaves but what I wanted to share with you is this : .. . .. . With regard to your communication protocol bear in mind that the uncalibrated internal oscillator on the ATtiny13 has an accuracy of + - 10 . This means you won t be able to use e.g . RS-232 communications . I used a variant of the Dallas 1-Wire protocol in my system . Including full support for slave enumeration etc . the C source code compiles into 1626 bytes . Edit : Whoops didn t realize the question is so old . Hopefully this may still be of some help .", "Question : Just a simple question : .. . .. . Let s say I had the following two assembly programs : .. . .. . 1 : .. . .. . 2 : .. . .. . Could I call add10 declared in the first file from the second file or vice-versa If so how can it be done even if it isn t feasible .. . .. . NOTE : This will be running on bare metal not on any fancy NT calls Thanks . Edit : I m using NASM on Windows . Comment : To answer this we need to know what assembler and linker you are using . .. . Answer : Two files : .. . .. . 1 : .. . .. . 2 : .. . .. . Assemble link them together . I used as linker GoLink other linkers are similar : .. . .. . HTH Comment : Just in case you switch to microsoft assembler MASM or ML it uses the directive public instead of global .", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : You may consider upgrading to the ATTiny25 http : www.atmel.com dyn products product card v2.asp part id 3610 . It is a more capable 8-pin AVR that includes Atmel s Universal Serial Interface . It is capable of doing 1-wire serial comms in hardware given only a few bytes of software . Comment : Yes I ve actually looked at those and bought a couple but I will need a massive amount of microcontrollers so I wanted to go as cheap as possible . Comment : attiny13 in bulk is about 1 attiny25 in bulk is about 1.10 . I think you re very likely to get a lot more than 10 more functionality if serial comms are your main goal . Comment : where at at sparkfun there was like 1.50 difference between them last I checked . Comment : Those are prices from mouser.com buying 100 units at a time . Digikey probably has similar prices . If you are going to need more than 1000 chips consider sourcing them directly from Atmel I think they come 1060 to a reel . Never buy in bulk from SparkFun their prices are a bit inflated for qty1 let alone qty100 .", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : Since you only need to send data which is simpler than receiving and you can select your own protocol it should not be a problem to fit the code in the available memory space . I once created software for an industrial control panel that contained 8x14 segment LCD display some LEDs some buttons a serial I2C EEPROM and serial interface to the host . A 4 bit processor was used . The device did not have any serial interface so both the RS232C interface and I2C bus had to be implemented in software . On top of that there was Modbus protocol which among other things requires CRC calculations some exact timing and the application program . The device had some 128 x 4 bits of RAM and 1kW 2kW 3kW or 4kW of ROM 10 bits per word . The size of the final program was about 1100 words so it did not quite fit in the smallest device . I used Assembler of course . However instead of using multiple microcontrollers you could consider using a hardware solution . You could use a sample and hold circuit . For that you need an array of analog switches and capacitors and perhaps op-amps . Just issue a trigger to latch all the voltages into the capacitors . Then you can use as much time as you need to read the voltages with your master processor . Update : Forgot to mention that there are ready-made sample-and-hold amplifiers that need very little or no external components . This is probably the easiest solution . Comment : Hmm. . I hadn t thought about a hardware solution to this before. .", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : 1k of program space should be plenty considering that your protocol only needs to be complicated enough to send a single integer when tickled . Look into Manchester Encoding http : en.wikipedia.org wiki Manchester encoding .", "Question : If your lazy see bottom for TL DR .. . .. . Hello I am planning to build a new prototype project dealing with physical computing . Basically I have wires . These wires all need to have their voltage read at the same time . More than a few hundred microseconds difference between the readings of each wire will completely screw it up . The Arduino takes about 114 microseconds . So the most I could read is 2 or 3 wires before the latency would skew the accuracy of the readings . So my plan is to have an Arduino as the master of an array of ATTinys . The arduino is pretty cramped for space but it s a massive playground compared to the tinys . An ATTiny13A has 1k of flash ROM program space 64 bytes of RAM and 64 bytes of not-durable and slow EEPROM . I m choosing this for price as well as size .. . .. . The ATTinys in my system will not do much . Basically all they will do is wait for a signal from the Master and then read the voltage of 1 or 2 wires and store it in RAM or possibly EEPROM if it s that cramped . And then send it to the Master using only 1 wire for data . no room for more than that . So far then all I should have to do is implement trivial voltage reading code using built-in ADC . But this communication bit I m worried about . Do you think a communication protocol using just 1 wire could even be implemented in such constraints TL DR : In less than 1k of program space and 64 bytes of RAM and 64 bytes of EEPROM do you think it is possible to implement a 1 wire communication protocol Would I need to drop to assembly to make it fit .. . .. . I know that currently my Arduino programs linking to the Wiring library are over 8k so I m a bit concerned . Comment : This was a confusing question since 1wire is an actual bus . Apparently this wasn t about that . en.wikipedia.org wiki 1-Wire http : en.wikipedia.org wiki 1-Wire .. . Answer : Why wouldn t you just use sample-and-hold hardware rather than a pile of microcontrollers Comment : The short answer : because I m a noob ." ] }
[ "yes-answer-long", "yes-answer-short" ]
operating-system
UNK_RELATION
jspdf@javascript@53
jspdf -- jspdf is an open-source library written in @placeholder used for generating pdf documents .
{ "confidence": [ 48.60612487792969, 47.91846466064453, 46.497276306152344, 46.260719299316406, 46.037899017333984, 45.92311096191406, 45.30412292480469, 44.058189392089844, 44.005859375, 43.765663146972656, 43.765663146972656, 43.765663146972656, 43.765663146972656, 43.75578308105469, 43.73609924316406, 43.514305114746094, 43.404144287109375, 43.1698112487793, 43.12677764892578, 43.09672927856445, 43.030784606933594, 42.74504089355469, 42.74504089355469, 42.44920349121094, 42.40852355957031, 41.98992919921875, 41.98992919921875, 41.96031188964844, 41.87320327758789, 41.7582893371582, 41.7582893371582, 41.45587921142578, 41.45587921142578, 41.42626190185547, 41.42626190185547, 41.130584716796875, 41.10194396972656, 40.87164306640625, 40.87164306640625, 40.48326110839844, 40.42978286743164, 40.219825744628906, 40.219825744628906, 40.219825744628906, 40.1930046081543, 40.119686126708984, 39.91741943359375, 39.91741943359375, 39.91741943359375, 39.91741943359375, 39.84136962890625, 39.795166015625, 39.19920349121094, 39.17668533325195, 39.12636184692383, 38.89679718017578, 38.89679718017578, 38.89679718017578, 38.89679718017578, 38.570159912109375, 38.51926040649414, 38.44558334350586, 38.37605667114258, 38.22058868408203, 38.171287536621094, 37.893104553222656, 37.893104553222656, 37.75276184082031, 37.673553466796875, 37.673553466796875, 37.58789825439453, 37.58789825439453, 37.58357620239258, 37.549537658691406, 37.549537658691406, 37.549537658691406, 37.549537658691406, 37.549537658691406, 37.49863815307617, 37.265647888183594, 37.265647888183594, 37.265647888183594, 37.07038116455078, 36.84032440185547, 36.56727600097656, 36.56727600097656, 36.56727600097656, 36.56727600097656, 36.385955810546875, 36.354644775390625, 36.354644775390625, 36.354644775390625, 36.275394439697266, 36.27232360839844, 36.035343170166016, 35.88538360595703, 35.88538360595703, 35.88538360595703, 35.7081298828125, 35.691749572753906 ], "content": [ "You need to include the jspdf library before the jspdf-autotable plugin .", "The attachment file is a pdf generated by JSPDF library .", "I have an html-table with rowspan colspan.I am using jspdf and jspdf-autotable for exporting that html-table to pdf .", "jsPDF cant .", "I am trying to generate pdf on client-side using jsPDF library .", "Why is jspdf and jspdf-autotable tagged", "I am using jspdf to generate a pdf file .", "Is it possible to add HyperLink in jsPDF", "I ve written a web application to create and download a pdf document on client-side using jsPDF https : github.com MrRio jsPDF and Downloadify http : raldenhoven.github.io downloadify .", "I m using jsPDF to generate PDF format .", "It is currently not suitable to use jspdf for converting html to pdf .", "jsPDF prepares the document and Downloadify downloads it as a pdf .", "I am using canvg and jspdf to export in pdf .", "I need to export the HTML table to pdf file using jspdf .", "jsPDF does have a fromHTML function see the HTML Renderer example at : mrrio.github.io jsPDF http : mrrio.github.io jsPDF", "In order to generate the PDF i m using JSPdf https : github.com MrRio jsPDF but i m not able to get the whole content of the page saved on the pdf .", "I am using jsPDF and jsAutotable to generate pdf for the table that is in the DOM .", "I m using jspdf with the plugin jspdf-autotable to create a pdf for a very wide table is there a way to auto fit the table column data to any page-size", "I have used jsPDF for writing the JSON data into a PDF file .", "Am trying to print the Data into the PDF so i used jsPdf at that time the data s are not aligned properly into my PDF table .", "Working demo http : mrrio.github.io jsPDF of jsPDF with addHTML function .", "jsPDF code will convert div into an image and then it will save it as a pdf .", "I m using jsPDF to generate a pdf on client-side .", "I am using jsPDF AutoTable Plugin for my table pdf .", "Is it possible to include custom fonts in jsPDF", "In my case I use Highcharts http : www.highcharts.com with jsPDF https : parall.ax products jspdf to render pdf .", "Using jspdf https : github.com MrRio jsPDF I have generated pdf file on the client-side AngularJS .", "I am trying to generate a PDF using the jsPDF library https : github.com MrRio jsPDF from within a mobile Cordova app .", "- jsPDF page http : parall.ax products jspdf", "JsPdf also has functionality for this .", "jsPDF is able to use plugins .", "I created html-table and tried to generate pdf using jsPDF .", "I am having trouble in rendering svg element to pdf using jspdf .", "Here it is : github.com MrRio jsPDF blob master jspdf.js L1595 https : github.com MrRio jsPDF blob master jspdf.js L1595 .", "You can also use the jsPDF-AutoTable https : github.com simonbengtsson jsPDF-AutoTable plugin .", "I used the blob output format of jsPDF with success .", "There are some examples in the jspdf-autotable repo .", "Using the jsPDF plugin I am creating a .pdf file and generating a download based on a button click .", "I got struck for the last two days to set a column width for generating PDF using jsPDF .", "I took your work and issued a PR github.com MrRio jsPDF pull 475 https : github.com MrRio jsPDF pull 475 which was just merged into master of jsPDF .", "Then just create a jsPDF object and save to pdf the entire body tag or whatever : .. . .. . .. . var pdf new jsPDF p pt a4 .. . pdf.addHTML document.body function .. . pdf.save web.pdf .. . .. . .. . .. . script src https : cdnjs.cloudflare.com ajax libs html2canvas 0.4.1 html2canvas.js script .. . script src https : cdnjs.cloudflare.com ajax libs jspdf 1.0.272 jspdf.debug.js script .. . .. . body .. . p id to-pdf HTML content.. . p .. . body .. . .. . You can find more examples on the jsPDF website : http : mrrio.github.io jsPDF", "Is it even possible with jsPDF. .", "In general is it possible to to that with jspdf", "in jsPDF v0.9.0 rc2", "there is also a method in jsPDF which is not so popular i.e .", "I updated the answer with a work around for an issue with the latest version of jspdf and the latest versions of jspdf-autotable .", "I am using jsPDF to convert my html to pdf .", "I am having trouble converting a div into PDF with jsPDF v1.3 .", "Please help me to set the pdf column width from jsPDF .", "So you d have to get the PDF generated by JsPDF and pass it to the server .", "I assume you created the jspdf-autotable tag .", "First you have to include jsPDF http : mrrio.github.io jsPDF library and also html2canvas http : html2canvas.hertzen.com or rasterizeHTML http : cburgmer.github.io rasterizeHTML.js .", "How to use that jspdf in Typescript", "script src https : cdnjs.cloudflare.com ajax libs jspdf 1.2.61 jspdf.debug.js script .. . .. . -- EDIT : For now add this line between the libraries -- .. . -- The reason being that jspdf includes a version of requirejs which -- .. . -- jspdf-autotable currently is not expecting .", "On their page parall.ax products jspdf https : parall.ax products jspdf they state that they support IE6+ via a shim .", "I m using jsPDF and svg to pdf to export both an SVG and a table to a PDF .", "You can create a PDF using jsPDF by inserting images and texts etc. .", "Is there a way to use the whole original PDF in jsPDF and just position the text", "I m looking for a solution about highcharts export to PDF with jsPDF .", "Check https : github.com MrRio jsPDF .", "I want to convert some of my divs into PDF and I ve tried jsPDF library but with no success .", "Check out this example https : github.com simonbengtsson jsPDF-AutoTable blob master examples examples.js L258 a demo is here https : simonbengtsson.github.io jsPDF-AutoTable spans .", "Is there any option to enhance jspdf to support Unicode or any other library which supports Unicode of course there s a way - github.com MrRio jsPDF contributing https : github.com MrRio jsPDF contributing .", "I am trying to generate PDF file from HTML table using JSPDF and AutoTable .", "While trying to use jsPDF https : github.com MrRio jsPDF I m getting the error .. . .. . My code is simple : .. . .. . HTML .. . .. . JS .. . .. . I used it in Laravel with Bower and Elixir gulp but I get the same error : .. . .. . if using .. . .. . I am accepting alternatives to jsPdf https : github.com MrRio jsPDF if you got any .", "jsPDF supports only JPEG format of the images for now .", "I want to submit HTML to jspdf not text .", "output is same for both files except those two strings : .. . .. . new-version file Producer : jsPDF 1.0.0-trunk .. . .. . old pdf Producer : jsPDF 0.9.0rc2 .. . .. . I searched about jsPDF it s a client-side tool to generate pdf files .", "I struggled to converted SVG Files into PDF using JSPDF .", "I am using jspdf for creating PDF inside browser .", "jspdf-AutoTable https : github.com someatoms jsPDF-AutoTable raw master sample2.png .. . .. .", "github issue with some advice on this is here github.com MrRio jsPDF issues 91 https : github.com MrRio jsPDF issues 91", "We developed a Web App and used jsPDF to create PDFs on-the-fly .", "I am using jsPdf + html2canvas for this .", "For that I found jsPDF may be usefull .", "But I can t import the jspdf script .", "This issue is resolved in latest version of JSPDF .", "If it is solely canvas then Jspdf is probably enough .", "I m trying to embed client-side input images in a PDF which is generated using jspdf library .", "I am trying to generate PDF file from html-table using JSPDF and AutoTable .", "For all it matters the entire table can be hidden but jspdf AutoTable will still render it in a pdf .", "Am trying to print the dynamic data into the PDF using jsPdf AutoTable .But am failed to do that .", "I made a div that uses object tags to hold the pdf and it does load a pdf file but it wont the load the jsPDF .", "This answer helped me with my table overflow problem for jsPDF .", "EDIT .. . .. . I checked the jsPDF website http : parall.ax products jspdf but I think they don t support CSS .", "I have installed jsPDF package via npm using npm-install jspdf --save .", "jsPDF is not defined means that er jsPDF isn t defined so you have a script loading problem .", "Also check github.com MrRio jsPDF issues 339 https : github.com MrRio jsPDF issues 339", "I have an HTML table with rowspan colspan.How can i export this table to pdf using JSPDF-Autotable or any other export to pdf plugin", "I am using jsPDF it works fine .", "How to set the column height and width for table in jsPDF", "Here https : simonbengtsson.github.io jsPDF-AutoTable is a demo .", "I am very happy to use jsPDF library which helps me to export my HTML page as PDF file .", "I am using jspdf to convert a webpage into a pdf document and I have the from html plugin included .", "How to properly use jsPDF library http : stackoverflow.com questions 16858954 how-to-properly-use-jspdf-library might give you a little more of what you need .", "See the docs https : github.com simonbengtsson jsPDF-AutoTable for further information .", "Pt means points and jspdf-autotable only supports that for now", "Something like this : .. . .. . Do note that you need jspdf-autotable 2.0.33 .", "I found jsPDF here : https : github.com MrRio jsPDF .. . .. . There is the plugin jspdf.plugin.sillysvgrenderer.js in the same folder and where we can find an exemple of PDF created in the folder test .", "I downloaded the library from http : parall.ax products jspdf ." ] }
{ "confidence": [ 60.1181640625, 58.667579650878906, 57.84244918823242, 56.89228820800781, 56.040077209472656, 55.97977828979492, 55.66663360595703, 55.26763916015625, 54.98462677001953, 54.81874084472656, 54.443172454833984, 54.31772994995117, 54.186309814453125, 53.98747634887695, 53.641048431396484, 53.4411506652832, 53.41856002807617, 53.418121337890625, 53.064674377441406, 53.063072204589844 ], "content": [ "Question : null .. . Answer : I m struggling to get jsPDF to generate PDF files that can be read by most viewers . I m using the latest version of jspdf.min.js and my javascript is pretty much what you d find on the online examples : .. . .. . The html is also very basic at the moment : .. . .. . The PDF is generating just fine but when I post it through to PHP and email it GMail cannot view the document CPanel s RoundCube does not open it in its own viewer and Mozilla Firefox s normal behaviour is also to open the PDF in its own viewer which does not happen . The download prompt appears and if I download the file and open it on my PCs standard viewer it opens just fine this is Adobe Reader . The same happens if I download the file and email it to myself to GMail or my RoundCube it does not open in their viewers as normal behaviour does . So I m gathering there is something wrong in the way the PDF is being generated . ALSO the reason I say the PDFs are being generated abnormally is because it works just fine in an older version of jsPDF . Take this fiddle for example : http : jsfiddle.net 5ud8jkvf .. . .. . It s using an older version of jsPDF and it generates a proper PDF readible by both GMail and it even opens up in Mozilla Firefox s viewer . It s using this version of jsPDF : http : cdnjs.cloudflare.com ajax libs jspdf 0.9.0rc1 jspdf.min.js .. . .. . But the latest version as mentioned GMail just gives the There was a problem previewing this document . - and prompts you to download the PDF . So what gives I m I generating the PDF incorrectly Thanks . Edit : .. . .. . I ve created a fiddle using the exact same fiddle as above but instead this new fiddle uses the latest version of jsPDF https : cdnjs.cloudflare.com ajax libs jspdf 1.2.61 jspdf.min.js : .. . .. . http : jsfiddle.net 4Lvz1jsj 1", "Question : I am using jsPDF it works fine . It downloads the document as PDF but the thing is I am getting wrong design for the same I want the table as displayed on the site . How to set the column height and width for table in jsPDF Here is my script Comment : Any body here to help.. . .. . Answer : I have posted a sample code on something related to your question. . That code will export html-table to PDF format using jsPDF tool .. . .. . Look for the following lines .. . .. . doc.cellInitialize .. . .. . . . . doc.cell leftMargin topMargin cellWidth rowWidth cellContent i .. . .. . Following is the link-to find the sample code I was talking about .. . .. . How to set column width for generating pdf using jsPDF http : stackoverflow.com questions 23060563 how-to-set-column-width-for-generating-pdf-using-jspdf 23385322 23385322 .. . .. . If you do this way you will get the tabular format in PDF . Let me know if you have any questions. . Don t forget to vote if you find it helpful Comment : Hello Vinu My table column is not fixed also the size of column is different . I am using jsfiddle.net xzZ7n 18 http : jsfiddle.net xzZ7n 18 example Here i am getting pdf but the width of table is short and it not fits the pdf page width Comment : Hi Nilesh Sorry for late response . I wanted to know 2 things ---- First if you have already solved it Second I had a look through your code and noticed that you are initializing the PDF with pt as units that is in this line var pdf new jsPDF l pt a4 and setting the Margin in Inches as mentioned in your comments Please let me know if that is intentional Comment : Not solved but used server-side pdf script using php but still having this issue..actually in jspdf as per my assumption pt in cm these units are assign at the start of the initialization var pdf new jsPDF l pt a4 here l-landscape pt-unit a4-page that s why i used pt....my main concern is my table is having 35 column in horizontal....but when i used jspdf above example it only generate 20 to 25 column on landscape page Comment : Ok Nilesh . Please check the following link where you can find summary of class fields and methods of JSPdf . It might be useful to you . It says about unit as Measurement unit to be used when coordinates are specified . One of pt points mm Default cm in . Comment : Link I was talking about is given here http : mrrio.github.io jsPDF doc symbols jsPDF.html constructor . And coming to actual problem I had to use JSPdf library for just about 15 columns with varying column widths . It was either too small or exceeding the landscape view of PDF so I had to write to calculate the length of the column names and its row value width by looping and set the maximum length . In some cases I split the words so that it gets displayed in next line within same column . You too try to calculate column width dynamically and it might help", "Question : Am trying to print the Data into the PDF so i used jsPdf at that time the data s are not aligned properly into my PDF table . So i searched in many site s they referred me to use jsPdf Auto-table . Here the problem arises before the injection of jsPdf Auto-table every thing is working fine without alignment but after i insert .. . .. . .. . script src https : cdnjs.cloudflare.com ajax libs jspdf-autotable 2.0.16 jspdf.plugin.autotable.js script .. . .. . this into my index.html am getting error .. . .. . Uncaught ReferenceError : jsPDF is not defined jspdf.plugin.autotable.js : 10 .. . Answer : You need to include the jspdf library before the jspdf-autotable plugin . See the docs https : github.com simonbengtsson jsPDF-AutoTable for further information . You might also want to use the latest version 2.0.28 . script src https : cdnjs.cloudflare.com ajax libs jspdf 1.2.61 jspdf.debug.js script .. . .. . -- EDIT : For now add this line between the libraries -- .. . -- The reason being that jspdf includes a version of requirejs which -- .. . -- jspdf-autotable currently is not expecting . You can also use version 2.0.21 -- .. . script if window.define delete window.define.amd script .. . .. . script src https : cdnjs.cloudflare.com ajax libs jspdf-autotable 2.0.28 jspdf.plugin.autotable.js script .. . .. . script .. . var columns ID Name Country .. . var rows .. . 1 Shaw Tanzania .. . 2 Nelson Kazakhstan .. . 3 Garcia Madagascar .. . .. . var doc new jsPDF p pt .. . doc.autoTable columns rows .. . doc.save table.pdf .. . script Comment : I already tried that also buddy at that time am getting------- doc.autoTable is not a function ------- this error Comment : I updated the answer with a work around for an issue with the latest version of jspdf and the latest versions of jspdf-autotable . Comment : Cool buddy..Problem solved : Comment : Need one clarification var doc new jsPDF p pt in that line what does it mean by p and pt use Comment : P means portrait and you can change to l for landscape if you wish . Pt means points and jspdf-autotable only supports that for now", "Question : Is it possible to include custom fonts in jsPDF With the basic library if I console log doc.getFontList I get : .. . .. . Courier Helvetica Times courier helvetica times .. . .. . But say I want to use Comic Sans not that I would o can it be done Even better could I use a font is locally stored and has been declared in the site with @font-face .. . Answer : I found this was possible by modifying jsPDF.js to expose the existing addFont method in the public API . In jsPDF.js look for : .. . .. . Add the following : .. . .. . I put this method near other font methods for clarity - API.setFont API.setFontSize API.setFontType etc . Now in your code use : .. . .. . This works for me with @font-face fonts included with css before loading jsPDF as well as system fonts . There s probably a better way to do this using jsPDF s plugin framework but this quick and dirty solution should at least get you going . Note that doc.getFontList will not show added fonts : Comment : Thanks for posting this . I took your work and issued a PR github.com MrRio jsPDF pull 475 https : github.com MrRio jsPDF pull 475 which was just merged into master of jsPDF . Here it is : github.com MrRio jsPDF blob master jspdf.js L1595 https : github.com MrRio jsPDF blob master jspdf.js L1595 . Thanks again Comment : This one doesn t work for me with Google Fonts . Nothing is added no error shown . Comment : Note however that the font is never embedded in the pdf itself but read from the browser font repository . If you try to save the pdf the parts using the custom font will be invisible . Comment : @Integrating Stuff is PDF generate by javascript cannot embed font to the PDF file Comment : jsPDF cant . However pdfmake - another Javascript library to deal with pdfs - can .", "Question : I am using jspdf to generate a pdf file . Every thing is working fine . But how to open generated pdf in new tab or new window . I am using .. . .. . Which is opening the pdf in same tab . .. . Answer : Based on the source you can use the dataurlnewwindow parameter for output : .. . .. . Source in github : https : github.com MrRio jsPDF blob master jspdf.js L914 .. . .. . All possible cases : Comment : When I use doc.output save filename.pdf I receive this error : Uncaught ReferenceError : saveAs is not defined jspdf.js : 975 i m using chrome Version 29.0.1547.66 m . Comment : @YaBasha You also need FileSaver.js . Comment : @mggSoft thx for line update :", "Question : null .. . Answer : I m generating a pdf file at client-side with jsPDF : my HTML structure is as follows : .. . .. . This is my code to generate the PDF : .. . .. . To open the file in another browser window i m using : .. . .. . This works well in the majority of browser i tested except Safari for Windows and Android KitKat legacy browser . For example When i try to open the generated PDF in Safari 5.1.7 for Windows the Do you want to open or save this file dialog is displayed and i see the data.applcation pdf base64 JVBER... . fallback for BLOBs of Filesaver.js . In most of the tested browsers also my function createPDF is not working wery well with images : in some browsers the PNG is not displayed in some other the jpeg is not displayed . Moreover also the examples on jsPDF website are not fully functional with Safari for Windows although the statement is : jsPDF will work in IE6+ Firefox 3+ Chrome Safari 3+ Opera . BTW the great FileSaver.js demo on http : eligrey.com is working well in all browser i tested also for BLOBs . Sadly there isn t a demo with a PDF content-type . Here a short list of tests : .. . .. . Ipad - Safari 5.1.1 Works Chrome works .. . Windows Safari 5.1.7 last Windows version won t work .. . .. . in the middle : most works some not .. . Mac Yosemite Safari 8.0.3 Works .. . iPhone Safari 8.04 Works Chrome : won t work .. . Android 4 Kitkat Legacy Browser : won t work Chrome Yes Firefox Yes .. . .. . I know this is an old thread in SO and jsPDF and Filesaver are great piece of software and we cannot be thankful enough to to the authors and contributors but and i m wonder if nobody there was able after so many years and threads to find a stable solution . What i m doing wrong with images Which is the right way to open a PDF generated fully client-side by jsPDF in a separate browser window - without to use an additional round-trip to the server and that is working well also in most browsers", "Question : I have an html-table with rowspan colspan.I am using jspdf and jspdf-autotable for exporting that html-table to pdf . However the pdf getting saved has a table which doesn t contain rowspan colspan in actual table.How to do colspan rowspan using jspdf-autotable My current code is .. . Answer : The plugin doesn t support to automatically port colspans and rowspans from html . However you can do it manually . Check out this example https : github.com simonbengtsson jsPDF-AutoTable blob master examples examples.js L258 a demo is here https : simonbengtsson.github.io jsPDF-AutoTable spans .", "Question : null .. . Answer : I try to understand if I could use PhantomJS or any similar js library in my web application in a javascript function called when ExportToPdf button is hit to create pdf export of a part of the user s current page for example the contents of a div but with its current styles . And I need it to be made on client-side . I see over my searches that phantomJS is used as a tool console app executable but could I utilize it the way I need it Maybe in combination with jsPDF or some similar js library.. . .. . .. . Or if you have any other solution to suggest.. . I already have tried jsPDF alone and it does not get any styles at all all bootstrap class elements are missing . Also I tried html2canvas+jsPDF to get image of the desired div contents and put it on a pdf doc but this does not seem to get all the height of the div only the part that is viewable in browser gets exported Comment : Have you read Generating PDFs from HTML and PhantomJS http : culttt.com 2015 10 26 generating-pdfs-from-html-and-phantomjs", "Question : I have started making some demos using jspdf . I have a html file and my css is in external file . I have written the below code to generate my pdf .. . .. . where main is the id of the div whose content I want to export as pdf . The content is exporting as pdf but not the entire content the pdf gets cut . It can be dynamic-content . Also the css I have in external files are not getting applied styles like table-row background-color etc are not getting applied . How can I get my external css applied to the pdf before it is generated Is it even possible with jsPDF. . Any suggestions please . Thanks in advance .. . Answer : As far as I know jsPDF doesnt take external css . It infact doesnt even take inline css . It is currently not suitable to use jspdf for converting html to pdf . Hope this helps .", "Question : I got struck for the last two days to set a column width for generating PDF using jsPDF . I am able to generate pdf using jsPDF lib from html-table but i am getting problem of overlapping columns . Because I want to display 20 columns in the sheet . I have changed the options portrait to landscape and set the width 5000 in exporting script options as well as html-table width . Please help me to set the pdf column width from jsPDF . Thanks .. . Answer : I had same problem 4 days back and was able to fix it. . I have provided sample code below for you to understand. . I am assuming that the requirement is to export a html-table mentioned below as table1 that has 3 or more rows to PDF format . To which we will be setting cell column width and additionally font and font types for those 3+ rows. . .. . .. . First row would be Header - so bold is applied. . I have applied different styles for 2nd and 3rd rows for understanding styles available. . If you want to apply different column width for each of the columns - you can do that as well. . .. . .. . Hope the following code is readable and self explanatory . Let me know if you have any questions Comment : awesome Thanks Comment : You are welcome gco . I am glad that it helped you : and thank you for voting Comment : @Vinu What version of jsPDF will allow all those options The one i m using only allows the following function jsPDF orientation unit format compressPdf String orientation String unit String format Boolean compressed Comment : @RyanGill I was using some older version and I could not find the exact version from JSPdf files used in my project But function is same as what you have mentioned function jsPDF orientation unit format compressPdf Comment : @Vinu Hi How can I make that run when I click a button", "Question : I am using jsPDF AutoTable Plugin for my table pdf . My sources : .. . .. . My sources are from : .. . .. . https : github.com MrRio jsPDF .. . .. . https : github.com simonbengtsson jsPDF-AutoTable .. . .. . My Script : .. . .. . My Markup : .. . .. . My header is the group name and the second row after it is sub group name . I want to target the second row with sub group and give a unique style . How do I target that entire row . below is what my table looks like . enter image description here http : i.stack.imgur.com e6b8J.png .. . .. . IMPORTANT NOTE : Any css style have no effect on the way the pdf looks . I am interested in how the pdf looks not how the actual page looks in the browser . For all it matters the entire table can be hidden but jspdf AutoTable will still render it in a pdf . Comment : You should check out the drawCell hook . There are some examples in the jspdf-autotable repo . I would normally recommend the drawRow option but it currently has some issues https : github.com simonbengtsson jsPDF-AutoTable issues 111 .. . Answer : Try this : .. . .. . Example : https : jsfiddle.net bneen5rc Comment : This is will affect how the table looks in the browser but not the way the pdf is generated . I am interested in how the pdf is generated .", "Question : I created html-table and tried to generate pdf using jsPDF . I have used following code : .. . .. . I am getting blank pdf file . Am I doing anything wrong Here is a plunker http : plnkr.co edit hzJgTFCh8xgxgRiy3gUq p info for this . Working demo http : mrrio.github.io jsPDF of jsPDF with addHTML function . Comment : Well you must be doing something wrong that s why its not working Comment : Solved it for you see my answer. . .. . Answer : Change this in app.js : .. . .. . for this one :", "Question : Could you please let me know how to use addHTML function in jsPDF libraries . Am trying to convert a webpage as pdf . want to use the addHTML function . Let me know what parameters need to be passed to get the entire webpage converted as pdf with header logos body etc .. . Answer : First you have to include jsPDF http : mrrio.github.io jsPDF library and also html2canvas http : html2canvas.hertzen.com or rasterizeHTML http : cburgmer.github.io rasterizeHTML.js . Then just create a jsPDF object and save to pdf the entire body tag or whatever : .. . .. . .. . var pdf new jsPDF p pt a4 .. . pdf.addHTML document.body function .. . pdf.save web.pdf .. . .. . .. . .. . script src https : cdnjs.cloudflare.com ajax libs html2canvas 0.4.1 html2canvas.js script .. . script src https : cdnjs.cloudflare.com ajax libs jspdf 1.0.272 jspdf.debug.js script .. . .. . body .. . p id to-pdf HTML content.. . p .. . body .. . .. . You can find more examples on the jsPDF website : http : mrrio.github.io jsPDF Comment : is it necessary to use document.body Why can t I use document.getElementById or something Comment : @BrianSchermerhorn It is not necessary to use document.body . You can pass any DOM element . Just make sure it is not the encapsulated jquery reference : target .get 0 and not target Comment : how to use multiple addhtml for header body and footer please help me i am dying since two days. .", "Question : I am using jspdf to generate a pdf file . Every thing is working fine . But how to open generated pdf in new tab or new window . I am using .. . .. . Which is opening the pdf in same tab . .. . Answer : using javascript you can send the generated pdf to a new window using the following code . Comment : JsPdf also has functionality for this . You can call the following method . doc.output dataurlnewwindow", "Question : I have the following html code : .. . .. . All I want to do is to print to pdf whatever is found in the div with an id of pdf . This must be done using JavaScript . The pdf document should then be automatically downloaded with a filename of foobar.pdf .. . .. . I ve been using jspdf to do this but the only function it has is text which accepts only string values . I want to submit HTML to jspdf not text . Comment : As mentioned above I do not want to use the text function . I want to give it HTML . Your link only deals with plain text and not html Comment : jsPDF does have a fromHTML function see the HTML Renderer example at : mrrio.github.io jsPDF http : mrrio.github.io jsPDF .. . Answer : This is the simple solution . This works for me.You can use the javascript print concept and simple save this as pdf . Comment : lighter solution but this dissmiss css styling : s", "Question : I want to convert some of my divs into PDF and I ve tried jsPDF library but with no success . It seems I can t understand what I need to import to make the library work . I ve been through the examples and I still can t figure it out . I ve tried the following : .. . .. . After jQuery and : .. . .. . for testing purposes but I receive : .. . .. . where smdadminbar is the first div from the body . .. . Answer : you can use pdf from html as follows .. . .. . Step 1 : Add the following script to the header .. . .. . or download locally https : github.com MrRio jsPDF .. . .. . Step 2 : Add HTML script to execute jsPDF code .. . .. . Customize this to pass the identifier or just change content to be the identifier you need . Step 3 : Add your body content .. . .. . Refer to the original tutorial http : parall.ax products jspdf .. . .. . See a working fiddle http : jsfiddle.net xzZ7n 4861 Comment : Thanks for posting this but I tried the exact code above locally and it generates a blank pdf document . It doesn t work at all with jquery 1.11.0 so i used the same jquery version as used on github.com MrRio jsPDF blob master examples js jquery https : github.com MrRio jsPDF blob master examples js jquery jquery-1.7.1.min.js Comment : Tried your code @Well Wisher its giving me the following error for the library file itdself -- Cannot read property length of undefined jspdf.plugin.from html.js : 500 Comment : @Learner can you please update jsfiddle Comment : jsfiddle.net h59sG http : jsfiddle.net h59sG and the libraries which i have used are script type text javascript src jquery-1.10.2.min.js script script type text javascript src jspdf.js script script type text javascript src jspdf.plugin.standard fonts metrics.js script script type text javascript src jspdf.plugin.split text to size.js script script type text javascript src jspdf.plugin.from html.js script Comment : @JeevaJsb ans edited .", "Question : I need to know if there is any way to attach a PDF file generated using jsPDF and mail it in asp.net C I have the following code in c .. . .. . and I m using a JsPDF library as follows : .. . .. . Is there any way to attach it in the mail before send it Thanks in advance . Comment : Well you have JsPDF running on the client and your email code running on the server . So you d have to get the PDF generated by JsPDF and pass it to the server . Comment : Do you have any idea how to pass it to the server Comment : All the usual ways.....submitting a form...via AJAX....via WebSockets...etc . Or you could abandon the idea of generating the PDF on the client and instead generate it on the server . Comment : Is there a way to generate it via server-side Do you have any reference Comment : We already covered this in your earlier question http : stackoverflow.com questions 35459523 . Asking us to recommend a tool or library isn t allowed . Your server-side logic is in C so did you ever try just doing a web search for C create PDF .. . Answer : You cannot call client-side code Javascript function from server code c . You can only communicate via the HTTP HTTPs protocol . I think you need to generate the PDF from the client and then send that PDF to server so that you can attach the PDF to an email . In that case you need to first generate the PDF and send it to the server as a base64 string . You can then convert the base64 string to PDF in C and mail it as an attachment . Client Side : .. . .. . Posting the base64 pdf content to the server : .. . .. . On the server MVC Controller : .. . .. . Check out here for more information https : github.com Purush0th PDFnMail", "Question : I have the following html code : .. . .. . All I want to do is to print to pdf whatever is found in the div with an id of pdf . This must be done using JavaScript . The pdf document should then be automatically downloaded with a filename of foobar.pdf .. . .. . I ve been using jspdf to do this but the only function it has is text which accepts only string values . I want to submit HTML to jspdf not text . Comment : As mentioned above I do not want to use the text function . I want to give it HTML . Your link only deals with plain text and not html Comment : jsPDF does have a fromHTML function see the HTML Renderer example at : mrrio.github.io jsPDF http : mrrio.github.io jsPDF .. . Answer : jsPDF is able to use plugins . In order to enable it to print HTML you have to include certain plugins and therefore have to do the following : .. . .. . 1 . Go to https : github.com MrRio jsPDF and download the latest Version . 2 . Include the following Scripts in your project : .. . jspdf.js .. . jspdf.plugin.from html.js .. . jspdf.plugin.split text to size.js .. . jspdf.plugin.standard fonts metrics.js .. . .. . If you want to ignore certain elements you have to mark them with an ID which you can then ignore in a special element handler of jsPDF . Therefore your HTML should look like this : .. . .. . Then you use the following JavaScript code to open the created PDF in a PopUp : .. . .. . For me this created a nice and tidy PDF that only included the line print this to pdf . Please note that the special element handlers only deal with IDs in the current version which is also stated in a GitHub Issue https : github.com MrRio jsPDF issues 34 . It states : .. . .. . Because the matching is done against every element in the node tree my desire was to make it as fast as possible . In that case it meant Only element IDs are matched The element IDs are still done in jQuery style id but it does not mean that all jQuery selectors are supported . Therefore replacing ignorePDF with class selectors like .ignorePDF did not work for me . Instead you will have to add the same handler for each and every element which you want to ignore like : .. . .. . From the examples http : mrrio.github.io jsPDF examples basic.html it is also stated that it is possible to select tags like a or li . That might be a little bit to unrestrictive for the most usecases though : .. . .. . We support special element handlers . Register them with jQuery-style ID selector for either ID or node name . iAmID div span etc . There is no support for any other type of selectors class of compound at this time . One very important thing to add is that you lose all your style information CSS . Luckily jsPDF is able to nicely format h1 h2 h3 etc . which was enough for my purposes . Additionalyl it will only print text within text nodes which means that it will not print the values of textareas and the like . Example : Comment : does not show unicode correctly Comment : I m going to guess the element handler can be a class That would be much more semantically in line with HTML5 standards . An ID not only carries too much speificity weight in CSS it also has to be unique . Comment : No as far as I know classes are no valid selectors at the moment as stated in their examples : we support special element handlers . Register them with jQuery-style ID selector for either ID or node name . iAmID div span etc . There is no support for any other type of selectors class of compound at this time . . Still it is possible to use tag names if that is in line with your use-case and doesn t hide other important elements on your page . Comment : Hey it is working in IE9 as well Comment : On their page parall.ax products jspdf https : parall.ax products jspdf they state that they support IE6+ via a shim . Haven t tried it myself though .", "Question : null .. . Answer : Hello I want to generate a PDF file of specific div . For that I found jsPDF may be usefull . I am new to jsPDF and bz googling I found lines-of-code that will works fine for me . jsPDF code will convert div into an image and then it will save it as a pdf . Mz problem is that I have a radio-button in that div but when I convert div into PDF design of that page will be look alike below image. . enter image description here http : i.stack.imgur.com cfCZq.png .. . .. . I dont know what is an exact issue . Here is code that I have written . Comment : i am waiting for someone to respond .", "Question : I created html-table and tried to generate pdf using jsPDF . I have used following code : .. . .. . I am getting blank pdf file . Am I doing anything wrong Here is a plunker http : plnkr.co edit hzJgTFCh8xgxgRiy3gUq p info for this . Working demo http : mrrio.github.io jsPDF of jsPDF with addHTML function . Comment : Well you must be doing something wrong that s why its not working Comment : Solved it for you see my answer. . .. . Answer : In app.js change : .. . .. . to .. . .. . If you see a black background you can add to sytle.css background-color : white" ] }
[ "yes-answer-long", "yes-answer-short" ]
javascript
UNK_RELATION
nsuserdefaults@user@84
nsuserdefaults -- nsuserdefaults is the objective-c api for storing and retrieving @placeholder preferences in apple s foundation framework for cocoa and cocoa-touch .
{ "confidence": [ 49.85527420043945, 47.4620475769043, 46.70680618286133, 46.502315521240234, 46.394737243652344, 45.74820327758789, 45.53367614746094, 44.65412902832031, 43.4190559387207, 42.56533432006836, 41.8475227355957, 40.79038619995117, 40.04880142211914, 39.91083908081055, 39.64114761352539, 39.357547760009766, 39.27976989746094, 38.8566780090332, 38.80927658081055, 38.7280387878418, 37.9549674987793, 37.9549674987793, 37.771141052246094, 37.755672454833984, 37.72316360473633, 37.70743942260742, 37.59473419189453, 37.4776611328125, 37.44991683959961, 37.34606170654297, 37.34606170654297, 37.34606170654297, 36.95288848876953, 36.6890869140625, 36.54499435424805, 36.54499435424805, 35.784706115722656, 35.66544723510742, 35.66544723510742, 35.634925842285156, 35.58749008178711, 35.5681037902832, 35.47773361206055, 35.36799621582031, 35.36799621582031, 35.36799621582031, 35.3414421081543, 35.32000732421875, 35.06037902832031, 34.90515899658203, 34.90515899658203, 34.75518035888672, 34.68855667114258, 34.68855667114258, 34.59818649291992, 34.59818649291992, 34.46189498901367, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.26168441772461, 34.196903228759766, 34.18769073486328, 34.02812576293945, 33.85099792480469, 33.85099792480469, 33.85099792480469, 33.634395599365234, 33.54402542114258, 33.54402542114258, 33.382137298583984, 33.382137298583984, 33.382137298583984, 33.382137298583984, 33.382137298583984, 33.382137298583984, 33.20038604736328, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.86188507080078, 32.614418029785156, 32.34510803222656, 32.32797622680664, 32.32797622680664, 32.32797622680664 ], "content": [ "NSUserDefaults is meant for storing user preferences .", "You should use the nsuserdefaults method dataForKey developer.apple.com library mac documentation Cocoa Reference https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class apple ref occ instm NSUserDefaults dataForKey :", "I am storing some Objective C based objects in to NSuserdefaults .", "NSUserDefaults is intended for user preferences not storing application data .", "Try using boolForKey instead : .. . .. . Foundation Framework Reference NSUserDefaults Class Reference https : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class apple ref occ instm NSUserDefaults boolForKey :", "NSUserDefaults initWithSuiteName https : developer.apple.com library prerelease ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class apple ref occ instm NSUserDefaults initWithSuiteName : did not work .", "Read the docs for NSUserDefaults http : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html .", "Please check the Documentation for NSUserdefaults https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class index.html", "If you look within the first few paragraphs of the NSUserDefaults documentation https : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class index.html apple ref occ cl NSUserDefaults you ll see this tidbit : .. . .. . The NSUserDefaults class does not currently support per-host preferences .", "Is there any possibility to persist some string value to system that will be available in Java application from run to run like persisting to NSUserDefaults https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class in Objective-C", "There is No Limit for storing values in NSUserDefaults. .", "I m not sure if this is it but have you called NSUserDefaults standardUserDefaults registerUserDefaults : .. . http : developer.apple.com library mac DOCUMENTATION Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html", "developer.apple.com library prerelease ios documentation Cocoa https : developer.apple.com library prerelease ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class index.html apple ref occ instm NSUserDefaults registerDefaults :", "http : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ instm NSUserDefaults registerDefaults 3a", "To quote the Apple docs http : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html : .. . .. . The NSUserDefaults class provides a programmatic interface for interacting with the defaults system .", "Best like in Objective-C I can do with NSUserDefaults .", "Storing large amount of data in NSUserDefaults is not recommended .", "http : developer.apple.com iphone library documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ instm NSUserDefaults removePersistentDomainForName :", "Apple definitively does not recommend to use valueForKey in NSUserDefaults .", "However NSUserDefaults correctly reads per-host preferences so you can safely mix CFPreferences code with NSUserDefaults code .", "Not sure if that should be necessary but the Apple docs about NSUserDefaults do say that you can synchronize if you want to update the user defaults to what is on disk NSUserDefaults https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref doc uid 20000318-CIHDDEGI", "From the Apple docs : NSUserDefaults http : developer.apple.com library ios documentation cocoa reference foundation Classes NSUserDefaults Class Reference Reference.html .. . .. . NSUserDefaults caches the information to avoid having to open the user s defaults database each time you need a default-value .", ".. . .. . NSUserDefaults vs Sqlite3 http : stackoverflow.com questions 930239 nsuserdefaults-vs-sqlite3 .. . .. . NSUserDefaults is for user preferences usually basic objects like NSString or NSNumber .", "If you use NSUserDefaults as the storage medium you are going to be safe because Apple ensure that NSUserDefaults behaves correctly in these concurrent circumstances .", "On my Cocoa application using Swift I m getting bad data from NSUserDefaults .", "This will remove all user defaults for the application : .. . .. . For more information on the NSUserDefaults class see the Apple docs https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes nsuserdefaults Class Reference Reference.html .", "Check also .. . .. . Reading NSUserDefaults from helper app in the sandbox http : stackoverflow.com questions 14014417 reading-nsuserdefaults-from-helper-app-in-the-sandbox .. . .. . Objective-C NSUserDefaults caching prevents another app from accurately reading changes http : stackoverflow.com questions 10667848 objective-c-nsuserdefaults-caching-prevents-another-app-from-accurately-reading .. . .. . When not to abuse NSUserDefaults http : stackoverflow.com questions 5520797 when-not-to-abuse-nsuserdefaults", "But when i store the image into photo album it storing but it s not storing to NSUserDefaults .", "NSUserDefaults will store the user preferences into a file into the Library Preferences folder .", "What is the best way of storing and loading the Group in NSUserDefaults", "As far as my knowledge there is no limit for storing in NSUserdefaults .", "You can use NSUserDefaults for storing user data .", "Saving and Retrieving a String array to NSUserDefaults .. . .. . Save array .. . .. . Retrieve array", "NSUserDefaults userDefaults NSUserDefaults alloc initWithSuiteName : @ MySuiteName", "If you want to share Preferences initWithSuiteName from NSUserDefaults is what you are looking for .", "NSUserDefaults is meant to store small data like user preferences .", "To make this possible I am serialising the server object and storing it to the NSUserDefaults .", "TopShelf should get user preferences from main app using NSUserDefaults .", "If you use NSUserDefaults to write a negative-number then it will show it in quotes in the preferences .", "Write to your NSUserDefaults : .. . .. . Read from NSUserDefaults :", "Does this mean NSUserDefaults is unavailable", "You might want to try synching the prefs manually - From NSUserDefaults Class Reference https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes nsuserdefaults Class Reference Reference.html : .. . .. . At runtime you use an NSUserDefaults object to read the defaults that your application uses from a user s defaults database .", "From documentation https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class : .. . .. . The NSUserDefaults class provides convenience-methods for accessing common types such as floats doubles integers Booleans and URLs .", "Apple highly recommends to set default values via registerDefaults of NSUserDefaults .", "Please post a source where Apple uses valueForKey in NSUserDefaults .", "Read the Apple documentation on NSUserDefaults there are limitation on the things that it can save .", "codingexplorer.com nsuserdefaults-a-swift-introduction http : www.codingexplorer.com nsuserdefaults-a-swift-introduction", "NSUserDefaults", "@chrissr you have an error in NSUserDefaults defaults NSUserDefaults standardUserDefaults .. . should be NSUserDefaults defaults .", "I ve got a small problem with permanently storing my Array using NSUserDefaults .", "There s two ways of storing an NSDate in NSUserDefaults that I ve come across .", "Passed this NSDictionary to be saved by your NSUserDefaults which should accept it now just like the Objective-C code .", "The reference talks about the synchronize method : use this method only if you cannot wait for the automatic synchronization for example if your application is about to exit - NSUserDefaults Class Reference https : developer.apple.com library ios DOCUMENTATION Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ instm NSUserDefaults synchronize", "setObject : forKey : of NSUserDefaults https : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class apple ref occ instm NSUserDefaults setObject : forKey : .. . .. . The value parameter can be only property list objects : NSData NSString NSNumber NSDate NSArray or NSDictionary .", "Looking in the NSUserDefaults documentation https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class index.html there are a number of methods available for getting and setting values in the defaults database .", "As stated in the documentation https : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ instm NSUserDefaults setObject : forKey : : .. . .. . For NSArray and NSDictionary objects their contents must be property list objects .", "When writing data to NSUserDefaults don t forget NSUserDefaults .synchronize", "Just use NSUserDefaults .", "Could this be related to the caching of NSUserDefaults", "Should the NSUserDefaults system be used", "Why store the components in NSUserDefaults", "Don t store data in NSUserDefaults .", "The name would be stored in NSUserDefaults .", "Somebody says NSUserdefaults is insecure .", "So the NSUserDefaults will be cleared then .", "This array is saved using NSUserDefaults .", "The state is saved using NSUserDefaults .", "Is NSUserDefaults fine", "But I am not getting anything in the NSUserDefaults .", "You must use either the defaults command the NSUserDefaults API or the CFPreferences API .", "But I don t know that if there is any limit for storing values in NSUserDefaults .", "but does storing data in nsuserdefaults cause any problems when there is a lot of data", "You shouldn t even think about storing passwords in NSUserDefaults .", "But you cannot simply install one of those in the temp1 array since all values returned by NSUserDefaults are immutable https : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ clm NSUserDefaults standardUserDefaults including sampleArray temp1 and temp2 .", "If you have a look at the NSUserDefaults documentation http : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html you will see a method - NSDictionary dictionaryRepresentation .", "Do it the right way and register default values http : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ instm NSUserDefaults registerDefaults 3a .", "See the registerDefaults : method on NSUserDefaults .", "There is no setDouble method associated with NSUserDefaults", "How to save a string into the NSUserDefaults", "NSUserDefaults standardUserDefaults setValue : aString forKey : aKey", "the saving part with NSUserDefaults @gutenmorgenuhu", "The problem isn t with NSUserDefaults .", "I never speaking about Apple source where it use valueForKey in NSUserDefaults I speaking about the availability in apple sources .", "Is there any problem using KVO with NSUserDefaults", "NSUserDefaults are therefore saved in the application itself .", "You can just use NSUserDefaults .", "As always do not use valueForKey in NSUserDefaults .", "If you are working with NSUserDefaults at many places .", "I think NSUserDefaults should be fine .", "Which one is better NSUserdefaults or keychain .", "I have an NSMutableArray saved with NSUserDefaults .", "NSUserDefaults data is also stored on the filesystem .", "Is there a guide on NSUserDefaults I can read", "There are also loads of tutorials about NSUserDefaults .", "NSUserDefaults is the best way i prefer .", "Thank you but storing NSUserDefaults to a field and using didn t helped either .", "Oh I know plus I m programming with Cocoa not Cocoa Touch ergo I m on a Mac :", "Don t use valueForKey : with NSUserDefaults .", "NSUserDefaults save object asynchronously", "Are you calling NSUserDefaults synchronize" ] }
{ "confidence": [ 72.4636001586914, 63.83675765991211, 62.45915985107422, 61.83755874633789, 61.15864944458008, 60.1373176574707, 59.95357131958008, 59.457489013671875, 59.244815826416016, 57.67005920410156, 57.02910614013672, 56.78398132324219, 56.03525161743164, 55.57607650756836, 55.18113708496094, 54.869224548339844, 54.71457290649414, 54.49631118774414, 54.244869232177734, 54.24116516113281 ], "content": [ "Question : null .. . Answer : Is there any possibility to persist some string value to system that will be available in Java application from run to run like persisting to NSUserDefaults https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class in Objective-C Solving this problem in Android : Android similar NSUserDefaults from iPhone http : stackoverflow.com questions 3584267 android-similar-nsuserdefaults-from-iphone Comment : See Preferences http : docs.oracle.com javase 8 docs api java util prefs Preferences.html . Comment : Yes - There are tons of persistence methods for plain Java apps - Preferences http : docs.oracle.com javase 8 docs api java util prefs Preferences.html is one or write to a database or text file or even store it in some cloud service . You have so many choices - just pick one that works for your use-case .", "Question : In my mac OS X application i have used NSUserDefaults to store values in session . This NSUserDefaults keep the session values only for respective system level users . But now i want to use session value that is common for all system level users . If i store a session value from admin it should be accessed by any system users For Ex : Guest User . Suggest your answers to achieve this . EDITED CONTENT : .. . .. . I have used CFPreferences to store the session value for all system users the in reference with the michael s answer . Code : .. . .. . To save values in CFPreferences .. . .. . To retrieve from CFPreferences .. . .. . But it always retrieve nil value . Please point out what i am missing here . .. . Answer : If you look within the first few paragraphs of the NSUserDefaults documentation https : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class index.html apple ref occ cl NSUserDefaults you ll see this tidbit : .. . .. . The NSUserDefaults class does not currently support per-host preferences . To do this you must use the CFPreferences API see Preferences Utilities Reference . However NSUserDefaults correctly reads per-host preferences so you can safely mix CFPreferences code with NSUserDefaults code . CFPreferences does have a kCFPreferencesAnyUser key https : developer.apple.com library mac documentation CoreFoundation Reference CFPreferencesUtils apple ref doc constant group Application Host and User Keys but it s also a pain in the rear end to use http : stackoverflow.com questions 9454957 cfpreferences-to-library-preferences for what you are trying to do . Other people have suggested workarounds that involve hiding files in locations that are readable and writable to all users on the machine http : www.cocoabuilder.com archive cocoa 107482-global-preferences-using-cfpreferences.html but if you really want to do this right you d need to come up with a solution that involves writing a separate tool which gets root admin privileges that sets these privileges called via SMJobBless from your app http : stackoverflow.com questions 9134841 writing-a-privileged-helper-tool-with-smjobbless . Comment : Please have a look at my edited content . what i am missing there", "Question : Apple provides documentation for managing user preferences through both Core Foundation http : developer.apple.com library mac documentation CoreFoundation Reference CFPreferencesUtils Reference reference.html apple ref doc uid 20001450 and Foundation Kit http : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html . It also doesn t offer any help with choosing one or another except for stating that they re indeed different not toll-free bridged . So I m interested is there anything I should consider selecting configuration mechanism for the application Or should I just toss a coin Thanks .. . Answer : You are supposed to use NSUserDefaults which is absolutely the default choice . I suppose you could use CFPreferences but unless you had a good reason to make that choice I d steer clear of CF -APIs . Comment : Also is there any particular reason to steer clear of CF-APIs Comment : @Nikita Rybak : They re typically harder to use at the least because there s no built-in easy way to autorelease CF objects . CFPreferences specifically is designed to enable you to work with any application s preferences not just your own and for that it s actually easier . For working with your own prefs NSUserDefaults is easier so you should use that for that reason . Comment : No problem You want to steer clear of CF -APIs because they re procedural complicated and low-level . Use Objective-C . In 99.99 of situations there s no reason to do anything different . Never ask the question Why shouldn t I do this complicated and terrible thing . Ask the question The canonical simple solution isn t working will this other complicated solution help solve my problem . Since you presumably aren t doing anything out of the ordinary there is no reason not to use the ordinary canonical solution . Comment : @Peter Thanks to both of you . I indeed didn t know that CF was an outcast in apple world : Comment : CF CoreFoundation . It s lower level API than AppKit it s a straight non Objective- C API and yes unless you have a specific reason to use it you should generally prefer the higher-level API . Typical reasons you might use CF would be if you were writing something with no ObjC in it say porting some C open-source prog if the exposed Objective-C API imposed limitations that you needed to get around or if the performance overhead of the Objective-C wrappers was somehow significant for your particular use-case .", "Question : I have an array of CLLocation data that I would like to archive . Should the NSUserDefaults system be used Otherwise how best to archive the CLLocation data Comment : If using Core Data see this post for help : stackoverflow.com questions 3797128 http : stackoverflow.com questions 3797128 how-to-store-cllocation-using-core-data-iphone .. . Answer : UserDefaults can only store certain types of data and should be used to store user preference information not arbitrary application state data . To quote the Apple docs http : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html : .. . .. . The NSUserDefaults class provides a programmatic interface for interacting with the defaults system . The defaults system allows an application to customize its behavior to match a user s preferences . For example you can allow users to determine what units-of-measurement your application displays or how often documents are automatically saved . More info here http : www.idev101.com code Objective-C Saving Data NSUserDefaults.html . If your CLLocation data really does count as user preference info which I m not convinced of you ll have to map the info inside CLLocation onto types that are compatible with NSUserDefaults . Read the docs for NSUserDefaults http : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html . If your CLLocation data isn t user preference info but just application data state that you need to preserve you have a few options you could store it in core-data or you could use keyed archiving - see this tutorial http : cocoadevcentral.com articles 000084.php for example . Comment : thks but cllocation value consist of 2 double values for lat long how do i encode it . Comment : Well where do you intend to encode it to Please accept some of the many answers people have given you and I ll write back later . Comment : need to encode it when i store it in an array an then in nsuserdefaults.. . Comment : thks found out the solution using nsarchiver as you said it worked like charm thanks also i divided cllocation2d values into lat and long while encoding and recreated it while decoding thanks", "Question : How to save a string into the NSUserDefaults Comment : Try this : jayprakashdubey.blogspot.in 2014 07 nsuserdefault-usage.html http : jayprakashdubey.blogspot.in 2014 07 nsuserdefault-usage.html Comment : If you are looking for Swift then I have added an answer . .. . Answer : more precisely Comment : There is no need to perform the nil check for standardUserDefaults object . It is perfectly fine to send messages to nil in Objective-C . Comment : fair enough... . Comment : But more importantly he included synchronize - NSUserDefaults is very erratic if you don t call this Comment : standardUserDefaults synchronize fixed some strange bugs for me thanks Comment : The reference talks about the synchronize method : use this method only if you cannot wait for the automatic synchronization for example if your application is about to exit - NSUserDefaults Class Reference https : developer.apple.com library ios DOCUMENTATION Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ instm NSUserDefaults synchronize", "Question : The App Programming Guide for tvOS https : developer.apple.com library prerelease tvos documentation General Conceptual AppleTV PG index.html apple ref doc uid TP40015241-CH12-SW1 briefly states that .. . .. . There is no persistent local-storage for apps on Apple TV . This means that every app developed for the new Apple TV must be able to store data in iCloud and retrieve it in a way that provides a great customer experience . Does this mean NSUserDefaults is unavailable What mechanisms are available for data-storage .. . Answer : You can use NSUserDefaults for TVOS as per documentation . https : developer.apple.com library prerelease tvos documentation Cocoa Conceptual UserDefaults AccessingPreferenceValues AccessingPreferenceValues.html Comment : well drat +1 to you for noticing most of Foundation is also built into tvOS https : developer.apple.com library prerelease tvos navigation section Frameworks topic Foundation . Comment : This is a document that has existed for 10 years . Yet it doesn t say anything specific about tvOS . I m wondering if anyone has tested this or found more official specific documentation stating that it can or can t be used.. . Comment : This is the correct answer . On tvOS NSUserDefaults is available but it will only persist a small amount of data . Comment : NSUserDefaults are always considered to store small amount of data", "Question : Storing data permanently in an iPhone is usually done using Core Data or sqlite3 . Most people prefer to user NSUserDefaults as a storage for application preferences rather than using it as a normal database such as sqlite . I have found that large amount of data can be stored in NSUserDefaults it is extremely easy to use and it is fast . So why not use this as a permanent storage What are the limitations of NSUserDefaults as a database Update : .. . I frequently use three different ways of saving my data to disk . Core data .. . Serializing objects to plists .. . NSUserDefaults .. . .. . I do not use FMDB or sqlite directly anymore . What are the main advantages and disadvantages of each approach Some advantages of NSUserDefaults that I ve come across : .. . .. . Sorting grouping etc . can easily be done using NSPredicate . NSUserDefaults is thread safe . It takes one line to fetch and save data to NSUserDefaults . Comment : sqlite3 is more effectively for keeping large database the search is more fast and it have many privileges . Comment : but does storing data in nsuserdefaults cause any problems when there is a lot of data what priveleges does sqlite3 have Comment : The first and main privelege is that you can sort group search very fast in sqlite3 database .. . Answer : NSUserDefaults offers a trivial learning curve and thread safe implementation . Otherwise I ve found Core Data superior in every way . Especially with regards to configuring default values and migration routines . Edit : As it turns out NSUserDefaults thread-safeness seems to come from running operations on the main-thread . This caused severe frame-skipping in one of my applications I ended up ripping out NSUserDefaults and replacing it with a thread-safe NSMutableDictionary which gets serialized to a file . Comment : Can I use Core Data as a Dictionary as I can with NSUserDefaults As in storing values for keys I honestly don t know much about Core Data . Is it possible for the saved data to be a hierarchical database like plists Are there any good tutorials how to save some data in this way Comment : See section User Info Dictionaries developer.apple.com library mac documentation Cocoa Conceptual http : developer.apple.com library mac documentation Cocoa Conceptual CoreData Articles cdMOM.html You can serialize an NSDictionary as NSData . So you could save an NSDictionary as an attribute to an entity . developer.apple.com library mac documentation Cocoa Conceptual http : developer.apple.com library mac documentation Cocoa Conceptual CoreData Articles cdNSAttributes.html You could create a hierarchical database by just defining entities and relationships where the root level entity has no parent . Comment : wish I could upvote more times - my app was plagued by occasional freezes for weeks and now the solution is obvious How exactly is it thread-safe if data-storage blocks the main thread very misleading", "Question : While my iPhone app is running I store some data NSStrings in the NSUserDefaults . I m storing the high score for a game just fyi . When I double-tap the home button and kill the app the values I store in NSUserDefaults are often not there when I restart the app . Why is this happening .. . .. . The code I m using was working fine in all the pre-multitasking OSs 3.0 etc . From reading searching the net it looks like doing NSUserDefaults standardUserDefaults synchronize could help . Any thoughts Thanks .. . Answer : I m not sure if this is it but have you called NSUserDefaults standardUserDefaults registerUserDefaults : .. . http : developer.apple.com library mac DOCUMENTATION Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html Comment : I was calling registerUserDefaults once when the app starts .", "Question : I m trying to track down some issues arising from sandbox creation . Under multiple circumstances it appears that an NSUserDefaults .plist file is not created in Data Library Preferences . I have seen this in the debugger and when launching the app from the Applications directory . I have not tried archiving signing the app and then launching . Is that required An alias file ending in .LSSharedFileList.plist is created but it points to itself and therefore does not exist . I don t know if it s related but Console reports : .. . .. . Thanks . .. . Answer : Could this be related to the caching of NSUserDefaults In recent OS X versions the defaults are not immediately written to disk so you might not see them right away . You might want to try synching the prefs manually - From NSUserDefaults Class Reference https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes nsuserdefaults Class Reference Reference.html : .. . .. . At runtime you use an NSUserDefaults object to read the defaults that your application uses from a user s defaults database . NSUserDefaults caches the information to avoid having to open the user s defaults database each time you need a default-value . The synchronize method which is automatically invoked at periodic intervals keeps the in-memory cache in sync with a user s defaults database . Although I believe even that might not immediately write the defaults to disk in 10.9 anymore as some daemon caching the user defaults is now also involved . Check also .. . .. . Reading NSUserDefaults from helper app in the sandbox http : stackoverflow.com questions 14014417 reading-nsuserdefaults-from-helper-app-in-the-sandbox .. . .. . Objective-C NSUserDefaults caching prevents another app from accurately reading changes http : stackoverflow.com questions 10667848 objective-c-nsuserdefaults-caching-prevents-another-app-from-accurately-reading .. . .. . When not to abuse NSUserDefaults http : stackoverflow.com questions 5520797 when-not-to-abuse-nsuserdefaults Comment : Also if you move the container while testing debugging to the trash the cfprefsd see Activity Monitor still keeps a link-to the .plist . Empty the trash and force quit both cfprefsd user and root . Comment : Killing cfprefsd did the trick . Thanks . Comment : You saved my life thank you @mahaltertin Comment : Had the same issue with XCode6 and 10.9.5 and after killing cfprefsd everything worked as expected again - so thank s greg - saved me a ton of headaches Comment : @mahaltertin thank you you saved my life", "Question : If I set an NSUserDefault object and try to access it before it has been synchronized will I be able to access the object I just added I ve tried writing code to test it but I m unsure of if the synchronization is happening without me knowing it . .. . Answer : Yes your application can access the saved preferences before the synchronize happens if it is saved before the read cycle happens during the same run session of the application . For accessing the information during subsequent app launches it is necessary that the synchronisation happens . From the Apple docs : NSUserDefaults http : developer.apple.com library ios documentation cocoa reference foundation Classes NSUserDefaults Class Reference Reference.html .. . .. . NSUserDefaults caches the information to avoid having to open the user s defaults database each time you need a default-value . The synchronize method which is automatically invoked at periodic intervals keeps the in-memory cache in sync with a user s defaults database . The synchronize http : developer.apple.com library ios documentation cocoa reference foundation Classes NSUserDefaults Class Reference Reference.html apple ref doc uid 20000318-CIHDDEGI method writes any modifications to in-memory cache to the disk plist file in Library Preferences and updates the unmodified in-memory cache to the latest on disk . This method gets invoked at periodic intervals without the app getting notified . From docs again : NSUserDefaults synchronize .. . .. . Discussion .. . Because this method is automatically invoked at periodic intervals use this method only if you cannot wait for the automatic synchronization for example if your application is about to exit or if you want to update the user defaults to what is on disk even though you have not made any changes . In my experience call the synchronize method explicitly when application is going to exit this ensures that the latest preferences are available on next launch . However I have also come across scenarios when application crashes before the synchronize happens so the pref are not stored . Your application must be able to handle these scenarios . Additional .. . Use the NSUserDefaults to store minimal data do not store huge data . Reason is the app defaults are loaded during the app launch if the data to load is huge then the app loading time increases and chances are that the app is killed by the Springboard . Comment : thanks char limit Comment : So it s 100 sure that if the user quickly swipes up the app no user default would get lost", "Question : I made an iOS App which includes an UITableView . It s possible to tap the cell . If the user tapped the cell an accessory type will be shown . My question is : How can I save the cell configuration I d like to save all cells which were tapped display the accessory type . If the UITableView reloads the accessory type s should still be presented . I thought about to do this with NSUserDefaults but don t know how to do it . If someone of you guys know how to do it and would like to help me you would help me a lot . Comment : Where is your problem exactly Knowing which cell is selected check Apple Doc https : developer.apple.com library ios documentation UIKit Reference UITableViewDelegate Protocol apple ref occ intfm UITableViewDelegate tableView : didSelectRowAtIndexPath : or the saving part with NSUserdefaults Comment : the saving part with NSUserDefaults @gutenmorgenuhu .. . Answer : Try the following : .. . .. . There are several other types you can save fetch beside AnyObject . Please check the Documentation for NSUserdefaults https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class index.html", "Question : I need to set a slider in preferences window of a cocoa application . If I set the NSSlider in awakeFromNib like so .. . .. . .. . .. . the preference window updates with the value when opened . Though since it is a preference window I need to register the Value with NSUserDefault so when the application at launch would run : .. . .. . .. . .. . But I cant even set the slider value in the applicationDidFinishLaunching method .. . .. . returns 0 and slider is set to minimum value set in IB in the preferences window . Where can I call the thresholdSlider setValue : NSUserDefaults standardUserDefaults forKey : kthresh to get the slider updated with the user value on last application quit The code edited according to Vadian proposition : .. . Answer : In AppDelegate as soon as possible register the key-value pair with a default-value . This value is always used if no custom value has been written to disk yet . Then set the value of the slider wherever you want consider the syntax .. . .. . To write the value to disk use this .. . .. . Do not use setValue : forKey : and valueForKey : to talk to NSUserDefaults .. . .. . Alternatively use Cocoa bindings and bind the key integerValue to the NSUserDefaultsController instance in Interface Builder . Comment : The cocoa binding solution works but the code does not I edited my answer showing your solution so you can see where I call the functions . Although thank you I was also forgetting to call synchronise Comment : Actually the code to register the default-value s can be also in applicationDidFinishLaunching it must be ensured that it s executed before retrieving the values the first time . In +initialize you have to check for the current class e.g . if self AppDelegate class because +initialize is called multiple times . The code to read and write from and to NSUserDefaults is standard code and is supposed to work . Comment : Well finally found out the issue was coming from the xib file not from the code . it works now both ways .", "Question : I am new to iPhone development and objective C . I have used NSUserDefaults to store some values in my app . But I don t know that if there is any limit for storing values in NSUserDefaults . Can anyone help me to know that . Thanks in advance . .. . Answer : The only Storage Limitation in NSUserDefaults is the Device Storage Capacity . As much as there are available Storage Space in an iOS Device you can practically store data in NSUserDefaults . The key - value pair is stored on a xml structured file . plist which is stored in an App Bundle . The user defaults system and key-value store are both designed for storing simple data types strings numbers dates Boolean values URL s data objects and so forth in a property list . The use of a property list also means you can organize your preference data using array and dictionary types . It is also possible to store other objects in a property list by encoding them into an NSData object first . About the User Defaults System https : developer.apple.com library mac documentation Cocoa Conceptual UserDefaults Introduction Introduction.html apple ref doc uid 10000059i", "Question : I have a login-screen in my iOS app . The username and password will be saved in the NSUserDefaults and be loaded into the login-screen again when you enter the app again of course NSUserDefaults are permanent . Now the user have the possibility to disable the username password saving feature . So the NSUserDefaults will be cleared then . But In my app I need this username password for database queries for the user . So : Where to store the data except NSUserDefaults This place can should be deleted when the user quit the app or logout . Comment : The user can only clear it by either resetting the device or removing the app . Am I missing something Comment : And by the way if the data should be deleted when the user quits the app why don t just keep it in RAM Comment : You should seriously consider using Keychain for storing usernames and passwords instead of NSUserDefaults . .. . Answer : I looked at using KeychainItemWrapper the ARC version but I didn t find its Objective C wrapper as wholesome as desired . I used this solution https : github.com kishikawakatsumi UICKeyChainStore by Kishikawa Katsumi https : github.com kishikawakatsumi which meant I wrote less code and didn t have to use casts to store NSString values . Two examples of storing : .. . .. . Two examples of retrieving Comment : Nice suggestion . Because the retrieving doesn t work correctly I ve proposed an edit .", "Question : I ve added NSUserDefault data-retrieval to my app which is pretty nice . But for testing I would like to reset all the data I added to the defaults database so that everything is in the state when the user launches the app the first time . I tried to call : .. . .. . NSUserDefaults resetStandardUserDefaults .. . .. . but that doesn t do anything . The defaults are still saved and can be retrieved . Comment : This is also answered here : stackoverflow.com questions 6358737 nsuserdefaults-reset http : stackoverflow.com questions 6358737 nsuserdefaults-reset .. . Answer : You want NSUserDefaults removePersistentDomainForName . This will remove all user defaults for the application : .. . .. . For more information on the NSUserDefaults class see the Apple docs https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes nsuserdefaults Class Reference Reference.html . Alternately if all you are concerned with is data in the iOS Simulator you can do that via iOS Simulator Reset Content and Settings . enter image description here http : i.stack.imgur.com lCusQ.png Comment : If I get the user defaults with a suite name remove don t wokr.. . NSUserDefaults suiteName : user manager remember user default why Comment : @danielgomezrico you need to use your suiteName as appDomain to remove user defaults with suite name", "Question : I ve added NSUserDefault data-retrieval to my app which is pretty nice . But for testing I would like to reset all the data I added to the defaults database so that everything is in the state when the user launches the app the first time . I tried to call : .. . .. . NSUserDefaults resetStandardUserDefaults .. . .. . but that doesn t do anything . The defaults are still saved and can be retrieved . Comment : This is also answered here : stackoverflow.com questions 6358737 nsuserdefaults-reset http : stackoverflow.com questions 6358737 nsuserdefaults-reset .. . Answer : Does removePersistentDomainForName : do what you want http : developer.apple.com iphone library documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref occ instm NSUserDefaults removePersistentDomainForName :", "Question : I have an NSMutableArray saved with NSUserDefaults . This array is my favourite items that the user can saves so when i want to add one item i need to read the array from NSuserDefault and save in the first free position . I m using this method to add a value in the NSMutableArray .. . .. . what s the deal That if the user call this method two times the second time the app crashes with this log : .. . .. . Terminating app due to uncaught exception NSInternalInconsistencyException reason : - NSCFArray insertObject : atIndex : : mutating method sent to immutable object .. . .. . why and why just the second time The first time works fine .. . Answer : NSUserDefaults always returns immutable objects even if the original object was mutable . It s in the documentation for objectForKey : .. . .. . The returned object is immutable even if the value you originally set was mutable . You will need to create a copy of the returned object before you modify it using NSMutableArray arrayWithArray : .. . .. . Probably also best to use the arrayForKey method of NSUserDefaults if you re retrieving an array . Docs here : http : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html Comment : right : NSMutableArray bbb NSMutableArray alloc initWithArray : abc works thanks Comment : Glad I could help : Comment : @JJSaccolo : A shortcut you can take is NSMutableArray bbb abc mutableCopy . Comment : thanks this helped", "Question : I have an app that uses NSUserDefaults standardUserDefaults to store session information . Generally this information is checked on app launch and updated on app exit . I have found that it seems to be working unreliably in iOS 8 . I am currently testing on an iPad 2 although I can test on other devices if need be . Some of the time data written before exit will not persist on app launch . Equally keys removed before exit sometimes appear to exist after launch . I ve written the following example to try and illustrate the issue : .. . .. . Running the above code I usually get the output below which is what I would expect : .. . .. . If I then comment out the lines that remove the key : .. . .. . And run the app three times I would expect to see : .. . .. . But the output I actually see is : .. . .. . e.g . It seems to not be updating the value on exiting the app . EDIT : I have tested the same code on an iPad 2 running iOS 7.1.2 and it appears to work correctly every time . TLDR - In iOS 8 does NSUserDefaults standardUserDefaults work unreliably And if so is there a workaround solution Comment : Please state what device you are running on . If it s the simulator - while it should work I m not particularly surprised that it doesn t . It has plenty of bugs Comment : What if you synchronize before reading the data in initially Not sure if that should be necessary but the Apple docs about NSUserDefaults do say that you can synchronize if you want to update the user defaults to what is on disk NSUserDefaults https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class Reference Reference.html apple ref doc uid 20000318-CIHDDEGI Comment : @AirsourceLtd I ve updated above . This was tested on an iPad 2 . I have other devices available so I will try them today . Comment : @Stonz2 Thanks for the suggestion . Tried that just now same outcome unfortunately . Comment : It looks like there are two places in your code that modify the Session value . At least the log output differs . .. . Answer : I found it in Foundation Framework Reference think it will be useful : .. . .. . The NSUserDefaults class provides convenience-methods for accessing common types such as floats doubles integers Booleans and URLs . A default object must be a property list that is an instance of or for collections a combination of instances of : NSData NSString NSNumber NSDate NSArray or NSDictionary . If you want to store any other type of object you should typically archive it to create an instance of NSData . For more details see Preferences and Settings Programming Guide .", "Question : I m saving an array of type ClassA to NSUserDefaults . ClassA look like this : .. . .. . This is how I m saving the array to NSUserDefaults : .. . .. . I m doing the following in my initial viewDidLoad : .. . .. . I get the following compile-time error on the second line above the one with let : .. . .. . However if I try to retrieve the array with anything other than AnyObject I get other compile-time errors . It also seems I can t cast from AnyObject to ClassA . Any ideas how this should be done .. . Answer : unarchiveObjectWithData takes an NSData as it s sole argument not an optional AnyObject . Since the result-of unarchive.. . is also an optional I d suggest using : Comment : No more errors . When I try to view classAunpacked via the debugger it is just a memory-address . I can t see any array items . Is there some way to view it Also I have checked CoreSimulator Devices someid data library preferences but all I see is com.apple.UIAutomation.plist . Is the plist I m modifying somewhere else Comment : You should use the nsuserdefaults method dataForKey developer.apple.com library mac documentation Cocoa Reference https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSUserDefaults Class apple ref occ instm NSUserDefaults dataForKey : Comment : @LeonardoSavioDabus : Excellent That works fine . Also while I can t see the entire array in the debugger I can view each element by using po classAunpacked 0 .description for example . Thanks David for a great answer . Comment : Any ideas where this plist file that is holding the data is located and what it is named Comment : You shouldn t try to manually edit those plists . You can use removeObjectForKey and reset delete any value", "Question : I created a bundle setting for my app with these options : .. . .. . and now I have this class called LHTabBarController.m .. . .. . and I am trying to get the value of Update Lot like so : .. . .. . Item 1 Toggle Switch - Update Lot - Type - Toggle Switch Title - Update Lot Identifier - update lot Value for ON - YES Value for OFF - NO Default Value - YES .. . .. . but no matter what it returns as NO when the default is YES....what am I doing wrong here In the bundle settings the setting is on as expected but I can t seem to get that value . I hope I don t have to do this in AppDelegate because I need to use this value in my class . Comment : Don t use valueForKey : with NSUserDefaults . And besides you can t assign the result-of valueForKey : to a BOOL variable . Don t ignore compiler-warnings . Comment : And keep in mind that the default values set in a Settings bundle will not appear in returned values from NSUserDefaults . .. . Answer : Try using boolForKey instead : .. . .. . Foundation Framework Reference NSUserDefaults Class Reference https : developer.apple.com library ios documentation Cocoa Reference Foundation Classes NSUserDefaults Class apple ref occ instm NSUserDefaults boolForKey :" ] }
[ "yes-answer-long", "yes-answer-short" ]
user
UNK_RELATION
jetty@spdy@107
jetty -- jetty is a widely-used async java-based http server and servlet engine supporting websockets and @placeholder protocols .
{ "confidence": [ 43.04523468017578, 42.437477111816406, 42.232276916503906, 41.36566925048828, 41.03825378417969, 40.8754997253418, 40.20087814331055, 40.075706481933594, 40.06563186645508, 39.663185119628906, 39.47939682006836, 39.349788665771484, 39.27752685546875, 38.96246337890625, 38.896095275878906, 38.87749481201172, 38.77210998535156, 38.72297668457031, 38.09392547607422, 38.08857345581055, 38.07856750488281, 38.07792663574219, 38.03089904785156, 37.94957733154297, 37.89102554321289, 37.89102554321289, 37.89102554321289, 37.886417388916016, 37.85935974121094, 37.71176528930664, 37.71168518066406, 37.575408935546875, 37.50879669189453, 37.4198112487793, 37.411102294921875, 37.38249588012695, 37.38002395629883, 37.34727096557617, 37.19499588012695, 37.189186096191406, 37.18736267089844, 37.18736267089844, 37.079715728759766, 37.07327651977539, 37.052635192871094, 36.97854995727539, 36.957157135009766, 36.94281005859375, 36.91634750366211, 36.862342834472656, 36.692386627197266, 36.68894577026367, 36.56975173950195, 36.56975173950195, 36.52492141723633, 36.43460464477539, 36.419612884521484, 36.407318115234375, 36.364654541015625, 36.3193473815918, 36.29013442993164, 36.28554153442383, 36.269466400146484, 36.23170471191406, 36.22317123413086, 36.13730239868164, 36.13730239868164, 36.10715103149414, 36.06523895263672, 36.059967041015625, 36.05649948120117, 36.043087005615234, 36.043087005615234, 35.928466796875, 35.9217529296875, 35.910430908203125, 35.897705078125, 35.88685607910156, 35.88685607910156, 35.88685607910156, 35.88685607910156, 35.78367233276367, 35.78172302246094, 35.746978759765625, 35.71208190917969, 35.65393829345703, 35.62698745727539, 35.603336334228516, 35.57220458984375, 35.5612678527832, 35.5328369140625, 35.48229217529297, 35.460968017578125, 35.4364128112793, 35.430992126464844, 35.384891510009766, 35.37071228027344, 35.289825439453125, 35.289405822753906, 35.27708435058594 ], "content": [ "index.jsp .. . .. . ENV .. . .. . Servlet Engine 3.1 .. . .. . JSP Engine 2.3 .. . .. . Application Server jetty 9.2.15.v20160210 .. . .. . Exception from jetty log", "Does Jetty support running JSR-356 websockets over SSL or do I need to use native Jetty websockets", "http : git.eclipse.org c jetty org.eclipse.jetty.project.git tree jetty-servlets src main java org eclipse jetty servlets ProxyServlet.java h jetty-8 .. . .. . and .. . .. . http : git.eclipse.org c jetty org.eclipse.jetty.project.git tree jetty-servlets src test java org eclipse jetty servlets AsyncProxyServer.java h jetty-8 .. . .. . good luck", "Indeed.. . jetty.codehaus.org jetty jetty-6 apidocs org mortbay jetty http : jetty.codehaus.org jetty jetty-6 apidocs org mortbay jetty handler ResourceHandler.html", "That documentation is for Jetty 7 aka Servlet 2.5 - Jetty 9 documentation aka Servlet 3.1 is at eclipse.org jetty documentation current annotations.html http : www.eclipse.org jetty documentation current annotations.html - annotation scanning for servlets filters websockets etc .. . aka endpoints is not supported in the WebSocketContext .", "These are enabled in jetty etc jetty-ssl-context.xml - .. . .. . I read Oracle Java 8 should support these protocols http : docs.oracle.com javase 8 docs technotes guides security SunProviders.html SunJSSEProvider but maybe that s not supported by OpenJDK", "Starting an embedded-jetty server with the websocket servlet seems to work .", "that invokes Jetty programatically via its Server http : jetty.codehaus.org jetty jetty-6 apidocs org mortbay jetty Server.html class", "First servlet based with jetty as container and second as console-application with oracles HttpServer class using jetty through HttpServerFactory.create . . .", "Jetty 6.1.0 used .", "java -jar jetty-server-8.1.3.v20120416.jar OPTIONS Server .. . .. . The Jetty documentation is both poor and missing 404 s .", "If you enable DEBUG level logging for org.eclipse.jetty.util.ssl and org.eclipse.jetty.server then the Jetty startup will report the list of selected ciphers and protocols per your configuration on the server-side .", "Jetty and Java EE 7 Web Profile http : www.eclipse.org jetty documentation current jetty-javaee.html webprofile-7", "Please refer this jetty doc Jetty Stop goal http : www.eclipse.org jetty documentation current jetty-maven-plugin.html jetty-stop-goal .. . .. . The stop goal stops a running instance of jetty .", "Jetty Version used : 9.1.1", "For Jetty 9 see : git.eclipse.org c jetty org.eclipse.jetty.project.git plain http : git.eclipse.org c jetty org.eclipse.jetty.project.git plain jetty-server src main config etc jetty-http.xml", "This http : stackoverflow.com questions 4903823 can-jetty-be-used-as-a-java-ee-lightweight-application-server SE question was found but it was written back in the days of Jetty 6 .", "I mentioned Jetty the web server not Java the vm", "My personal thoughts : I ve used embedded-jetty only as a servlet container .", "They are not meant to be used from embedded-jetty .", "I have a Jetty HttpClient sending Async Requests using Jetty v9.0.2 .", "It has nothing to do with Jetty 7 vs Jetty 9 this level of HTTP error warning was present in Jetty 7 as well .", "wiki.eclipse.org Jetty Tutorial http : wiki.eclipse.org Jetty Tutorial Embedding Jetty Configuring a File Server", "Use embedded-jetty or jetty-distribution directly .", "Jetty 8 Without WebApp http : i.stack.imgur.com tjr3s.png .. . .. . Jetty 8 With WebApp", "Jetty 8 With WebApp http : i.stack.imgur.com 45jST.png .. . .. . Jetty 9 Without WebApp", "Jetty 9 Without WebApp http : i.stack.imgur.com XJdMz.png .. . .. . Jetty 9 With WebApp", "Are Jetty and Winstone What is a lightweight fast java servlet container", "Just get used to starting jetty and exposing a servlet first .", "I downloade Jettey Adaptor for Jetty and then added Jetty Server 8.1 in Eclipse .", "Sure : download.eclipse.org jetty stable-9 apidocs org eclipse jetty http : download.eclipse.org jetty stable-9 apidocs org eclipse jetty spdy server http ReferrerPushStrategy.html", "What are the benefits of embedding http : wiki.eclipse.org Jetty Tutorial Embedding Jetty jetty vs deploying http : wiki.eclipse.org Jetty Howto Deploy Web Applications your webapp s in jetty", "Updated version using jetty-9 and servlet api 3.1 : github.com jetty-project embedded-servlet-3.1 https : github.com jetty-project embedded-servlet-3.1", "Jetty doesn t support Java 6 either .", "Here is the code that launches the Jetty server .", "There s a github project demonstrating Jetty 9 embedded with JSP Maintained by the Jetty project - github.com jetty-project embedded-jetty-jsp https : github.com jetty-project embedded-jetty-jsp", "apache - the Apache Jasper JSP engine the new Jetty default .. . glassfish - the Glassfish Jasper JSP engine original version in use by Jetty .", "I m running a SmartFox 1.6 server with included Jetty servlet container .", "I wonder when jetty will have a jetty-jsp.jar", "Your embedded-jetty is making assumptions that your jetty-distribution based XMLs don t conform to", "As a sidenote Jetty 8 supports Servlet 3.0 as well .", "I m trying to use Jetty to deploy a Jodd servlet .", "Jetty uses the SSL defaults in Java .", "The list of jetty config files to load is read from here - github.com adamretter exist blob jetty-9 tools jetty etc https : github.com adamretter exist blob jetty-9 tools jetty etc enabled-jetty-config and the actual config file which configures RequestLog is here - github.com adamretter exist blob jetty-9 tools jetty etc https : github.com adamretter exist blob jetty-9 tools jetty etc jetty-requestlog.xml", "Migrating an application based on Jetty 6 to 9.2 embedded .", "download.eclipse.org jetty stable-9 apidocs org eclipse jetty http : download.eclipse.org jetty stable-9 apidocs org eclipse jetty annotations ClassInheritanceHandler.html", "There is no need to download the Jetty server .", "At runtime you will still be running inside a Servlet container could be Jetty Tomcat or a full-blown Java EE server .", "Stacktrace : .. . .. . My pom.xml file : .. . .. . I know that these messages are coming from using jetty and its generated from the ShutdownMoitor https : eclipse.googlesource.com jetty org.eclipse.jetty.project + 91f6170c40a88c26dd0af863c9f1540c3078a1a6 jetty-server src main java org eclipse jetty server ShutdownMonitor.java Monitor http : git.eclipse.org c jetty org.eclipse.jetty.project.git tree jetty-start src main java org eclipse jetty start Monitor.java id 43c9bba86d076cae33f4fa21a3effd127c03ae67 n96 class run method and this if loop gets executed .. . .. . What are those commands and why are they ignored", "In the example Jetty is used .", "jetty-run output : .. . .. . Though the Jetty 9 docs http : www.eclipse.org jetty documentation 9.2.10.v20150310 ant-and-jetty.html use jetty.run and jetty.stop this guide http : wiki.eclipse.org Jetty Howto Use Jetty with Ant does not .", "Jetty 9.0.x is a transitional release of Jetty between Servlet 3.0 and Servlet 3.1 in fact Jetty 9.0.x is using an alpha draft version of the Servlet 3.1 spec", "download.eclipse.org jetty stable-9 apidocs org eclipse jetty http : download.eclipse.org jetty stable-9 apidocs org eclipse jetty server handler ContextHandler.html setAllowNullPathInfo boolean", "I have configured jetty-maven-plugin http : www.eclipse.org jetty documentation current jetty-maven-plugin.html in my eclipse Mars and I can run the server using jetty start and stop goals .", "How do I tell Jetty to start the new Servlet", "In case you want to develop a custom solution based on jetty-xml you should check how jetty-boot does it .", "The KML Server uses embedded Jetty .", "n your jetty.base add the following 2 lines to your start.ini --exec -DpropertySource file : etc jetty arm.properties service jetty9 start FAIL Starting Jetty 9 Servlet Engine : jetty9 failed", "Are there any features of the Jetty server or the servlet API to prevent such attacks", "Here is how it is done : .. . .. . Jetty Documentation http : docs.codehaus.org display JETTY How+to+Configure+Security+with+Embedded+Jetty", "I m running the plantuml.war http : www.plantuml.com server.html on a server using jetty-runner http : www.eclipse.org jetty documentation current runner.html .", "It s based on Jetty but it runs as a standalone application .", "I m writing a server app that uses secure websockets using embedded Jetty 9.3.0.M2 .", "You can t use the Jetty WebSocketHandler in that fashion as it needs to be part of the Jetty LifeCycle hierarchy and have access to the Jetty Server to be sane .", "Embedded Jetty https : wiki.eclipse.org Jetty Tutorial Embedding Jetty .. . .. . Jetty Realms https : wiki.eclipse.org Jetty Tutorial Realms", "This is a Jetty server compatibility problem .", "Then start the jetty server .", "Merge your embedded-jetty questions tagged embedded-jetty jar file code into the theserver src main java jetty livewar ServerMain.java https : github.com jetty-project embedded-jetty-live-war blob master theserver src main java jetty livewar ServerMain.java from the embedded-jetty-live-war example project maintained by the Jetty Project .. . .. . The end result is a single Server instance with 2 webapps running in it .", "This is running on an ec2 instance in jetty 7 not app engine .", "jetty-continuation-7.0.0.M1.jar .. . jetty-http-7.0.0.M1.jar .. . jetty-io-7.0.0.M1.jar .. . jetty-security-7.0.0.M1.jar .. . jetty-server-7.0.0.M1.jar .. . jetty-servlet-7.0.0.M1.jar .. . jetty-util-7.0.0.M1.jar .. . jetty-webapp-7.0.0.M1.jar .. . jetty-xml-7.0.0.M1.jar", "How to programmatically shutdown embedded-jetty server", "Edited to make it clear that I m using JSR-356 websockets rather than Jetty native websockets .", "The only difference between the example and my code is that I am using JSR-356 websockets instead of native Jetty websockets .", "See the Jetty Distribution s etc jetty-setuid.xml https : github.com eclipse jetty.project blob jetty-9.3.7.v20160115 jetty-distribution src main resources etc jetty-setuid.xml for help .", "I am migrating from Jetty 8.1.17 to Jetty 9.3.9 .", "So on the server-side I set java options to the Jetty server .", "In Jetty this is done by a servlet filter that is always added as first filter by a ServletContainerInitializer .", "You can find more information about its usage in the documentation of Jetty http : www.eclipse.org jetty documentation current framework-jetty-osgi.html .", "I read docs http : www.eclipse.org jetty documentation current jetty-xml-usage.html .. . .. . and add string to jetty.xml : .. . .. . but this does not work and jetty fail .", "Jetty 9.1.3 http : www.eclipse.org jetty documentation current configuring-jsp.html and just adding jetty-jsp worked for me plus the web.xml config from the url .", "I found this setting explained here docs.codehaus.org display JETTY http : docs.codehaus.org display JETTY Newbie+Guide+to+Jetty NewbieGuidetoJetty-ThreadPooloptional .", "I m running Jetty 9 jetty-9.0.5.v20130815 server with servlet-api 3.0.1 javax.servlet : javax.servlet-api : 3.0.1 my servlet is configured to accept multipart requests .", "I want it to start jetty run test servlet container required stop jetty and write BUILD SUCCESSFUL .", "For other goals configurations please refer to Configuring Jetty Maven plugin http : www.eclipse.org jetty documentation current jetty-maven-plugin.html", "At this point Jetty 7 and Jetty 8 are both EOL so just use Jetty 9 .", "That s the principle used by start.jar when it start a jetty server .", "In the jetty-servlets artifact there is a ProxyServlet that will do async proxy work for you .", "I m using jetty-all-server-8.1.3 and servlet api 3.0 .. . .. . Thanks in advance for your help hints", "I m investigating using Jetty 9 as a proxy using standalone Jetty not embedded Jetty .", "I ve tried using the maven-jetty-plugin v6.1.26 http : docs.codehaus.org display JETTY Maven+Jetty+Plugin and jetty-maven-plugin v8.0.0.M2 http : wiki.eclipse.org Jetty Feature Jetty Maven Plugin but with no difference .", "You ll want the i-jetty project at .. . .. . http : code.google.com p i-jetty .. . .. . It is the android layer for Jetty 7 created by the Jetty project team members themselves .", "I imported the basic Jetty server and servlet dependencies since I thought that were the only server requirements for a basic REST only Jetty server I alto tried to use the webapp dependency this gave the same errors .", "There are numerous examples of Jetty embedded use on github.com eclipse jetty.project https : github.com eclipse jetty.project blob jetty-8 example-jetty-embedded .. . .. . Example : LikeJettyXml.java https : github.com eclipse jetty.project blob jetty-8.1.15.v20140411 example-jetty-embedded src main java org eclipse jetty embedded LikeJettyXml.java L86-L112 - Jetty 8 with no XML used setting up an SSL connector .", "Jetty version is : jetty-all-9.2.10.v20150310", "http : git.eclipse.org c jetty org.eclipse.jetty.project.git tree jetty-websocket websocket-server src test java org eclipse jetty websocket server examples echo ExampleEchoServer.java .. . .. . Short Answer : .. . .. . This will create a simple server that handles 1 context the root context .", "Jetty is a servlet container just like Tomcat .", "That is called from DefaultJettyAtJettyHomeHelper.startJettyAtJettyHome .. . https : github.com eclipse jetty.project blob jetty-9.2.9.v20150224 jetty-osgi jetty-osgi-boot src main java org eclipse jetty osgi boot internal serverfactory DefaultJettyAtJettyHomeHelper.java L161 .. . There you will find the trick that the Thread Context Classloader is overridden until the Server is configured from the XML .", "SparkJava using jetty server should I first download the jetty server in the Linux Server", "I use embedded Jetty to host a WEB server .", "The Jetty documentation has some information on graceful shutdown http : docs.codehaus.org display JETTY How+to+gracefully+shutdown of Jetty ." ] }
{ "confidence": [ 55.02146911621094, 53.04827880859375, 53.023956298828125, 51.96535873413086, 51.82683181762695, 50.725990295410156, 50.1561279296875, 49.958160400390625, 49.676597595214844, 49.602378845214844, 49.561336517333984, 49.05305480957031, 48.874534606933594, 48.688560485839844, 48.617794036865234, 48.590721130371094, 48.527244567871094, 48.47146987915039, 48.35227966308594, 48.32658386230469 ], "content": [ "Question : I m trying to add org.eclipse.jetty.annotations.AnnotationConfiguration to the configurationClasses property of org.eclipse.jetty.webapp.WebAppContext but when invoking Jetty with sbt containe : start getting : .. . .. . I ve tried changing the Set .. . to a Call name setConfigurationClasses with both the String as well as List String variants to no avail still getting the same reflection exception every time . My jetty-web.xml is as follows : .. . .. . ANSWER : deciding by https : github.com JamesEarlDouglas xsbt-web-plugin blob master src jetty-9 scala Jetty9Runner.scala xsbt-web-plugin sets the configurations property of WebAppContext to a hardcoded value so no matter what s in the XML configs it probably simply gets ignored or causes an error apparently . .. . Answer : The Configuration classes exist to configure the WebAppContext itself . Adding the Configurations in the jetty-web.xml or the Jetty IoC XML Context Deployable is too late in the lifecycle . If you look at etc jetty-annotations.xml you ll see .. . .. . .. . and etc jetty-plus.xml you ll see .. . If you notice you ll see that these are configured at the server level and are based on existing defaults to satisfy ordering requirements of the Configurations . Comment : How about the Applying the configurations to a single webapp section at wiki.eclipse.org Jetty Feature Annotations http : wiki.eclipse.org Jetty Feature Annotations Comment : That documentation is for Jetty 7 aka Servlet 2.5 - Jetty 9 documentation aka Servlet 3.1 is at eclipse.org jetty documentation current annotations.html http : www.eclipse.org jetty documentation current annotations.html - annotation scanning for servlets filters websockets etc .. . aka endpoints is not supported in the WebSocketContext . File a bug at bugs.eclipse.org under RT Jetty if you feel this is important . Comment : not supported in the WebAppContext you meant to say Comment : ...in any case-when using xsbt-web-plugin and embedded Jetty is there any way at all then to change the list of configurations other than by creating the Jetty instance directly in Java Scala code as opposed to having the container : start command of xsbt-web-plugin do that for me Comment : @ErikAllik aka RaceCondition on irc rejoin irc please .", "Question : I have spent the better part of the day on this and so far have been unable to get Jetty 9 configured to serve over HTTPS correctly . This is only for development purposes so I have generated a keystore file that I am attempting to use with Jetty . I am generating the certificate like this : .. . .. . This is from the Jetty instructions at https : www.eclipse.org jetty documentation current configuring-ssl.html . Output from mvn -X jetty : run when I start the server showing the cipher suites : .. . .. . Output from mvn -X jetty : run from when I attempt to make a request to https : localhost : 8443 : .. . .. . Here is the relevant section from my pom.xml : .. . .. . Here is my jetty.xml : .. . .. . jetty-ssl.xml .. . .. . jetty-https.xml .. . .. . jetty-ssl-context.xml Comment : What client are you using Comment : Same exception in Chrome as well as Firefox . I think it is related to the certificate but I m not even sure what I m looking for . So many contradictory explanations and examples out there for Jetty . Comment : The Set name IncludeCipherSuites does not override exclude . Your algorithm cipher and protocol excludes are still present in the Jetty SslContextFactory and Java security banned list . Comment : Yeah . You should probably just copy exactly what is configured in the documentation link that you provided . Comment : If you enable DEBUG level logging for org.eclipse.jetty.util.ssl and org.eclipse.jetty.server then the Jetty startup will report the list of selected ciphers and protocols per your configuration on the server-side . .. . Answer : change this : .. . .. . to this : .. . .. . Reverse the order of jetty-https.xml and jetty-ssl-context.xml . You are creating ssl-connector in jetty-https with a default SslContextFactory Ref refid sslContextFactory is null then go on creating a new SslContextFactory that you are configuring but it is not used anywhere . Comment : This solved my problem . thanks .", "Question : When trying to repeatedly run the Embedded Jetty with Maven example http : www.eclipse.org jetty documentation current maven-and-jetty.html configuring-embedded-jetty-with-maven in NetBeans I unfortunately get the error : .. . .. . NetBeans screenshot http : i.stack.imgur.com HOUk1.png .. . .. . If the root cause for this is the SO REUSEADDR http : developerweb.net viewtopic.php id 2981 limitation when binding listening sockets - then probably ServerSocket.setReuseAddress true would help . But how and where to call it in the HelloWorld.java https : github.com afarber jetty-newbie blob master JettyMavenHelloWorld src main java org example HelloWorld.java I am using the following pom.xml https : github.com afarber jetty-newbie blob master JettyMavenHelloWorld pom.xml : .. . .. . UPDATE : .. . .. . Lars Gendner is correct and I do have HelloWorld processes still running at my Macbook : .. . .. . And the port 8080 is in use : .. . .. . But of course I do not want to change port-number again and again and spawn more processes . Instead being NetBeans and Jetty newbie I wonder how to properly stop embedded Jetty in NetBeans besides of awk HelloWorld print 2 xargs kill workaround .. . .. . UPDATE 2 : .. . .. . Adding jetty-maven-plugin to the pom.xml https : github.com afarber jetty-newbie blob master JettyMavenHelloWorld pom.xml and running mvn jetty : run does start a web server at port 8080 but it only displays the red text : .. . .. . Here is the full Maven output : Comment : Are you using jetty-maven-plugin in your pom.xml please post it in your question . Comment : I have added the pom.xml https : github.com afarber jetty-newbie blob master JettyMavenHelloWorld pom.xml to my question I am not using jetty-maven-plugin yet Comment : This post has a more detailed answer for killing the processes . stackoverflow.com questions 7082476 http : stackoverflow.com questions 7082476 jetty-startup-fails-address-in-use .. . Answer : You should add jetty-maven-plugin to your pom and try stopping the server . The jetty stop goal looks for the plugin configuration . Please refer this jetty doc Jetty Stop goal http : www.eclipse.org jetty documentation current jetty-maven-plugin.html jetty-stop-goal .. . .. . The stop goal stops a running instance of jetty . To use it you need to configure the plugin with a special port-number and key . That same port-number and key will also be used by the other goals that start jetty . Here s the plugin configuration for jetty-stop .. . .. . And after jetty is started issue the following command .. . .. . or simply try the .. . .. . And mvn jetty : run command would start the server . For other goals configurations please refer to Configuring Jetty Maven plugin http : www.eclipse.org jetty documentation current jetty-maven-plugin.html Comment : Thank you but I have tried your suggestion both on Win 7 and Mac OSX and mvn jetty : run does start a web server now but it only displays a red text Directory : please see the update 2 in my question Comment : @Alexander Yes your webapp started successfully and you should be able to access the site at http : localhost : 8080 . This will show the available contexts registered by jetty . The log show that you don t have webapp folder . And did the jetty stop goal work Comment : Yes but my handler response.getWriter .println h1 Hello World h1 is not called for some reason Comment : Do you have a servlet mapping in your web.xml for the HelloWorld servlet You shuld add the servlet mapping request URL and servlet class in it for this to work . Comment : This post Servlet Mapping using web.xml http : stackoverflow.com q 8198312 1793718 should help you for mapping your servlet handler methods with request urls . Or as suggested in the answer you can use @WebServlet http : docs.oracle.com javaee 6 api javax servlet annotation WebServlet.html since Servlet 3.0 .", "Question : I m trying to implement a jsr 356 websocket connection from within a war deployed in jetty . I m using this as a guide : http : aredko.blogspot.com 2013 11 java-websockets-jsr-356-on-jetty-91.html .. . .. . I can find lots of tutorials on basically using jsr 356 with an embedded-jetty server but none on building a websocket connection within an existing server - are there any good ones out there Whenever I run the code listed above I get the following error : .. . .. . which refers to the code .. . .. . I m at a loss to figure this out . I m using the following lines from gradle to bring in the websocket stuff : .. . .. . I see that both the javax-websocket-server-impl jar and the javax.websocket-api jar contain ServerContainer classes...but I m only including one of those in my war file . Is jetty pulling from its own internal older version Or am I completely misreading the source of the issue The jetty version I have is : jetty-9.2.1.v20140609 .. . Answer : The websocket jars should not be in your WAR . Remove the following jars from your WAR s WEB-INF lib directory . javax.websocket-api- .jar - the javax.websocket API jar .. . javax-websocket-server-impl- .jar - the jetty server javax.websocket.server . implementation jar .. . javax-websocket-client-impl - the jetty javax.websocket . client jar .. . .. . This is because you are coding compiling against javax.websocket . API classes . The API and the implementation of the API are provided by Jetty itself . This is no different than when you code against the servlet-api . namely that you don t include the servlet-api and the implementation of the servlet-api in your WAR", "Question : I m writing some example code where an embedded Jetty server is started . The server must load exactly one servlet send all requests to the servlet and listen on localhost : 80 .. . .. . My code so far : .. . .. . Can i do the same with less code lines Jetty 6.1.0 used . .. . Answer : You could configure Jetty declaratively in a Spring applicationcontext.xml e.g : .. . .. . http : roopindersingh.com 2008 12 10 spring-and-jetty-integration .. . .. . then simply retrieve the server bean from the applicationcontext.xml and call start.. . I believe that makes it one line of code then.. . : .. . .. . It s useful for integration tests involving Jetty .", "Question : I m writing some example code where an embedded Jetty server is started . The server must load exactly one servlet send all requests to the servlet and listen on localhost : 80 .. . .. . My code so far : .. . .. . Can i do the same with less code lines Jetty 6.1.0 used . .. . Answer : I ve written a library EasyJetty https : github.com renatoathaydes easy-jetty that makes it MUCH easier to embed Jetty . It is just a thin layer above the Jetty API really light-weight . Your example would look like this :", "Question : I m using Tomcat to serve my Java Servlets and it s kinda more for me . I just need to serve Servlet Requests alone no static content neither JSP etc . So I was looking for a Servlet container that can be embedded in my Application . I felt it if stripped Jetty and use it as a Servlet Container alone it can be more scalable and occupying small memory-footprint I don t need Jetty s Web Server and other Parts . So I ve a few questions though .. . .. . 1 . How do I embed Jetty in my Application Code to serve Servlet Requests alone 2 . If I embed Jetty code in my Application Code will I be able to easily upgrade Jetty Versions 3 . I got the Jetty code here if I have to embed Jetty s Servlet Container in my App which one should I use from the source http : git.eclipse.org c jetty org.eclipse.jetty.project.git snapshot jetty-9.0.3.v20130506.tar.bz2 jetty-9.0.3.v20130506 jetty-servlet or jetty-9.0.3.v20130506 jetty-servlets .. . .. . I intend to serve API Requests with my Applications and I m looking for Performance and Scalability as main constraints . And of course Servlet 3.0 support . .. . Answer : What you are looking for is running Jetty in an embedded scenario . There s plenty of examples available showing how to tie together the various pieces you need to accomplish your goals . Check out the embedded examples in the jetty source tree http : git.eclipse.org c jetty org.eclipse.jetty.project.git tree examples embedded src main java org eclipse jetty embedded . For the record jetty standalone is really just jetty embedded with a few startup and classpath related bootstraps . It is the same code and assembled in basically the same way . Since you stated you want Servlet 3.0 have no interest in JSP this is rather easy to setup . JSP is trickier to setup but possible . For servlet-3.0 specific embedding there s a complete example project hosted at github . https : github.com jetty-project embedded-servlet-3.0 .. . .. . In short you ll have the following initialization code . Comment : Updated version using jetty-9 and servlet api 3.1 : github.com jetty-project embedded-servlet-3.1 https : github.com jetty-project embedded-servlet-3.1", "Question : I m writing some example code where an embedded Jetty server is started . The server must load exactly one servlet send all requests to the servlet and listen on localhost : 80 .. . .. . My code so far : .. . .. . Can i do the same with less code lines Jetty 6.1.0 used . .. . Answer : Works with Jetty 8 :", "Question : I have created a simple Servlet that I want to deploy in Jetty 7.2 . Jetty is running and is able to serve JSP pages on http : localhost : 8080 jonas test.jsp . I started Jetty with the java -jar start.jar command . I saved my compiled Servlet MyServlet.class at my jetty directory webapps jonas WEB-INF classes MyServlet.class and then tried to access that Servlet on http : localhost : 8080 jonas servlets MyServlet but I get a HTTP 404 error . Is there something more I have to do Where in the Jetty file structure should I place MySerlvet.class .. . .. . I have now created a simple web.xml file and saved it in my jetty directory webapps jonas WEB-INF web.xml and restarted my Jetty but it doesn t work . Here is my simple web.xml .. . .. . .. . .. . I had a similar problem with JSP that is solved now : How do I deploy a JSP file in the Jetty webserver http : stackoverflow.com questions 4109535 how-do-i-deploy-a-jsp-file-in-the-jetty-webserver Comment : Are you using Jetty as standalone servletcontainer to which you deploy fullworthy WAR files Or are you using Jetty as embedded servletcontainer and programmatically creating starting it by Java code Comment : @BalusC : I m using Jetty as a standalone servletcontainer and I m only deploying a simple Hello World servlet class I haven t learnt about how to create .war files yet . I will learn the basics first . Comment : OK then Bozho has it indeed correct . Otherwise the answer would have been context.addServlet new ServletHolder new MyServlet myservlet as outlined here docs.codehaus.org display JETTY Embedding+Jetty http : docs.codehaus.org display JETTY Embedding+Jetty .. . Answer : I think there should be a config or readme.txt file in the installation folder or lib or bin or conf subfolders of your Jetty Server . Read through those and you will get the specific directories to put your classes . Setting your classes directory in the Jetty server or at least remeber it . Those will be the classes run when the Jetty server runs . As for the classpath java has a way of being told to run classes from specifies folders . You can add a- : .. . .. . With this . - fullstop in the classpath variable you will make running the java command look for classes in that current direcory . Comment : I have read through the README text file now and it contains no information on this .", "Question : I switched from Tomcat to Jetty as ServletContainer and try to enable SPDY with all default settings of jetty . This are my steps to enable SPDY : .. . .. . 1 . I download and unzip jetty .. . 2 . i copy a .war-File in webapps and some Deployment-Descriptors which are only project specific . 3 . now the tricky part i enable SPDY by executing the following command : .. . .. . java -jar start.jar --add-to-startd spdy .. . .. . I accept the untrusted protonego-impl and now exist a start.d spdy.ini file . 4 . and now start jetty with : .. . .. . java -jar start.jar .. . .. . Additionaly i enable some debugging by uncommenting in etc protonego-alpn.xml the command : .. . .. . On server startup i get : .. . .. . 2015-02-10 13 : 22 : 10.292 : INFO : oejs.ServerConnector : main : Started ServerConnector@5841a6a3 HTTP 1.1 0.0.0.0 : 8080 2015-02-10 13 : 22 : 10.387 : INFO : oejs.ServerConnector : main : Started ServerConnector@5c9f2ea4 SSL-alpn 0.0.0.0 : 8443 .. . .. . Which tell me on Port 8080 runs normal HTTP and on 8443 run ALPN which support following protocols : spdy 3 spdy 2 http-1.1 . But if i visit a HTTPS page from my project i get following : .. . .. . S ALPN protocols spdy 3.1 http-1.1 received from client for 783e3eb9 SSLEngine hostname 127.0.0.1 port 50458 SSL NULL WITH NULL NULL S ALPN protocol http-1.1 selected for 783e3eb9 SSLEngine hostname 127.0.0.1 port 50458 SSL NULL WITH NULL NULL .. . .. . I understand the above statment that the server support spdy 3.1 and http-1.1 was selected . But remove all connections except spdy 3 i got EofExceptions and can t visit HTTPS pages . I use Java JDK 1.7 and Chrome with SPDY-Indicator and Jetty 9.2.5 and all configurations over XML . Can someone help me or tell more about this issue Oh and it s not required to use ALPN i want spdy and the technique behind this is at the moment unnecessary . Comment : I try the solution below after converting the code snipped in a xml config representation but i can t see a spdy connection . stackoverflow.com questions 25035063 http : stackoverflow.com questions 25035063 how-to-run-jetty-with-spdy-using-alpn .. . Answer : Jetty does not support SPDY 3.1 only up to SPDY 3 . In fact Jetty will never support SPDY 3.1 . SPDY and NPN were just removed from the code tree in the upcoming Jetty 9.3.0 release . http : git.eclipse.org c jetty org.eclipse.jetty.project.git commit id 2162455b72d5a474bba47d5daf5543d46c2688be Comment : OK . Its not required to use spdy 3.1 . I want to use spdy and the direct Version isn t important . Have you an idea why i get no spdy connection Comment : @Happo the browser is negotiating spdy 3.1 and http-1.1 the server can speak spdy 3.0 and http-1.1 so the protocol negotiation chooses http-1.1 as the only protocol in common . If you want to rip the benefits of SPDY I suggest you use HTTP 2 instead since all browsers that support SPDY support also HTTP 2 and Jetty 9.3.0 also supports HTTP 2 .", "Question : By setting .. . .. . The org.eclipse.jetty.jaxws2spi.JettyHttpServerProvider class is not found . I have included libs : Jetty 9 jaxws-ri-2.2.10 Jaxb-2.2.7 .. . .. . I already checked out : .. . Metro + Jetty + OSGi pain https : stackoverflow.com questions 1876126 metro-jetty-osgi-pain .. . .. . but the codehaus stuff is afaik moved to eclipse.. . .. . .. . Where is the org.eclipse.jetty.jaxws2spi.JettyHttpServerProvider Edit : .. . .. . Ok i found out that it was renamed to org.eclipse.jetty.http.spi.JettyHttpServerProvider .. . .. . But now i am getting : .. . .. . Solved : By using Jetty 9.0.6 it is compatible with Java 7 Comment : Did you include JAX-WS RI Comment : jaxws-ri-2.2.10 is included Comment : Don t use Jetty 9.0.6 the entire Jetty 9.0.x version is an transition suite from Servlet 3.0 to Servlet 3.1 it even uses beta releases of the servlet-3.1 spec . Use at least Jetty 9.1.x or even better 9.2.x which also support Java 7 .. . Answer : As you can see from the Java Class File format byte offsets 6 and 7 are used to store the class file version . The table here will help https : en.wikipedia.org wiki Java class file General layout .. . .. . Version 52 is used to indicate that the class file-format is Java 8 . My guess is that you re using a library with a Java 8 requirement or just one that was built using Java 8 and not targeting a previous class file-format and running on Java 7 . Jetty 9 is supposed to be Java 1.7 based http : www.eclipse.org jetty about.php which means you re either using something newer or you re using somebody s customised version that requires Java 8 . Comment : 9.3.1 is Java 8 i downgraded to 9.0.6 Comment : Jetty 9.3.0 was the first Java 8 release just after the Java 7 final EOL . When Java 8 goes EOL the next major release of Jetty will drop support as well . Note : Jetty versioning is servlet spec support . major version . minor version meaning Jetty 9.3 is 3 major versions after 9.0", "Question : I had created a Proxy Server Fwd and Reverse using Java sockets . which would listen to Incoming Request on 8080 configured in browser and forward them to another Proxy Server2 . And Read the Response sent by the server2 and write it to the browser . Meanwhile code will be logging requests and response and also blocking certain predefined request types from browser . Now I want to do this using Jetty and also support HTTPS request . I searched for example but I found none . This starts server at 8080 which I have configured as proxy port in Browser s proxy setting . This is the handler which I use to listen to request and write response back to browser . Once I have the response I want to forward it to proxy server wait for its response and write it back to the Browser . I need help with that . Comment : You want the code written here Comment : Not Exactly . I was able to capture the Incoming request but now I want to forward the request to Server2 and write the response sent by Server2 to the browser . Previously I think Jetty had class called ProxyHandler but now its Depricated and Im not able to find any info regarding changes . So I only Need help with Second part of the problem . .. . Answer : In the jetty-servlets artifact there is a ProxyServlet that will do async proxy work for you . I would just give that a try and see if it fits your needs . In the tests of that project is an AsyncProxyServer that you can just start up and give a whirl . The underlying continuation and jetty clients used for the proxying are extensible through the customize methods . http : git.eclipse.org c jetty org.eclipse.jetty.project.git tree jetty-servlets src main java org eclipse jetty servlets ProxyServlet.java h jetty-8 .. . .. . and .. . .. . http : git.eclipse.org c jetty org.eclipse.jetty.project.git tree jetty-servlets src test java org eclipse jetty servlets AsyncProxyServer.java h jetty-8 .. . .. . good luck", "Question : i have a webapp http : sourceforge.net projects sf-mvn-plugins files m2-repo net sf maven plugins example-captaincasa-jnlp 0.1-SNAPSHOT example-captaincasa-jnlp-0.1-SNAPSHOT.war download wich use jsf in a servlet container . This works fine with jetty-maven-plugin run-war target at my local pc . In the future i would like make more of this kind of weapps . Now i am looking for a way to deliver this webapps with jetty via jnlp . The end user should be have a zero installation but the webapps needs servlet container and my hoster does not support a servlet container or application server or so on . I don t like an embedded solution because in this case each webapp must be delivered with a separate jetty und run with a separate jetty - too big size - to many download size and so on . The architecture should be similar to this : architecture http : tmichel.users.sourceforge.net files Architecture.png .. . .. . Example : Bundle1 could contains jetty and deployed webapp1 and Bundle2 could contains jetty and deployed webapp1 and webapp2 related to requirements of end user i would like deliver many variant of my webapps .. . .. . But what is my question 1 Wich jars of jetty are needed I would like these upload to my homepage for hosting . 2 Wich jar should i use for jetty as main jar to start him via jnlp 3 Wich main class should i use to start jetty via jnlp 4 Wich parameter i could use to configure jetty to say this is war of webapp1 and this is war of webapp2... . or this is directory of weapps for hot deployment.. . The important question for me is 1 If this is answered so i could run jetty local without maven-plugin and via manual maybe i could solve the rest 2-4 . Thanks for ideas .. . .. . Thomas .. . Answer : Why not deploy a normal Java app with a main etc . that invokes Jetty programatically via its Server http : jetty.codehaus.org jetty jetty-6 apidocs org mortbay jetty Server.html class That class is configured via code with the appropriate contexts servlet classes etc . I ve done that before with success . The only headache is running one Jetty with multiple apps being downloaded on request if I read your question correctly . Can you use some classloading magic and load classes apps on demand from a remote URL Comment : Hallo Brian thanks for your answer . I am not familar in configuration of jetty . So at the moment i am working on to find a configuration . My tests you can trace here : sourceforge.net projects devtool files experimental https : sourceforge.net projects devtool files experimental jetty-jnlp.zip download Thomas", "Question : I have created a simple Servlet that I want to deploy in Jetty 7.2 . Jetty is running and is able to serve JSP pages on http : localhost : 8080 jonas test.jsp . I started Jetty with the java -jar start.jar command . I saved my compiled Servlet MyServlet.class at my jetty directory webapps jonas WEB-INF classes MyServlet.class and then tried to access that Servlet on http : localhost : 8080 jonas servlets MyServlet but I get a HTTP 404 error . Is there something more I have to do Where in the Jetty file structure should I place MySerlvet.class .. . .. . I have now created a simple web.xml file and saved it in my jetty directory webapps jonas WEB-INF web.xml and restarted my Jetty but it doesn t work . Here is my simple web.xml .. . .. . .. . .. . I had a similar problem with JSP that is solved now : How do I deploy a JSP file in the Jetty webserver http : stackoverflow.com questions 4109535 how-do-i-deploy-a-jsp-file-in-the-jetty-webserver Comment : Are you using Jetty as standalone servletcontainer to which you deploy fullworthy WAR files Or are you using Jetty as embedded servletcontainer and programmatically creating starting it by Java code Comment : @BalusC : I m using Jetty as a standalone servletcontainer and I m only deploying a simple Hello World servlet class I haven t learnt about how to create .war files yet . I will learn the basics first . Comment : OK then Bozho has it indeed correct . Otherwise the answer would have been context.addServlet new ServletHolder new MyServlet myservlet as outlined here docs.codehaus.org display JETTY Embedding+Jetty http : docs.codehaus.org display JETTY Embedding+Jetty .. . Answer : You have to map your servlet in web.xml using servlet and servlet-mapping or annotate it with @WebServlet if using servlet-3.0 . Comment : I think Jetty only has support for servlet-2.5 . I created a web.xml file as you suggested . However I don t really know how it should look like and be placed . I m reading from a book Murach s Java Servlets and JSP from 2003 . You suggest other tags . My web.xml didn t solve this problem . Comment : @Jonas you showed only servlet and no servlet-mapping - add a mapping as well this defines which URL maps to which servlet Comment : My book was to old and didn t have servlet-mapping but now I have learn about it and now it works great . Thanks again . Comment : Throw that book away and read servlet tag info page http : stackoverflow.com tags servlets info for better links tutorials books . Comment : a short example on how to edit web.xml would have been great", "Question : When starting jetty-distribution-9.3.0.v20150612 with openjdk 1.8.0 51 running on an EC2 Amazon Linux machine is prints that all configured ECDHE suites are not supported . These are enabled in jetty etc jetty-ssl-context.xml - .. . .. . I read Oracle Java 8 should support these protocols http : docs.oracle.com javase 8 docs technotes guides security SunProviders.html SunJSSEProvider but maybe that s not supported by OpenJDK Or should I enable it somehow Update .. . .. . Oracle s JCE cryptographic provider is installed under jre lib security but it didn t help . Comment : installing Oracle s JCE cryptographic on an OpenJDK install has no effect as the ECDHE ciphers are implemented in native C code and are only shipped in the Oracle JDK see armoredbarista.blogspot.co.uk 2013 10 http : armoredbarista.blogspot.co.uk 2013 10 how-to-use-ecc-with-openjdk.html .. . Answer : Thes-e are enabled in jetty etc jetty-ssl-context.xm Comment : Is this an attempt to answer the question If so please format it correctly . If not and it s a question it should be posted as a question again with correct formatting .", "Question : I am deploying CometD-3.0.1 in jetty-9.2.2 . I have my own filters which I want to call for every request . I have specified those filters in the web.xml in particular order . But with WebSocket containers have to find a way to handle the upgrade request . In Jetty this is done by a servlet filter that is always added as first filter by a ServletContainerInitializer . So in my case a upgrade request will never hit my filter because the WS filter that s in the front of the chain will do the upgrade before hitting my filter . What should I do so that my filters will be invoked first before the WS filters of Jetty Thanks Anuj Comment : Did anyone get a chance a look at this .. . Answer : In short it is impossible to run a servlet filter on a websocket upgrade . The choice in jetty to have WebSocket upgrade handled by a filter is just our particular implementation of the Servlet and WebSocket specs . Other implementations might use different techniques . Theres 2 things to understand about this . 1 . If the container had configured WebSocket endpoints on known path mappings path specs then any upgrade request that arrives is handled BEFORE all servlet processing . Jetty chose to do this via an internal filter other implementations do this with special processing before handling it off to the servlet chain . 2 . Servlet Filtering of websocket upgrades was discouraged early on in the servlet spec as most any changes a filter can do will cause problems to a websocket upgrade . There was brief talk about rejecting some code paths that were known to cause problems like accessing the request content or response content setting headers in the request or response etc. . But this proved to be too invasive so it was declared to be not possible and discouraged . Now you should know that if the websocket upgrade doesn t occur and without an error then the servlet processing chain does kick in for that request . A typical problem here is that some folks have built their security around filters this is good for Servlets but not WebSockets . If this is the case then you have some work ahead of you . Pick of of the following : .. . .. . Split out the security logic into a standalone class that your Servlet Filters and your custom javax.websocket.server.ServerEndpointConfig.Configurator http : docs.oracle.com javaee 7 api javax websocket server ServerEndpointConfig.Configurator.html can use . or .. . .. . Implement your security using the security layers of the container that always happen before any processing of websockets or servlets Comment : Thanks for detailed explanation . As you mentioned that Servlet Filtering of websocket upgrades was discouraged early on in the servlet spec . Can you point me to the spec or some link where this point is discussed Comment : In my case I am using CometD and deploying it into jetty...As you mentioned that implement security using the security layers of the container .... . what are the security layers i didn t get it .....Having said that All I want is to use kerberos crediential with the websocket . How should I pass kerberos credientials with the request Comment : If you are using javascript in the browser there s no known way with the existing Javascript WebSocket API to pass those credentials . we can barely pass BASIC auth in the URL URI with this API Comment : we can barely pass BASIC auth in the URL URI with this API.....Could you please tell me how to pass basic auth headers in the URL and ALso as you mentioned in the answer : implement security using the security layers of the container .... . How should I implement security using security layers of the container . Comment : ws : user : password @ host path", "Question : How to add External PropertySource file to jetty-9 jetty.xml i use spring annotation and External PropertySource file .. . .. . when I run the application through maven I use paramentr like propertySource : .. . .. . Its work perfect jetty start with etc jetty arm.properties config params . How to add -DpropertySource etc jetty arm.properties like a parametn to start jetty hoe to configurable jetty.xml I read docs http : www.eclipse.org jetty documentation current jetty-xml-usage.html .. . .. . and add string to jetty.xml : .. . .. . but this does not work and jetty fail . .. . Answer : The use of SystemProperty is to evaluate a named system property and use it in an XML file as a value for whatever thing you are attempting to configure . There s 2 ways you can accomplish this using the jetty-distribution . 1 : Simply use the Java JVM command-line to add the property .. . .. . 2 : Allow the jetty.base to manage the Java JVM properties .. . .. . In your jetty.base add the following 2 lines to your start.ini .. . .. . Then you can just run Jetty normally .. . .. . .. . Bonus : Alternate technique .. . .. . Since this is Spring you could probably switch to using a classloader resource instead . Run this command to enable resources classpath .. . .. . Then put your properties file in the new jetty.base resources .. . .. . Lastly reference your PropertySources via the Spring classloader resource reference instead . Comment : n your jetty.base add the following 2 lines to your start.ini --exec -DpropertySource file : etc jetty arm.properties service jetty9 start FAIL Starting Jetty 9 Servlet Engine : jetty9 failed Comment : you solution dont work :", "Question : I see lots of tutorials about how to set up JSR356 websockets with an embedded web server of some sort . But I want to add some websockets to an existing WAR deployed to a stand alone jetty installation jetty jetty-9.2.3.v20140905 and I can find very little information on this . I can t figure out what is preventing it from working . As I understand it the annotated server endpoints should be automatically handled by jetty . ServerEndpoint : .. . .. . ClientEndpoint : .. . .. . Here is the code run inside some existing method to connect the client to the server .. . .. . Yet spinning up jetty gives an error on the connectToServer line .. . .. . All I can think is that the URI is incorrect . If jetty is running on 8080 and my .war is named myWar and my end point is named myendpoint...is that not the correct URI Is there some additional step that must be done to activate the server endpoint to listen for connections I must be missing something obvious . .. . Answer : Jetty creates instances of annotated client endpoints using reflection see jetty websocket jsr356 ClientContainer newClientEndpointInstance https : github.com eclipse jetty.project blob jetty-9.2.7.v20150116 jetty-websocket javax-websocket-client-impl src main java org eclipse jetty websocket jsr356 ClientContainer.java L307 but Java is unable to instantiate a non-static inner class that way . The actual cause exception is something like java.lang.NoSuchMethodException : pkg .OuterClass InnerClass . init but it is swallowed . Solution : annotated endpoint classes should be not nested or nested static inner classes .", "Question : This question already has an answer here : .. . .. . Spring AOP gives IllegalArgumentException with Java 8 questions 26305416 spring-aop-gives-illegalargumentexception-with-java-8 1 answer .. . .. . I m running a trivial Hello World web application using servlet-3.1 questions tagged servlet-3.1 jetty-9 questions tagged jetty-9 running on jdk-8 questions tagged jdk-8 and using the maven-jetty-plugin . And well mapped in the web.xml file : .. . .. . But it seems that jetty can t fin my servlet class when running mvn jetty : run what am I missing here pom.xml .. . .. . .. . .. . Update : .. . .. . Worked after changing the configuration of maven-compiler-plugin from 1.8 to 1.7 What is wrong with using java-8 questions tagged java-8 with jetty-9 questions tagged jetty-9 Comment : Unrelated to your problem but you forget to specify the encoding to use in message.getBytes Comment : @fge +1 It s just a Hello World example to get things up and running : .. . Answer : check this .. . .. . http : vaskoz.wordpress.com 2013 12 18 fix-jetty-9-1-for-jdk8-annotations .. . .. . Jetty 9.1.0 comes bundled with ASM 4.1 but running with bytecode level 1.8 and annotations causes the following error : java.lang.RuntimeException : Error scanning file PingController.class at org.eclipse.jetty.annotations.AnnotationParser.parseDir AnnotationParser.java : 705", "Question : We re using jetty as front end http server with cache policies . I would like to be clear on the requirements : .. . .. . 1 . Is the quoted below required 2 . How should I implement this in Java http : www.w3.org Protocols rfc2616 rfc2616-sec13.html says : .. . .. . HTTP 1.1 requires origin servers to send a Date header if possible with every response giving the time at which the response was generated see section 14.18 . We use the term date value to denote the value of the Date header in a form appropriate for arithmetic operations . http : www.w3.org Protocols rfc2616 rfc2616-sec14.html sec14.18 : .. . .. . The Date general-header field represents the date and time at which the message was originated having the same semantics as orig-date in RFC 822 . The field value is an HTTP-date as described in section 3.3.1 it MUST be sent in RFC 1123 8 -date format . Does jetty contains built-in support for Date fields or should I be adding this by myself Any efficient method to generate this field Thank you .. . Maxim . .. . Answer : The org.eclipse.jetty.server.Server class has a boolean sendDateHeader property that enables this . It really should be done by default but it isn t . You can either set that programmatically or usins a Set element in jetty.xml" ] }
[ "yes-answer-long", "yes-answer-short" ]
spdy
UNK_RELATION
essbase@oracle@49
essbase -- oracle or hyperion essbase is one of @placeholder corporation s multidimensional database products .
{ "confidence": [ 59.94941711425781, 56.688270568847656, 55.36976623535156, 52.78036117553711, 49.73728942871094, 49.73728942871094, 48.00892639160156, 47.3519287109375, 46.752662658691406, 46.48191452026367, 45.55991744995117, 45.275306701660156, 44.74979782104492, 43.909786224365234, 43.26870346069336, 42.90471649169922, 42.90471649169922, 42.57245635986328, 42.087684631347656, 42.087684631347656, 41.32038116455078, 41.172603607177734, 39.92908477783203, 39.717376708984375, 39.636173248291016, 39.49827575683594, 39.49827575683594, 39.49827575683594, 39.49827575683594, 39.49827575683594, 39.49827575683594, 39.49827575683594, 39.49827575683594, 38.97994613647461, 38.64628601074219, 37.76616287231445, 37.49922561645508, 37.49922561645508, 37.49922561645508, 37.49922561645508, 37.49922561645508, 37.49922561645508, 37.49922561645508, 37.49922561645508, 37.49922561645508, 36.6170654296875, 35.96427917480469, 35.239845275878906, 35.239845275878906, 35.239845275878906, 35.20083999633789, 34.909820556640625, 34.909820556640625, 34.69099044799805, 34.561336517333984, 34.43391036987305, 33.62430191040039, 33.43796157836914, 33.177703857421875, 33.177703857421875, 33.177703857421875, 33.177703857421875, 33.177703857421875, 33.177703857421875, 33.177703857421875, 33.177703857421875, 33.177703857421875, 32.83448028564453, 32.02861022949219, 32.02861022949219, 32.02861022949219, 32.02861022949219, 31.545669555664062, 30.65138816833496, 29.907026290893555, 29.677642822265625, 29.035842895507812, 28.22755241394043, 28.13079833984375, 27.907337188720703, 27.84315299987793, 27.84315299987793, 27.713497161865234, 27.713497161865234, 27.127016067504883, 26.668550491333008, 26.07505226135254, 25.59018898010254, 24.697830200195312, 24.656221389770508, 24.656221389770508, 24.656221389770508, 24.656221389770508, 24.54785919189453, 24.31972885131836, 24.079143524169922, 23.749404907226562, 23.082286834716797, 22.665868759155273 ], "content": [ "I am new to Hyperion Essbase .", "What is the difference between essbase and essbase server in layman s term", "We want to migrate data from Hyperion Essbase 9.3.1 to SAP SSM .", "I m new to the Hyperion Essbase and I m using Hyp 6.5 .", "To try and answer your question though : Essbase Server tends to refers the physical computer that contains one or more Essbase databases .", "When one says they are using Essbase this might mean that they are performing an operation on their computer that is specifically communicating with the Essbase Server .", "OK INFO - 1241001 - Logged in to Essbase .", "How to process Forecast reports in tableau from Multidimensional Data Source Oracle Essbase", "The Essbase Database Administrator s Guide http : docs.oracle.com cd E17236 01 epm.1112 esb dbag frameset.htm launch.html contains all the information you need to know about SPARSE versus DENSE dimensions in the Essbase multidimensional database .", "It seems like the Oracle Instant Client needs to be installed on the server where Essbase is .", "I am new to Essbase .", "The data from the database should reorder requery based on how the user drags column and row headers similar to Hyperion Essbase or other OLAP tools .", "I m creating application which connect to Oracle Essbase server using API .", "This means from a technical perspective the user is not connecting directly to the Essbase server but rather they connect to an intermediary server and that server in turn communicates with the Essbase server .", "I m on a Windows 10 box using Oracle Essbase Admin Services console 11.1.2.4 .", "You ll need to check if it works with your version of Essbase .", "I am working with Essbase installed on a Linux box .", "Need a sample essbase cube which is linked to an internet based essbase server by that I mean accessible to everyone .", "This would commonly be the Essbase Excel Add-In Smart View or some other software .", "A person using Essbase will typically do so from an Excel spreadsheet .", "There is a utility developed by the group at IN2HYPERION called Excel Essbase Add-in Ribbon http : www.in2hyperion.com page Excel-Essbase-Add-In-Ribbon.aspx that will store this information .", "MAXL is a command-line tool for administration of Essbase .", "However since you re new to Essbase you should know that MaxL does not provide all the functionality you have in the Hyperion Planning and Workspace UIs .", "Use a Data Integration ETL tool that support Essbase Oracle Data Inegrator Informatica Power Center IBM Data Stage .. . .. . 2 .", "This is regarding hyperion essbase services we are using the EIS to load the data from sources to essbase cube by using autosys job schedule based on the data availability in source the cube and EIS are in the unix server and the data loads are happening from client machine windows using batch scripts .", "We are connecting to the EssBase Cube using Microsoft.AnalysisServices.AdomdClient library in C .", "Whenever I login to the Excel it shows Essbase System Login screen .", "Essbase Error 1290101 : This MaxL statement requires client support .", "I am running Essbase 11.1.2.1 and the same version of the Java API .", "You did not tell to Essbase where to find the report file .", "Do you mean that your FIX script is a calculation script inside of Essbase", "My objective is to analyze and learn how Essbase commands like @Parentval etc .", "The catch is that my client machine is windows and Essbase wants a Linux DLL .", "I am new to essbase please let me know if this is not possible and I would need to download and load a sample database into Essbase local to my network and then use it .", "Take a look at the library of functions that come with the Essbase addin .", "User has accidentally deleted Essbase application from the EAS Console .", "This tells Essbase that you would like to update data that is currently being shown on your spreadsheet .", "i am exporting data from Essbase cubes using MAXL SET DATAEXPORT commands .", "If you find this answer helpful please indicate as such so that more people are encouraged to answer Essbase questions", "Is there any provision to access the physical data in table format or something from essbase directly", "You can export Essbase Data to a file using Calc Script or Report Script .. . .. . 3 .", "I am new to Essbase it would be very kind of someone to help me understand this script that I see .", "The main difference you are encountering likely has to do with the context in which someone refers to Essbase .", "Can you also help me in explaining the 3-tier architecture that is given in ESSBASE dbag in layman term", "The three-tier architecture generally refers to the fact that you have a user an analytic provider server and the Essbase server .", "I want to get data from Essbase using olap4j .", "So I m a newbie at Essbase - I ve installed the EPM system - the Essbase admin services are up and running but for some reason I m not able to connect to the Admin Server through the EAS console .", "Trying to create a calculated field in tableau utilizing an essbase cube data .", "I am using the EssVZoomIn Function to zoom in on a dataset in Essbase .", "I am ultimately trying to automate schedule a data-retrieval from Essbase .", "Another benefit of scripting the process is being able to take advantage of some nice logging features Essbase in a directory that is convenient for you instead of buried deep within the Hyperion or EPM system directories .", "I am trying to learn essbase scripting on my own and came across the following parts in a big script .", "yes the scripts that I gave is a part of a bigger script which is used inside Essbase .", "Originally it was just a two tier architecture where the user would connect directly to the Essbase server but there are some advantages to having a server in the middle .", "Can i insert new data update the existing data into Essbase using Excel add-In Smart view like I update the data into Palo Multidimentional database", "I have a problem in clearing a region in an Oracle ESSBASE ASO cube that returns in an error like : .. . .. . dynamic members are not allowed in data clear region specification .. . .. . when i try to execute this query .. . .. . alter database aso .", "I use the Excel Add-Ins feature to do pulls from Essbase .", "In either case you will need privileges that are greater than normal user privileges and either approach involves Essbase automation that may require you to coordinate with the Essbase admin .", "Let s say the app is called HPlan so you have a app HPlan folder on your Essbase server .", "Good luck -- if this helps please mark it as helpful so that more people are encouraged to answer Essbase questions on Stack Overflow", "It descends from the classic Essbase Excel Add-in which was also written in C++ and even predates the advent of the C language .", "When I connect to my Essbase cube from Smart View I get an invalid free form error .", "There are a handful of tools with Essbase adapters so you can use those if you aren t using SSIS .", "When you think of the essbase cube think of your DENSE dimensions as the axis of the cube X Y Z .", "Here I am creating an Application by using Essbase Administration Services EAS Planning and Workspace .", "Secondly you are connecting directly to the Essbase Server so that makes it all that much faster as well .", "I am using Access 2010 to transform some data from an Essbase pull in Excel .", "I will refresh the application and database then application and some scripts are visible in essbase but I can not see the exchange rate table that I have created in Planning .", "So could you tell me where this exchange rate table is stored or view in essbase EAS console .", "Please accept answers to your other Essbase questions in order to encourage people to help you", "Found out that excel isn t loading all the dll s and xll s required to connect to de Essbase server .", "I need to convert a unicode text file 19 000K to an ANSI text file for use with Essbase .", "In this case they might be populating data in various cells by performing retrieves pivots and other operations until they get the desired data on their spreadsheet and where the data is being transmitted in real-time from the Essbase server .", "Turning the option on will cause Essbase to fill in each column header regardless of duplicated values in adjacent columns .", "I tried writing the VBA to connect yo Hyperion Essbase to connect to multiple sheets and the connection is successful .. . .. . But to disconnect from the multiple sheets it is not working with the below code and it is returning the Value 0 instead of -4 .. . .. . Please let me what changes i have to do so that I can disconnect from the connected database", "We then used Hyperion Planning to recreate the database of the new application .", "Is there any way to find out the rest of http : without having to go through our Essbase team", "Problem : .. . .. . Whenever I do a database refresh in Hyperion Planning it hangs in the 21st step and produces the following error .", "I am trying to create a macro that connects me to Essbase at the push of a button and am using the syntax found here https : docs.oracle.com cd E12825 01 epm.111 esb client.pdf .. . .. . I keep getting the error message that Essexcln.xll is not found .", "I ve tried using code like this : Referred to Essbase Java API Sample com.essbase.test.ExecuteMaxl.java .. . .. . IEssMaxlSession test olapSvr.openMaxlSession test test.execute export database sample.basic using report file top.rep to data file c : topExp.txt It fails with the following exception : .. . .. . Cannot execute maxl statement .", "Essbase is pretty lenient when it comes to interpreting how the rows columns are laid out but it can definitely take some liberties with relaying things out .", "Currently the only way to tell which level the data point is in the hierarchy is how many spaces are before the first letter It is from an Essbase pull .", "I m required to work in Excel but I m know looking at finding a way to periodically load data from Essbase into my SQL server database and only use power query sql for all my models .", "The most straightforward is to export all of the data from your Essbase database using column export then designing a process to load the data into SQL Server such as using the import functionality or BULK IMPORT or SSIS.. . .", "There are few possible Add-In matches that are Active within Excel after opening : .. . .. . Oracle Hyperion Smart VIew for Office Fusion Edition Excel Add-in - HsTbar.xla .. . Oracle Hyperion Smart VIew for Office FUsion Edition COM Add-in - HsAddin.dll .. . Hyperion Error Action - mscoree.dll .. . .. . Any pointers", "Can you please tell me some good source to learn Hyperion planning", "Also I found out that Add-Ins can be added during runtime but this just causes an exception here is the source : http : www.network54.com Forum 58296 thread 957392331 Visual+Basic-Excel+Api+call+to+Essbase", "It seems that the Oracle Hyperion SmartView Add-In is not available when I attempt to open Excel through WIN32OLE .", "From the help file on Repeate Member Labels : By default Essbase displays member labels only once for each set of data.. . meaning : entries common to a group of adjacent columns will appear once in the center of the group .", "This will only work assuming the app was never deleted from Hyperion Planning itself .", "There isn t build in support for getting data from Hyperion with SSIS .", "I am new to Hyperion going through small assignments .", "I have created the data form in Hyperion planning it s working fine .", "You could use SSIS to run a batch-file that kicks off a Hyperion job that loads up a SQL database or text file then load it with SSIS .", "MAXL FOR f eol tokens 1 2 delims i in hyperion Automation MaxL subva r.var do echo 2 alter database j . k set variable i l ERROR - 1242021 - 1 Syntax error near FOR .", "Without Hyperion in front of me I can t remember if I got all the syntax correct but it should be pretty close to this .", "The problem is I dont have much understanding of the terms and structure of the Hyperion shared service can somebody share some insights about Hyperion and how can I get the roles of the users", "Your connection-string would look something like this : .. . .. . Data Source http : servername : portnumber aps XMLA Initial Catalog ApplicationName DataSourceInfo Provider Essbase Data Source essbaseservername", "I m working on my first sandbox Hyperion planning application and I m curious if its possible to create dynamic drop-down boxes in planning forms ." ] }
{ "confidence": [ 74.1667251586914, 73.33795166015625, 70.16109466552734, 69.00987243652344, 65.26324462890625, 63.98675537109375, 63.30004119873047, 63.106849670410156, 62.56047439575195, 61.36384963989258, 60.38047790527344, 58.03163528442383, 57.936767578125, 56.668113708496094, 55.139034271240234, 53.83003616333008, 53.75337600708008, 50.77437210083008, 49.84130859375, 49.495086669921875 ], "content": [ "Question : Is there any provision to access the physical data in table format or something from essbase directly We want to migrate data from Hyperion Essbase 9.3.1 to SAP SSM . Please help if you have any idea about this . Regards Sreenath .. . Answer : You have some alternatives : .. . .. . 1 . Use a Data Integration ETL tool that support Essbase Oracle Data Inegrator Informatica Power Center IBM Data Stage .. . .. . 2 . You can export Essbase Data to a file using Calc Script or Report Script .. . .. . 3 . You can use the java-api to access the data from other language application", "Question : I am new to Hyperion Essbase . What is the difference between a SPARSE and DENSE Dimension Is there any documentation that could help me with this .. . Answer : The Essbase Database Administrator s Guide http : docs.oracle.com cd E17236 01 epm.1112 esb dbag frameset.htm launch.html contains all the information you need to know about SPARSE versus DENSE dimensions in the Essbase multidimensional database . From the guide : .. . .. . Most multidimensional databases are inherently sparse they lack data values for the majority of member combinations . A sparse dimension is one with a low percentage of available data positions filled . When you think of the essbase cube think of your DENSE dimensions as the axis of the cube X Y Z . There are always data points even if they re empty for all intersections of X Y Z . Think of your SPARSE dimensions as a group of these cubes which only exist if there is data existing for that value of the sparse dimension . Data is only stored on disk for a SPARSE dimension s value when that data actually exists .", "Question : What is the difference between essbase and essbase server in layman s term I am not able to understand the difference neither can i find it on internet . Help .. . Answer : The main difference you are encountering likely has to do with the context in which someone refers to Essbase . To try and answer your question though : Essbase Server tends to refers the physical computer that contains one or more Essbase databases . When one says they are using Essbase this might mean that they are performing an operation on their computer that is specifically communicating with the Essbase Server . This would commonly be the Essbase Excel Add-In Smart View or some other software . A person using Essbase will typically do so from an Excel spreadsheet . In this case they might be populating data in various cells by performing retrieves pivots and other operations until they get the desired data on their spreadsheet and where the data is being transmitted in real-time from the Essbase server . Comment : Thank you for replying . Can you also help me in explaining the 3-tier architecture that is given in ESSBASE dbag in layman term Figure number 1 on page 50 of dbag . Comment : The three-tier architecture generally refers to the fact that you have a user an analytic provider server and the Essbase server . This means from a technical perspective the user is not connecting directly to the Essbase server but rather they connect to an intermediary server and that server in turn communicates with the Essbase server . Originally it was just a two tier architecture where the user would connect directly to the Essbase server but there are some advantages to having a server in the middle . Comment : Thank you @jwj for help. . will ask more when i am in doubt. . Comment : Can you please tell me some good source to learn Hyperion planning", "Question : I m new to the Hyperion Essbase and I m using Hyp 6.5 . Whenever I login to the Excel it shows Essbase System Login screen . So each time I ve to enter .. . .. . Server Name .. . User Name .. . Password .. . Application Database .. . .. . Is it possible to set those values as default . So it s not prompting again and again or is there is any plug-in s to resolve this . Thanks in advance . .. . Answer : There is a utility developed by the group at IN2HYPERION called Excel Essbase Add-in Ribbon http : www.in2hyperion.com page Excel-Essbase-Add-In-Ribbon.aspx that will store this information . It works as an Excel add-in and will store the server app database and password for connections . I m not affiliated in any way to the site but I ve used the tool for a couple years and find it to be useful and reliable . You ll need to check if it works with your version of Essbase .", "Question : Is there any provision to access the physical data in table format or something from essbase directly We want to migrate data from Hyperion Essbase 9.3.1 to SAP SSM . Please help if you have any idea about this . Regards Sreenath .. . Answer : You can even try some MDX connector to extract that data . However I will just make some txt Report to extract the data according to your specifications", "Question : I m new to the Hyperion Essbase and I m using Hyp 6.5 . Whenever I login to the Excel it shows Essbase System Login screen . So each time I ve to enter .. . .. . Server Name .. . User Name .. . Password .. . Application Database .. . .. . Is it possible to set those values as default . So it s not prompting again and again or is there is any plug-in s to resolve this . Thanks in advance . .. . Answer : Unfortunately there is no password caching like you want . The only thing that it will store is the most recently used servers but other than that you have to type in your user namne and password and then it will pull up the list of Applications and Databases .", "Question : I am new to Essbase . Here I am creating an Application by using Essbase Administration Services EAS Planning and Workspace . If I am able to create and manage an application using the above services alone then what are the additional features that MaxL offers. . .. . Answer : There is excellent documentation on MaxL that Oracle provides . It is located here http : docs.oracle.com cd E10530 01 doc epm.931 html esb techref maxl maxlintro.htm . If you like working from the command-line you might prefer MaxL to EAS and Workspace because there aren t any mouseclicks involved . Secondly you are connecting directly to the Essbase Server so that makes it all that much faster as well . Raam is correct that you can automate tasks using MaxL . For instance if you have four calculation scripts that you need to run in a row you can forego kicking them off in EAS sequentially and instead write a MaxL script that runs them all in a row for you . Another benefit of scripting the process is being able to take advantage of some nice logging features Essbase in a directory that is convenient for you instead of buried deep within the Hyperion or EPM system directories . However since you re new to Essbase you should know that MaxL does not provide all the functionality you have in the Hyperion Planning and Workspace UIs . There are command-line utilities for planning and workspace but they are not based on MaxL .", "Question : User has accidentally deleted Essbase application from the EAS Console . An application with the same name was created . We then used Hyperion Planning to recreate the database of the new application . We have file system backup of all the directories of the deleted application . How can we get all the data of the old application into the new one Thank you for help . .. . Answer : Here s what I would do . Let s say the app is called HPlan so you have a app HPlan folder on your Essbase server . Within the HPlan folder there are several subfolders for each database such as HPlan Capex Wrkforce and so on . 1 . Stop the entire app using EAS .. . 2 . Move the entire contents of the app HPlan folder to a temporary folder .. . 3 . Place the backup contents into the app HPlan folder so that it looks the same as before . So if before you had app HPlan HPlan HPlan.otl and app HPlan HPlan HPlan.ind and so on you would see those again . 4 . Start the app and see if it works . 5 . Try to login via Planning and see that it works . This will only work assuming the app was never deleted from Hyperion Planning itself . If you recreated or created a new app in Planning itself then this won t work . In that case you would need to roll the database SQL Server Oracle etc back to a previous point so that you still had all of the metadata that s in Planning . Good luck -- if this helps please mark it as helpful so that more people are encouraged to answer Essbase questions on Stack Overflow Comment : Thank you very much . I did as you said and it works .", "Question : I am new in hyperion planning doing some assignments with currency conversion and exchange rate table . I have created currency conversion application in planning and also create a exchange rate table in Planning.Both are stored in Plan-type database . I will refresh the application and database then application and some scripts are visible in essbase but I can not see the exchange rate table that I have created in Planning . So could you tell me where this exchange rate table is stored or view in essbase EAS console . Comment : Please accept answers to your other Essbase questions in order to encourage people to help you .. . Answer : Here you go : .. . .. . Editing Exchange Rate Tables : http : docs.oracle.com cd E17236 01 epm.1112 hp admin 11122 ed exchg rt tbl.html .. . .. . This is for system 11 . You might be on an earlier version .", "Question : null .. . Answer : This is regarding hyperion essbase services we are using the EIS to load the data from sources to essbase cube by using autosys job schedule based on the data availability in source the cube and EIS are in the unix server and the data loads are happening from client machine windows using batch scripts . But using this process we are getting issue with data loads sometimes . The issue is that the data load is not happening sometimes because of the EIS services olapisvr unavailable so the procedure will delete the the data in essbase cube for particular scenarios but not loading the data for that scenarios due to the EIS services olapisvr unavailability .. . .. . we need to check these services before deleting the data in process could you please let us know how to check this from windows environment to unix environment.Please give us ypur suggestions .. . .. . thanks Nag", "Question : I am new to Hyperion Essbase . What is the difference between a SPARSE and DENSE Dimension Is there any documentation that could help me with this .. . Answer : FYI : Go through this link it covers how the Hyperion works and it will cater your problem too . Thanks .", "Question : We need to get data out of some Hyperion cubes databases using SSIS . Are there any connection managers available for this Has anyone done this .. . Answer : I know this is a very old question but I just happened upon it and thought I would offer some perspective . There isn t build in support for getting data from Hyperion with SSIS . There are a few ways to go however . You can fairly easily export Hyperion data with a calc or report script to text SQL . You could use SSIS to run a batch-file that kicks off a Hyperion job that loads up a SQL database or text file then load it with SSIS . There are a handful of tools with Essbase adapters so you can use those if you aren t using SSIS .", "Question : null .. . Answer : I am working with Essbase installed on a Linux box . I am trying to use SQL and OCI to direct load into my cube . It fails and says that it cannot find libociei.so . Someone suggested that I download and install the Oracle Instant Client on my machine . The catch is that my client machine is windows and Essbase wants a Linux DLL . Why would and how could my windows client machine play any role in this It seems like the Oracle Instant Client needs to be installed on the server where Essbase is . The DLL is a compile on Linux not Windows Any thoughts would be appreciated .", "Question : null .. . Answer : I am in the process of automating substitution variables in our ASO cube . I have prepared subvar.var file which contains the variables . Is there a way to read them through MaxL and update the cube dynamically I tried using the above code and it is returning error . Subvar.var file : .. . OPS OPS lastmth Jun 2015 .. . OPS OPS currmth Jul 2015 Comment : What s the error you re getting It looks like you re pretty close to having the solution although I see a couple of potential issues . Comment : its throwing invalid arguments error while running the maxl script Comment : @jwj this is the error which is thrown now . 706606097772500386367703037421296151222544191726011595198996750 on Localhost OK INFO - 1051034 - Logging in user admin@Native Directory . OK INFO - 1241001 - Logged in to Essbase . MAXL FOR f eol tokens 1 2 delims i in hyperion Automation MaxL subva r.var do echo 2 alter database j . k set variable i l ERROR - 1242021 - 1 Syntax error near FOR . 3 4 essmsh error : End of File breaks the statement Comment : It looks like somehow the FOR loop from the batch-file is being piped to the MaxL interpreter causing the syntax-error . What about simplifying things and just passing parameters to essmsh to run a script that references those parameters So you d have alter database 1 . 2 in the .msh file that gets run It seems a bit cleaner . Piping commands directly to the interpreter is technically supported but has always seemed clumsy at best . Comment : @jwj Thanks for the response . I tried the way you mentioned and still Error : MAXL OK INFO - 1051034 - Logging in user admin@Native Directory . OK INFO - 1241001 - Logged in to Essbase . MAXL alter database j . k set variable i l ERROR - 1242021 - 1 Syntax error near . MAXL essmsh -s Localhost -l 2 3092870062612032450309212768828033911960 119246806964480077066060977725003 86367703037421296151222544191726011595198996750 -i essmsh error : End of File breaks the statement", "Question : null .. . Answer : I have been looking for this for a long time - would appreciate if anyone can help me out with the following . Need a sample essbase cube which is linked to an internet based essbase server by that I mean accessible to everyone . I am trying to work with Tableau representatives and would like to use a cube which is cleansed and does not contain any confidential information . I am new to essbase please let me know if this is not possible and I would need to download and load a sample database into Essbase local to my network and then use it . If that s the case can someone please share a link where I can download such a database", "Question : I tried writing the VBA to connect yo Hyperion Essbase to connect to multiple sheets and the connection is successful .. . .. . But to disconnect from the multiple sheets it is not working with the below code and it is returning the Value 0 instead of -4 .. . .. . Please let me what changes i have to do so that I can disconnect from the connected database .. . Answer : I ve never tried to connect and disconnect multiple sheets in one command but if your connection command works I d assume the disconnect should work as well . You omitted the name of the workbook in your disconnect string though . Try listing the sheets the same way you did in your connect string :", "Question : I ve been having trouble running the MaxL export database command with the Java API . I ve tried using code like this : Referred to Essbase Java API Sample com.essbase.test.ExecuteMaxl.java .. . .. . IEssMaxlSession test olapSvr.openMaxlSession test test.execute export database sample.basic using report file top.rep to data file c : topExp.txt It fails with the following exception : .. . .. . Cannot execute maxl statement . Essbase Error 1290101 : This MaxL statement requires client support . This is not supported yet . I am running Essbase 11.1.2.1 and the same version of the Java API . .. . Answer : You did not tell to Essbase where to find the report file . If the top.rep is on the server then you must explicitly refer to it in the Maxl statement . So it will be : ...using server report file . Otherwise if the file is hosted on the client you must specify the path as you did for the output data file eg . c : top.rep .. . .. . Rgds AleMon Comment : I did tried to execute as code export database sample.basic using server report file top.rep to data file c : topExp.txt code . Still I get the same error . Comment : Save the MaxL statement in a file and use essmsh instead of japi . On Win should be : startMAXL.bat c : yourmaxl.msh", "Question : I ve been having trouble running the MaxL export database command with the Java API . I ve tried using code like this : Referred to Essbase Java API Sample com.essbase.test.ExecuteMaxl.java .. . .. . IEssMaxlSession test olapSvr.openMaxlSession test test.execute export database sample.basic using report file top.rep to data file c : topExp.txt It fails with the following exception : .. . .. . Cannot execute maxl statement . Essbase Error 1290101 : This MaxL statement requires client support . This is not supported yet . I am running Essbase 11.1.2.1 and the same version of the Java API . .. . Answer : Running MaxL commands through the Java API in my experience does not work giving the error indicated aka it potentially relies on some native-code like in the C API but as it says it s not supported . Why not use the report running command in the Java API Comment : I wanted to use a common code to export data and metadata Members as export outline is fastest I taught of using export data export outline respectively . Sadly both give same error .", "Question : Can i insert new data update the existing data into Essbase using Excel add-In Smart view like I update the data into Palo Multidimentional database regards Sri . .. . Answer : Yes . This is what Lock Send is used for . After you have drilled to an intersection that you would to update load change data in you enter it directly in within Excel . Then perform a Lock operation using the add-in or SmartView . This tells Essbase that you would like to update data that is currently being shown on your spreadsheet . Then perform a Send operation . This will upload all of the data on your sheet back to the database assuming that you have access to change that data if you are a read-only user or don t have sufficient filter access for example then you can t change the data . Note that all of the data in the spreadsheet will be sent up -- so it is useful to navigate to the smallest possible subset of data that you would like to change . After sending the data it will automatically be unlocked . Then just retrieve the sheet to verify that the data you uploaded did in fact upload . If you are trying to upload to members that are dynamic calc for example then it won t work . Also note that typically data is loaded such that every intersection point is a Level-0 member if not then it is possible that a subsequent aggregation calc in the database might erase the data you just uploaded .", "Question : I m currently using a mix of smart view and power query sql to load data into Excel models however my excel always crashes when smart view is used . I m required to work in Excel but I m know looking at finding a way to periodically load data from Essbase into my SQL server database and only use power query sql for all my models . What would be my best options in doing this Being a Python enthusiast I found essbasepy.py however there isn t much documentation on it . Please help .. . Answer : There are a couple of ways to go . The most straightforward is to export all of the data from your Essbase database using column export then designing a process to load the data into SQL Server such as using the import functionality or BULK IMPORT or SSIS.. . . Another approach is to use the DataExport calc script command to export either to a file that you then load into SQL or directly to the relational-database DataExport can be configured to export data directly to relational . In either case you will need privileges that are greater than normal user privileges and either approach involves Essbase automation that may require you to coordinate with the Essbase admin ." ] }
[ "yes-answer-long", "yes-answer-short" ]
oracle
UNK_RELATION
sipdroid@android@84
sipdroid -- sipdroid is a voice over ip internet protocol voip application for the @placeholder operating-system using the session initiation protocol .
{ "confidence": [ 55.24244689941406, 55.05112075805664, 52.74742889404297, 47.17485046386719, 46.19823455810547, 45.73597717285156, 45.33380889892578, 44.55589294433594, 44.55589294433594, 44.55589294433594, 43.87062072753906, 43.87062072753906, 42.37586975097656, 41.36543655395508, 41.36543655395508, 40.94404602050781, 40.18535232543945, 39.75084686279297, 38.77098846435547, 38.77098846435547, 38.59607696533203, 37.972015380859375, 37.972015380859375, 37.972015380859375, 37.972015380859375, 37.96190643310547, 37.839168548583984, 37.839168548583984, 37.64171600341797, 37.039306640625, 36.79193115234375, 36.79193115234375, 36.79193115234375, 36.13575744628906, 35.599300384521484, 33.773223876953125, 33.58257293701172, 33.401100158691406, 33.401100158691406, 33.401100158691406, 32.90088653564453, 32.22101593017578, 32.22101593017578, 31.875185012817383, 30.806652069091797, 27.47030258178711, 27.47030258178711, 26.617578506469727, 26.35131072998047, 25.51331901550293, 24.8758544921875, 24.592605590820312, 23.177059173583984, 23.038928985595703, 22.22659683227539, 21.890541076660156, 21.890541076660156, 21.26380157470703, 21.190078735351562, 21.190078735351562, 20.723413467407227, 20.723413467407227, 20.393144607543945, 20.393144607543945, 19.63214874267578, 19.44182586669922, 19.271032333374023, 19.199045181274414, 17.971216201782227, 17.87668228149414, 17.162485122680664, 16.653148651123047, 16.62933349609375, 16.45087432861328, 16.205142974853516, 16.118955612182617, 16.118955612182617, 16.118955612182617, 16.118955612182617, 16.118955612182617, 16.118955612182617, 16.084739685058594, 15.450569152832031, 15.334089279174805, 14.904654502868652, 14.854475021362305, 14.845769882202148, 14.762125015258789, 14.583433151245117, 14.163899421691895, 14.136204719543457, 14.136204719543457, 13.883415222167969, 13.856432914733887, 13.819967269897461, 13.67042064666748, 13.472830772399902, 13.46576976776123, 13.459716796875, 13.459716796875 ], "content": [ "I followed Sipdroid tutroial http : code.google.com p sipdroid to make Voice call using VOIP based SIP account : .. . .. . Sipdroid Call ends in 4 secs .", "I modify sipdroid for my voip app in android .", "I am working on VOIP calls integration in Android using SIPDROID http : code.google.com p sipdroid .", "But when i tried calling Sipdroid to Sipdroid it works fine in all the mobiles .", "enter image description here http : i.stack.imgur.com D0fYx.png .. . .. . Here s my config : .. . .. . SIPdroid app build.gradle .. . .. . SIPdroid build.gradle .. . .. . SIPdroid gradle-wrapper.properties .. . .. . SIPdroid local.properties", "Sipdroid uses MjSip .. . 3 .", "I have used the Sipdroid 2.7 beta version.When i run the application on Samsung galaxy then it will give clear voice in call quality but when i run in ICS then it will give very low voice in call.So anybody have idea why this was happened .Sipdroid 2.7 is the compatible with ICS and HTC so why this was happend", "I have installed SIPDROID .", "calling problem in sipdroid .", "I m customize Sipdroid code .", "Only Sipdroid app in the market is working .", "So I read the code of the SipDroid .", "Have you tried on your FreeSwitch server with Sipdroid Android application", "So you re saying this : SipDroid works on all phones .", "const char kInterfacePath org sipdroid pjlib g729", "I want to make a custom sipdroid client by using reverse byte order .", "SipDroid supports only one line at all times .", "well i did solve the problem of changing package name of sipdroid .", "I m trying to build sipdroid in Eclipse Juno .", "actually i am following SIPDROID source code .", "EDIT What i tried is i have created 2 SIP extensions in my asterisk server 1 is registered using sipdroid 2.7 on the Samsung Galaxy Y Android 2.3.6 and another is registered using sipdroid 2.7 on Sony xperia Neo V Android 4.0.4 and the test was on wifi .", "So i thought of customizing SipDroid open-source project .", "EDIT : .. . .. . EDIT : I have noticed that even the SipDroid Project is not working .", "I used CSipSimple http : code.google.com p csipsimple instead of Sipdroid .", "I use Zoiper but as far as I remember sipdroid was also working fine", "This is with reference to sipdroid data encrypt failed http : stackoverflow.com questions 16538893 sipdroid-data-encrypt-failed I tried using XOR operation instead of reverse byte code for send packets and receive packets in SipdroidSocket.class .", "Anybody know which beta version of Sipdroid is give Audio quality high in ICS", "Can you please let me know if its the issue with phone or sipdroid or android version compatiblitity", "Sipdroid http : code.google.com p sipdroid that I what started with but after researching on it and from developers reviews I found that application has some missing functionality like multiple call and transferring calls etc.. .", "http : code.google.com p sipdroid in addition to this i made this application to support a g729 codec .", "Can csipsimple http : code.google.com p csipsimple be the alternative of sipdroid", "csipsimple was continues failed in registering so I go with sipdroid .", "well that s a completely different matter from the sipDroid multi-line support .", "Case 1 - FreeSwitch + PC .. . .. . Case 2 - FreeSwitch + Android Sipdroid .. . .. . Case 3 - FreeSwitch + Android Csipsimple .. . .. . Case 4 - FreeSwitch + Android SipDroid PC .. . .. . Some of Android mVoIP applications such as Skype make less than 50ms voice delay .", "when compare with sipdroid imsdroid etc..which one is better to use.i get so confused.i going to develop voip application.can u give any suggestion .", "I am developing SIP base application to make and receive a calls for that purpose i did analysis on an open-source project Sipdroid .", "I have gone through some samples in google like SIPDROID http : www.voipvoip.com sipdroid IMSDROID and implemented default android API SIP http : developer.android.com guide topics connectivity sip.html .", "this was the line which causing the error const char kInterfacePath org sipdroid pjlib g729", "When i connect to other numbers which has sipdroid call ends in 4 secs .", "Also I have seen other applications like sipdroid and linephone they seem to take no time to tell that specified username is unavailable .", "EDIT : I tried calling the other mobile that has Sip Droid with my Samsung Galaxy Young customized app I could hear voice in my app but could not hear in Sipdroid .", "Though you can extend SipDroid to support multiple lines that s a lot of effort .", "I am trying to encrypt Sipdroid and to do that I have to encrypt the the RTP packet after it gets the encoded audio payload .", "Nope its possible i have succesfully i added g729 codec in Sipdroid and its working in both architectures armeabi as well as armeabi-v7a but now i want to create the so file with different package name see this link http : code.google.com p sipdroid issues detail id 49 c171", "app build.gradle .. . .. . SIPdroid build.gradle .. . .. . You also need to have an empty libs folder under app src main .", "You have forked the sipdroid code changing packets and class names and after this modifications it works only in some cases Galaxy Y .. . so probably you have done some modifications that broke the logic .", "yeah i was familiar with csipsimple.. . but for sipdroid i have no idea how to build the same codec....for csipsimple i used to have build in linux OS to build G729 codec", "sipdroid http : code.google.com p sipdroid source checkout using mjsip http : mjsip.org mjua.html lib .. . .. . csipsimple http : code.google.com p csipsimple source checkout using pjsip http : www.pjsip.org .. . .. . imsdroid http : code.google.com p imsdroid source checkout using Doubango http : www.doubango.org .. . .. . I have tried many times to build it and start it on the android-emulator without any success .", "Disadvantages : None Android 2.3 using external JAIN-SIP J-SIP Stack Classpath http : stackoverflow.com questions 5801107 android-2-3-using-external-jain-sipj-sip-stack-classpath .. . .. . Third party : MjSIP Advantages : SipDroid is built on it .", "What i am doing : .. . .. . I am building an android application for 1 to 1 video chatting and i need help here .. . .. . What i did : .. . .. . 1 I came across Quickblox http : quickblox.com developers Android i tried my best to understand and implement it and i really coudn t get it working .. . .. . 2 I researched about Sipdroid http : code.google.com p sipdroid i cant understand it either .. . .. . What i want : .. . .. . I am in need of either .. . .. . 1 A simple library with good documentation to implement video chat .", "The samples worked without a hitch but when I implemented it on the SIPdroid project it throws this error when I rebuild the project : .. . .. . Error : 78 1 A problem occurred configuring project : app .", "I have a Voip based app .", "The application works correctly when I am making voice calls but when I make a video call the application stops .", "I am using native sip apis to implement sip calling in android app and it is working fine but in some devices like CANVAS 3 it was not working .After debugging I found this line of code was returning NULL .. . .. . That measns that device does not support Sip Apis.But on the same device other application for sipcalling like SipDroid etc are working properly.How it is possible Are they do not use native sip Apis", "I think that makes other Voip clients cannot decode these data .", "But i tried with many other mobiles Voice is not audible .", "Call is being initialized but could not hear voice .", "I am trying to implement IAX based voip application for my android and using AndroVOIP open-source library for dialing and receiving incoming calls but in AndroVOIP there are no listener for incoming calls although my registration for IAX is successful .", "I can hear voice but other sip person is unable to hear my voice .", "I can hear the voice of other person but other person can t hear my voice .", "In Samsung galaxy young voice is clearly audible for both incoming and outgoing calls .", "However all Android open-source make voice delay .", "Even zoiper is working on that phone so I dont think there are issues on the voip or sip-server .", "Code : .. . .. . MainActivity : .. . .. . Manifest : .. . .. . log file : .. . .. . actually i got new problem : my lgp500 doesnot support voip and sip .", "I am developing an app where i need to implement VOIP in that .", "At first I wanted to use native sip apis to implement sip calling in android app and it is working fine but in some devices like CANVAS 3 Samsung S2 s3 it was not working .After debugging I found this line of code was returning NULL .. . .. . manager SipManager.newInstance ctx .. . .. . That measns that device does not support Sip Apis.But on the same device other application for sipcalling like SipDroid etc are working properly.How it is possible Are they do not use native sip Apis", ".. . .. . There s also another third party stack that worths checking : Linphone http : www.linphone.org eng documentation dev liblinphone-free-sip-voip-sdk.html .", "On KitKat only system services are allowed to send broadcast .", "So a good start would be if the pbx could pick up an incoming-call and send it to the voice mail .", "After that I have configured application using one of that account .", "It raise when your IP adress is NAT address usually .", "Please tell me where to test my application .", "i am developing SIP application and it running successfully but getting a security Permission Denial Exception of PHONE STATE only on KitKat Android version .", "Can we not just do this over wifi", "Application works fine .", "When i am trying to make call to each other then on Galaxy Y i am able to hear the audio perfect with all codecs but on xperia the audio is coming very low and i can hardly listen it .", "Does your slow phone happen to have a tegra2 chipset", "Sorry i can t understand what you have said .", "i want to know why the very low audio in ICS while in galaxy Y we can hear the clearly as normal call", "And to answer this I need to know if the device has a tegra2 chipset .. .", "how can we check that from phone", "I am trying to build a sip application on android LGP500 .", "I am using this function in RTP packet class : .. . .. . The problem is that I cannot find where the rtp packet class is getting the payload as the RTP runs over UDP .", "the application is working fine but when i modified the package name of the application i am getting the error with this new codec.while with other codecs the application works fine.here is my logcat of error.Here i have attached my java files .. . G729.java http : pastie.org 4165644 .. . Codec.java http : pastie.org 4165662 .. . Codecs.java http : pastie.org 4165669 .. . g729 jni.cpp http : pastie.org 4165674 .. . .. . I have .so file to support a g729 codec but after changing the package name that .so file is not working.Because this .so file is built using different package name .", "I am looking for good library-project to implement it in my application .", "I have read that you can do something similar with chan dongle but looks like its over bluetooth .", "Man your post is exactly like this http : www.basic4ppc.com android forum threads third-party-open-source-sip-stacks-library-for-android-over-b4a.27966 -", "I have searched the internet and did not find any specific issue in public about causes of that problem .", "The method onAccuracyChanged Sensor int of type InCallScreen must override a superclass method .. . .. . The method onSensorChanged SensorEvent of type InCallScreen must override a superclass method .. . .. . The method onLongClick View of type VideoCamera must override a superclass method .. . .. . The method onError MediaPlayer int int of type VideoCamera must override a superclass method .. . .. . The method onClick View of type VideoCamera must override a superclass method .. . .. . The method onClick DialogInterface int of type Settings must override a superclass method .. . .. . The method onDismiss DialogInterface of type Sipdroid must override a superclass method .. . .. . The method getOption int of type PlainDatagramSocketImpl must override a superclass method .. . .. . The method setOption int Object of type PlainDatagramSocketImpl must override a superclass method .. . .. .", "source code available Disadvantages : Generated apk file size tend to be heavy 15MB as mentioned here .. . .. . Followed from http : www.basic4ppc.com android forum threads third-party-open-source-sip-stacks-library-for-android-over-b4a.27966", "If you wanto use CSipSimple from sources firstly you must compile pjsip source libraries using an linux workstation .", "See this link : HowToBuild CSipSimple using Linux workstation http : code.google.com p csipsimple wiki HowToBuild For Linux", "I don t know but may who is expert in sip-stack or have time to do can implement missing functionality but I am neither one of them so my desire to get an application that have all this functionality and by modifying it I can integrate into my application and csipsimple http : code.google.com p csipsimple is the answer .", "Try using .. . .. . it will return you the RTPpayload in the payload variable", "yeah thanks Actually that codec was built using different package name as compare to current package name.After changing the package name the error is gone .", "I like video-codecs : .. . .. . H264 .. . H263 .. . H263p .. . H261 .. . .. . When the application stops I get this error message : .. . .. . .. . .. . .. . .. . Has anyone experienced this problem", "I am using the Free PBX that is running on a Asterisk server .", "I am using Android SIP API http : developer.android.com reference android net sip package-summary.html to create my sip client and FREE PBX http : www.freepbx.org for sip-server .", "Everything is ok but when i change package name org.sipdroid.sipua i cannot register for any server rollback to name org.sipdroid.sipua and it work fine .", "Awww What wrong with this name" ] }
{ "confidence": [ 67.23353576660156, 64.81022644042969, 63.27231216430664, 61.52678680419922, 56.90793228149414, 54.45812225341797, 52.972259521484375, 51.56068801879883, 51.42058563232422, 50.577049255371094, 50.577049255371094, 49.926513671875, 47.61762237548828, 46.957237243652344, 46.74149703979492, 45.33881378173828, 43.435791015625, 42.08538818359375, 41.63799285888672, 41.40178680419922 ], "content": [ "Question : I followed Sipdroid tutroial http : code.google.com p sipdroid to make Voice call using VOIP based SIP account : .. . .. . Sipdroid Call ends in 4 secs . I have used Pbxes https : www1.pbxes.com index e.php account created an extension route and SIP account . But i can get the calling screen.But the call is not connected . When i connect to other numbers which has sipdroid call ends in 4 secs . .. . Answer : Spidroid worked out with Pbxes.org . We need to dial the extension number of the other device in which we installed spidroid . Not the mobile numbers . Now im trying with Freepbx.org . I have installed freepbx in server . But registration failed with Freepbx .", "Question : I have a Voip based app . So i thought of customizing SipDroid open-source project . As the starting phase i have changed all the package names Class names etc . It perfectly works on my Samsung Galaxy Y . But i tried with many other mobiles Voice is not audible . Call is being initialized but could not hear voice . In Samsung galaxy young voice is clearly audible for both incoming and outgoing calls . But in all the other phones i have tested i can hear only beep sounds . What could be the problem EDIT : I tried calling the other mobile that has Sip Droid with my Samsung Galaxy Young customized app I could hear voice in my app but could not hear in Sipdroid . But when i tried calling Sipdroid to Sipdroid it works fine in all the mobiles . EDIT : .. . .. . EDIT : I have noticed that even the SipDroid Project is not working . Only Sipdroid app in the market is working . Comment : Hi that s too vague and could be caused by a lot of things . My pure guess would be that the SDP negotiation is failing for some reason . It s possible to fail in only 1 direction which can explain why you sometimes hear audio in 1 direction only . Comment : no.. . i can hear audio both in outgoing and incoming calls when i use samsung galaxy young and can not hear anything when i use any other mobile whether its outgoing or incoming Comment : I dont have much idea about protocols . I can post my code here will you go through it if there are any issues Comment : So you re saying this : SipDroid works on all phones . You have forked the sipdroid code changing packets and class names and after this modifications it works only in some cases Galaxy Y .. . so probably you have done some modifications that broke the logic . If you had taken closer look at the code you would see there are special cases for Samsung devices especially in codecs negotiation etc . I think it would be too much work for me to go through all the code sorry . Comment : yeah exactly . but the same thing before changing package names was working fine . I didnt do anything that broke logic . .. . Answer : If you wanto use CSipSimple from sources firstly you must compile pjsip source libraries using an linux workstation . See this link : HowToBuild CSipSimple using Linux workstation http : code.google.com p csipsimple wiki HowToBuild For Linux", "Question : null .. . Answer : I have used the Sipdroid 2.7 beta version.When i run the application on Samsung galaxy then it will give clear voice in call quality but when i run in ICS then it will give very low voice in call.So anybody have idea why this was happened .Sipdroid 2.7 is the compatible with ICS and HTC so why this was happend Anybody know which beta version of Sipdroid is give Audio quality high in ICS EDIT What i tried is i have created 2 SIP extensions in my asterisk server 1 is registered using sipdroid 2.7 on the Samsung Galaxy Y Android 2.3.6 and another is registered using sipdroid 2.7 on Sony xperia Neo V Android 4.0.4 and the test was on wifi . When i am trying to make call to each other then on Galaxy Y i am able to hear the audio perfect with all codecs but on xperia the audio is coming very low and i can hardly listen it . Can you please let me know if its the issue with phone or sipdroid or android version compatiblitity Comment : Does your slow phone happen to have a tegra2 chipset Comment : Sorry i can t understand what you have said . Comment : i want to know why the very low audio in ICS while in galaxy Y we can hear the clearly as normal call Comment : And to answer this I need to know if the device has a tegra2 chipset .. . Comment : how can we check that from phone", "Question : I have a Voip based app . So i thought of customizing SipDroid open-source project . As the starting phase i have changed all the package names Class names etc . It perfectly works on my Samsung Galaxy Y . But i tried with many other mobiles Voice is not audible . Call is being initialized but could not hear voice . In Samsung galaxy young voice is clearly audible for both incoming and outgoing calls . But in all the other phones i have tested i can hear only beep sounds . What could be the problem EDIT : I tried calling the other mobile that has Sip Droid with my Samsung Galaxy Young customized app I could hear voice in my app but could not hear in Sipdroid . But when i tried calling Sipdroid to Sipdroid it works fine in all the mobiles . EDIT : .. . .. . EDIT : I have noticed that even the SipDroid Project is not working . Only Sipdroid app in the market is working . Comment : Hi that s too vague and could be caused by a lot of things . My pure guess would be that the SDP negotiation is failing for some reason . It s possible to fail in only 1 direction which can explain why you sometimes hear audio in 1 direction only . Comment : no.. . i can hear audio both in outgoing and incoming calls when i use samsung galaxy young and can not hear anything when i use any other mobile whether its outgoing or incoming Comment : I dont have much idea about protocols . I can post my code here will you go through it if there are any issues Comment : So you re saying this : SipDroid works on all phones . You have forked the sipdroid code changing packets and class names and after this modifications it works only in some cases Galaxy Y .. . so probably you have done some modifications that broke the logic . If you had taken closer look at the code you would see there are special cases for Samsung devices especially in codecs negotiation etc . I think it would be too much work for me to go through all the code sorry . Comment : yeah exactly . but the same thing before changing package names was working fine . I didnt do anything that broke logic . .. . Answer : I finally found a solution . I used CSipSimple http : code.google.com p csipsimple instead of Sipdroid . Its working fine . Comment : when i am trying to import CSipSample into my eclipse i am getting lot of errors still i am unable to sole those . can you help me on that... . Comment : Even i got same . Installing android sdk 15 solved everything Comment : can copy those files into a new android project when i import that folder what i was downloaded from svn it creates 4 projects non of them working. . Comment : Please help me on this i m working on this from 1 month still i am facing problems..please . Comment : @RajaReddyPolamReddy Seshu Vinay : Did you implemented this code me also facing same issue while importing right now I am using IMSDroid for app but as I have to implement secure calling with TLS so i have littel confusion as I seen the CSIPSimple setup here iprouteth0.blogspot.in 2013 04 http : iprouteth0.blogspot.in 2013 04 csipsimple-srtp-and-sip-tls-with.html for TLS if you have implemented TLS than let me know I have few queries related to it.As from it I will implement it in IMSDroid", "Question : null .. . Answer : I am developing an app where i need to implement VOIP in that . I have gone through some samples in google like SIPDROID http : www.voipvoip.com sipdroid IMSDROID and implemented default android API SIP http : developer.android.com guide topics connectivity sip.html . They are working good . But here I want to interrupt the message while transferring i mean while 1 user says Hi i want to encrypt the following message and need to send the encrypted message to other user at the other end i want to decrypt that message . So any one can help me how to interrupt the message while sending do my process... . Comment : Surely this would depend on which of those libraries you are using Comment : actually i am following SIPDROID source code . can you help me with this. . Comment : when compare with sipdroid imsdroid etc..which one is better to use.i get so confused.i going to develop voip application.can u give any suggestion . @code finder", "Question : Currently I am building mVoIP service for Android . I chose FreeSwitch as a SIP server and there is no problem talking through PC . However all Android open-source make voice delay . Here are data we faced so far . Case 1 - FreeSwitch + PC .. . .. . Case 2 - FreeSwitch + Android Sipdroid .. . .. . Case 3 - FreeSwitch + Android Csipsimple .. . .. . Case 4 - FreeSwitch + Android SipDroid PC .. . .. . Some of Android mVoIP applications such as Skype make less than 50ms voice delay . We ve tried many SIP open sources for Android but all of them make horrible delay . We are looking for a open-source that make less than 50ms for Android . Is there someone who can solve this issue Thank you . Is it maybe Android device is slow to encode and decode audio sound .. . Answer : it s a known problem with CentOS 6 . You need to choose a different distro Debian works fine with me http : wiki.freeswitch.org wiki Download 26 Installation Guide Release.28es.29 6 and Later Comment : Have you tried on your FreeSwitch server with Sipdroid Android application Was it fine no delay Comment : I use Zoiper but as far as I remember sipdroid was also working fine Comment : I installed FreeSwitch on Debian and CentOS 5.X . It still making sound delay like 100ms. . What do you mean working fine Was it fine like cellular phone no delay Comment : what kind of a host is this FreeSWITCH is usually working fine even inside a VPS Comment : well last Saturday I was talking from Galaxy S3 and Moto G without any problems . Such a big delay would be noticeable but I was talking like on a normal phone .", "Question : null .. . Answer : I am working on VOIP calls integration in Android using SIPDROID http : code.google.com p sipdroid . Here I want to encrypt data while sending and decrypt after receiving the data . I have gone through the code but confused as to which class file I should use for encryption and decryption of data . Comment : CSipSimple code.google.com p csipsimple http : code.google.com p csipsimple is a free GPL SIP client for Android which supports TLS out of the box . It works great -- why not use it Comment : @wau : TLS is for SIP signalling encryption..while to encrypt media you need SRTP..does CSipSimple supports SRTP Comment : Yes it does . Afaik for secure calling you need both media and SIP encryption since SRTP keys are exchanged using SIP .", "Question : I am developing SIP base application to make and receive a calls for that purpose i did analysis on an open-source project Sipdroid . http : code.google.com p sipdroid in addition to this i made this application to support a g729 codec . the application is working fine but when i modified the package name of the application i am getting the error with this new codec.while with other codecs the application works fine.here is my logcat of error.Here i have attached my java files .. . G729.java http : pastie.org 4165644 .. . Codec.java http : pastie.org 4165662 .. . Codecs.java http : pastie.org 4165669 .. . g729 jni.cpp http : pastie.org 4165674 .. . .. . I have .so file to support a g729 codec but after changing the package name that .so file is not working.Because this .so file is built using different package name . so i must have a source file and need to compile it again to make it working . how to do that if anyone have a idea about this then please give me some suggestion about this error . how to deal with this error Thanks Comment : The name of the native function must match the full package.class name of the class of which it is a method . However an app can contain packages that do not match the overall package name of the app . Comment : yeah after changing the package name in linker file the error is gone . this was the line which causing the error const char kInterfacePath org sipdroid pjlib g729 .. . Answer : As i have faced with same problem.. . its not matching with your JNi or whatevr Codec with your actual java code Comment : yeah thanks Actually that codec was built using different package name as compare to current package name.After changing the package name the error is gone . this is the line which i have modified according to my requirements . const char kInterfacePath org sipdroid pjlib g729 Comment : yes exactly... . Comment : I want to build g729 codec for my application.with different package name . do you have any idea about this Comment : yeah i was familiar with csipsimple.. . but for sipdroid i have no idea how to build the same codec....for csipsimple i used to have build in linux OS to build G729 codec Comment : Nope its possible i have succesfully i added g729 codec in Sipdroid and its working in both architectures armeabi as well as armeabi-v7a but now i want to create the so file with different package name see this link http : code.google.com p sipdroid issues detail id 49 c171", "Question : I modify sipdroid for my voip app in android . Everything is ok but when i change package name org.sipdroid.sipua i cannot register for any server rollback to name org.sipdroid.sipua and it work fine . Awww What wrong with this name Comment : I would guess that it depends on something in the org.sipdroid.sipua package that it cannot access when it s no longer in that package Comment : you found a solution for this i have the same problem .. . Answer : well i did solve the problem of changing package name of sipdroid . and i am at success. . .. . .. . what you have to is . Change your package name in manifest file . and all other packages in src . with same as your package name in manifest file . after that also change path of shared prefs in settings.java file . after that you need also change the package name in sipdroid.xml and at last go to prefrences.xml there is also a reference given in this file for target package change it too . . after changing all packages there comes a time for jni file . the package which names like org.sipdroid.net.impl change it too it will effect osnetworksystem.cpp file change package names on methods with underscore . now everything will fix up . clean the project and run . it will connect to servers as well as package name also changed . cheers : -", "Question : I modify sipdroid for my voip app in android . Everything is ok but when i change package name org.sipdroid.sipua i cannot register for any server rollback to name org.sipdroid.sipua and it work fine . Awww What wrong with this name Comment : I would guess that it depends on something in the org.sipdroid.sipua package that it cannot access when it s no longer in that package Comment : you found a solution for this i have the same problem .. . Answer : IT IS VERY SIMPLE please change the package name in Settings.java . YES that s it . I am success . private final String sharedPrefsPath data data org.sipdroid.sipua shared prefs .. . .. . change to : private final String sharedPrefsPath data data org.yourpackage.sipua shared prefs", "Question : I modify sipdroid for my voip app in android . Everything is ok but when i change package name org.sipdroid.sipua i cannot register for any server rollback to name org.sipdroid.sipua and it work fine . Awww What wrong with this name Comment : I would guess that it depends on something in the org.sipdroid.sipua package that it cannot access when it s no longer in that package Comment : you found a solution for this i have the same problem .. . Answer : It has something to do with Preference Activity used in storing the settings . If you see the files which use Preference you will have to update them with the new package name .", "Question : null .. . Answer : I m customize Sipdroid code . The application works correctly when I am making voice calls but when I make a video call the application stops . I am using the Free PBX that is running on a Asterisk server . I like video-codecs : .. . .. . H264 .. . H263 .. . H263p .. . H261 .. . .. . When the application stops I get this error message : .. . .. . .. . .. . .. . .. . Has anyone experienced this problem How can I overcome this Thanks in advance Luis Pereira Comment : not readable . you need set codecs correctly on asterisk very likly thats all .", "Question : I modify sipdroid for my voip app in android . Everything is ok but when i change package name org.sipdroid.sipua i cannot register for any server rollback to name org.sipdroid.sipua and it work fine . Awww What wrong with this name Comment : I would guess that it depends on something in the org.sipdroid.sipua package that it cannot access when it s no longer in that package Comment : you found a solution for this i have the same problem .. . Answer : i faced this situation and I have a solution which as follows .. . .. . In this package name org.sipdroid.sipua right-click on and select refactor Rename . And then go to manifest and edit this package name org.sipdroid.sipua as XXX.YYYYY.ZZZ . Then the package name as changed as your wish . and one thing is it will affect all your other packages . you need to change based on your changed package name .", "Question : I have installed SIPDROID . I made three account at sip2sip . After that I have configured application using one of that account . Application works fine . Question is : If I make multiple call to the same phone using SIP is there anyway to handle all calls at a same time Another incoming-call is not displaying on mobile screen while first call is continue . The first call getting picked up but what about the second call which is coming during first call . Even second call is not displaying on the screen . Confused .. . Answer : SipDroid supports only one line at all times . This means you cannot have conference calls . So to the question : .. . .. . If I make multiple call to the same phone using SIP is there anyway to handle all calls at a same time Nope you cannot handle simultaneous-calls at the same time . Fortunately there s another open-source SIP Client that supports multiple lines - IMSDroid http : code.google.com p imsdroid . Though you can extend SipDroid to support multiple lines that s a lot of effort . The main objects you have to pay attention to in order to support multiple lines are : UserAgent SipProvider note that it s designed to support multiplexing demultiplexing of SIP messages JAudioLauncher and the Call object . The bug you re describing with the second call not showing is not something I have witnessed . This could be due to your device setup or due to customizations performed on the original code.. . Comment : Can csipsimple http : code.google.com p csipsimple be the alternative of sipdroid because I am quite familiar with csipsimple http : code.google.com p csipsimple . I have imported both projects then installed both appllication .apk Generated by sourcce code . csipsimple was continues failed in registering so I go with sipdroid . But after that face mul . calling problem in sipdroid . Which side I should go Comment : I have also used csipsimple never had problems with registration on a custom Asterisk and Kamailio servers but the registration in sip2sip is more complicated because of the proxy and the relays . Though I think csipsimple also should be able to register in sip2sip . Have you looked in any document that shows how the configuration in csipsimple looks to connect to sip2sip Comment : I can easily register to csip if I directly download its apk from here http : code.google.com p csipsimple downloads list . What I did I have imported its source http : code.google.com p csipsimple source browse trunk CSipSimple in eclipse and then after many struggling I build it without any error and generated .apk in bin folder I installed . But my account status is only remains inactive even it s not process for registering . that s second thing if I do some mistake to fill up server name etc.. . At-least it has to start register process . This all problem I getting in my build apk . Comment : well that s a completely different matter from the sipDroid multi-line support . The problems in the csip you have could be due to your modifications or incorrect build-process - one could only guess... .", "Question : I m currently using Android Studio 2.0 preview 4 . I have followed the guide from tools.android.com http : tools.android.com tech-docs new-build-system gradle-experimental and tested NDK samples https : github.com googlesamples android-ndk from github . The samples worked without a hitch but when I implemented it on the SIPdroid project it throws this error when I rebuild the project : .. . .. . Error : 78 1 A problem occurred configuring project : app . Exception thrown while executing model rule : model.android Cannot set readonly property : minSdkVersion for class : com.android.build.gradle.managed.ProductFlavor Impl .. . .. . when I try to use gradle project sync it gives this error : .. . .. . Error : Unable to load class com.android.build.gradle.managed.ProductFlavor Impl . Possible causes for this unexpected error include : .. . .. . You are using JDK version java version 1.7.0 79 . Some versions of JDK 1.7 e.g . 1.7.0 10 may cause class loading errors in Gradle . Please update to a newer version e.g . 1.7.0 67 . Open JDK Settings .. . Gradle s dependency cache may be corrupt this sometimes occurs after a network connection timeout . Re-download dependencies and sync project requires network .. . The state of a Gradle build-process daemon may be corrupt . Stopping all Gradle daemons may solve this problem . Stop Gradle build processes requires restart .. . Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project . In the case of corrupt Gradle processes you can also try closing the IDE and then killing all Java processes . Android project structure now looks like this . previously the jni folder is separated from the java folder . enter image description here http : i.stack.imgur.com D0fYx.png .. . .. . Here s my config : .. . .. . SIPdroid app build.gradle .. . .. . SIPdroid build.gradle .. . .. . SIPdroid gradle-wrapper.properties .. . .. . SIPdroid local.properties .. . Answer : I just recently solved my issue by adding this to my orignal app build.gradle file without using the experimental gradle build com.android.tools.build : gradle-experimental : 0.4.0 as indicated in the google samples . This solution finally solved the issue NDKBuild Failure http : stackoverflow.com questions 29738953 ndkbuild-failure . This additional script builds your jni files using ndkBuild . app build.gradle .. . .. . SIPdroid build.gradle .. . .. . You also need to have an empty libs folder under app src main . My mistake was that I renamed the jni folder to libs . After running the build it will compile your jni to the libs folder to .so files .. . .. . app src main contents http : i.stack.imgur.com YWKLt.png .. . .. . jniLibs in your Android project structure view will look like this . This is from your app src main libs as indicated in your build.gradle script .. . .. . enter image description here http : i.stack.imgur.com 4TDOf.png .. . .. . I hope this helps .", "Question : At first I wanted to use native sip apis to implement sip calling in android app and it is working fine but in some devices like CANVAS 3 Samsung S2 s3 it was not working .After debugging I found this line of code was returning NULL .. . .. . manager SipManager.newInstance ctx .. . .. . That measns that device does not support Sip Apis.But on the same device other application for sipcalling like SipDroid etc are working properly.How it is possible Are they do not use native sip Apis So started looking for third party support but all the library has only one open-source project and I get lot of errors on importing these project . sipdroid http : code.google.com p sipdroid source checkout using mjsip http : mjsip.org mjua.html lib .. . .. . csipsimple http : code.google.com p csipsimple source checkout using pjsip http : www.pjsip.org .. . .. . imsdroid http : code.google.com p imsdroid source checkout using Doubango http : www.doubango.org .. . .. . I have tried many times to build it and start it on the android-emulator without any success . The source code does not build and generates about 1500 errors . In the meantime when I downloaded the apk file for the app it runs on the emulator without any problems . I have searched the internet and did not find any specific issue in public about causes of that problem . I am wondering if the source code on the official web site has some bug s that the actual app does not have and you did not have a chance yet to add the corrections to the public source code . .. . Answer : Have you tried this project https : github.com fingi csipsimple based on CSipSimple working perfectly i have used this once and it compiles without any error . It might be helpful to you . Comment : ok i ll try and let u know Comment : i think it will be too complicated to work with native sdk Comment : let me know if it works for you Comment : something is missing bcoz while importing eclipse says No projects are found to import Comment : have you tried importing app from general tab prntscr.com 325j1o http : prntscr.com 325j1o", "Question : null .. . Answer : What i am doing : .. . .. . I am building an android application for 1 to 1 video chatting and i need help here .. . .. . What i did : .. . .. . 1 I came across Quickblox http : quickblox.com developers Android i tried my best to understand and implement it and i really coudn t get it working .. . .. . 2 I researched about Sipdroid http : code.google.com p sipdroid i cant understand it either .. . .. . What i want : .. . .. . I am in need of either .. . .. . 1 A simple library with good documentation to implement video chat . 2 An excellent tutorial for implementing video chat in android . Please guide me Comment : Take a look at this tutorial quickblox.com developers Sample-videochat-android http : quickblox.com developers Sample-videochat-android . It contains step by step instruction of what should be done . You can also check QB Android SDK sdk.quickblox.com android http : sdk.quickblox.com android Comment : @Darya i get NoClassDefFoundError at com.quickblox.module.chat.smack.SmackAndroid Comment : @Darya ok problem solved . I need to ckeck Order and export in java build path . That was very helpful thanks", "Question : This is with reference to sipdroid data encrypt failed http : stackoverflow.com questions 16538893 sipdroid-data-encrypt-failed I tried using XOR operation instead of reverse byte code for send packets and receive packets in SipdroidSocket.class . I experienced same issue too much noise Please guide me in encrypting and decrypting packets in SipdroidSocket.class .. . .. . .. . .. . Sorry for late reply.I am posting the snippets of the code I tried . Please refer the original RtpSocket.java and SipdroidSocket.java classes for complete view . I am just putting the snippets here . In RtpSocket.java I took a static value and collected the packet s header length . Then used this header length in SipdroidSocket.java so as to remove the header part prior tweaking with the payload : In SipdroidSocket.java following editing were done in Send and Receive functions : .. . .. . Kindly try it and suggest me please . Comment : Can we see your code Did you already try something .. . Answer : Finally it worked Had to meddle with the other parts of the code . XOR operation now works fine and have attained the objective .", "Question : I am trying to encrypt Sipdroid and to do that I have to encrypt the the RTP packet after it gets the encoded audio payload . I am using this function in RTP packet class : .. . .. . The problem is that I cannot find where the rtp packet class is getting the payload as the RTP runs over UDP . I have gone through the UDP socket class but it is not there . I think one way could be to get the datagram payload from the rtp packet and encrypt it . Where is the RTP packet class getting its payload .. . Answer : Try using .. . .. . it will return you the RTPpayload in the payload variable", "Question : I want to make a custom sipdroid client by using reverse byte order . I think that makes other Voip clients cannot decode these data . So I read the code of the SipDroid . I found RTP data goes this way : 1 . AudioRecord.read originalPCM 2 . encode originalPCM encodedData 3 . rtp socket.send rtp packet the encodeData is rtp packet s data part .. . .. . And the other side is : 1 . rtp receive rtp packet 2 . decode encodeData PCMData the encodeData is rtp packet s data part 3 . AudioTrack.write PCMData .. . .. . So I modified the SipdroidSocket class . In send method I add the following code at the beginning . And add the following code at the end of the receive method . I think in this way the two client can work as usual . But it failed . And I don t know the reason . Please help me to find out why . Thanks . Comment : It sounds like you want your data to be encrypted when being sent but reversing the byte order will not provide such protection . The code you are showing should not have any problems . Have you tried to run this without your modification In that case did it work Comment : I know the reversing way will not give the data enough protection . I just use this as a try . If it works I will-change the reverse method to some useful way to encrypt data . Comment : And if I remove the modification . The two client is working fine . But with my modification there is only noise . I print a log in these two method . I found the send method only called once there must be some data check in the process . so the send not success . Comment : Then you need to check why send is not sending your data . There is probably some kind of validation maybe a local checksum control used with the RTP . Comment : Yes I found it . The RtpPacket looks like a byte array . But actually is a struct with some byte as header . So I change the reverse process to keep the head part . The send is OK . .. . Answer : You should not reverse the hole buffer unless you receive 2 4 8 bytes at a time . You should treat the data as elements of 2 4 8 bytes depending on how the data were stored . The code i see here will not work . suppose you have a buffer of data bytes 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 stored as 4 byte elements of 0x04030201-0x08070605 . Reversing the hole buffer will produce 0x08 0x07 0x06 0x05 0x04 0x03 0x02 0x01 which is wrong because you will end up with 0x05060708-0x04030201 If you reverse one element 4 bytes at a time . Keep in mind that the size of an element depends on how the values were stored" ] }
[ "yes-answer-long", "yes-answer-short" ]
android
UNK_RELATION
pyjnius@java@54
pyjnius -- pyjnius is a python library for accessing @placeholder classes.more info here : http : pyjnius.readthedocs.org en latest .
{ "confidence": [ 50.34130096435547, 46.97674560546875, 46.6832275390625, 45.14592742919922, 45.14592742919922, 45.14592742919922, 44.338905334472656, 42.55558776855469, 42.55558776855469, 42.55558776855469, 42.55558776855469, 42.55558776855469, 42.511253356933594, 41.35720443725586, 40.15648651123047, 39.9209098815918, 39.9209098815918, 39.0943603515625, 39.046817779541016, 39.046817779541016, 39.046817779541016, 39.046817779541016, 39.046817779541016, 39.046817779541016, 38.692543029785156, 38.692543029785156, 38.692543029785156, 38.692543029785156, 38.692543029785156, 37.948143005371094, 37.941688537597656, 37.84843444824219, 37.340728759765625, 37.19081115722656, 36.412139892578125, 34.320526123046875, 34.320526123046875, 34.320526123046875, 34.320526123046875, 34.320526123046875, 34.320526123046875, 34.320526123046875, 33.48907470703125, 33.12214660644531, 31.42793846130371, 31.366350173950195, 30.93545150756836, 30.229557037353516, 29.959632873535156, 28.793262481689453, 25.553455352783203, 25.401119232177734, 24.67068099975586, 24.104982376098633, 24.035158157348633, 21.62016487121582, 20.21834945678711, 20.117473602294922, 19.263086318969727, 19.218191146850586, 18.716882705688477, 18.341407775878906, 18.33958625793457, 18.266454696655273, 18.117841720581055, 17.83714485168457, 17.83714485168457, 17.83714485168457, 17.83714485168457, 17.732051849365234, 17.732051849365234, 17.401485443115234, 17.207109451293945, 17.154090881347656, 17.154090881347656, 17.154090881347656, 17.154090881347656, 17.154090881347656, 17.154090881347656, 17.154090881347656, 16.760364532470703, 16.760066986083984, 16.638763427734375, 16.5186767578125, 16.277313232421875, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.234020233154297, 16.008726119995117, 15.670918464660645 ], "content": [ "Thanks pgkireek I m using Ubuntu 14.04.1 LTS Python 2.7.6 and pyjnius directly from github.com kivy pyjnius https : github.com kivy pyjnius .", "Here are some of the errors I have been encountering : .. . .. . and then for pyjnius I get : .. . .. . I downloaded pyjnius and run the setup :", "http : pyjnius.readthedocs.org en latest api.html jnius.autoclass", "You don t need to install pyjnius .", "I have a problem installing pyjnius .", "I am working with pyjnius in django .", "By that I mean importing pyjnius and using it in a python sl4a script.. .", "Hey guys is there any way of using pyjnius with sl4a", "I cannot get pyjnius working with 1.7 .", "I would prefer pyjnius and java but plyer is ok .", "you need to use pyjnius nested-class syntax .", "Why you cannot import pyjnius as a module", "Kivy also have pyjnius included .", "I ll try to call it with Pyjnius from Kivy .", "You could also use the nice Plyer API included in Kivy to send a notification on Android via Pyjnius : Look here http : kivy.org docs guide android.html and here https : plyer.readthedocs.org en latest", "Or some help to compile pyjnius for qpython directly", "Pyjnius is a separate module it doesn t depend on Kivy .", "Any help on how to properly do this is appreciated .. . .. . I have been following this example provided here : .. . .. . Pyjnius : http : kivy.org planet 2012 08 pyjnius-accessing-java-classes-from-python .. . .. . Java class to access : MediaRecorder .. . .. . But really what i want to access using Pyjnius is the ContactsContract.Intents.Insert in Android and get working code to add a new contact to my android phone .", "You can add the jar into CLASSPATH then import pyjnius and use autoclass as normal : - :", "I am trying to setup pyjnius on Windows for developing my app .", "pyjnius needs to be reinstalled in order to configure it with the new java environment .", "That can be done by running the following in the downloaded or cloned pyjnius GiHub project folder :", "Do you actually want to use pyjnius on the desktop or just on android", "Does anyone know how to release Java object when using pyjnius", "Pyjnius allows you to create a python wrapper for java classes like : .. . .. . Is there a way to import an existing .jar file like that", "I downloaded pyjnius from GitHub and tried to setup it up for python in the kivy folder .", "P4A already includes pyjnius and Kivy and has scripts to include other Python modules and to create an APK from your application .", "Try rerunning sudo python setup.py install to configure pyjnius with the new java environment .", "I use pyjnius to call Java function in python but I don t know how to release the Java resources .", "Calling Java from Python http : stackoverflow.com questions 3652554 calling-java-from-python .. . .. . In the end after testing : .. . .. . Pyjnius : Cannot install in Windows .", "This is the method used by python-for-android https : github.com kivy python-for-android which patches pyjnius to use an appropriate api .", "I tried following Pyjnius docs but I couldn t get the app to run .", "So you need to pull in the right class using nested-class syntax http : pyjnius.readthedocs.org en latest api.html jnius.autoclass :", "There are a couple of good examples on QPy s site : https : github.com kivy pyjnius blob master docs source android.rst try https : www.youtube.com watch v 8Jwp1PTvECI google for pyjnius android .", "I have been trying to install pyjnius on OS X 10.10.1 .", "To illustrate I use pyjnius to access advanced TTS features of the OS not accessible to SL4A .", "What API module trick do you wizards use Pyjnius to call Android API", "I had to manually install pyjnius because using pip got me an old version of it .", "And so pyjnius couldn t import the Java 8 files on my Java 7 Ubuntu install .", "I am having a hard time trying to use Pyjnius to access a Android Java class ContactsContract.Intents.Insert .", "pyjnius fails in a call X autoclass HelloWorld .. . .. . When HelloWorld.java is compiled with 1.6 everything works .", "I know that there is ReleaseStringUTFChars function when use C++ to call Java and I don t find some similar function in pyjnius .", "I ve read through this guide http : developer.android.com guide webapps webview.html BindingJavaScript : .. . .. . How can I create a PyJnius class that has @JavascriptInterface annotation", "I ve been trying without success to make the files viewable without reset using MediaScannerConnection in Pyjnius .", "tl dr : make sure the .java files are compiled to at most the same Java version .class files as the Java version on the system that will import the file with pyjnius .", "In order to use Java with bindings in Python am installing the following : https : github.com kivy pyjnius .. . .. . I got this error : it seems trying to compile C++ file header into the Java HOME... . which looks very strange :", "For instance to make an exe with I am using pyjnius http : pyjnius.readthedocs.org en latest for handling the sikuli-standalone jar https : code.google.com p sikuli-api : .. . .. . Pyisntaller creates the one folder exe with : .. . .. . pyinstaller -d test.py .. . .. . But the jar to the best of my knowledge is not bundled and is inaccessible to the exe unless you manually place it in the folder generated by Pyinstaller .. . .. . According to the Pyinstaller manual http : www.pyinstaller.org export d3398dd79b68901ae1edd761f3fe0f4ff19cfb1a project doc Manual.html format raw : .. . .. . CArchive contains whatever you want to stuff into it .", "EDIT The solution could be to scan the files for mtp using MediaScannerConnection with Pyjnius however as shown in my next answer it didn t work for me .", "If you want to use Kivy on Android you should use the python-for-android http : python-for-android.readthedocs.org en latest project .", "I m not sure what you re actually asking regarding how your app would be run if it s within qpython doesn t pyjnius work anyway", "It does depend on getting a JNIEnv somehow and pyjnius currently hardcodes doing so via an SDL function although this may work even if SDL s eventloop isn t actually running .", "For your case you ll need to build your own APK using python-for-android http : python-for-android.readthedocs.org en latest or buildozer https : github.com kivy buildozer .", "I m trying to make pyjnius work with a jar file I built from java application but I keep getting the Class not found error : .. . .. . of course I ve checked : .. . .. . and com myapp webapp server helpers licensee CalculationHelper.class is in there .. . .. . I ve also tried setting the classpath this way : .. . .. . But this gave me the same result .", "If you wish to give QPy a try download the QPython app from Play Store I use the Python v . 2.X version then in the app s settings download additional packages and one of them is a fully functional pyjnius you can access ANYTHING you would from a java app but inside the super convenient python environment the guys behind QPy have done an incredible job yet the interpreter often crashes but this is not consistent across all of my devices and changes with QPy s updates .", "I am not able to import it as a module so i am using it like this .. . .. . that works normally but in virtual environment it gives error .. . .. . this https : www.hackzine.org using-apache-tika-from-python-with-jnius.html is the code i am follwing .. . .. . please can anyone point some direction here as how to use pyjnius in virtual environment or where i am making mistakes .", "I am trying to incorporate ads into my app with AdBuddiz according to this website .. . .. . https : github.com kivy kivy wiki AdBuddiz-Android-advertisements-integration-for-Kivy-apps .. . .. . I am stuck in 4th step as I it gives the error that says .. . .. . jnius.jnius.JavaException : javaclass definition missing .. . .. . I installed jnius by downloading this https : github.com kivy pyjnius and used the command : sudo python setup.py install .. . .. . If you could help me fix this error or help me understand the error I would appreciate so much .", "I will provide the code for accessing shared prefs below .", "The closest I ve come is using Plyer s email function https : plyer.readthedocs.org en latest plyer.facades.Email however it doesn t appear to support attachments .", "Is there any way by which i could give permission in script for accessing Bluetooth", "Python Code :", "Not from python script .", "I want to import sikuli into Python .", "Here is my main.py .", "it isn t in python-for-android while compiling i need it on pc to test my app here i dont want create an apk ervery time", "I built a wrapper script in bash to call the python script setting the classpath before calling the python script .", "I am working on a Windows7 PC with Python 2.6 .", "You did not satisfy the requirements Python 2.7 .", "When the get function is called a Python dictionary is returned .", "or Are there other methods to pass a Java String to python", "http : www.hackzine.org using-apache-tika-from-python-with-jnius.html .. . .. . I just wanted to leave a comment but I don t have enough reputation for it .", "Chect out this link : askubuntu.com questions 389683 http : askubuntu.com questions 389683 how-we-can-change-linux-environment-variable-in-python", "How do you get pyinstaller http : www.pyinstaller.org to bundle .jar files as archives for a python project that utilizes them", "enter image description here http : i.stack.imgur.com IK80j.png .. . .. . I have setup the directories for the SDK and NDK correctly and have API14 .", "I tried installing python-for-android and ran into a problem during installation .", "I m using QPython and Kivy Launcher to run my Python code on Android .", "I prefer using just Python 2.7 but that may not be an option in this case .", "Python-for-android does register a browser for android so this should work .", "Windows 7 .. . Python 2.7.8 .. . jnius 1.1-dev .. . .. . This page will be useful as a reference .", "In the python implementation of I have created a @java method that overrides toString and works fine .", "The intended outcome would have receivedMessage do something more in python .", "I m not able to use the Py4A library since the final result should work inside a Kivy application which doesn t have SL4A s library .", "If you are interested in learning more please read http : developer.android.com guide topics data data-storage.html and https : kivy.org planet 2015 04 python-on C2 A0android", "I simply run it using the command python main.py", "enter image description here http : i.stack.imgur.com Eo7en.png .. . .. . Following the setup I tried to run the tests and I get an error that I don t understand .", "What is wrong with my code here .", "I just want to use some classes provided in some external jars in my python script .", "--- Edited on May 13 2014 --- .. . .. . Following Ryan s suggestion I tried to install python for android on Window 7 .", "I have tried a few ways to send an email using Python in the Kivy app on Android .", "webbrowser.open works on Windows 7 Python 2.7 opens my default web browser Chrome on my Windows machine no problem .", "It s such a simple thing to do yet Python doesn t even find a runnable browser on Android .", "But I think it s such a common operation that Python should be able to handle it unless I m doing something wrong", "Have you tried to add CLASSPATH via export then run your python script", "First I exported CLASSPATH home code my proj my.jar in shell and then ran python my script.py and then autoclass worked .", "It is usually placed at the very top of your Python script before any other kivy module is imported .", "Issue : .. . .. . I am attempting to create a pub sub interface that will have a java Publisher object and a python Subscriber object .", "Make sure that you use the correct version of pip installed for your Python interpreter located at usr bin python2.7 .", "in run me.py this is the code https : www.hackzine.org using-apache-tika-from-python-with-jnius.html .. . .. . thankyou", "For example Java function : .. . .. . python : .. . .. . Then I can see the memory in top is always growing i.e . memory leak .", "EDIT .. . .. . It seems to me that I m looking for an equivalent of the Java getSharedPreferences described here : http : developer.android.com guide topics security permissions.html .", "The older android module https : github.com kivy python-for-android blob master recipes android src android android.pyx L262 has support for passing a filename ." ] }
{ "confidence": [ 70.79373168945312, 64.1912841796875, 58.86741256713867, 57.39717102050781, 57.11965560913086, 56.276451110839844, 55.64716720581055, 54.54127502441406, 54.18777847290039, 52.72026443481445, 52.26353073120117, 47.149532318115234, 46.16234588623047, 45.30479431152344, 44.61320495605469, 44.57877731323242, 42.64720153808594, 42.24606704711914, 41.86710739135742, 41.80158996582031 ], "content": [ "Question : I m trying to make pyjnius work with a jar file I built from java application but I keep getting the Class not found error : .. . .. . of course I ve checked : .. . .. . and com myapp webapp server helpers licensee CalculationHelper.class is in there .. . .. . I ve also tried setting the classpath this way : .. . .. . But this gave me the same result . I m working on a virtualenv btw . I ve tried all approaches I could find online but it is simply not working . I had to manually install pyjnius because using pip got me an old version of it . Any help would be greatly appreciated . .. . .. . Edit : tried this with a jar not created by me and I see a different error .. . .. . and here are the contents of jar tf on that jar : .. . .. . Again.. . any help will be greatly appreciated .. . Answer : It works fine when I use my jar file . Did you try to use the full path to define CLASSPATH Windows 7 .. . Python 2.7.8 .. . jnius 1.1-dev .. . .. . This page will be useful as a reference . http : www.hackzine.org using-apache-tika-from-python-with-jnius.html .. . .. . I just wanted to leave a comment but I don t have enough reputation for it . So I leave an answer as a comment . And you d better not to use instead of . when you call autoclass . See the link below . http : pyjnius.readthedocs.org en latest api.html jnius.autoclass Comment : Thanks pgkireek I m using Ubuntu 14.04.1 LTS Python 2.7.6 and pyjnius directly from github.com kivy pyjnius https : github.com kivy pyjnius . I had read both links you sent but none were of help in my case . Comment : And about using instead of . when calling autoclass I ve tried both with no success. .", "Question : null .. . Answer : I am having a hard time trying to use Pyjnius to access a Android Java class ContactsContract.Intents.Insert . Any help on how to properly do this is appreciated .. . .. . I have been following this example provided here : .. . .. . Pyjnius : http : kivy.org planet 2012 08 pyjnius-accessing-java-classes-from-python .. . .. . Java class to access : MediaRecorder .. . .. . But really what i want to access using Pyjnius is the ContactsContract.Intents.Insert in Android and get working code to add a new contact to my android phone . Android class : https : developer.android.com reference android provider ContactsContract.Intents.Insert.html .. . .. . This is what i have so far but i am confused on the arraylist :", "Question : I am working on a Windows7 PC with Python 2.6 . I want to import sikuli into Python . I have a problem installing pyjnius . Here are some of the errors I have been encountering : .. . .. . and then for pyjnius I get : .. . .. . I downloaded pyjnius and run the setup : .. . Answer : You did not satisfy the requirements Python 2.7 . Take a look here https : github.com kevlened sikuli cpython requirements Comment : I have the same problem but I can t understand from the requirements which one I miss .", "Question : How do you get pyinstaller http : www.pyinstaller.org to bundle .jar files as archives for a python project that utilizes them For instance to make an exe with I am using pyjnius http : pyjnius.readthedocs.org en latest for handling the sikuli-standalone jar https : code.google.com p sikuli-api : .. . .. . Pyisntaller creates the one folder exe with : .. . .. . pyinstaller -d test.py .. . .. . But the jar to the best of my knowledge is not bundled and is inaccessible to the exe unless you manually place it in the folder generated by Pyinstaller .. . .. . According to the Pyinstaller manual http : www.pyinstaller.org export d3398dd79b68901ae1edd761f3fe0f4ff19cfb1a project doc Manual.html format raw : .. . .. . CArchive contains whatever you want to stuff into it . It s very much like a .zip file . I then try editing the previously auto-generated test.spec file with : .. . .. . And I try building the exe based on this spec file with : .. . .. . But nothing happens and no error returns . Can someone provide a simple step by step tutorial how this could be done Many thanks .. . Answer : change sikulijar in the tuple to just jar the variable that you have already defined . you need to reference the same name that you have used in code . However I m still trying to get the JVM to initialize properly . I ll post that if I figure that out .", "Question : Hey guys is there any way of using pyjnius with sl4a By that I mean importing pyjnius and using it in a python sl4a script.. . The goal is to be able to access the Google Play Services Activity Recognition client from an sl4a script . Any other way of doing that .. . Answer : There is QPython which is a great concept but on my particular device Galaxy S4 with A 4.4 upgrade SL4A is more stable than QPython.. . If you wish to give QPy a try download the QPython app from Play Store I use the Python v . 2.X version then in the app s settings download additional packages and one of them is a fully functional pyjnius you can access ANYTHING you would from a java app but inside the super convenient python environment the guys behind QPy have done an incredible job yet the interpreter often crashes but this is not consistent across all of my devices and changes with QPy s updates . To illustrate I use pyjnius to access advanced TTS features of the OS not accessible to SL4A . There are a couple of good examples on QPy s site : https : github.com kivy pyjnius blob master docs source android.rst try https : www.youtube.com watch v 8Jwp1PTvECI google for pyjnius android .", "Question : I have Java 1.6.0 17 installed in usr local bin . My Java program is compiled with 1.7.0 11 . pyjnius fails in a call X autoclass HelloWorld .. . .. . When HelloWorld.java is compiled with 1.6 everything works . I cannot get pyjnius working with 1.7 . I ve tried setting JAVA HOME before importing jnius : .. . .. . I ve also set JAVA HOME in .bash-profile and added usr local pkgs jdk-1.7.0.11 bin the first in my PATH . Comment : Try rerunning sudo python setup.py install to configure pyjnius with the new java environment . Comment : This is it . Thanks Please let me know how to mark your answer as a correct one . Comment : Glad it worked . I posted my reply as an answer so you can mark it . .. . Answer : pyjnius needs to be reinstalled in order to configure it with the new java environment . That can be done by running the following in the downloaded or cloned pyjnius GiHub project folder :", "Question : I need to access the bluetooth on Android in my Kivy app . I am trying to setup pyjnius on Windows for developing my app . I downloaded pyjnius from GitHub and tried to setup it up for python in the kivy folder . enter image description here http : i.stack.imgur.com Eo7en.png .. . .. . Following the setup I tried to run the tests and I get an error that I don t understand . I am very new to Android development and can t quite understand what might be problem . What am I doing wrong in my installation process I have JRE and JDK installed in my PC . --- Edited on May 13 2014 --- .. . .. . Following Ryan s suggestion I tried to install python for android on Window 7 . I downloaded the Android SDK API14 and the NDK and setting up the following environment-variables : .. . .. . I cloned the github repository and executed the following command : .. . .. . But when I do this I run into the following error : .. . .. . enter image description here http : i.stack.imgur.com IK80j.png .. . .. . I have setup the directories for the SDK and NDK correctly and have API14 . 1 . What am I missing 2 . Why do you I get this error 3 . What do I need to do resolve this problem .. . Answer : You don t need to install pyjnius . If you want to use Kivy on Android you should use the python-for-android http : python-for-android.readthedocs.org en latest project . P4A already includes pyjnius and Kivy and has scripts to include other Python modules and to create an APK from your application . python-for-android also provides a VirtualBox VM https : docs.google.com uc export download confirm no antivirus id 0B1WO07-OL50 bTR0SElrLTZGWEU which can make this process much easier for Windows users . Comment : Thank you Ryan . I tried installing python-for-android and ran into a problem during installation . I have provided the details in my question . Can you take a look and tell me what might be the issue with the installation process Comment : @siva82kb Are you certain the NDK is fully installed It s not finding the compiler arm-linux-androideabi-gcc.exe which should be located in the first folder in that path C : Users 108354 work android-ndk-r9d toolchains arm-linux-androideabi-4.8 preb uilt cygwin-x86 bin . And did you install the 32-bit NDK Even on 64-bit systems you need to use the 32-bit NDK . This is why I would recommend just using the VirtualBox VM as it is already set up for you . Comment : Thanks . I finally tried the VM and it worked . I used the VirtualBox VM and was able to setup everything . Thanks .", "Question : Pyjnius allows you to create a python wrapper for java classes like : .. . .. . Is there a way to import an existing .jar file like that What does the syntax look like .. . Answer : You can add the jar into CLASSPATH then import pyjnius and use autoclass as normal : - :", "Question : null .. . Answer : I use pyjnius to call Java function in python but I don t know how to release the Java resources . For example Java function : .. . .. . python : .. . .. . Then I can see the memory in top is always growing i.e . memory leak . So I guess the reason is the resources of s haven t been released . I know that there is ReleaseStringUTFChars function when use C++ to call Java and I don t find some similar function in pyjnius . Does anyone know how to release Java object when using pyjnius or Are there other methods to pass a Java String to python Comment : It seems that I have found the problem . The GC default options of JVM are used and when modifying them to low memory this problem seems to be solved .", "Question : I am working with pyjnius in django . I am not able to import it as a module so i am using it like this .. . .. . that works normally but in virtual environment it gives error .. . .. . this https : www.hackzine.org using-apache-tika-from-python-with-jnius.html is the code i am follwing .. . .. . please can anyone point some direction here as how to use pyjnius in virtual environment or where i am making mistakes . in run me.py this is the code https : www.hackzine.org using-apache-tika-from-python-with-jnius.html .. . .. . thankyou Comment : What s inside run me.py file Why you cannot import pyjnius as a module Comment : i have made the changes above for run me.py .. . Answer : I had some trouble getting this to work as well . The following worked for me : .. . .. . Create a new virtualenv just in case and activate it . Comment : Thank you that worked i am using os.system . . can you please show some way to import jnius as python-module from virtualenv src Comment : do you want to import run me or jnius Comment : jnius if i could import it i would write run me.py code in django s view Comment : Hmm I m using it in a management command . The issue occurs when tika is not available on the CLASSPATH . Maybe the os.environ CLASSPATH should happen earlier in the request chain . Comment : yes i will work on that thanks for the help", "Question : I want to ask if it s possible to import only jnius from Kivy . I using Python for Android qpython distribution with Kivy compiled in it . Kivy also have pyjnius included . Now I try to use jnius without calling a Kivy app to call Java modules Any idea to call kivy included modules without import Kivy itself or to usw Kivy only in terminal without calling a App or Window Or some help to compile pyjnius for qpython directly Thanks .. . Answer : Pyjnius is a separate module it doesn t depend on Kivy . It does depend on getting a JNIEnv somehow and pyjnius currently hardcodes doing so via an SDL function although this may work even if SDL s eventloop isn t actually running . I m not sure what you re actually asking regarding how your app would be run if it s within qpython doesn t pyjnius work anyway but in general it s easy to modify it to get the pointer a different way although you need some C code to manage it . This is the method used by python-for-android https : github.com kivy python-for-android which patches pyjnius to use an appropriate api . Comment : If I simply try : import jnius I get : Traceback most recent call last : File stdin line 1 in module File QPython QPython2-core build python-install lib python2.7 site-packages jnius init .py line 13 in module File QPython QPython2-core build python-install lib python2.7 site-packages jnius r eflect.py line 9 in module File jnius export class.pxi line 44 in jnius.jnius.MetaJavaClass . new jnius jnius.c : 13255 SystemError : NULL result without error in PyObject Call Comment : I don t know what s wrong exactly but maybe I m wrong about it working without something else running . It does run fine without Kivy and SDL though there s no major dependency there even if qpython has a problem .", "Question : I m trying to make pyjnius work with a jar file I built from java application but I keep getting the Class not found error : .. . .. . of course I ve checked : .. . .. . and com myapp webapp server helpers licensee CalculationHelper.class is in there .. . .. . I ve also tried setting the classpath this way : .. . .. . But this gave me the same result . I m working on a virtualenv btw . I ve tried all approaches I could find online but it is simply not working . I had to manually install pyjnius because using pip got me an old version of it . Any help would be greatly appreciated . .. . .. . Edit : tried this with a jar not created by me and I see a different error .. . .. . and here are the contents of jar tf on that jar : .. . .. . Again.. . any help will be greatly appreciated .. . Answer : tl dr : make sure the .java files are compiled to at most the same Java version .class files as the Java version on the system that will import the file with pyjnius . Longer version : .. . .. . I had a very similar problem with one big difference : some files worked without any problem and others in the same directory didn t . The problem with the files that resulted in the Class not found exception was that I compiled them under Windows which has Java 8 . Ubuntu however currently installs Java 7 when you run sudo apt-get install default-jdk . And so pyjnius couldn t import the Java 8 files on my Java 7 Ubuntu install . It s strange that it throws a Class not found exception instead of something more descriptive . Changing the target output to 1.7 fixed my problem .", "Question : I m trying to display a toast message using jnius on QPython . I m not able to use the Py4A library since the final result should work inside a Kivy application which doesn t have SL4A s library . However I m getting a jnius.jnius.JavaException : No methods matching your arguments . How do I correctly use the toast notification with jnius .. . Answer : Why don t you simply creaty a popup in Kivy pack it for Android see if it works if you are going to use Kivy anyway You could also use the nice Plyer API included in Kivy to send a notification on Android via Pyjnius : Look here http : kivy.org docs guide android.html and here https : plyer.readthedocs.org en latest Comment : I m going to use the DatePickerDialog http : developer.android.com reference android app DatePickerDialog.html TimePickerDialog http : developer.android.com reference android app TimePickerDialog.html too and they aren t supported by Plyer right now . The popup would work but I thought of using toast notifications since they fit exactly what I wanted . Comment : This github repo seems to do what you want : github.com knappador kivy-toaster https : github.com knappador kivy-toaster Comment : thanks for the link I ll try to construct the TimePicker the same way", "Question : I m trying to make pyjnius work with a jar file I built from java application but I keep getting the Class not found error : .. . .. . of course I ve checked : .. . .. . and com myapp webapp server helpers licensee CalculationHelper.class is in there .. . .. . I ve also tried setting the classpath this way : .. . .. . But this gave me the same result . I m working on a virtualenv btw . I ve tried all approaches I could find online but it is simply not working . I had to manually install pyjnius because using pip got me an old version of it . Any help would be greatly appreciated . .. . .. . Edit : tried this with a jar not created by me and I see a different error .. . .. . and here are the contents of jar tf on that jar : .. . .. . Again.. . any help will be greatly appreciated .. . Answer : Have you tried to add CLASSPATH via export then run your python script This worked for me . Comment : Hi Benxy yes I tried it with no luck . Both with relative- and absolute path . Comment : But did you actually tried to set env var from shell Not from python script . In my project this : import os os.environ CLASSPATH home code my proj my.jar didn t work . First I exported CLASSPATH home code my proj my.jar in shell and then ran python my script.py and then autoclass worked . When I set the env var from shell it worked like a charm . Chect out this link : askubuntu.com questions 389683 http : askubuntu.com questions 389683 how-we-can-change-linux-environment-variable-in-python Comment : Hi Benxy again Yes . I built a wrapper script in bash to call the python script setting the classpath before calling the python script . Thanks", "Question : Pyjnius allows you to create a python wrapper for java classes like : .. . .. . Is there a way to import an existing .jar file like that What does the syntax look like .. . Answer : As much as jar file relevant only for android you need to add jar file in your buildozer.spec like .. . .. . and in your App s build method Comment : I just want to use some classes provided in some external jars in my python script . Is it not possible using jars which are not related to android Comment : it depends on what you want to achieve . maybe jython would work for you", "Question : null .. . Answer : In order to use Java with bindings in Python am installing the following : https : github.com kivy pyjnius .. . .. . I got this error : it seems trying to compile C++ file header into the Java HOME... . which looks very strange : Comment : That is probably C not C++ . Comment : Maybe a duplicate of JNI - Cannot open include file : jni md.h http : stackoverflow.com questions 7212982 jni-cannot-open-include-file-jni-md-h Comment : ok Am investigating this one : stackoverflow.com questions 7212982 http : stackoverflow.com questions 7212982 jni-cannot-open-include-file-jni-md-h", "Question : I spent significant amount of time looking for this and explore many solutions . This is related to this thread . Calling Java from Python http : stackoverflow.com questions 3652554 calling-java-from-python .. . .. . In the end after testing : .. . .. . Pyjnius : Cannot install in Windows . Py4J : can install on windows but using Gateway is a bit heavy . JPype : Python 3 installed in 5 mins can load 50Mo JAR without any issues . Good thing is the syntax is completely merged with Python syntax.. . https : github.com tcalmant jpype-py3 .. . .. . Just Wondering if any people has developed real world wrapping application of Java in Python ie running on a production server with big size JAR .. . Answer : To save time to many people I post the module I used for JPype this is working nicel to load JAR .", "Question : null .. . Answer : I copied this code to use android native WebView https : github.com kivy kivy wiki Android-native-embedded-browser in my Kivy application . Works perfectly : .. . .. . Now I would like to bind my JavaScript with my Kivy application . I ve read through this guide http : developer.android.com guide webapps webview.html BindingJavaScript : .. . .. . How can I create a PyJnius class that has @JavascriptInterface annotation Thanks", "Question : I want to start an android add contacts activity.But i also want to start the contact s intents insert action . What is wrong with my code here . Simply i want to start a add contacts activity with pre filled data like phone and number already added . Comment : Answer found on Zarah s comment at the link : stackoverflow.com questions 1895206 http : stackoverflow.com questions 1895206 how-can-i-launch-the-add-contact-activity-in-android .. . Answer : Insert is an nested-class . you need to use pyjnius nested-class syntax . this worked : Comment : This works as it opens but the fields are still empty .", "Question : I ve been trying to create an Android app to check if the phone s wifi is turned on or off . What I m trying to do is if the WiFi is on then is shows a BoxLayout which is white in color and if it isn t on then it shows a Popup . I m new to Android Development and I got hooked to Kivy because of its simplicity and my love for Python . I tried following Pyjnius docs but I couldn t get the app to run . So I ll post the code here : .. . .. . And should I make any changes to permissions in builder.spec file As of now it is just INTERNET . Comment : Check this link : stackoverflow.com questions 3930990 http : stackoverflow.com questions 3930990 android-how-to-enable-disable-wifi-or-internet-connection-programmatically .. . Answer : In my project I used this function both for WiFi and mobile internet : .. . .. . It returns True if internet is available and False if not ." ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
coherence-toolkit@server@60
coherence-toolkit -- a free dlna upnp framework with media @placeholder mediarenderer and other components .
{ "confidence": [ 33.32271957397461, 30.974403381347656, 26.769756317138672, 24.098922729492188, 24.098922729492188, 23.831707000732422, 22.90563201904297, 22.90563201904297, 19.21763038635254, 17.2965145111084, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137, 14.834033012390137 ], "content": [ "How do I import and use Coherence to stream the desktop or a video to a uPnP screen", "After looking for some time to a solution for streaming audio video via uPnP Coherence seems to be the most promising option : For example : http : coherence.beebits.net browser trunk Coherence coherence backends gstreamer renderer.py seems to be what would be required to play a file directly to a HDMI TV dongle .", "Oddly enough after installing the Ubuntu coherence package running import coherence in Python terminal doesn t really show anything like this module .", "You don t need to know the IP address beforehand : one of the points of UPnP is that SSDP lets us discover devices .", "gupnp-universal-cp from gupnp-tools might be a good way to double-check if the device even is a standard UPnP device .", "See Jens article http : jensge.org 2013 04 dlna-client-side and documentation for PushHost https : 01.org dleyna documentation renderer-objects .", "That does not seem useful : it s already done by all UPnP stacks like GUPnP and getting it right is a lot of work the script is not even close to being complete .", "That doesn t get you any closer to being able to do a 2-box push but at least you d see if it seems to be a UPnP device or not .", "Alternatively you can of course have a normal mediaserver like rygel running and use a control point like gupnp-av-cp from gupnp-tools to select the media you want to play and the renderer that should play it .", "Here s a quick example of listing the available devices on wlan0 network using a GUPnP ControlPoint : .. . .. . The problem with streaming to a renderer is that you actually need two things : the control point that tells the renderer what you want to play and the mediaserver that serves the actual media when the renderer asks for it -- if these are integrated into one called the 2-box push model the mediaserver part is not quite as complex but it still needs to be done .", "Tab completion in bpython shows : .. . .. . and those submodules seem to just give info about the system .", "Is there a basic getting started guide", "Update .. . .. . It looks like GUPnP has ability to link in to Python : .. . .. . Which is apparently calling the function documented here : https : developer.gnome.org gupnp unstable GUPnPControlPoint.html .. . .. . Unfortunately the docs don t have any full examples of how to stream to a video receiver - specifically how does it initiate sending the video file over the network", "Update : This is the first step I use to detect the device :", "About GUPnP on python : it s not extensively used and definitely not documented well enough but it should work .", "One project you may be interested in is dleyna : It is based on GUPnP and tries to make this client-side work a little easier .", "However dleyna is a set of D-Bus services not a library so you ll have to decide if it fits your purposes .", "Oddly enough your example shows another computer on the network but never the Tronsmart device .", "Do I need to specify a protocol port first", "See my updated question code I use to see what local IP the device is .", "I really don t understand what your script tries to do.. .", "I suppose it might try to do the discovery part on its own" ] }
{ "confidence": [ 52.25728225708008 ], "content": [ "Question : After looking for some time to a solution for streaming audio video via uPnP Coherence seems to be the most promising option : For example : http : coherence.beebits.net browser trunk Coherence coherence backends gstreamer renderer.py seems to be what would be required to play a file directly to a HDMI TV dongle . Oddly enough after installing the Ubuntu coherence package running import coherence in Python terminal doesn t really show anything like this module . Tab completion in bpython shows : .. . .. . and those submodules seem to just give info about the system . How do I import and use Coherence to stream the desktop or a video to a uPnP screen Is there a basic getting started guide Update .. . .. . It looks like GUPnP has ability to link in to Python : .. . .. . Which is apparently calling the function documented here : https : developer.gnome.org gupnp unstable GUPnPControlPoint.html .. . .. . Unfortunately the docs don t have any full examples of how to stream to a video receiver - specifically how does it initiate sending the video file over the network Update : This is the first step I use to detect the device : .. . Answer : About GUPnP on python : it s not extensively used and definitely not documented well enough but it should work . Here s a quick example of listing the available devices on wlan0 network using a GUPnP ControlPoint : .. . .. . The problem with streaming to a renderer is that you actually need two things : the control point that tells the renderer what you want to play and the mediaserver that serves the actual media when the renderer asks for it -- if these are integrated into one called the 2-box push model the mediaserver part is not quite as complex but it still needs to be done . One project you may be interested in is dleyna : It is based on GUPnP and tries to make this client-side work a little easier . See Jens article http : jensge.org 2013 04 dlna-client-side and documentation for PushHost https : 01.org dleyna documentation renderer-objects . However dleyna is a set of D-Bus services not a library so you ll have to decide if it fits your purposes . Alternatively you can of course have a normal mediaserver like rygel running and use a control point like gupnp-av-cp from gupnp-tools to select the media you want to play and the renderer that should play it . Comment : Oddly enough your example shows another computer on the network but never the Tronsmart device . Do I need to specify a protocol port first See my updated question code I use to see what local IP the device is . Comment : You don t need to know the IP address beforehand : one of the points of UPnP is that SSDP lets us discover devices . I really don t understand what your script tries to do.. . I suppose it might try to do the discovery part on its own That does not seem useful : it s already done by all UPnP stacks like GUPnP and getting it right is a lot of work the script is not even close to being complete . Comment : gupnp-universal-cp from gupnp-tools might be a good way to double-check if the device even is a standard UPnP device . That doesn t get you any closer to being able to do a 2-box push but at least you d see if it seems to be a UPnP device or not ." ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
dxva@video@135
dxva -- dxva directx video acceleration is a microsoft api specification for the microsoft windows and xbox 360 platforms that allows @placeholder decoding to be hardware accelerated .
{ "confidence": [ 61.47774124145508, 56.111324310302734, 53.82198715209961, 53.14690017700195, 49.63679122924805, 48.33039855957031, 47.24410629272461, 46.83830642700195, 45.542110443115234, 44.6805305480957, 44.6805305480957, 44.47014617919922, 44.47014617919922, 42.898094177246094, 42.69105529785156, 40.10755157470703, 40.08978271484375, 40.074951171875, 40.074951171875, 39.338626861572266, 39.19734191894531, 39.19734191894531, 38.80523681640625, 37.262332916259766, 37.060791015625, 36.55696105957031, 36.55696105957031, 36.12916564941406, 36.12916564941406, 35.734954833984375, 34.981040954589844, 33.452842712402344, 33.18273162841797, 32.954193115234375, 32.39753723144531, 31.774335861206055, 31.774335861206055, 31.774335861206055, 31.774335861206055, 31.774335861206055, 31.774335861206055, 31.774335861206055, 31.774335861206055, 31.451814651489258, 31.397716522216797, 31.292116165161133, 30.25566291809082, 30.218849182128906, 30.122220993041992, 29.24868392944336, 28.847265243530273, 27.19515037536621, 26.87097930908203, 26.23554039001465, 25.688987731933594, 25.32753562927246, 25.277585983276367, 25.081148147583008, 25.004047393798828, 24.57544708251953, 24.10552215576172, 23.99446678161621, 23.725317001342773, 23.515727996826172, 23.002532958984375, 22.795841217041016, 22.727237701416016, 22.390466690063477, 22.35384178161621, 22.041767120361328, 22.009464263916016, 21.913799285888672, 21.757570266723633, 21.548948287963867, 21.392770767211914, 21.262767791748047, 21.191818237304688, 21.161500930786133, 21.02517318725586, 20.993785858154297, 20.68663215637207, 20.68663215637207, 20.68663215637207, 20.45099449157715, 20.379802703857422, 20.120630264282227, 20.049135208129883, 19.960582733154297, 19.960582733154297, 19.877334594726562, 19.808029174804688, 19.80190086364746, 19.504655838012695, 19.344175338745117, 19.192974090576172, 19.192974090576172, 19.016813278198242, 18.614349365234375, 18.575815200805664, 18.32954978942871 ], "content": [ "DXVA-HD is a part of DXVA 2.0 family of APIs and covers hardware-accelerated video-processing .", "I am currently working on a project that involves using DXVA API and the FFmpeg framework to implement hardware-accelerated decoding of H264 video stream files .", "My guess is that it may be the possible incorrect use of : GetTickCount or may be it has to do with the DXVA hardware-accelerated decoding process .", "I m using DXVA video decoder .", ".. . .. . On top of these 2 techniques there is DXVA which allows you to offload video decoding to the GPU .", "I ve read this How do I use Hardware accelerated video H.264 decoding with directx-11 and windows-7", "From https : msdn.microsoft.com en-us library windows desktop dd797815 28v vs.85 29.aspx .. . .. . In the constraints you read that The maximum guaranteed resolution for DXVA acceleration is 1920 1088 pixels at higher resolutions decoding is done with DXVA if it is supported by the underlying hardware otherwise decoding is done with software .", "Now I want to change the code of the MF Grayscale example such that it would support DXVA video-processing and could use hardware-acceleration provided by the VideoProcessBlt method .", "The H264 MFT doesn t expose whether it is using DXVA for decoding or not .", "But what is DXVA-HD", "But what is DXVA-HD", "What I would like to achieve as a first step is to get the MFT up and running using DXVA video-processing or DXVA-HD .", "I would also appreciate if someone could direct me to sample code for an MFT using DXVA video-processing or DXVA-HD .", "If you re locked to Windows DXVA http : en.wikipedia.org wiki DirectX Video Acceleration is the way to go .", "Is there a way to share DXVA surfaces between IDirect3D9 devices", "Is there anyway to preprocess the frames at some stage with DXVA .", "That is to say I create an interface of IDirectXVideoDecoder then I call the dxva api BeginFrame Execute and EndFrame .", "My question is since there is a severe lack of samples for loading a h264 file and decoding it using DXVA I was wondering if there is a guide for how to layout the data to feed into DXVA to decode", "I m hoping that we could detect if DXVA has fallen back to SW decoding in which case we don t attempt to use DXVA at all and use instead a full software path .", "The beauty and the speed of DXVA basically assume that video is presented to user and not read back into RAM from video memory .", "Both however are made to hide all complexity and utilize DXVA decoding automatically behind the scenes .", "Both however are made to hide all complexity and utilize DXVA decoding automatically behind the scenes .", "So this leaves a gap with windows 7.. . Is it possible to get hardware accelerated video decoding", "Without the lib I can do nothing of DXVA so I want to know if WP8 support DXVA development or it s only supported by desktop version of D3D", "It s just recommended when doing video-processing using DXVA the EVR etc . .", "I was under impression that MPC-HC s DXVA support is not FFmpeg based .", ".. . .. . I also can t quite grasp how DXVA is supposed to work .", "The data I use is sent from another computer and the data can be directly filled to the buffers of dxva .", "The dxva checker software tells me the guid of intel core i5 is ModeH264 VLD NoFGT ClearVideo and that of intel atom is ModeH264 VLD NoFGT .", "FFmpeg on the other hand is likely not sure to use DXVA API directly bypassing DirectShow MF layer .", "I followed the instruction of DXVA on MSDN to try on windows-phone-8 but I cannot build my code since there is no Dxva2.lib in the WP8 SDK foloder .", "But there are not so much of DXVA enabled formats either : AVI is a container if it s AVI with H.264 video then decoder is the same as in case of MP4 H.264 .", "I ve been looking at DXVA and OpenMax but both seem rather focused on playback not deinterlace processing i.e .", "Point 1 : You will have to go via DirectX if you want to have hardware accelerated deinterlacing with good quality .", "DXVA is used or not used by decoder sometimes it is controlled from other places example https : msdn.microsoft.com en-us library windows desktop dd757755 .", "If you want a working sample to understand how to feed data into DXVA look here : MFNode http : sourceforge.net projects mfnode .", "I could at the receiver wrap it with mp4 headers and feed it into something that can play it using DXVA .", "I could find another way to accelerate it using DXVA with FFMPEG or something else that takes it in raw format .", "It uses IDirectXVideoDecoderService : : CreateVideoDecoder to create DXVA decoders so you can make a manual call to this function to see if it succeeds or not .", "Unfortunately I got stuck at sumbitting DXVA PictureParameters buffer : namely ID3D11VideoContext : : SubmitDecoderBuffers always returns E FAIL .", "From my understanding using DXVA in FFmpeg involves initializing the DirectXVideoDecoder and implementing several callback functions in AVCodecContext .", "This is mostly caused by the fact I don t know the difference between DXVA2 and DXVA-HD .", "Both DirectShow and Media Foundation offer stock decoders with DXVA support primarily for H.264 but not only .", "http : stackoverflow.com questions 19846770 how-do-i-use-hardware-accelerated-video-h-264-decoding-with-directx-11-and-windo as well as https : msdn.microsoft.com en-us library windows desktop hh162912 v vs.85 .aspx but neither has any guide on how to do the above .", "Point 2 : Apart from the options others have named DXVA and OpenMAX there is at least the Intel Media SDK for Quicksync accelerated deinterlace which has not been named and which offers a per frame deinterlacing via its VPP video preprocessing filters .", "If someone could answer my questions in bold correct my misinformation and point me in the direction of a proper example s DirectX + Media Foundation + DXVA-whatever I would be really grateful", "This doesn t rly add anything more than reconfirming that I probably need to use DXVA or OpenMax which I alrdy stated in my question .", "I have done some research on GPU decoding and constructed my code based on the hardware-acceleration implementation in VLC .", "Can t find any confirmation of this nor anywhere that says DXVA2 is redundant possibly that it s been superceeded by DXVA-HD", "With DirectShow it is like this : you feed H.264 wrapped into well known format that is payload data + media type describing H.264 you feed it into standard Windows 7 video decoder and video renderer which is capable of using DXVA wherever it is available .", "can I have render commands on the GPU shader pipeline while at the same time using DXVA and not have them affect each other in terms of performance", "which I don t have using DX11 .. . .. . Whenever I ve looked up DXVA documentation it doesn t reference DX11 was this removed in DX10 or 11", "I need to be able to decode such a stream in the client using Hardware Acceleration in Windows DXVA2 .", "For example with H264 encoding the Intel MFT which is a hardware encoder will get used instead of the standard Microsoft one when the system hardware supports it .", "I know that I should employ dxva2 with ffmpeg to have hardware-acceleration .", "I may also give up on this and just try NVidia and AMD s video decoding options I was just hoping for a generic directx solution originally .", "Be prepared that reading from video memory might appear unexpectedly slow and killing the whole idea of fast hardware assisted decoding for purposes other than presentation .", "I ve noticed that Nvidia supports high quality hardware accelerated de-interlacing through their PureVideo functionality .", "Still I would really benefit from using Hardware Acceleration probably through DXVA2 .. . .. . I am reading raw H264 video no container no audio .. . just raw video and no B-frames just I and P .", "I have searched for a simple example about how to decode H264 stream with hardware-acceleration using ffmpeg in Windows but I could not find any .", "Doesn t seem to be gpu-accelerated .", "Well I got an answer from Microsoft .", "I m on windows-7 using directx-11 .", "As a follow up I am currently using MediaFoundation with windows-7 8 and 10 with directx or just Windows SDK in the case of 8+ .. . .. . It supports far fewer formats or rather resolutions profile levels and currently I m not exactly sure if it s using hardware-acceleration or not.. .", "The easiest way to get the Media Foundation samples is to download and install Microsoft Windows SDK for Windows 7 and .NET Framework 4 from http : www.microsoft.com en-us download details.aspx id 8279 .", "I really want to try hardware-acceleration with DXVA2 to see if I can get better performance especially in slowest CPU .", "If you want real GPU acceleration no copy back you need to provide DirectX Surface through IDirect3DDeviceManager9 Directx9 IMFDXGIDeviceManager Directx11 .", "We know that the hardware doesn t support 4K decoding and in theory it should fall back to software .", "There s a gldeinterlace module that is GPU accelerated for example .", "Could it be possible to use ModeH264 VLD NoFGT on a intel video-card to decode a video", "I was under the impression it was also possible to set some creation parameter on the device in order to fully disable or enable DXVA - the application in question has to render a plethora of types ranging from H.264 MP4 s to WMV and AVI s which I don t know in advance", "Runtime DirectX version is 11 but native graphics driver support is for DirectX 9 .", "I am trying to test decoding a h264 h265 video with just a single iframe using DX11 and DXVA2 .", "But when I execute it on a intel ATOM processor with the intel GMA3000 series graphics hardware I can t get the right result : some video frames are decoded correctly whereas others are totally in mess .", "The Microsoft documentation is giving bits and pieces of information but I wasn t able to achieve a running MFT .", "However when I tried to comment out the displaying process and execute the code only decoding each frame the total decoding time surprisingly increased to 25 000ms for the same video taking 94 of the total time .", "However I m now at the point I have to pick a technique to go with and I couldn t be more lost.. . .. . .. . DirectShow .. . Media Foundation .. . Media Session Windows 8 .. . Media Engine Windows 8 .. . DXVA1 .. . DXVA2 .. . DXVA-HD .. . .. . DirectShow is obviously the oldest but still works pretty well also mostly because of the HUGE amount of codecs available .", "I m pretty new to DirectX so maybe I ve got this all wrong", "So far I know that I need to set the hardware-acceleration in the codec context by filling the hwaccel member through a call to ff find hwaccel .", "I alrdy use ffmpeg for de-interlacing but it s not gpu accelerated .", "You mean decoding", "I m only interested in decoding", "Sorry yes decoding .", "Note that the best I can do is a closest match because your query is unsatisfiable for the intersection of Windows Alpha Hardware Support .", "I am trying to output H.264 video in a Windows application .", "Plus as stated in post http : stackoverflow.com questions 34602561 failed-to-execute-0x80070057-when-decoding-video-via-ffmpeg-with-dxva2 dxva2 retrieve data call is very inefficient .", "Is there a way to detect that decoding is done in software", "All I m concerned is how easy it is to get codecs for it.. . Does Windows 8+ default media-player still have both DirectShow and MF render paths and swaps them on the fly or is Microsoft completely phasing out DirectShow", "Does Windows 8+ default media-player still have both DirectShow and MF render paths and swaps them on the fly or is Microsoft completely phasing out DirectShow", "Basically it does not offer much compared to DirectShow Microsoft did not develop it to cover the feature set of DirectShow - what is often expected from newer API does not offer useful developer tools .", "You will also need to provide the DirectX display mechanism .", "I am working on a project that needs to decode the h264 video using dxva2.0 .", "CAVEAT : The conclusions stated below are not based on the DirectX docs or any other official source but are my own observations and understandings .", "I believe to use MF I need the windows-8 SDK which now includes all the directx libs headers .", "If it find it impossible it falls back to software decoding .", "I think it is a correct behaviour if the decoding process is asynchronous .", "Thank you .. . .. . Edit : .. . .. . Hello I use this post to help me in my HW acceleration with FFMPEG Failed to execute : 0x80070057 when decoding video via ffmpeg with dxva2 http : stackoverflow.com questions 34602561 failed-to-execute-0x80070057-when-decoding-video-via-ffmpeg-with-dxva2 .. . .. . I decode the packet with .. . .. . and I m getting my decoded frame with .. . .. . I tried to convert it .. . .. . and copy the buffer to a Qimage .. . .. . I got my picture but with lot of artefact and after few seconds I got a segmentation-fault in dxva2 retrieve data call pCodecCtx pFrame gotPic packet .. . .. . Edit : Problem solved i didn t check if I got a picture before retreiving it .", "After having made a bunch of prototypes using different techniques I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests .", "there s an example on page 298 of this book http : www.docstoc.com docs 109589628 Developing-Microsoft-Media-Foundation-Applications that use a HTTP stream with Media Foundation .", "Point 3 : To go from DirectX to OpenGL on NVidia : http : developer.download.nvidia.com opengl specs WGL NV DX interop.txt" ] }
{ "confidence": [ 90.04499816894531, 88.21097564697266, 83.52787017822266, 82.49051666259766, 80.51099395751953, 78.52554321289062, 68.9732894897461, 68.80757141113281, 67.48682403564453, 66.27978515625, 65.259765625, 65.23451232910156, 58.16679382324219, 57.05232238769531, 56.156009674072266, 52.16535186767578, 48.4445686340332, 46.75846862792969, 46.4563102722168, 39.6197624206543 ], "content": [ "Question : I am currently working on a project that involves using DXVA API and the FFmpeg framework to implement hardware-accelerated decoding of H264 video stream files . I have done some research on GPU decoding and constructed my code based on the hardware-acceleration implementation in VLC . From my understanding using DXVA in FFmpeg involves initializing the DirectXVideoDecoder and implementing several callback functions in AVCodecContext . The decoding process is done with the FFmpeg function avcodec decode video2 and each frame is parsed with av read frame . The decoded frame is stored in the graphics memory and displayed using Direct3D . I tried to time each process with : GetTickCount function and noticed that the execution-time of the program for a 1550 frame video is 35000ms with the display function taking 90 of the time and decoding function taking 6 of the time . However when I tried to comment out the displaying process and execute the code only decoding each frame the total decoding time surprisingly increased to 25 000ms for the same video taking 94 of the total time . Here is the code for the decoding function : .. . .. . What could be the cause of this strange behavior My guess is that it may be the possible incorrect use of : GetTickCount or may be it has to do with the DXVA hardware-accelerated decoding process . Sorry for the long post . Any input and suggestion is appreciated . Thanks in advance . .. . Answer : I think it is a correct behaviour if the decoding process is asynchronous . I know Ffmpeg uses threads but it depends on compilation flags or decoding setup . If the display process is very long the decoder decodes frames while the display process executes . So when you ask for rendering some frames are already decoded and it s fast . If you avoid the display process the decoding process takes all the processor time . Normally the display process uses some sort of timestamp that lets enough time to the decoding process . PS : from what i know about Ffmpeg and Dxva2 you also need to provide the directx texture .", "Question : I am trying to test decoding a h264 h265 video with just a single iframe using DX11 and DXVA2 . This is on windows-7 so I probably have to interop between 2 d3d11 devices one with 11.1 feature set and the other with 9.3 . My question is since there is a severe lack of samples for loading a h264 file and decoding it using DXVA I was wondering if there is a guide for how to layout the data to feed into DXVA to decode I ve read this How do I use Hardware accelerated video H.264 decoding with directx-11 and windows-7 http : stackoverflow.com questions 19846770 how-do-i-use-hardware-accelerated-video-h-264-decoding-with-directx-11-and-windo as well as https : msdn.microsoft.com en-us library windows desktop hh162912 v vs.85 .aspx but neither has any guide on how to do the above . Thanks .. . Answer : If you want a working sample to understand how to feed data into DXVA look here : MFNode http : sourceforge.net projects mfnode . Under MFTDxva2Decoder you will see how to feed data . It is for mpeg1 2 file-format but the same apply to H264 with shades of course . Comment : This is way overdue but thanks for the response . Do you know if DXVA2 runs parallel to the rendering pipeline i.e . can I have render commands on the GPU shader pipeline while at the same time using DXVA and not have them affect each other in terms of performance", "Question : From https : msdn.microsoft.com en-us library windows desktop dd797815 28v vs.85 29.aspx .. . .. . In the constraints you read that The maximum guaranteed resolution for DXVA acceleration is 1920 1088 pixels at higher resolutions decoding is done with DXVA if it is supported by the underlying hardware otherwise decoding is done with software . Is there a way to detect that decoding is done in software We have issues with AMD graphic controllers when attempting to decode 4K H264 video . We know that the hardware doesn t support 4K decoding and in theory it should fall back to software . However we found that regardless of what it s supposed to do we gets lots of corrupted or black frames . I m hoping that we could detect if DXVA has fallen back to SW decoding in which case we don t attempt to use DXVA at all and use instead a full software path . Thank you .. . Answer : The H264 MFT doesn t expose whether it is using DXVA for decoding or not . It uses IDirectXVideoDecoderService : : CreateVideoDecoder to create DXVA decoders so you can make a manual call to this function to see if it succeeds or not . I added a full explanation and apitrace log for this in Mozilla bug 1193547 https : bugzilla.mozilla.org show bug.cgi id 1193547 c1", "Question : I ve been researching all day and not gotten very far . I m on windows-7 using directx-11 . My final output is to be a frame of video onto a DX11 texture I want to decode some very large H.264 video files and the CPU using libav doesn t cut it . I ve looked at the hwaccel capabilities of libav using DXVA2 but hit a road block when I need to create a IDirectXVideoDecoder which can only be created with a D3D9 interface . which I don t have using DX11 .. . .. . Whenever I ve looked up DXVA documentation it doesn t reference DX11 was this removed in DX10 or 11 Can t find any confirmation of this nor anywhere that says DXVA2 is redundant possibly that it s been superceeded by DXVA-HD Then I ve looked into the media foundation SDK as that looks like what I m supposed to use for DX11.. . But none of the types exist in my headers The docs say to just include but this yields nothing . They also specify a minimum of windows-8 to use it . I believe to use MF I need the windows-8 SDK which now includes all the directx libs headers . So this leaves a gap with windows 7.. . Is it possible to get hardware accelerated video decoding and if so which API am I supposed to be using .. . Answer : As a follow up I am currently using MediaFoundation with windows-7 8 and 10 with directx or just Windows SDK in the case of 8+ .. . .. . It supports far fewer formats or rather resolutions profile levels and currently I m not exactly sure if it s using hardware-acceleration or not.. . But this API is compatible which was the original query", "Question : I m tasked with revising an application which uses DirectShow for video rendering . The old application works fine but it s starting to show age . As I have a gaming background I figured I should just approach this as such . After having made a bunch of prototypes using different techniques I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests . However I m now at the point I have to pick a technique to go with and I couldn t be more lost.. . .. . .. . DirectShow .. . Media Foundation .. . Media Session Windows 8 .. . Media Engine Windows 8 .. . DXVA1 .. . DXVA2 .. . DXVA-HD .. . .. . DirectShow is obviously the oldest but still works pretty well also mostly because of the HUGE amount of codecs available . Media Foundation has been introduced with Windows Vista and had something called Media Session up til Windows 8 after which they introduced the Media Engine . If I m correct codecs are called MFTs Are there actually sites that have these available much like free-codecs.com .. . .. . On top of these 2 techniques there is DXVA which allows you to offload video decoding to the GPU . Currently I ran into 3 different types . DXVA1 being an implementation that has been around since XP DXVA2 being the newer API . But what is DXVA-HD Is it newer than DXVA2 or is it an equivalent name .. . .. . I really want to move towards Media Foundation the out-of-the-box codecs work really well with the formats the client wants to use . All I m concerned is how easy it is to get codecs for it.. . Does Windows 8+ default media-player still have both DirectShow and MF render paths and swaps them on the fly or is Microsoft completely phasing out DirectShow .. . .. . I also can t quite grasp how DXVA is supposed to work . Given I want to basically render videos inside a game it would only make sense to make all rendering actually happen on the GPU and keep application logic on the CPU but I can t really find any good examples on how to utilize it using Media Foundation . This is mostly caused by the fact I don t know the difference between DXVA2 and DXVA-HD . Windows 7 SDK came with samples for all 3 implementations.. . If someone could answer my questions in bold correct my misinformation and point me in the direction of a proper example s DirectX + Media Foundation + DXVA-whatever I would be really grateful It could be as simple as combine these 3 examples of the Windows 7 SDK to get what you want . The target of the whole assignment is to get the application in top-notch form again and I want to absolutely sure I pick the techniques that will last for the next decade like DirectShow already has : P .. . Answer : If I m correct codecs are called MFTs Are there actually sites that have these available much like free-codecs.com Codecs are typically software items whcih either decompress from compressed format to uncompressed decoders or vice versa encoders . Neither of the APIs operate with exactly codecs and instead define a general interface for a component with input and output e.g . filter in DirectShow DirectX Media Object DMO or its evolution - Media Foundnation Transform MFT . MFT is a base component of Media Foundation : encoders decoders effects scalers video capture devices - all have MFTs inside and higher level API is built on top of that . Due to limited interest in Media Foundation overall third party MFTs are a rare thing . While you can find almost anything in DirectShow filter form factor it is not the case with Media Foundation and MFTs . But what is DXVA-HD Is it newer than DXVA2 or is it an equivalent name DXVA-HD is a part of DXVA 2.0 family of APIs and covers hardware-accelerated video-processing . Available as public low-level interface it is also integrated in DirectShow and Media Foundation stock components . Does Windows 8+ default media-player still have both DirectShow and MF render paths and swaps them on the fly or is Microsoft completely phasing out DirectShow Yes WMP 12 still has both . Windows 10 Movies TV player is MF only . Given I want to basically render videos inside a game it would only make sense to make all rendering actually happen on the GPU and keep application logic on the CPU but I can t really find any good examples on how to utilize it using Media Foundation . Both DirectShow and Media Foundation offer stock decoders with DXVA support primarily for H.264 but not only . I would say that DirectShow implementation is rather inflexible and intended for use with EVR . Media Foundation s is more flexibly implemented and can be used outside of MF pipeline as an MFT . Both however are made to hide all complexity and utilize DXVA decoding automatically behind the scenes . .. . and I want to absolutely sure I pick the techniques that will last for the next decade like DirectShow already has .. . .. . DirectShow is still here as a legacy API with much more generous offering in samples code public information documentation third party extensibility . Media Foundation is an intended replacement drawing very limited interest to it . Basically it does not offer much compared to DirectShow Microsoft did not develop it to cover the feature set of DirectShow - what is often expected from newer API does not offer useful developer tools . It looks like it was supposed that MF s being a newer thing should sell it on its own but eventually it did not work out : .. . .. . .. . The miracle of DirectShow is that even though it was written in 1995 that original code still supports the many wild and varied multimedia formats that have been developed since . The latest baseclasses update I m aware of is from 2009 in the Windows 7 SDK but even that has only minor modifications from the original release . https : social.msdn.microsoft.com Forums windowsdesktop en-US 27a4dce3-49a1-4d94-a7c1-7a989c8d389f whats-the-best-base-for-a-custom-ds-video-renderer-implementation forum windowsdirectshowdevelopment .. . .. . .. . .. . .. . But remember even 7 years ago DirectShow was already 15 years old . The baseclasses were released in source form from the start . They ve had more than 2 decades of attention paid by programmers who care . The problems were ironed out a long time ago . .. . .. . .. . .. . Now having said all that it s true that the folks in Redmond consider DirectShow to be a dead technology . They ve moved on to Media Foundation for reasons that utterly escape me . I have YET to find a problem that Media Foundation solves better than DirectShow . Its inherent limitations mean that there are problems it simply cannot solve . I will never understand why they chose to start over instead of patching whatever they didn t like in DShow . The fundamental concepts are absolutely identical although the vocabulary is different . It s just a waste of resources . Comment : At first thank you for this extensive reply really helpful Both however are made to hide all complexity and utilize DXVA decoding automatically behind the scenes . Do I still have to tell MediaEngine or whatever to actually use it or is it automagically happening when the decoder supports it if so aout of curiousity how can I tell it to disable it - I have a hard time finding that As for your final remark : Do you recommend sticking with DirectShow and just giving that the render-to-texture treatment or still move over the MF Comment : 1 it s automagic with DirectShow you disable it on decoder using ICodecAPI as documented here https : msdn.microsoft.com en-us library windows desktop dd390679 and with Media Foundation there as similar MFT attributes documented there https : msdn.microsoft.com en-us library windows desktop dd797815 2 to render H.264 into texture with the help of hardware decoder I d take Media Foundation . Comment : I was under the impression it was also possible to set some creation parameter on the device in order to fully disable or enable DXVA - the application in question has to render a plethora of types ranging from H.264 MP4 s to WMV and AVI s which I don t know in advance Comment : DXVA is used or not used by decoder sometimes it is controlled from other places example https : msdn.microsoft.com en-us library windows desktop dd757755 . There is no global setting for everything . But there are not so much of DXVA enabled formats either : AVI is a container if it s AVI with H.264 video then decoder is the same as in case of MP4 H.264 . Comment : Gotcha thank you for clearing that up :", "Question : From https : msdn.microsoft.com en-us library windows desktop dd797815 28v vs.85 29.aspx .. . .. . In the constraints you read that The maximum guaranteed resolution for DXVA acceleration is 1920 1088 pixels at higher resolutions decoding is done with DXVA if it is supported by the underlying hardware otherwise decoding is done with software . Is there a way to detect that decoding is done in software We have issues with AMD graphic controllers when attempting to decode 4K H264 video . We know that the hardware doesn t support 4K decoding and in theory it should fall back to software . However we found that regardless of what it s supposed to do we gets lots of corrupted or black frames . I m hoping that we could detect if DXVA has fallen back to SW decoding in which case we don t attempt to use DXVA at all and use instead a full software path . Thank you .. . Answer : Have you tried running your application via mftrace included in the Windows SDK The mftrace output is very verbose and will normally let you know which MFT is in use for the encoding . You may be able to spot a different MFT in use when the hardware encoding is available . For example with H264 encoding the Intel MFT which is a hardware encoder will get used instead of the standard Microsoft one when the system hardware supports it . Comment : You mean decoding I m only interested in decoding Comment : Sorry yes decoding . Although it doesn t matter since the mftrace output will spit out the MFT class ID it is using no matter what it s being used for encoding decoding re-sampling etc . What you re interested in is the MFT class that gets used when the decoding topology is created . Comment : But how can I use that information in my own code . I can t use mftrace obviously.. . Comment : If you mean how can you determine which decoder MFT has been used by MF under the hood from within your own code I don t know . It is possible to construct your MF topology manually and specify exactly which decoder MFT to use but that could end up being fragile if the decoder is hardware specific .", "Question : I have an application that sends raw h264 NALUs as generated from encoding on the fly using x264 x264 encoder encode . I am getting them through plain TCP so I am not missing any frames . I need to be able to decode such a stream in the client using Hardware Acceleration in Windows DXVA2 . I have been struggling to find a way to get this to work using FFMPEG . Perhaps it may be easier to try Media Foundation or DirectShow but they won t take raw H264 . I either need to : .. . .. . 1 . Change the code from the server application to give back an mp4 stream . I am not that experienced with x264 . I was able to get raw H264 by calling x264 encoder encode by following the answer to this question : How does one encode a series of images into H264 using the x264 C API http : stackoverflow.com questions 2940671 how-does-one-encode-a-series-of-images-into-h264-using-the-x264-c-api How can I go from this to something that is wrapped in MP4 while still being able to stream it in realtime .. . .. . 2 . I could at the receiver wrap it with mp4 headers and feed it into something that can play it using DXVA . I wouldn t know how to do this .. . .. . 3 . I could find another way to accelerate it using DXVA with FFMPEG or something else that takes it in raw format . An important restriction is that I need to be able to pre-process each decoded frame before displaying it . Any solution that does decoding and displaying in a single step would not work for me .. . .. . I would be fine with either solution Comment : The beauty and the speed of DXVA basically assume that video is presented to user and not read back into RAM from video memory . Be prepared that reading from video memory might appear unexpectedly slow and killing the whole idea of fast hardware assisted decoding for purposes other than presentation . Comment : Yeah.. . I think I hace to accept that fact now . Is there anyway to preprocess the frames at some stage with DXVA . Perhaps writing a media foundation filter or something like that .. . Answer : I believe you should be able to use H.264 packets off the wire with Media Foundation . there s an example on page 298 of this book http : www.docstoc.com docs 109589628 Developing-Microsoft-Media-Foundation-Applications that use a HTTP stream with Media Foundation . I m only learning Media Foundation myself and am trying to do a similar thing to you in my case I want to use H.264 payloads from an RTP packet and from my understanding that will require a custom IMFSourceReader http : msdn.microsoft.com en-us library windows desktop dd374655 28v vs.85 29.aspx . Accessing the decoded frames should also be possible from what I ve read since there seems to be complete flexibility in chaining components together into topologies . Comment : thanks for the link . that book is pretty good . I am pretty sure if i build a media foundation transform I will be able to do what I want . I haven t done yet but it seems promising", "Question : The aim is to implement a custom MFT for video-processing and synchronization to an external application . The details of are not important . What I would like to achieve as a first step is to get the MFT up and running using DXVA video-processing or DXVA-HD . I wasn t able to do so . Here s what I did : I started building a topology with a source input node my webcam an MFT the MFT Grayscale example and the EVR . I included this in a small application . The topology worked and I could see the monochrome stream from the camera . Now I want to change the code of the MF Grayscale example such that it would support DXVA video-processing and could use hardware-acceleration provided by the VideoProcessBlt method . The Microsoft documentation is giving bits and pieces of information but I wasn t able to achieve a running MFT . What I did so far : .. . .. . In the method GetAttributes I indicate that this MFT is MF SA D3D AWARE . In method ProcessMessage I process the message MFT MESSAGE SET D3D MANAGER to get a device handle a IDirect3DDeviceManager9 and a IDirectXVideoProcessorService . In the SetInputType method I use the methods described here https : msdn.microsoft.com en-us library windows desktop ms694235 v vs.85 .aspx to get a DXVA2 VideoDesc structure and follow this code https : msdn.microsoft.com en-us library windows desktop cc307964 v vs.85 .aspx to create a video-processing device . Additionally I create the surfaces using IDirectXVideoProcessorService- CreateSurface .. . In the method GetOutputStreamInfo the dwFlags variable looks like this : .. . .. . pStreamInfo- dwFlags MFT OUTPUT STREAM PROVIDES SAMPLES MFT OUTPUT STREAM WHOLE SAMPLES MFT OUTPUT STREAM SINGLE SAMPLE PER BUFFER MFT OUTPUT STREAM FIXED SAMPLE SIZE .. . .. . Everything seems to be ok until here . Now my questions I m sorry that I cannot be more specific : .. . .. . Do I have to adapt the GetOutputAvailableType SetOutputType methods In the ProcessInput method I get the IMFSample and extract an IMFMediaBuffer . The buffer is not managing a IDirect3DSurface9 according to my function-calls . Do I have to memcpy the data of the buffer to a Direct3D surface In the ProcessOutput method to make a starting point I want to forward the incoming frame to the output . VideoProcessBlt should make a 1 : 1 blit from input to output . The documentation says : .. . .. . Get an available surface that is not currently in use . How can I determine whether a surface is in use How am I supposed to output the surface Should I use MFCreateVideoSampleFromSurface or MFCreateDXSurfaceBuffer Unfortunately I am really lost and unable to make any progress using the documentation . The situation now is that I do not see any video output the window has its default windows background-color and the webcam stops to capture frames after the first frame the LED switches off . Besides that nothing happens - the application just continues to run without showing anything . I hope that somebody can help me . I would also appreciate if someone could direct me to sample code for an MFT using DXVA video-processing or DXVA-HD . I was not able to find anything.. . Thanks .. . Answer : The easiest way to get the Media Foundation samples is to download and install Microsoft Windows SDK for Windows 7 and .NET Framework 4 from http : www.microsoft.com en-us download details.aspx id 8279 . Install the Samples and then locate them at v7.1 Samples Multimedia MediaFoundation . The Media Foundation samples are supposedly on Microsoft s Code Gallery site but I ve been unable to locate them there . The samples are no longer included with the Windows SDK releases . The samples that are directly relevant to your question are probably Decoder DXVA HD DXVA2 VideoProc EVRPresenter MPEG1Source and topoedit . I can t provide anymore help as I m currently struggling with some of the same issues . Comment : Please don t answer questions asking for off-site recommendations or links . You ve presented a solution to this without using a link which is good . Such requests are off-topic and the question will either be closed or that part will be edited out .", "Question : null .. . Answer : I am working on a project that needs to decode the h264 video using dxva2.0 . I write the code according to the documentation http : msdn.microsoft.com en-us library windows desktop aa965245 28v vs.85 29.aspx . That is to say I create an interface of IDirectXVideoDecoder then I call the dxva api BeginFrame Execute and EndFrame . Then the problem comes out . when I execute my program on a Intel Core i5 CPU the GPU is the Intel HD graphics inside the CPU everything is OK . But when I execute it on a intel ATOM processor with the intel GMA3000 series graphics hardware I can t get the right result : some video frames are decoded correctly whereas others are totally in mess . The data I use is sent from another computer and the data can be directly filled to the buffers of dxva . In h264 the buffers are DXVA2 PictureParameter DXVA2 Bitstream DXVA2 InverseQuantization and DXVA2 SliceControl . So it is not necessary to use the ffmpeg or ffdshow and the ffdshow is gpl I can t use it . The dxva checker software tells me the guid of intel core i5 is ModeH264 VLD NoFGT ClearVideo and that of intel atom is ModeH264 VLD NoFGT . I want to know the differences between the two guids . Could it be possible to use ModeH264 VLD NoFGT on a intel video-card to decode a video", "Question : I have an application that does video-processing such as color transforms scaling and translations using OpenGL . I m mostly working with BGRA 1xGL BGRA or YUVA 4xGL R video i.e . including alpha . Now I would also like to do some high quality deinterlacing . I ve noticed that Nvidia supports high quality hardware accelerated de-interlacing through their PureVideo functionality . Basically what i d like to do is to send in a interlaced OpenGL texture with x number of color channels and get out two progressive textures . My question is how do I access this functionality easiest and most efficiently possibly in interop with OpenGL I ve been looking at DXVA and OpenMax but both seem rather focused on playback not deinterlace processing i.e . non-relevant options such as frame-rate needs to be set etc.. . and no-alpha formats.. . Comment : What defines high quality deinterlacing If you just want to take an image and split it into two via alternating pixel rows you can do that pretty easily in a shader but I m not a video expert and I m not sure if that s what you mean . Comment : I mean something along the lines of spatial-temporal deinterlacing . What you are suggesting is horrible quality . Comment : You can look here guru.multimedia.cx deinterlacing-filters http : guru.multimedia.cx deinterlacing-filters to see the difference between high and low quality deinterlacing . Comment : Just out of interest things like deinterlace and so on are trivial with gStreamer . Perhaps you should think about 3rd party libraries for this kind of stuff than doing it yourself Comment : I alrdy use ffmpeg for de-interlacing but it s not gpu accelerated . .. . Answer : Point 1 : You will have to go via DirectX if you want to have hardware accelerated deinterlacing with good quality . Point 2 : Apart from the options others have named DXVA and OpenMAX there is at least the Intel Media SDK for Quicksync accelerated deinterlace which has not been named and which offers a per frame deinterlacing via its VPP video preprocessing filters . Point 3 : To go from DirectX to OpenGL on NVidia : http : developer.download.nvidia.com opengl specs WGL NV DX interop.txt", "Question : null .. . Answer : I am trying to output H.264 video in a Windows application . I am moderately familiar with FFMPEG and I have been successful at getting it to play H.264 in a SDL window without a problem . Still I would really benefit from using Hardware Acceleration probably through DXVA2 .. . .. . I am reading raw H264 video no container no audio .. . just raw video and no B-frames just I and P . Also I know that all the systems that will use this applications have Nvidia GPUs supporting at least VP3 . Given that set of assumptions I was hoping to cut some corners make it simple instead of general just have it working for my particular scenario . So far I know that I need to set the hardware-acceleration in the codec context by filling the hwaccel member through a call to ff find hwaccel . My plan is to look at Media Player Classic Home Cinema which does a pretty good job at supporting DXVA2 using FFMPEG when decoding H.264 . However the code is quite large and I am not exactly sure where to look . I can find the place where ff find hwaccel is called in h264.c but I was wondering where else should I be looking at . More specifically I would like to know what is the minimum set of steps that I have to code to get DXVA2 through FFMPEG working EDIT : I am open to look at VLC or anything else if someone knows where I can find the important piece of code that does the trick . I just mentioned MPC-HC because I think it is the easiest to get to compile in Windows . Comment : I was under impression that MPC-HC s DXVA support is not FFmpeg based . Instead it would take advantage of DXVA2 support on DirectShow video renderer . FFmpeg on the other hand is likely not sure to use DXVA API directly bypassing DirectShow MF layer . Comment : My impression is that it supports both . The source code has a call to the accelerator interface of ffmpeg in the h264 handling code . Now my small understanding on this is that ffmpeg does not do all the job . You still have to do something more to get it to work . Would it be easier with DirectShow does it support raw h264 Comment : With DirectShow it is like this : you feed H.264 wrapped into well known format that is payload data + media type describing H.264 you feed it into standard Windows 7 video decoder and video renderer which is capable of using DXVA wherever it is available . If it find it impossible it falls back to software decoding . You don t have a lot of flexibility to control this process however if the requirements are met it happens transparently and without need for you to care . In Vista and earlier there is no standard decoder of this kind but the one from MPC-HC might work out fine . Comment : So just raw h264 wouldn t work I get the sps + pps . I am not that familiar with the container formats but if that ends up being the easiest way I will give it a try . Thanks Comment : It is almost raw but you cannot just throw bytes in and expect them to be converted into picture automatically . The essential thing is to associate a proper media type msdn.microsoft.com en-us library windows desktop http : msdn.microsoft.com en-us library windows desktop dd757808 28v vs.85 29.aspx H.264 Video Types . Then you will throw portions of the stream individual H.264 NAL Units into pipeline and things are going to start rolling .", "Question : The aim is to implement a custom MFT for video-processing and synchronization to an external application . The details of are not important . What I would like to achieve as a first step is to get the MFT up and running using DXVA video-processing or DXVA-HD . I wasn t able to do so . Here s what I did : I started building a topology with a source input node my webcam an MFT the MFT Grayscale example and the EVR . I included this in a small application . The topology worked and I could see the monochrome stream from the camera . Now I want to change the code of the MF Grayscale example such that it would support DXVA video-processing and could use hardware-acceleration provided by the VideoProcessBlt method . The Microsoft documentation is giving bits and pieces of information but I wasn t able to achieve a running MFT . What I did so far : .. . .. . In the method GetAttributes I indicate that this MFT is MF SA D3D AWARE . In method ProcessMessage I process the message MFT MESSAGE SET D3D MANAGER to get a device handle a IDirect3DDeviceManager9 and a IDirectXVideoProcessorService . In the SetInputType method I use the methods described here https : msdn.microsoft.com en-us library windows desktop ms694235 v vs.85 .aspx to get a DXVA2 VideoDesc structure and follow this code https : msdn.microsoft.com en-us library windows desktop cc307964 v vs.85 .aspx to create a video-processing device . Additionally I create the surfaces using IDirectXVideoProcessorService- CreateSurface .. . In the method GetOutputStreamInfo the dwFlags variable looks like this : .. . .. . pStreamInfo- dwFlags MFT OUTPUT STREAM PROVIDES SAMPLES MFT OUTPUT STREAM WHOLE SAMPLES MFT OUTPUT STREAM SINGLE SAMPLE PER BUFFER MFT OUTPUT STREAM FIXED SAMPLE SIZE .. . .. . Everything seems to be ok until here . Now my questions I m sorry that I cannot be more specific : .. . .. . Do I have to adapt the GetOutputAvailableType SetOutputType methods In the ProcessInput method I get the IMFSample and extract an IMFMediaBuffer . The buffer is not managing a IDirect3DSurface9 according to my function-calls . Do I have to memcpy the data of the buffer to a Direct3D surface In the ProcessOutput method to make a starting point I want to forward the incoming frame to the output . VideoProcessBlt should make a 1 : 1 blit from input to output . The documentation says : .. . .. . Get an available surface that is not currently in use . How can I determine whether a surface is in use How am I supposed to output the surface Should I use MFCreateVideoSampleFromSurface or MFCreateDXSurfaceBuffer Unfortunately I am really lost and unable to make any progress using the documentation . The situation now is that I do not see any video output the window has its default windows background-color and the webcam stops to capture frames after the first frame the LED switches off . Besides that nothing happens - the application just continues to run without showing anything . I hope that somebody can help me . I would also appreciate if someone could direct me to sample code for an MFT using DXVA video-processing or DXVA-HD . I was not able to find anything.. . Thanks .. . Answer : Do I have to adapt the GetOutputAvailableType SetOutputType methods Yes . You need to provide attributes as usual with no special requirements . Do I have to memcpy the data of the buffer to a Direct3D surface Yes . You need to care about IDirect3DDeviceManager9 and LockDevice when doing this because EVR could use the surface at the same time . How can I determine whether a surface is in use You have to care especially when the surface is free for use . Your MFT needs to implement IMFAsyncCallback interface . After you use MFCreateVideoSampleFromSurface you query for the IMFTrackedSample interface and call SetAllocator . The Invoke method will tell you when the surface is free . How am I supposed to output the surface Should I use MFCreateVideoSampleFromSurface or MFCreateDXSurfaceBuffer Because you are using IDirectXVideoProcessorService- CreateSurface the MFCreateVideoSampleFromSurface is the right place . You output the surface through the IMFSample . Check this project : .. . .. . MFNode http : sourceforge.net projects mfnode .. . .. . Under MFTDxva2Decoder and MFSkDxva2Renderer you will find some dxva2 processing .", "Question : I have an application that does video-processing such as color transforms scaling and translations using OpenGL . I m mostly working with BGRA 1xGL BGRA or YUVA 4xGL R video i.e . including alpha . Now I would also like to do some high quality deinterlacing . I ve noticed that Nvidia supports high quality hardware accelerated de-interlacing through their PureVideo functionality . Basically what i d like to do is to send in a interlaced OpenGL texture with x number of color channels and get out two progressive textures . My question is how do I access this functionality easiest and most efficiently possibly in interop with OpenGL I ve been looking at DXVA and OpenMax but both seem rather focused on playback not deinterlace processing i.e . non-relevant options such as frame-rate needs to be set etc.. . and no-alpha formats.. . Comment : What defines high quality deinterlacing If you just want to take an image and split it into two via alternating pixel rows you can do that pretty easily in a shader but I m not a video expert and I m not sure if that s what you mean . Comment : I mean something along the lines of spatial-temporal deinterlacing . What you are suggesting is horrible quality . Comment : You can look here guru.multimedia.cx deinterlacing-filters http : guru.multimedia.cx deinterlacing-filters to see the difference between high and low quality deinterlacing . Comment : Just out of interest things like deinterlace and so on are trivial with gStreamer . Perhaps you should think about 3rd party libraries for this kind of stuff than doing it yourself Comment : I alrdy use ffmpeg for de-interlacing but it s not gpu accelerated . .. . Answer : Based on your clarified requirements it looks like VDPAU http : en.wikipedia.org wiki VDPAU is the closest match to what you desire . Complication : it s for Unix-based operating systems not Windows . If you re locked to Windows DXVA http : en.wikipedia.org wiki DirectX Video Acceleration is the way to go . If you re operating in a cross-platform environment OpenMAX http : en.wikipedia.org wiki OpenMAX is the way to go . And if you re open to suggestions beyond those you ve already given in your question the rest of these http : en.wikipedia.org wiki DirectX Video Acceleration See also are worth pursuing . Comment : This doesn t rly add anything more than reconfirming that I probably need to use DXVA or OpenMax which I alrdy stated in my question . Though neither of these seem to have a simple way of doing what I want nor do they support any formats with alpha . Comment : @ronag Actually it does . Note that the best I can do is a closest match because your query is unsatisfiable for the intersection of Windows Alpha Hardware Support . The easiest of these restrictions to relax in a development-environment Windows gives you a tool that hadn t been brought to the discussion previously . VDPAU is supported by Nvidia and appears to have alpha support http : http.download.nvidia.com XFree86 vdpau doxygen html group misc types.html . I don t believe your query is otherwise satisfiable without rolling your own solution or extending existing ones . Comment : Unfortunately windows is a requirement . Though it is interesting that VDPAU has alpha support . Comment : @ronag Out of curiosity is Nvidia support also a requirement ATI and Intel have competing solutions . Comment : @MrGomesz : Unfortunately yes most end-users have Nvidia cards .", "Question : null .. . Answer : I followed the instruction of DXVA on MSDN to try on windows-phone-8 but I cannot build my code since there is no Dxva2.lib in the WP8 SDK foloder . Without the lib I can do nothing of DXVA so I want to know if WP8 support DXVA development or it s only supported by desktop version of D3D", "Question : I ve been researching all day and not gotten very far . I m on windows-7 using directx-11 . My final output is to be a frame of video onto a DX11 texture I want to decode some very large H.264 video files and the CPU using libav doesn t cut it . I ve looked at the hwaccel capabilities of libav using DXVA2 but hit a road block when I need to create a IDirectXVideoDecoder which can only be created with a D3D9 interface . which I don t have using DX11 .. . .. . Whenever I ve looked up DXVA documentation it doesn t reference DX11 was this removed in DX10 or 11 Can t find any confirmation of this nor anywhere that says DXVA2 is redundant possibly that it s been superceeded by DXVA-HD Then I ve looked into the media foundation SDK as that looks like what I m supposed to use for DX11.. . But none of the types exist in my headers The docs say to just include but this yields nothing . They also specify a minimum of windows-8 to use it . I believe to use MF I need the windows-8 SDK which now includes all the directx libs headers . So this leaves a gap with windows 7.. . Is it possible to get hardware accelerated video decoding and if so which API am I supposed to be using .. . Answer : D3D11 features a video api which is basically DXVA2 with a slightly altered interface above . You need a good understand of h.264 bitstreams to proceed really . i.e . make sure you have a h.264 parser at hand to extract fields of the SPS and PPS structures and all slices of an encoded frame . 1 Obtain ID3D11VideoDevice instance from your ID3D11Device and ID3D11VideoContext from your immediate D3D11 device context NOTE : On Win7 you have to create your device with feature level 9 3 to get video support In Win8 it just works .. . .. . 2 Create a ID3D11VideoDecoder instance for h.264 Use ID3D11VideoDevice : : GetVideoDecoderProfileCount GetVideoDecoderProfile CheckVideoDecodeRFormat.. . to iterate through all supported profiles and find one with GUID D3D11 DECODER PROFILE H264 VLD NOFGT for h264 without filmgrain . As OutputFormat your best bet is DXGI FORMAT NV12 . 3 Decoding of the individual frames see here : http : msdn.microsoft.com en-us library windows desktop hh162912 v vs.85 .aspx .. . .. . ID3D11VideoContext : : DecoderBeginFrame decoder outputView - decoded frame texture .. . Fill buffers : .. . D3D11 VIDEO DECODER BUFFER PICTURE PARAMETERS .. . D3D11 VIDEO DECODER BUFFER INVERSE QUANTIZATION MATRIX .. . D3D11 VIDEO DECODER BUFFER BITSTREAM .. . D3D11 VIDEO DECODER BUFFER SLICE CONTROL .. . .. . The buffers are filled with the corresponding DXVA2 structures see dxva2.h The full DXVA2 spec is here you ll need it to map the h.264 sps pps fields accordingly . http : msdn.microsoft.com en-us library windows desktop cc307941 v vs.85 .aspx https : software.intel.com sites default files m b 4 7 DXVA H264.pdf .. . .. . ID3D11VideoContext : : SubmitBuffers to commit all filled buffers .. . ID3D11VideoContext : : DecoderEndFrame to finish the current frame .. . .. . 3 D3D11 VIDEO DECODER BUFFER PICTURE PARAMETERS buffer also contains info on all references frames surface - you need to manage them yourself i.e . make sure the surfaces textures are available to the GPU It s quite complicated check ffmpeg and Media Player Classic they both have DXVA2 though not via DX11 support . 4 Convert from NV12 to RGB A some GPUs D3D11 feature levels allow to use NV12 as shader input some don t . In case it s not possible to use NV12 directly have a look at the D3D11VideoProcessor interfaces which feature NV12 YUV420- RGB conversion for all GPUs with D3D11 support . The conversion could be performed in code like this : Comment : Thanks a comment on the page in 3 suggests it s win8 only which is what I believed . Now at least I know what I should could be using I ll try it and see if it runs on win7 . I ve already written a human-readable h264 parser for when I was trying to make an OpenCL decoder so that s the first bit done : As mentioned in OP ffmpeg is not an option as it has no DX11 support . Comment : I may also give up on this and just try NVidia and AMD s video decoding options I was just hoping for a generic directx solution originally . Comment : We actively use it on Win7 the only requirement is that Windows 7 Platform Update is installed . FFMPEG was more intended as a source on how to fill the DXVA2 structs : Comment : Hello I would like to ask you what exactly in D3D11 converts NV12 YUV420 to RGB I was trying to find anythink about that on MSDN but no sucess . Thank you very much for your answer youaresoomean Comment : @Teamol I added sample code on how to do the conversion to the original answer .", "Question : I m using DXVA video decoder . It works fine but I want to share the decompressed surfaces with another IDirect3D9 device object . I read this http : msdn.microsoft.com en-us library windows desktop bb219800 28v vs.85 29.aspx Sharing Resources document and I m calling IDirectXVideoDecoderService : : CreateSurface http : msdn.microsoft.com en-us library windows desktop ms696227 28v vs.85 29.aspx method to create surfaces and I try to pass a non-NULL HANDLE which points to NULL as the last parameter for the method . But the method fails with 0x8876086c D3DERR INVALIDCALL result . I also tried to allocate an array of HANDLEs and set every element to NULL then pass this array as a parameter but still getting the same error . Is there a way to share DXVA surfaces between IDirect3D9 devices Comment : ...pass a non-NULL HANDLE which points to NULL.. . - Can you show the section of code As I read it I m not clear exactly what you re passing . .. . Answer : Reading the document : .. . .. . Resource creation APIs include - CreateTexture CreateVolumeTexture CreateCubeTexture CreateRenderTarget CreateVertexBuffer CreateIndexBuffer CreateDepthStencilSurface CreateOffscreenPlainSurface CreateDepthStencilSurfaceEx CreateOffscreenPlainSurfaceEx and CreateRenderTargetEx . IDirectXVideoAccelerationService : : CreateSurface seems not to be included . And : .. . .. . pSharedHandle in out .. . .. . A pointer to a handle that is used to share the surfaces between Direct3D devices . Set this parameter to NULL . It seems not to be possible to use it .", "Question : I have an application that does video-processing such as color transforms scaling and translations using OpenGL . I m mostly working with BGRA 1xGL BGRA or YUVA 4xGL R video i.e . including alpha . Now I would also like to do some high quality deinterlacing . I ve noticed that Nvidia supports high quality hardware accelerated de-interlacing through their PureVideo functionality . Basically what i d like to do is to send in a interlaced OpenGL texture with x number of color channels and get out two progressive textures . My question is how do I access this functionality easiest and most efficiently possibly in interop with OpenGL I ve been looking at DXVA and OpenMax but both seem rather focused on playback not deinterlace processing i.e . non-relevant options such as frame-rate needs to be set etc.. . and no-alpha formats.. . Comment : What defines high quality deinterlacing If you just want to take an image and split it into two via alternating pixel rows you can do that pretty easily in a shader but I m not a video expert and I m not sure if that s what you mean . Comment : I mean something along the lines of spatial-temporal deinterlacing . What you are suggesting is horrible quality . Comment : You can look here guru.multimedia.cx deinterlacing-filters http : guru.multimedia.cx deinterlacing-filters to see the difference between high and low quality deinterlacing . Comment : Just out of interest things like deinterlace and so on are trivial with gStreamer . Perhaps you should think about 3rd party libraries for this kind of stuff than doing it yourself Comment : I alrdy use ffmpeg for de-interlacing but it s not gpu accelerated . .. . Answer : gStreamer libraries have good de-interlacing modules . http : gstreamer.freedesktop.org You can use a directshow module to display the results in a window or process the frames yourself by hooking into various events . We re using this at work at the moment for all of our video-processing needs . Comment : Doesn t seem to be gpu-accelerated . Comment : With gStreamer it depends on the module you link into the pipeline . There s a gldeinterlace module that is GPU accelerated for example . In fact there are about 10 GL modules of various kinds that you can link . Comment : I m alrdy using ffmpeg yadif deinterlace which seems to have better quality than what gStreamer offers . Comment : gldeinterlace gst-plugins-gl0.10.sourcearchive.com documentation 0.10.1 http : gst-plugins-gl0.10.sourcearchive.com documentation 0.10.1 gstgldeinterlace 8c-source.html seems interesting though it doesn t use PureVideo and seems to be a low-medium quality filter .", "Question : I ve made a player for IP camera fullHD H264 with FFMPEG I code under windows with Qt.I need the lowest latency as possible and the best result I can get is done whith : .. . .. . I got the packet with live555 .. . decode with ffmpeg .. . display it with SDL . But with slow CPU I have lot of latency if the bitrate is too high or it can t handle 1080p . I really want to try hardware-acceleration with DXVA2 to see if I can get better performance especially in slowest CPU . But i really don t know how to proceed . I have to build FFMPEG with --enable-dxva2 and --enable-hwaccel h264 dxva2 or Zeranoe build I have never use Direct X do I need Direct X knowledge or ffmpeg with --enable-dxva2 and --enable-hwaccel h264 dxva2 care of everything Thank you .. . .. . Edit : .. . .. . Hello I use this post to help me in my HW acceleration with FFMPEG Failed to execute : 0x80070057 when decoding video via ffmpeg with dxva2 http : stackoverflow.com questions 34602561 failed-to-execute-0x80070057-when-decoding-video-via-ffmpeg-with-dxva2 .. . .. . I decode the packet with .. . .. . and I m getting my decoded frame with .. . .. . I tried to convert it .. . .. . and copy the buffer to a Qimage .. . .. . I got my picture but with lot of artefact and after few seconds I got a segmentation-fault in dxva2 retrieve data call pCodecCtx pFrame gotPic packet .. . .. . Edit : Problem solved i didn t check if I got a picture before retreiving it . But the performance are very poor on my desktop cmputer intel core i5 650 4GB RAM ATI HD5800 it consumes 5 more of CPU 3 times more RAM and lot of corrupt frame . It s better on a newer computer but soft decoder is better . dxva2 retrieve data call and sws swale consume lot of time when hwaccel is enabled .. . .. . .. . Is there a way to display NV12 picture in Qt no sws scale conversion and there is a way to optimise dxva retrieve data call .. . Answer : If you want real GPU acceleration no copy back you need to provide DirectX Surface through IDirect3DDeviceManager9 Directx9 IMFDXGIDeviceManager Directx11 . QT and FFMPEG does not provide it for you . You will also need to provide the DirectX display mechanism .", "Question : I m trying to decode and render H264 raw stream with DirectX11 and interface https : msdn.microsoft.com en-us library windows desktop hh447766 28v vs.85 29.aspx . Unfortunately I got stuck at sumbitting DXVA PictureParameters buffer : namely ID3D11VideoContext : : SubmitDecoderBuffers always returns E FAIL . This is very enigmatic is there somewhere an example of using this interface to decode H264 bitstream becasue from error-code E FAIL I might never be able to conclude what I m doing wrong Such example would be very helpful . .. . Answer : Currently i don t think there are some sample with ID3D11VideoContext for the h264 decoding . But there are some with IDirectXVideoDecoder DirectX9 . UPDATE .. . .. . The source code from MPC- BE is a good start . Under src- filters- transform- MPCVideoDec . Ffmpeg has some use of ID3D11VideoContext but it is not fully detailed .", "Question : I have searched for a simple example about how to decode H264 stream with hardware-acceleration using ffmpeg in Windows but I could not find any . I know that I should employ dxva2 with ffmpeg to have hardware-acceleration . I can decode H264 with ffmpeg on CPU then convert NV12 format to RGBA and save frames as bmp files thanks to example project provided in post http : stackoverflow.com questions 1908411 how-to-use-ffmpeg . I have followed what is provided in the following post to get help about dxva2 : post http : stackoverflow.com questions 34602561 failed-to-execute-0x80070057-when-decoding-video-via-ffmpeg-with-dxva2 .. . .. . I believe I can successfully decode with dxva2 however when I want to get the decoded frame and convert it to RGBA format and save it as bmp file I get an error about source pointers . I decode and retrieve frame as following : .. . .. . and feed the output frame to : .. . .. . I get this error : .. . .. . swscaler @ 030c5c20 bad src image pointers .. . .. . Obviously something is wrong with the pFrameYuv- data but I do not know what . How can we convert NV12 frame decoded with DXVA2 to RGBA with sws scale .. . Answer : Problem solved . It was due to improper pixel format type . When creating sws context I have used the pixel format of the codec context as shown below : Which was OK for SW decoding .. . .. . And pCodecCtx- pix fmt was AV PIX FMT YUV420P but decoded frame format is AV PIX FMT NV12 with DXVA2 . After setting right format I could use sws scale to convert the NV12 frame to RGB . Right parameters : .. . .. . Also pay attention to unref the output retrieved frame as follows : .. . .. . Otherwise you have a memory leak . Plus as stated in post http : stackoverflow.com questions 34602561 failed-to-execute-0x80070057-when-decoding-video-via-ffmpeg-with-dxva2 dxva2 retrieve data call is very inefficient . You should look for another way to get data from GPU ." ] }
[ "yes-answer-long", "yes-answer-short" ]
video
UNK_RELATION
altova@xml@66
altova -- altova is an austrian company that produces integrated @placeholder database uml and data management software development tools .
{ "confidence": [ 45.10223388671875, 44.37155532836914, 43.75139617919922, 41.24531555175781, 40.720218658447266, 40.200923919677734, 39.86943054199219, 38.88966369628906, 38.88966369628906, 37.860511779785156, 37.40558624267578, 37.37043380737305, 36.503143310546875, 36.45155334472656, 36.45155334472656, 35.69879913330078, 35.69879913330078, 35.69879913330078, 35.69879913330078, 35.69879913330078, 35.69879913330078, 35.69879913330078, 35.69879913330078, 35.69879913330078, 35.54913330078125, 35.54913330078125, 34.58982467651367, 34.55030822753906, 33.26068878173828, 33.26068878173828, 32.94084167480469, 32.22853469848633, 31.51413917541504, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 31.40072250366211, 30.441844940185547, 30.291748046875, 30.291748046875, 30.291748046875, 30.291748046875, 29.99456787109375, 29.96588897705078, 28.962615966796875, 28.962615966796875, 28.962615966796875, 28.962615966796875, 28.77020835876465, 28.77020835876465, 28.77020835876465, 28.77020835876465, 28.77020835876465, 27.661235809326172, 25.823936462402344, 25.823936462402344, 25.823936462402344, 25.535219192504883, 25.326786041259766, 24.714962005615234, 24.714962005615234, 24.714962005615234, 24.714962005615234, 24.714962005615234, 24.714962005615234, 24.29681396484375, 23.38582992553711, 23.38582992553711, 22.62517738342285, 22.62517738342285, 22.62517738342285, 22.539209365844727, 21.516204833984375, 21.319988250732422, 20.988887786865234, 20.212093353271484, 19.229007720947266, 19.02960205078125, 18.169334411621094, 17.57093048095703, 17.436790466308594, 17.436790466308594, 17.347135543823242, 17.347135543823242, 17.153200149536133, 16.461956024169922, 16.23963737487793, 16.23963737487793, 16.213809967041016, 16.07942008972168, 15.998422622680664, 15.780560493469238, 15.731225967407227 ], "content": [ "I was work on Altova Mapforce one year.Best thing with Altova mapforce is You need to work on Altova mapforce .", "You need to read altova mapforce support book or ask to altova mapforce support center", "I ve download a trial of Altova UModel and am starting using UML .", "I ve posted it to an Altova forum too .", "I m experimenting with Altova DatabaseSpy to manage an Azure SQL Database .", "I have generated XSLT using altova mapforce and in altova the xslt and output xml is getting generated without any issues .", "How can I use fixed positioning of elements in Altova Stylevision", "Iam new to Altova Stylevision and xsl-fo .", "I was very happy to work with altova mapforce .", "I have Sequence Diagrams exported from Altova UModel Tool in XMI 2.1 for UML 2.2 format .", "As it turns out this is currently impossible using Altova generated code per my response from Altova technical support : .. . .. . Thanks for contacting us .", "After that a message box says that Altova Scripting Host is not installed .", "One of the nice things is that there is full error enumeration of the X12 library Altova is one of two tools vendors for X12.org .. . .. . It is reliable .", "I m using Altova XML Spy for XML Transformation .", "And the prefixse code are automaticly generated by Altova Mapforce .", ".. . Best regards .. . .. . Mxxxxxxxx Kxxxxx .. . Support Engineer .. . Altova GmbH", "It seems that it is application bug with Altova MapForce version 2012 rel .", "Btw I am using it with Altova Mapforce if that changes anything .", "I am new to Altova Stylevision http : www.altova.com stylevision.html .", "The response from Altova below .. . .. . Dear Stewart .. . .. . Thanks for contacting us .", "Best Regards .. . .. . Greg Kolanek Support Engineer Altova GmbH www.altova.com", "The tool we have been playing around with is Altova MapForce trial .", "You need to customize Altova mapforce SP directory as per your requirement .", "My goal is to dynamically create output xml s using Altova Mapforce .", "How to add tables from multiple Oracle database schemas in Altova MapForce application", "Altova mapforce auto generate code take care your all validations of database .", "I have Altova XMLSpy and I know there is a scripting component to it .", "I m trying to use Altova DatabaseSpy to connect to my remote MySQL server as a data source .", "I am using Altova Mapforce to generate output from XSLT 2.0 .", "When I run it with an Altova processor my xslt executes without a problem .", "Hello i am new to Altova Mapforce I wanted to know what is the procedure to add JAR files import jars in MapForce .", "Or perhaps 3 when Altova created that old version of software most all XSL FO processors didn t support it so it didn t affect the output .", "I am using Altova Stylevision 2011 Enterprise to generate an XSLT file that is used to generate a report based on some XML data .", "AM new to altova mapforce.I need to search and get value from String.How to write user defined Function for this", "With Altova MapForce version 2011 schema user can be changed in Add Remove Tables window by clicking on the green user icon .", "I have tried the options suggested in the Altova manual but it does not seem to recognize the format .", "Is there a way to navigate from the schema overview in Altova XmlSpy immediately to a simple type definition .", "A bit surprising since there are examples from Altova which use the same method I used and which are valid .", "I can see this is Altova specific problem as transformation is working fine with visual-studio editor .", "I reversed engineered code using Altova Umodel and didn t see any associations in the scenario just mentioned .", "what i did was to open a ABC.xml file and performing XSLT on it by pressing F10 in Altova XMLSpy .", "I m attempting to delete an XML node through XQuery using the in-build XQuery compiler in Altova XMLSpy .", "I have been trying to check references but Altova hasn t been quite helpful in that regard .", "It is just a formatting issue it seems Altova prints the entire sequence in a single line without linebreaks .", "We have installed the german Version so the message is .. . .. . Der f r Skripterstellung und Makrounterst tzung ben tigte Altova Skripting Host ist nicht installiert .", "You could test the above on one XML using Altova XMLSpy or even use it to process the whole directory .", "I m currently using Altova XMLSpy to convert a XML file using a XSLT 2.0 transformation sheet .", "Eg : If my Input is .. . .. . I m expecting an output of .. . .. . I m trying to achieve this using altova mapforce .", "Saxon Altova and XmlPrime are all moving forward Saxon and XmlPrime not only support XSLT 2.0 but large chunks of 3.0 as well .", "You need to format the date as per the alotva format or create the date function into altova map-force where you map your year month and day with alotva value .", "The CDATA section looks fine to me if you can load the file into a web browser like IE or Mozilla and they don t show parse errors then try an Altova support forum asking them if their XML parser in the version of Altova XML Spy you use is known to have any problems with CDATA section .", "When i run the transformation for the same XML and XSL file using Altova it works fine doing the transformation .", "Following the manual in Altova website here http : manual.altova.com XMLSpy spyenterprise index.html xsl.htm i ve followd the same steps .", "Are you sure Altova supports debugging XSLT with other than your own engine", "manual.altova.com XMLSpy spyenterprise http : manual.altova.com XMLSpy spyenterprise index.html xsxsltxq debugger.htm suggests it works with their built-in Altova XSLT engines .", "I see the closing request but I don t think this is off-topic as Altova is all about XSLT 2.0 which is a programming language and well-supported on this forum .", "When you call opt Altova RaptorXMLXBRLServer2015 bin raptorxmlxbrl SPACE xbrl is not interpreted as raptorxmlxbrl and the argument xbrl but as a command raptorxmlxbrl xbrl which obviously does not exists as an executable .", "I am using Altova XML Spy and they have feature where you can refer xslt directly without providing path in xml .", "The code for fetching ITransform parts is as follows : .. . .. . I have another project ProjectXYZ auto generated by third party tool Altova Mapforce 2012 SP1 .", "I think that Altova UModel is doing the same approach as IBM RSA and has decided to hide this property information which is not really valuable .", "I m using Altova Stylevision to print out form documents and I need to print a copy of the form-for each unique set of two node collections .", "After that we just need to call format-date with the proper picture string : .. . .. . The output with conforming processors like Saxon http : saxonica.com or Exselt http : exselt.net didn t try Altova http : altova.com is this : 14 Sep 2014 .", "I have a XML row which has a lengthy sentence for instance : .. . .. . I need to break the sentence into smaller sentences and display them in multiple lines in Altova Stylevision .", "The error message is : .. . .. . FatalError : chec de l op ration d entr e sortie sur le fichier altova : hashedfile 194ccf5941684a2b2f0015bfd807c67870605da8 7Czip rels .rels D tails : Erreur de syst me 2 : Le fichier sp cifi est introuvable .", "I would not modify Altova code they suggest that you do not in their documentation but don t go into the issue of refactoring by extracting a method and changing namespace .. . .. . If you have worked with other X12 tools Sterling Commerce or IBM Gentran Biztalk Informatica etc. . you will appreciate the simplicity of the tool and the value .", "I am running XSLT 2.0 in C using altova processor like this : .. . .. . altove processor by default validate transformed XML files the problem occurs when the file size become more than 5 MB it throw an exception and doesn t output the file personally i don t want the validation to occur but it s built-in the altova processor instructions how in C could i continue to StreamWriter step and ignore that exception", "I used what you provided and updated accordingly but my result is a duplicate of my original XML file when I select this XSL file for XSL Transformation in Altova XMLSpy .", "In Altova XMLspy 2014 in a XSD 1.1 document if I add an assertion I can insert a XPATH 2.0 expresion for the test atribute of the assertion but only ONE line is shown .", "Using an old 2011 version of Altova StyleVision : .. . .. . Editing a file definition I export the document to XSL-FO and get inline zero width spaces added that were not in the previous version of the file .", "The only information I have been able to find is on the Altova Forums http : www.altova.com forum default.aspx g posts t 1000002361 which states this cannot be done .", "Well to tell you the truth .. . 1 It s an old version of Altova and 2 that structure would likely be ignored by most XSL FO formatting engine as they do not support fo : inline-container .", "Perhaps I m speculating if you ask mapforce to generate a 2.0 stylesheet then it won t need any Altova extensions and you can then run the stylesheet with a 2.0 processor such as Saxon or XmlPrime .", "I don t use Altova XML Spy but you might want to show your code and explain whether both absolute URls file : C : dir subdir result.xml as well as relative URIs result.xml end up in that folder .", "The problem is that since 1.0 only supports converting to type number I get a value like 1.234567890E9 back for input of 1234567890 .. . .. . I m using Altova MapForce with XSLT1.0 as the coding platform .", "I believe I might be wrong that Altova only has very rudimentary support for XSLT engines other than their own essentially at the level of command-line invocation .", "I ve got a file called Dictionary.xml .. . .. . and I try to use it in my XSLT .. . .. . This generates an error in Altova XMLSpy Professional Edition v2012 sp1 saying .. . .. . BUT if I simplify the content of Dictionary.xml so that it reads .. . .. . Then it loads and uses the content of Dictionary.xml .", "I suspect that Altova is using the presence of the attribute xsi : noNamespaceSchemaLocation table.xsd as a signal meaning please validate this element against the schema in table.xsd which is not what you wanted because of course it s not valid against that schema as it contains XSLT instructions to create the required elements rather than containing the required elements themselves .", "If you watch this demo video of Altova XMLSpy http : www.youtube.com watch v piVbWtChd6I and advance to 2 : 35 you will see how clicking on one of the toolbar buttons which appears to be labeled Pretty-print will format the results of your XQuery as nicely indented XML .", "Wikipedia http : en.wikipedia.org wiki List of Unified Modeling Language tools lists some open-source UML tools written in Java .", "When I try using an XSLT file I ve automatically generated using Altova s MapForce tool I get the exception : .. . .. . From the XSL Stylesheet definition : .. . .. . ...it seems that Altova defines its own extension functions to XSLT and the XslCompiledTransform doesn t know how to find them .", "My company needs to convert X12 5010 837 files into our database and back out .", "You might want to ask in an Altova XML Spy forum whether and if so how it allows you to set the base output URI w3.org TR xslt20 dt-base-output-uri http : www.w3.org TR xslt20 dt-base-output-uri so that your relative URIs are resolved to a different directory .", "As far as I understand UML now it is an Association not an Aggregation .", "I would like to know whether there are any tools which convert xml data into Oracle tables .", "What is the correct UML relation between Bookmark and Tag classes", "This extension is only available in the development trunk version of FOP .", "If one of a class s instance methods instantiates a separate class but doesn t hold a reference to that object as a member variable class property should an association be created in UML", "Serious UML modeling tool must support some kind of XMI model round-tripping .", "Having used UML since the late 90s you re the first person I ve met who cared about the difference", ".. . I ll forward your message on to our development team for future consideration .", "I ll forward that issue on to our development team for future consideration as well .", "Tools - Options .. . .. . Go to the text fonts tab and check use the same for all .", "From UML Superstructure Specification v2.1.2 section 7.3.3 : .. . .. . memberEnd : Property 2. . Each end represents participation of instances of the classifier connected to the end in links of the association .", "Important : to get rounded-corners you must use the trunk development version of FOP http : xmlgraphics.apache.org fop trunk .", "The problem now is that MapForce is putting the absolute path to the library which is fine for development but not so good for production .", ".. . I wonder why has nobody developed that software yet", "The classes in ProjectXYZ are automatically generated through some third-party tools which I need to use directly .", "I ve made connection and can manipulate the database through the sql editor .", ".. . Now I am looking for a software or some feature of the software I use to which I could feed some kind of description of my task so that it would generate the program I need .", "I m using the MapForce built-in processor during development ." ] }
{ "confidence": [ 53.182334899902344, 48.39215850830078, 48.233009338378906, 48.190242767333984, 47.73193359375, 46.28705596923828, 45.119895935058594, 43.510005950927734, 42.950016021728516, 41.11479949951172, 41.031551361083984, 41.031551361083984, 40.3780517578125, 40.195709228515625, 40.10381317138672, 40.010108947753906, 39.569488525390625, 39.438751220703125, 38.81184005737305, 38.744384765625 ], "content": [ "Question : My company needs to convert X12 5010 837 files into our database and back out . The tool we have been playing around with is Altova MapForce trial . I have been trying to check references but Altova hasn t been quite helpful in that regard . The CNET reviews for it got me a bit concerned . I ve searched quite a bit on stackoverflow to see whether anyone has any feedback on it but most of what I found is Q A on particular functions and How Tos . I would greatly appreciate if one of you who has purchased Mapforce and implemented at least one project or solution with it can share what you found good and bad about it Is it a solid tool that can process about 30K-50K claims a year Will it crash everyday like some of the CNET reviews state Just e-mail me if you would rather chat over the phone about it . Regards .. . .. . Andrew R Comment : What is your budget A 1000 tool you re gonna get what you pay for . Do you have a requirement to build the transform into a larger application That has always been the sticking point for me : build the map and then insert generated code into a larger framework . I d rather just have a self-standing engine that does the translation communication . That s just my opinion . I prefer traditional integration frameworks like Liaison Sterling Extol etc . Altova s XML Spy application is the bomb though . .. . Answer : It s is really nice tool . I was work on Altova Mapforce one year.Best thing with Altova mapforce is You need to work on Altova mapforce . They are not giving you ready to eat food . You need to customize Altova mapforce SP directory as per your requirement . Altova mapforce auto generate code take care your all validations of database . You can validate your single record for table . I was very happy to work with altova mapforce . But need to patience with learning . One more thing. . IT support is very nice .", "Question : If one of a class s instance methods instantiates a separate class but doesn t hold a reference to that object as a member variable class property should an association be created in UML I reversed engineered code using Altova Umodel and didn t see any associations in the scenario just mentioned . .. . Answer : If you have an association then you always need a property in the other class . This property could be visible but also hidden at graphical level . I remember that RSA is always hidding this information but if you look in the exported xmi then it is inside . The only way to see them is sometimes to export the model and browse it with a model editor . I think that Altova UModel is doing the same approach as IBM RSA and has decided to hide this property information which is not really valuable . Having said that some tools such as Omondo have decided not to hide systematically the property association but to add a kind of icon with an arrow in order to make it visible but different from other properties . You also have an graphical option to show or not property association . I think this is the best approach to let the user does what he wants and not to take decision for him . I am interested if you could export the AltovaUModel to xmi format and have a look with an xml editor if the property is inside . The property name is simply the name of the other class and therefore easy to find . Could you post the result here thx", "Question : My company needs to convert X12 5010 837 files into our database and back out . The tool we have been playing around with is Altova MapForce trial . I have been trying to check references but Altova hasn t been quite helpful in that regard . The CNET reviews for it got me a bit concerned . I ve searched quite a bit on stackoverflow to see whether anyone has any feedback on it but most of what I found is Q A on particular functions and How Tos . I would greatly appreciate if one of you who has purchased Mapforce and implemented at least one project or solution with it can share what you found good and bad about it Is it a solid tool that can process about 30K-50K claims a year Will it crash everyday like some of the CNET reviews state Just e-mail me if you would rather chat over the phone about it . Regards .. . .. . Andrew R Comment : What is your budget A 1000 tool you re gonna get what you pay for . Do you have a requirement to build the transform into a larger application That has always been the sticking point for me : build the map and then insert generated code into a larger framework . I d rather just have a self-standing engine that does the translation communication . That s just my opinion . I prefer traditional integration frameworks like Liaison Sterling Extol etc . Altova s XML Spy application is the bomb though . .. . Answer : The tool is very reliable easy to use . One of the nice things is that there is full error enumeration of the X12 library Altova is one of two tools vendors for X12.org .. . .. . It is reliable . My suggestion is to do the transformation and then use refactoring to manage the code generated in C or Java so you can update the maps very easily by just copying the generated code into an existing directory within a project . I would not modify Altova code they suggest that you do not in their documentation but don t go into the issue of refactoring by extracting a method and changing namespace .. . .. . If you have worked with other X12 tools Sterling Commerce or IBM Gentran Biztalk Informatica etc. . you will appreciate the simplicity of the tool and the value . If you have no experience with EDI you are at the mercy of the opinions of others who have no experience with EDI who actually integrate .. . .. . On a 1-10 I give the product a 9 and within the right architecture pruned of enumeration is preferable to the other stated technologies mentioned give me some Linux Lamp JBOSS and Java refactored and I have the solution", "Question : I m using Altova XML Spy for XML Transformation . But now i need to use SAXON processor i have downloaded and installed SAXON . Following the manual in Altova website here http : manual.altova.com XMLSpy spyenterprise index.html xsl.htm i ve followd the same steps . But here i m getting an error as below . please let me know how can i fix this and do a transformation . Thanks Comment : Are you sure Altova supports debugging XSLT with other than your own engine manual.altova.com XMLSpy spyenterprise http : manual.altova.com XMLSpy spyenterprise index.html xsxsltxq debugger.htm suggests it works with their built-in Altova XSLT engines . I would ask in their support forums to make sure . As for Saxon which version of Saxon exactly did you install The documentation you linked to mentions a saxon.exe for XSLT 1.0 . It does not look like they describe plugging in the .NET or Java version of Saxon 9.5 the latest version of Saxon doing XSLT 2.0 . .. . Answer : I believe I might be wrong that Altova only has very rudimentary support for XSLT engines other than their own essentially at the level of command-line invocation . If you want fully integrated support for Saxon in an IDE including debugging capability use oXygen or Stylus Studio .", "Question : null .. . Answer : I m mapping 2 mysql databases . In DB1 one of the field is a date field . The default-value for the field is 0000-00-00 . When excecution I get this error : .. . .. . Conversion to-date failed for 0000-00-00 .. . .. . I mapping to a string field in DB2 . But it s seems the problem occurs before it s trying to insert update . Comment : You need to format the date as per the alotva format or create the date function into altova map-force where you map your year month and day with alotva value . Comment : OK thanks . Do you have any example how to make the date function into map-force It s seems to do the date check before it enters the mapping . Comment : This is page for discussion not providing source code . You need to read altova mapforce support book or ask to altova mapforce support center", "Question : How to add tables from multiple Oracle database schemas in Altova MapForce application I have inserted database on Mapping workspace and selected one table from schema user AAA which I used for connection . When I right-click on database object and select Add Remove Tables it opens new window Add Remove Tables and it is showing tables only for schema user AAA which I used for connection . In that window Add Remove Tables I can t find the way to select new database-schema for example to select schema user BBB and add table from that schema . There is some green user icon when clicked it is showing all database users but when I select one for example BBB schema user nothing happens the window is still showing tables from schema user AAA . .. . Answer : It seems that it is application bug with Altova MapForce version 2012 rel . 2 sp1 x64 . With Altova MapForce version 2011 schema user can be changed in Add Remove Tables window by clicking on the green user icon .", "Question : I have used XmlSpy 2013 to generate program code in Java from a schema . My application basically reads in xml from a file modifies the xml and writes it back out to the file . The generated code provides classes and functions to do the load : .. . .. . and to write the file back out : .. . .. . The schema I used to generate the code has the following attributes : .. . .. . The xml files I read in use qualified namespaces for the elements like so : .. . .. . .. . But after I write the file out again using saveToFile as above all of the qualified namespaces are removed from the elements like so : .. . .. . .. . Does anyone know how I can get xmlspy to qualify the namespaces on the documents so they look like how I read them in Thank you for any help . .. . Answer : As it turns out this is currently impossible using Altova generated code per my response from Altova technical support : .. . .. . Thanks for contacting us . .. . I m afraid that it s currently not presently possible to control the namespace prefix in the generated code . .. . I ll forward your message on to our development team for future consideration . .. . Best regards .. . .. . Mxxxxxxxx Kxxxxx .. . Support Engineer .. . Altova GmbH", "Question : null .. . Answer : We have installed XMLSpy 2015 rel . 4 sp1 x64 .. . .. . I try to start the Script-Editor . After that a message box says that Altova Scripting Host is not installed . I have not found any way to install this separately . We have installed the german Version so the message is .. . .. . Der f r Skripterstellung und Makrounterst tzung ben tigte Altova Skripting Host ist nicht installiert . Installieren Sie ihn bitte erneut und versuchen Sie es erneut . Windows 7 Professional Service Pack 1 x64 .. . .. . Thanks for any help .", "Question : Using an old 2011 version of Altova StyleVision : .. . .. . Editing a file definition I export the document to XSL-FO and get inline zero width spaces added that were not in the previous version of the file . This adds extra unwanted vertical space in the generated output . I can manually remove this .. . but would like to know what causes it and how to avoid it happening in the future . The only information I have been able to find is on the Altova Forums http : www.altova.com forum default.aspx g posts t 1000002361 which states this cannot be done . I hope this is wrong . Comment : I would write a simple identity-translate template that just excludes fo : inline-container . Apply that template to your exported FO before formatting . Comment : Thanks Kevin - I m in a multi-dev environment and dev is to be handed over to a third party soon so that would add a layer of complexity that would be bound to go wrong . I am more interested in discovering what triggers the block and working with it or avoiding generating it . My thoughts were there may be an option somewhere that generates a blank-line between tables paragraphs . Comment : Well to tell you the truth .. . 1 It s an old version of Altova and 2 that structure would likely be ignored by most XSL FO formatting engine as they do not support fo : inline-container . Or perhaps 3 when Altova created that old version of software most all XSL FO processors didn t support it so it didn t affect the output . Comment : Thanks Kevin .. . it may well be multiple old versions of code in an old codebase with no hope of update .. . Answer : Found the solution : .. . .. . Set the XSL-FO Generation to Full usage of XSL-FO standard on the XSL Options tab of the options .", "Question : How can I use fixed positioning of elements in Altova Stylevision I.e . positioning text x inches from top and y inches from left .. . Answer : If you click on a template in your Design named-styles will appear in Styles window . Click on Layout box then common subgroup and adjust left attribute value by entering desired number of inches . Do the same for top attribute", "Question : I am new to Altova Stylevision http : www.altova.com stylevision.html . I need to format the date from dd mm yy to dd Mon yyyy . I have tried the options suggested in the Altova manual but it does not seem to recognize the format . Comment : I see the closing request but I don t think this is off-topic as Altova is all about XSLT 2.0 which is a programming language and well-supported on this forum . .. . Answer : This question is almost three weeks old so maybe meanwhile you have found an answer for instance by looking it up at page 781 of XSLT 2.0 and XPath 2.0 Programmer s Reference http : amzn.com 0470192747 by Michael Kay . Or perhaps somewhere else on the web http : www.sixtree.com.au community articles formatting-dates-and-times-using-xslt-2.0-and-xpath . To achieve what you want in XSLT 2.0 we first need to convert your date-like string into international date-time notation . Luckily we only need to care about the date-part which should take the form YYYY-MM-DD . After that we just need to call format-date with the proper picture string : .. . .. . The output with conforming processors like Saxon http : saxonica.com or Exselt http : exselt.net didn t try Altova http : altova.com is this : 14 Sep 2014 . The picture string works as follows from that same book I quoted : .. . .. . xxxx is a variable marker .. . D01 formats the day-part as a two-digit day leave out the zero if you don t want leading zeroes .. . MNn 3-3 formats the month with M as case-word with Nn with a width of min three and max three with 3-3 . Y formats the year in the default format as a four-digit year . If you need the full name of the month remove the width-specifier . If you need some other output check out the table in the XPath 3.0 specification http : www.w3.org TR xpath-functions-30 rules-for-datetime-formatting for what you can use in the picture string . Comment : thanks a lot the solution worked... .", "Question : null .. . Answer : I ve got a file called Dictionary.xml .. . .. . and I try to use it in my XSLT .. . .. . This generates an error in Altova XMLSpy Professional Edition v2012 sp1 saying .. . .. . BUT if I simplify the content of Dictionary.xml so that it reads .. . .. . Then it loads and uses the content of Dictionary.xml . I assume there is something about the format of the original Dictionary.xml that it doesn t like . Do you know what Or is there some other problem that I haven t identified here Edit : or to be more precise do you have a good suggestion as to how I can make some XSLT so that my users can run an XSLT stylesheet using an unaltered dictionary file in the original format Thanks for the other edits . Comment : Okay it is the CDATA Reset target that it doesn t like . If I strip it down to just Reset target then it is fine . Comment : Still if you have a solution that allows me to use the original file I d be happy to hear it . Comment : The CDATA section looks fine to me if you can load the file into a web browser like IE or Mozilla and they don t show parse errors then try an Altova support forum asking them if their XML parser in the version of Altova XML Spy you use is known to have any problems with CDATA section . I can t imagine it would have any but as a customer of that product that should be able to tell you . Comment : XMLSpy does not have a problem with the original CDATA file if I run XSLT on it directly : but only if I open it with the document function . Web browsers also open the CDATA file fine . Comment : I ve posted it to an Altova forum too . Thanks for the advice .", "Question : I m using .NET s XslCompiledTransform to perform an XSLT transformation . When I try using an XSLT file I ve automatically generated using Altova s MapForce tool I get the exception : .. . .. . From the XSL Stylesheet definition : .. . .. . ...it seems that Altova defines its own extension functions to XSLT and the XslCompiledTransform doesn t know how to find them . How can I make the XslCompiledTransform recognize those external functions .. . Answer : I don t know any details of Mapforce but I do know that people successfully run Mapforce generated stylesheets with Saxon . Perhaps I m speculating if you ask mapforce to generate a 2.0 stylesheet then it won t need any Altova extensions and you can then run the stylesheet with a 2.0 processor such as Saxon or XmlPrime . Incidentally Microsoft have made it quite clear that they aren t planning to upgrade XsltCompiledTransform to XSLT 2.0 so you are using a dead-end technology . Saxon Altova and XmlPrime are all moving forward Saxon and XmlPrime not only support XSLT 2.0 but large chunks of 3.0 as well . There are an awful lot of productivity benefits you are missing out on .", "Question : null .. . Answer : I have generated XSLT using altova mapforce and in altova the xslt and output xml is getting generated without any issues . when i copied the same xslt in visual-studio-2013 and trying to run but ended up with below error Cannot find a script or an extension object associated with namespace http : www.w3.org 2001 XMLSchema . .. . .. . Error at below line : Comment : Microsoft respectively Visual Studio and the .NET framework use System.Xml.Xsl.XslCompiledTransform an XSLT 1.0 processor while your tool generated XSLT 2.0 code which does not work with an XSLT 1.0 processor . You would need to use third party XSLT 2.0 implementations like XmlPrime or like the .NET version of Saxon 9 if you want to use XSLT 2.0 in .NET or VS . Comment : Or rewrite your transformation code in the XSLT 1.0 language .", "Question : null .. . Answer : I m experimenting with Altova DatabaseSpy to manage an Azure SQL Database . I ve made connection and can manipulate the database through the sql editor . The tables and views however are not showing in the Online Browser and much of the functionality as the import function and the design function is not working . It seems like the tables are not recognized in some way . Anyone experience with this Thanks in advance . Comment : What about SSMS If you connect using the same credentials then it s a bug in DatabaseSpy . If you can t see the tables even in SSMS then you are connecting with an account that only has permissions to connect to the database not read the schema or tables . Comment : They are visible in SSMS with the same credentials You re probarly right and it s a bug . Thnx .", "Question : null .. . Answer : Is there a way to navigate from the schema overview in Altova XmlSpy immediately to a simple type definition . I know double clicking the name of a complex type will navigate to it s definition .", "Question : null .. . Answer : I am generating result-documents from within my XSL script . However they are always saved in my temp folder . Does anyone happen to know where I can configure that Comment : I don t use Altova XML Spy but you might want to show your code and explain whether both absolute URls file : C : dir subdir result.xml as well as relative URIs result.xml end up in that folder . Comment : the absolute uri did the trick thanks a lot once again : D it even creates the folder . how did you know that would make a difference experience from other IDEs or does that have to do with xsl Comment : Well if an absolute URI would end up in that temp folder the I would say that is a bug as xsl : result-document is specified w3.org TR xslt20 creating-result-trees http : www.w3.org TR xslt20 creating-result-trees . You might want to ask in an Altova XML Spy forum whether and if so how it allows you to set the base output URI w3.org TR xslt20 dt-base-output-uri http : www.w3.org TR xslt20 dt-base-output-uri so that your relative URIs are resolved to a different directory .", "Question : I am trying to use mapforce to generate an xslt-2.0 file . The mapping is adding 2 dayTimeDuration elements doing so results in the following error .. . .. . No match for core.add xs : dayTimeDuration xs : dayTimeDuration . Check argument types . Supported : + xs : double xs : double - xs : double .. . .. . I thought that xslt-2.0 supported adding 2 dayTimeDurations . Is there a way of doing this using mapforce Cheers Stew Comment : w3.org TR xpath-functions-30 func-add-dayTimeDurations https : www.w3.org TR xpath-functions-30 func-add-dayTimeDurations suggests it is possible . I have no idea about MapForce . Perhaps it is better to ask in their support forum . Comment : Martin thanks for confirming at it is possible in xslt-2.0 . I have it posted on their forum but haven t had any replies . .. . Answer : The response from Altova below .. . .. . Dear Stewart .. . .. . Thanks for contacting us . While XPath 2 does offer a subtract-dayTimeDurations operation this is not presently offered as a function inside MapForce . Further the built-in subtract function does not support xs : duration-type values . It may be possible to implement a duration-subtraction function yourself inside MapForce as a User-Defined Function UDF since you can use the functions to access the parts of the duration e.g . years-from-duration . http : manual.altova.com Mapforce mapforceenterprise mffdefininguser-definedfunctions.htm .. . .. . http : manual.altova.com Mapforce mapforceenterprise mff lib lang datetime.htm .. . .. . Otherwise I ll forward your message on to our development team for future consideration . Best Regards .. . .. . Greg Kolanek Support Engineer Altova GmbH www.altova.com Comment : Well you can always do it yourself . Comment : Yes I hand wrote the xslt and imported it as a library . The problem now is that MapForce is putting the absolute path to the library which is fine for development but not so good for production . Comment : Altova s response to the absolute path issue That s not presently possible . You ll have to edit the generated XSLT . I ll forward that issue on to our development team for future consideration as well .", "Question : AM new to altova mapforce.I need to search and get value from String.How to write user defined Function for this string is abc A cde B Input is abc need output A .. . Answer : You can use libraries substring-after .. . .. . Send the string as first argument and as second argument", "Question : null .. . Answer : I have Sequence Diagrams exported from Altova UModel Tool in XMI 2.1 for UML 2.2 format . I need to generate pseudo code of the Sequence Diagram . Are there any specific java libraries DOM which can be used to parse XMI which can help to generate pseudo code . Any help is appreciated . Comment : I guess you re lost here . OMG has published XMI formats see their website . But implementations of that differ from tool to tool slightly but significantly enough to hinder mutual im- export . Comment : I am not looking for inter tool im exp . I just want XMI to some pseudo code . OMG os ok but I don t want to code and parse everything Comment : I know that s why I said you re lost . I once tried tried to parse XMI for some reason and found me left alone . Likely just tool vendors have libs which do do not give away . With Enterprise Architect I would import the XMI and use the API to interpret the SD . Comment : Wikipedia http : en.wikipedia.org wiki List of Unified Modeling Language tools lists some open-source UML tools written in Java . Serious UML modeling tool must support some kind of XMI model round-tripping . I d try to rip and reuse XMI manipulation library used by Modeliosoft s Modelio https : www.modelio.org index.php as it was the most reasonable candidate in the free-space when I was researching it a year ago . You can go and get the source at forge.modelio.org projects http : forge.modelio.org projects" ] }
[ "yes-answer-long", "yes-answer-short" ]
xml
UNK_RELATION
nette@web@57
nette -- nette framework is an open-source tool for php @placeholder development .
{ "confidence": [ 57.37958526611328, 49.367713928222656, 49.18294906616211, 47.45183181762695, 47.049495697021484, 46.30339813232422, 46.09623718261719, 45.13228988647461, 45.118038177490234, 45.118038177490234, 43.983856201171875, 43.55321502685547, 43.326820373535156, 43.326820373535156, 43.326820373535156, 43.326820373535156, 43.326820373535156, 42.530128479003906, 42.18162536621094, 42.18162536621094, 42.13440704345703, 40.79901123046875, 40.79901123046875, 40.75798034667969, 40.75798034667969, 39.975990295410156, 39.975990295410156, 38.27415466308594, 38.08575439453125, 37.77046203613281, 37.77046203613281, 37.77046203613281, 37.43452453613281, 37.43452453613281, 37.43452453613281, 37.22161102294922, 37.188655853271484, 37.04981994628906, 36.71417999267578, 36.62202835083008, 36.62202835083008, 36.286094665527344, 36.286094665527344, 36.286094665527344, 36.286094665527344, 34.63370132446289, 34.50640869140625, 34.50640869140625, 34.36256408691406, 33.01752471923828, 32.902587890625, 32.902587890625, 32.902587890625, 32.902587890625, 32.902587890625, 32.902587890625, 32.902587890625, 31.754154205322266, 31.754154205322266, 31.754154205322266, 31.341384887695312, 30.13257598876953, 30.13257598876953, 30.12894058227539, 30.12894058227539, 30.12894058227539, 29.41260528564453, 28.98050880432129, 28.98050880432129, 28.98050880432129, 27.807830810546875, 27.604084014892578, 27.022357940673828, 27.022357940673828, 27.022357940673828, 27.022357940673828, 27.022357940673828, 27.022357940673828, 25.873924255371094, 25.380664825439453, 25.277389526367188, 24.497499465942383, 23.649547576904297, 23.095474243164062, 22.501115798950195, 22.111005783081055, 21.88933563232422, 21.623502731323242, 21.623502731323242, 20.50872802734375, 20.439918518066406, 20.109024047851562, 20.109024047851562, 19.39159393310547, 19.01319694519043, 19.01319694519043, 18.77015495300293, 18.77015495300293, 18.53767204284668, 18.462873458862305 ], "content": [ "PHP Framework Nette", "Is Nette PHP framework is suitable for creation of RESTful API in PHP I cannot find a proper documentation apart IAuthenticator .. . .. . Does Nette offer support RESTful", "I have small application based on Nette framework .", "I m running nette framework at localhost using XAMPP .", "If you are familiar with Nette Framework you are at home.. . this is inspired by Nette : It is basically AJAX Workflow for Laravel .", "I use Nette Framework for routes and Apache as webserver .", "Most up-to-date tool is https : github.com nette code-checker it s extracted from https : github.com nette tools .", "It s nette database .", "Is it possible to create magic route with nette route", "If you asking if Nette will work without routes at all it will not .", "Just look into the documentation of nette .", "That s why this basic route which acts like you want I think is present in sandbox : github.com nette sandbox https : github.com nette sandbox", "this is Nette framework don t care about that I m fine with basic SQL command", "Syntax of that query is from nette framework but system should be the same .", "for example Nette Framework has implemented own ajax workflow to do this .", "My code looks like .. . .. . I am using nette web framework .", "I am using Nette Framework 2.3 and Doctrine 2 .", "i making nette component like DataGrid .", "I am currently using Nette-RestRoute https : github.com newPOPE Nette-RestRoute .", "My JavaScript code : .. . .. . HTML Nette : .. . .. . It normally works but when the Nette snippet is refreshed DataTables elements pages order etc .", "Or can Checkstyle also check Nette", "Does Nette offer support for token authentication", "I have problem with DataTables working alongside Nette .", "Deleting of nette cache won t help :", "It is probably Nette Cassandra related problem .", "There is Nette code checker here : https : github.com nette tools .. . .. . You can also try this CodeSniffer standard written : https : github.com juzna nette-coding-standard", "You have fonts in C : wamp www nette www fonts .. . .. . and css file in the same folder C : wamp www nette www as folder fonts C : wamp www nette www bootstrap.min.css .", "Also try to delete Nette cache first .", "I use Nette and I want to generate webpage and pass data into HTML using Nette and then work with Data using Angular is this even possible", "I need SQL command don t need to use Nette Framework as I do in my example .", "I am new to Nette http : nette.org en framework I have done everything correctly but it shows the following warning .. . .. .", "I am using mPDF with nette framework .. . .. . Where content is one or more a tables .", "I am trying to create form wizard in nette 2.1.2 .", "I ve created my own component in which nette form can be injected .", "You can t do join using Nette Database there is no join function .", "But don t construct urls by hand use link macro in latte templates or Nette Application LinkGenerator in code .", "I would like to have some type of automatic checking of coding standards for PHP Nette Framework http : nette.org is there anything like this", "You do it correctly nette is watching the source file and it regenerate it only if the latte file is changed .", "@CharlieVieillard - Probably not but it was enough to change a few methods and put in a session instead of just the user s id entity - nette forum to advise me and suggested to use a supplement that allows it Nette 2 Doctrine 2 entities https : github.com Majkl578 nette-identity-doctrine", "I am new to the Nette Framework and have no experience with URL rewriting so I apologize for my question .", "I am using Nette Framework 2.2.1 and BootStrap 3 on Wamp 2.5 Win7 .", "Now I will have to create composer.json file for nette and place it where", "ran composer create-project nette sandbox myproject and it is fine now .", "then I placed the project file in vendor nette application src to no avail .", "I have a problem with an exception nette-ajax extension in IE8 .", "I know that there is a method new Nette Neon Neon - decode NEON FILE PATH but I don t think that this is the right way .", "just go to the htdocs directory and run the composer create-project nette sandbox myprojectname command it will create a new subdirectory called myprojectname and there will be a copy of nette sandbox and all its dependencies .", "with composer.json and composer.lock already in there json is get from the repo github.com nette sandbox https : github.com nette sandbox and lock file is generated during the create-project command .", "there is nette driver https : github.com Arachne Codeception which does exactly the same think as PresenterTester :", "I am using nette and when I want to connect I get error .. . .. . PDO : : construct : Premature end of data mysqlnd wireprotocol.c : 553 .. . .. . I am using nette framework with this db config : .. . .. . When I have tried classic connection it is working correctly .", "I Use Nette 2 in my project and I also use .latte template system with AJAX .", "Probably link-to that github project with readme would be better link https : github.com Carrooi Nette-Favorites .", "Nette Database is quite powerful https : doc.nette.org en 2.3 database-selection and it can build the query for you .", "drahak Restful offers you more options but for simple apis I would also suffest Nette-RestRoute .", "This requires me to remove the existing spans produced by ApiGen using the Nette replaceRE filter .", "How can i do a very simple join in nette database resulting in a query like this", "If you need more complex join you should better use Dibi instead of Nette Database .", "I believe in nette should be some good system solution how to reload select s values in a corresponding presenter .", "if you want to try nette sandbox you don t need to create composer.json file by yourself .", "I am trying use Nette Application UI without parenthesis to access Presenter.php - one of the library files under UI .", "What the different between method action and render. . forexample i have this two method actionOut and renderOut in the Homepage Presenter when i route it it nette cannot make any different between two. .", "enter image description here http : i.stack.imgur.com otpC4.gif .. . .. . all needed fonts are in folder C : wamp www nette www fonts .. . .. . .htaccess is located in C : wamp www nette www with content .. . .. . C : wamp www nette www bootstrap.min.css contains .. . .. . Apache error-log : .. . .. . Wed Jul 16 11 : 55 : 01.004757 2014 core : error pid 3812 : tid 788 OS 5 Access is denied .", "But in css file is @font-face font-family : Glyphicons Halflings src : url . . fonts .. . so bootstrap css expects all fonts in folder C : wamp www nette fonts one level above .. . .. . You can move css file to folder like C : wamp www nette www styles C : wamp www nette www css or something like that so path to fonts will match or change paths in css file .", "Thanks JackDavis I asked the same question on Nette Forum and a guy figured it out to clear my Cache and it done work for me .", "I am trying to render a form using Nette Forms https : doc.nette.org en 2.3 forms where the field types are stored in the database .", "It s true maybe it is on new question but what a plugin would I use for DataGrid - sorting paging my filter for Nette and Doctrine 2", "requirejs in layout.latte base template : .. . .. . in basePath variable in Nette framework is always the root of the app regardless of further parameters - in this case testapp .. . .. . app.js .. . .. . dir structure : .. . .. . This is as far as I have get .", "Before you started with nette you also had some kind of backend functionality for generating filtered option lists didn t you", "I m not familiar w Nette but I think you want to look for an option or alternative to - where that allows you to do an IN clause instead of", "How I did to correct this : .. . .. . Removed xampp altogether cleared composer cache and installed wamp this time and created project for nette sandbox .", "I updated to PHP 7 at my localhost but since then anytime i want to redirect from one page to another in my nette application I ll receive error : 500 - Internal Server Error .", "If you mean : data-nette-confirm-cancel-class btn-success and class btn btn-danger It is style of modal it self so accept and cancel-button", "For this I need two things : .. . .. . Access to nette form fields from component before form is posted .. . Manualy start validation for selected form fields .. . .. . Can you help me how can I do this", "The problem is mainly in that https : github.com Carrooi Nette-Favorites blob d415319e3f625c6f7610c6f9bae052004fd22232 src Model Facades FavoriteItemsFacade.php L97 method which should return FavoriteItem by User and IFavoritableEntity which in our example will be Article .", "Right this is the syntax of nette db- query instead of writing complicate PDO this syntax make it a bit more simple with same effect in general what it does it send query first part between and and then replace question marks", "And yes translating SQL query to nette only to be translated bask seems useless but I m trying to invest some time that would pay of in the long run with more complicated query constructions .", "You do not need join in this case Nette provide you relationship between tables so you can do something like this : .. . .. . I expect then in book table there is column author id which is foreign key for author table .", "What you need to do is add a new .table .DataTables call at the end of the code that handles the refresh of the snippet I m not familiar with nette so I m not sure exactly where that would occur .", "Try to run the composer create-project nette sandbox myprojectname command in any directory .. . .. . Documentation - windows installation of composer https : getcomposer.org doc 00-intro.md installation-windows", "I am using this example Bootstrap3 example https : github.com nette forms blob master examples bootstrap3-rendering.php L60 to render a form and was wondering if it was possible to add custom classnames to form input wrappers based on the control type .", "I m using Nette Framework and I have this commands in action : .. . .. . When I select 4 rows in my Grid and call this action to delete items it will generate this SQL code : .. . .. . But I need code like this to update all rows : .. . .. . Is possible to do with implode function", "The error was appearing because of object Nette Security Identity after I assigned user data into it : .. . .. . It was caused by value registered in usr array which was of type Cassandra Timestamp .", "persist http : i.stack.imgur.com 9wzfs.png .. . .. . In entity User i dont have association to MeetingLog MeetingFile .. . .. . I use nette 2.3 .. . .. . Doctrine User Entity .. . .. . If I dont use persist only merge and merge doesnt return lastInsertID inserted entity ID .. . .. . THX a lot", "Is good to MIX AngularJS with some PHP framework", ": client 127.0.0.1 : 52031 AH00132 : file-permissions deny server access : C : wamp www nette www fonts glyphicons-halflings-regular.svg referer : http : www.nette.local arts porta-quis-ligula .. . .. . I tried to set all permissions for user everyone to folder fonts but its not working anyway .", "how can i open it in webaddress", "i already try to open it with this http : localhost sandbox www homepage action it wont open .. . 2 .", "If it is ok how to generate data and in any php framework and then pass it into angular controler", "If im going to use PHP i like the slim framework with angular on top .", "See also official documentation http : tester.nette.org toc-own-php-ini : .. . .. . The Tester runs PHP processes with -n option so no php.ini is loaded not even that from etc php conf.d .ini in UNIX", "Also tester resets php environment for repeatable result .", "Be careful PHP CLI and PHP web have two different configurations so what appears while testing from command-line may be different for web .", "Try running . vendor bin tester -c etc php5 apache2 -p php --info to see which php.ini file and PHP extensions are loaded .", "It ended up that highlight.js was the wrong tool for this since ApiGen requires line numbers for source code and hljs doesn t support line numbers .", "try using magnet-module http : redmine.lighttpd.net projects lighttpd wiki Docs ModMagnet + lua http : www.lua.org docs.html script .. . .. . add magnet module to the lighttpd modules .. . .. . lighttpd virtual host example : .. . .. . create rewrite.lua file in the document root folder according to the setting above .. . .. . credit for this post goes to edke user from nette forum thread http : forum.nette.org cs 1953-routovanie-a-lighttpd .. . .. . could be worth trying also this or get inspired : http : www.guyrutenberg.com 2008 05 24 clean-urls-permalinks-for-wordpress-on-lighttpd", "I would like to have a following behavior : .. . .. . If user selects material the remaining two selects will display only values that are acceptable for products with a given material .. . Apply this to all three selects vice versa .. . .. . Before I started with nette I had been doing this using ajax and jquery javascript by dynamically changing select elements after user selected value in other select .", "Normally in apache via mod-php it works perfectly fine but if I try function exists mysqli init function does not exist .", "Far better to make a webpage with the following in it : php phpinfo It s plausible mysqli is not configured for CLI on your server but is for web .", "Note : This example uses PresenterTester https : packagist.org packages besanek presenter-tester tool to get the response but the important part is about working with that response so it doesn t matter whether you get it by native means or by this tool .", "it would point to presenter product -- renderDetail this magic route is known in other framework and i think for some reason it would make complicated if i would type every single action presenter redirection on routelist array .. . .. . thanks in advance ." ] }
{ "confidence": [ 62.22257995605469, 59.609893798828125, 57.491485595703125, 56.10121536254883, 55.15521240234375, 53.01810836791992, 52.641517639160156, 51.474300384521484, 50.6355094909668, 50.06328582763672, 50.02316665649414, 49.23977279663086, 48.491722106933594, 47.71213912963867, 47.65165328979492, 47.533668518066406, 46.76524353027344, 46.511051177978516, 45.64748001098633, 45.50609588623047 ], "content": [ "Question : I would like to have some type of automatic checking of coding standards for PHP Nette Framework http : nette.org is there anything like this Standalone application or plugin for Eclipse http : eclipse.org Netbeans http : netbeans.org .. . For example to check Java code I use Checkstyle http : checkstyle.sourceforge.net . Or can Checkstyle also check Nette Comment : stackoverflow.com questions 5261232 http : stackoverflow.com questions 5261232 checkstyle-for-php-as-eclipse-plugin Comment : PHPCodesniffer http : pear.php.net package PHP CodeSniffer PHPMD http : phpmd.org etc . .. . Answer : Most up-to-date tool is https : github.com nette code-checker it s extracted from https : github.com nette tools .", "Question : Is Nette PHP framework is suitable for creation of RESTful API in PHP I cannot find a proper documentation apart IAuthenticator .. . .. . Does Nette offer support RESTful If no does exist some stable extensions Does Nette offer support for token authentication I notice cookies is the default using SimpleAuthetication . .. . Answer : I am currently using Nette-RestRoute https : github.com newPOPE Nette-RestRoute . Taken from description it Automatically maps REST actions to Presenters and actions in the defined module . Usage is pretty straightforward so I would recommend it . Comment : drahak Restful offers you more options but for simple apis I would also suffest Nette-RestRoute . I used it right now for internal communication between apps and it works just fine :", "Question : I would like to have some type of automatic checking of coding standards for PHP Nette Framework http : nette.org is there anything like this Standalone application or plugin for Eclipse http : eclipse.org Netbeans http : netbeans.org .. . For example to check Java code I use Checkstyle http : checkstyle.sourceforge.net . Or can Checkstyle also check Nette Comment : stackoverflow.com questions 5261232 http : stackoverflow.com questions 5261232 checkstyle-for-php-as-eclipse-plugin Comment : PHPCodesniffer http : pear.php.net package PHP CodeSniffer PHPMD http : phpmd.org etc . .. . Answer : There is Nette code checker here : https : github.com nette tools .. . .. . You can also try this CodeSniffer standard written : https : github.com juzna nette-coding-standard", "Question : Is it possible to create magic route with nette route what i mean of magic route is i dont need to declare any route array on routelist.. . but when i type address on browser address-bar such as : http : somesite.com product detail 123 . it would point to presenter product -- renderDetail this magic route is known in other framework and i think for some reason it would make complicated if i would type every single action presenter redirection on routelist array .. . .. . thanks in advance . .. . Answer : Route from Mat j is working . You just need to type SomePresenter : : actionTwoWords as some two-words in url . But don t construct urls by hand use link macro in latte templates or Nette Application LinkGenerator in code . Comment : what matej sugget that i need to type all my presenter action to route. . yes it would works but it would not called magic route but manual route... . by the way . Comment : If you asking if Nette will work without routes at all it will not . You need to have at least one route defined . That s why this basic route which acts like you want I think is present in sandbox : github.com nette sandbox https : github.com nette sandbox Comment : ok that seem works thanks mate", "Question : Is Nette PHP framework is suitable for creation of RESTful API in PHP I cannot find a proper documentation apart IAuthenticator .. . .. . Does Nette offer support RESTful If no does exist some stable extensions Does Nette offer support for token authentication I notice cookies is the default using SimpleAuthetication . .. . Answer : I have used drahak Restful https : github.com drahak Restful long time ago . Last commit was 2 months ago so you should not have any problems . It provides you with more advanced router OAuth2 and another tools to help you with building your API . Also there was workshop on posobota http : posobota.cz . Sources from API workshop can be found in fprochazka workshop-rest-api-sandbox https : github.com fprochazka workshop-rest-api-sandbox repository on GitHub . Let me know if it works fine for you", "Question : null .. . Answer : Is good to MIX AngularJS with some PHP framework I use Nette and I want to generate webpage and pass data into HTML using Nette and then work with Data using Angular is this even possible Or is this good practise I know thath Angular is best for web apps i can use routing and fetch data from server using ajax but.. . What if I want to do it in my way Is this good idea If it is ok how to generate data and in any php framework and then pass it into angular controler Thanks .. . .. . Filip . Comment : AJAX and PHP API endpoints are a standard way of delivering data to the client . If im going to use PHP i like the slim framework with angular on top .", "Question : I am using Nette Framework 2.2.1 and BootStrap 3 on Wamp 2.5 Win7 . I am not able to load glyphicons in browser error 403 Forbidden . what browser sees enter image description here http : i.stack.imgur.com otpC4.gif .. . .. . all needed fonts are in folder C : wamp www nette www fonts .. . .. . .htaccess is located in C : wamp www nette www with content .. . .. . C : wamp www nette www bootstrap.min.css contains .. . .. . Apache error-log : .. . .. . Wed Jul 16 11 : 55 : 01.004757 2014 core : error pid 3812 : tid 788 OS 5 Access is denied . : client 127.0.0.1 : 52031 AH00132 : file-permissions deny server access : C : wamp www nette www fonts glyphicons-halflings-regular.svg referer : http : www.nette.local arts porta-quis-ligula .. . .. . I tried to set all permissions for user everyone to folder fonts but its not working anyway . .. . Answer : You have fonts in C : wamp www nette www fonts .. . .. . and css file in the same folder C : wamp www nette www as folder fonts C : wamp www nette www bootstrap.min.css . But in css file is @font-face font-family : Glyphicons Halflings src : url . . fonts .. . so bootstrap css expects all fonts in folder C : wamp www nette fonts one level above .. . .. . You can move css file to folder like C : wamp www nette www styles C : wamp www nette www css or something like that so path to fonts will match or change paths in css file . I recommend the first way .", "Question : I m looking for some unobtrusive ajax solution for Laravel . for example Nette Framework has implemented own ajax workflow to do this . but laravel doesn t provide anything like this .. . .. . Edit : Of course i know that i can do that with jQuery and JsonResponse but question is if there sofiscitated solution .. . Answer : You are looking for https : github.com whipsterCZ laravel-ajax .. . .. . It does exactly what you want and much more I assume that you want to send some ajax request and you want to redraw some updated content after response .. . .. . its quite simple Blade Template .. . .. . Laravel action .. . .. . You don t have to render whole page you can just replace or append some html by ID. . it can do almost everything : Comment : If you are familiar with Nette Framework you are at home.. . this is inspired by Nette : It is basically AJAX Workflow for Laravel .", "Question : I am using Nette Framework 2.2.1 and BootStrap 3 on Wamp 2.5 Win7 . I am not able to load glyphicons in browser error 403 Forbidden . what browser sees enter image description here http : i.stack.imgur.com otpC4.gif .. . .. . all needed fonts are in folder C : wamp www nette www fonts .. . .. . .htaccess is located in C : wamp www nette www with content .. . .. . C : wamp www nette www bootstrap.min.css contains .. . .. . Apache error-log : .. . .. . Wed Jul 16 11 : 55 : 01.004757 2014 core : error pid 3812 : tid 788 OS 5 Access is denied . : client 127.0.0.1 : 52031 AH00132 : file-permissions deny server access : C : wamp www nette www fonts glyphicons-halflings-regular.svg referer : http : www.nette.local arts porta-quis-ligula .. . .. . I tried to set all permissions for user everyone to folder fonts but its not working anyway . .. . Answer : Check that your font files are readable by the user apache is running as . It s important that the font files themselves be readable in addition to the directory they are in . Comment : worked for me", "Question : How can i do a very simple join in nette database resulting in a query like this I have found endless tutorials on how to join combined with where clausules order by group-by and what not but not single tutorial on a simple join like this . I forgot to specify I use PHP so i need something like context- table Book - join author but that of course doesn t work . Comment : I have tried using some condition that is always true but that returns only data from the joined table author in this case . And yes translating SQL query to nette only to be translated bask seems useless but I m trying to invest some time that would pay of in the long run with more complicated query constructions . .. . Answer : Question is already answerred so I only add one note . You can t do join using Nette Database there is no join function . You can enforce join by referencing another table column in order for example but it s pretty limited . If you need more complex join you should better use Dibi instead of Nette Database .", "Question : I have problem with DataTables working alongside Nette . My JavaScript code : .. . .. . HTML Nette : .. . .. . It normally works but when the Nette snippet is refreshed DataTables elements pages order etc . are removed . If the page is refreshed these elements return . I am using Nette Framework 2.3 and Doctrine 2 . .. . Answer : The DataTable is created from the HTML on the document .ready event which happens when the page is loaded . If you refresh the snippet without refreshing the webpage the DataTable is lost and it doesn t get re-created since that event hasn t been triggered again . What you need to do is add a new .table .DataTables call at the end of the code that handles the refresh of the snippet I m not familiar with nette so I m not sure exactly where that would occur . Comment : Yes I tried it and it s working but I would like if I add new row to table and re-created DataTables It remember my choice which set incl . set page Comment : @ondrusu The issue with that is that you re creating a DataTable from an HTML table and then refreshing the HTML table . If you were AJAX sourcing your data this would be easy to do but since DataTables gets your data from the HTML you won t be able to add a new row to DataTables and refresh the HTML . You ll have to add rows directly to HTML which means you can t use DataTables .add method to add rows . Comment : OK thank you very much . It s true maybe it is on new question but what a plugin would I use for DataGrid - sorting paging my filter for Nette and Doctrine 2 I found data-grid http : grid.mesour.com version2 basic without-settings .", "Question : I am trying to install Nette2.3.1 using Composer on XAMPP . In c : x php folder I run this command : .. . .. . When I do this getting following error : .. . .. . Seld JsonLint ParsingException c : x php php.exe does not contain valid JSON Parse error on line 1 : MZ Expected one of : STRING NUMBER NULL TRUE FALSE .. . .. . I tried all these options to no avail : .. . .. . 1 . removed the project directory and tried .. . 2 . ran this command inside htdocs folder .. . 3 . ran this through PHP JetBrains console .. . 4 . made sure that the Composer version is the latest one .. . .. . What was wrong This was what went wrong : .. . .. . 1 . I installed xampp while anti-virus is running - i got a warning but chose to ignore that . Consequently php.exe was corrupted and messed up the whole thing for me . 2 . PATH variables under my user wasn t updated with php.exe path . Though system variable is updated it is still a mystery to me why this became an issue . How I did to correct this : .. . .. . Removed xampp altogether cleared composer cache and installed wamp this time and created project for nette sandbox . This worked fine . In all fairness xampp would have worked as well had I installed it with av disabled and PATH variables properly updated . Comment : This command works fine for me.. . maybe there s something wrong with your Composer installation . Are you running the latest version composer --version Try composer selfupdate . Or maybe try to get fresh version from getcomposer.org download or use stand-alone phar composer.. . Comment : @Ondra how do i use stand-alone phar composer Comment : You can download phar from getcomposer.org download https : getcomposer.org download - Manual Download section . Download the file and save it somewhere . Then you navigate in command-line to the file cd c : somewhere elsewhere and run it as it was plain PHP file i.e . php composer.phar --version . You might need to use complete path to PHP if your PATH is broken or wrongly set i.e . c : x php php.exe composer.phar --version .. . Answer : I think your composer PATH or shortcut batch-file is kind of broken because it tries to read the php.exe file as a JSON file . Try to remove composer completely and start with a clean install .. . .. . 1 . Download and install composer using the automated installer https : getcomposer.org Composer-Setup.exe . It sets up the PATH for you so you can just call composer from anywhere . 2 . Close the command-line terminal and start a new one important . 3 . Try to run the composer create-project nette sandbox myprojectname command in any directory .. . .. . Documentation - windows installation of composer https : getcomposer.org doc 00-intro.md installation-windows Comment : Thanks Samuel . Yes apparently php.exe is also corrupt . While installing xampp I chose to ignore the warning that antivirus is running during the installation and that might create problems later . Now I uninstalled xampp disabled av and ran xampp installation again added path-variables . both PHP and Composer are running fine on command-line . Now I will have to create composer.json file for nette and place it where-in the project folder under htdocs or www in wamp In which case should I change directory of the comand line to the project folder and run composer create project command Comment : if you want to try nette sandbox you don t need to create composer.json file by yourself . just go to the htdocs directory and run the composer create-project nette sandbox myprojectname command it will create a new subdirectory called myprojectname and there will be a copy of nette sandbox and all its dependencies . with composer.json and composer.lock already in there json is get from the repo github.com nette sandbox https : github.com nette sandbox and lock file is generated during the create-project command . and you are done check the localhost myprojectname www http : localhost myprojectname www Comment : yeah now it is working fine - i removed xampp and installed wamp instead . ran composer create-project nette sandbox myproject and it is fine now . Thanks a lot to everyone . Comment : I am trying use Nette Application UI without parenthesis to access Presenter.php - one of the library files under UI . My project file in which this expression is used is in the project root folder . But i am getting error that use couldn t be analyzed . the given path is not being resolved . then I placed the project file in vendor nette application src to no avail . What am I doing wrong", "Question : I have small application based on Nette framework . I ve created constants.neon file and add it to container . There will be some data which should be available from presenters models forms etc . How can I access to values in constants.neon I know that there is a method new Nette Neon Neon - decode NEON FILE PATH but I don t think that this is the right way . I suspect that after using addConfig .. . in bootstrap.php all data from those config files should be available all over the system . My constants.neon file : .. . .. . Thanks .. . .. . UPDATE 1 .. . .. . Figured out that I ve used wrong format of .neon file . .. . Answer : To complete Jan s answer here s how you pass your config parameters to a model . Make your model class expect it as a constructor parameter : .. . .. . Then register your model as a service in config Neon : .. . .. . When you inject that model into your presenter : .. . .. . it will automatically receive your constants when instantialized .", "Question : I m using Nette Framework and I have this commands in action : .. . .. . When I select 4 rows in my Grid and call this action to delete items it will generate this SQL code : .. . .. . But I need code like this to update all rows : .. . .. . Is possible to do with implode function Thank you . edit : when I made this : .. . .. . it will do this : Comment : I m not familiar w Nette but I think you want to look for an option or alternative to - where that allows you to do an IN clause instead of .. . Answer : you can directly pass the array in the where function it will be transformed to a id IN 1 2 3 xxx automaticaly . Refs : http : doc.nette.org en 2.2 database-selection toc-filtering", "Question : How can i do a very simple join in nette database resulting in a query like this I have found endless tutorials on how to join combined with where clausules order by group-by and what not but not single tutorial on a simple join like this . I forgot to specify I use PHP so i need something like context- table Book - join author but that of course doesn t work . Comment : I have tried using some condition that is always true but that returns only data from the joined table author in this case . And yes translating SQL query to nette only to be translated bask seems useless but I m trying to invest some time that would pay of in the long run with more complicated query constructions . .. . Answer : You do not need join in this case Nette provide you relationship between tables so you can do something like this : .. . .. . I expect then in book table there is column author id which is foreign key for author table .", "Question : I updated to PHP 7 at my localhost but since then anytime i want to redirect from one page to another in my nette application I ll receive error : 500 - Internal Server Error . I was searching through stack-overflow and found a problem that is quite similar to mine here : How to solve mod fastcgi.c.2566 unexpected end-of-file perhaps the fastcgi process died when calling .php that takes long time to execute http : stackoverflow.com questions 11769543 how-to-solve-mod-fastcgi-c-2566-unexpected-end-of-file-perhaps-the-fastcgi-pro . However I don t work with large-files and my connection dies immediately . My var log lighttpd error.log .. . .. . My etc lighttpd lighttpd.conf .. . .. . My etc lighttpd conf.d fastcgi.conf .. . .. . Variables from etc php php.ini .. . .. . Update 7.3.2016 .. . .. . I switched from php fast cgi to php-fpm and interesting thing is that problem prevails but is less often . Sometimes the redirect jump to 500 and sometimes not . And error-log again : .. . Answer : Also try to delete Nette cache first . Comment : Deleting of nette cache won t help :", "Question : I am new to Nette http : nette.org en framework I have done everything correctly but it shows the following warning .. . .. . enter image description here http : i.stack.imgur.com YgZCk.jpg .. . .. . My Files Look like this enter image description here http : i.stack.imgur.com eHdFe.jpg .. . .. . Any Help will be greatly appreciated . Thanks Comment : Hello did you try to clean cache temp cache if it did not help what are your routes app bootstrap.php Comment : Thanks JackDavis I asked the same question on Nette Forum and a guy figured it out to clear my Cache and it done work for me . .. . Answer : I got the Solution I just applied this command composer dump-autoload in command-prompt which clears the cache : -", "Question : I am trying to create form wizard in nette 2.1.2 . I ve created my own component in which nette form can be injected . Then in latte template is form rendered to individual steps . However I want to perform validation of form fields in the current step before switching from this step to another . For this I need two things : .. . .. . Access to nette form fields from component before form is posted .. . Manualy start validation for selected form fields .. . .. . Can you help me how can I do this .. . Answer : The usual solution is to create form component for each step of your wizard . This form components should be as you already did wrapped in another component . The state between steps should be saved by your component getting step results should be done as usual as is described in doc http : doc.nette.org en 2.1 forms . Comment : Thank you I ll give it a try .", "Question : I have form-for searching through products that encapsulates three selects : material weight and color . These selects contain values from database . I would like to have a following behavior : .. . .. . If user selects material the remaining two selects will display only values that are acceptable for products with a given material .. . Apply this to all three selects vice versa .. . .. . Before I started with nette I had been doing this using ajax and jquery javascript by dynamically changing select elements after user selected value in other select . I believe in nette should be some good system solution how to reload select s values in a corresponding presenter . Can you help me please Comment : Before you started with nette you also had some kind of backend functionality for generating filtered option lists didn t you You will at least have to use still few JavaScript for triggering actions on select events . .. . Answer : Just look into the documentation of nette . In my opinion this is what you are searching for : http : pla.nette.org en dependent-form-select-with-ajax .. . .. . You can write handles for select changes and in those handles load to form remaining selects . No messy work with javascript .", "Question : I have small application based on Nette framework . I ve created constants.neon file and add it to container . There will be some data which should be available from presenters models forms etc . How can I access to values in constants.neon I know that there is a method new Nette Neon Neon - decode NEON FILE PATH but I don t think that this is the right way . I suspect that after using addConfig .. . in bootstrap.php all data from those config files should be available all over the system . My constants.neon file : .. . .. . Thanks .. . .. . UPDATE 1 .. . .. . Figured out that I ve used wrong format of .neon file . .. . Answer : If you store the constants inside parameters array in the neon file you will be able to access it from presenter s context https : api.nette.org 2.4 Nette.Application.UI.Presenter.html m 24context like this : .. . .. . Neon file : .. . .. . Please note that this might not be recommended approach . For more information see how to use presenter as a service https : doc.nette.org en 2.4 di-usage toc-presenter-as-a-service . Comment : Thanks this works fine for me BTW is it possible to get the same result but using custom.neon file which is added to container by addConfig Comment : This should work with any file as long as you add it to container ." ] }
[ "yes-answer-long", "yes-answer-short" ]
web
UNK_RELATION
emgucv@image-processing@66
emgucv -- emgu cv is a cross-platform .net wrapper to the opencv @placeholder library .
{ "confidence": [ 52.38371276855469, 47.08687210083008, 46.05227279663086, 45.18482208251953, 40.20534896850586, 39.45586395263672, 37.392822265625, 36.9563102722168, 36.89487075805664, 36.88823699951172, 36.049781799316406, 36.020782470703125, 35.94711685180664, 35.866817474365234, 35.866817474365234, 35.8283576965332, 35.27539825439453, 35.26914978027344, 35.26914978027344, 34.903709411621094, 34.87275695800781, 34.871829986572266, 34.77081298828125, 33.977996826171875, 33.93311309814453, 33.821407318115234, 33.817386627197266, 33.817386627197266, 33.817386627197266, 33.817386627197266, 33.78839111328125, 33.78839111328125, 33.74939727783203, 33.74939727783203, 33.5631103515625, 33.54916763305664, 33.51240921020508, 33.51240921020508, 33.50768280029297, 32.493080139160156, 32.31869888305664, 32.21137619018555, 31.699962615966797, 31.699962615966797, 31.60909652709961, 31.607864379882812, 31.518238067626953, 31.410232543945312, 31.40127182006836, 31.40127182006836, 31.28034019470215, 31.2238826751709, 31.18899917602539, 31.158966064453125, 31.050479888916016, 31.04131317138672, 31.04131317138672, 30.924026489257812, 30.889163970947266, 30.889163970947266, 30.88657569885254, 30.866931915283203, 30.65229034423828, 30.645986557006836, 30.61432456970215, 30.423690795898438, 30.345901489257812, 30.345901489257812, 30.25592041015625, 30.25592041015625, 29.85800552368164, 29.85800552368164, 29.762348175048828, 29.736858367919922, 29.49225616455078, 29.22164535522461, 28.923892974853516, 28.80900764465332, 28.78617286682129, 28.753726959228516, 28.753726959228516, 28.466100692749023, 28.420394897460938, 28.15728759765625, 27.740581512451172, 27.70306396484375, 27.64492416381836, 27.5698299407959, 27.334407806396484, 27.301959991455078, 27.301959991455078, 27.301959991455078, 27.301959991455078, 27.301959991455078, 27.301959991455078, 27.301959991455078, 27.301959991455078, 27.301959991455078, 27.301959991455078 ], "content": [ "I m exploring the opencv 3 library Emgu CV .", "I m using EMGU CV library .", "After all EMGU is simply OpenCV library with a c wrapper .", "I m using the EmguCV 3.0.0 wrapper to the OpenCV 3.0 library .", "I m implementing a Pedestrian detection system using emgu cv library .", "I m new to opencv and using EMGU as wrapper in C .", "My emgu cv is 3.0.0.2157", "since he s tagged it emgu it s probably emgucv .", "you can check this thread to find more about matrices in EmguCV stackoverflow.com questions 7197153 work-with-matrix-in-emgu-cv http : stackoverflow.com questions 7197153 work-with-matrix-in-emgu-cv", "Emgu http : www.emgu.com wiki index.php Main Page is a managed wrapper for OpenCV .", "I m using C in combination with the ocv wrapper emgu cv .", "I am working on a C project which requires OpenCV wrapper EmguCV .", "We are building a web application C .NET that uses unmanaged libraries in the form of the Emgu opencv wrapper .", "Or how is this function called in emgu cv", "Or is there really no blob detection in emgu cv", "I m a newbie to EMGU and all of the samples I found on the net are in C++ or C . Are there any samples using C and Emgucv", "Emgu CV for development .", "how can i find holes in emgu cv", "when I try to use Emgu CV .", "My Emgu CV version is 3.1.0.2282 .", "I need to use the VideoWriter class of Emgu CV library in order to capture a screen at real-time .", "I am using The sobel operator to detect edges in a grayscale image with EmguCV 3.0 the .NET Wrapper for OpenCV .", "I have also looked at EMGU C wrapper for OpenCV .", "This tutorial seems to be describing your problem and the fix http : fewtutorials.bravesites.com entries emgu-cv-c -emgu-cv-invoke-threw-an-exception-solution", "i think version of EmguCV and opencv important for solution .", "Install this version of EmguCV which creates a folder EMGU in C : .. . 2 .", "How do I enable CUDA for Emgu CV", "surf algorithm is included in Emgu CV 3.1 or not", "please Explain in detail am new in Emgu CV .", "I have a desktop app that uses Emgu CV .", "I m using a Unity Pro 4.0 .. . This version of Emgu CV emgucv-windows-universal-gpu 2.4.9.1847 .. . My target for unity project is : windows and not web player", "I ve written a simple example to see how Emgu CV works with WPF EmguCV 3.1.0 and Visual Studio 2015 Enterprise for students .", "Emgu cv is very poorly documented .", "EMGU CV is very poorly documented", "Just use emgucv or a similar library .", "To install EmguCV in Unity I ve just followed the steps described by this guy on the following link : http : forum.unity3d.com threads 182600-OpenCV- EMGUCV-wrapper -integration-in-Unity", "I m working on computer screen detection using emgucv a c opencv wrapper .", "I have written a program in C using EmguCV wrapper of openCV .", "I m attempting to translate the following OpenCV C++ code into Emgu CV 3 : .. . .. . I can find some Emgu CV 3 examples that use null for the 3rd parameter to findContours for example doing it that way here would be a Visual Basic translation : .. . .. . Which works if the hierarchy parameter is not needed but what if it is", "how can i get these boundaries in emgu cv please any help", "For Emgu CV version 2.1 this means the following dlls : cvXXX.dll cvauxXXX.dll cxcoreXXX.dll highguiXXX.dll opencv ffmpegXXX.dll mlXXX.dll and cvextern.dll where XXX is the OpenCV version number .", "I m actually using OpenCV through EmguCV wrapper in C and this one line speeded my program for about 40 .", "I am doing project in Emgu cv in C .", "I am using Emgu CV v2.4 with C .", "same code I run correctly from a year ago One new thing in this project that I am using latest version of Emgu CV library", "I m using the latest version of Emgu CV but it doesn t detect CUDA on the system even in Emgu samples Emgu.CV.Cuda.CudaInvoke.HasCuda is always false .", "I am new to opencv emgucv and SO .", "Sorry but this is not possible with EMGU and the OpenCV reference is not applicable .", "I am using Emgu CV 3.1 Library in C and Visual Studio 2015 .", "Here is my piece of code of C with Emgu Cv library .. . .. . I changed parameteres of the function but still it is not enough .", "I was using EmguCV 2.4.9 and .Net framework 4.5 .", "I m trying to get the Motion Detection Emgu CV example https : github.com artemisvision emgu openCV tree master Emgu.CV.Example MotionDetection mentioned in the answer to Looking for a function for motion-detection on emgucv http : stackoverflow.com a 18403594 575530 working .", "I recommend C++ D . I found these online in case you missed them : 1 http : answers.opencv.org question 13289 opencv-vs-emgu 2 http : stackoverflow.com q 7881120 5008845 3 https : www.quora.com Which-NET-wrapper-for-OpenCV-should-I-use-EmguCV-or-OpenCvSharp", "As for the comments EMGU is written in C and while appreciate your view on not calling EMGU OpenCV why should it not be tagged as an OpenCV orientated question .", "In my case unmanaged dlls are at C : Emgu emgucv-windows-universal-cuda 2.9.0.1922 bin x86", "I m using Emgu CV 2.1 and want to have a simple blob detection .", "Then I use reprojectImageTo3D method in Emgu Cv to get disparity map .", "I can t seem to figure the Emgu CV 3 syntax equivalent for the C++ line .. . .. . Anybody else gotten this to work", "When using EmguCV you usually use another library to access the Kinect .", "Finally I managed to solve the problem by using Leptonica library in EmguCV .", "If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll .", "I want to cut a sub-purt of an image or crop it using Emgu CV or OpenCV and calculate average color of that part looking for changes .", "I found a lot of codes which perform optical flow in Open CV or older version of Emgu CV .", "Also since I am mostly using Emgu Cv library for the rest of my app Can we simply use it for calling the On-screen keyboard", "Maybe the library got refactored and this example do not work now with EMGUCV 3.1 .. . .. . Can someone with experience with emgucv post the correct code", "I would like to use for this LBP method but LBP method in library OpenCV and EmguCV is still not supported for windows-phone-8.1 .", "in Emgu CV there is no such .dll exist like opencv calib3d2410.dll", "I ve installed Emgu CV for Windows x64 .", "I just started to learn Emgu and OpenCV .", "I am using the latest opencv and emgu .", "I wish the emgucv people would stop tagging calling it opencv .. .", "Most things in EmguCV OpenCV are still done with the Image TColor TDepth classes", "I have found many resources on OpenCV useful for EMGU and vice versa .", "I am using Open CV library s .NET Wrapper for C i.e .", "I found different costly packages at asset store but i can t use it i.e . I want to try it myself and found EmguCV http : www.emgu.com wiki index.php Main Page that provide openCV wrapper in .net .", "I have checked the wrapper for opencv that we are using opencvsharp but it doesn t seem to have perspective warp yet though emgu seems to .", "Update : .. . Still struggling can t get Emgu CV to work .", "Also have the same problem with you in using MorphologyEx of Emgu CV 3.0 .. . I found this test code in the Github https : github.com neutmute emgucv blob master Emgu.CV.Test AutoTestVarious.cs .", "For Emgu CV version 2.2 this means the following dlls : opencv calib3dXXX.dll opencv contribXXX.dll opencv coreXXX.dll opencv features2dXXX.dll opencv highguiXXX.dll opencv imgprocXXX.dll opencv legacyXXX.dll opencv mlXXX.dll opencv objectdetectXXX.dll opencv videoXXX.dll where XXX is the OpenCV version number .", "If I take the above steps with the motion-detection example as it installs with Emgu CV i.e .", "Well I don t know Emgu Cv but I think what Robert Harvey says is right .", "from C : Emgu emgucv-windows-universal-gpu 2.4.9.1847 Emgu.CV.Example MotionDetection instead of http : github.com artemisvision emgu openCV tree master Emgu.CV.Example MotionDetection then it works .", "Other solution might be using opencv universal gpu version for now is alpha 2.4.9 link : http : sourceforge.net projects emgucv files emgucv 2.4.9-alpha", "You have tagged this question in EmguCV but the code i see is not of emgucv why are you just not using the capture object to read manipulate the image if you intend to write EMGU code", "It s basically just from the examples given in EmguCV and OpenCV .", "To use the 64-bit version of Emgu you will need to download a version compiled for 64-bit you can see the different options here http : sourceforge.net projects emgucv files emgucv 2.4.2 and then set the Platform target to x64 .", "Emgu openCV is exposed and working in a console app but not an MVC site .", "It s been recommended that I use Emgu CV for unit tests .", "I only skimmed over this but it might help you out stackoverflow.com questions 11424466 http : stackoverflow.com questions 11424466 how-to-detect-triangle-edge-in-opencv-or-emgu-cv", "Using Emgu CV I have extracted a set of closed polygons from the contours in an image of a road network .", "But in Emgu CV I can only find a way to get the Voronoi diagram of a set of points .", "I m also open to other suggestions for how to acheive this without using Emgu CV .", "Can you help me with non-maxima suppression - how would I achieve this in Emgu CV", "You can add Emgu CV dlls and use them both together to gain your goal .", "http : stackoverflow.com questions 7150940 emgu-cv-and-the-official-microsoft-kinect-sdk .. . .. . Hope this helps", "I am new to emgu cv I m trying to find a code that makes motion-detection .", "You should paste opencv imgproc220.dll if you use emgu cv 2.2.1.1150 to your project bin debug folder .", "I would like to ask you to help me with getting all the frames from video file using Emgu CV .", "I m building an image-processing application using Emgu CV for x64 and I want to use the filtering functions on images ." ] }
{ "confidence": [ 66.9454345703125, 59.0123291015625, 58.41981887817383, 58.149085998535156, 58.14223861694336, 57.76705551147461, 57.13621139526367, 57.134437561035156, 57.035003662109375, 56.27082824707031, 55.32189178466797, 54.670433044433594, 53.15393829345703, 51.85625457763672, 50.956485748291016, 50.45806884765625, 49.97279357910156, 49.19211196899414, 49.157798767089844, 47.503353118896484 ], "content": [ "Question : I m building an image-processing application using Emgu CV for x64 and I want to use the filtering functions on images . So I use opencv imgproc.dll but it throws BadImageFormatException http : msdn.microsoft.com en-us library system.badimageformatexception.aspx Comment : Have you seen stackoverflow.com questions 5229310 http : stackoverflow.com questions 5229310 system-badimageformatexception-could-not-load-file-or-assembly Comment : yes all the comments talk about a x64 vs x84 issue i tried changing it before to x64 or AnyCPU but it throw Emgu.CV.CvInvoke exception when i use Emgu CV basic functions Comment : Can you show the exception stack-trace for that error Also where are the OpenCV DLLs located in your solution From memory Emgu expects these to be in a certain location . Comment : @NickW it located @ the bin folder next to the .exe other .DLLs work just fine you want me exception stack for the BadImageFormatException Comment : Could you include the stack traces for both errors .. . Answer : Emgu http : www.emgu.com wiki index.php Main Page is a managed wrapper for OpenCV . Because OpenCV is unmanaged you will need to ensure that you are compiling with the correct settings for the version of Emgu you are using . Based on the exceptions posted in the comments http : pastie.org 5170481 and http : pastie.org 5170499 for reference the Emgu version being compiled against is the x86 one meaning that the OpenCV DLLs it depends on will need to be compiled for 32-bit . For your code to run the Platform target in the Build settings of you project needs to be set to x86 regardless of the bitness of the OS you are running on . To use the 64-bit version of Emgu you will need to download a version compiled for 64-bit you can see the different options here http : sourceforge.net projects emgucv files emgucv 2.4.2 and then set the Platform target to x64 .", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : I have installed OpenCv2.3.1 before and yesterday i installed the last version of EmguCV3.0 also tried 2.9 but it gave that error . all the solutions that i tried didn t work than I installed EmguCV 2.3 and its solved . i think version of EmguCV and opencv important for solution .", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : Copy and paste all the unmanaged dlls in the bin folder of your EMGU installation to where your exe file is Release or Debug folder of your project folder . In my case unmanaged dlls are at C : Emgu emgucv-windows-universal-cuda 2.9.0.1922 bin x86", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : For Emgu CV version 2.1 this means the following dlls : cvXXX.dll cvauxXXX.dll cxcoreXXX.dll highguiXXX.dll opencv ffmpegXXX.dll mlXXX.dll and cvextern.dll where XXX is the OpenCV version number . For Emgu CV version 2.2 this means the following dlls : opencv calib3dXXX.dll opencv contribXXX.dll opencv coreXXX.dll opencv features2dXXX.dll opencv highguiXXX.dll opencv imgprocXXX.dll opencv legacyXXX.dll opencv mlXXX.dll opencv objectdetectXXX.dll opencv videoXXX.dll where XXX is the OpenCV version number . copy these file and paste them in C : WINDOWS system32 .. . .. . it works with me", "Question : I m attempting to translate the following OpenCV C++ code into Emgu CV 3 : .. . .. . I can find some Emgu CV 3 examples that use null for the 3rd parameter to findContours for example doing it that way here would be a Visual Basic translation : .. . .. . Which works if the hierarchy parameter is not needed but what if it is I can t seem to figure the Emgu CV 3 syntax equivalent for the C++ line .. . .. . Anybody else gotten this to work Any help would be appreciated . .. . Answer : EmguCV started using VectorOfVectorPoint for FindContours but didn t really update their code to work correctly with it . See below for a working example : .. . .. . This returns a VectorOfVectorPoint which implements IInputOutputArray IOutputArray IInputArrayOfArrays and IInputArray . I m not sure what you need to do with the contours but here is an example of how to get the bounding boxes for each one . We do some other things so let me know what you need and I can help you .", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : I installed EmguCV 2.9 recently . 64 bit application works fine . This exception showed up when I tried to use 32-bit platform x86 . I realized that while following a tutorial to setup Emgu I had set the Path in the system environment-variables to . x64 folder . For my case it is C : Emgu emgucv-windows-universal-cuda 2.9.0.1922 bin .. . .. . To make the 32-bit application work I changed the Path variable to . x86 folder restart the computer . The draw back is 64 bit solution will no longer work . The ideal solution is to copy all the DLL files from . x86 or . x64 to where the executable locates . For my case because I am using LabVIEW + .NET DLL the LabVIEW gets a copy of the DLL into its cache folder so the temporary solution for the easy of development is to change Path variable . When I distribute the final binary executable I will copy the matching DLL files .", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : This error happened to me . I added cxcore210.dll for emgucv 2.1 version which is originally located inside the bin folder . Then this caused a new error saying that I must also include the highgui210.dll also for emgucv 2.1 version .. . .. . .. . Then the problem was solved : .. . .. . I hope it works for you too.. .", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : This tutorial seems to be describing your problem and the fix http : fewtutorials.bravesites.com entries emgu-cv-c -emgu-cv-invoke-threw-an-exception-solution", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : I had that error times and times . I was using EmguCV 2.4.9 and .Net framework 4.5 . I checked many tutorials but didn t find the answer . At the end when i put the opencv files both from version 220 and 249 it worked", "Question : null .. . Answer : What is the difference between OpenCV.NET OpenCVSharp and EmguCV They are derived from OpenCV . So what is the difference in their design implementation and application philosophies Comment : I recommend C++ D . I found these online in case you missed them : 1 http : answers.opencv.org question 13289 opencv-vs-emgu 2 http : stackoverflow.com q 7881120 5008845 3 https : www.quora.com Which-NET-wrapper-for-OpenCV-should-I-use-EmguCV-or-OpenCvSharp", "Question : I am new to OpenCV . I am using Emgu CV 3.1 Library in C and Visual Studio 2015 . I am facing a problem in reading a live video from a WebCam . I don t know why the exception occurred by Capture Constructor . I wasted my 2 days upon it . Plzzz help me and provide me a solution in Emgu CV 3.1 on Visual Studio 2015 . I got TypeInitializationException . I aslo upload the picture of exception . TypeInitializationException Is here http : i.stack.imgur.com sSTqx.png .. . .. . Comment : I had a similar problem . I think you are missing some DLL files that EmguCV needs . Did you add all the required openvc dlls such as opencv calib3d2410.dll etc. . Comment : Out of interest does it work if you run visual-studio as Administrator Comment : in Emgu CV there is no such .dll exist like opencv calib3d2410.dll Comment : But I add all the .dll of Emgu CV 3.1 files in Debug Release folder of my project solution but nothing happens : Comment : BigJump no it doesn t work while run Visual Studio as Administrator . .. . Answer : This exception is thrown when Emgu.CV.CvInvoke cannot find the unmanaged dlls in the folder of your executable . According to EmguCV Wiki http : www.emgu.com wiki index.php Download And Installation The type initializer for .27Emgu.CV.CvInvoke.27 threw an exception . you have to copy the OpenCV dlls from EmguFolder bin to the execution directory probably bin Debug . Comment : I had put all the .dll files in my Release Debug folder but nothing happens . : Comment : Have you tried running an example http : www.emgu.com wiki index.php Download And Installation Building the Examples provided from EmguCV Comment : yes it works fine for me but when I program then TypeInitializationException is occured .", "Question : With EmguCV to capture an image from a web-cam we use : .. . .. . But I don t know how to capture images from my Kinect I have tried kinectCapture class but it didn t work with me . Thanks .. . Answer : When using EmguCV you usually use another library to access the Kinect . For example The Kinect For Windows SDK http : kinectforwindows.org or OpenNI http : openni.org . Then after accessing the camera using OpenNI or the SDK you can edit the image that you project on the screen using EmguCV s tools . Here s some links of how to use EmguCV with OpenNI and the SDK .. . .. . https : groups.google.com forum topic openni-dev I0InsNgIIz4 .. . http : www.geek-press.com p 23 beta 2 of SDK .. . Emgu CV and the official Microsoft Kinect SDK http : stackoverflow.com questions 7150940 emgu-cv-and-the-official-microsoft-kinect-sdk .. . .. . Hope this helps", "Question : null .. . Answer : I want you to know the methods to get the image from array of bytes : .. . .. . I am using this code but it s throw an exception if the size is more than 100 or the length of the arary and if it s less than 50 it save a messay image Comment : You have tagged this question in EmguCV but the code i see is not of emgucv why are you just not using the capture object to read manipulate the image if you intend to write EMGU code Comment : you can check this thread to find more about matrices in EmguCV stackoverflow.com questions 7197153 work-with-matrix-in-emgu-cv http : stackoverflow.com questions 7197153 work-with-matrix-in-emgu-cv", "Question : I m getting this error .. . .. . The type initializer for Emgu.CV.CvInvoke threw an exception . when I try to use Emgu CV . I ve tried everything I can think of to fix this but it s still giving the same error and when I click a button it shows .. . .. . Object reference not set to an instance of an object . This is the code I m trying : .. . .. . What might I have done wrong and how can I debug this further Thanks .. . Answer : First you have to add three libraries to your project . opencv core290.dll opencv highgui290.dll opencv imgproc290.dll . In here 290 refers that your opencv version . After that change in their property Do not copy to copy always . than save your project . After that go to following location . If your machine is 64 bit than go to following folder C : Emgu emgucv-windows-universal-cuda 2.9.0.1922 bin x64 or if your using 32-bit os than go to C : Emgu emgucv-windows-universal-cuda 2.9.0.1922 bin x86 and copy all the dlls in that folder and paste that into your Your Project bin debug folder . than rebuild your project . Than it will works fine . Best of luck", "Question : I m trying to get the Motion Detection Emgu CV example https : github.com artemisvision emgu openCV tree master Emgu.CV.Example MotionDetection mentioned in the answer to Looking for a function for motion-detection on emgucv http : stackoverflow.com a 18403594 575530 working . To get the example code working I first needed to .. . .. . 1 . add references to the Emgu CV DLLs Emgu.CV Emgu.CV.UI and Emgu.Util to the project .. . 2 . make sure that the relevant Open CV DLLs listed on the EMGU wiki http : www.emgu.com wiki index.php Download And Installation Have you copied the OpenCV dlls to the execution directory.3F and found in C : Emgu emgucv-windows-universal-gpu 2.4.9.1847 bin x86 are copied always to the output executable directory of the project .. . 3 . change the build target to x86 .. . .. . When execution gets to the line in Form1.cs .. . .. . it throws the exception Unable to load DLL opencv legacy249 : The specified module could not be found . Exception from HRESULT : 0x8007007E . Looking at the execution directory the DLL is there : .. . .. . Explorer screenshot showing required DLL s presence http : i.stack.imgur.com dtBU0.jpg .. . .. . What s going on How do I fix this .. . Answer : Fixed . I think I had a version clash . If I take the above steps with the motion-detection example as it installs with Emgu CV i.e . from C : Emgu emgucv-windows-universal-gpu 2.4.9.1847 Emgu.CV.Example MotionDetection instead of http : github.com artemisvision emgu openCV tree master Emgu.CV.Example MotionDetection then it works .", "Question : How can I implement image-processing with opening and closing using new emgu version i found this one : www.stackoverflow.com questions 11567350 opening-and-closing-using-opencv http : www.stackoverflow.com questions 11567350 opening-and-closing-using-opencv .. . .. . but i cant use StructuringElementEx anymore and the new image.MorphologyEx method needs a little more values . I also tried it with .dilate and .erode but this is only possible with a 3x3 rectangular shape which wasn t quite successful . An updated example would be great .. . Answer : Also have the same problem with you in using MorphologyEx of Emgu CV 3.0 .. . I found this test code in the Github https : github.com neutmute emgucv blob master Emgu.CV.Test AutoTestVarious.cs . Hope this help", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : After trying all posible opencv xxx combinations what it worked for me was including the library npp32 42 9.dll . Hope it helps .", "Question : If anyone who use Emgu openCv wrapper in .net-3.5 framework please tell me why this exception appears Its inner-exception is unable to load cxcore.dll . .. . Answer : Here s how I could solve the problem : Copy the x86 or x64 on 64-bit OS folder address under bin folder where your Emgu is installed . Mine is : C : Emgu emgucv-windows-universal-gpu 2.4.9.1847 bin x86 .. . .. . Then paste this address here : Control Panel System Advanced System Settings Environment Variables in system variables click on Path and click edit add a semicolon to the end of the string there and paste the address you ve just copied to clipboard after that semicolon click on the OKs . Comment : cheap and dirty solution but it worked for me Comment : why i have not tried this 2 days ago Comment : This also worked for me Comment : This is bad . What is better : Select all added .dll and set copy to ouput to always .", "Question : Hi in opencv c+ method Findcontours return the array hierarchy and to get the boundaries of the hole I can get the hierarchy . how can i get these boundaries in emgu cv please any help how can i find holes in emgu cv .. . Answer : You can get the Contour hierarchy in Emgucv by using this following code . For further Reference use this Online Tutor http : www.emgu.com wiki index.php Tutorial Here is the output of this code . http : s18.postimg.org 511xwpm15 Forum Contour.jpg Comment : thanks but i want to find holes in the image can this code help me Comment : no it s give me the outer contour only Comment : i.stack.imgur.com qLZ6w.png http : i.stack.imgur.com qLZ6w.png this the image i want to find the inner hole Comment : Use threshold to Binarise the image play with different Parameters of findContour emgu.com wiki files 2.3.0 document html http : www.emgu.com wiki files 2.3.0 document html 028cb9c4-eb4b-aa5d-242e-273ac7e227e2.htm Function to find the hole . Comment : ok thanks alot :", "Question : I would like to add a smaller image on top of a larger image eventually for PiP on a video feed . I can do it by iterating through the relevant data property in the large image and add the pixels from the small image . But is there a simpler and neater way I m using EMGU . My idea was to define an ROI in the large image of the same size as the small image . Set the Large image equal to the small image and then simply remove the ROI . Ie in pseudo code : .. . .. . However this doesn t work and the large image doesn t change . Any suggestions would be much appreciated . Large image : .. . Large Image http : i.stack.imgur.com NbI7o.png .. . .. . Small image : .. . Small Image http : i.stack.imgur.com PLKUI.png .. . .. . Desired result : .. . Desired Result http : i.stack.imgur.com hdKi4.png Comment : Are you using c or python How exactly are you doing the Large Small assignment Since you say it doesn t work you probably have some code so it would be nice if you posted that too . Comment : since he s tagged it emgu it s probably emgucv . I wish the emgucv people would stop tagging calling it opencv .. . Comment : Didn t notice the bit about EMGU so it s not a choice between c and python . But the question still stands : which language are you using .. . Answer : I have a lot of experience with EMGU . As far as I am aware the method your employing is the only direct way of display the sub-image data within your large image . You would likely have to refresh your larger image which would have the inherent effect of wiping your transferred data and copy the smaller image back over . While a solution is possible I think the method is flawed . The required processing time will effect the display rate of any image in the larger viewing frame . An improved method would be to add another control . Effectively you have your video feed window showing your larger image in the background and a smaller control on-top of this displaying your smaller image . Effectively you could have as many of these smaller controls as you like . You will in effect be displaying two images or video feeds in two different controls e.g . image boxes . As you have the code to do so all you will have to do is ensure the order of which your controls are displayed . I have assumed you are not programming the output to a Console Window . If you need any more help please feel free to ask . As for the comments EMGU is written in C and while appreciate your view on not calling EMGU OpenCV why should it not be tagged as an OpenCV orientated question . After all EMGU is simply OpenCV library with a c wrapper . I have found many resources on OpenCV useful for EMGU and vice versa . Cheers Chris" ] }
[ "yes-answer-long", "yes-answer-short" ]
image-processing
UNK_RELATION
sysbios@real-time@75
sysbios -- advanced real-time kernel solution sys bios 6.x is an advanced @placeholder kernel for use in a wide range of dsps arms and microcontrollers .
{ "confidence": [ 32.03463363647461, 32.03463363647461, 31.082294464111328, 29.109176635742188, 28.737533569335938, 27.843364715576172, 27.843364715576172, 26.719640731811523, 26.138320922851562, 26.138320922851562, 25.883712768554688, 25.569124221801758, 22.005725860595703, 22.005725860595703, 21.051315307617188, 18.041828155517578, 18.0362491607666, 18.0362491607666, 18.0362491607666, 18.0362491607666, 18.0362491607666, 17.999187469482422, 17.93622589111328, 17.898908615112305, 17.65491485595703, 17.40546417236328, 17.130817413330078, 17.130817413330078, 16.630701065063477, 16.424863815307617, 16.424863815307617, 16.424863815307617, 15.908493995666504, 15.508882522583008, 15.113052368164062, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 15.06070327758789, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209 ], "content": [ "I found in the documentation that the PLL cannot be configured for 2812 on SYS BIOS .", "EDIT : I m using an 8 core DSP with SYS BIOS .", "I am currently trying to use SYS BIOS 6.37.5.35 with xdctools version 3.25.6.96 with a F2812 platform .", "Maybe you can flash the BIOS with an English one", "I would like to something similar to Excel but believe that isn t available on the operating-system I m using Sys BIOS .", "If is it possible then you can update your BIOS via internet .", "Every computer I used had an English BIOS regardless of the language of the OS .", "But others link TI s C6678 we run a linux on core pac0 and run sys bios on every other core pacs they communicate through syslink .", "BIOS code is programmed into EEPROM chips that are almost positively too small to support multiple language display .", "You need to flash it with an English BIOS for the same computer or find someone who can translate for you. .", "Below is the code that causes the issue : .. . .. . .. . include xdc std.h .. . .. . include xdc runtime Error.h .. . include xdc runtime System.h .. . include ti sysbios BIOS.h .. . include ti sysbios knl Task.h .. . include ti sysbios knl Mailbox.h .. . ti sysbios knl Mailbox Handle HMailBox1 .. . ti sysbios knl Mailbox Handle HMailBox2 .. . .. . .. . taskFxn .. . .. . Void taskFxn1 UArg a0 UArg a1 .. . .. . while 1 .. . .. . Task sleep 1000 .. . .. . unsigned char message .. . .. . this one gets signaled when HMailBox2 is post", "I want to install window form USB to my system hp ProoBook 6450b but it doesn t booted with usb therefore i want to change boot setup with biose but i don t understand the bios language of my system.So please help me to change my system bios language to english .", "The issue I am having is when I try to set up PLL configuration I get a warning saying .. . .. . PLL type is not assigned so the Boot module will not configure PLL .. . .. . This because of the following code in Platform.xs .. . .. . Does this mean PLL configuration is not supported for 2812 in sys bios", "Since I was not able to reach TI e2e forum I am asking the question here : When I create two instances of sys bios mailbox object and try to post one of them the other one gets signaled .", "Not as a solution but as an investigation .", "or is it something else that takes a long time .", "kuldeep thanks for your interest but i don t know how to change flash EEPROM .", "can you help me more .", "thanks", "Never had this problem myself .", "@ Anwar Said", "But you don t give enough specifics to tell whether this would be a sensible approach for your real world application .", "+1 though you are right about the solution .", "Seems like a basic use-case here I am shocked to see this .", "It takes a really long time to calculate t113 .", "Clifford is correct - it s a problem on my end and I knew such a simple use-case has to work .", "Are you sure it s taking a long time to calculate t113", "I m assuming that the tasks are time intensive and more that just L2 + L3 or something .", "Your simple example would automatically multithread and optimise the solution path using Excel multi-threaded calculation .", "According to my predecessor these inverse and forward kinematic equations will take the most time to process .", "With values that are dependent on other values you re going to have a very tough time allocating the work to different threads .", "The cache ist kept coherent between the cores so every core has the same view of the memory all the time .", "So in the end you ll have to use an architecture which fits your needs .", "Unless you can nail down specific calculations that can happen concurrently like you know t2 and t1 both take a long time threading won t really help much here .", "If this was Java then I d use a Executors.newCachedThreadPool which starts a new thread whenever needed and then allow the jobs themselves to submit jobs to the thread-pool and wait for the response .", "I have test code that starts with a large existing file on SD Card test.dat and the test does this : .. . .. . Seems straight forward .", "The result-of the f write is SD Card corruption .", "I ve traced the EDMA on my embedded device to watch FatFs http : elm-chan.org fsw ff 00index e.html read-write requests .", "The f open read requests are all healthy they properly find the file and FAT table .", "The f write starts by reading the first sector into scratch buffer great .", "Then it memcpy s the zeros into the scratch buffer great .", "After memcpy of 512 zeros it needs to commit the sector and move to the next one .", "It s at this point where the code is confused .", "It writes that scratch buffer of zeros to the FAT table", "The offending code in ff.c f write is : .. . .. . Here fp- buf is the sector buffer of zeros but fp- dsect is the FAT sector 8318 not the file data sector 10240", "Oops .", "At disk write fp- buf matches fp- sect .", "I m hoping someone in the world has anyone dug into a problem like this before with FatFs", "I would suggest that the offending code is wherever fp- dsect acquired an incorrect value and that is not the code you have posted - that may be where it corrupts the file system but it is not the root cause .", "EDMA", "Can you clarify .", "I have used ELM FatFs on several projects without problems except when the user supplied disk I O driver code i.e .", "my code was at fault or in a multi-threaded environment the mutex stubs were not implemented and multiple threads access the file-system .", "Have you tried opening the file for write-only", "Probably worth adding version information and any configuration macros you have used .", "The current release is R0.11a after 9 years you might have thought he d have made it to release 1.0 - .", "Thanks for input", "I trapped EDMA memory transfers to monitor in out of the SD Card .", "EDMA might mean more with some suitable context - such as what chip you are using .", "I switched the test to .. . .. . This revealed a caching problem .", "The f read operation succeeded and the DMA completed fine but zeroedBuffer remained unmodified because L0 was not flushed .", "Therefore FatFs was seeing a mix of correct values and stale values .", "I fixed EDMA caching and now it all works .", "Another learning TI Starterware comes with R0.4b .", "I started with that and it returned FR RW ERROR that was perplexing .", "I moved up to R0.11a and got much better error feedback .", "Anyone know of unit tests for FatFs", "I believe ChaN http : elm-chan.org profile e.html created the code as a hobbyist - as such it is what it is .", "I am surprised for that reasons that it is included in the TI StarterWare although the license terms do not prohibit it .", "For commercial development I think it is more than fair that you take care of you own validation .", "I hope TI donated to ChaN s efforts .", "Thanks Regards .. . .. . Nikhil Kotian .", "Therefore the PLL needs to be configured by setting the PLLCR register .", "I have the same issue whether I create objects via C code or via cfg or whatever editor .", "Furthermore HMailBox1 and HMailBox1 pointers are different when I watched em .", "If I am doing something wrong then what should I do to make two mailbox objects not interrupt each others .", "int success Mailbox pend HMailBox1 message BIOS WAIT FOREVER .. . .. . .. . .. . .. . .. . Void taskFxn2 UArg a0 UArg a1 .. . .. . .. . int semId 4 .. . while 1 .. . .. . Task sleep 1000 .. . Mailbox post HMailBox2 semId 0 .. . .. . System printf taskFxn2 n .. . System flush force SysMin output to console .. . .. . .. . .. . .. . .. . .. . main .. . .. . Int main .. . .. . Task Handle hTask1 hTask2 .. . Error Block eb .. . .. . System printf enter main n .. . .. . Error init eb .. . hTask1 Task create taskFxn1 NULL eb .. . if hTask1 NULL .. . System printf Task create1 failed n .. . BIOS exit 0 .. . .. . .. . hTask2 Task create taskFxn2 NULL eb .. . if hTask2 NULL .. . System printf Task create2 failed n .. . BIOS exit 0 .. . .. . .. . Mailbox Params pr1 pr2 .. . Mailbox Params init pr1 .. . Mailbox Params init pr2 .. . .. . pr1 . iprms.name osman .. . HMailBox1 Mailbox create 1 8 pr1 eb .. . pr2 . iprms.name mahmut .. . HMailBox2 Mailbox create 1 8 pr2 eb .. . .. . BIOS start does not return .. . return 0 .. . .. . .. . .. . thanks. .", "I have a long series of equations that looks something like this except with about 113 t s : .. . .. . Where L s are input arguments .", "So I m trying to split this up into several different threads in an attempt to make this quicker .", "Problem is I m not sure how to do this .", "I tried drawing out the t s in the form of a tree by hand on paper so I could analyse it better but it grew too large and unwieldy midway .", "Are there other ways to make the calculations faster", "Thanks .", "My predecessor also knowingly chose this 8 core DSP as the hardware for implementation .", "So I m assuming I should write the code in a way that takes advantage of all 8 cores .", "Please add a language specifier if you want to this work under a certain language .", "You want to run it on several CPUs", "Otherwise I can t imagine a reason why it should be faster when using more threads.. .", "The pattern of the equations is not very clear .", "Is it that every t n can be a linear combination of t n-1 t n-2 .. . t 1", "If that pattern holds true however threading could potentially help a great deal .", "I m using C . And yes I m running it on several CPUs .", "There is no clear pattern to the giant equation as far as I can tell .", "Part of my challenge is trying to nail down the specific calculations that can happen concurrently but I tried analyzing it with no tools and it s rather unclear .", "Then it s also likely that you ll have one thread waiting on another .", "And to fire off new threads is likely more expensive than calculating only 113 values .", "If not then the overhead in the threading is going to vastly exceed any minimal gains the threading .", "That s a bit of a strange pattern but it would work .", "For example : .. . .. . Then the final task would be : .. . .. . Then the thread pool would just take care of the results .", "It would do as much parallelization as it can ." ] }
{ "confidence": [ 44.754798889160156, 38.19918441772461, 34.016883850097656, 32.22455596923828, 25.93293571472168, 25.417755126953125, 25.17900848388672, 24.957996368408203, 16.89501953125 ], "content": [ "Question : null .. . Answer : Since I was not able to reach TI e2e forum I am asking the question here : When I create two instances of sys bios mailbox object and try to post one of them the other one gets signaled . I have the same issue whether I create objects via C code or via cfg or whatever editor . Furthermore HMailBox1 and HMailBox1 pointers are different when I watched em . If I am doing something wrong then what should I do to make two mailbox objects not interrupt each others . Below is the code that causes the issue : .. . .. . .. . include xdc std.h .. . .. . include xdc runtime Error.h .. . include xdc runtime System.h .. . include ti sysbios BIOS.h .. . include ti sysbios knl Task.h .. . include ti sysbios knl Mailbox.h .. . ti sysbios knl Mailbox Handle HMailBox1 .. . ti sysbios knl Mailbox Handle HMailBox2 .. . .. . .. . taskFxn .. . .. . Void taskFxn1 UArg a0 UArg a1 .. . .. . while 1 .. . .. . Task sleep 1000 .. . .. . unsigned char message .. . .. . this one gets signaled when HMailBox2 is post int success Mailbox pend HMailBox1 message BIOS WAIT FOREVER .. . .. . .. . .. . .. . .. . Void taskFxn2 UArg a0 UArg a1 .. . .. . .. . int semId 4 .. . while 1 .. . .. . Task sleep 1000 .. . Mailbox post HMailBox2 semId 0 .. . .. . System printf taskFxn2 n .. . System flush force SysMin output to console .. . .. . .. . .. . .. . .. . .. . main .. . .. . Int main .. . .. . Task Handle hTask1 hTask2 .. . Error Block eb .. . .. . System printf enter main n .. . .. . Error init eb .. . hTask1 Task create taskFxn1 NULL eb .. . if hTask1 NULL .. . System printf Task create1 failed n .. . BIOS exit 0 .. . .. . .. . hTask2 Task create taskFxn2 NULL eb .. . if hTask2 NULL .. . System printf Task create2 failed n .. . BIOS exit 0 .. . .. . .. . Mailbox Params pr1 pr2 .. . Mailbox Params init pr1 .. . Mailbox Params init pr2 .. . .. . pr1 . iprms.name osman .. . HMailBox1 Mailbox create 1 8 pr1 eb .. . pr2 . iprms.name mahmut .. . HMailBox2 Mailbox create 1 8 pr2 eb .. . .. . BIOS start does not return .. . return 0 .. . .. . .. . .. . thanks. .", "Question : I am currently trying to use SYS BIOS 6.37.5.35 with xdctools version 3.25.6.96 with a F2812 platform . The issue I am having is when I try to set up PLL configuration I get a warning saying .. . .. . PLL type is not assigned so the Boot module will not configure PLL .. . .. . This because of the following code in Platform.xs .. . .. . Does this mean PLL configuration is not supported for 2812 in sys bios Thanks Regards .. . .. . Nikhil Kotian . .. . Answer : I found in the documentation that the PLL cannot be configured for 2812 on SYS BIOS . Therefore the PLL needs to be configured by setting the PLLCR register .", "Question : I have a long series of equations that looks something like this except with about 113 t s : .. . .. . Where L s are input arguments . It takes a really long time to calculate t113 . So I m trying to split this up into several different threads in an attempt to make this quicker . Problem is I m not sure how to do this . I tried drawing out the t s in the form of a tree by hand on paper so I could analyse it better but it grew too large and unwieldy midway . Are there other ways to make the calculations faster Thanks . EDIT : I m using an 8 core DSP with SYS BIOS . According to my predecessor these inverse and forward kinematic equations will take the most time to process . My predecessor also knowingly chose this 8 core DSP as the hardware for implementation . So I m assuming I should write the code in a way that takes advantage of all 8 cores . Comment : Please add a language specifier if you want to this work under a certain language . Comment : You want to run it on several CPUs Otherwise I can t imagine a reason why it should be faster when using more threads.. . Comment : The pattern of the equations is not very clear . Is it that every t n can be a linear combination of t n-1 t n-2 .. . t 1 Comment : Unless you can nail down specific calculations that can happen concurrently like you know t2 and t1 both take a long time threading won t really help much here . If that pattern holds true however threading could potentially help a great deal . Comment : I m using C . And yes I m running it on several CPUs . There is no clear pattern to the giant equation as far as I can tell . Part of my challenge is trying to nail down the specific calculations that can happen concurrently but I tried analyzing it with no tools and it s rather unclear . .. . Answer : Your simple example would automatically multithread and optimise the solution path using Excel multi-threaded calculation . But you don t give enough specifics to tell whether this would be a sensible approach for your real world application . Comment : I would like to something similar to Excel but believe that isn t available on the operating-system I m using Sys BIOS .", "Question : I want to install window form USB to my system hp ProoBook 6450b but it doesn t booted with usb therefore i want to change boot setup with biose but i don t understand the bios language of my system.So please help me to change my system bios language to english . .. . Answer : BIOS code is programmed into EEPROM chips that are almost positively too small to support multiple language display . You need to flash it with an English BIOS for the same computer or find someone who can translate for you. . If is it possible then you can update your BIOS via internet . Comment : kuldeep thanks for your interest but i don t know how to change flash EEPROM . can you help me more . thanks Comment : Maybe you can flash the BIOS with an English one Never had this problem myself . Every computer I used had an English BIOS regardless of the language of the OS . @ Anwar Said", "Question : I have a long series of equations that looks something like this except with about 113 t s : .. . .. . Where L s are input arguments . It takes a really long time to calculate t113 . So I m trying to split this up into several different threads in an attempt to make this quicker . Problem is I m not sure how to do this . I tried drawing out the t s in the form of a tree by hand on paper so I could analyse it better but it grew too large and unwieldy midway . Are there other ways to make the calculations faster Thanks . EDIT : I m using an 8 core DSP with SYS BIOS . According to my predecessor these inverse and forward kinematic equations will take the most time to process . My predecessor also knowingly chose this 8 core DSP as the hardware for implementation . So I m assuming I should write the code in a way that takes advantage of all 8 cores . Comment : Please add a language specifier if you want to this work under a certain language . Comment : You want to run it on several CPUs Otherwise I can t imagine a reason why it should be faster when using more threads.. . Comment : The pattern of the equations is not very clear . Is it that every t n can be a linear combination of t n-1 t n-2 .. . t 1 Comment : Unless you can nail down specific calculations that can happen concurrently like you know t2 and t1 both take a long time threading won t really help much here . If that pattern holds true however threading could potentially help a great deal . Comment : I m using C . And yes I m running it on several CPUs . There is no clear pattern to the giant equation as far as I can tell . Part of my challenge is trying to nail down the specific calculations that can happen concurrently but I tried analyzing it with no tools and it s rather unclear . .. . Answer : With values that are dependent on other values you re going to have a very tough time allocating the work to different threads . Then it s also likely that you ll have one thread waiting on another . And to fire off new threads is likely more expensive than calculating only 113 values . Are you sure it s taking a long time to calculate t113 or is it something else that takes a long time .", "Question : I have a long series of equations that looks something like this except with about 113 t s : .. . .. . Where L s are input arguments . It takes a really long time to calculate t113 . So I m trying to split this up into several different threads in an attempt to make this quicker . Problem is I m not sure how to do this . I tried drawing out the t s in the form of a tree by hand on paper so I could analyse it better but it grew too large and unwieldy midway . Are there other ways to make the calculations faster Thanks . EDIT : I m using an 8 core DSP with SYS BIOS . According to my predecessor these inverse and forward kinematic equations will take the most time to process . My predecessor also knowingly chose this 8 core DSP as the hardware for implementation . So I m assuming I should write the code in a way that takes advantage of all 8 cores . Comment : Please add a language specifier if you want to this work under a certain language . Comment : You want to run it on several CPUs Otherwise I can t imagine a reason why it should be faster when using more threads.. . Comment : The pattern of the equations is not very clear . Is it that every t n can be a linear combination of t n-1 t n-2 .. . t 1 Comment : Unless you can nail down specific calculations that can happen concurrently like you know t2 and t1 both take a long time threading won t really help much here . If that pattern holds true however threading could potentially help a great deal . Comment : I m using C . And yes I m running it on several CPUs . There is no clear pattern to the giant equation as far as I can tell . Part of my challenge is trying to nail down the specific calculations that can happen concurrently but I tried analyzing it with no tools and it s rather unclear . .. . Answer : If all the assignments are as simple as the ones you show a reasonable compiler will reduce it fine . For the parts you show .. . .. . Perhaps this could be done in two threads on two CPUs like : .. . .. . But with only 113 additions -- if that s what they are -- and modern computers are very good at adding probably wont be faster .", "Question : I have a long series of equations that looks something like this except with about 113 t s : .. . .. . Where L s are input arguments . It takes a really long time to calculate t113 . So I m trying to split this up into several different threads in an attempt to make this quicker . Problem is I m not sure how to do this . I tried drawing out the t s in the form of a tree by hand on paper so I could analyse it better but it grew too large and unwieldy midway . Are there other ways to make the calculations faster Thanks . EDIT : I m using an 8 core DSP with SYS BIOS . According to my predecessor these inverse and forward kinematic equations will take the most time to process . My predecessor also knowingly chose this 8 core DSP as the hardware for implementation . So I m assuming I should write the code in a way that takes advantage of all 8 cores . Comment : Please add a language specifier if you want to this work under a certain language . Comment : You want to run it on several CPUs Otherwise I can t imagine a reason why it should be faster when using more threads.. . Comment : The pattern of the equations is not very clear . Is it that every t n can be a linear combination of t n-1 t n-2 .. . t 1 Comment : Unless you can nail down specific calculations that can happen concurrently like you know t2 and t1 both take a long time threading won t really help much here . If that pattern holds true however threading could potentially help a great deal . Comment : I m using C . And yes I m running it on several CPUs . There is no clear pattern to the giant equation as far as I can tell . Part of my challenge is trying to nail down the specific calculations that can happen concurrently but I tried analyzing it with no tools and it s rather unclear . .. . Answer : I m assuming that the tasks are time intensive and more that just L2 + L3 or something . If not then the overhead in the threading is going to vastly exceed any minimal gains the threading . If this was Java then I d use a Executors.newCachedThreadPool which starts a new thread whenever needed and then allow the jobs themselves to submit jobs to the thread-pool and wait for the response . That s a bit of a strange pattern but it would work . For example : .. . .. . Then the final task would be : .. . .. . Then the thread pool would just take care of the results . It would do as much parallelization as it can . Now if the output of the T1 task was used in multiple places this would not work . If this is another language maybe a similar pattern can be used depending on the thread libraries available . Comment : You should recommend ForkJoin instead docs.oracle.com javase tutorial essential concurrency http : docs.oracle.com javase tutorial essential concurrency forkjoin.html Comment : You should . I m not Java 7 compliant yet @JohnVint . : - Comment : +1 though you are right about the solution . I would leap frog to Java 8 because that has a ton of cool new concurrency features + FJ", "Question : I am confused with multi-core processors concept . Some multi-core processors link ARM A9 x86 we run uni-OS like linux windows . Every core works well . But others link TI s C6678 we run a linux on core pac0 and run sys bios on every other core pacs they communicate through syslink . What s the architecture difference between these multi-core processors .. . Answer : What you see here is the main difference between AMP http : en.wikipedia.org wiki Asymmetric multiprocessing and SMP http : en.wikipedia.org wiki Symmetric multiprocessing systems . X86 usually is a SMP-system all Cores are equal have access to the same peripherals and can access each others memory and cache . The cache ist kept coherent between the cores so every core has the same view of the memory all the time . Communication between the cores processes running on those cores will usually just be done by memory structures like semaphores and mutexes . To make that work the chip designers have to incorporate a lot of logic . AMP is a totally different beast . The cores usually have their own view of the memory meaning that the cache does not get synchronized between the cores . This simplifies the design of the chip a lot but makes communication via memory problematic . So usually every core will run it s own processes some might run a whole OS others just a bare metal system you ll also find configurations where part of the system runs Linux and other parts run VXWorks or something else . AMP is usually used if the task can be split up very well . Take a router which functions a small PBX and an iptv settop-box for example . One core might run linux with a firewall just routing away all day long . The next core runs vxworks and a PBX-application and a third core decodes the tv-stream and sends it out . The routing core will have to distribute the incoming data between the two other cores and the lan but thats about all the interaction there is . In general the features provided by SMP do not come for free . First they ll increase the price of the product . Second the cache synchronization is very costly in term of cycles . So in the end you ll have to use an architecture which fits your needs . Comment : Excellent Thank you very much for your answer Comment : Another question please : can i porting an OS on a AMP and control all cores", "Question : I have test code that starts with a large existing file on SD Card test.dat and the test does this : .. . .. . Seems straight forward . The result-of the f write is SD Card corruption . I ve traced the EDMA on my embedded device to watch FatFs http : elm-chan.org fsw ff 00index e.html read-write requests . The f open read requests are all healthy they properly find the file and FAT table . The f write starts by reading the first sector into scratch buffer great . Then it memcpy s the zeros into the scratch buffer great . After memcpy of 512 zeros it needs to commit the sector and move to the next one . It s at this point where the code is confused . It writes that scratch buffer of zeros to the FAT table The offending code in ff.c f write is : .. . .. . Here fp- buf is the sector buffer of zeros but fp- dsect is the FAT sector 8318 not the file data sector 10240 Oops . At disk write fp- buf matches fp- sect . Seems like a basic use-case here I am shocked to see this . I m hoping someone in the world has anyone dug into a problem like this before with FatFs Comment : I would suggest that the offending code is wherever fp- dsect acquired an incorrect value and that is not the code you have posted - that may be where it corrupts the file system but it is not the root cause . Comment : EDMA Can you clarify . I have used ELM FatFs on several projects without problems except when the user supplied disk I O driver code i.e . my code was at fault or in a multi-threaded environment the mutex stubs were not implemented and multiple threads access the file-system . Have you tried opening the file for write-only Not as a solution but as an investigation . Probably worth adding version information and any configuration macros you have used . The current release is R0.11a after 9 years you might have thought he d have made it to release 1.0 - . Comment : Thanks for input I trapped EDMA memory transfers to monitor in out of the SD Card . Comment : EDMA might mean more with some suitable context - such as what chip you are using . .. . Answer : Clifford is correct - it s a problem on my end and I knew such a simple use-case has to work . I switched the test to .. . .. . This revealed a caching problem . The f read operation succeeded and the DMA completed fine but zeroedBuffer remained unmodified because L0 was not flushed . Therefore FatFs was seeing a mix of correct values and stale values . I fixed EDMA caching and now it all works . Another learning TI Starterware comes with R0.4b . I started with that and it returned FR RW ERROR that was perplexing . I moved up to R0.11a and got much better error feedback . Anyone know of unit tests for FatFs Comment : I believe ChaN http : elm-chan.org profile e.html created the code as a hobbyist - as such it is what it is . I am surprised for that reasons that it is included in the TI StarterWare although the license terms do not prohibit it . For commercial development I think it is more than fair that you take care of you own validation . I hope TI donated to ChaN s efforts ." ] }
[ "yes-answer-long", "yes-answer-short" ]
real-time
UNK_RELATION
urllib2@module@42
urllib2 -- urllib2 is a builtin python 2 @placeholder that defines functions and classes to help with url actions .
{ "confidence": [ 41.965782165527344, 41.20838928222656, 40.7030029296875, 40.69837951660156, 40.668968200683594, 40.6064338684082, 40.600799560546875, 40.56263732910156, 39.474464416503906, 39.41874694824219, 39.41874694824219, 39.41874694824219, 39.30424499511719, 39.03822708129883, 39.03822708129883, 39.03822708129883, 38.95272445678711, 38.95272445678711, 38.831024169921875, 38.831024169921875, 38.831024169921875, 38.18070602416992, 37.81410217285156, 37.81410217285156, 37.445037841796875, 37.24738311767578, 37.016597747802734, 37.007423400878906, 37.007423400878906, 36.958072662353516, 36.77909469604492, 36.12877655029297, 36.07410430908203, 35.96864318847656, 35.96864318847656, 35.96864318847656, 35.91632080078125, 35.48638153076172, 35.48638153076172, 35.184600830078125, 35.130767822265625, 35.130767822265625, 35.130767822265625, 35.040931701660156, 35.03532409667969, 34.95549392700195, 34.81659698486328, 34.58070755004883, 34.58070755004883, 34.58070755004883, 34.553062438964844, 34.527828216552734, 34.30713653564453, 34.221439361572266, 34.01215744018555, 33.91671371459961, 33.91671371459961, 33.698734283447266, 33.64738845825195, 33.64738845825195, 33.443607330322266, 33.443607330322266, 33.443607330322266, 33.443607330322266, 33.443607330322266, 33.443607330322266, 33.443607330322266, 33.21034240722656, 33.21034240722656, 32.9890022277832, 32.728233337402344, 32.57759475708008, 32.55853271484375, 32.528778076171875, 32.51028823852539, 32.51028823852539, 32.51028823852539, 32.51028823852539, 32.51028823852539, 32.51028823852539, 32.51028823852539, 32.39110565185547, 32.384700775146484, 32.33675003051758, 31.9722900390625, 31.9722900390625, 31.61957550048828, 31.457786560058594, 31.457786560058594, 31.400222778320312, 31.400222778320312, 31.400222778320312, 31.400222778320312, 31.391677856445312, 31.391677856445312, 31.391677856445312, 31.391677856445312, 31.391677856445312, 31.391677856445312 ], "content": [ "Another solution in urllib2 and Python 2.7 :", "Use urllib2.Request https : docs.python.org 2 library urllib2.html urllib2.Request to pass headers :", "if your using urlopen you are using OpenerDirector.open look at the python-docs - unfortunately its not explained in 2-3 words : - : docs.python.org library http : docs.python.org library urllib2.html highlight urllib2 urllib2.OpenerDirector", "urllib2.HTTPCookieProcessor http : docs.python.org 2 library urllib2.html httpcookieprocessor-objects was added in Python 2.4 so it s not available in your version of Python .", "with urllib2 .", "1 : docs.python.org library urllib2.html urllib2.urlopen http : docs.python.org library urllib2.html urllib2.urlopen", "urllib2 docs http : docs.python.org library urllib2.html", "Something like this should be a good start : .. . .. . urllib2 is smart enough to allow you to subclass some handler and then use it the urllib2.build opener http : docs.python.org 2 library urllib2.html highlight urllib2 urllib2.build opener is made for this :", "urllib2.urlopen https : docs.python.org 2 library urllib2.html urllib2.urlopen has no argument named headers : .. . .. . urllib2.urlopen : url data None timeout socket . GLOBAL DEFAULT TIMEOUT .. . .. . Open the URL url which can be either a string or a Request object .", "I am using python urllib2 library .", "As for Python 2.7.5 timeouts are caught by urllib2.URLError .", "python urllib2 urlopen response : .. . .. . expected : .. . .. . token : mYWmzpunvasAT795niiR", "For requesting a url in python I prefer requests than urllib2 .", "urllib2.urlopen .", "Why not urllib2", "urllib2.HTTPBasicAuthHandler", "The urllib2 documentation http : docs.python.org library urllib2.html says that timeout parameter was added in Python 2.6 .", "Since python suggests using urllib2 instead of urllib I take a test between urllib2.urlopen and wget .", "Use urllib2.urlopen http : docs.python.org library urllib2.html urllib2.urlopen for the zip file data and directory listing .", "If requests works but urllib2 doesn t this is an error somewhere in your use of urllib2 since requests uses urllib2 IIRC .", "urllib2.Request.add data http : docs.python.org library urllib2 urllib2.Request.add data expects it s argument to be a string so just give it one .", "Post it : http : docs.python.org library urllib2.html urllib2.urlopen", "This may have been answered before : Python URLLib URLLib2 POST http : stackoverflow.com questions 3238925 python-urllib-urllib2-post .", "possible duplicate of Python urllib2 HTTP Proxy HTTPS request http : stackoverflow.com questions 2927831 python-urllib2-http-proxy-https-request", "As can be shown here : .. . .. . I have read the documentation for urllib2 but can t seem to understand the actual purpose of these measures .. . .. . Libraries : urllib https : docs.python.org 2 library urllib.html urllib2 https : docs.python.org 2 library urllib2.html", "urllib2.open has a timeout argument hovewer there is no timeout in urllib2.Request .", "I tries simply reading the feed URL with urllib2.Request url .", "OP asked using urllib2", "urllib2 doesn t do caching .", "Uploading files using urllib2 is not impossible but quite a complicated task : http : pymotw.com 2 urllib2 uploading-files", "Which means you should use urllib2.HTTPDigestAuthHandler http : docs.python.org library urllib2.html urllib2.HTTPDigestAuthHandler instead .", "It s right there in the function http : docs.python.org library urllib2.html urllib2.urlopen .", "urllib2 has an authentication interface .", "The Python 2.6 urllib2 module does switch from POST to GET on the redirect .", "So I m limited to urllib and urllib2 or anything else that ships with python .", "See Python - HEAD request with urllib2 http : stackoverflow.com questions 4421170", "http : docs.python.org 2 library urllib2.html", "Why aren t you using urllib2", "here is a solution based on urllib2 and threads .", "Before you install https : docs.python.org 2 library urllib2.html urllib2.install opener a mock opener you want to save the old one with oldOpener urllib2 . opener .", "we need urllib to encode the url and then urllib2 to send a request .", "There are also handlers for implementing more advanced URL support in urllib2 .", "How does somebody create a url with an encoded query-string using urllib2", "And OpenerDirector https : docs.python.org 2 library urllib2.html highlight urllib2.httphandler openerdirector-objects is an object that creates handlers of protocol open protocol request and other events .", "I am using the urllib urllib2 cookielib modules in Python to log in .", "Is it possible to get around this with urllib2", "I ve also tried using urllib2.HTTPPasswordMgrWithDefaultRealm and urllib2.HTTPBasicAuthHandler etc .", "The short story : You can use Request.add header http : docs.python.org library urllib2.html urllib2.Request.add header to do this .", "Just to play with different variations - have you tried with urllib2.install opener opener and urllib2.urlopen instead of using opener.open", "The HTTPError is a file-like object http : docs.python.org library urllib2.html urllib2.HTTPError .", "Do you have to use urllib2", "By using the socket timeout setting you mean the timeout parameter to urllib2.urlopen http : docs.python.org library urllib2.html urllib2.urlopen I presume .", "According to build opener https : docs.python.org 2 library urllib2.html urllib2.build opener and HTTPSHandler https : docs.python.org 2 library urllib2.html urllib2.HTTPSHandler a HTTPSHandler is added if ssl module exists here we just specify our own instead of the default one .", "yes it s a pity that urllib2 isn t using newstyle classes .", "urllib2 doesn t like this : .. . .. . I guess it is seeing the second as the start of the URL .", "For which I m using urllib2 library of python to open and read the websites .", "I m trying to test some python code that uses urllib2 and lxml .", "Keep the connection alive see this question on how to do that : http : stackoverflow.com questions 1037406 python-urllib2-with-keep-alive .. . 2 .", "However urllib2.Request has no timeout constructor argument and urllib2.urlopen ignores this parameter .", "Save an image with urllib2 .. . .. . Please note that urllib2 is different in python2 and python3 http : stackoverflow.com a 2792652 2050629 .", "The issue here is not urllib2 but the use of the multiprocessing module .", "I have a script that makes some requests with urllib2 .", "Edit : added note on verb support in urllib2", "It is a lower level module that urllib2 is built on top of .", "you can use it directly but it is easier via urllib2", "scholar.py uses urllib2 so I need it to work .", "Fetching content with urllib2 is going to be mostly IO-bound .", "http : stackoverflow.com q 668257 95735 .. . Python gevent urllib2.urlopen.read download accelerator http : stackoverflow.com q 9013024 95735 .. . Python Urllib2 Threading : Single download thread faster than multiple download threads .", "I m trying to send a SOAP xml request to coverity web-api using python urllib2 I m unable to install new python modules so my options are limited to urllib2 .", "You cannot .read file-like object that is what according to the docs https : docs.python.org 2 library urllib2.html urllib2.urlopen urlopen returns twice .", "According to this my request data looks like this : .. . .. . I create this request using python library urllib2 .", "I think your best choice is to patch or deploy an local version of your urllib2 with the change from the 2.6 maintenance branch http : svn.python.org view python branches release26-maint Lib urllib2.py r1 55389 r2 55792 .. . .. . The file should be in usr lib python2.4 urllib2.py on linux and 2.4", "http : stackoverflow.com q 2261035 95735 .. . Multi threaded web scraper using urlretrieve on a cookie-enabled site http : stackoverflow.com q 6111372 95735 .. . .. . Looking for python +urllib2 +slow : .. . .. . Python urllib2.open is slow need a better way to read several urls http : stackoverflow.com q 3472515 95735 .. . Python 2.6 : parallel parsing with urllib2 http : stackoverflow.com q 3155382 95735 .. . How can I speed up fetching pages with urllib2 in python", "stackoverflow.com questions 1450132 proxy-with-urllib2 http : stackoverflow.com questions 1450132 proxy-with-urllib2", "Is it possible to click the button with just urllib or urllib2", "Problem .. . .. . The method urllib2.urlopen has no headers argument .", "On the other hand with urllib2.urlopen the output is buffered .", "I want to feed back into urllib2.urlopen again .", "@jro : Look at urllib2.Request . . line in the question .", "It seems urllib2 returns only the first chunk", "I m using the urllib2 library to define the proxy server .", "The proxy server returns a header in its reply to urllib2 s request to establish the SSL tunnel that I need to see but I don t see a way to get access to it using urllib2 Python 2.7.3 .", "urllib2.urlopen accepts an instance of the Request class or a url whereas urllib.urlopen only accepts a url .", "I am using the API for challonge and their url format is https : username : password@challonge.com api However when the use urllib2 in python to get this url response urllib2.urlopen https : username : password@challonge.com api I get an error about a non-numerical port-number .", "You can have more informations on urllib2 and the Request class here https : docs.python.org 2 library urllib2.html urllib2.Request .. . .. . However I suggest you take a look at Requests http : docs.python-requests.org en master which is in my opinion easier to use and very well documented .", "As you can see https : docs.python.org 2 library urllib2.html highlight urllib2.httphandler urllib2.HTTPHandler.http open those handlers are just objects that get a request or I d say request params object and actually make an HTTP request .", "Changing my comment into an answer : .. . .. . The page that you re scraping responded with most likely a 4xx response and urllib2 raises an HTTPError as it says it does in the docs http : docs.python.org 2 library urllib2.html .", "Looking at the current python docs docs.python.org library urllib2.html request-objects http : docs.python.org library urllib2.html request-objects request doesn t have an add body method .", "There are cURL wrappers for Python but the preferred way of doing this is using urllib2 http : docs.python.org library urllib2.html .. . .. . Note that your code in PHP retrieves the whole page and prints it .", "However when I use urllib2 to read the URL the HTML that it pulls does not include the comments on that webpage .", "Line 154 of urllib2 : .. . .. . return opener.open url data timeout .. . .. . Try changing your opener variable .", "I am trying to read in the following url using urllib2 : http : frcwest.com and then search the data for the meta redirect .", "I believe this is cause by the colon : in the url making urllib2 think i m trying to get a port of something .", "But for legacy reasons I am stuck with using urllib2 .", "I am using urllib2 to get the data .", "I m guessing urllib2 and thus pywikipedia don t support this", "Look at image there is visible how work requests and urllib2 .", "urllib2 does not verify server certificate by default .", "In the meantime urllib2 seems to verify server certificates by default ." ] }
{ "confidence": [ 49.037498474121094, 47.115257263183594, 46.136802673339844, 45.73807144165039, 45.657264709472656, 45.38007354736328, 44.351478576660156, 44.11082077026367, 43.97004699707031, 43.88688659667969, 43.846641540527344, 43.702293395996094, 43.63346862792969, 43.60765075683594, 43.503273010253906, 43.44001007080078, 43.44001007080078, 42.97199249267578, 42.85253143310547, 42.692806243896484 ], "content": [ "Question : I am using the API for challonge and their url format is https : username : password@challonge.com api However when the use urllib2 in python to get this url response urllib2.urlopen https : username : password@challonge.com api I get an error about a non-numerical port-number . I believe this is cause by the colon : in the url making urllib2 think i m trying to get a port of something . Is there anyway around this issue or am I doing something wrong .. . Answer : This is because you must use auth handlers like urllib2.HTTPBasicAuthHandler or other . urllib2 docs http : docs.python.org library urllib2.html", "Question : In Python what are the differences between the urllib urllib2 and requests http : docs.python-requests.org en latest index.html module Why are there three They seem to do the same thing.. . Comment : Not to throw another wrench in your plans but if you re talking about using them for HTTP access I d recommend code.google.com p httplib2 http : code.google.com p httplib2 httplib2 instead . Comment : Requests http : docs.python-requests.org en latest index.html is the best . Comment : Yes use requests . stackoverflow.com questions 22676 http : stackoverflow.com questions 22676 how-do-i-download-a-file-over-http-using-python 10744565 10744565 Comment : requests uses urllib3. . 3 is a bigger number .. . Answer : urllib2 provides some extra functionality namely the urlopen function can allow you to specify headers normally you d have had to use httplib in the past which is far more verbose . More importantly though urllib2 provides the Request class which allows for a more declarative approach to doing a request : .. . .. . Note that urlencode is only in urllib not urllib2 . There are also handlers for implementing more advanced URL support in urllib2 . The short answer is unless you re working with legacy code you probably want to use the URL opener from urllib2 but you still need to import into urllib for some of the utility functions . Bonus answer With Google App Engine you can use any of httplib urllib or urllib2 but all of them are just wrappers for Google s URL Fetch API . That is you are still subject to the same limitations such as ports protocols and the length of the response allowed . You can use the core of the libraries as you would expect for retrieving HTTP URLs though . Comment : How does somebody create a url with an encoded query-string using urllib2 It s the only reason I m using urllib and I d like to make sure I m doing everything the latest greatest way . Comment : Like in my above example you use urlopen and Request from urllib2 and you use urlencode from urllib . No real harm in using both libraries as long as you make sure you use the correct urlopen . The urllib docs 1 are clear on that using this is acecepted usage . 1 : docs.python.org library urllib2.html urllib2.urlopen http : docs.python.org library urllib2.html urllib2.urlopen Comment : I know this is a bit old but does anyone have any updates to this Looking at the current python docs docs.python.org library urllib2.html request-objects http : docs.python.org library urllib2.html request-objects request doesn t have an add body method . It doesn t work in the python interactive prompt either and throws an AttributeError Comment : It should have been add data so I corrected it . Comment : I think this answer is stale now that the awesome Requests package is out there so I m changing my selected answer .", "Question : null .. . Answer : Below is the Python code for generating the XML file : .. . .. . SOAP method for above code : .. . .. . Code to call the end points .. . .. . How can I call this using urllib2 Comment : Could you give a Minimal Complete and Verifiable example http : stackoverflow.com help mcve explaining what s wrong with your current code Comment : this is the error i am getting but after adding the length i get some other errors response urllib2.urlopen req Traceback most recent call last : File stdin line 1 in module File usr lib64 python2.6 urllib2.py line 126 in urlopen return opener.open url data timeout File usr lib64 python2.6 urllib2.py line 389 in open req meth req File usr lib64 python2.6 urllib2.py line 1106 in do request Content-length d len data TypeError : object of type file has no len ----------- Comment : Please edit http : stackoverflow.com posts 38038070 edit the question accordingly . Comment : response meth req response File usr lib64 python2.6 urllib2.py line 510 in http response http-request response code msg hdrs File usr lib64 python2.6 urllib2.py line 435 in error return self . call chain args File usr lib64 python2.6 urllib2.py line 369 in call chain result func args File usr lib64 python2.6 urllib2.py line 518 in http-error default raise HTTPError req.get full url code msg hdrs fp urllib2.HTTPError : HTTP Error 500 : Internal Server Error Comment : I m trying to help you . Learn How to Ask http : stackoverflow.com questions how-to-ask read the formatting guidance http : stackoverflow.com help formatting and edit http : stackoverflow.com posts 38038070 edit the question", "Question : I m using rest api to send push notifications . Docs are here . https : parse.com docs rest guide I m using pyramid and scheduling these push notifications using celery . This is my code sample : .. . .. . But celery logs this error : .. . .. . What is the problem .. . Answer : urllib2.urlopen https : docs.python.org 2 library urllib2.html urllib2.urlopen has no argument named headers : .. . .. . urllib2.urlopen : url data None timeout socket . GLOBAL DEFAULT TIMEOUT .. . .. . Open the URL url which can be either a string or a Request object . Use urllib2.Request https : docs.python.org 2 library urllib2.html urllib2.Request to pass headers : Comment : bigOther : How ll I add the headers then I tried urllib2.Request but I m getting the same error saying that urlopen got an unexpected keyword argument . Comment : if you use Request pass it only to urlopen : urllib2.urlopen req . . it can t give you the same problem because you are using no keyword here . Comment : you tried it and gave you an error what error Comment : Same error TypeError : urlopen got an unexpected keyword argument headers Comment : After restarting my system it magically succeded", "Question : Ok so I need to download some web pages using Python and did a quick investigation of my options . Included with Python : .. . .. . urllib http : docs.python.org library urllib.html - seems to me that I should use urllib2 instead . urllib has no cookie support HTTP FTP local files only no SSL .. . .. . urllib2 http : docs.python.org library urllib2.html - complete HTTP FTP client supports most needed things like cookies does not support all HTTP verbs only GET and POST no TRACE etc . Full featured : .. . .. . mechanize http : wwwsearch.sourceforge.net mechanize - can use save Firefox IE cookies take actions like follow second link actively maintained 0.2.5 released in March 2011 .. . .. . PycURL http : pycurl.sourceforge.net - supports everything curl does FTP FTPS HTTP HTTPS GOPHER TELNET DICT FILE and LDAP bad news : not updated since Sep 9 2008 7.19.0 .. . .. . New possibilities : .. . .. . urllib3 http : code.google.com p urllib3 - supports connection re-using pooling and file posting .. . .. . Deprecated a.k.a . use urllib urllib2 instead : .. . .. . httplib http : docs.python.org library httplib.html - HTTP HTTPS only no FTP .. . .. . httplib2 http : code.google.com p httplib2 - HTTP HTTPS only no FTP .. . .. . The first thing that strikes me is that urllib urllib2 PycURL mechanize are all pretty mature solutions that work well . mechanize and PycURL ship with a number of Linux distributions e.g . Fedora 13 and BSDs so installation is a non issue typically so that s good . urllib2 looks good but I m wondering why PycURL and mechanize both seem very popular is there something I am missing i.e . if I use urllib2 will I paint myself in to a corner at some point . I d really like some feedback on the pros cons of these things so I can make the best choice for myself . Edit : added note on verb support in urllib2 Comment : What does best mean Best with respect to what Fastest Largest Best use of Cookies What do you need to do Comment : httplib isn t deprecated . It is a lower level module that urllib2 is built on top of . you can use it directly but it is easier via urllib2 Comment : What Corey said e.g . urllib3 is a layer on top of httplib . Also httplib2 is not deprecated - in fact it s newer than urllib2 and fixes problems like connection reuse same with urllib3 . Comment : There is a newer library called requests . See docs.python-requests.org en latest index.html http : docs.python-requests.org en latest index.html Comment : With @ustun on this : use requests . .. . Answer : Urllib2 only supports HTTP GET and POST there might be workarounds but If your app depends on other HTTP verbs you will probably prefer a different module . Comment : Not true . See Python - HEAD request with urllib2 http : stackoverflow.com questions 4421170 Comment : @Piotr Dobrogost . Still very true . Until you can use urllib2.urlopen to generate a HEAD request it is unsupported . Creating a custom subclass HEAD support . I could create an int subclass that generates HTML but it would never make sense to say that python int can generate HTML . Comment : Until you can use urllib2.urlopen to generate a HEAD request it is unsupported . What makes you think so Creating a custom subclass HEAD support . Which part of HEAD support is urllib2 missing Comment : @Piotr Dobrogost I think so because it isn t supported by the api . If you can point me to an example of ullib2.urlopen generating a non GET or POST request I will delete my answer .", "Question : How can I download a webpage with a user-agent other than the default one on urllib2.urlopen .. . Answer : Another solution in urllib2 and Python 2.7 : Comment : I get an error 404 for a page that exist if url entered trough my browser", "Question : Ok so I need to download some web pages using Python and did a quick investigation of my options . Included with Python : .. . .. . urllib http : docs.python.org library urllib.html - seems to me that I should use urllib2 instead . urllib has no cookie support HTTP FTP local files only no SSL .. . .. . urllib2 http : docs.python.org library urllib2.html - complete HTTP FTP client supports most needed things like cookies does not support all HTTP verbs only GET and POST no TRACE etc . Full featured : .. . .. . mechanize http : wwwsearch.sourceforge.net mechanize - can use save Firefox IE cookies take actions like follow second link actively maintained 0.2.5 released in March 2011 .. . .. . PycURL http : pycurl.sourceforge.net - supports everything curl does FTP FTPS HTTP HTTPS GOPHER TELNET DICT FILE and LDAP bad news : not updated since Sep 9 2008 7.19.0 .. . .. . New possibilities : .. . .. . urllib3 http : code.google.com p urllib3 - supports connection re-using pooling and file posting .. . .. . Deprecated a.k.a . use urllib urllib2 instead : .. . .. . httplib http : docs.python.org library httplib.html - HTTP HTTPS only no FTP .. . .. . httplib2 http : code.google.com p httplib2 - HTTP HTTPS only no FTP .. . .. . The first thing that strikes me is that urllib urllib2 PycURL mechanize are all pretty mature solutions that work well . mechanize and PycURL ship with a number of Linux distributions e.g . Fedora 13 and BSDs so installation is a non issue typically so that s good . urllib2 looks good but I m wondering why PycURL and mechanize both seem very popular is there something I am missing i.e . if I use urllib2 will I paint myself in to a corner at some point . I d really like some feedback on the pros cons of these things so I can make the best choice for myself . Edit : added note on verb support in urllib2 Comment : What does best mean Best with respect to what Fastest Largest Best use of Cookies What do you need to do Comment : httplib isn t deprecated . It is a lower level module that urllib2 is built on top of . you can use it directly but it is easier via urllib2 Comment : What Corey said e.g . urllib3 is a layer on top of httplib . Also httplib2 is not deprecated - in fact it s newer than urllib2 and fixes problems like connection reuse same with urllib3 . Comment : There is a newer library called requests . See docs.python-requests.org en latest index.html http : docs.python-requests.org en latest index.html Comment : With @ustun on this : use requests . .. . Answer : urllib2 is found in every Python install everywhere so is a good base upon which to start . PycURL is useful for people already used to using libcurl exposes more of the low-level details of HTTP plus it gains any fixes or improvements applied to libcurl . mechanize is used to persistently drive a connection much like a browser would . It s not a matter of one being better than the other it s a matter of choosing the appropriate tool for the job . Comment : I have implemented httplib2 in my python application . Is httplib2 support NTLM . If not what i have to do for NTLM authentication . Note : I find that httplib2 will not support NTLM . Comment : @Ayyappan urllib3 has NTLM support via the contrib submodule : urllib3 contrib ntlmpool.py http : code.google.com p urllib3 source browse urllib3 contrib ntlmpool.py spec svn308cfcafd2c78e4158397c0d29de667f3f387335 r 308cfcafd2c78e4158397c0d29de667f3f387335", "Question : In Python what are the differences between the urllib urllib2 and requests http : docs.python-requests.org en latest index.html module Why are there three They seem to do the same thing.. . Comment : Not to throw another wrench in your plans but if you re talking about using them for HTTP access I d recommend code.google.com p httplib2 http : code.google.com p httplib2 httplib2 instead . Comment : Requests http : docs.python-requests.org en latest index.html is the best . Comment : Yes use requests . stackoverflow.com questions 22676 http : stackoverflow.com questions 22676 how-do-i-download-a-file-over-http-using-python 10744565 10744565 Comment : requests uses urllib3. . 3 is a bigger number .. . Answer : urllib2.urlopen accepts an instance of the Request class or a url whereas urllib.urlopen only accepts a url . A similar discussion took place here : http : www.velocityreviews.com forums t326690-urllib-urllib2-what-is-the-difference.html", "Question : I m using Python S60 PyS60 with Python 2.2 engine . i already have urllib2 module but HTTPCookieProcessor doesn t exist .. . Answer : urllib2.HTTPCookieProcessor http : docs.python.org 2 library urllib2.html httpcookieprocessor-objects was added in Python 2.4 so it s not available in your version of Python . I d advise you to upgrade to a newer version of Python 2 as Python 2.2 is already nine years old . I just looked up the PyS60 thing and it seems that there is no newer version although I m not sure on that their version numbering scheme is a bit weird so you might not be able to upgrade that . What you could try is to backport the HTTPCookieProcessor type from Python 2.4+ . But that might not work if other internals changed that are necessary for that . Looking at its source http : hg.python.org cpython file ceec209b26d4 Lib urllib2.py l1033 in Python 2.4 to not introduce too many changes from later versions it does seem very simple so it might work out well . At least it s worth a try .", "Question : Ok so I need to download some web pages using Python and did a quick investigation of my options . Included with Python : .. . .. . urllib http : docs.python.org library urllib.html - seems to me that I should use urllib2 instead . urllib has no cookie support HTTP FTP local files only no SSL .. . .. . urllib2 http : docs.python.org library urllib2.html - complete HTTP FTP client supports most needed things like cookies does not support all HTTP verbs only GET and POST no TRACE etc . Full featured : .. . .. . mechanize http : wwwsearch.sourceforge.net mechanize - can use save Firefox IE cookies take actions like follow second link actively maintained 0.2.5 released in March 2011 .. . .. . PycURL http : pycurl.sourceforge.net - supports everything curl does FTP FTPS HTTP HTTPS GOPHER TELNET DICT FILE and LDAP bad news : not updated since Sep 9 2008 7.19.0 .. . .. . New possibilities : .. . .. . urllib3 http : code.google.com p urllib3 - supports connection re-using pooling and file posting .. . .. . Deprecated a.k.a . use urllib urllib2 instead : .. . .. . httplib http : docs.python.org library httplib.html - HTTP HTTPS only no FTP .. . .. . httplib2 http : code.google.com p httplib2 - HTTP HTTPS only no FTP .. . .. . The first thing that strikes me is that urllib urllib2 PycURL mechanize are all pretty mature solutions that work well . mechanize and PycURL ship with a number of Linux distributions e.g . Fedora 13 and BSDs so installation is a non issue typically so that s good . urllib2 looks good but I m wondering why PycURL and mechanize both seem very popular is there something I am missing i.e . if I use urllib2 will I paint myself in to a corner at some point . I d really like some feedback on the pros cons of these things so I can make the best choice for myself . Edit : added note on verb support in urllib2 Comment : What does best mean Best with respect to what Fastest Largest Best use of Cookies What do you need to do Comment : httplib isn t deprecated . It is a lower level module that urllib2 is built on top of . you can use it directly but it is easier via urllib2 Comment : What Corey said e.g . urllib3 is a layer on top of httplib . Also httplib2 is not deprecated - in fact it s newer than urllib2 and fixes problems like connection reuse same with urllib3 . Comment : There is a newer library called requests . See docs.python-requests.org en latest index.html http : docs.python-requests.org en latest index.html Comment : With @ustun on this : use requests . .. . Answer : To get some webpages use requests From http : docs.python-requests.org en latest : .. . .. . Python s standard urllib2 module provides most of the HTTP capabilities you need but the API is thoroughly broken . It was built for a different time and a different web . It requires an enormous amount of work even method overrides to perform the simplest of tasks . .. . Things shouldn t be this way . Not in Python .", "Question : I ve got a piece of code that I can t figure out how to unit test The module pulls content from external XML feeds twitter flickr youtube etc . with urllib2 . Here s some pseudo-code for it : .. . .. . My first thought was to pickle the response and load it for testing but apparently urllib s response object is unserializable it raises an exception . Just saving the XML from the response body isn t ideal because my code uses the header information too . It s designed to act on a response object . And of course relying on an external source for data in a unit test is a horrible idea . So how do I write a unit test for this Comment : Related : stackoverflow.com questions 295438 http : stackoverflow.com questions 295438 how-can-one-mock-stub-python-module-like-urllib .. . Answer : urllib2 has a functions called build opener and install opener which you should use to mock the behaviour of urlopen Comment : This is pretty cool I didn t actually know urllib2 let you install alternate openers . The only issue I see is that it means you ve changed global shared state this means any subsequent calls to urllib2.urlopen will use your handler unless you re-register the old one which is fine if you re running individual tests but can cause issues in a test suite when various tests can effect the results of subsequent tests . Comment : @Crast the idea is to change the global behaviour because the call to urlopen might be deep down in the module somewhere . It would be simple enough to pass requests you are not interested in on to the HTTPHandler . In most cases I would be using the same mock opener for an entire test suite and then reinstall the original . Comment : That s extremely helpful thank you Comment : @Crast there is a way to uninstall a previously installed opener . It s not documented though . Before you install https : docs.python.org 2 library urllib2.html urllib2.install opener a mock opener you want to save the old one with oldOpener urllib2 . opener . Then in your unit test teardown https : docs.python.org 2 library unittest.html unittest.TestCase.tearDown you install it back with urllib2.install opener oldOpener .", "Question : Ok so I need to download some web pages using Python and did a quick investigation of my options . Included with Python : .. . .. . urllib http : docs.python.org library urllib.html - seems to me that I should use urllib2 instead . urllib has no cookie support HTTP FTP local files only no SSL .. . .. . urllib2 http : docs.python.org library urllib2.html - complete HTTP FTP client supports most needed things like cookies does not support all HTTP verbs only GET and POST no TRACE etc . Full featured : .. . .. . mechanize http : wwwsearch.sourceforge.net mechanize - can use save Firefox IE cookies take actions like follow second link actively maintained 0.2.5 released in March 2011 .. . .. . PycURL http : pycurl.sourceforge.net - supports everything curl does FTP FTPS HTTP HTTPS GOPHER TELNET DICT FILE and LDAP bad news : not updated since Sep 9 2008 7.19.0 .. . .. . New possibilities : .. . .. . urllib3 http : code.google.com p urllib3 - supports connection re-using pooling and file posting .. . .. . Deprecated a.k.a . use urllib urllib2 instead : .. . .. . httplib http : docs.python.org library httplib.html - HTTP HTTPS only no FTP .. . .. . httplib2 http : code.google.com p httplib2 - HTTP HTTPS only no FTP .. . .. . The first thing that strikes me is that urllib urllib2 PycURL mechanize are all pretty mature solutions that work well . mechanize and PycURL ship with a number of Linux distributions e.g . Fedora 13 and BSDs so installation is a non issue typically so that s good . urllib2 looks good but I m wondering why PycURL and mechanize both seem very popular is there something I am missing i.e . if I use urllib2 will I paint myself in to a corner at some point . I d really like some feedback on the pros cons of these things so I can make the best choice for myself . Edit : added note on verb support in urllib2 Comment : What does best mean Best with respect to what Fastest Largest Best use of Cookies What do you need to do Comment : httplib isn t deprecated . It is a lower level module that urllib2 is built on top of . you can use it directly but it is easier via urllib2 Comment : What Corey said e.g . urllib3 is a layer on top of httplib . Also httplib2 is not deprecated - in fact it s newer than urllib2 and fixes problems like connection reuse same with urllib3 . Comment : There is a newer library called requests . See docs.python-requests.org en latest index.html http : docs.python-requests.org en latest index.html Comment : With @ustun on this : use requests . .. . Answer : Take a look on Grab http : grablib.org . It is a network library which provides two main interfaces : 1 Grab for creating network requests and parsing retrieved data 2 Spider for creating bulk site scrapers .. . .. . Under the hood Grab uses pycurl and lxml but it is possible to use other network transports for example requests library . Requests transport is not well tested yet .", "Question : The urllib2 documentation http : docs.python.org library urllib2.html says that timeout parameter was added in Python 2.6 . Unfortunately my code base has been running on Python 2.5 and 2.4 platforms . Is there any alternate way to simulate the timeout All I want to do is allow the code to talk the remote-server for a fixed amount of time . Perhaps any alternative built-in library Don t want install 3rd party like pycurl .. . Answer : I think your best choice is to patch or deploy an local version of your urllib2 with the change from the 2.6 maintenance branch http : svn.python.org view python branches release26-maint Lib urllib2.py r1 55389 r2 55792 .. . .. . The file should be in usr lib python2.4 urllib2.py on linux and 2.4 Comment : what about socket.settimeout Will it help Comment : I think it might I had the same problem quite some time ago and for some reason I couldn t get it to work . However I have no recollection whatsoever where the code might be so cannot check :", "Question : Ok so I need to download some web pages using Python and did a quick investigation of my options . Included with Python : .. . .. . urllib http : docs.python.org library urllib.html - seems to me that I should use urllib2 instead . urllib has no cookie support HTTP FTP local files only no SSL .. . .. . urllib2 http : docs.python.org library urllib2.html - complete HTTP FTP client supports most needed things like cookies does not support all HTTP verbs only GET and POST no TRACE etc . Full featured : .. . .. . mechanize http : wwwsearch.sourceforge.net mechanize - can use save Firefox IE cookies take actions like follow second link actively maintained 0.2.5 released in March 2011 .. . .. . PycURL http : pycurl.sourceforge.net - supports everything curl does FTP FTPS HTTP HTTPS GOPHER TELNET DICT FILE and LDAP bad news : not updated since Sep 9 2008 7.19.0 .. . .. . New possibilities : .. . .. . urllib3 http : code.google.com p urllib3 - supports connection re-using pooling and file posting .. . .. . Deprecated a.k.a . use urllib urllib2 instead : .. . .. . httplib http : docs.python.org library httplib.html - HTTP HTTPS only no FTP .. . .. . httplib2 http : code.google.com p httplib2 - HTTP HTTPS only no FTP .. . .. . The first thing that strikes me is that urllib urllib2 PycURL mechanize are all pretty mature solutions that work well . mechanize and PycURL ship with a number of Linux distributions e.g . Fedora 13 and BSDs so installation is a non issue typically so that s good . urllib2 looks good but I m wondering why PycURL and mechanize both seem very popular is there something I am missing i.e . if I use urllib2 will I paint myself in to a corner at some point . I d really like some feedback on the pros cons of these things so I can make the best choice for myself . Edit : added note on verb support in urllib2 Comment : What does best mean Best with respect to what Fastest Largest Best use of Cookies What do you need to do Comment : httplib isn t deprecated . It is a lower level module that urllib2 is built on top of . you can use it directly but it is easier via urllib2 Comment : What Corey said e.g . urllib3 is a layer on top of httplib . Also httplib2 is not deprecated - in fact it s newer than urllib2 and fixes problems like connection reuse same with urllib3 . Comment : There is a newer library called requests . See docs.python-requests.org en latest index.html http : docs.python-requests.org en latest index.html Comment : With @ustun on this : use requests . .. . Answer : Don t worry about last updated . HTTP hasn t changed much in the last few years .. . .. . urllib2 is best as it s inbuilt then switch to mechanize if you need cookies from Firefox . mechanize can be used as a drop-in replacement for urllib2 - they have similar methods etc . Using Firefox cookies means you can get things from sites like say StackOverflow using your personal login credentials . Just be responsible with your number of requests or you ll get blocked . PycURL is for people who need all the low-level stuff in libcurl . I would try the other libraries first . Comment : requests is also useful in storing cookies . With requests you create a new session and then instead of requests.get you call sessionName.get . Cookies will then be stored in your session . For example once you ve logged into a website using a session you will be able to do other http requests using your session as a logged in user .", "Question : This afternoon I spent several hours trying to find a bug in my custom extension to urllib2.Request . The problem was as I found out the usage of super ExtendedRequest self since urllib2.Request is I m on Python 2.5 still an old style class where the use of super is not possible . The most obvious way to create a new class with both features .. . .. . doesn t work . Calling it I m left with AttributeError : type raised by urllib2.Request . getattr . Now before I start and copy n paste the whole urllib2.Request class from usr lib python just to rewrite it as .. . .. . has anyone an idea how I could achieve this in a more elegant way With this being to have a new-style class based on urllib2.Request with working support for super . Edit : By the way : the AttributeError mentioned : .. . Answer : This should work fine since the hierarchy is simple Comment : Thanks for the answer but I know that . Actually I m doing just this at the moment . However I wanted to utilize the power of super in some aspects such as multiple-inheritance . Comment : The whole hierarchy has to be new style for super to work correctly Comment : OK thanks . It s a pity that it doesn t work . Comment : yes it s a pity that urllib2 isn t using newstyle classes . I wonder why they did that", "Question : Ok so I need to download some web pages using Python and did a quick investigation of my options . Included with Python : .. . .. . urllib http : docs.python.org library urllib.html - seems to me that I should use urllib2 instead . urllib has no cookie support HTTP FTP local files only no SSL .. . .. . urllib2 http : docs.python.org library urllib2.html - complete HTTP FTP client supports most needed things like cookies does not support all HTTP verbs only GET and POST no TRACE etc . Full featured : .. . .. . mechanize http : wwwsearch.sourceforge.net mechanize - can use save Firefox IE cookies take actions like follow second link actively maintained 0.2.5 released in March 2011 .. . .. . PycURL http : pycurl.sourceforge.net - supports everything curl does FTP FTPS HTTP HTTPS GOPHER TELNET DICT FILE and LDAP bad news : not updated since Sep 9 2008 7.19.0 .. . .. . New possibilities : .. . .. . urllib3 http : code.google.com p urllib3 - supports connection re-using pooling and file posting .. . .. . Deprecated a.k.a . use urllib urllib2 instead : .. . .. . httplib http : docs.python.org library httplib.html - HTTP HTTPS only no FTP .. . .. . httplib2 http : code.google.com p httplib2 - HTTP HTTPS only no FTP .. . .. . The first thing that strikes me is that urllib urllib2 PycURL mechanize are all pretty mature solutions that work well . mechanize and PycURL ship with a number of Linux distributions e.g . Fedora 13 and BSDs so installation is a non issue typically so that s good . urllib2 looks good but I m wondering why PycURL and mechanize both seem very popular is there something I am missing i.e . if I use urllib2 will I paint myself in to a corner at some point . I d really like some feedback on the pros cons of these things so I can make the best choice for myself . Edit : added note on verb support in urllib2 Comment : What does best mean Best with respect to what Fastest Largest Best use of Cookies What do you need to do Comment : httplib isn t deprecated . It is a lower level module that urllib2 is built on top of . you can use it directly but it is easier via urllib2 Comment : What Corey said e.g . urllib3 is a layer on top of httplib . Also httplib2 is not deprecated - in fact it s newer than urllib2 and fixes problems like connection reuse same with urllib3 . Comment : There is a newer library called requests . See docs.python-requests.org en latest index.html http : docs.python-requests.org en latest index.html Comment : With @ustun on this : use requests . .. . Answer : Python requests http : pypi.python.org pypi requests is also a good candidate for HTTP stuff . It has a nicer api IMHO an example http-request from their offcial documentation : Comment : requests internally uses urlib3", "Question : Ok so I need to download some web pages using Python and did a quick investigation of my options . Included with Python : .. . .. . urllib http : docs.python.org library urllib.html - seems to me that I should use urllib2 instead . urllib has no cookie support HTTP FTP local files only no SSL .. . .. . urllib2 http : docs.python.org library urllib2.html - complete HTTP FTP client supports most needed things like cookies does not support all HTTP verbs only GET and POST no TRACE etc . Full featured : .. . .. . mechanize http : wwwsearch.sourceforge.net mechanize - can use save Firefox IE cookies take actions like follow second link actively maintained 0.2.5 released in March 2011 .. . .. . PycURL http : pycurl.sourceforge.net - supports everything curl does FTP FTPS HTTP HTTPS GOPHER TELNET DICT FILE and LDAP bad news : not updated since Sep 9 2008 7.19.0 .. . .. . New possibilities : .. . .. . urllib3 http : code.google.com p urllib3 - supports connection re-using pooling and file posting .. . .. . Deprecated a.k.a . use urllib urllib2 instead : .. . .. . httplib http : docs.python.org library httplib.html - HTTP HTTPS only no FTP .. . .. . httplib2 http : code.google.com p httplib2 - HTTP HTTPS only no FTP .. . .. . The first thing that strikes me is that urllib urllib2 PycURL mechanize are all pretty mature solutions that work well . mechanize and PycURL ship with a number of Linux distributions e.g . Fedora 13 and BSDs so installation is a non issue typically so that s good . urllib2 looks good but I m wondering why PycURL and mechanize both seem very popular is there something I am missing i.e . if I use urllib2 will I paint myself in to a corner at some point . I d really like some feedback on the pros cons of these things so I can make the best choice for myself . Edit : added note on verb support in urllib2 Comment : What does best mean Best with respect to what Fastest Largest Best use of Cookies What do you need to do Comment : httplib isn t deprecated . It is a lower level module that urllib2 is built on top of . you can use it directly but it is easier via urllib2 Comment : What Corey said e.g . urllib3 is a layer on top of httplib . Also httplib2 is not deprecated - in fact it s newer than urllib2 and fixes problems like connection reuse same with urllib3 . Comment : There is a newer library called requests . See docs.python-requests.org en latest index.html http : docs.python-requests.org en latest index.html Comment : With @ustun on this : use requests . .. . Answer : Every python library that speaks HTTP has its own advantages . Use the one that has the minimum amount of features necessary for a particular task . Your list is missing at least urllib3 http : code.google.com p urllib3 - a cool third party HTTP library which can reuse a HTTP connection thus speeding up greatly the process of retrieving multiple URLs from the same site . Comment : Added to the list thanks Comment : requests uses urllib3 under the hood .", "Question : How can I download a webpage with a user-agent other than the default one on urllib2.urlopen .. . Answer : Setting the User-Agent http : www.diveintopython.net http web-services user agent.html from everyone s favorite Dive Into Python http : diveintopython.net . The short story : You can use Request.add header http : docs.python.org library urllib2.html urllib2.Request.add header to do this . You can also pass the headers as a dictionary when creating the Request itself as the docs note http : docs.python.org library urllib2.html urllib2.Request : .. . .. . headers should be a dictionary and will be treated as-if add header was called with each key and value as arguments . This is often used to spoof the User-Agent header which is used by a browser to identify itself some HTTP servers only allow requests coming from common browsers as opposed to scripts . For example Mozilla Firefox may identify itself as Mozilla 5.0 X11 U Linux i686 Gecko 20071127 Firefox 2.0.0.11 while urllib2 s default user-agent string is Python-urllib 2.6 on Python 2.6 .", "Question : The urllib2 documentation http : docs.python.org library urllib2.html says that timeout parameter was added in Python 2.6 . Unfortunately my code base has been running on Python 2.5 and 2.4 platforms . Is there any alternate way to simulate the timeout All I want to do is allow the code to talk the remote-server for a fixed amount of time . Perhaps any alternative built-in library Don t want install 3rd party like pycurl .. . Answer : you can set a global timeout for all socket operations including HTTP requests by using : .. . .. . socket.setdefaulttimeout http : docs.python.org library socket.html socket.setdefaulttimeout .. . .. . like this : .. . .. . in this case your urllib2 request would timeout after 30 secs and throw a socket exception . this was added in Python 2.3 Comment : The urllib2 module has been split across several modules in Python 3.0 named urllib.request and urllib.error . But the rest codes are simple enough .", "Question : I m trying to download a page protected with basic-authentication using urllib2 . I m using python-2.7 but I also tried it on another computer with python-2.5 and encountered the exact same behavior . I followed the example given in this guide http : www.voidspace.org.uk python articles authentication.shtml as closely as I could and here is the code that I produced : .. . .. . Unfortunately the server isn t mine so I can t share the details I swapped them out above and below . When I run it I get the following Traceback : .. . .. . Now the interesting part is when I monitor the tcp traffic on the computer using ngrep : .. . .. . It appears as though urllib2 is throwing that exception without even attempting to supply the credentials after getting the initial 401 error . For comparion here is the output of ngrep when I do the authentication in a web browser instead : .. . .. . And then followed with the content of the site . I ve been playing around with this for a while and am not able to figure out what I m doing wrong . I would be very thankful if somebody can help me out .. . Answer : I think that s caused by this : .. . .. . It appears the resource is authenticated with Digest rather than Basic . Which means you should use urllib2.HTTPDigestAuthHandler http : docs.python.org library urllib2.html urllib2.HTTPDigestAuthHandler instead . The code might be Comment : Thank you you were exactly right I really appreciate your help Comment : I have a issue in scrapping the URL of a site from my python script which will extract all the sites containing the pdfs . I am working behind a proxy that asks for a user name and pwd when I open the browser for the first time . I am able to view the site and download pdfs from the site using the browser . However I am not able to do it via code in Python . The error I am facing is : urllib.error.HTTPError : HTTP Error 401 : Authorization Required I am getting the error : AbstractDigestAuthHandler does not support the following scheme : Negotiate Am I missing something" ] }
[ "yes-answer-long", "yes-answer-short" ]
module
UNK_RELATION
autossh@ssh@52
autossh -- autossh is a program to start a copy of @placeholder and monitor it restarting it as necessary should it die or stop passing traffic .
{ "confidence": [ 54.044456481933594, 53.647483825683594, 47.48963928222656, 46.95098114013672, 44.97043991088867, 44.97043991088867, 44.97043991088867, 44.97043991088867, 44.87376403808594, 44.49510192871094, 44.49510192871094, 43.1929817199707, 43.03012466430664, 42.75632858276367, 41.7429084777832, 41.6230354309082, 41.5079460144043, 41.5079460144043, 41.5079460144043, 41.5079460144043, 41.5079460144043, 41.5079460144043, 40.53561019897461, 39.567626953125, 39.567626953125, 39.567626953125, 39.567626953125, 39.567626953125, 39.567626953125, 38.28041076660156, 38.28041076660156, 37.76784896850586, 36.8439826965332, 36.8439826965332, 36.8439826965332, 36.8439826965332, 36.44887924194336, 36.320289611816406, 35.99631881713867, 34.903663635253906, 34.903663635253906, 34.903663635253906, 33.34668731689453, 32.07368469238281, 32.04922103881836, 32.04922103881836, 31.88292121887207, 29.219242095947266, 28.852140426635742, 27.564924240112305, 25.634246826171875, 23.38210678100586, 22.332752227783203, 20.123828887939453, 19.04058074951172, 18.75876808166504, 18.094453811645508, 16.761024475097656, 16.3015079498291, 15.303718566894531, 15.051612854003906, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.681628227233887, 14.39532470703125, 14.157936096191406, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539, 12.741312026977539 ], "content": [ "When trying to use start-stop-daemon to run autossh the pid contained into the pidfile does not match with the autossh process .", "and I use wait to monitor autossh gone down .", "From autossh 1 : .. . .. . Usage :", "Adding the -f option indeed sends autossh to the background but after the ssh tunneling established correctly the autossh itself exit leaving the ssh connection without monitor .", "I am using autossh with a monitoring flag .", "can you tell if expect effects the autossh behavior", "Frankly I have not worked on autossh before .", "That wait will simply wait for the autossh to get closed .", "Since you are passing args to Popen as a sequence the first arg autossh is used as the command and the rest of the args are actually passed to the shell not to autossh .", "This behaviour prevents from stopping autossh using start-stop-daemon or kill it using the pid from the pidfile .", "Actually the AUTOSSH PIDFILE variable could not be used by autossh because start-stop-daemon runs in a different environment .", "-nothing- - expect just quits and I couldn t monitor autossh .. . .. . the solution was using this loop end expecting a connection ok string", "That s because -f tells autossh to drop into the background .", "What is the recommended monitoring approach with autossh", "The autossh has not clue of this as the IP is not one of its adapters .", "I d really like to set up a persistent resilient tunnel like one gets with autossh http : www.harding.motd.ca autossh .", "autossh prints to standard output every time it send test packets .", "When using autossh under expect the text packets messages are not printed .", "how can I figure out if autossh works correctly", "That lines are printed only when running autossh from bash directly .", "I don t need the text itself it is just an indication that the autossh running correctly .", "I ve found out that wait somehow prevents the autossh from monitoring the connection .", "Specifically I am interested in allowing scenario 4 to work : .. . .. . Periodically by default every 10 minutes autossh attempts to pass traffic on the monitor forwarded port .", "I run autossh on a system which might have internet connectivity or might not .", "Isnt autossh meant to keep the ssh process running no matter what", "When running autossh without the -f option everything works fine .", "Try running autossh under a watchdog like daemontools https : cr.yp.to daemontools.html .", "With this method autossh runs as a foreground child of a supervise daemon so no -f switch .", "I want to add a systemd service file for autossh to my system .", "Maybe this http : linuxaria.com howto permanent-ssh-tunnels-with-autossh will help", "I have autossh setup to make and reestablish a tunnel with a remote host .", "The problems with expect : After establishing the ssh-tunnel I have tried using the following .. . .. . 1 . interact - when the bash script was running in background interact hangs so expect wasn t waiting for autossh and I couldn t monitor the autossh without a sleep loop .. . 2 . wait - for some reason it was preventing autossh monitoring mechanism from working properly .", "I have set autossh tunnel from my remote-server to production server .", "the expect code : .. . .. . .. . .. . .. . .. . the periodic output that I see without expect is this : .. . .. . The last 5 lines are test packets sent by autossh .", "When running from using expect those lines are not printed and I dont know if autossh sends them .", "What I wanted : .. . .. . 1 . ssh tunnel using autossh and expect and a wrapper bash script .", "I m using autossh and set it up like shown in the following example : http : surniaulula.com 2012 12 10 autossh-startup-script-for-multiple-tunnels .. . .. . I found it works really well but need some clarification .", "If this fails autossh will kill the child ssh process if it is still running and start a new one .. . .. . Questions : .. . .. . 1 .", "An SSH client connecting to the above using autossh http : linux.die.net man 1 autossh .. . .. . autossh allows persistent self-healing connections to be made and restarts the child ssh process if it exited abnormally the man page has details about what abnormal means .", "Have you tried setting the AUTOSSH PIDFILE variable and having autossh write the pid file itself", "However it seems that autossh automatically creates several processes to handle correctly ssh instances when it does not see AUTOSSH PIDFILE variable .", "alternatively - anyone knows how can I debug autossh when using the -f", "Edit : .. . .. . When using it from a service init script in etc init.d servicename the syntax has to be modified : .. . .. . Notice the -- that must come just after the usr bin env command it was after the usr lib autossh autossh from command-line .", "Or would it be to rely on OpenSSH s ServerAliveDelay so that ssh connections exit timely and disable autossh monitoring altogether", "I dont really know when it has a connection but if so I want autossh to establish a ssh tunnel by : .. . .. . After several seconds it throws : .. . .. . And thats it .", "removing -f option does not work well neither : two processes are then created by autossh and pidfile s pid does not match the root process .", "So the workaround is to use : .. . .. . usr bin env AUTOSSH PIDFILE var run mytunnel.pid correctly defines the necessary environment variable .. . --make-pidfile and --pidfile are no longer required by start-stop-daemon .. . sudo start-stop-daemon --pidfile var run mytunnel.pid --stop now works to kill autossh .. . --background option makes the ssh s -f optional using -f or not does not change anything if --background is used .. . .. . The reason for the behaviour is not completely clear to me .", "This will obviate the need for either a monitoring port or the use of the echo service and will allow the ssh client to handle graceful exits while enabling autossh to restart lost connections .", "Here is the command I m running : autossh -f -M 20000 -N -L 0.0.0.0 : 5601 : 10.10.0.8 : 5601 10.10.0.8 .. . .. . Anyone knows what can cause this problem", "Here is the content of the shell script code : .. . .. . i found this code in a forum : .. . .. . How can i modify my code to be like the one above such that i can autossh and keep my tunnel open forever", "I launch 2 tunnels from local machine with autossh using the following command : .. . .. . usr bin autossh -M 5000 -o ExitOnForwardFailure yes -o ServerAliveInterval 60 -o ServerAliveCountMax 3 -o StrictHostKeyChecking no -o BatchMode yes -c arcfour -f -N -R 3001 : localhost : 22 -N -R 2001 : localhost : 1234 back@remote.com .. . .. . but if local machine boots without internet-connection only local network is reachable and only after booting is complete internet gets available - I get stale connection to remote-server .. .", "3 . when the ssh quits the script should start the tunnel again .", "You can start and stop it with the svc command and you can log all of its output with multilog .", "If those prints will be seen after providing any sort of command then make sure you passing it by send and then wait for those patterns .", "The bash script should run in background .", "During blob transfer it will hang and stop transferring data .", "To me this translated as-if the was for any IP to forward the traffic through but someone told me that it just says for any adapter on the machine .", "You should read the variables with brakets like DEST PORT .", "This skript should ask some viables from a conf-file .", "So I decided I should enable .. . .. . on server s side remote machine sshd config .. . .. . and .. . .. . on client s side local machine ssh config .. . .. . but these options do not work at all .", "If it s the latter how do I start the echo service on osx", "Suddenly the no longer exists .", "If I try recreating the tunnel it prompts channel setup fwd listener : cannot listen to port : xxxx .", "Yes we can kill the process that uses port xxxx and make tunnel again .", "My question is why it breaks how can I see the error-log and fix it", "I don t know if they are sent at all which is important to keep the ssh connection alive .", "Thanks .", "Can you post the code what you have tried", "I ve added the code in the original message .", "thanks .", "But as per your code expect will check for the patterns given by you such as logging in by means of providing the password .", "If it happen to see an sort of error message .", "it will exit .", "Then at the end .", "you have added wait .", "It delays until a spawned process or the current process if none is named terminates .", "I am not sure whether those prints will simply get printed in terminal .", "In that case after logging in you can make the expect to wait for it just like how you did for logging in .", "Unless until you instruct expect to expect for a pattern it won t bother waiting for anything which is why it won t be seen in output as well .", "Thanks for your answer .", "The wait in the end of the expect script was replaced with interact and it is working fine now .", "Thanks Dinesh", "Great Ozma .", "Earlier I thought I trying to close it and waiting for it .", "This is more detailed description and answer .", "2 .", "3 .", "when you are using shell True you don t want to use shlex.split on the command arguments.. . it should just be a string .", "Therefore how do I use launchd to start the echo service on osx Mountain Lion", "I m trying to set up a launchd daemon to keep open a ssh tunnel to one of my servers .", "However the service dies right after the connection with this error : .. . .. . If I run the script directly it works without problem .", "plist in Library LaunchDaemons : .. . .. . ssh script : .. . .. . And this is the error-log the connection fails after login and having printed the welcome message of the server :", "Do I really have to check for a connection by ping or so", "You need to set the AUTOSSH GATETIME environment variable to 0 .", "Ahh ok .", "So adding -f at the end or AUTOSSH GATETIME 0 in the front will fix .", "Thx", "I mean the connection get is created but it s stale .", "I reproduced it 10x times and always get the same .", "If internet is available on boot time - everything goes cool ." ] }
{ "confidence": [ 68.33586883544922, 67.19697570800781, 65.78932189941406, 64.28817749023438, 62.48090744018555, 58.0591926574707, 53.61399841308594, 50.743988037109375, 47.60264205932617, 45.06535339355469, 44.792442321777344, 44.449546813964844, 44.30484390258789, 40.831233978271484, 33.24717330932617, 12.592921257019043 ], "content": [ "Question : I am trying to create a service on my Debian Wheezy system . When trying to use start-stop-daemon to run autossh the pid contained into the pidfile does not match with the autossh process . This behaviour prevents from stopping autossh using start-stop-daemon or kill it using the pid from the pidfile . Is there any reason to this behaviour How to workaround it and make autossh s pid matches the pidfile Comment : Have you tried setting the AUTOSSH PIDFILE variable and having autossh write the pid file itself Comment : Yes with the same result Comment : That s because -f tells autossh to drop into the background . i.e . fork . Try removing it . Comment : removing -f option does not work well neither : two processes are then created by autossh and pidfile s pid does not match the root process . See more info in the answer I found . .. . Answer : The solution I found is inspired by this answer http : serverfault.com a 285739 139286 . Actually the AUTOSSH PIDFILE variable could not be used by autossh because start-stop-daemon runs in a different environment . So the workaround is to use : .. . .. . usr bin env AUTOSSH PIDFILE var run mytunnel.pid correctly defines the necessary environment variable .. . --make-pidfile and --pidfile are no longer required by start-stop-daemon .. . sudo start-stop-daemon --pidfile var run mytunnel.pid --stop now works to kill autossh .. . --background option makes the ssh s -f optional using -f or not does not change anything if --background is used .. . .. . The reason for the behaviour is not completely clear to me . However it seems that autossh automatically creates several processes to handle correctly ssh instances when it does not see AUTOSSH PIDFILE variable . Edit : .. . .. . When using it from a service init script in etc init.d servicename the syntax has to be modified : .. . .. . Notice the -- that must come just after the usr bin env command it was after the usr lib autossh autossh from command-line .", "Question : I am using autossh with a monitoring flag . autossh prints to standard output every time it send test packets . When using autossh under expect the text packets messages are not printed . I don t know if they are sent at all which is important to keep the ssh connection alive . can you tell if expect effects the autossh behavior how can I figure out if autossh works correctly the expect code : .. . .. . .. . .. . .. . .. . the periodic output that I see without expect is this : .. . .. . The last 5 lines are test packets sent by autossh . That lines are printed only when running autossh from bash directly . When running from using expect those lines are not printed and I dont know if autossh sends them . Thanks . Comment : Can you post the code what you have tried Comment : I ve added the code in the original message . thanks . .. . Answer : This is more detailed description and answer . What I wanted : .. . .. . 1 . ssh tunnel using autossh and expect and a wrapper bash script . 2 . The bash script should run in background . 3 . when the ssh quits the script should start the tunnel again . The problems with expect : After establishing the ssh-tunnel I have tried using the following .. . .. . 1 . interact - when the bash script was running in background interact hangs so expect wasn t waiting for autossh and I couldn t monitor the autossh without a sleep loop .. . 2 . wait - for some reason it was preventing autossh monitoring mechanism from working properly . 3 . -nothing- - expect just quits and I couldn t monitor autossh .. . .. . the solution was using this loop end expecting a connection ok string", "Question : When running autossh without the -f option everything works fine . Adding the -f option indeed sends autossh to the background but after the ssh tunneling established correctly the autossh itself exit leaving the ssh connection without monitor . Here is the command I m running : autossh -f -M 20000 -N -L 0.0.0.0 : 5601 : 10.10.0.8 : 5601 10.10.0.8 .. . .. . Anyone knows what can cause this problem alternatively - anyone knows how can I debug autossh when using the -f is there any log file produce when using AUTOSSH DEBUG 1 I m running on Ubuntu 14.04 .. . .. . Thanks Shay .. . Answer : Seeing as no one has a better suggestion.. . Try running autossh under a watchdog like daemontools https : cr.yp.to daemontools.html . With this method autossh runs as a foreground child of a supervise daemon so no -f switch . You can start and stop it with the svc command and you can log all of its output with multilog . This method has proven sufficiently reliable for me on a fleet of production boxes . Comment : Thanks for the tip . daemontools look like a solid workaround for that problem . For now I used screen which also allows me to run it without the -f but I think that for production use cases daemontools is the right tool .", "Question : I am using autossh with a monitoring flag . autossh prints to standard output every time it send test packets . When using autossh under expect the text packets messages are not printed . I don t know if they are sent at all which is important to keep the ssh connection alive . can you tell if expect effects the autossh behavior how can I figure out if autossh works correctly the expect code : .. . .. . .. . .. . .. . .. . the periodic output that I see without expect is this : .. . .. . The last 5 lines are test packets sent by autossh . That lines are printed only when running autossh from bash directly . When running from using expect those lines are not printed and I dont know if autossh sends them . Thanks . Comment : Can you post the code what you have tried Comment : I ve added the code in the original message . thanks . .. . Answer : Frankly I have not worked on autossh before . But as per your code expect will check for the patterns given by you such as logging in by means of providing the password . If it happen to see an sort of error message . it will exit . Then at the end . you have added wait . It delays until a spawned process or the current process if none is named terminates . I am not sure whether those prints will simply get printed in terminal . In that case after logging in you can make the expect to wait for it just like how you did for logging in . If those prints will be seen after providing any sort of command then make sure you passing it by send and then wait for those patterns . Unless until you instruct expect to expect for a pattern it won t bother waiting for anything which is why it won t be seen in output as well . Comment : Thanks for your answer . I don t need the text itself it is just an indication that the autossh running correctly . and I use wait to monitor autossh gone down .", "Question : I have the following two machines : .. . .. . Machine A . OSX Machine which will act as the SSH server .. . Machine B . An SSH client connecting to the above using autossh http : linux.die.net man 1 autossh .. . .. . autossh allows persistent self-healing connections to be made and restarts the child ssh process if it exited abnormally the man page has details about what abnormal means . Specifically I am interested in allowing scenario 4 to work : .. . .. . Periodically by default every 10 minutes autossh attempts to pass traffic on the monitor forwarded port . If this fails autossh will kill the child ssh process if it is still running and start a new one .. . .. . Questions : .. . .. . 1 . What is the recommended monitoring approach with autossh Would it be monitoring on specific ports or using the echo service Or would it be to rely on OpenSSH s ServerAliveDelay so that ssh connections exit timely and disable autossh monitoring altogether 2 . If it s the latter how do I start the echo service on osx From the wiki page of inetd http : en.wikipedia.org wiki Inetd : .. . .. . As of version Mac OS X v10.4 Apple has merged the functionality of inetd into launchd . Therefore how do I use launchd to start the echo service on osx Mountain Lion .. . Answer : I would suggest that you stick with ServerAliveDelay and ServerAliveInterval both of which can be specified inside a local ssh config file . This will obviate the need for either a monitoring port or the use of the echo service and will allow the ssh client to handle graceful exits while enabling autossh to restart lost connections .", "Question : I am using autossh with a monitoring flag . autossh prints to standard output every time it send test packets . When using autossh under expect the text packets messages are not printed . I don t know if they are sent at all which is important to keep the ssh connection alive . can you tell if expect effects the autossh behavior how can I figure out if autossh works correctly the expect code : .. . .. . .. . .. . .. . .. . the periodic output that I see without expect is this : .. . .. . The last 5 lines are test packets sent by autossh . That lines are printed only when running autossh from bash directly . When running from using expect those lines are not printed and I dont know if autossh sends them . Thanks . Comment : Can you post the code what you have tried Comment : I ve added the code in the original message . thanks . .. . Answer : I ve found out that wait somehow prevents the autossh from monitoring the connection . The wait in the end of the expect script was replaced with interact and it is working fine now . Thanks Dinesh Comment : Great Ozma . That wait will simply wait for the autossh to get closed . Earlier I thought I trying to close it and waiting for it .", "Question : I run autossh on a system which might have internet connectivity or might not . I dont really know when it has a connection but if so I want autossh to establish a ssh tunnel by : .. . .. . After several seconds it throws : .. . .. . And thats it . Isnt autossh meant to keep the ssh process running no matter what Do I really have to check for a connection by ping or so .. . Answer : You need to set the AUTOSSH GATETIME environment variable to 0 . From autossh 1 : .. . .. . Usage : Comment : Ahh ok . So adding -f at the end or AUTOSSH GATETIME 0 in the front will fix . Thx", "Question : I am trying to create ssh reverse tunnel . When I run the below command on terminal it works greate : .. . .. . But when I run it in python with os.system or using subprocess it s not working . When I check the processes list the process is created and running and has no difference with the last method . running directly in terminal .. . .. . python code : .. . .. . Any idea What s the problem .. . Answer : when you are using shell True you don t want to use shlex.split on the command arguments.. . it should just be a string . Since you are passing args to Popen as a sequence the first arg autossh is used as the command and the rest of the args are actually passed to the shell not to autossh . So.. . you can either remove shell True or pass args as a string by removing use of shlex.split . https : docs.python.org 2 library subprocess.html subprocess.Popen Comment : I tried your answer but it made no difference . still I can t establish the ssh connection .", "Question : I m using autossh and set it up like shown in the following example : http : surniaulula.com 2012 12 10 autossh-startup-script-for-multiple-tunnels .. . .. . I found it works really well but need some clarification . Particularly the difference between 127.0.0.1 and in the following examples : .. . .. . versus .. . .. . The first one seems to do the redirect if coming from the host machine itself where the 2nd seems to forward from anywhere . To me this translated as-if the was for any IP to forward the traffic through but someone told me that it just says for any adapter on the machine . I m curious is it any IP or any adapter I assume the end result is the same but would like clarification for my own understanding . Update .. . .. . I updated my test to include a specific IP of a network I m using and then tried to connect to the port and found that it did not work with the specific port specified e.g . Since this did not work it makes me believe my buddy was right about the adapters . If anyone can provide me with some details of how the adapter stuff works or a link-to a good article that explains it I d appreciate it . .. . Answer : Figured out my answer figured I would post my answer in case anyone is interested or googles an answer like I did and not find it . So when I did x.x.x.x this was the WAN IP of my remote-server . The autossh has not clue of this as the IP is not one of its adapters . If you run ifconfig on the server then you ll get your local loopback of 127.0.0.1 and other adapters like eth0 which would have the WAN IP . By doing the it does the forwarding for any requests comes from the local loop back as well as from the WAN . So routes all requests where 127.0.0.1 only does the ones that come from the machine itself . If you wanted to allow external forwards but limit who could do it you could achieve this by doing and then limiting communication of the server via iptables .", "Question : null .. . Answer : I am trying to connect remotely to MYSQL in AWS via SSH in Tableau . I use a shell script that i run each time i want to connect to MYSQL in Tableau using a SSH tunnel . Here is the content of the shell script code : .. . .. . i found this code in a forum : .. . .. . How can i modify my code to be like the one above such that i can autossh and keep my tunnel open forever Thanks Comment : Maybe this http : linuxaria.com howto permanent-ssh-tunnels-with-autossh will help Comment : What did you try If it s not working what is your error You ve got everything to do it working . Check man pages . Tips : -L is for local port forwarding and -R is for remote port .", "Question : null .. . Answer : I launch 2 tunnels from local machine with autossh using the following command : .. . .. . usr bin autossh -M 5000 -o ExitOnForwardFailure yes -o ServerAliveInterval 60 -o ServerAliveCountMax 3 -o StrictHostKeyChecking no -o BatchMode yes -c arcfour -f -N -R 3001 : localhost : 22 -N -R 2001 : localhost : 1234 back@remote.com .. . .. . but if local machine boots without internet-connection only local network is reachable and only after booting is complete internet gets available - I get stale connection to remote-server .. . I mean the connection get is created but it s stale . I reproduced it 10x times and always get the same . If internet is available on boot time - everything goes cool . If local network is unreachable and gets available with internet - it s ok but it local starts only with local network and internet appears later - stale connection arises . if I do killall -HUP sshd on remote then local reconnects and working connection appears . So I decided I should enable .. . .. . on server s side remote machine sshd config .. . .. . and .. . .. . on client s side local machine ssh config .. . .. . but these options do not work at all . The connection stays stale and I can t use it only sshd restart on server s side helps . do you and any ideas on this", "Question : null .. . Answer : I have set autossh tunnel from my remote-server to production server . Suddenly the no longer exists . If I try recreating the tunnel it prompts channel setup fwd listener : cannot listen to port : xxxx . Yes we can kill the process that uses port xxxx and make tunnel again . My question is why it breaks how can I see the error-log and fix it", "Question : null .. . Answer : I want to add a systemd service file for autossh to my system . This skript should ask some viables from a conf-file . This is what I tried until now : .. . .. . autossh.service : .. . .. . autossh.conf : .. . .. . Unfortunately the variables are not resolved properly . I tried double quoting and things like LOCAL PORT also . Comment : I just tested it with another example and it worked . I also used the EnvironmentFile option . You should read the variables with brakets like DEST PORT . Also make sure that the path to the file is correct .", "Question : For some reason ssh doesn t work to set up a tunnel to my Google Compute Engine instance . I have to use gcloud compute ssh . I d really like to set up a persistent resilient tunnel like one gets with autossh http : www.harding.motd.ca autossh . Is there any way I can do so using gcloud compute ssh .. . Answer : gcloud compute ssh simply copies your ssh key to the project sshKeys metadata see Cloud Console Compute Engine Metadata SSH Keys and runs standalone SSH with the .ssh google-compute-engine key . To see the exact command-line invoked run gcloud compute ssh --dry-run .. . . Anything that s possible with typical SSH is possible with gcloud compute ssh . Another option to investigate is gcloud compute config-ssh https : cloud.google.com sdk gcloud reference compute config-ssh which syncs your .ssh google-compute-engine SSH key to the project and sets up your .ssh config file so that you can run ssh without gcloud .", "Question : null .. . Answer : I have autossh setup to make and reestablish a tunnel with a remote host . The application is MySQL . There is a script which runs which checks local and remote tables and if there is a mismatch it will pull new entries from the remote table into the local table . My issue is it also pulls blobs . Very large blobs . During blob transfer it will hang and stop transferring data . The only way to fix it is to kill the job and re-establish and restart the transfer . Does anyone have any ideas of how better to improve this and make it transfer the blobs properly The data size is about 3 gigs . The connection is gigabit on our end . Comment : you need to describe how you go about determining if there is a mismatch . Are both systems live for updates on their own merit separately from one another You need details . Devil s in the Details . Comment : Yes both systems are always live for all the updates.There is an ssh tunnel that is always live . The behavior is it goes through all tables relatively easily once it gets to the blobs tables lets say there are 6000 blobs it gets through 50 or 100 and then just stops and sits there and hangs . A way around it I found is I have a cron job which runs every 30 minutes and checks if there are any processes active for the usr account that the script runs under grabs all the pids and kill them and then kick starts the process all over again . the blobs are mostly pdf files if thats of any use .", "Question : null .. . Answer : I m trying to set up a launchd daemon to keep open a ssh tunnel to one of my servers . However the service dies right after the connection with this error : .. . .. . If I run the script directly it works without problem . plist in Library LaunchDaemons : .. . .. . ssh script : .. . .. . And this is the error-log the connection fails after login and having printed the welcome message of the server :" ] }
[ "yes-answer-long", "yes-answer-short" ]
ssh
UNK_RELATION
tinyalsa@linux-kernel@71
tinyalsa -- tinyalsa is a small library to interface with alsa in the @placeholder .
{ "confidence": [ 61.301666259765625, 52.20635986328125, 52.07478713989258, 50.4898681640625, 46.519859313964844, 46.03722381591797, 45.67570495605469, 43.93722152709961, 43.91421890258789, 40.626705169677734, 38.87934112548828, 37.2119026184082, 27.977310180664062, 27.790660858154297, 27.155731201171875, 25.311931610107422, 24.86373519897461, 24.7412109375, 22.474637985229492, 20.555259704589844, 20.370929718017578, 19.83181381225586, 18.815061569213867, 18.4340877532959, 16.586471557617188, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.954474449157715, 14.523907661437988, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 12.97809886932373, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559, 11.666960716247559 ], "content": [ "Should I move to alsa or tinyAlsa", "Unfortunately Alsa or tinyAlsa will most probably not solve the problem without rooting the device .", "See tinymix.c https : github.com tinyalsa tinyalsa blob master tinymix.c for an example .", "tinyalsa i think", "I am using the tinyalsa library to implement audio capturing using mmap .", "I built tinyalsa lib using the sources from tinyalsa-ndk https : github.com ykasidit tinyalsa-ndk and wrapped it with JNI calls and I m trying to use it in my code .", "Then use the tinyalsa mixer API to change the mixer controls .", "As you can see in the source code https : github.com tinyalsa tinyalsa blob master tinymix.c tinymix wants a list of byte values :", "tinyalsa elf failed to run on android shell anybody know what is wrong with it", "I m using tinyalsa and AFAIK there is no option to dump hardware parameters. .", "download tinyalsa source code to a ubuntu 10 vm compile it with arm-linux-gnueabi-gcc .. . 2 .", "TinyALSA Tinycap is available to capture the audio and this appears to behave as expected .", "Are you using the ALSA API", "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", "Or even Alsa pcm mmap tutorial", "I m trying to record audio from the primary device pcmC0P0c using tinyalsa tinycap utility but I encounter the following issues : .. . .. . .. . If I do not modify any mixer control I get an Unable to open PCM device - device not found error .. . When I set one of Multimedia1 switches to on e.g .", "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 .", "did you try the Soft Volume alsa plugin", "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", "In Linux Alsa i know that i can use the below command if it is a Audio Interface arecord -f cd -D hw : 1 0 aplay -f cd So is there any similar command in tinymix also", "ndk-build is the right way to solve this problem because android-library is different with standard c library .", "The system is running Android and it currently uses tiny ALSA for audio .", "Tinyalsa s mixer interface does not have floating-point mixer values .", "I suspect it indeed over complicates things but - as this code eventually access mixer info which is most likely not permitted without root I m trying to figure whether I should do something else to make it work besides calling su before calling alsa methods if the code itself is not the problem. .", "This was configured under : .. . .. . The alternatives to this problem would be to route the audio out of ALSA and around the android stack via a unix domain stream socket .", "I am new to android : - .. . .. . here are my steps : .. . 1 .", "adb push xx tinypcminfo data local tmp .. . 3 .", "adb shell - cd data local tmp - chmod 777 tinypcminfo .. . 4 .", ". tinypcminfo .. . 5 .", "error happened", "It d be useful if you will paste some information about error here : traceback error message whatever", "Thank you andrey I have found the reason .", "so post it as answer", "We re using tinycap to do some script automatically in our android phone device .", "But how to give argument to stop it", "Like tinycap -d 5 test.wav 5s .. . .. . Thanks .", "I used Swig http : www.swig.org to generate Java wrappers and modified output to comply with my package My native method declaration is : .. . .. . My JNI wrapper call is inside a wrapper class TinyAlsa.java under the root pacakge for the example I ll use com.Example.App : .. . .. . and my wrapper c method is : .. . .. . The tinalsa library is loaded OK without exceptions but calls such as mixer open 0 returns null pointers .", "I successfully completed the integration of my own aec into android .", "But what i need is i have to set the gains of the mic and pcm of the android because in my aec i am applying agc to the farend and nearend signal and then i procees the output of that agc for echo cancelation .", "After that i will apply noise-reduction on the output of the aec .", "When i integrate my aec into the gstreamer there is a command like .. . .. . alsamixer .. . .. . for setting the gain levels .", "When i set some gain levels my aec is working fine .", "But in android how can i set this to make my aec work well .", "Dont know that .", "How to check that", "Don t you know what your code does", "What audio API does it use", "What specific problem do you have with that", "Use mixer open to open the control device find the pointer s to your control s with the mixer get functions and use mixer ctl set value to change it .", "I gone through that file and audiohardware.cpp HAL .", "In these files they are calling one fuction mixer ctl set value for setting the mixer related things .", "The other thing i noticed is in HAL they are setting volume to 1.0f .", "which one is useful to me", "However If I execute the compiled tinymix mixer is open and mixer controls are listed as should .", "Am I missing something", "How can I make it work from my code", "Code would probably make it easier to tell what you re missing", "Deleted my answer as I realize I misread your code .", "But you are overcomplicating the return- just change it to return long-long mixer open arg1 You may be missing some init code I d put a log or breakpoint in this function to see if open itself is returning NULL .", "If so you are missing some sort of init function .", "The c code is generated using Swig .", "I have a control called EQ2 Coefficients .. . .. . the output of the tinymix command gives .. . .. . How can I set that mixer control to something other value for example the value to be written into the control is 00000fb3040001341E4FF1A5040B06831B64F448040A10F413DDFA1D040A280D02A104A840000000 using tinymix command", "But at the beginning of the program itself I am getting Xrun error i.e .", "overrun in pcm wait .", "I tried varying the buffer size and period but i think its not able to read from the sound card buffer .", "Is there any tutorial on how to use tinyalsa s mmap functions properly .", "Why do you think you need to use mmap", "@CL I need to access the same sound card twice in a program to capture certain audio .", "So basically i need to use the captured samples from the sound card buffer and pass it into two threads performing some computation .", "The pcm read and pcm write uses the ioctl to read and write from the sound card but i need the memory instead .", "Nothing what you said implies that you need to use mmap .", "@CL then what should be used", "Plain snd pcm writei .", "I m looking for a definitive answer on getting audioRecord to use both the top mounted and bottom mounted microphones so I don t have 2 identical mono channels .", "I d like to know what polling I could do before hand to ensure that a gadget will provide a good stream .", "I m working on a galaxy nexus-5 and can t get that to work so I m no way near getting it stable across all the devices .", "I ve tried all the MediaRecorder.AudioSource .", "and also instantiating two records : .. . .. . If anyone did get stereo recording on a nexus-5 I d greatly appreciate the help .", "thanks j", "On many of the devices I ve worked with the CAMCORDER audio source corresponds to a secondary mic often located at the back of the phone so it would implicitly be a mono source .", "I think your best bet for getting stereo recording is to use the MIC audio source in combination with CHANNEL IN STEREO but keep in mind that some devices simply do not support stereo recording .", "Trying to use two mono recorders in parallel will probably not work at all on most devices .", "Thanks @Michael do you have experience with a gadget that allows stereo recording with MIC and CHANNEL IN STEREO", "You ve got a serious spelling flaw in your source codes : You mistakenly used Media.Recorder . instead of MediaRecorder.AudioSource .", "Your question is closely related to my question http : stackoverflow.com q 21810773 1986583 and it seems the answer is device-dependent : .. . .. . 1 For some devices e.g .", "Samsung S2 Plus GT-I9105P HTC One M7 HTC One M8 G3 LG-D855 Nexus 5 .. . there is simply no way to activate real stereo recordings via the built-in microphone capsules .", "Although in some cases the camcorder app of the manufacturer produces real stereo you won t find any other app which is able to do that .", "2 For some other devices only few specific combinations of MediaRecorder.AudioSource and e.g .", "sample rate or other basic settings enable real stereo recording e.g .", "Motorola Moto G needs MediaRecorder.AudioSource.CAMCORDER and 48kHz sample rate http : stackoverflow.com a 21837959 1986583 .", "3 On most devices with two microphone capsules AudioFormat.CHANNEL IN STEREO is sufficient to activate real stereo recording .", "I have a Nexus 4 device msm8960 with APQ8064 sound card .", "MultiMedia1 Mixer SLIM 4 TX I get an error saying setting hw params failed .", "So my question is : how do I know which controls to set to On and or what to set other controls in order to capture audio successfully", "Edit : .. . After some digging I found that the in pcm open setting pcm params fails in the following call : .. . .. . How can I set params correctly so that pcm open will succeed", "I couldn t see any issue with the parameters which BTW work on other devices .. . .. . Edit 2 : .. . I see the issue is with period size and period count - I can t set to above 150 and 2 respectively .", "When I change them pcm open succeeds but pcm read fails with start error message .. . .. . Thanks for the helpers", "This depends not only on the specific chips used but also on how they are wired together .", "Anyway the hw params might indicate that you re just using a wrong sample format .", "I m using 16-bit sample format and I tried all sampling rates ." ] }
{ "confidence": [ 61.203304290771484, 56.91139221191406, 54.68461227416992, 52.993194580078125, 49.304588317871094, 48.164085388183594, 42.48827362060547, 40.93345260620117, 28.21739959716797, 27.97496795654297, 26.6405029296875, 20.354658126831055, 14.551567077636719, 11.29961109161377, 9.755879402160645, 7.953751564025879 ], "content": [ "Question : I successfully completed the integration of my own aec into android . But what i need is i have to set the gains of the mic and pcm of the android because in my aec i am applying agc to the farend and nearend signal and then i procees the output of that agc for echo cancelation . After that i will apply noise-reduction on the output of the aec . When i integrate my aec into the gstreamer there is a command like .. . .. . alsamixer .. . .. . for setting the gain levels . When i set some gain levels my aec is working fine . But in android how can i set this to make my aec work well . Comment : Are you using the ALSA API Comment : Dont know that . How to check that Comment : Don t you know what your code does What audio API does it use Comment : tinyalsa i think Comment : Then use the tinyalsa mixer API to change the mixer controls . What specific problem do you have with that .. . Answer : Use mixer open to open the control device find the pointer s to your control s with the mixer get functions and use mixer ctl set value to change it . See tinymix.c https : github.com tinyalsa tinyalsa blob master tinymix.c for an example . Comment : I gone through that file and audiohardware.cpp HAL . In these files they are calling one fuction mixer ctl set value for setting the mixer related things . The other thing i noticed is in HAL they are setting volume to 1.0f . which one is useful to me Comment : Tinyalsa s mixer interface does not have floating-point mixer values .", "Question : null .. . Answer : I built tinyalsa lib using the sources from tinyalsa-ndk https : github.com ykasidit tinyalsa-ndk and wrapped it with JNI calls and I m trying to use it in my code . I used Swig http : www.swig.org to generate Java wrappers and modified output to comply with my package My native method declaration is : .. . .. . My JNI wrapper call is inside a wrapper class TinyAlsa.java under the root pacakge for the example I ll use com.Example.App : .. . .. . and my wrapper c method is : .. . .. . The tinalsa library is loaded OK without exceptions but calls such as mixer open 0 returns null pointers . However If I execute the compiled tinymix mixer is open and mixer controls are listed as should . Am I missing something How can I make it work from my code Comment : Code would probably make it easier to tell what you re missing Comment : Deleted my answer as I realize I misread your code . But you are overcomplicating the return- just change it to return long-long mixer open arg1 You may be missing some init code I d put a log or breakpoint in this function to see if open itself is returning NULL . If so you are missing some sort of init function . Comment : The c code is generated using Swig . I suspect it indeed over complicates things but - as this code eventually access mixer info which is most likely not permitted without root I m trying to figure whether I should do something else to make it work besides calling su before calling alsa methods if the code itself is not the problem. .", "Question : null .. . Answer : tinyalsa elf failed to run on android shell anybody know what is wrong with it I am new to android : - .. . .. . here are my steps : .. . 1 . download tinyalsa source code to a ubuntu 10 vm compile it with arm-linux-gnueabi-gcc .. . 2 . adb push xx tinypcminfo data local tmp .. . 3 . adb shell - cd data local tmp - chmod 777 tinypcminfo .. . 4 . . tinypcminfo .. . 5 . error happened Comment : It d be useful if you will paste some information about error here : traceback error message whatever Comment : Thank you andrey I have found the reason . Comment : so post it as answer Comment : ndk-build is the right way to solve this problem because android-library is different with standard c library .", "Question : I have a control called EQ2 Coefficients .. . .. . the output of the tinymix command gives .. . .. . How can I set that mixer control to something other value for example the value to be written into the control is 00000fb3040001341E4FF1A5040B06831B64F448040A10F413DDFA1D040A280D02A104A840000000 using tinymix command .. . Answer : As you can see in the source code https : github.com tinyalsa tinyalsa blob master tinymix.c tinymix wants a list of byte values :", "Question : null .. . Answer : I am using the tinyalsa library to implement audio capturing using mmap . But at the beginning of the program itself I am getting Xrun error i.e . overrun in pcm wait . I tried varying the buffer size and period but i think its not able to read from the sound card buffer . Is there any tutorial on how to use tinyalsa s mmap functions properly . Or even Alsa pcm mmap tutorial Comment : Why do you think you need to use mmap Comment : @CL I need to access the same sound card twice in a program to capture certain audio . So basically i need to use the captured samples from the sound card buffer and pass it into two threads performing some computation . The pcm read and pcm write uses the ioctl to read and write from the sound card but i need the memory instead . Comment : Nothing what you said implies that you need to use mmap . Comment : @CL then what should be used Comment : Plain snd pcm writei .", "Question : I m looking for a definitive answer on getting audioRecord to use both the top mounted and bottom mounted microphones so I don t have 2 identical mono channels . I d like to know what polling I could do before hand to ensure that a gadget will provide a good stream . I m working on a galaxy nexus-5 and can t get that to work so I m no way near getting it stable across all the devices . I ve tried all the MediaRecorder.AudioSource . and also instantiating two records : .. . .. . If anyone did get stereo recording on a nexus-5 I d greatly appreciate the help . Should I move to alsa or tinyAlsa thanks j Comment : On many of the devices I ve worked with the CAMCORDER audio source corresponds to a secondary mic often located at the back of the phone so it would implicitly be a mono source . I think your best bet for getting stereo recording is to use the MIC audio source in combination with CHANNEL IN STEREO but keep in mind that some devices simply do not support stereo recording . Trying to use two mono recorders in parallel will probably not work at all on most devices . Comment : Thanks @Michael do you have experience with a gadget that allows stereo recording with MIC and CHANNEL IN STEREO Comment : You ve got a serious spelling flaw in your source codes : You mistakenly used Media.Recorder . instead of MediaRecorder.AudioSource . .. . Answer : Your question is closely related to my question http : stackoverflow.com q 21810773 1986583 and it seems the answer is device-dependent : .. . .. . 1 For some devices e.g . Samsung S2 Plus GT-I9105P HTC One M7 HTC One M8 G3 LG-D855 Nexus 5 .. . there is simply no way to activate real stereo recordings via the built-in microphone capsules . Although in some cases the camcorder app of the manufacturer produces real stereo you won t find any other app which is able to do that . 2 For some other devices only few specific combinations of MediaRecorder.AudioSource and e.g . sample rate or other basic settings enable real stereo recording e.g . Motorola Moto G needs MediaRecorder.AudioSource.CAMCORDER and 48kHz sample rate http : stackoverflow.com a 21837959 1986583 . 3 On most devices with two microphone capsules AudioFormat.CHANNEL IN STEREO is sufficient to activate real stereo recording . Unfortunately Alsa or tinyAlsa will most probably not solve the problem without rooting the device .", "Question : I am intending to record stereo audio on an Android 4.4.2 device . However the audio being recorded via a simple recording App using AudioRecord does not match the configuration supplied . I would hope to see error messages in logcat if the device is using default configuration values but I can see that the supplied values appear to be accepted by AudioHardware and AudioPolicyManagerBase . The current configuration for : .. . .. . Changing the Media.Recorder.AudioSource has been raised an option for trying to resolve this issue But this has not changed how the Android stack behaves- Except to understandably fail to load the recorder when the configuration is invalid . Changing SampleRate has shown also produced no visible change in the output- both 44.1kHz and 16kHz are valid options however both produce 16kHz audio when examined . The output audio also appears to be one channel of audio upmixed to stereo . TinyALSA Tinycap is available to capture the audio and this appears to behave as expected . Could this be an issue within the Android Stack Or is this more likely to be an issue with the code supplied by the OEM .. . Answer : The reason for the downmixed audio in this case was that the Speex Codec was being used in the HAL to downmix and de-noise the stereo input . This was configured under : .. . .. . The alternatives to this problem would be to route the audio out of ALSA and around the android stack via a unix domain stream socket . This would be accessible in the application layer with androids localSockets .", "Question : null .. . Answer : I have a Nexus 4 device msm8960 with APQ8064 sound card . I m trying to record audio from the primary device pcmC0P0c using tinyalsa tinycap utility but I encounter the following issues : .. . .. . .. . If I do not modify any mixer control I get an Unable to open PCM device - device not found error .. . When I set one of Multimedia1 switches to on e.g . MultiMedia1 Mixer SLIM 4 TX I get an error saying setting hw params failed . So my question is : how do I know which controls to set to On and or what to set other controls in order to capture audio successfully Edit : .. . After some digging I found that the in pcm open setting pcm params fails in the following call : .. . .. . How can I set params correctly so that pcm open will succeed I couldn t see any issue with the parameters which BTW work on other devices .. . .. . Edit 2 : .. . I see the issue is with period size and period count - I can t set to above 150 and 2 respectively . When I change them pcm open succeeds but pcm read fails with start error message .. . .. . Thanks for the helpers Comment : This depends not only on the specific chips used but also on how they are wired together . Anyway the hw params might indicate that you re just using a wrong sample format . Comment : I m using 16-bit sample format and I tried all sampling rates . I also tried single channel and 2 channels - no luck Comment : See the output of aplay --dump-hw-params . Comment : I m using tinyalsa and AFAIK there is no option to dump hardware parameters. . Comment : I found out that setting access to SNDRV PCM ACCESS RW INTERLEAVED fails . Question edited with full details", "Question : I have a working PCM output with good sounding audio on a Raspberry Pi compute module Linux using the rpi dac . The aplay -l command output shows the following : .. . .. . To get the audio to work at all I had to change my etc asound.conf file to look like the following : .. . .. . The output sounds great when I play .wav files but it is a bit quiet and alsamixer does not allow audio volume control with this driver . I d like to get a little more volume and so I researched the Ladspa project software amplifier plugin . The following example code boosts the volume on the 3.5 mm jack on normal Pi : .. . .. . I ve been reading the documentation here : http : alsa.opensrc.org Asoundrc but I m struggling with understanding how to combine the 2 - I want the MMAP emulation as well as the amplification . How can I accomplish this Thank you . Comment : did you try the Soft Volume alsa plugin 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 .. . Answer : Try next setting please it can work under my x86 linux :", "Question : 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 .. . Answer : 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 .", "Question : null .. . Answer : Is there any tinymix commands to record and playback the same audio through the mobile In Linux Alsa i know that i can use the below command if it is a Audio Interface arecord -f cd -D hw : 1 0 aplay -f cd So is there any similar command in tinymix also Comment : tinycap can output to stdout but tinyplay wants a file . Does Android have dev stdin", "Question : null .. . Answer : Currently under dev snd I have the following devices .. . .. . How do I add another device i.e . pcmC0D1p The system is running Android and it currently uses tiny ALSA for audio . Comment : Write a sound driver for another device and load it . Comment : I suppose it reflects only actual hardware . If you have connected something else new codec you have to find modify or write a new driver for it .", "Question : null .. . Answer : We re using tinycap to do some script automatically in our android phone device . But how to give argument to stop it Like tinycap -d 5 test.wav 5s .. . .. . Thanks .", "Question : null .. . Answer : I wanted to test USB Audio on my Samsung S4 Mini GT-I9195 running Android 5.1 Bliss Pop which is partly based on Cyanogenmod . I ve found another thread here https : stackoverflow.com questions 22604002 usb-audio-for-android-platform newreg 623b69544c89461a8dcae92427c333ca and I too can successfully aplay a wav to hw : 1 0 but I m not able play sounds from any app . For me it seems that the stream isn t correctly routed to hw : 1 0 . Any thought s", "Question : null .. . Answer : I am trying to capture Raw Audio data directly through USB from mobile so is there any tinymix commands to capture it", "Question : A custom piece of hardware is running Android with the audio drivers installed . An simple Android app is created to play some audio using media-player the app is tested on a emulator so it works for sure . When running the device on the hardware error message from logcat displays the following many times : .. . .. . under dev snd there are .. . .. . I am able to play system notifications without any problem . I could also hack the problem by creating a symbolic link pcmC0D1p pointing to pcmC0D0p and it works . Why is android trying to play non-system sound track on pcmC0D1p Who is controlling which output it goes to Comment : pcmC0D1p is the second PCM device of the first sound card . Why Android would try to access it is a question that only whoever configured this hardware can answer . .. . Answer : pcmC0D1p means : .. . .. . Clearly whatever the node your app is accessing is not present as seen through your ls dev snd . Normally if you are playing non-standard sounds like mp3 files writing to AudioTrack http : developer.android.com reference android media AudioTrack.html will handle everything . If you see only one playback node by doing ls dev snd it means you have only one playback node present which I think not sure though is occupied for standard android sounds ." ] }
[ "yes-answer-long", "yes-answer-short" ]
linux-kernel
UNK_RELATION
protorpc@rpc@207
protorpc -- google protorpc is a collection of libraries for decoratively describing messages and services for exchanging information over the web and a set of standards and accompanying library for making @placeholder via http using various underlying message protocols.the protorpc python implementation is built-in to google-app-engine .
{ "confidence": [ 77.80848693847656, 72.80152130126953, 71.33990478515625, 69.65499877929688, 66.10967254638672, 65.82212829589844, 65.21189880371094, 64.92056274414062, 62.27589416503906, 61.23970031738281, 60.161407470703125, 59.43040466308594, 59.05359649658203, 58.1751594543457, 58.069679260253906, 57.532379150390625, 56.22724914550781, 55.95899963378906, 55.863182067871094, 55.38922119140625, 55.371238708496094, 54.922874450683594, 54.695037841796875, 54.695037841796875, 54.695037841796875, 54.55895233154297, 53.43830871582031, 53.29499053955078, 53.29499053955078, 53.29499053955078, 53.07868194580078, 52.9166259765625, 52.49451446533203, 52.45496368408203, 52.06177520751953, 51.85761260986328, 51.65266418457031, 51.65266418457031, 51.20276641845703, 51.17042541503906, 51.17042541503906, 51.17042541503906, 50.492584228515625, 49.63078308105469, 49.63078308105469, 49.60078430175781, 49.35847473144531, 49.12836456298828, 48.545631408691406, 48.27290344238281, 48.230735778808594, 48.18544006347656, 47.619110107421875, 47.595924377441406, 47.56513977050781, 47.1812744140625, 46.74079513549805, 46.588409423828125, 46.588409423828125, 46.588409423828125, 46.450965881347656, 45.711402893066406, 45.672821044921875, 44.4500732421875, 43.97740173339844, 43.909603118896484, 42.860084533691406, 42.747127532958984, 42.44325256347656, 42.319091796875, 41.409210205078125, 41.409210205078125, 41.409210205078125, 41.409210205078125, 39.766883850097656, 39.766883850097656, 39.37337112426758, 39.36115264892578, 39.13197326660156, 39.052207946777344, 38.91984176635742, 38.634342193603516, 37.91727828979492, 37.653099060058594, 37.234291076660156, 36.53411865234375, 35.678123474121094, 33.958282470703125, 33.94560241699219, 33.0321044921875, 31.49483871459961, 31.23940086364746, 30.91590690612793, 30.884180068969727, 30.049636840820312, 29.935094833374023, 27.998029708862305, 26.443164825439453 ], "content": [ "The Python implementation of Endpoints is built on ProtoRPC .", "Some changes to protorpc have been added google-protorpc-review.appspot.com 93001 http : google-protorpc-review.appspot.com 93001 to ensure this behavior is consistent .", "ProtoRPC http : code.google.com p google-protorpc comes with a JSON implementation of its transmission protocol .", "As a reference I have found that all exceptions implemented by App Engine are derived from the ApplicationError https : github.com google protorpc blob master protorpc remote.py class in the protorpc module .", "I am using Google App Engine s Protocol RPC library https : developers.google.com appengine docs python tools protorpc .", "See the DataTimeField https : github.com google protorpc blob master protorpc message types.py L52 source code for an example of this .", "The protorpc library itself is server-agnostic .", "My protoRPC message is a BytesField .", "After messing around with this quite a bit I have determined that ProtoRPC currently has dependencies on the google-app-engine .", "Is it possible to set cache-control headers when using AppEngine s ProtoRPC library", "The HTTP status code is not part of the specification for ProtoRPC because ProtoRPC is meant to support protocols besides HTTP .", "Can t seem to get protoRPC API on app-engine to work for me .", "The WSGI handler is built-in to ProtoRPC and the source code is here : .. . .. . http : code.google.com p google-protorpc source browse python protorpc wsgi service.py 211 .. . .. . It works very similarly to the webapp handler except it s a little tricker to use it with existing webapp based application .", "or abour exchange responses and protorpc", "One of the goals of ProtoRPC is to remain as faithful to the implementation of Protocol buffers as possible .", "ProtoRPC doesn t use the JSON-RPC message format .", "In some Google documentation https : cloud.google.com appengine docs python tools protorpc there is the following code abbreviated for clarity .", "I would like to write custom validation for some fields in ProtoRPC messages .", "Is it possible to run a protorpc based service outside of GAE", "I see that there is a project hosted at http : code.google.com p google-protorpc but it seems to depend on the GAE .", "You should be able to build your server-side logic using ProtoRPC and issue HTTP request to your API endpoints with messages encoded in JSON as described on the ProtoRPC overview https : developers.google.com appengine docs python tools protorpc overview in the official documentation .", "https : developers.google.com appengine docs python tools protorpc overview The Hello World of ProtoRPC", "ProtoRPC does NOT have good auth options at this time", "I have this model : .. . .. . Where UserMessage is a protoRPC object .", "Is there a way to add a variable in the protorpc service path", "My questions is : .. . .. . It s true that ProtoRPC API messages use json", "Having a Cloud Endpoints ProtoRPC message class with an integer field e.g .", "It will be a problem that all the request response pass throught ProtoRPC", "Also the documentation for ProtoRPC is a wee bit out of date .", "So would a code that was written for protoRPC undergo changes", "Since this can affect my decision of using ProtoRPC in a future project does anybody knows whether Endpoints is going to replace ProtoRPC or not", "Is there any smart way to convert between datastore entities and protorpc messages", "How do I control the HTTP Status Code in the protoRPC response", "The module docstring for the remote module has some information about how to make a connection using a stub as long as you include a copy of your service and message classes or construct them from the registry service in your client application : .. . .. . https : code.google.com p google-protorpc source browse python protorpc remote.py spec svnc9ceffb855c0b0eeaebed381f91bd8326a98605f r 4bd74add778c42d2b882b0915fa9b3ba64dc6437 88 https : code.google.com p google-protorpc source browse python protorpc remote.py spec svnc9ceffb855c0b0eeaebed381f91bd8326a98605f r 4bd74add778c42d2b882b0915fa9b3ba64dc6437 88 .. . .. . The HttpTransport class can be found in the transport.py module .", "I have been trying to get the rather simple Hello World ProtoRPC App Engine example to work but to no avail .", "Edit to add example this is inspired by protorpc documentation : .. . .. . https : cloud.google.com appengine docs python tools protorpc csw 1 Adding Message Fields .. . .. . The lists that I m getting are from repeated fields in these message containers .", "ProtoRPC takes a single well defined type .", "How to use Task Queue Push Queue with Protorpc .", "The examples show using ProtoRPC with a webapp based request handler .", "Or maybe there should be a special ProtoRPC jQuery library created to make this work easily", "We definitely need to develop a general purpose protorpc library for users .", "My question is if why where and how the ProtoRPC library should be used .", "Any idea on how to make a tree arbitrary tree not a tree of fixed depth using protorpc messages", "With protorpc it expects the remote method name in your HelloService to be on the url you post to .", "How does one return a dict like object through protoRPC", "I had already started writing my logic in python using ferris and in reading more on app engine I came across protorpc and cloud endpoints .", "I m using Google Cloud Endpoints and protorpc messages python I ve created endpoint to edit user information how can I check when user sent empty value and when value wasn t sent", "It is possible to rip the libraries you need out of the sdk but you will have to change the protorpc source to not import from relative paths .", "I have started to play a bit with ProtoRPC http : code.google.com p google-protorpc and built a hello webservice as in the tutorial https : docs.google.com a inui-studio.com document d 1QJBVWnbtYoiTFHIyqcBdnv5u4C1zYvDzFFGBIun35Ro edit hl pt BR heading h.af32ede0ntg5 and now I want to call that webservice from my C client application .", "Note that while ProtoRPC communicates via JSON it is not a JSON-RPC http : json-rpc.org wiki specification service .", "Otherwise ProtoRPC might try to use the binary protobuf format .", "I have two appengine hosting website and defined several services on them with protorpc .", "Background .. . .. . I am trying to use App Engine s ProtoRPC framework to create an API .", "I m trying to access a Google Protocol RPC API https : cloud.google.com appengine docs python tools protorpc with jQuery like this : .. . .. . But I only get the following error message : .. . .. . How can I return an OPTIONS method in ProtoRPC that I don t get this error anymore", "When missing a required field currently ProtoRPC returns a message like this : .. . .. . Is it possible to provide a better error message", "I checked about it at https : developers.google.com appengine docs python tools protorpc overview hl en Defining the Response Message", "I ve defined some message types that I d like to use in my protorpc service on app engine but the service in throwing an error because it is finding members that are methods instead of messages.Field instances .", "ProtoRPC fields and lists can only contain a single type .", "protorpc endpoints doesn t magically make your API RESTful .", "The default behavior of TaskQueue is to send params as a string of urlencoded and it s not conveniant to protorpc .", "I was also finding the ProtoRPC hello app example hard to understand since it lacked an example for calling the service .", "One workaround that sometimes works is moving the protorpc message definition higher up in the file seems .", "MAKE SURE YOU SEE IMPORTANT NOTE AFTER EXPLANATION .. . .. . You can create a standard ProtoRPC client via the services library and use them to make calls between applications using the HTTPTransport classes .", "I am doing development on python and GAE .. . .. . When I try to use ProtoRPC for web service I cannot find a way to let my request contain a json format data in message .", "All in all it is not worth the hassle either use the GAE or don t use protorpc until it can stand on its own .", "I actually thought about getting a way for ProtoRPC to support JSON-RPC as a separate protocol however there may be some things about JSON-RPC that make it incompatible with ProtoRPC .", "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 :", "The source code available at http : code.google.com p google-protorpc source browse includes all of the necessary libraries minus protobufs itself which you can download from the Google Developers site and contains examples both for AppEngine and for a generic WSGI server .", "There is a special method initialize request state https : developers.google.com appengine docs python tools protorpc remote that allows you to access all of the requests headers .", "You do this by using a string : .. . .. . You can see an example of this in the echo service demo here : .. . .. . https : github.com google protorpc blob master demos echo services.py L81", "I can start this task but before I want understood something more about ProtoRPC API .", "Implement a server-side solid ProtoRPC service and use the framework for client-side is a good strategy", "The main way to get ProtoRPC to use Json is to just make sure that your request content-type is application json .", "As of today the ProtoRPC still returns the same unraised error which makes it harder for one to return a customized error response .", "Although I am currently testing out Ferris which has a messaging system that deals with protorpc .", "You have to make your API RESTful within the endpoints framework which uses protorpc .", "I just want to mention a minor point about using ProtoRPC from the client-side since there is not yet a fully developed client there .", "i setup the ProtoRPC hello app and it doesn t work i m using this to post to it .. . .. . and i m geting : 405 Method Not Allowed .. . .. . app.yaml .. . .. . Alright it is python on app engine its just the sample program so it has to be something wrong with my post to the server", "Here s a partial stack-trace : base data home runtimes python27 python27 lib versions third party protorpc-1 . 0 protorpc messages.py line 1272 in validate element self.type name value-type value ValidationError : Expected type class backend.network.mhistory.service.mhistory messages.MHistoryActivityViewMessage for field items found MHistoryActivityViewMessage activity id : WS-MHistory ag9zfm1jYS1kZXJyaWNrLTFyGQsSEE1IaXN0b3J5QWN0aXZpdHkYsbyuBAw type class network.mhistory.service.mhistory messages.MHistoryActivityViewMessage", "A bit involved but I have a recipe for something quite close to a dict implementation for protorpc : https : gist.github.com linuxluser 32d4a9c36ca0b8715ad4 .. . .. . It is restricted to using string-only keys and simple not nested values .", "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", "There are two scenarios : .. . .. . 1 Your dict has a well-defined schema : This is the best use-case for ProtoRPC and if possible you should try to fit it into a schema .", "I m getting some weird errors from protorpc when I use endpoints .", "I m working on the same idea and have posted a similar question here http : stackoverflow.com questions 5855380 how-to-get-jqgrid-working-with-appengines-protorpc .", "If I understood correctly this replaces the functionality offered by ProtoRPC API as well as providing an automatic way to prepare the client-side API endpoint .", "There are hooks in the Cloud Endpoints code to change the cache-control but they are stubs not yet implemented : https : code.google.com p googleappengine issues detail id 9042 .. . .. . ProtoRPC does not yet support it either : https : groups.google.com forum topic google-appengine-python l43R6w 3mpM", "Let s say I have a protoRPC service running and I issue something like : .. . .. . curl -H content-type : application json -d name : test1 http : localhost : 8080 api.context create .. . .. . but this service requires a logged-in user .", "Let s say I have the following service : .. . .. . Looks to me that the protoRPC API is lacking semantics : either the request can be fulfilled and returns a 200 or an exception is raised yielding to a 404 .", "If I query my service I can see it is currently setting a no-cache header : .. . .. . I haven t been able to find any way to change it although the Endpoints library does seem to allow control of the cache headers and I know it s built on ProtoRPC so presumably it can be done .", "Because it was intended for being built-in to the App Engine runtime the library is updated automatically when a new version of App Engine is released not when the developer is ready to upgrade .", "I found that ProtoRPC does give a JSON response if your request has ContentType application json and jqGrid will produce this if you include ajaxGridOptions : contentType : application json charset utf-8 in your grid options but that still leaves the problem that ProtoRPC only accepts one well-defined parameter while jqGrid by default tries to upload 5 or so url-formatted parameters even when you set it to POST instead of GET .", "Let s define a Worker service for the taskqueue : .. . .. . Pay attention that I am using the same message object for the real request and for the taskqueue request It is a big advantage to need not create and different message object for each request The question is how to use taskqueue with this protorpc function .", "In this case it is only 2-3s but it is a lot for a landing page form .. . .. . A good solution will be to use taskqueue to minimise the time the user need to wait : .. . .. . As an example .. . .. . The problem is that protorpc get only json object as request .", "I have created a webapplication on Google App Engine that gets and sets data in datastore using Python API and it s working fine .", "@proppy the error response : state : REQUEST ERROR error message : Error parsing ProtoRPC request Unable to parse request content : Expected type type unicode found u name : peter u dob : u 1911-1-1 u xxx : sth str u aaa : 111 type type dict", "After forming my ProtoRPC message I get the error : .. . .. . Expected type class protorpc.messages.MHistoryActivityViewMessage for field items found MHistoryActivityViewMessage n body : u Test Here n activity id : WS-MHistory ag9zfm1jYS1kZXJyaWNrLTFyGQsSEE1IaXN0b3J5QWN0aXZpdHkYsbyuBAw .. . .. . .. . .. . .. . I have run across this issue many times where the expected type is absolute.path.to.MyMessage but the found type is MyMessage .", "In the example tick tack toe application that was provided they used the ProtoRPC messaging library to I think communicate between the endpoint and datastore but I don t really understand how that works at all and can t actually get my adaptation to be error free since User contains a list of User s .", "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 ." ] }
{ "confidence": [ 104.65531158447266, 94.96668243408203, 92.20654296875, 91.62051391601562, 89.36129760742188, 89.114990234375, 88.9124755859375, 84.38359069824219, 83.18463897705078, 80.42448425292969, 79.514892578125, 79.1531753540039, 78.74552917480469, 78.65872192382812, 78.1371841430664, 77.33436584472656, 75.52710723876953, 74.59839630126953, 74.17433166503906 ], "content": [ "Question : I have two appengine hosting website and defined several services on them with protorpc . The question is I want to make rpc call between two app engine services . Is there any lib can be used to create a rpc client or Is there any recommend way to make a RPC call from appengine .. . Answer : MAKE SURE YOU SEE IMPORTANT NOTE AFTER EXPLANATION .. . .. . You can create a standard ProtoRPC client via the services library and use them to make calls between applications using the HTTPTransport classes . The module docstring for the remote module has some information about how to make a connection using a stub as long as you include a copy of your service and message classes or construct them from the registry service in your client application : .. . .. . https : code.google.com p google-protorpc source browse python protorpc remote.py spec svnc9ceffb855c0b0eeaebed381f91bd8326a98605f r 4bd74add778c42d2b882b0915fa9b3ba64dc6437 88 https : code.google.com p google-protorpc source browse python protorpc remote.py spec svnc9ceffb855c0b0eeaebed381f91bd8326a98605f r 4bd74add778c42d2b882b0915fa9b3ba64dc6437 88 .. . .. . The HttpTransport class can be found in the transport.py module . In this instance when you create the application you would provide it with the URL of your application for example : .. . .. . http : your-app.appspot.com your service path .. . .. . Note that this is the path to your service not the path to any specific method . The message class will know how to construct URLs beneath that . IMPORTANT NOTE : If you are making requests to a public service one that does not require proper authentication then this method will work fine . However if you need to control access you may need to make requests directly using the urlfetch library in order to provide additional authentication information AND possibly a WSGI layer on the server-side to intercept authorization information . ProtoRPC does NOT have good auth options at this time", "Question : Is it possible to run a protorpc based service outside of GAE I see that there is a project hosted at http : code.google.com p google-protorpc but it seems to depend on the GAE . The documentation is VERY vague on this point does anyone have a clear answer Thanks .. . Answer : After messing around with this quite a bit I have determined that ProtoRPC currently has dependencies on the google-app-engine . It is possible to rip the libraries you need out of the sdk but you will have to change the protorpc source to not import from relative paths . All in all it is not worth the hassle either use the GAE or don t use protorpc until it can stand on its own . Thanks .", "Question : Next step : an ajax frontend for a gae py app . My app have only basic html version that interacts with the datastore and updates the page everytime . It s ok but now it needs ajax . I tried some solution : basic javascript jquery s ajax API and some frameworks . I think I found everything I was looking for in knockoutjs but this framework interacts with the server throught the json format . This means that i need learn the json library and rewrite all handlers so get and post in json . I can start this task but before I want understood something more about ProtoRPC API . The docs says that this API is useful also for Creating structured Ajax backends and if I understood fine the messages in response is in json format . My questions is : .. . .. . It s true that ProtoRPC API messages use json It will be a problem that all the request response pass throught ProtoRPC Implement a server-side solid ProtoRPC service and use the framework for client-side is a good strategy .. . Answer : I just want to mention a minor point about using ProtoRPC from the client-side since there is not yet a fully developed client there . The main way to get ProtoRPC to use Json is to just make sure that your request content-type is application json . Otherwise ProtoRPC might try to use the binary protobuf format . Also the documentation for ProtoRPC is a wee bit out of date . The examples show using ProtoRPC with a webapp based request handler . Instead you should use the newer wsgi based handler especially if you are working on Python 2.7 . The WSGI handler is built-in to ProtoRPC and the source code is here : .. . .. . http : code.google.com p google-protorpc source browse python protorpc wsgi service.py 211 .. . .. . It works very similarly to the webapp handler except it s a little tricker to use it with existing webapp based application .", "Question : Just watched the endpoints demo in google I O 2012 http : www.youtube.com watch v NU wNR UUn4 and also http : endpoints-trusted-tester.appspot.com . If I understood correctly this replaces the functionality offered by ProtoRPC API as well as providing an automatic way to prepare the client-side API endpoint . Since this can affect my decision of using ProtoRPC in a future project does anybody knows whether Endpoints is going to replace ProtoRPC or not Cheers .. . Answer : The Python implementation of Endpoints is built on ProtoRPC . Rather than thinking of it as a replacement I would consider it a supplement . Comment : So would a code that was written for protoRPC undergo changes For example would there be any use for the Message class Comment : The Message classes are still useful . They define the inputs and response formats of your Endpoints .", "Question : Next step : an ajax frontend for a gae py app . My app have only basic html version that interacts with the datastore and updates the page everytime . It s ok but now it needs ajax . I tried some solution : basic javascript jquery s ajax API and some frameworks . I think I found everything I was looking for in knockoutjs but this framework interacts with the server throught the json format . This means that i need learn the json library and rewrite all handlers so get and post in json . I can start this task but before I want understood something more about ProtoRPC API . The docs says that this API is useful also for Creating structured Ajax backends and if I understood fine the messages in response is in json format . My questions is : .. . .. . It s true that ProtoRPC API messages use json It will be a problem that all the request response pass throught ProtoRPC Implement a server-side solid ProtoRPC service and use the framework for client-side is a good strategy .. . Answer : ProtoRPC http : code.google.com p google-protorpc comes with a JSON implementation of its transmission protocol . You should be able to build your server-side logic using ProtoRPC and issue HTTP request to your API endpoints with messages encoded in JSON as described on the ProtoRPC overview https : developers.google.com appengine docs python tools protorpc overview in the official documentation . Knockoutjs shouldn t get in the way since the documentation http : knockoutjs.com documentation json-data.html state that it doesn t force you to use any one particular technique to load or save data Comment : This means that all roads are open and efficient and that even I can use Knockoutjs without changing server-side code . thank you .", "Question : Is it possible to run a protorpc based service outside of GAE I see that there is a project hosted at http : code.google.com p google-protorpc but it seems to depend on the GAE . The documentation is VERY vague on this point does anyone have a clear answer Thanks .. . Answer : Yes . The source code available at http : code.google.com p google-protorpc source browse includes all of the necessary libraries minus protobufs itself which you can download from the Google Developers site and contains examples both for AppEngine and for a generic WSGI server . The protorpc library itself is server-agnostic . Comment : Have you successfully gotten it running outside of GAE I see that there is a reference to google.net.proto in protobuf.py and I am pretty sure that library is a part of the app engine . Comment : I believe the posted code assumes GAE imports for ProtocolBuffers but that is available open-source from developers.google.com protocol-buffers https : developers.google.com protocol-buffers but no I haven t run it myself", "Question : null .. . Answer : Background .. . .. . I am trying to use App Engine s ProtoRPC framework to create an API . Unfortunately it seems like the default errors are very limited in describing exactly what went wrong . For instance this is what a default Bad Request error might look like : .. . .. . It is clear that the error is of status 400 which makes it easy for clients consuming the API to understand what went wrong at a high level . The message and reason though.. . It tells the client that something went wrong but they already knew that . No information has been given . Question .. . .. . I know that I can create my own exceptions and that I can provide custom messages via the exception constructor . However this is still not enough information . Specifically I would like to change the reason field so that it exactly reflects the error type e.g . SpecificException instead of just re-stating the meaning of the error-code . I believe that this will make it easier for my clients to react to errors coming back from my API but I can t find a way to do it . Attempts .. . .. . The only idea I have right now is to make the message a JSON string that clients could parse . That seems like a sad work-around when I have a clearer reason field in my responses to express this so I thought I d check here . As a reference I have found that all exceptions implemented by App Engine are derived from the ApplicationError https : github.com google protorpc blob master protorpc remote.py class in the protorpc module . Haven t found anything that would help me to do what I want but maybe I m missing something .", "Question : Is it possible to set cache-control headers when using AppEngine s ProtoRPC library If I query my service I can see it is currently setting a no-cache header : .. . .. . I haven t been able to find any way to change it although the Endpoints library does seem to allow control of the cache headers and I know it s built on ProtoRPC so presumably it can be done . .. . Answer : To answer my own question it seems this is not possible . There are hooks in the Cloud Endpoints code to change the cache-control but they are stubs not yet implemented : https : code.google.com p googleappengine issues detail id 9042 .. . .. . ProtoRPC does not yet support it either : https : groups.google.com forum topic google-appengine-python l43R6w 3mpM", "Question : I am using Google App Engine s Protocol RPC library https : developers.google.com appengine docs python tools protorpc . I want to get the headers for a request and check that a certain header exists . I can t figure out how to get the requests headers The code basically looks like this : .. . .. . The passed in request object is of the type MyRequest and doesn t have any header information attached to it . .. . Answer : There is a special method initialize request state https : developers.google.com appengine docs python tools protorpc remote that allows you to access all of the requests headers .", "Question : I have created a webapplication on Google App Engine that gets and sets data in datastore using Python API and it s working fine . Now I want to access to that data from a client application written in C so I was thinking of creating a webservice in GAE to provide access to the data to my app . I have started to play a bit with ProtoRPC http : code.google.com p google-protorpc and built a hello webservice as in the tutorial https : docs.google.com a inui-studio.com document d 1QJBVWnbtYoiTFHIyqcBdnv5u4C1zYvDzFFGBIun35Ro edit hl pt BR heading h.af32ede0ntg5 and now I want to call that webservice from my C client application . I have found Jayrock http : jayrock.berlios.de lib which seems to do the job unfortunately I can t find how to make it work . Here is my code based on JayrockRPCClient sample : .. . .. . I always get Missing value error . Can anybody point me to what do I do wrong And as another question what do you think of that architecture as there a simplier way to build a webservice in GAE and call it from C .. . Answer : Note that while ProtoRPC communicates via JSON it is not a JSON-RPC http : json-rpc.org wiki specification service . By using a JSON-RPC client you are most likely sending messages in the wrong format . You should be doing a POST to http : localhost : 8081 hello.hello with a request body of my name : Joe . Check to make sure your client is sending requests in this format .", "Question : I m trying to make a message class for representing a tree so naturally i went for : .. . .. . but this wouldn t work since at line 3 Node is not defined yet and is unresolved . Any idea on how to make a tree arbitrary tree not a tree of fixed depth using protorpc messages .. . .. . EDIT : .. . .. . tried : .. . .. . endpoints complains : MessageDefinitionError : Message types may only inherit from Message .. . Answer : You do this by using a string : .. . .. . You can see an example of this in the echo service demo here : .. . .. . https : github.com google protorpc blob master demos echo services.py L81", "Question : I ve defined some message types that I d like to use in my protorpc service on app engine but the service in throwing an error because it is finding members that are methods instead of messages.Field instances . Is there a way to get around this Because defining methods on messages is really useful . In my example I have a credentials message and I ve defined a method to check if the credentials are correct on the message . I know I can just define the methods as functions but it just seams less logical . .. . Answer : One of the goals of ProtoRPC is to remain as faithful to the implementation of Protocol buffers as possible . Writing a protocol buffer using .proto notation does not allow for method definitions . So if one could define methods you would end up with classes that could not correctly be represented as a .proto file . As an aside the hope is that it makes the developer enforce a clear distinction between their message classes and client-server functionality . We also went through a lot of effort to make sure that if we needed to make future changes such as adding support for the protocol buffer mechanism it easier to do so without breaking compatibility with older versions . Because it was intended for being built-in to the App Engine runtime the library is updated automatically when a new version of App Engine is released not when the developer is ready to upgrade . Restricting what can be added to messages now allows greater flexibility for the library to grow in the future in truth at the expense of the user of the library . Comment : This may be a stupid question because I have not looked at the .proto format but when converting the definition of a .proto file wouldn t it be possible to ignore methods defined by the developer Having to separate a method that operates on a message from the message itself looks weird to me .", "Question : I would like to write custom validation for some fields in ProtoRPC messages . The documentation says that protorpc.messages.Field class cannot be extended by developers . Does it mean I should not extend StringField E.g . StringField does not ensure that string is non-empty . I ve checked and my custom string class with my validate element method works as expected . Is there any reason I should not do that .. . Answer : You can subclass protorpc.messages.MessageField to create a custom Field . See the DataTimeField https : github.com google protorpc blob master protorpc message types.py L52 source code for an example of this .", "Question : i setup the ProtoRPC hello app and it doesn t work i m using this to post to it .. . .. . and i m geting : 405 Method Not Allowed .. . .. . app.yaml .. . .. . Alright it is python on app engine its just the sample program so it has to be something wrong with my post to the server Comment : You need to post your app.ymal and register code of service .. . Answer : With protorpc it expects the remote method name in your HelloService to be on the url you post to . If you re using this code to register the service mapping .. . .. . then you need to change your post url to this : .. . .. . http : wordninjabackend.appspot.com hello.hello .. . .. . The extra .hello refers to the method hello in the HelloService class . If you rename that method to fred you ll also need to change that to .fred .. . .. . For more on how this works just read further down the page where they develop PostService for the guestbook application . https : developers.google.com appengine docs python tools protorpc overview The Hello World of ProtoRPC", "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 created a webapplication on Google App Engine that gets and sets data in datastore using Python API and it s working fine . Now I want to access to that data from a client application written in C so I was thinking of creating a webservice in GAE to provide access to the data to my app . I have started to play a bit with ProtoRPC http : code.google.com p google-protorpc and built a hello webservice as in the tutorial https : docs.google.com a inui-studio.com document d 1QJBVWnbtYoiTFHIyqcBdnv5u4C1zYvDzFFGBIun35Ro edit hl pt BR heading h.af32ede0ntg5 and now I want to call that webservice from my C client application . I have found Jayrock http : jayrock.berlios.de lib which seems to do the job unfortunately I can t find how to make it work . Here is my code based on JayrockRPCClient sample : .. . .. . I always get Missing value error . Can anybody point me to what do I do wrong And as another question what do you think of that architecture as there a simplier way to build a webservice in GAE and call it from C .. . Answer : Using WebClient : .. . .. . For serializing objects you can use DataContractJsonSerializer .", "Question : null .. . Answer : I m trying to access a Google Protocol RPC API https : cloud.google.com appengine docs python tools protorpc with jQuery like this : .. . .. . But I only get the following error message : .. . .. . How can I return an OPTIONS method in ProtoRPC that I don t get this error anymore Comment : This error sometimes occurs because the receiver was expecting a GET instead of a POST Comment : I should mention that the API works perfectly when called via CURL or Postman or similar tools . Comment : I know little curl but .. . please could you paste a example with curl ... . It may be a good clue Comment : curl -X POST -H Content-Type : application json -d some params the url Comment : I really don t think that the post request itself is the problem . My guess is that as Google Chrome is doing a preflight request via OPTIONS this is the problem", "Question : I primarily deal with REST json APIs at my work . So I am familiar with them . But for my own project I am trying out app engine as I believe it is a great fit . I had already started writing my logic in python using ferris and in reading more on app engine I came across protorpc and cloud endpoints . But in most of the examples I have read they seem to be doing the same just as I would do in a rest api . Make a request with json and get a json response back . Or an error . The main difference I see is that in rest the endpoints are based around a resource . And the HTTP verbs around them such as GET POST PUT DELETE etc . Where as in RPC each request would have it s own endpoint rather than be based around a resource or model . Both are requested with and respond with json . So I think I am failing to see the benefit of using Google endpoints . Do they offer some other kind of benefit I could maybe see better analytics tracking with endpoints . But wouldn t I still need to the use post http verb for modifying content Would any of this change if I was using certain frameworks Like django . Although I am currently testing out Ferris which has a messaging system that deals with protorpc . Although I have not been able to rest or yet . So what am I missing What are the benefits of endpoints over just making my object methods handle a json request . Do socket connections play into this at all .. . Answer : You can do both by using endpoints to make a RESTful API . protorpc endpoints doesn t magically make your API RESTful . You have to make your API RESTful within the endpoints framework which uses protorpc . The benefits of using endpoints is that you can get a lot of the authentication work done easily assuming you re going to use Google accounts the serialization deserialization is done for you your client libraries can be generated for you and more than just a Javascript client can be supported . If these things sound good endpoints may be right for you . If these things don t apply then maybe be more direct and use RequestHandlers yourself . I was able to make a simple API using endpoints . It has 3 main resources : records datasets and moves . A Record object is the smallest unit of data . The Dataset object is a group of records . And the Move object represents the event of a Dataset changing location . My RESTful URIs look like this : .. . .. . With this I can create data organize it and move it around . I was able to do this completely within the endpoints framework on App Engine and it is RESTful . Comment : This was pretty much the path I went and worked best . I did however end up not using app engine ultimately and just started using compute so I could use python 3 and have more control over the host system . And now am trying to make that even better with docker . But this is the answer and how I would do it if I used appengine again .", "Question : I m finding myself writing datastore models and then repeating the exact same set of attributes for their respective messages . Is there any smart way to convert between datastore entities and protorpc messages A kind of built-in to message method or do I have to do it by myself .. . Answer : I think you are looking for this : http : endpoints-proto-datastore.appspot.com This library permit to use models directly in endpoints request . I advice you to read the library documentation . GitHub repository : https : github.com GoogleCloudPlatform endpoints-proto-datastore Comment : Pay attention in case you want to run your app engine instance for your own site with your own domain Google Cloud Endpoint doesn t support custom domain . You will must use yourid.appspot.com domain Comment : Yes we must specify the real URL API ." ] }
[ "yes-answer-long", "yes-answer-short" ]
rpc
UNK_RELATION
bing-api@search-engine@162
bing-api -- the bing application programming interface api enables developers to programmatically submit queries to and retrieve results from the microsoft bing @placeholder .
{ "confidence": [ 63.79108810424805, 62.85361862182617, 61.76975631713867, 61.36659622192383, 61.13330841064453, 60.96923065185547, 60.82567596435547, 60.01043701171875, 60.01043701171875, 58.37788391113281, 58.07822799682617, 57.999942779541016, 57.28268814086914, 56.666168212890625, 55.429161071777344, 55.06760787963867, 55.06760787963867, 54.88933181762695, 54.88933181762695, 54.88933181762695, 54.64226150512695, 54.284339904785156, 53.75897979736328, 53.336814880371094, 53.32721710205078, 53.055973052978516, 52.88970184326172, 52.87883758544922, 52.87883758544922, 52.87883758544922, 52.18045425415039, 52.175960540771484, 52.05167770385742, 51.988197326660156, 51.545066833496094, 51.545066833496094, 51.545066833496094, 51.22194290161133, 51.067874908447266, 50.935150146484375, 50.4183349609375, 50.302066802978516, 49.946502685546875, 49.946502685546875, 49.946502685546875, 49.946502685546875, 49.946502685546875, 49.927852630615234, 49.39385223388672, 48.49010467529297, 48.27829360961914, 48.07131576538086, 48.07131576538086, 47.686309814453125, 47.628997802734375, 47.628997802734375, 47.23762512207031, 47.174156188964844, 47.174156188964844, 47.174156188964844, 47.10061264038086, 47.078468322753906, 46.686607360839844, 46.461517333984375, 46.119449615478516, 45.980735778808594, 45.95945739746094, 45.887779235839844, 45.75381088256836, 45.74958038330078, 45.30110549926758, 45.30110549926758, 44.64696502685547, 44.64696502685547, 44.64696502685547, 44.64696502685547, 44.2418212890625, 44.2418212890625, 44.2418212890625, 44.2418212890625, 44.034149169921875, 43.96255111694336, 43.91605758666992, 43.87728500366211, 43.769447326660156, 43.769447326660156, 43.769447326660156, 43.04840087890625, 43.04840087890625, 43.04840087890625, 43.04840087890625, 43.04840087890625, 42.47447204589844, 42.41895294189453, 42.366634368896484, 42.366634368896484, 42.17580795288086, 42.07638168334961 ], "content": [ "Or Bing API not return the result countt", "We ve also tried this with both Bing Ads API v9 and Bing Ads API v10 - as well as the Bing Ads SDK Api by CPCStrategy https : github.com CPCStrategy bing-ads-sdk-php - no dice anywhere .", "I use Bing Image API to retrieve images given keywords .", "Other results from the Bing Search API gave similar problems .", "How can I get Bing search volume from Bing Search API", "In my coldfusion application im using Microsoft Bing Translation API .", "I am trying to use the Microsoft Bing http : en.wikipedia.org wiki Bing API .", "There is an api route directly to the Bing suggestion list .", "I am really stuck with the bing search Api .", "I am trying to use the PyBingSearch module from https : github.com tristantao py-bing-search to use the Bing API to return search results .", "headers : How do i return JSON results from BING Search Engine API https : stackoverflow.com questions 26732530 how-do-i-return-json-results-from-bing-search-engine-api .", "I m sending an ajax request to the Bing Search API .", "Is there any way to use Bing Speech API with my application", "I am trying to run Bing search API .", "I am currently using 3 Microsoft APIs : Text Analytics Api Bing Search Api and Linguistic Api .", "for the Bing question this feature is not implemented in the API yet .", "Using the Bing API in an async controller .. . 2 .", "I am developing keyword rank checker by using Bing Search API .", "I am using Bing Web Search API free trial version .", "What are the length limits are on the new Azure marketplace Bing WebSearch API", "I got Bing API key from Microsoft Azure Marketplace and I figured out that .. . .. . if I enter .. . .. . I could get JSON results programatically .", "You can see an example of implementing the current Bing search API in this question http : stackoverflow.com questions 10844463 bing-search-api-and-azure 10844666 10844666 .", "I need to know how can i make a call to the BING API to get the equivalent of GOOGLE Cost Spend in BING .", "UPDATE For Bing Search API I tried to add this query parameter which speicyf the transparent background in the BING image search in the website not in the API to the URL .. . .. . although this is working for the Normal BING search it did not work for the BING Search API .", "I am using the Bing search to look for some items and using the Bing Search API version I get the same results .", ".. . .. . there is a mistake from Bing .", "I m using json result from the Bing Search API .", "Is there a way to get the number of backlinks for a specific domain using the Bing or Google API", "We are facing a problem with Bing Ads API version 9 and 10 .", "Bing Ads API Request http : i.stack.imgur.com FFaua.png .. . .. . My Response : .. . .. .", "I want to use bing search api to obtain search result count for given query however Bing API seem to not return any fields containing the search result count .", "Any solution for bing", "Bing autosuggestions http : i.stack.imgur.com iOk3x.png", "5000 queries month are free - http : datamarket.azure.com dataset bing search .", "I am writing a java program that uses the Bing Api .", "I am trying to use the Bing image search API on the front-end .", "Please add a tag about Bing Spatial Data API .", "Bing API is another option but their TOS prohibit placing non-Microsoft ads alongside the results and acceptance into their Ad program is not guaranteed .", "I tried using Google API Google Shopping API and Bing API the results were not pleasing enough .", "To use the new Bing Search API https : datamarket.azure.com dataset bing searchweb you need to use your account key to authenticate .", "So using Google results on a Bing Maps control is not allowed by Google neither by Bing .", "What i need to do is to get the BINGADS spend cost using the bing API call from with in the pentaho kettle interface .", "Bing API documentation shows the samples of C PHP Python and java .", "I am implementing Bing Image Search API in php .", "I am confused if I should be using Bing Api or Cognitive Services", "Yes the Bing Search API falls under the Cognitive Services Umbrella .", "I can get an address using bing Reverse geocoding API .", "The Bing Mobile Bing Maps team released a new Bing Maps iOS SDK for iPhone and iPad in early May 2011 .", "There are two ways of using the Bing Speech API https : www.microsoft.com cognitive-services en-us speech-api documentation overview .", "I used odata4j and tried the code provided here : How to use Bing search api in Java http : stackoverflow.com questions 12648847 how-to-use-bing-search-api-in-java 25031594 25031594 .. . .. . After I registered in the bing service I obtained the key and placed it inside the double quotation in the above code .", "I ve read this post : Bing search API and Azure http : stackoverflow.com questions 10844463 bing-search-api-and-azure 10844666 10844666 .. . .. . And I used the following code to mimic it : .. . .. . My AJAX call is : .. . .. . However I still can t get back the JSON format data from Bing Search any suggestions", "There is free Bing search API http : www.bing.com toolbox bingdeveloper for this .", "You can get the Bing API here - http : www.bing.com toolbox bingdeveloper", "hi i trying to get some results making a request to the node bing-api but Iam getting this results : .. . .. . The authorization type you provided is not supported .", "The Bing search API is pretty vague in terms of limiting results and what you can and cannot use .", "You have several options to localize the results of the Bing Search SOAP API namely : .. . .. . 1 .", "I know that Bing API has been changed and now we have to involve that windows azure marketplace thing in-order to use the Bing Image Search API .", "This question was also asked on the Bing Maps MSDN forums .", "I want to make a programmatic bing search .", "https : api.datamarket.azure.com Bing SearchWeb Web does not work .", "Try the bing-search https : rubygems.org gems bing-search gem : .. . .. . Documentation is here http : www.rubydoc.info gems bing-search and source is on GitHub https : github.com jonahb bing-search .", "I am trying to get a thumbnail from an object that is returned using the Bing News Search API .", "I am working on a JS application that makes JSONP requests to the Bing Images API .", "How to enable the recognition of continuous speech using the REST API with javascript SDK Bing Speech API", "If you are able to login to Bing Ads web application with that user and still observing a 105 error when calling the Bing Ads API then I suggest that you contact support http : advertise.bingads.microsoft.com en-us bing-ads-support for a closer look .", "I have been trying to get json result for news search using the Bing Search API .", "I am trying to use the Bing SOAP API for a simple search request .", "How might one be able to get the list of autosuggestions for a given search from Bing Search API like in the screen-capture below", "Is there any google Yahoo Bing API which gives local business results based on a ZIP GeoCode of a location", "What I am now trying to find out is .. . .. . 1 how to tell the Bing search api to restrict results to a specific domain e.g .", "However the content provider in this case Bing Search has a limitation of 2048 characters .", "Bing is happy with 2047 characters but replies 404 Not found for 2048 characters .", "All what you need is to set your query like that 27stackoverflow bing-api 27 .. . .. . Here is my source code :", "I have this https : gist.github.com lumalav 6222895 file-myjson JSON that I retrieved using Bing-Search-API .", "i have created the site in which i want to use bing search API .", "can any one suggest me how get the AppID for bing search API", "Two push pins are added to a Bing map .", "The documentation for bing said to use 20 but that is so simple .", "So Bing gave you back invalid JSON", "See the Terms of use of both Google and Bing .", "If you want to search for images make sure you are signed up for this service : datamarket.azure.com dataset bing search https : datamarket.azure.com dataset bing search", "The Bing Maps V7 JavaScript control is the primary map control used by Bing Maps users .", "This code is based on the the PHP example found in the Migrating to the Bing Search API in Windows Azure Marketplace http : www.bing.com webmaster content developers ADM MIGRATION GUIDE.docx document .", "Can headers be set via a script in Google Sheets and or can the Bing Search API urls be authorised from within Google Sheets in some way", "Try to use Bing Image Search API like how-to explained here https : onedrive.live.com view.aspx resid 9C9479871FBFA822 112 app Word authkey ANNnJQREB0kDC04 .", "As background Bing can be queried via REST API using a query-string such as this URL note it requires a developer key for basic auth .", "Given that the Bing API docs consist primarily of an error-ridden two-page Word document I have not been able to find the answer to this online .", "I know that Bing offer paid API but they have far less news sources .", "E.g . stackoverflow.com questions 15334531 http : stackoverflow.com questions 15334531 what-are-the-query-length-limits-for-the-bing-websearch-api .", "Inserting them into database using Entity Framework .. . .. . using the Bing API and insert them into a database using entity-framework .", "I m trying to connect to Bing search api and have not been able to get the code to work .", "See http : en.wikipedia.org wiki List of territorial disputes for examples .. . .. . I think if the Bing Maps API or Google Maps etc .", "I m currently using Google maps api however I have started looking at Bing maps api more .", "I am using the Bing Speech API REST API with javascript but I can not transcribe from an audio file to the pt-BR .", "But Bing announces that now everything is shifted to Azure MarketPlace .", "Disclaimer : I wrote the bing-search gem .", "Possible ways I know : .. . .. . Google Translate API .. . Bing Translate API .. . .. . The problem is that all these services have limitations on text length number of calls etc .", "Ex : https : user : yourAccountKey@api.datamarket.azure.com Bing SearchWeb Web Query 27leo 20fender 27 Market 27en-US 27 top 50 format JSON .. . .. . Bing uses OData parameters in the queries now so top would be the number of results to return and skip is the offset ." ] }
{ "confidence": [ 75.59864807128906, 69.8228988647461, 69.62386322021484, 68.7020492553711, 68.34225463867188, 68.04478454589844, 67.61982727050781, 67.06134033203125, 66.14340209960938, 66.0899658203125, 66.04290008544922, 64.84292602539062, 64.30838775634766, 64.03553009033203, 62.859474182128906, 62.649658203125, 62.10511016845703, 61.553123474121094, 60.76258087158203, 60.49147033691406 ], "content": [ "Question : null .. . Answer : I am developing keyword rank checker by using Bing Search API . I got Bing API key from Microsoft Azure Marketplace and I figured out that .. . .. . if I enter .. . .. . I could get JSON results programatically . But I also found that I cannot get search result volume . How can I get Bing search volume from Bing Search API I found that I can get search result volume from Web search results like this . span class sb count 6 800 000 results span", "Question : How might one be able to get the list of autosuggestions for a given search from Bing Search API like in the screen-capture below This doesn t seem to be among the results provided by choices of Web Image Video News SpellingSuggestion RelatedSearch . Alternatively does Google provide this As background Bing can be queried via REST API using a query-string such as this URL note it requires a developer key for basic auth . One can change the Web keyword to get other results but I d really like to get the suggestions specifically : .. . .. . https : api.datamarket.azure.com Bing Search Web Query 27sushi 27 format JSON top 5 https : api.datamarket.azure.com Bing Search Web Query 27sushi 27 24format JSON 24top 5 .. . .. . Bing Developer docs https : skydrive.live.com view.aspx resid 9C9479871FBFA822 109 app Word authkey ACvyZ MNtngQyCU .. . .. . Bing autosuggestions http : i.stack.imgur.com iOk3x.png .. . Answer : There is an api route directly to the Bing suggestion list . Interestingly this is separate from the developer API list . Currently the link is .. . .. . api.bing.com osjson.aspx query URI encoded search term here Comment : While this link may answer the question it is better to include the essential parts of the answer here and provide the link for reference . Link-only answers can become invalid if the linked page changes . Comment : Good point updated .", "Question : null .. . Answer : I ve been putting together a Google Sheet https : docs.google.com spreadsheets d 1Pp9QyrF-aaM6cT9mOs9BWODwbSc2ZHXAovCU2fxQ6Uc edit usp sharing that automatically uses the Google Custom Search API I set up a free account to test to pull in images to the table from a feed provided by the Google Custom Search API . The problem is that Google s Custom Search API service seems to be totally unreliable and inconsistent with the generated search URL s results in column S of the linked spreadsheet sometimes returning a useable result and picture sometimes returning an empty feed for no obvious reason or sometimes giving me a This site can t be reached ERR INVALID RESPONSE error which is equally inexplicable since the URLs are all formed by the same code . So I ve had a look at the Microsoft Bing Image Search API to see if their results were more reliable and found that I can also use a URL to return an XML feed of results which I could then parse within Google Sheets to get the image links i hope . The problem is that with the awful Google Custom Search API I could at least put the authentication information in the URL itself so Google Sheets just followed the link and got the data from the search result . With Bing which produces much more reliable results it asks for authentication via a browser dialog and states that Only Basic and OAuth are supported . Now I ve looked into how I could get Google Sheets to authenticate the URL queries but haven t had much luck figuring it out . Also saw that you can apparently authenticate using the Basic method but the account key needs to be converted to Base64 and a colon added in front of it but this then needs to be set in the http-headers : How do i return JSON results from BING Search Engine API https : stackoverflow.com questions 26732530 how-do-i-return-json-results-from-bing-search-engine-api . Can headers be set via a script in Google Sheets and or can the Bing Search API urls be authorised from within Google Sheets in some way Otherwise is there anything obvious as to what I m doing wrong with the Google Search URL s that return such broken and inconsistent results I d prefer to get the Bing Search URL s authorised within Google Sheets ideally . Thanks", "Question : null .. . Answer : I use Bing Image API to retrieve images given keywords . Typically each query returns maximum 50 results . However I notice that if I want to retrieve 1000 results for each each keyword then there are lots of queries just return few results or even 1 result . Anyone has similar experiences", "Question : I am really stuck with the bing search Api . In bing s developer centre I do not find any option to generating Appid . Actually I want to used the bing s search functionality using curl . When I try to hit the Api it displayed the following error : .. . .. . computer test2001AppID is not functioning properly . Please refer to the HelpUrl to get more information.http : msdn.microsoft.com en-us library dd251042.aspx .. . .. . Array SearchResponse Array Query Array SearchTerms computer test .. . .. . .. . .. . Please help me . I think its a wrong Appid error message So please tell me the steps of generating the new Appid I do not find any option on developer s centre . Big Thanks in advance.. . .. . Answer : I had this same problem when I got started . Microsoft no longer lets you add app IDs without submitted an app on the Azure Marketplace . They now use a security key that acts as both your username and password . 5000 queries month are free - http : datamarket.azure.com dataset bing search . Read this guide to migrating from the old API style to the new one - http : www.bing.com webmaster content developers ADM MIGRATION GUIDE.docx Comment : Great answer I searched a lot for something like it since Microsoft documentation is outdated.. .", "Question : i have created the site in which i want to use bing search API . for that it require AppID but i didn t get the AppID . i tried to create a AppId on azure market place by creating the windows-live ID . i created the client id and register the application . can any one suggest me how get the AppID for bing search API Comment : Please contact the vendor of the AppID Microsoft for support with their services . .. . Answer : To use the new Bing Search API https : datamarket.azure.com dataset bing searchweb you need to use your account key to authenticate . The AppID was the old method of authenticating soon to be deprecated Bing Search API 2.0 http : msdn.microsoft.com en-us library dd900818.aspx . You can find your account key on your account information https : datamarket.azure.com account page . You can see an example of implementing the current Bing search API in this question http : stackoverflow.com questions 10844463 bing-search-api-and-azure 10844666 10844666 . Comment : i tried this code but i got the following error if u have a solution plz reply me api.datamarket.azure.com Bing Search https : api.datamarket.azure.com Bing Search Image 24format json Query 27sushi 27 Warning : file-get-contents api.datamarket.azure.com Bing Search https : api.datamarket.azure.com Bing Search Image 24format json Query 27sushi 27 function.file-get-contents : failed to open stream : Connection refused in home rahulr public html searchere mig.php on line 46 Warning : Invalid argument supplied for foreach in home rahulr public html searchere mig.php on line 52 Comment : If you signed up through the link I posted it is for Web search only . If you want to search for images make sure you are signed up for this service : datamarket.azure.com dataset bing search https : datamarket.azure.com dataset bing search", "Question : I want to use bing search api to obtain search result count for given query however Bing API seem to not return any fields containing the search result count . Should I specify some option to request URL Or Bing API not return the result countt .. . Answer : You can obtain the result count but it s not as obvious as I thought it would be . Using this URL : .. . .. . you can get a JSON String which includes the result count in .. . .. . You need to use the Composite search for that I specified only web in this example but you can use web+news or any other bing source and you have to retrieve at least one result top 1 . You can also use Atom instead of JSON to get an xml response . Comment : Thank you I solved the problem . Comment : Its not working now .", "Question : Given that the Bing API docs consist primarily of an error-ridden two-page Word document I have not been able to find the answer to this online . Trial and error has produced inconsistent results and given that queries cost money I d rather not have to guess and check any more . What are the length limits are on the new Azure marketplace Bing WebSearch API I know there is a limit of some sort because long queries tend to return The request was not accepted by the data provider s service . The team is investigating the issue . We are sorry for the inconvenience . However the query length at which this occurs both in terms of characters or words tends to vary based on the query entered . I am using fairly complex queries with advanced operators like site : and instreamset : so it is very difficult to narrow down what the limitation is . ie : I have successfully made queries of over 1800 characters and I have had them fail with less than 1200 characters . .. . Answer : Got the answer from Microsoft Support : .. . .. . It looks like requests that arrive into Data Market have a query-string limit of 10240 . However the content provider in this case Bing Search has a limitation of 2048 characters . Note that the query-string in this case is the entire URL not just the Query argument . The reason why some URLs shorter than 2048 characters appeared to fail is due to the encoding of spaces . Before passing the query on to Bing the Azure Data Market re-encodes it and it uses 20 instead of + to encode spaces . So to check whether your request URL is within the 2048 characters be sure to hex-encode all special-characters including spaces . Comment : I ve experimented a bit and it seems that the limit of 2048 is calculated from the path + query-string . I.e . search q .. . . Bing is happy with 2047 characters but replies 404 Not found for 2048 characters . Comment : Yes that s the correct . It s the entire URL including path and query-string that matters . What was throwing me was that even if you send it spaces encoded as + it converts them to 20 and counts that as three characters . Since my queries were very long with a lot of spaces this made a significant difference .", "Question : We are facing a problem with Bing Ads API version 9 and 10 . We are using the ConstructWithAccountAndCustomerId method of the ClientProxy class providing a valid DeveloperToken AccountId and AuthenticationToken OAuth like so : .. . .. . Our goal is to retrieve and list all campaigns for an account . However when running : .. . .. . ...we are faced with this error : .. . .. . Now we ve double and triple checked that the AccountID is right https : msdn.microsoft.com en-US library bing-ads-getting-started.aspx accountcustomerid . We ve also tried this with both Bing Ads API v9 and Bing Ads API v10 - as well as the Bing Ads SDK Api by CPCStrategy https : github.com CPCStrategy bing-ads-sdk-php - no dice anywhere . Any ideas on what we are missing Thanks .. . Answer : The problem and solution was ridiculously straightforward : the GetCampaignsByAccountId service operation requires a special request object the Account ID in itself is not enough : .. . .. . With this object defined and then feed to the GetCampaignsByAccountId service operation all campaigns of the account are successfully returned :", "Question : Having had the luxury of having my fun and earning my bread well away from MS products for years I am today trying to programmatically search with Bing Azure wearing gloves basically because I thought getting a google-api was complex . So I headed down Data Market and issued this let s say with perl s LWP which has been used to pass credentials : .. . .. . https : api.datamarket.azure.com Bing Search v1 Composite 24skip 0 24top 10 24format json Sources 27web 27 Query 27abc 27 https : api.datamarket.azure.com Bing Search v1 Composite 24skip 0 24top 10 24format json Sources 27web 27 Query 27abc 27 .. . .. . which works . What I am now trying to find out is .. . .. . 1 how to tell the Bing search api to restrict results to a specific domain e.g . .org or even a single website www.wikipedia.org . 2 how to tell the search-engine to restrict results to a specific filetype e.g . PDF XML or PDF and XML if that s possible .. . .. . 3 if there is a simple list of the features keywords in the GET request of the latest bing search API . Please no MS links if you please - i am really tired . I have seen site : .org working on the bing search website when doing a manual search . And read about filetype : pdf working too . Any hints bliako .. . Answer : cracked it : .. . .. . at the point when m realises it costs to be clumsy .. . .. . bliako", "Question : null .. . Answer : What i need to do is to get the BINGADS spend cost using the bing API call from with in the pentaho kettle interface . I tried WSDL approach but is not working . I need to know how can i make a call to the BING API to get the equivalent of GOOGLE Cost Spend in BING . Bing API documentation shows the samples of C PHP Python and java . Is there anyway to access the data using a plain HTTP request if not then how to accomplish this using the WSDL . Help appreciated.. .", "Question : I have used this sample Bing Ads application for auth https : msdn.microsoft.com en-us library bing-ads-java-walkthrough-desktop-application.aspx .. . .. . But there are some issues with it . I can login only using the account that has the specified ClientId and DeveloperToken . When I tried to login using another account I got AdApiError : 105 InvalidCredentials or account inactive . Does anyone know what trouble is here Thanks . .. . Answer : The Microsoft account that you use to login must have access to at least one Bing Ads account . It is possible that you used a valid Microsoft account user who does not have access to any Bing Ads accounts . If you are able to login to Bing Ads web application with that user and still observing a 105 error when calling the Bing Ads API then I suggest that you contact support http : advertise.bingads.microsoft.com en-us bing-ads-support for a closer look . I hope this helps", "Question : I am trying to run Bing search API . I used odata4j and tried the code provided here : How to use Bing search api in Java http : stackoverflow.com questions 12648847 how-to-use-bing-search-api-in-java 25031594 25031594 .. . .. . After I registered in the bing service I obtained the key and placed it inside the double quotation in the above code . I got the following error : .. . .. . I could not figure out the problem . .. . Answer : You can further try different queries with different filters by keep adding name-value pairs by using .custom Type of parameter parameter of the oQueryrequest object.Say you want to search for indian food but you want only small square images .", "Question : I am developing a Windows Phone 7 Silverlight application that currently displays a map that show s the user where they are by getting the coordinates from location services . I can get an address using bing Reverse geocoding API . I would like to display local businesses to the user that may be off interest by placing pushpins on the map . However I m not able to get any search results from the Search Service API http : msdn.microsoft.com en-us library cc980849.aspx . Whatever I enter I get 0 results and I find the documentation lacking . I ve tried following this example http : www.codeproject.com KB IP BingMapsWebServiceExample.aspx but very little description is given of the filter parameters for example . What I currently have : .. . .. . I would prefer to use the exact location in the search using the coordinates I ve obtained but can t see how . As far as I can tell my search should be returning all businesses in the category of 11199 Bars and Taverns but whatever location I enter I get 0 results . Any Ideas .. . Answer : I ve ended up using results from Google local search which produces fantastic results and which you can supply an exact Geo-location to specify the area to search . In case it s useful to someone else later I used Google API for .net http : code.google.com p google-api-for-dotnet to call the google service and then display the points on the silverlight Bing maps control . Comment : I have the exact same issue 0 results in Australia and fixed the same way . A pitty though . I would realy have liked to use Bing if I could . Comment : Both platforms do not allow you to mix their content . So using Google results on a Bing Maps control is not allowed by Google neither by Bing . See the Terms of use of both Google and Bing . Comment : @NicolasBoonaert A fair point . In the 4 years since this post there s every chance that Bing s API has improved alternatively open-source alternatives may be available .", "Question : I am trying to run Bing search API . I used odata4j and tried the code provided here : How to use Bing search api in Java http : stackoverflow.com questions 12648847 how-to-use-bing-search-api-in-java 25031594 25031594 .. . .. . After I registered in the bing service I obtained the key and placed it inside the double quotation in the above code . I got the following error : .. . .. . I could not figure out the problem . .. . Answer : All what you need is to set your query like that 27stackoverflow bing-api 27 .. . .. . Here is my source code :", "Question : I am trying to use the Microsoft Bing http : en.wikipedia.org wiki Bing API . The data returned has a character in the first character of the returned string . It is not a space because I trimed it before returning the data . The character turned out to be EF BB BF . I wonder why this happened maybe a bug from Microsoft How can I remove this EF BB BF in PHP .. . Answer : To remove it from the beginning of the string only :", "Question : I am trying to use the Microsoft Bing http : en.wikipedia.org wiki Bing API . The data returned has a character in the first character of the returned string . It is not a space because I trimed it before returning the data . The character turned out to be EF BB BF . I wonder why this happened maybe a bug from Microsoft How can I remove this EF BB BF in PHP .. . Answer : data str-replace EF BB BF data .. . .. . You probably shouldn t be using stripslashes -- unless the API returns blackslashed data and 99.99 chance it doesn t take that call out .", "Question : null .. . Answer : I am trying to use the PyBingSearch module from https : github.com tristantao py-bing-search to use the Bing API to return search results . In the github page they have an example of how to use it that goes . When I try and run the line that declares first fifity result I get an error stating Request returned with code 401 error msg : The authorization type you provided is not supported . Only Basic and OAuth are supported .. . .. . Why do I get this error In my code I made sure to change Your-Api-Key-Here to my API key .", "Question : I am trying to get a thumbnail from an object that is returned using the Bing News Search API . The only helpful attribute of the returned object that I can think of in this problem is the url . Is there any easy way of using this url to get the thumbnail for the article .. . Answer : Use the url Bing Search gives you back to make a curl call to the url and get the image from the page s OGP data . Several libraries are available in multiple programming-languages to parse a webpage s OGP data .", "Question : I am working on Xamarin Android application . Is there any way to use Bing Speech API with my application .. . Answer : There are two ways of using the Bing Speech API https : www.microsoft.com cognitive-services en-us speech-api documentation overview . The first one is a REST service https : www.microsoft.com cognitive-services en-us speech-api documentation API-Reference-REST BingVoiceRecognition which can be called from any Xamarin.Android application no additional components required . The other possibility is to use the client libraries . Microsoft provides libraries for C Windows Phone WPF etc . Android https : www.microsoft.com cognitive-services en-us speech-api documentation getstarted getstartedjavaandroid and iOS . To use the library on your Xamarin.Android application you can either try to use the C library or create your own bindings for the Android specific Java library . Here s an article that ll help you with the binding : .. . .. . Binding a Java library https : developer.xamarin.com guides android advanced topics binding-a-java-library Comment : Thank you for your response . Can you please send me link of any example related to this Comment : I don t have any examples but you ll find sample code through the links I posted . Good luck Comment : I have one another question . It will be great if you can help me . @hankide How to pass a data from .cs file to xaml.cs in Xamarin.Forms I used following approach . Use MessagingCenter.Send YourPage YourObjcetType this NameOfMessage YourObject to send a message and pass the object you need . Then you can subscribe to this message in your other class : MessagingCenter.Subscribe YourPage YourObjectType this NameOfMessage sender arg Comment : If you re looking for an example of this being used check out my SmartCoffee app built with Xamarin.Forms . Includes dependency logic for recording audio as well as REST wrapper for the Bing Speech API : github.com pierceboggan smartcoffee https : github.com pierceboggan smartcoffee" ] }
[ "yes-answer-long", "yes-answer-short" ]
search-engine
UNK_RELATION
streamparse@apache-storm@94
streamparse -- streamparse is a software package that runs python code inside the java-based @placeholder .
{ "confidence": [ 60.14849853515625, 51.1231575012207, 46.51914596557617, 44.74751281738281, 42.709999084472656, 41.76082229614258, 39.778594970703125, 39.778594970703125, 39.01971435546875, 37.643341064453125, 37.5791015625, 37.5791015625, 34.438880920410156, 33.705421447753906, 27.990318298339844, 25.769800186157227, 24.885135650634766, 24.073970794677734, 17.069801330566406, 16.70691680908203, 16.70691680908203, 16.164836883544922, 16.10605239868164, 15.865041732788086, 15.558627128601074, 14.988791465759277, 14.317134857177734, 13.791549682617188, 13.52775764465332, 13.24850082397461, 13.24850082397461, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 13.197944641113281, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 11.864596366882324, 10.266541481018066 ], "content": [ "I am using a system which runs Python code on Apache Storm using Streamparse https : github.com Parsely streamparse .", "I am more comfortable with Python so I decided to use streamparse https : github.com Parsely streamparse .", "We use storm-0.10.0 and streamparse 2.1.4 .", "This is what I ended up doing to deploy streamparse Storm topology in the local Storm cluster : .. . .. . This worked with streamparse 2.1.4 and Storm 0.9.5", "I use streamparse for a while now but i m stuck on one subject .", "Setup : .. . .. . Storm 0.10.0 .. . Streamparse 2.1.4 .. . Centos 6.5 .. . Python 2.7 Streamparse needs it .. . .. . Yes i know they are outdated however i couldnt get anything working with Storm 1.0 its just broken with streamparse 3 .. . .. . When I attempt to launch a streamparse submit from either my nimbus server or another server in my topology I get the following error : .. . .. . IOError : Local port : 6627 already in use unable to open ssh tunnel to nimbus.server.local : 6627 .", "I am working on an streamparse project on an AWS instance with ZooKeeper and Nimbus installed .", "How do Celery and Storm with streamparse compare on the following tenets : .. . .. . 1 .", "Recently I started working on storm and being more comfortable with python I decided to use streamparse for working with storm .", "My python version is Python 2.7.6 .. . .. . I am following the wordcount streamparse tutorial when i do sparse run on nimbus the code executes perfectly and as expected .", "I m using Storm to process messages off of Kafka in real-time and using streamparse to build my topology .", "Here is my setup : .. . .. . Nimbus : Storm v1.0.0 Supervisor : Storm v1.0.0 ZooKeeper : v3.4.8 .. . .. . Everywhere is running streamparse v3.0.0 .", "Yes I am seeing the same issue when running streamparse on the host where I set up a local Storm cluster .", "I am using python streamparse api to interact with storm I read the streamparse doc and begin a demo I run the command as following : .. . .. . I also add the some log to the spout and bolt as I want to see some debug info but I get nothing I can t find the log file and when I run sparse run command it just output some content as following : .. . .. . this is my first use streamparse I have no idea about this in other words I just want to know how can I debug the spout and bolt I write", "I have gone through various streamparse tutorials but they all show spout emitting tuples from static list and do not have stream like twitter streaming api provides .", "I have the following version of JDK lein and storm installed : .. . .. . I run the following steps after following streamparse : .. . .. . I get the following error : .. . .. . My project.clj file reads like this : .. . .. . So my lein and storm core versions are set correctly .", "In my case streamparse api were used to run locally and submit code to STORM cluster when I ran it locally it was ok but when it is submitted to STORM cluster I got .. . .. . java.lang.RuntimeException : java.lang.IllegalStateException : Attempting to call unbound fn .. . .. . clojure version is 1.5.1 storm version is 0.9.5 sparse 2.1.3 .. . .. . the error was due to calling call-to-outside-function within spout execute and that function can be 3rd party library as well the code is as follows : .. . .. . Anyone has this issue before", "java code .", "1 . use keytool.exe inside your jre bin folder .", "Solution is to add that certificate to java cacerts file so that it got permanently accepted .", "Step 2 : Get that certificate added to java cacerts file .", "Do use only one jre which is inside JDK it decreases chance to have issues .", "Possible duplicate of Clojure deftype calling function in the same namespace throws java.lang.IllegalStateException : Attempting to call unbound fn : http : stackoverflow.com questions 10953621 clojure-deftype-calling-function-in-the-same-namespace-throws-java-lang-illegal", "This is because java is not recognizing root certificate-authority CA SSL certificate of https : clojars.org repo .", "The requirements are distributed task processing and programming tasks in Python for a high message rate .", "I have found a bug in the local code which can be solved by upgrading from Storm 0.9.2 to Storm 0.9.5 and I would like to upgrade my local Storm version .", "2 . fire following command to place your certificate inside cacerts file .. . .. . keytool import noprompt trustcacerts alias ALIASNAME -file PATH TO YOUR DESKTOP CertificateName.cer -keystore PATH TO YOUR JDK jre lib security cacerts -storepass changeit .. . .. . That is it", "This is my code for storm : .. . .. . This is my code for tweepy : .. . .. . How should I integrate both these codes", "There are no errors in the interface however in storm supervisor.log on the supervisor I get the following : .. . .. . 2016-04-21 16 : 10 : 23.521 o.a.s.d.supervisor INFO Launching worker with assignment : storm-id wordcount-1-1461250825 : executors 1 1 3 3 5 5 : resources object org.apache.storm.generated.WorkerResources 0x7cea67a2 WorkerResources mem on heap : 0.0 mem off heap : 0.0 cpu : 0.0 for this supervisor b243960f-13d3-4c72-817e-be80b6d95f7a on port 6703 with id a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 23.525 o.a.s.d.supervisor INFO Launching worker with command : java -cp opt apache-storm-1.0.0 lib log4j-api-2.1.jar : opt apache-storm-1.0.0 lib storm-core-1.0.0.jar : opt apache-storm-1.0.0 lib servlet-api-2.5.jar : opt apache-storm-1.0.0 lib kryo-3.0.3.jar : opt apache-storm-1.0.0 lib log4j-core-2.1.jar : opt apache-storm-1.0.0 lib log4j-over-slf4j-1.6.6.jar : opt apache-storm-1.0.0 lib reflectasm-1.10.1.jar : opt apache-storm-1.0.0 lib disruptor-3.3.2.jar : opt apache-storm-1.0.0 lib storm-rename-hack-1.0.0.jar : opt apache-storm-1.0.0 lib objenesis-2.1.jar : opt apache-storm-1.0.0 lib log4j-slf4j-impl-2.1.jar : opt apache-storm-1.0.0 lib slf4j-api-1.7.7.jar : opt apache-storm-1.0.0 lib minlog-1.3.0.jar : opt apache-storm-1.0.0 lib clojure-1.7.0.jar : opt apache-storm-1.0.0 lib asm-5.0.3.jar : opt apache-storm-1.0.0 conf : opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 stormjar.jar -Xmx64m -Dlogfile.name worker.log -Dstorm.home opt apache-storm-1.0.0 -Dworkers.artifacts opt apache-storm-1.0.0 logs workers-artifacts -Dstorm.id wordcount-1-1461250825 -Dworker.id a59d1009-7f43-469a-b660-7a58c145f983 -Dworker.port 6703 -Dstorm.log.dir opt apache-storm-1.0.0 logs -Dlog4j.configurationFile opt apache-storm-1.0.0 log4j2 worker.xml -DLog4jContextSelector org.apache.logging.log4j.core.selector.BasicContextSelector org.apache.storm.LogWriter java -server -Xmx768m -XX : +PrintGCDetails -Xloggc : artifacts gc.log -XX : +PrintGCDateStamps -XX : +PrintGCTimeStamps -XX : +UseGCLogFileRotation -XX : NumberOfGCLogFiles 10 -XX : GCLogFileSize 1M -XX : +HeapDumpOnOutOfMemoryError -XX : HeapDumpPath artifacts heapdump -Djava.library.path opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 resources Linux-amd64 : opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 resources : usr local lib : opt local lib : usr lib -Dlogfile.name worker.log -Dstorm.home opt apache-storm-1.0.0 -Dworkers.artifacts opt apache-storm-1.0.0 logs workers-artifacts -Dstorm.conf.file -Dstorm.options -Dstorm.log.dir opt apache-storm-1.0.0 logs -Djava.io.tmpdir opt apache-storm-1.0.0 storm-local workers a59d1009-7f43-469a-b660-7a58c145f983 tmp -Dlogging.sensitivity S3 -Dlog4j.configurationFile opt apache-storm-1.0.0 log4j2 worker.xml -DLog4jContextSelector org.apache.logging.log4j.core.selector.BasicContextSelector -Dstorm.id wordcount-1-1461250825 -Dworker.id a59d1009-7f43-469a-b660-7a58c145f983 -Dworker.port 6703 -cp opt apache-storm-1.0.0 lib log4j-api-2.1.jar : opt apache-storm-1.0.0 lib storm-core-1.0.0.jar : opt apache-storm-1.0.0 lib servlet-api-2.5.jar : opt apache-storm-1.0.0 lib kryo-3.0.3.jar : opt apache-storm-1.0.0 lib log4j-core-2.1.jar : opt apache-storm-1.0.0 lib log4j-over-slf4j-1.6.6.jar : opt apache-storm-1.0.0 lib reflectasm-1.10.1.jar : opt apache-storm-1.0.0 lib disruptor-3.3.2.jar : opt apache-storm-1.0.0 lib storm-rename-hack-1.0.0.jar : opt apache-storm-1.0.0 lib objenesis-2.1.jar : opt apache-storm-1.0.0 lib log4j-slf4j-impl-2.1.jar : opt apache-storm-1.0.0 lib slf4j-api-1.7.7.jar : opt apache-storm-1.0.0 lib minlog-1.3.0.jar : opt apache-storm-1.0.0 lib clojure-1.7.0.jar : opt apache-storm-1.0.0 lib asm-5.0.3.jar : opt apache-storm-1.0.0 conf : opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 stormjar.jar org.apache.storm.daemon.worker wordcount-1-1461250825 b243960f-13d3-4c72-817e-be80b6d95f7a 6703 a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 23.527 o.a.s.config INFO SET worker-user a59d1009-7f43-469a-b660-7a58c145f983 root 2016-04-21 16 : 10 : 23.527 o.a.s.d.supervisor INFO Creating symlinks for worker-id : a59d1009-7f43-469a-b660-7a58c145f983 storm-id : wordcount-1-1461250825 to its port artifacts directory 2016-04-21 16 : 10 : 23.530 o.a.s.d.supervisor INFO Creating symlinks for worker-id : a59d1009-7f43-469a-b660-7a58c145f983 storm-id : wordcount-1-1461250825 for files 1 : resources 2016-04-21 16 : 10 : 23.532 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 24.033 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 24.533 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 25.034 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 25.534 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 26.035 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 26.535 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 27.036 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 27.536 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 30.467 o.a.s.d.supervisor INFO Worker Process a59d1009-7f43-469a-b660-7a58c145f983 exited with code : 20 2016-04-21 16 : 10 : 31.983 o.a.s.d.supervisor INFO Worker Process a59d1009-7f43-469a-b660-7a58c145f983 has died", "But I cannot figure out how I would code that in spout .", "My code looks a bit like this : .. . .. . listener.py : .. . .. . Spout File :", "Using : .. . .. . I ve found the following : .. . .. . home ubuntu .m2 is probably my local Maven repo http : maven.apache.org settings.html .", "Any idea how to specifically upgrade storm- -0.9.2- packages on that repo to the 0.9.5 version", "Update the version in the project which uses this version change POM file .", "Is the definition of call-to-outside-function in the classpath somewhere", "Where is this clojure function called from. .", "Is it via some other clojure function or through other API e.g .", "For this use-case it s imperative that we have 100 guarantee that any message into Storm is processed and ack d .", "I have implemented logic on my bolt using try-catch see below and I would like to have Storm replay these messages in addition to writing this to another error topic in Kafka .", "In my KafkaSpout I assigned the tup id to equal the offset id from the Kafka topic that my consumer is feeding from .", "However when I force an error in my Bolt using a bad variable reference I m not seeing the message be replayed .", "I am indeed seeing one write to the error Kafka topic but only once--meaning that the tuple is never being resubmitted into my bolt s .", "My setting for the TOPOLOGY MESSAGE TIMEOUT SEC 60 and I m expecting Storm to keep replaying the failed message once every 60 seconds and have my error catch keep writing to the error topic perpetually .", "KafkaSpout.py .. . .. . processBolt.py .. . .. . I would appreciate any help with how to correctly implement the custom fail logic for this case .", "Thanks in advance .", "We let all the default-value no auto anchor False or something like that .", "We have no ack or fail method implemented in spout and we don t call any ack or fail method in bolts .", "On bolt side process latency and execute latency looks correct .", "Process latency are execute latency .", "My concern is about the spout Complete Latency that we can find in the storm UI .", "It s always at 0.00 .", "I read that complete Latency is the total time spent of a message in the topology .", "So it s a very good KPI to follow as it can help to detect a lake of workers tasks or even nodes .", "In one bolt i did a self.log tup and i do have a tuple.id with this kind of output : .. . .. . name : engine-bolt Tuple id u 2213630928741732943 .. . component u request-spout-1 .. . stream u default .. . task 24 .. . values etc .. . .. .", "So how can i do to get some values about the Complete Latency for spouts", "If you need anything else please ask :", "My cluster OS is 14.04.1-Ubuntu .", "However when i run sparse submit from an external box installed identical to all my other cluster nodes the topology loads i can see it in Nimbus UI but no tuples are created passed .", "2016-04-21 16 : 10 : 31.984 o.a.s.d.supervisor INFO Shutting down and clearing state for id a59d1009-7f43-469a-b660-7a58c145f983 .", "Current supervisor time : 1461251431 .", "State : : timed-out Heartbeat : : time-secs 1461251429 : storm-id wordcount-1-1461250825 : executors 3 3 1 1 -1 -1 5 5 : port 6703 2016-04-21 16 : 10 : 31.984 o.a.s.d.supervisor INFO Shutting down b243960f-13d3-4c72-817e-be80b6d95f7a : a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 31.984 o.a.s.config INFO GET worker-user a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 31.987 o.a.s.util INFO Error when trying to kill 32691 .", "Process is probably already dead .", "2016-04-21 16 : 10 : 31.987 o.a.s.d.supervisor INFO Sleep 1 seconds for execution of cleanup threads on worker .", "It just spins like that until i kill the topology .", "Is there another log I can check in", "I m not sure what I am doing wrong .", "This is the third cluster rebuild I have done and get to the same point every time .", "My config.json looks like : .. . .. . Any help would be appreciated .", "But ofcourse 6627 is in use on my nimbus server", "Its the Thrify port .", "So i tried moving the Thrifty port to 6637 and restarting Nimbus .", "But I get the same error back from the client submitting it : .. . .. . IOError : Local port : 6627 already in use unable to open ssh tunnel to nimbus.server.local : 6627 .", "Even a netstat tuanp shows that 6627 shows that nothing is listening on that port on nimbus or the box executing the submit .", "I have a feeling something to do with SSHD config and allowing tunneling and that isn t being handled properly by Nimbus and giving an incorrect error when trying to establish the tunnel .", "Has anyone else experienced this", "Before that I spent an entire day trying to deploy storm topology which I already tested with sparse run to a remote Storm cluster without success .", "What I learned is that every time you run sparse command it spawns two sparse processes .", "I am assuming both of them are using port 6627 causing 6627 already in use error to be thrown by one of the processes .", "I got the same error when running storm topology .", "I made following changes then it worked fine Added the following property .. . .. . In config.json .. . .. . In fabfile.py .. . .. . And submitted as sparse submit Please let me know if it worked or share the config file", "I have been wanting to use Apache Storm to stream from Kafka .", "The word-count example is the introductory example .", "I have been trying to get it to work on my local machine .", "I m not sure where I am going wrong .", "Could somebody help me out", "-Thanks", "Step 1 : Get root certificate of https : clojars.org .. . .. . 1 .", "Open https : clojars.org in a chrome browser .", "2 . locate Lock symbol just besides your address-bar and click on it .", "3 . view Details .. . 4 .", "Click on top most certificate on hierarchy and confirm it is tailed with Root CA phrase .", "5 . drag-and-drop that image which you saw written certificate on desktop .", "Thats it", "you got your root certificate", "you got your problem resolved .", "PLEASE NOTE .. . .. . 1 .", "Do confirm that the jre which is giving you this PKIX error JRE used by KAFKA that is where you are performing STEP 2 .", "If you would try with another jre problem would be as it is .", "2 .", "I want to use the Storm UI ." ] }
{ "confidence": [ 60.374847412109375, 58.3979377746582, 57.590545654296875, 55.134002685546875, 54.71767807006836, 50.95711135864258, 46.0296745300293, 44.29145431518555, 41.99638748168945, 41.20616149902344, 37.30715560913086, 30.59051513671875 ], "content": [ "Question : null .. . Answer : I am using a system which runs Python code on Apache Storm using Streamparse https : github.com Parsely streamparse . I have found a bug in the local code which can be solved by upgrading from Storm 0.9.2 to Storm 0.9.5 and I would like to upgrade my local Storm version . Using : .. . .. . I ve found the following : .. . .. . home ubuntu .m2 is probably my local Maven repo http : maven.apache.org settings.html . Any idea how to specifically upgrade storm- -0.9.2- packages on that repo to the 0.9.5 version Comment : Update the version in the project which uses this version change POM file .", "Question : null .. . Answer : I am using python streamparse api to interact with storm I read the streamparse doc and begin a demo I run the command as following : .. . .. . I also add the some log to the spout and bolt as I want to see some debug info but I get nothing I can t find the log file and when I run sparse run command it just output some content as following : .. . .. . this is my first use streamparse I have no idea about this in other words I just want to know how can I debug the spout and bolt I write", "Question : Setup : .. . .. . Storm 0.10.0 .. . Streamparse 2.1.4 .. . Centos 6.5 .. . Python 2.7 Streamparse needs it .. . .. . Yes i know they are outdated however i couldnt get anything working with Storm 1.0 its just broken with streamparse 3 .. . .. . When I attempt to launch a streamparse submit from either my nimbus server or another server in my topology I get the following error : .. . .. . IOError : Local port : 6627 already in use unable to open ssh tunnel to nimbus.server.local : 6627 . But ofcourse 6627 is in use on my nimbus server Its the Thrify port . So i tried moving the Thrifty port to 6637 and restarting Nimbus . But I get the same error back from the client submitting it : .. . .. . IOError : Local port : 6627 already in use unable to open ssh tunnel to nimbus.server.local : 6627 . Even a netstat tuanp shows that 6627 shows that nothing is listening on that port on nimbus or the box executing the submit . I have a feeling something to do with SSHD config and allowing tunneling and that isn t being handled properly by Nimbus and giving an incorrect error when trying to establish the tunnel . Has anyone else experienced this Comment : Yes I am seeing the same issue when running streamparse on the host where I set up a local Storm cluster . Before that I spent an entire day trying to deploy storm topology which I already tested with sparse run to a remote Storm cluster without success . What I learned is that every time you run sparse command it spawns two sparse processes . I am assuming both of them are using port 6627 causing 6627 already in use error to be thrown by one of the processes . .. . Answer : This is what I ended up doing to deploy streamparse Storm topology in the local Storm cluster : .. . .. . This worked with streamparse 2.1.4 and Storm 0.9.5", "Question : I have been wanting to use Apache Storm to stream from Kafka . I am more comfortable with Python so I decided to use streamparse https : github.com Parsely streamparse . The word-count example is the introductory example . I have been trying to get it to work on my local machine . I have the following version of JDK lein and storm installed : .. . .. . I run the following steps after following streamparse : .. . .. . I get the following error : .. . .. . My project.clj file reads like this : .. . .. . So my lein and storm core versions are set correctly . I m not sure where I am going wrong . Could somebody help me out -Thanks .. . Answer : This is because java is not recognizing root certificate-authority CA SSL certificate of https : clojars.org repo . Solution is to add that certificate to java cacerts file so that it got permanently accepted . Step 1 : Get root certificate of https : clojars.org .. . .. . 1 . Open https : clojars.org in a chrome browser . 2 . locate Lock symbol just besides your address-bar and click on it . 3 . view Details .. . 4 . Click on top most certificate on hierarchy and confirm it is tailed with Root CA phrase . 5 . drag-and-drop that image which you saw written certificate on desktop . Thats it you got your root certificate Step 2 : Get that certificate added to java cacerts file . 1 . use keytool.exe inside your jre bin folder . 2 . fire following command to place your certificate inside cacerts file .. . .. . keytool import noprompt trustcacerts alias ALIASNAME -file PATH TO YOUR DESKTOP CertificateName.cer -keystore PATH TO YOUR JDK jre lib security cacerts -storepass changeit .. . .. . That is it you got your problem resolved . PLEASE NOTE .. . .. . 1 . Do confirm that the jre which is giving you this PKIX error JRE used by KAFKA that is where you are performing STEP 2 . If you would try with another jre problem would be as it is . 2 . Do use only one jre which is inside JDK it decreases chance to have issues .", "Question : Setup : .. . .. . Storm 0.10.0 .. . Streamparse 2.1.4 .. . Centos 6.5 .. . Python 2.7 Streamparse needs it .. . .. . Yes i know they are outdated however i couldnt get anything working with Storm 1.0 its just broken with streamparse 3 .. . .. . When I attempt to launch a streamparse submit from either my nimbus server or another server in my topology I get the following error : .. . .. . IOError : Local port : 6627 already in use unable to open ssh tunnel to nimbus.server.local : 6627 . But ofcourse 6627 is in use on my nimbus server Its the Thrify port . So i tried moving the Thrifty port to 6637 and restarting Nimbus . But I get the same error back from the client submitting it : .. . .. . IOError : Local port : 6627 already in use unable to open ssh tunnel to nimbus.server.local : 6627 . Even a netstat tuanp shows that 6627 shows that nothing is listening on that port on nimbus or the box executing the submit . I have a feeling something to do with SSHD config and allowing tunneling and that isn t being handled properly by Nimbus and giving an incorrect error when trying to establish the tunnel . Has anyone else experienced this Comment : Yes I am seeing the same issue when running streamparse on the host where I set up a local Storm cluster . Before that I spent an entire day trying to deploy storm topology which I already tested with sparse run to a remote Storm cluster without success . What I learned is that every time you run sparse command it spawns two sparse processes . I am assuming both of them are using port 6627 causing 6627 already in use error to be thrown by one of the processes . .. . Answer : I got the same error when running storm topology . I made following changes then it worked fine Added the following property .. . .. . In config.json .. . .. . In fabfile.py .. . .. . And submitted as sparse submit Please let me know if it worked or share the config file", "Question : Recently I started working on storm and being more comfortable with python I decided to use streamparse for working with storm . I am planning to accept a twitter stream in spout and perform some computations in bolt . But I cannot figure out how I would code that in spout . I have gone through various streamparse tutorials but they all show spout emitting tuples from static list and do not have stream like twitter streaming api provides . This is my code for storm : .. . .. . This is my code for tweepy : .. . .. . How should I integrate both these codes .. . Answer : To do this I setup a kafka queue by which the tweepy listener wrote the status.text into the queue using pykafka https : github.com Parsely pykafka . The spout then constantly read data from the queue to perform the analytics . My code looks a bit like this : .. . .. . listener.py : .. . .. . Spout File :", "Question : null .. . Answer : I use streamparse for a while now but i m stuck on one subject . We use storm-0.10.0 and streamparse 2.1.4 . We let all the default-value no auto anchor False or something like that . We have no ack or fail method implemented in spout and we don t call any ack or fail method in bolts . On bolt side process latency and execute latency looks correct . Process latency are execute latency . My concern is about the spout Complete Latency that we can find in the storm UI . It s always at 0.00 . I read that complete Latency is the total time spent of a message in the topology . So it s a very good KPI to follow as it can help to detect a lake of workers tasks or even nodes . In one bolt i did a self.log tup and i do have a tuple.id with this kind of output : .. . .. . name : engine-bolt Tuple id u 2213630928741732943 .. . component u request-spout-1 .. . stream u default .. . task 24 .. . values etc .. . .. . So how can i do to get some values about the Complete Latency for spouts If you need anything else please ask :", "Question : null .. . Answer : I am working on an streamparse project on an AWS instance with ZooKeeper and Nimbus installed . I want to use the Storm UI . I ran sparse submit with the following config.json file : .. . .. . It gives following error trace :", "Question : null .. . Answer : In my case streamparse api were used to run locally and submit code to STORM cluster when I ran it locally it was ok but when it is submitted to STORM cluster I got .. . .. . java.lang.RuntimeException : java.lang.IllegalStateException : Attempting to call unbound fn .. . .. . clojure version is 1.5.1 storm version is 0.9.5 sparse 2.1.3 .. . .. . the error was due to calling call-to-outside-function within spout execute and that function can be 3rd party library as well the code is as follows : .. . .. . Anyone has this issue before Comment : Is the definition of call-to-outside-function in the classpath somewhere Comment : Where is this clojure function called from. . Is it via some other clojure function or through other API e.g . java code . Comment : Possible duplicate of Clojure deftype calling function in the same namespace throws java.lang.IllegalStateException : Attempting to call unbound fn : http : stackoverflow.com questions 10953621 clojure-deftype-calling-function-in-the-same-namespace-throws-java-lang-illegal", "Question : null .. . Answer : The requirements are distributed task processing and programming tasks in Python for a high message rate . How do Celery and Storm with streamparse compare on the following tenets : .. . .. . 1 . Scalability- not only in terms of workers but also in context of brokers . Can Celery work with horizontally scalable brokers sharded rabbitmq clusters Does Storm have any such limitations 2 . Flexibility with tasks- If a task must for a specific condition in the system it may well be re-queued and processed when it is next absorbed by a worker . Does Storm provide such features 3 . Workflows- Workflows tend to get complicated- some sequentially some in parallel and then their combinations . Which is better here 4 . Monitoring- Real-time monitoring support for workers their status their message rates . Alerting features in case of errors . 5 . Ease of deployment", "Question : null .. . Answer : I m using Storm to process messages off of Kafka in real-time and using streamparse to build my topology . For this use-case it s imperative that we have 100 guarantee that any message into Storm is processed and ack d . I have implemented logic on my bolt using try-catch see below and I would like to have Storm replay these messages in addition to writing this to another error topic in Kafka . In my KafkaSpout I assigned the tup id to equal the offset id from the Kafka topic that my consumer is feeding from . However when I force an error in my Bolt using a bad variable reference I m not seeing the message be replayed . I am indeed seeing one write to the error Kafka topic but only once--meaning that the tuple is never being resubmitted into my bolt s . My setting for the TOPOLOGY MESSAGE TIMEOUT SEC 60 and I m expecting Storm to keep replaying the failed message once every 60 seconds and have my error catch keep writing to the error topic perpetually . KafkaSpout.py .. . .. . processBolt.py .. . .. . I would appreciate any help with how to correctly implement the custom fail logic for this case . Thanks in advance .", "Question : null .. . Answer : Here is my setup : .. . .. . Nimbus : Storm v1.0.0 Supervisor : Storm v1.0.0 ZooKeeper : v3.4.8 .. . .. . Everywhere is running streamparse v3.0.0 . My cluster OS is 14.04.1-Ubuntu . My python version is Python 2.7.6 .. . .. . I am following the wordcount streamparse tutorial when i do sparse run on nimbus the code executes perfectly and as expected . However when i run sparse submit from an external box installed identical to all my other cluster nodes the topology loads i can see it in Nimbus UI but no tuples are created passed . There are no errors in the interface however in storm supervisor.log on the supervisor I get the following : .. . .. . 2016-04-21 16 : 10 : 23.521 o.a.s.d.supervisor INFO Launching worker with assignment : storm-id wordcount-1-1461250825 : executors 1 1 3 3 5 5 : resources object org.apache.storm.generated.WorkerResources 0x7cea67a2 WorkerResources mem on heap : 0.0 mem off heap : 0.0 cpu : 0.0 for this supervisor b243960f-13d3-4c72-817e-be80b6d95f7a on port 6703 with id a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 23.525 o.a.s.d.supervisor INFO Launching worker with command : java -cp opt apache-storm-1.0.0 lib log4j-api-2.1.jar : opt apache-storm-1.0.0 lib storm-core-1.0.0.jar : opt apache-storm-1.0.0 lib servlet-api-2.5.jar : opt apache-storm-1.0.0 lib kryo-3.0.3.jar : opt apache-storm-1.0.0 lib log4j-core-2.1.jar : opt apache-storm-1.0.0 lib log4j-over-slf4j-1.6.6.jar : opt apache-storm-1.0.0 lib reflectasm-1.10.1.jar : opt apache-storm-1.0.0 lib disruptor-3.3.2.jar : opt apache-storm-1.0.0 lib storm-rename-hack-1.0.0.jar : opt apache-storm-1.0.0 lib objenesis-2.1.jar : opt apache-storm-1.0.0 lib log4j-slf4j-impl-2.1.jar : opt apache-storm-1.0.0 lib slf4j-api-1.7.7.jar : opt apache-storm-1.0.0 lib minlog-1.3.0.jar : opt apache-storm-1.0.0 lib clojure-1.7.0.jar : opt apache-storm-1.0.0 lib asm-5.0.3.jar : opt apache-storm-1.0.0 conf : opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 stormjar.jar -Xmx64m -Dlogfile.name worker.log -Dstorm.home opt apache-storm-1.0.0 -Dworkers.artifacts opt apache-storm-1.0.0 logs workers-artifacts -Dstorm.id wordcount-1-1461250825 -Dworker.id a59d1009-7f43-469a-b660-7a58c145f983 -Dworker.port 6703 -Dstorm.log.dir opt apache-storm-1.0.0 logs -Dlog4j.configurationFile opt apache-storm-1.0.0 log4j2 worker.xml -DLog4jContextSelector org.apache.logging.log4j.core.selector.BasicContextSelector org.apache.storm.LogWriter java -server -Xmx768m -XX : +PrintGCDetails -Xloggc : artifacts gc.log -XX : +PrintGCDateStamps -XX : +PrintGCTimeStamps -XX : +UseGCLogFileRotation -XX : NumberOfGCLogFiles 10 -XX : GCLogFileSize 1M -XX : +HeapDumpOnOutOfMemoryError -XX : HeapDumpPath artifacts heapdump -Djava.library.path opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 resources Linux-amd64 : opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 resources : usr local lib : opt local lib : usr lib -Dlogfile.name worker.log -Dstorm.home opt apache-storm-1.0.0 -Dworkers.artifacts opt apache-storm-1.0.0 logs workers-artifacts -Dstorm.conf.file -Dstorm.options -Dstorm.log.dir opt apache-storm-1.0.0 logs -Djava.io.tmpdir opt apache-storm-1.0.0 storm-local workers a59d1009-7f43-469a-b660-7a58c145f983 tmp -Dlogging.sensitivity S3 -Dlog4j.configurationFile opt apache-storm-1.0.0 log4j2 worker.xml -DLog4jContextSelector org.apache.logging.log4j.core.selector.BasicContextSelector -Dstorm.id wordcount-1-1461250825 -Dworker.id a59d1009-7f43-469a-b660-7a58c145f983 -Dworker.port 6703 -cp opt apache-storm-1.0.0 lib log4j-api-2.1.jar : opt apache-storm-1.0.0 lib storm-core-1.0.0.jar : opt apache-storm-1.0.0 lib servlet-api-2.5.jar : opt apache-storm-1.0.0 lib kryo-3.0.3.jar : opt apache-storm-1.0.0 lib log4j-core-2.1.jar : opt apache-storm-1.0.0 lib log4j-over-slf4j-1.6.6.jar : opt apache-storm-1.0.0 lib reflectasm-1.10.1.jar : opt apache-storm-1.0.0 lib disruptor-3.3.2.jar : opt apache-storm-1.0.0 lib storm-rename-hack-1.0.0.jar : opt apache-storm-1.0.0 lib objenesis-2.1.jar : opt apache-storm-1.0.0 lib log4j-slf4j-impl-2.1.jar : opt apache-storm-1.0.0 lib slf4j-api-1.7.7.jar : opt apache-storm-1.0.0 lib minlog-1.3.0.jar : opt apache-storm-1.0.0 lib clojure-1.7.0.jar : opt apache-storm-1.0.0 lib asm-5.0.3.jar : opt apache-storm-1.0.0 conf : opt apache-storm-1.0.0 storm-local supervisor stormdist wordcount-1-1461250825 stormjar.jar org.apache.storm.daemon.worker wordcount-1-1461250825 b243960f-13d3-4c72-817e-be80b6d95f7a 6703 a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 23.527 o.a.s.config INFO SET worker-user a59d1009-7f43-469a-b660-7a58c145f983 root 2016-04-21 16 : 10 : 23.527 o.a.s.d.supervisor INFO Creating symlinks for worker-id : a59d1009-7f43-469a-b660-7a58c145f983 storm-id : wordcount-1-1461250825 to its port artifacts directory 2016-04-21 16 : 10 : 23.530 o.a.s.d.supervisor INFO Creating symlinks for worker-id : a59d1009-7f43-469a-b660-7a58c145f983 storm-id : wordcount-1-1461250825 for files 1 : resources 2016-04-21 16 : 10 : 23.532 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 24.033 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 24.533 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 25.034 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 25.534 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 26.035 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 26.535 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 27.036 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 27.536 o.a.s.d.supervisor INFO a59d1009-7f43-469a-b660-7a58c145f983 still hasn t started 2016-04-21 16 : 10 : 30.467 o.a.s.d.supervisor INFO Worker Process a59d1009-7f43-469a-b660-7a58c145f983 exited with code : 20 2016-04-21 16 : 10 : 31.983 o.a.s.d.supervisor INFO Worker Process a59d1009-7f43-469a-b660-7a58c145f983 has died 2016-04-21 16 : 10 : 31.984 o.a.s.d.supervisor INFO Shutting down and clearing state for id a59d1009-7f43-469a-b660-7a58c145f983 . Current supervisor time : 1461251431 . State : : timed-out Heartbeat : : time-secs 1461251429 : storm-id wordcount-1-1461250825 : executors 3 3 1 1 -1 -1 5 5 : port 6703 2016-04-21 16 : 10 : 31.984 o.a.s.d.supervisor INFO Shutting down b243960f-13d3-4c72-817e-be80b6d95f7a : a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 31.984 o.a.s.config INFO GET worker-user a59d1009-7f43-469a-b660-7a58c145f983 2016-04-21 16 : 10 : 31.987 o.a.s.util INFO Error when trying to kill 32691 . Process is probably already dead . 2016-04-21 16 : 10 : 31.987 o.a.s.d.supervisor INFO Sleep 1 seconds for execution of cleanup threads on worker . It just spins like that until i kill the topology . Is there another log I can check in I m not sure what I am doing wrong . This is the third cluster rebuild I have done and get to the same point every time . My config.json looks like : .. . .. . Any help would be appreciated ." ] }
[ "yes-answer-long", "yes-answer-short" ]
apache-storm
UNK_RELATION
objective-c-runtime@runtime@53
objective-c-runtime -- the objective-c runtime is a @placeholder support library provided with an implementation of the objective-c language .
{ "confidence": [ 68.96466064453125, 65.73416137695312, 64.20867919921875, 62.84135055541992, 62.141136169433594, 60.787200927734375, 60.7029914855957, 60.67424011230469, 59.11471176147461, 58.45880126953125, 57.98893356323242, 57.98893356323242, 57.98893356323242, 57.59819412231445, 57.00188446044922, 56.19947814941406, 56.19947814941406, 56.19947814941406, 56.19947814941406, 56.19947814941406, 56.19947814941406, 55.6605339050293, 55.42781066894531, 54.698909759521484, 54.68458557128906, 54.67402648925781, 54.4002571105957, 54.190818786621094, 54.07023620605469, 53.26364517211914, 53.23918914794922, 53.17832565307617, 53.131858825683594, 52.610801696777344, 52.506980895996094, 52.40922927856445, 52.40922927856445, 52.00551223754883, 51.963653564453125, 51.60105514526367, 51.53589630126953, 51.35909652709961, 51.300418853759766, 51.300418853759766, 51.300418853759766, 51.136436462402344, 51.136436462402344, 51.136436462402344, 51.136436462402344, 51.136436462402344, 51.136436462402344, 51.136436462402344, 50.480037689208984, 49.86339569091797, 49.77494430541992, 49.77494430541992, 49.77494430541992, 49.6109619140625, 49.6109619140625, 49.6109619140625, 49.6109619140625, 49.6109619140625, 49.6109619140625, 49.6109619140625, 49.6109619140625, 49.244632720947266, 48.92566680908203, 48.67592239379883, 48.449161529541016, 47.98548889160156, 47.98548889160156, 47.98548889160156, 47.98548889160156, 47.98548889160156, 47.98548889160156, 47.98548889160156, 47.98548889160156, 47.91925811767578, 47.91925811767578, 47.91925811767578, 47.91925811767578, 47.82150650024414, 47.82150650024414, 47.82150650024414, 47.82150650024414, 47.82150650024414, 47.592369079589844, 47.188087463378906, 47.09080123901367, 46.81413269042969, 46.81413269042969, 46.730674743652344, 46.730674743652344, 46.730674743652344, 46.730674743652344, 46.730674743652344, 46.205810546875, 45.2052001953125, 45.2052001953125, 45.2052001953125 ], "content": [ "Objective C is more runtime language then static .", "Recently I m studying the runtime in Objective-C .", "Is it possible to add properties to an Objective C object at runtime", "gcc.gnu.org onlinedocs gcc https : gcc.gnu.org onlinedocs gcc Modern-GNU-Objective-C-runtime-API.html Modern-GNU-Objective-C-runtime-API", "Objective-C is after all a C based language .", "In Objective-C is there a way to list the categories on a particular class at runtime", "objc msgSend is a C function yes but it is part of the Objective-C runtime right", "This is all outside the Objective-C runtime and there s no interface in the runtime to get at it .", "Swift classes that are subclasses of NSObject : .. . .. . are Objective-C classes themselves .. . use objc msgSend for calls to most of their methods .. . provide Objective-C runtime metadata for most of their method implementations .. . .. . Swift classes that are not subclasses of NSObject : .. . .. . are Objective-C classes but implement only a handful of methods for NSObject compatibility .. . do not use objc msgSend for calls to their methods by default .. . do not provide Objective-C runtime metadata for their method implementations by default .. . .. . Subclassing NSObject in Swift gets you Objective-C runtime flexibility but also Objective-C performance .", "and Objective-C objects .", "It s also hardcoded into the objective-c runtime and documented a little in there .", "In fact a swift class still runs inside the objective-c runtime .", "At runtime all Objective-C objects have the same type objc object .", "The only way to generate Objective-C binaries is with an Objective-C binary .", "Yes but you are using objective-c APIs and methods so this is an objective-c question more than a C question .", "However in Objective-C there exists always the ability to determine the correct function at runtime .", "I want to build a runtime reflection for objective C like Java reflection .", "I have tried to use the message forwarding in Objective-C runtime .", "Objective-C uses a runtime for message-passing allocations etc .", "I am trying to do some runtime programmation on Objective-C .", "A formal declared-property is an entity in itself from the Objective-C runtime perspective .", "Objective-C declared properties", "This is Objective-C not C . Re-tagging .", "Are you working from source code in which case you need an Objective-C parser or during runtime in which case you can use the Objective-C runtime API", "So in order to avoid learning Objective-C which I think was the gist of the question you now have to learn the implementation details and C-level API of the Objective-C runtime .", "The Objective-C version works fine .", "The Objective-C language defers as many decisions as it can from compile-time and link time to runtime .", "I m trying to implement a basic object-oriented ANSI C runtime and using Objective-C as a guide .", "Objective C is just a C with added object functionality .", "like this : .. . .. . Reason : .. . Swift optimizes code to call direct memory addresses instead of looking up the method location at runtime as in Objective-C . so we need tell the code run treat it as Objective-C code .", "Ok your code is Objective-C not C . .. . .. . Edit About objc msgSend fixup .. . .. . objc msgSend fixup is internal Objective-C runtime stuff used to manage calls using a C++ style method vtable .", "In Objective-C it would require even more work since Objective-C doesn t have that option .", "This is a link-to Apple s docs : Objective-C Runtime http : developer.apple.com library mac documentation Cocoa Reference ObjCRuntimeRef Reference reference.html and an example of its usage : Objective-C Runtime Programming http : developer.apple.com library mac documentation Cocoa Conceptual ObjCRuntimeGuide Articles ocrtPropertyIntrospection.html .", "Objective-c is a dynamic language which means everything about it can change at runtime .", "I removed the c tag and added the objective-c tag", "Swift optimizes code to call direct memory addresses instead of looking up the method location at runtime as in Objective-C .", "With the Objective-C runtime functions I can obtain details for the class and instance methods class-hierarchy instance-variables etc .", "Objective-C doesn t support private methods because it doesn t need them .", "You might find Mike Ash s Creating Classes at Runtime in Objective-C https : www.mikeash.com pyblog friday-qa-2010-11-6-creating-classes-at-runtime-in-objective-c.html helpful .", "From the reference documents on Objective-C Runtime Reference https : developer.apple.com library ios documentation Cocoa Reference ObjCRuntimeRef apple ref c func objc setAssociatedObject : .. . .. . You use the Objective-C runtime function objc setAssociatedObject to make an association between one object and another .", "At runtime every method implementation has the exact same exposure and all of the APIs provided by the Objective-C runtime that work with methods and selectors work equally the same across all methods .", "Remember Objective-c is duck typed .", "There is no such feature in Objective C at least I don t know it .", "Objective-C is purely dynamic at the moment of method dispatch .", "In Objective-C there is no concept of public private or protected methods .", "Someone has ask the same question before : Objective-C Runtime : What to put for size alignment for class addIvar", "http : stackoverflow.com questions 7942345 objective-c-runtime-what-to-put-for-size-alignment-for-class-addivar But it s not fully resolved .", "While the Objective C 2.0 documentation states that the synthesized accessors on the modern runtime will synthesize the ivar on first use .", "Is it done by class getInstanceVariable are the restrictions on class addIvar loosened is it an undocumented function int he objective C 2.0 runtime", "Python Java and Objective-C all have runtime object models that are pretty darned similar to SmallTalk .", "Maybe start at Objective-C Compiler and Runtime FAQ http : wiki.gnustep.org index.php ObjC2 FAQ", "All the versions of Objective-C that I ve seen have some facilities for mucking about with introspection and or dynamic generation of classes at runtime .", "Long long ago it was decided that Objective-C wouldn t support objects on the stack .", "Just about all of the APIs and patterns of the iOS system are derived from Objective-C Objective-C APIs .", "But pure Swift classes are not Objective C classes", "Objective-C implements a strong notion of duck typing .", "And it is in fact possible to have Objective-C objects on the stack .", "The Objective-C runtime allows one to dynamically create and register class pairs using objc allocateClassPair and objc registerClassPair respectively .", "At runtime Objective-C goes to the class and outright asks it Do you respond to this selector", "Though they could also be created dynamically using the Objective-C runtime as long as the class has NSObject as an ancestor .", "Any Objective-C code that runs in 32-bit or on Tiger or earlier runs under the Legacy Runtime .", "As mentioned you can use the Objective-C runtime API to retrieve the instance variable names :", "Personally I think it is very rare to need to use low-level Objective-C runtime functions .", "This works fine for Objective-C objects but how can I load a string constant at runtime", "This question already has an answer here : .. . .. . How do I lookup a string constant at runtime in Objective-C", "It s an issue with the runtime environment of Objective-C . While C C++ http : en.wikipedia.org wiki Objective-C Philosophical differences between Objective-C and C.2B.2B compiles down into unreadable machine code Objective-C still maintains some human-readable attributes like method names as strings http : osmorphis.blogspot.com 2009 05 reflection-in-objective-c.html .", "Agreed that Objective-C could use a better implementation for getting these attributes .", "I m messing around with the Objective-C runtime trying to compile objective-c code without linking it against libobjc and I m having some segmentation-fault problems with a program so I generated an assembly file from it .", "This is a NXMapTable super old hash table implementation used inside the objective-c runtime of class names const char to Class pointers aka .", "There were no changes made to the objective-c-runtime s internals .", "This is the usual connection between the two with respect to Objective-C .", "In Objective-C exceptions are thrown for programming errors .", "and in Objective-C : .. . .. . and myClass would be nil every time .", "I am making heavy use of Objective-C++ .", "You can if you compile it as Objective-C++", "I don t quite get the Objective-C selectors .", "The problem is : Where are Objective-C selectors stored", "Another issue : Objective-C was originally implemented as a precompiler that generated C code .", "I read here Learn C Before Objective-C", "I read here Learn C Before Objective-C", "This cannot be done without wrapping the C++ class in an Objective-C class .", "The Objective-C runtime directly dispatches to the function that implements the method so the calling conventions are mismatched as described previously .", "I have been digging into some Objective C runtime methods and was wondering what is the difference between Associate Objects and Properties .", "In the Objective-C modern runtime it is possible to declare properties without ever specifying the ivar .", "It is true that on the Apple Objective-C 2.0 runtime you must implement certain methods in order for your code to work .", "How do Objective-C Compiler and Runtime System work so that they convert the method names into SEL", "So does this really mean that the NSObject class is now part of the Objective-C runtime library instead of being a Foundation library component", "The difference is that for example in C++ the compiler has to ensure that the used function exists whereas in Objective-C the compiler doesn t really care the runtime system decides only .", "I think this is due to a newer obj-c runtime documentation of the runtime here : Objective-C Runtime Reference https : developer.apple.com library mac documentation Cocoa Reference ObjCRuntimeRef Reference reference.html apple ref c func class createInstance from the Mac Developer Library .", "Using the Objective-C runtime I can get a list of all of the @objc protocols an object conforms to : .. . .. . or all of the Objective-C protocols loaded by the runtime : .. . .. . But neither of these list any Swift protocols : .. . .. . strProtocols is 0 when I would expect it to return sizeof Protocol 2 since MyClass conforms to Equatable and Hashable .", "questions 26289301 how-do-i-lookup-a-string-constant-at-runtime-in-objective-c 1 answer .. . .. . I know that Objective-C allows me to refer to selectors by name using @selector @ name How can I access the following constant by name at runtime", "What is equivalent swift code for below Objective-C code .", "Types in Swift are not objects and thus are not directly equivalent to class objects in Objective-C .", "So the answer is that the Objective-C should have been .. . .. . and similarly the Swift should be", "Then others in the Objective-C community would be able to determine whether it was actually worthwhile or not .", "In Objective-C you can have methods that are not in the header file .", "the support for objc category struct has been removed with modern objective-c ios 10.5 making this information opaque .", "Are selectors in Objective-C just another way to send a message to an object", "See What exactly is a so called Class Cluster in Objective-C", "FYI - Not all classes have to inherit from NSObject in Objective-C ." ] }
{ "confidence": [ 67.39826965332031, 64.98050689697266, 64.51553344726562, 63.72212600708008, 63.13866424560547, 62.06359100341797, 61.93574523925781, 61.422088623046875, 60.19059753417969, 59.447391510009766, 59.22826385498047, 58.571434020996094, 58.41021728515625, 58.31630325317383, 57.975685119628906, 57.86695861816406, 57.72636413574219, 57.54922866821289, 57.179161071777344, 57.035377502441406 ], "content": [ "Question : In Objective-C is there a way to list the categories on a particular class at runtime With the Objective-C runtime functions I can obtain details for the class and instance methods class-hierarchy instance-variables etc . but seemingly not the category information . Looking at F-Script I see that it doesn t display category information indeed it appears not to display methods from categories at all . On the other hand class-dump extracts category information but this is from the binary and not at runtime . There s a mention of struct objc category in objc runtime.h but this looks to be private . Is there a supported way .. . Answer : from The Objective-C Programming Language http : developer.apple.com library mac documentation Cocoa Conceptual ObjectiveC Articles ocCategories.html apple ref doc uid TP30001163-CH20-TPXREF139 in the SDK doc : .. . .. . Category methods can do anything that methods defined in the class proper can do . At runtime there s no difference . the support for objc category struct has been removed with modern objective-c ios 10.5 making this information opaque . I m afraid you can t get the information you want . Comment : Thanks - that explains why I couldn t find a way then :", "Question : Looking at the Mac OS X 10.8 s version of the Objective-C runtime library source code http : opensource.apple.com source objc4 objc4-532.2 runtime I noticed that it s got a NSObject.mm http : opensource.apple.com source objc4 objc4-532.2 runtime NSObject.mm file . As its name suggests it s got the NSObject class implementation as well as built-in autorelease pool and retain count implementations . However versions of the ObjC runtime library prior to Mountain Lion s one didn t implement the NSObject class they didn t have a NSObject.mm file as you can see at the Mac OS X 10.7 s Objective-C runtime library source code http : opensource.apple.com source objc4 objc4-493.9 runtime for example . So does this really mean that the NSObject class is now part of the Objective-C runtime library instead of being a Foundation library component If yes why Is it to avoid one linking against the whole Foundation library with -framework Foundation when subclassing NSObject .. . Answer : You can see what s part of any particular library using the nm 1 tool . If you run this on libobjc you ll find that NSObject is in fact provided by libobjc : .. . .. . t means that the symbol is provided by this library u means that the symbol is undefined meaning that this library uses it but it must come from somewhere else . This isn t the first time they ve moved NSObject s implementation in Lion you ll find it in CoreFoundation.framework . I ve got no clue why they ve moved it around . At any rate it s an implementation detail officially NSObject is still part of Foundation http : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSObject Class . Comment : Where NSObject is implemented is an implementation detail . NSObject was moved down the stack along with libobjc so that more of the system could leverage Objective C .", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : The answer is.. . well.. . simple . Simplicity and consistency in fact . Objective-C is purely dynamic at the moment of method dispatch . In particular every method dispatch goes through the exact same dynamic method resolution point as every other method dispatch . At runtime every method implementation has the exact same exposure and all of the APIs provided by the Objective-C runtime that work with methods and selectors work equally the same across all methods . As many have answered both here and in other questions compile-time private methods are supported if a class doesn t declare a method in its publicly available interface then that method might as well not exist as far as your code is concerned . In other words you can achieve all of the various combinations of visibility desired at compilation time by organizing your project appropriately . There is little benefit to duplicating the same functionality into the runtime . It would add a tremendous amount of complexity and overhead . And even with all of that complexity it still wouldn t prevent all but the most casual developer from executing your supposedly private methods . EDIT : One of the assumptions I ve noticed is that private messages would have to go through the runtime resulting in a potentially large overhead . Is this absolutely true .. . Yes it is . There s no reason to suppose that the implementor of a class would not want to use all of the Objective-C feature set in the implementation and that means that dynamic-dispatch must happen . However there is no particular reason why private methods couldn t be dispatched by a special variant of objc msgSend since the compiler would know that they were private i.e . this could be achieved by adding a private-only method table to the Class structure . .. . There would be no way for a private method to short-circuit this check or skip the runtime .. . It couldn t skip the runtime but the runtime wouldn t necessarily have to do any checking for private methods . .. . That said there s no reason that a third-party couldn t deliberately call objc msgSendPrivate on an object outside of the implementation of that object and some things KVO for example would have to do that . In effect it would just be a convention and little better in practice than prefixing private methods selectors or not mentioning them in the interface header . To do so though would undermine the pure dynamic nature of the language . No longer would every method dispatch go through an identical dispatch mechanism . Instead you would be left in a situation where most methods behave one way and a small handful are just different . This extends beyond the runtime as there are many mechanisms in Cocoa built on top of the consistent dynamism of Objective-C . For example both Key Value Coding and Key Value Observation would either have to be very heavily modified to support private methods most likely by creating an exploitable loophole or private methods would be incompatible . Comment : +1 Objective-C is in some ways a big-boy language in which programmers are expected to exhibit a certain amount of discipline rather than getting slapped on the hand by the compiler runtime at every turn . I find it refreshing . For me restricting method visibility during compilation linking is sufficient and preferable . Comment : More python being obj-c-ic : . Guido was quite proactive in maintaining Python on NeXT systems including creating the 1st version of PyObjC . Thus ObjC did influence python somewhat . Comment : +1 for the interesting historic tale of the benevolent dictator for life and his crossings with the mythical NeXT system . Comment : Thank you . Python Java and Objective-C all have runtime object models that are pretty darned similar to SmallTalk . Java was quite directly derived from Objective-C . Python ran a parallel course more than one of inspiration but Guido certainly studied NeXTSTEP closely . Comment : Except I don t trust its license and I would definitely prefer clang to gcc . But it s a good first step for sure .", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : Objective-C doesn t support private methods because it doesn t need them . In C++ every method must be visible in the declaration of the class . You can t have methods that someone including the header file cannot see . So if you want methods that code outside your implementation shouldn t use you have no choice the compiler must give you some tool so you can tell it that the method must not be used that is the private keyword . In Objective-C you can have methods that are not in the header file . So you achieve the same purpose very easily by not adding the method to the header file . There s no need for private methods . Objective-C also has the advantage that you don t need to recompile every user of a class because you changed private methods . For instance-variables that you used to have to declare in the header file not anymore @private @public and @protected are available .", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : It s an issue with the runtime environment of Objective-C . While C C++ http : en.wikipedia.org wiki Objective-C Philosophical differences between Objective-C and C.2B.2B compiles down into unreadable machine code Objective-C still maintains some human-readable attributes like method names as strings http : osmorphis.blogspot.com 2009 05 reflection-in-objective-c.html . This gives Objective-C the ability to perform reflective http : en.wikipedia.org wiki Reflection 28computer science 29 features . EDIT : Being a reflective language without strict private methods makes Objective-C more pythonic in that you trust other people that use your code rather than restrict what methods they can call . Using naming-conventions like double underscores is meant to hide your code from a casual client coder but won t stop coders needing to do more serious work . Comment : And if consumers of your lib could reflect your private methods couldn t they call them too Comment : If they know where to look isn t that how people have been using undocumented libraries on the iPhone The issue with the iPhone is that you risk not having your app accepted for using any private API . Comment : If they access private methods through reflection they get what they deserve . Any errors are not your fault .", "Question : Objective-C has an amazing API https : developer.apple.com library mac documentation Cocoa Reference ObjCRuntimeRef index.html for reading and changing its own runtime environment but I can only find documentation for this API from Apple . Is the API only available on machines running a Darwin OS or is it actually part of Objective-C in general If its specific to Darwin is it at least available in the GNUstep framework http : www.gnu.org software gnustep Edit - What I m Looking for Specifically .. . .. . Specifically I am writing an XSD based serializer deserializer and I would like to be able to create modify class definitions based on XSD documents that are parsed during runtime in order to make the framework more intuitive . Comment : What particular functions of the Cocoa runtime do you wish to use that you are unable to find in the GNUstep runtime With such information people might be able to answer yes no alternative x is available etc . Edit your question . Comment : @CRD Well I m not sure what is available and what is not available from the GNUstep runtime . The only reference I could find to their particular runtime API features was this this link https : gcc.gnu.org onlinedocs gcc-4.3.3 gcc Objective 002dC.html Objective 002dC to the GCC Objective-C runtime features . Are you aware of more extensive documentation on GNUstep specific features Comment : Maybe start at Objective-C Compiler and Runtime FAQ http : wiki.gnustep.org index.php ObjC2 FAQ A few clicks from there gets you to at least to header-files with obvious similarity to Cocoa . Comment : @CRD Hmmm that s an interesting document . So it seems that the functions are only available if I install GNUstep and link against toil s ObjectiveC2 framework . By the way I added an edit to answer your original question . .. . Answer : All the versions of Objective-C that I ve seen have some facilities for mucking about with introspection and or dynamic generation of classes at runtime . The details will be different per different runtime and they may not all have feature parity example the apple runtime has blocks and that hasn t been ported everywhere . Comment : For Objective-C with GCC I could only find this list https : gcc.gnu.org onlinedocs gcc-4.3.3 gcc Objective 002dC.html Objective 002dC of supported runtime management features and it does not include dynamic generation of classes . TBH that s the feature I m really looking for too . Do they actually allow dynamic generation of classes and just not document it Comment : @WilliamRosenbloom that s the compiler capabilities . Look at the runtime api . gcc.gnu.org onlinedocs gcc https : gcc.gnu.org onlinedocs gcc Modern-GNU-Objective-C-runtime-API.html Modern-GNU-Objective-C-runtime-API", "Question : Looking at the Mac OS X 10.8 s version of the Objective-C runtime library source code http : opensource.apple.com source objc4 objc4-532.2 runtime I noticed that it s got a NSObject.mm http : opensource.apple.com source objc4 objc4-532.2 runtime NSObject.mm file . As its name suggests it s got the NSObject class implementation as well as built-in autorelease pool and retain count implementations . However versions of the ObjC runtime library prior to Mountain Lion s one didn t implement the NSObject class they didn t have a NSObject.mm file as you can see at the Mac OS X 10.7 s Objective-C runtime library source code http : opensource.apple.com source objc4 objc4-493.9 runtime for example . So does this really mean that the NSObject class is now part of the Objective-C runtime library instead of being a Foundation library component If yes why Is it to avoid one linking against the whole Foundation library with -framework Foundation when subclassing NSObject .. . Answer : strike NSObject has always been and still is a Foundation class . It was only with this iteration of the runtime that the implementation for it was open sourced don t ask me why the big fruit works in mysterious ways . Your original assumption of not linking against the entirety of foundation is flawed considering NSObject is deeply rooted in the C aspect of Objective-C and the runtime library which are linked implicitly and Foundation provides the root of a lot of classes that also interact with the C-side of things and the runtime . Think of Foundation as the bridge between C and ObjC rather than an extra framework to be linked against . strike .. . .. . NSObject as Peter said is still officially a foundation class however it was recently moved into the runtime library to allow the libDispatch libXPC guys to focus more on the ObjC side of things because they do use ObjC types in those libraries instead of having to patch up Core Foundation every time they needed to add something to their respective frameworks . via @Catfish Man", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : Essentially it has to do with Objective-C s message-passing form of method calls . Any message can be sent to any object and the object chooses how to respond to the message . Normally it will respond by executing the method named after the message but it could respond in a number of other ways too . This doesn t make private methods completely impossible Ruby does it with a similar message-passing system but it does make them somewhat awkward . Even Ruby s implementation of private methods is a bit confusing to people because of the strangeness you can send the object any message you like except for the ones on this list . Essentially Ruby makes it work by forbidding private methods to be called with an explicit receiver . In Objective-C it would require even more work since Objective-C doesn t have that option .", "Question : Objective-C has an amazing API https : developer.apple.com library mac documentation Cocoa Reference ObjCRuntimeRef index.html for reading and changing its own runtime environment but I can only find documentation for this API from Apple . Is the API only available on machines running a Darwin OS or is it actually part of Objective-C in general If its specific to Darwin is it at least available in the GNUstep framework http : www.gnu.org software gnustep Edit - What I m Looking for Specifically .. . .. . Specifically I am writing an XSD based serializer deserializer and I would like to be able to create modify class definitions based on XSD documents that are parsed during runtime in order to make the framework more intuitive . Comment : What particular functions of the Cocoa runtime do you wish to use that you are unable to find in the GNUstep runtime With such information people might be able to answer yes no alternative x is available etc . Edit your question . Comment : @CRD Well I m not sure what is available and what is not available from the GNUstep runtime . The only reference I could find to their particular runtime API features was this this link https : gcc.gnu.org onlinedocs gcc-4.3.3 gcc Objective 002dC.html Objective 002dC to the GCC Objective-C runtime features . Are you aware of more extensive documentation on GNUstep specific features Comment : Maybe start at Objective-C Compiler and Runtime FAQ http : wiki.gnustep.org index.php ObjC2 FAQ A few clicks from there gets you to at least to header-files with obvious similarity to Cocoa . Comment : @CRD Hmmm that s an interesting document . So it seems that the functions are only available if I install GNUstep and link against toil s ObjectiveC2 framework . By the way I added an edit to answer your original question . .. . Answer : Your updated question indicates you specifically wish to add modify class definitions . Following the reference Objective-C Compiler and Runtime FAQ http : wiki.gnustep.org index.php ObjC2 FAQ mentioned above in the comments we find about libobjc2 which is part of GUNStep and it s runtime.h https : github.com gnustep libobjc2 blob master objc runtime.h contains the method : .. . .. . for creating classes - this appears to be the same as the one in Cocoa . You might find Mike Ash s Creating Classes at Runtime in Objective-C https : www.mikeash.com pyblog friday-qa-2010-11-6-creating-classes-at-runtime-in-objective-c.html helpful . HTH", "Question : Is it possible to change an object s superclass at runtime If so how Comment : Have a look at stackoverflow.com questions 11221110 http : stackoverflow.com questions 11221110 my-isa-swizzling-breaks-kvo for an example of an isa swizzle . Comment : Also what do mean by the superclass of an object An object has no superclass . An object has a class and its class has a superclass . If you however alter the superclass of the class of the object all members of that class will be affected not only that single object . Comment : why superclass not current class what happen to the current class you have to think carefully first .. . Answer : It is definitely possible using ObjC runtime but it will be a bit hairy.. . This is a link-to Apple s docs : Objective-C Runtime http : developer.apple.com library mac documentation Cocoa Reference ObjCRuntimeRef Reference reference.html and an example of its usage : Objective-C Runtime Programming http : developer.apple.com library mac documentation Cocoa Conceptual ObjCRuntimeGuide Articles ocrtPropertyIntrospection.html .", "Question : I have an object in objective-c at runtime from which I only know the KVC key and I need to detect the return-value type e.g . I need to know if its an NSArray or NSMutableArray of this property how can I do that Comment : Where does the information in your XML file come from Would it be possible to add an entry to indicate the type of each property Comment : The xml file is also out of my control . I m creating an xml serializer which converts an xml file in an object structure . Of course the objects have to be available but I need sertain information about the object at runtime to fill in the data correctly . .. . Answer : You re talking about runtime property introspection which happens to be something that Objective-C is very good at http : developer.apple.com documentation Cocoa Conceptual ObjCRuntimeGuide Articles ocrtPropertyIntrospection.html . In the case you describe I m assuming you have a class like this : .. . .. . Which gets encoded in XML something like this : .. . .. . From this information you want to recreate the class and also give it an appropriate value for stuff . Here s how it might look : .. . .. . Apple s documentation linked above has all of the dirty details about what you can expect to see in propertyAttrs . Comment : Actually it would be equal to T@ NSArray Vstuff - Comment : Thank you you are absolutely right . I ve made the change Comment : Thanks this seems to be the best way I m going to try it . Btw . your example is quite near to what I m doing but it can be any xml file so my key is the element name . Comment : I take issue with the assessment that Objective-C is very good at property introspection . A good implementation would more closely resemble propArray object properties and return an array of property objects each with metadata describing the property in detail . Instead our property is a mysterious objc property t . To get it you have to take your prop name and pull the UTF8 version of it . The resultant descriptor is an arcane string which I have to parse myself Yes Objective-C lets you introspect properties but there is nothing about its implementation I would consider good . Comment : No not sour grapes . Objective-C is quite explicitly not designed with the intention of supporting this kind of formal at runtime dynamic behaviors based upon type introspection be it properties or other runtime introspection mechanisms . As Greg says the support for such is not good though for a different reason than he states it isn t good because such support was specifically not a consideration when designing the language or runtime .", "Question : I don t quite get the Objective-C selectors . The problem is : Where are Objective-C selectors stored How do Objective-C Compiler and Runtime System work so that they convert the method names into SEL .. . Answer : The same question was bothering me too for a while . So I ve looked into the runtime implementation . That s what I ve found : .. . .. . All the selectors are stored in a hash set . If you already have a registered selector it will be returned by the objc runtime using c functions sel getUid sel registerName if not registered it will be created by the same functions . Both of them have the same implementation behavior cause they are calling private function named sel registerName . Old runtime uses pointer to struct objc sel set to store values . New runtime uses pointer to struct NXMapTable : .. . .. . Hope this helps . Comment : I have little knowledge about the runtime system and how it works . Are the selectors stored in a hashSet which is created by the runtime And why the buckets are void in the new runtime but not the SEL", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : The easiest solution is just to declare some static C functions in your Objective-C classes . These only have file scope as per the C rules for the static keyword and because of that they can only be used by methods in that class . No fuss at all . Comment : Do these have to be defined outside the @implementation section Comment : @Rob - no they can and most likely should be defined inside your classes implementation .", "Question : I tested out some isa swizzling http : stackoverflow.com q 24050500 404201 with Swift and found that it only works when NSObject is a super-class directly or further up or by using the @objc decoration . Otherwise it will follow a static- and vtable-dispatch style like C++ . Is it normal to define a Swift class without a Cocoa NSObject base-class If it is I m concerned this means foregoing much of the dynamism of Objective-C such as method interception and run-time introspection . Dynamic run-time behavior sits at the heart of features like property observers Core Data Aspect Oriented Programming http : en.wikipedia.org wiki Aspect-oriented programming Higher Order Messaging http : en.wikipedia.org wiki Higher order message analytical logging frameworks and so on . Using Objective-C s style of method invocation adds around 20 machine code operands to a method call so in certain situations many tight calls to methods with small bodies C++ style static and vtable dispatch can perform better . But given the general 95-5 rule 95 of performance gains come from tuning 5 of the code doesn t it makes sense to start with the powerful dynamic features and harden where necessary Comment : Related : Does Swift support aspect oriented programming stackoverflow.com a 24137487 404201 http : stackoverflow.com a 24137487 404201 .. . Answer : It is normal . Look at the design goals of Swift : The goal is to make huge classes of programming problems disappear . Method swizzling is probably not one of the things that you want to do with Swift . Comment : Method swizzling is a way to achieve the intercept pattern at runtime . One of the uses for this is to apply cross-cutting concerns according to the principles of Aspect Oriented Programming . Apple s own notifications property observers built-in to swift core-data all use swizzling to good effect . . One of the things that enamored people to Objective-C despite its clunky syntax was this dynamism which makes it easy to provide elegant solutions whenever the intercept pattern is required . . in fact there was no formal AOP framework for Objc because the raw materials were so good . Comment : The fact that this is how it s done now does not mean that it is how it ll be done tomorrow . As you say notifications property observers delegates and similar are or may be provided natively . The language will evolve and we do not know in which direction . It has gained a lot in terms of support for functional-programming . But it does it in an unusual way so I have no idea how much is missing . Yet as far as we know they may be heading toward discouraging mutation and encouraging pure functional-programming . What if the future of the UI is reactive No way to know yet . Comment : Yes but all of these things depend on interception which can done two ways : compile-time C++ or runtime Ruby Objective-C Java via asm cglib ApsectJ etc . The modern languages tend to do it at runtime . People loved Objective-C because it behaved like a modern language despite being an old codger . Like you say the more of this that s baked into the language the better provided its done well . . but for now we can hook into the legacy provided by Objc Foundation which is why I hope extending NSObject becomes standard practice for everyday apps over the next few years .", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : The runtime could support it but the cost would be enormous . Every selector that is sent would need to be checked for whether it is private or public for that class or each class would need to manage two separate dispatch tables . This isn t the same for instance-variables because this level of protection is done at compile-time . Also the runtime would need to verify that the sender of a private message is of the same class as the receiver . You could also bypass private methods if the class used instanceMethodForSelector : it could give the returned IMP to any other class for them to invoke the private method directly . Private methods could not bypass the message dispatch . Consider the following scenario : .. . .. . 1 . A class AllPublic has a public instance method doSomething .. . .. . 2 . Another class HasPrivate has a private instance method also called doSomething .. . .. . 3 . You create an array containing any number of instances of both AllPublic and HasPrivate .. . .. . 4 . You have the following loop : .. . .. . for id anObject in myArray .. . anObject doSomething .. . .. . .. . If you ran that loop from within AllPublic the runtime would have to stop you sending doSomething on the HasPrivate instances however this loop would be usable if it was inside the HasPrivate class . Comment : I agree that there would be a cost involved . Perhaps it s not something you want on a handheld device . Can you support the enormous qualifier otherwise Would the cost really matter on a desktop system Comment : Haven t though at that but you may be right . Objective-C has run-time message dispatch vs . the compile-time method call of C++ so you would be talking about a compile-time check vs . a run-time check . Comment : It seems really strange that the main reason for not supporting private methods is due to performance . I think Apple simply didn t think private methods were very necessary whether or not there was a performance hit . Otherwise they should have chosen a different language for their multi-billion dollar company . Comment : Adding private methods wouldn t just complicate the implementation of the runtime it would complicate the semantics of the language . Access control is a simple concept in static languages but it s a bad match for dynamic-dispatch which would come with a lot of conceptual overhead and lead to many many why doesn t this work questions . Comment : What would private methods buy you really Objective-C is after all a C based language . Thus if someone has code running in your process they can easily p0wnz your process regardless of how private or obfuscated any API might be .", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : There are two answers depending on the interpretation of the question . The first is by hiding the method implementation from the interface . This is used typically with a category with no name e.g . @interface Foo . This permits the object to send those messages but not others - though one might still override accidentally or otherwise . The second answer on the assumption that this is about performance and inlining is made possible but as a local C function instead . If you wanted a private foo NSString arg method you would do void MyClass foo MyClass self NSString arg and call it as a C function like MyClass foo self arg . The syntax is different but it acts with the sane kind of performance characteristics of C++ s private methods . Although this answers the question I should point out that the no-name category is by far the more common Objective-C way of doing this .", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : The answers posted thus far do a good job of answering the question from a philosophical perspective so I m going to posit a more pragmatic reason : what would be gained by changing the semantics of the language It s simple enough to effectively hide private methods . By way of example imagine you have a class declared in a header file like so : .. . .. . If you have a need for private methods you can also put this in the implementation file : .. . .. . Sure it s not quite the same as C++ Java private methods but it s effectively close enough so why alter the semantics of the language as well as the compiler runtime etc . to add a feature that s already emulated in an acceptable way As noted in other answers the message-passing semantics -- and their reliance on runtime reflection -- would make handling private messages non-trivial . Comment : The problem with this approach is that someone can override private methods even unknowingly when they subclass your class . I suppose essentially you have to choose names that are unlikely to be overridden . Comment : Which feels like a hack on top of a hack to me . Comment : @Mike : Apple have stated that method names with leading underscores are explicitly reserved for Apple only : developer.apple.com mac library documentation Cocoa Conceptual http : developer.apple.com mac library documentation Cocoa Conceptual CodingGuidelines Articles NamingMethods.html apple ref doc uid 20001282-1003829 . The recommended alternative is to prefix with two capital letters and then an underscore . Comment : Also throw in your SSN after the method so other programmers know who wrote it . D Namespaces need them Comment : If you are worried about the methods you define being overridden you have not properly embraced the inherent levels of verbosity that Objective-C encourages.. .", "Question : I tested out some isa swizzling http : stackoverflow.com q 24050500 404201 with Swift and found that it only works when NSObject is a super-class directly or further up or by using the @objc decoration . Otherwise it will follow a static- and vtable-dispatch style like C++ . Is it normal to define a Swift class without a Cocoa NSObject base-class If it is I m concerned this means foregoing much of the dynamism of Objective-C such as method interception and run-time introspection . Dynamic run-time behavior sits at the heart of features like property observers Core Data Aspect Oriented Programming http : en.wikipedia.org wiki Aspect-oriented programming Higher Order Messaging http : en.wikipedia.org wiki Higher order message analytical logging frameworks and so on . Using Objective-C s style of method invocation adds around 20 machine code operands to a method call so in certain situations many tight calls to methods with small bodies C++ style static and vtable dispatch can perform better . But given the general 95-5 rule 95 of performance gains come from tuning 5 of the code doesn t it makes sense to start with the powerful dynamic features and harden where necessary Comment : Related : Does Swift support aspect oriented programming stackoverflow.com a 24137487 404201 http : stackoverflow.com a 24137487 404201 .. . Answer : Swift classes that are subclasses of NSObject : .. . .. . are Objective-C classes themselves .. . use objc msgSend for calls to most of their methods .. . provide Objective-C runtime metadata for most of their method implementations .. . .. . Swift classes that are not subclasses of NSObject : .. . .. . are Objective-C classes but implement only a handful of methods for NSObject compatibility .. . do not use objc msgSend for calls to their methods by default .. . do not provide Objective-C runtime metadata for their method implementations by default .. . .. . Subclassing NSObject in Swift gets you Objective-C runtime flexibility but also Objective-C performance . Avoiding NSObject can improve performance if you don t need Objective-C s flexibility . Edit : .. . .. . With Xcode 6 beta 6 the dynamic attribute appears . This allows us to instruct Swift that a method should use dynamic-dispatch and will therefore support interception . Comment : What kind of dispatch does Swift use instead of objc msgSend Is it static Comment : Swift may use objc msgSend dispatch virtual table dispatch direct dispatch or inlining . Comment : static : less then 1.1ns . vtable 1.1ns msgSend 4.9ns . . Depends on hardware of course . . It seems pure Swift makes a great language for system-level programming but for apps I d be reluctant to forego dynamic features though I d be happy if they moved to the compiler as-in Garbage Collection vs ARC . . . I ve heard it said that static dispatch allows for better branch-prediction and thus performance on multi-core sytems . True Comment : Swift Classes that are not subclasses of NSObject are Objective-C classes - can you provide a link-to where you found that stated Comment : using Cmmd + N to create a new Cocoa touch class I wasn t able to create a swift without having it not be an NSObject Subclass I mean the button Next was greyed out.. . So when you say not subclass of NSObject do you mean erasing the : NSObject from inside the Swift file itself", "Question : null .. . Answer : My problem is I don t know how many arguments there will be . How can I adjust the yoswag call to support various argument numbers It would be better if it could also support various return values . Comment : I removed the c tag and added the objective-c tag Comment : But dlsym is also a c function : D Comment : Yes but you are using objective-c APIs and methods so this is an objective-c question more than a C question . dlsym returns the address of the entry-point . How you call the entry-point with a dynamically selectable set of arguments is specific to the language which is not C .", "Question : I ve seen a number of strategies for declaring semi-private methods in Objective-C but there does not seem to be a way to make a truly private method . I accept that . But why is this so Every explanation I ve essentially says you can t do it but here s a close approximation . There are a number of keywords applied to ivars members that control their scope e.g . @private @public @protected . Why can t this be done for methods as well It seems like something the runtime should be able to support . Is there an underlying philosophy I m missing Is this deliberate Comment : Good question btw . Comment : To your edits : yes runtime enforcement would be very expensive for very little benefit . Compile-time enforcement would be a welcome addition to the language and is quite achievable . Yes it could be circumvented at runtime but that s fine . The programmer is not an enemy . The goal of scope is to help protect the programmer from error . Comment : You can t skip the runtime the runtime is what does message dispatch . Comment : There would be no way for a private method to short-circuit this check Did you mean circumvent - .. . Answer : A missing answer here is : because private methods are a bad idea from an evolvability point of view . It might seem a good idea to make a method private when writing it but it is a form of early-binding . The context might change and a later user might want to use a different implementation . A bit provocative : Agile developers don t use private methods .. . .. . In a way just like Smalltalk Objective-C is for grown-up programmers . We value knowing what the original developer assumed the interface should be and take the responsibility to deal with the consequences if we need to change implementation . So yes it is philosophy not implementation . Comment : Ah collecting clueless negative votes again Comment : I ve up-voted this because it doesn t deserve the down-vote . There is as Stephan says an argument that private methods are not necessary and it s similar to the arguments about dynamic vs static-typing in that whatever your preferred conclusion both sides have a point ." ] }
[ "yes-answer-long", "yes-answer-short" ]
runtime
UNK_RELATION
network-flow@directed-graph@53
network-flow -- a network-flow or flow network is a @placeholder with a capacity for each edge that can propagate a flow from a source to a sink .
{ "confidence": [ 78.40113067626953, 78.33216094970703, 73.21778869628906, 71.78475952148438, 71.18089294433594, 71.10076904296875, 70.0672378540039, 68.62349700927734, 68.03033447265625, 67.84739685058594, 67.52098846435547, 67.19046783447266, 66.64952087402344, 66.27959442138672, 65.96883392333984, 65.7087631225586, 65.47294616699219, 65.47294616699219, 65.47294616699219, 65.34346008300781, 64.88994598388672, 64.8607406616211, 64.79480743408203, 64.53580474853516, 64.44300842285156, 64.29603576660156, 63.45820617675781, 63.45691680908203, 62.818275451660156, 62.610870361328125, 62.40026092529297, 62.40026092529297, 61.73939514160156, 61.37418746948242, 60.96723175048828, 60.65610122680664, 60.60360336303711, 59.385345458984375, 59.24970245361328, 59.1083984375, 59.038841247558594, 58.985321044921875, 58.91100311279297, 58.73899841308594, 58.61603546142578, 58.61603546142578, 58.09104919433594, 58.071937561035156, 57.87165069580078, 57.23497009277344, 57.1692008972168, 56.495323181152344, 56.44910430908203, 56.397735595703125, 56.38270568847656, 56.220367431640625, 56.07443618774414, 55.966819763183594, 55.8792724609375, 55.795799255371094, 55.59674835205078, 55.53630828857422, 55.23583984375, 55.181068420410156, 55.161949157714844, 55.016075134277344, 55.00011444091797, 54.017601013183594, 54.017601013183594, 54.017601013183594, 54.017601013183594, 54.017601013183594, 53.96653747558594, 53.72361755371094, 53.70405578613281, 53.61803436279297, 53.58184814453125, 53.31162643432617, 53.20862579345703, 53.104530334472656, 52.90856170654297, 52.71804428100586, 52.584571838378906, 52.584571838378906, 52.584571838378906, 52.584571838378906, 52.584571838378906, 52.584571838378906, 52.48923110961914, 52.2679443359375, 52.254608154296875, 52.120765686035156, 52.120765686035156, 52.0751838684082, 51.9005126953125, 51.65480041503906, 51.60362243652344, 51.53651809692383, 51.46147918701172, 51.05619812011719 ], "content": [ "This is flow network having a maximum flow but not integer-valued .", "I believe maximum flow is quite clear as it means maximum amount of flow that can be transferred from source to sink in a network but what exactly is maximal flow .", "how is it a Maximum Network Flow problem", "The problem is considering time in the network-flow .", "To do the latter using reductions you need to reduce ILP to network-flow not reduce network-flow to ILP .", "You can do it with Network Flow .", "I have a flow network with gains .", "And why ILP cannot reduce to network-flow", "The solution is apparently using network-flow but I am not very familiar with network-flow .", "What I said was that reducing from ILP to network-flow is what you want in an NP-completeness proof of network-flow not the other way around .", "so what you mean is we can just reduce network-flow to ILP while we cannot reduce ILP to network-flow right", "I need to find a maximum flow in this network .", "In a given flow network G V E and a flow f an augmenting path p is a simple path from source s to sink t in the residual network Gf .", "This means that on the residual network there must exist a backward edge y x with capacity f and flow 0 .", "If you make it undirected the flow will be whatever the capacity of the edge is .", "Think of each flow that satisfies the capacity and preservation of flow requirements as a point .", "How does network-flow help you solve this", "I am currently reading on Network Flow algorithms .", "The maximum flow in a network has always the same value .", "I never said we cannot reduce from ILP to network-flow .", "We all know that the problem of network-flow can be reduced to linear-programming .", "Run another round of max-flow with source t1 and sink t2 in the residual network of step 1 .", "Either way Network Flow is the answer but edge-disjoint only is more obvious .", "Therefore such an edge must have flow capacity .", "However when we solve network-flow problem we need the flow to be integer all the time .", "However you might get a change in demand in the middle of your timeline for an existing flow network forcing you to change the flow in the network .", "Bellman-Ford Dijkestra Huffman and Network Flow .", "I think this problem can be formulated using network-flow .", "for that edge its max capacity - current flow 0 .", "Think how can Network Flow can be applied to this problem .", "So I think network-flow should be reduced to integer linear-programming .", "I am solving a classical network-flow problem with CPLEX using Java .", "It can be shown that the flow through a network is optimal if and only if it contains no augmenting path .", "Now you have single-source single-sink network and you can apply any min-cost max-flow algorithm to find the solution .", "I m curious to lean the network-flow approach to solve this problem .", "I m currently studying flow networks in the university and my professor presented this theorem to us : Given a flow network and a flow B in it so that for each vertex except the source and the sink : e : u v of B e - e : v u of B e .", "By reducing the wrong way you ve actually shown that you can solve network-flow in polynomial time if you could solve ILP in polynomial time which is true but useless since network-flow is in P .", "Suppose that there is a vertex u in S and a vertex v in T such that edge u v in the residual network has flow less than capacity .", "So the problem is : I m using gurobi to optimize a network-flow-model .", "@Margus as bach said i want to model my problem by network-flow not just solving any maximum network-flow problem or other mentioned problems in these links", "Because if you can find such a path where flow can be added from source to sink at each edge this means the total flow can at least be augmented with that amount .", "The integraloty theorem tells us that if all capacities in a flow network are integers then there is a maximum flow where every value is an integer .. . .. . But the most remarkable part is the existence not every maximum flow", "In the case of positive capacities however the initial zero flow is guaranteed to be both a legal flow and a flow that satisfies the capacity constraints .", "This maximum flow subtracted from the feasible flow will be a minimum flow .", "Flow through edge u v is less than its capacity .", "Flow through edge u v is equal to its capacity .", "Will the Ford-Fulkerson algorithm finds a maximum flow of a unit-capacity flow network all edges have unit capacity with n vertices and m edges in O mn time", "So a maximal flow would be one where you can t push any more flow to the target without lowering the flow on some edge and a maximum flow would be one that has the highest flow value possible .", "This flow value happens to be the max-flow .", "I think Network Flow is the answer but I have no idea why", "But I can find a good way to define edges between nodes and define their capacity till the answer of Network Flow problem be the answer of the original problem", "There is algorithm called Ford-Fulkerson algorithm which gives the maximum flow of a flow network in polynomial time you can look it up in the book Algorithm Design by Kleinberg and Tardos or even in CLRS .", "My understanding is that yes any current known reduction from ILP to network-flow is not polynomial time .", "In the literature the question would be : what is the best algorithm for finding the minimum cost flow of a single-source single-sink directed acyclic graph in which each edge has infinite capacity a non-zero lower-bound on flow and a cost equal to the lower-bound on flow .", "If you need to reconstruct the flow values for each edge do another round of max-flow to transport the excess t1 - excess t2 leftover units of flow back to the source .", "For an example : .. . .. . Think of a standard flow network where each node is a warehouse used for distributing an item which has an expiration date .", "For what it s worth network-flow can be done in polynomial time not just pseudopolynomial time .", "So I interested in finding the maximal gain of a network-flow what could be interpreted as finding a maximum flow at the maximum cost or gain .", "By the definition of residual network we may increase the flow on an edge u v of an augmenting path by up to a capacity Cf u v without violating constraint on whichever of u v and v u is in the original flow network G .", "Turn the feasible flow into a minimum flow by solving a max-flow problem .", "What is the difference between maximal flow and maximum flow .", "So f is the flow assignment in which the flow across each edge is just equal to the lower-bound", "We can start by the flow where the flow on all edges are zero this is a valid flow .", "Firstly you need to find maximum flow between source and sink and rememver it .", "a flow that satisfies flow rules and lower-bounds on flow but isn t necessarily a minimum flow .", "An optimal set of examinations is represented by the set of examination vertices reachable from S in the residual flow network .", "I m trying to find an efficient available algorithm preferably with implementation for solving maximum flow minimum cost in a generalized non-pure network-flow with gains upper bound value lower-bound value cost on every edges .", "Because of ILP which is NP-complete the network-flow problem should be NP-complete problem too .", "But this contradicts what we learned since the running time of network-flow is O Cm", "Is it because network-flow problem s running time is pseudo-polynomial time like knapsack-problem Wn", "Capacitated network all flows are in zero http : i.stack.imgur.com KkDF5.png After execution the the resulting flow is as follows", "I ve tried to do this problem with network-flow utilizing multiple sources and sinks but it does work correctly .", "If using Ford-Fulkerson method to get a maximum flow then the resulted flow must be integer-valued .. . .. . But we still can have a maximum flow that use real number as the flow value on the edges .. . .. . Check this example : .. . .. . s------A t .. . .. . the directions of edges all go from left to right and the s a has 1 flow and 1 capacity .. . .. . and rest of all all go with 0.5 flow and 1 capacity .", "As your problem is with the value of the flow and not with capacities any max-flow algorithm will work .", "When talking about Computing Network Flows The Algorithm Design Manual http : www.algorist.com says : .. . .. . Traditional network-flow algorithms are based on the idea of augmenting paths and repeatedly finding a path of positive capacity from s to t and adding it to the flow .", "Suppose you have computed a max-flow on a graph G and you know the flow through every edge in the graph .", "You need to find the maximum flow on the graph that has capacities equal to flow e - lower-bound e where flow e means flow from the feasible flow .", "They are supposed to do that only if there is no way to let it flow down to the sink .", "And for this path from source to sink you maintain minimum residual capacity which is the maximum flow you can pass-through that path .", "With negative capacities a flow assignment of all zeroes will not satifisy the capacity constraints so can t then be augmented into a maximum flow .", "You can model it as a flow from A to C commodity 1 and a flow from B to C commodity 2 .", "c e capacity of the given edge e .. . f e amount of flow going through given edge e .. . .. . The theorem states : .. . .. . If c e for all edges e in graph are integers then there exists a max-flow f for which every flow value f e is an integer .", "I suppose it have something to do with network-flow but I have no idea how to implement that .", "If I am not mistaken these notions are used interchangeably in the context of network flows as there is no flow which is locally maximal but not globally maximal .", "Use network-flow algorithm to solve assignments for maximizing number of jobs with given number of machines .", "I ve worked out a solution by greedy approach I m curious to learn network-flow approach .", "I m working on a system where I have a resource flow network which should consider time .", "The demand for this item is distributed through out the network at different points in time and a proper flow should be calculated .", "Therefore it is perfectly valid to have non-integer flow with integer capacity .", "Increase the capacity by one to restore the maximum flow .", "Here is an example where all capacities are integer with a maximum flow that has some edges that has non-integer flow. . .. . .. . G is the flow Graph I am working with. . N is a maximum integral flow. . N is a maximum flow where it has some edges has non-integer flow. . .. . .. . pair number on edges are of format : flow capacity .. . .. .", "IN is the incoming flow to the node .", "Why and how will flow change", "There are more interesting cases but consider this trivial one : .. . .. . The flow is zero regardless of the capacity of the edge .", "If you remove any edge with non-zero flow the global flow will always change .", "@AbhishekBansal treat t1 as a normal node and t2 as sink and proceed to do max-flow from new source to t2", "Two points are near each other if we can obtain one by increasing or decreasing the flow through a path from the source to the sink .", "Final state for the previous net http : i.stack.imgur.com 75tuA.png With this flow the flow value is 8 but the maximum is 9 as indicated by the flow of the figure below", "f will not be a legal flow meaning for a given node the incoming flow will not equal the outgoing flow .", "The max-flow must be less than or equal to the capacity of any cut ." ] }
{ "confidence": [ 100.12300109863281, 100.04827117919922, 91.718505859375, 91.46390533447266, 91.38987731933594, 90.95187377929688, 89.5076904296875, 86.6899185180664, 85.94935607910156, 85.82561492919922, 84.88707733154297, 84.86028289794922, 84.80055236816406, 82.03365325927734, 81.17838287353516, 81.04278564453125, 81.00151824951172, 80.63041687011719, 80.33208465576172, 78.67462158203125 ], "content": [ "Question : When talking about Computing Network Flows The Algorithm Design Manual http : www.algorist.com says : .. . .. . Traditional network-flow algorithms are based on the idea of augmenting paths and repeatedly finding a path of positive capacity from s to t and adding it to the flow . It can be shown that the flow through a network is optimal if and only if it contains no augmenting path . I don t understand what is augmenting paths . I have googled and found : .. . .. . Augmenting Path in Wolfram http : mathworld.wolfram.com AugmentingPath.html .. . .. . Flow network in Wiki http : en.wikipedia.org wiki Flow network .. . .. . etc . But they all reference to the quote above . Can anyone please really clearly explain what is Augmenting Paths Thanks .. . Answer : And how do you find out the augmenting path from source to sink Using modified version of BFS . You do BFS from source till you reach sink and you traverse an edge only if it has residual capacity i.e . for that edge its max capacity - current flow 0 . And for this path from source to sink you maintain minimum residual capacity which is the maximum flow you can pass-through that path . High level code snippet to get the idea :", "Question : When talking about Computing Network Flows The Algorithm Design Manual http : www.algorist.com says : .. . .. . Traditional network-flow algorithms are based on the idea of augmenting paths and repeatedly finding a path of positive capacity from s to t and adding it to the flow . It can be shown that the flow through a network is optimal if and only if it contains no augmenting path . I don t understand what is augmenting paths . I have googled and found : .. . .. . Augmenting Path in Wolfram http : mathworld.wolfram.com AugmentingPath.html .. . .. . Flow network in Wiki http : en.wikipedia.org wiki Flow network .. . .. . etc . But they all reference to the quote above . Can anyone please really clearly explain what is Augmenting Paths Thanks .. . Answer : Augmenting means increase-make larger . In a given flow network G V E and a flow f an augmenting path p is a simple path from source s to sink t in the residual network Gf . By the definition of residual network we may increase the flow on an edge u v of an augmenting path by up to a capacity Cf u v without violating constraint on whichever of u v and v u is in the original flow network G . Also the maximum amount by which we can increase the flow on each edge in an augmented path p is called the residual capacity of p . The proof can be found in the introduction to algorithms by thomas h . cormen etc.. .", "Question : I am practicing Algorithms problems from my book and came across this one : .. . .. . You are given a directed network G with n nodes and m edges a source s a sink t and a maximum flow f from s to t . Assuming that the capacity of every edge is a positive integer describe an O m + n time algorithm for updating the flow f in each of the following two cases . .. . i The capacity of edge e increases by 1 . .. . ii The capacity of edge e decreases by 1 . It seems like it would be as simple as walking through the network-flow edges and adjusting flows but I do not think it is really that simple . Wikipedia only give algorithms that are O n 2 m or O n m 2 . Any help or thoughts would be appreciated . .. . Answer : There is a solution here http : www.csc.kth.se utbildning kth kurser DD2354 algokomp10 Ovningar Exercise5 Sol.pdf . Suppose e is an edge between u and v . .. . .. . Increased capacity .. . .. . The idea for increasing the capacity is to simply do a DFS in the residual flow graph for a path from s to t . .. . .. . Decreased capacity .. . .. . If the edge is unsed in the maximum flow then you are done . Otherwise the idea is to see if there is an alternative path from u to v in the residual flow graph . This takes O n+m . If found then you can increase the maximum flow by 1 . Otherwise you need to decrease the flow . You do this by finding a path from u to s along which the flow can increase by 1 and a path from t to v along which the flow can increase by 1 . The increases are in a reverse direction so this reduces the flow from s to t .", "Question : When talking about Computing Network Flows The Algorithm Design Manual http : www.algorist.com says : .. . .. . Traditional network-flow algorithms are based on the idea of augmenting paths and repeatedly finding a path of positive capacity from s to t and adding it to the flow . It can be shown that the flow through a network is optimal if and only if it contains no augmenting path . I don t understand what is augmenting paths . I have googled and found : .. . .. . Augmenting Path in Wolfram http : mathworld.wolfram.com AugmentingPath.html .. . .. . Flow network in Wiki http : en.wikipedia.org wiki Flow network .. . .. . etc . But they all reference to the quote above . Can anyone please really clearly explain what is Augmenting Paths Thanks .. . Answer : A process of finding flows from source to sink iteratively . For e.g . in the case of Ford-Fulkerson algorithm initially all the flows on all the edges are Zero . On iteration we take the values for every path edge leading us to find flows called augmenting paths .", "Question : We have a directed Graph without weights G V E with two vertex s and t such that in-degree of s and out-degree of t are equals to 0 . we want to find maximum number of distinct-edges paths from s to t . by using which algorithm we can do this . Bellman-Ford Dijkestra Huffman and Network Flow . I think Huffman so irrelevant but how about others I think Network Flow is the answer but I have no idea why stackeeeers please help me Comment : What makes two paths distinct If they have no edges in common or must they also have no nodes in common Comment : Either way Network Flow is the answer but edge-disjoint only is more obvious . Comment : @IVlad now it s okey see edits . Comment : @DavidEisenstat okey now.. . .. . Answer : You can do it with Network Flow . It even tells you how on wikipedia http : en.wikipedia.org wiki Maximum flow problem : .. . .. . Maximum edge-disjoint path .. . .. . Given a directed-graph G V E and two vertices s and t we are to find the maximum number of edge-disjoint paths from s to t . This problem can be transformed to a maximum flow problem by constructing a network N V E from G with s and t being the source and the sink of N respectively and assign each edge with unit capacity . The intuition behind this is that the maximum flow algorithms basically solve your problem while finding the augmenting paths . What an augmenting path is is best explained in this SO question http : stackoverflow.com questions 10397118 graph-what-exactly-is-augmenting-paths I think by Ivaylo Strandjev http : stackoverflow.com users 812912 ivaylo-strandjev : .. . .. . An augmenting path is a simple path - a path that does not contain cycles - through the graph using only edges with positive capacity from the source to the sink . So the statement above is somehow obvious - if you can not find a path from the source to the sink that only uses positive capacity edges then the flow can not be increased by the way the proof of that statement is not that easy . Comment : is it possible to add a bit for augmenting paths I Google it but didn t understand . Comment : @HouraAsali I couldn t explain it any better than the answers here : stackoverflow.com questions 10397118 http : stackoverflow.com questions 10397118 graph-what-exactly-is-augmenting-paths Comment : wow I get it but why bellman-ford is not good Comment : @HouraAsali Bellman Ford is used for finding shortest paths in weighted graphs . First of all your question deals with an unweighted graph . Second Bellman Ford by itself cannot count the number of paths . Comment : wow I learn it.. . my last question is you wrote This problem can be transformed to a maximum flow problem by ... . okey and want to find which is it possible to make it clearer", "Question : I ve tried to solve a question about the maximum-flow problem http : en.wikipedia.org wiki Maximum flow problem . I have one source and two sinks . I need to find a maximum flow in this network . This part is general max-flow . However both targets have to get same amount of flow in this special version of the max-flow problem . Is there anyone who can help me what should I do to do that Comment : What is the reason of -1 Comment : Are you talking fluid analysis or computer network messages Comment : I would start with something along the lines of the same way you d do general max-flow except at each step find two augmenting paths one from the source to each target . Then add enough flow to both paths such that both targets still get the same amount of flow this is complicated a bit by non-edge disjoint graphs . I m not sure that doing this will actually result in the max possible for both targets . Comment : How is the question unclear It s very obvious what is asked IMHO . Actually in interesting problem . .. . Answer : Let s be your source vertex and t1 and t2 the two sinks . You can use the following algorithm : .. . .. . 1 . Use regular max-flow with two sinks for example by connecting t1 and t2 to a super-sink via edges with infinite capacities . You now have the solution with maximum excess t1 + excess t2 but it might be imbalanced . 2 . If excess t1 excess t2 you are done . Otherwise w.l.o.g . let excess t1 excess t2 .. . .. . 3 . Run another round of max-flow with source t1 and sink t2 in the residual network of step 1 . Restrict the flow outgoing from t1 to c floor excess t1 - excess t2 2 for example by introducing a super-source S connected to t1 via an edge with the given capacity c . Now excess t2 is the maximum flow you can send to both sinks . 4 . If you need to reconstruct the flow values for each edge do another round of max-flow to transport the excess t1 - excess t2 leftover units of flow back to the source . The complexity is that of your max-flow algorithm . If you already know how to solve max-flow with lower-bound capacities you can also binary-search the solution resulting in complexity O log W f where W is the solution value and f is the max-flow complexity . Comment : I m sorry its not clear how adding a super source to t1 will transfer the flow units to t2 . As far as I understand t1 will still remain a sink and transfer of flow from t1 to any other node will be impossible . Sorry again if I mis-understand . Comment : @AbhishekBansal treat t1 as a normal node and t2 as sink and proceed to do max-flow from new source to t2 Comment : to author : can you explain more explicitly about step 4 Comment : @KudayarPirimbaev t1 has all its edges as incoming edges since it is a sink . How can it be considered a normal node Comment : @AbhishekBansal i think it is assumed that graph is bidirectional in your case i guess you need to reverse directions of all edges to t1 except the one from new source try like that i m not sure", "Question : When talking about Computing Network Flows The Algorithm Design Manual http : www.algorist.com says : .. . .. . Traditional network-flow algorithms are based on the idea of augmenting paths and repeatedly finding a path of positive capacity from s to t and adding it to the flow . It can be shown that the flow through a network is optimal if and only if it contains no augmenting path . I don t understand what is augmenting paths . I have googled and found : .. . .. . Augmenting Path in Wolfram http : mathworld.wolfram.com AugmentingPath.html .. . .. . Flow network in Wiki http : en.wikipedia.org wiki Flow network .. . .. . etc . But they all reference to the quote above . Can anyone please really clearly explain what is Augmenting Paths Thanks .. . Answer : An augmenting path is a simple path - a path that does not contain cycles - through the graph using only edges with positive capacity from the source to the sink . So the statement above is somehow obvious - if you can not find a path from the source to the sink that only uses positive capacity edges then the flow can not be increased by the way the proof of that statement is not that easy . Comment : I d like to add to this that an augmented path is also a simple path meaning it contains no cycles which may be a crucial detail in some proofs .", "Question : null .. . Answer : suppose we are given a network which Node A sends 2 packet to Node B and for security reasons we want these two packets get different paths to reach Node B.How can I use Maximum Network Flow to determine is it possible in a given Network I guess I should consider all capacities one and if two packets have to pass-through common edge the maximum Network Flow will be 1 and the given Network won t be able to do this task else it is capable.But I m not sure is it true to consider a Capacity for all edges Comment : You might want node capacities of 1 . Comment : do you mean instead of capacity for edge i use capacity for nodes how is it a Maximum Network Flow problem Comment : stackoverflow.com a 27463037 2144669 http : stackoverflow.com a 27463037 2144669 Comment : thanks complete answer", "Question : Let G s t c be a flow network and let F be the set of all edges e for which there exists at least one minimum-cut A B such that e goes from A to B . Give a polynomial time algorithm that finds all edges in F . .. . .. . NOTE : So far I know I need to run Ford-Fulkerson so each edges has a flow . Furthermore I know for all edges in F the flow f e c e . However not all edges in a graph G which respects that constraint will be in a min-cut . I am stuck here . .. . Answer : Suppose you have computed a max-flow on a graph G and you know the flow through every edge in the graph . From the source vertex s perform a Breadth First Search OR Depth First Search on the original graph and only traverse those edges that have flow less than the capacity of the edge . Denote the set of vertices reachable in this traversal as S and unreachable vertices as T . To obtain the minimum-cut C we simply find all edges in the original graph G which begin at some vertex in S and end at some vertex in T . This tutorial http : community.topcoder.com tc module Static d1 tutorials d2 maxFlow in Topcoder provides an explanation proof of the above algorithm . Look at the section beginning with the following text : .. . .. . A cut in a flow network is simply a partition of the vertices in two sets let s call them A and B in such a way that the source vertex is in A and the sink is in B . .. . .. . I shall attempt to provide an explanation of the corresponding section in the Topcoder tutorial just for me to brush up on this as well . Now suppose that we have computed a max-flow on a graph G and that we have computed the set of edges C using the procedure outlined above . From here we can conclude several facts . Fact 1 : Source vertex s must be in set S and sink vertex t must be in set T . Otherwise vertices s and t must be in the same set which means that we must have found a path from s to t consisting only of edges that have flow less than capacity . This means that we can push more flow from s to t and therefore we have found an augmenting path However this is a contradiction since we have already computed a max-flow on the graph . Hence it is impossible for source vertex s and sink vertex t to be connected and they must be in different sets . Fact 2 : Every edge beginning at set S and ending at set T must have flow capacity .. . .. . Again we prove this by contradiction . Suppose that there is a vertex u in S and a vertex v in T such that edge u v in the residual network has flow less than capacity . By our algorithm above this edge will be traversed and vertex v should be in set S . This is a contradiction . Therefore such an edge must have flow capacity . Fact 3 : Removing the edges in C from graph G will mean that there is no path from any vertex in set S to any vertex in set T .. . .. . Suppose that this is not the case and there is some edge u v that connects vertex u in set S to vertex v in set T . We can separate this into 2 cases : .. . .. . 1 . Flow through edge u v is less than its capacity . But we know this will cause vertex v to be part of set S so this case is impossible . 2 . Flow through edge u v is equal to its capacity . This is impossible since edge u v will be considered as part of the edge set C . Hence both cases are impossible and we see that removing the edges in C from the original graph G will indeed result in a situation where there is no path from S to T . Fact 4 : Every edge in the original graph G that begins at vertex set T but ends at vertex set S must have a flow of 0 .. . .. . The explanation on the Topcoder tutorial may not be obvious on first reading and the following is an educated guess on my part and may be incorrect . Suppose that there exists some edge x y where x belongs-to vertex set T and y belongs-to vertex set S such that the flow through x y is greater than 0 . For convenience we denote the flow through x y as f . This means that on the residual network there must exist a backward edge y x with capacity f and flow 0 . Since vertex y is part of set S the backward edge y x has flow 0 with capacity f 0 our algorithm will traverse the edge y x and place vertex x as part of vertex set S . However we know that vertex x is part of vertex set T and hence this is a contradiction . As such all edges from T to S must have a flow of 0 . With these 4 facts along with the Max-flow min-cut theorem http : en.wikipedia.org wiki Max-flow min-cut theorem we can conclude that : .. . .. . 1 . The max-flow must be less than or equal to the capacity of any cut . By Fact 3 C is a cut of the graph so the max-flow must be less than or equal to the capacity of cut C . 2 . Fact 4 allows us to conclude that there is no back flow from T to S . This along with Fact 2 means that the flow consists entirely of forward flow from S to T . In particular all the forward flow must result from the cut C . This flow value happens to be the max-flow . As such by the Max-flow min-cut theorem we know that C must be a minimum-cut .", "Question : What algorithm should I use to find the minimum flow on a digraph where there are lower bounds but not upper bounds on flow Such as this simple example : .. . .. . Diagram of simple example . Source : jwezorek.com wp-content uploads 2013 09 min flow.png http : i.stack.imgur.com XVqf6.png .. . .. . In the literature this is a minimum cost flow problem . In my case however the cost is the same as a nonzero lower-bound on the flow required on each edge so I worded the question as above . In the literature the question would be : what is the best algorithm for finding the minimum cost flow of a single-source single-sink directed acyclic graph in which each edge has infinite capacity a non-zero lower-bound on flow and a cost equal to the lower-bound on flow . From my research it seems that the main way people deal with any kind of minimum cost of any kind of network is to set the problem up as a LP-type problem https : en.wikipedia.org wiki LP-type problem and solve that way . My intuition however is that not having upper bounds on flow i.e . having edges with infinite capacites makes the problem easier so I was wondering if there is an algorithm specifically targeting this case using more graphy techniques than the simplex method et . al . I mean if all the costs and lower bounds are 1 as in the above.. . we are then looking for a flow that covers all edges obeys flow rules and isn t pushing too much flow through any path from s to t . This just feels like it shouldn t require an LP solver to me and indeed the Wikipedia article on min cost flows states that if the capacity constraint is removed the problem is reduced to the shortest-path problem but I think they are talking about the case in which the lower bounds are all zero . Also is there open-source C C++ code for minimum cost flow anywhere From googling what is available I find that I can either set the problem up as an LP problem myself and solve with an open-source LP solver or I could use LEMON which provides several algorithms for min-cost flow . The boost-graph library does not include an implementation as far as I can tell . Is there anything else Comment : nice star on the title lol Comment : I don t actually know where that star came from.. . .. . Answer : Add all the lower bounds of the flows on each edge : any feasible solution will need that anyway . For each node n in the topological order i.e . following the edges from the sink t if the sum S- of what goes in the edge is greater that the sum S+ of what goes out then add the flow S+ - S- on all edges of the shortest-path between s and t construct the list of shortest-path while doing this for efficiency . Then you have a minimal assigment in the sense that it is needed in every feasible solution such as S+ - S- is nonnegative at each node and the minimal capacity is satisfied on each edge . The problem then reduce to a multiflow problem on the same graph structure : .. . .. . the source is the same .. . there are no capacity limit .. . every node where S+ - S- is strictly positive becomes a sink with required flow S+ - S- . the initial sink which had a required flow F becomes a sink with flow F - S- if F-S- is nonnegative otherwise the initial constraint will be satisfied by any solution . Edit : for your problem the graph looks like this .. . .. . with minimal capacities 1 for each edge and I suppose there is no minimal flow required at the sink t . First assign 1 to each edge . The difference S+ - S- for each node except of course s and t is : .. . .. . the only negative one is for x4 we add 1 to every edge on the shortest-path from x4 to t in that case to the edge x4 t . Now S+ - S- is non-negative for every node and positive only for x1 the problem reduce to a multiflow problem in that case it is a simple flow problem where the requested flow is 1 at x1 and the source is still s . Comment : So f is the flow assignment in which the flow across each edge is just equal to the lower-bound Comment : f will not be a legal flow meaning for a given node the incoming flow will not equal the outgoing flow . Therefore merely augmenting f along the shortest-path from s to t is not going to necessarily result in a legal flow . What about nodes of f where conservation of flow is not satisfied that are not on the shortest-path for example . Comment : Yes you are right . I try to adapt the solution right now I will edit the answer if it works . Comment : See my edited answer it should work with this algorithm Comment : I m not following sorry .. . for the example problem I posted a diagram of what would the minimal assignment look like and what multiflow problem would it yield Can you post a diagram of the step of the algorithm you propose -- I could figure it out from that .", "Question : What algorithm should I use to find the minimum flow on a digraph where there are lower bounds but not upper bounds on flow Such as this simple example : .. . .. . Diagram of simple example . Source : jwezorek.com wp-content uploads 2013 09 min flow.png http : i.stack.imgur.com XVqf6.png .. . .. . In the literature this is a minimum cost flow problem . In my case however the cost is the same as a nonzero lower-bound on the flow required on each edge so I worded the question as above . In the literature the question would be : what is the best algorithm for finding the minimum cost flow of a single-source single-sink directed acyclic graph in which each edge has infinite capacity a non-zero lower-bound on flow and a cost equal to the lower-bound on flow . From my research it seems that the main way people deal with any kind of minimum cost of any kind of network is to set the problem up as a LP-type problem https : en.wikipedia.org wiki LP-type problem and solve that way . My intuition however is that not having upper bounds on flow i.e . having edges with infinite capacites makes the problem easier so I was wondering if there is an algorithm specifically targeting this case using more graphy techniques than the simplex method et . al . I mean if all the costs and lower bounds are 1 as in the above.. . we are then looking for a flow that covers all edges obeys flow rules and isn t pushing too much flow through any path from s to t . This just feels like it shouldn t require an LP solver to me and indeed the Wikipedia article on min cost flows states that if the capacity constraint is removed the problem is reduced to the shortest-path problem but I think they are talking about the case in which the lower bounds are all zero . Also is there open-source C C++ code for minimum cost flow anywhere From googling what is available I find that I can either set the problem up as an LP problem myself and solve with an open-source LP solver or I could use LEMON which provides several algorithms for min-cost flow . The boost-graph library does not include an implementation as far as I can tell . Is there anything else Comment : nice star on the title lol Comment : I don t actually know where that star came from.. . .. . Answer : Writing a solver is non-trivial . See the LEMON library part of COIN-OR . It has a number of highly optimized algorithms for the min cost flow problem . You can choose which algorithm works best on your data . See http : lemon.cs.elte.hu trac lemon for information about LEMON . See http : lemon.cs.elte.hu pub doc 1.3 a00607.html for details about min cost network-flow .", "Question : What is the difference between maximal flow and maximum flow . I am reading these terms while working on Ford Fulkerson algorithms and they are quite confusing . I tried on internet but couldn t get a reasonable answer . I believe maximum flow is quite clear as it means maximum amount of flow that can be transferred from source to sink in a network but what exactly is maximal flow . Please answer in layman terms if possible . Thanks . Comment : Maximal is usually used in the sense I can t add to this anymore . Maximum means there is nothing larger than this . So a maximal flow would be one where you can t push any more flow to the target without lowering the flow on some edge and a maximum flow would be one that has the highest flow value possible . Also cross posting http : math.stackexchange.com questions 752644 what-is-the-difference-between-maximal-flow-and-maximum-flow is discouraged . Comment : Thanks for answer . Ok I didn t knew about the rules of cros posting will keep in mind Comment : If you re in doubt on which site to post every site of the stackexchange network has a help center http : stackoverflow.com help that has a section on What question can i ask here http : stackoverflow.com help on-topic Comment : If I am not mistaken these notions are used interchangeably in the context of network flows as there is no flow which is locally maximal but not globally maximal . Comment : @Codor It s possible that in the context of flows the two are used interchangably I m not sure about that . .. . Answer : Short answer : .. . .. . Think about the top of the mountains each of them is a maximal solution there is not place nearby that is higher than them but only the top of the Everest mountain has the maximum height and is therefore the maximum solution . Longer answer : .. . .. . Let me explain it in geometric terms : think about a plane e.g . a large peace of paper . Each point on the plane is a possible solution for the problem . The height of each point is the quality of the solution corresponding to that point . In optimization we want to find the optimal solution i.e . the highest point on the plane . One idea to find the optimal solution is to start from a possible solution in the plane and improve it little by little : each time we move from a point to one near it which is higher . This is called a local search algorithm . This process stops when we reach a point which is higher than all points near it . Such a point is called a local optimum . The corresponding solution is called maximal as we cannot increase the quality of the solution by moving to any solution near it . However a maximal solution doesn t need to be the optimal solution it is optimal in comparison to its neighbors . There are common conditions which if satisfied we will not have local optimals on the plane which are not globally optimals . In such situations we can use local search algorithms to find the optimal solution . One such condition is if the plane of solutions is convex intuitively for every two points we have all points on the line connection them also in the solution space and the quality of each of them can be determined from the relative distance of the point to the two endpoints and the quality of the two endpoints . Optimization over convex spaces is studied in convex-optimization https : en.wikipedia.org wiki Convex optimization . Now lets go back to the max-flow problem . Fix a graph as input . Think of each flow that satisfies the capacity and preservation of flow requirements as a point . We call these valid flows . We want to find a maximum flow . Two points are near each other if we can obtain one by increasing or decreasing the flow through a path from the source to the sink . We can start by the flow where the flow on all edges are zero this is a valid flow . At each step we find a path from the source to the sink in the updated remaining capacity graph the weight of each edge is the amount of its capacity that is not being used somehow e.g . using BFS and increase the flow by adding this . This gives us a local search algorithm . The problem is that the space of solutions is not convex and we may end up with a flow that we cannot increase any more but it is not a maximum flow . What can we do One idea is to change the space of solutions to a convex one . For intuition think about a-star on a plane . The points inside the star do not make a convex space but we can turn it into a convex space by including more points in our solution space and turning it into a pentagon . This is essentially what we do by consider the existing flow on the original edges of the graph as new edges called residual edges where flow over them corresponds to decreasing the existing flow on the original edges . This makes the space convex and our local search algorithm does not get stuck on solutions which are locally optimal but not globally optimal . Comment : ps : you may want to post your algorithms question on Computer Science http : cs.stackexchange.com . :", "Question : Can somebody please help me out with this problem The solution is apparently using network-flow but I am not very familiar with network-flow . How does network-flow help you solve this A crab is an undirected graph which has two kinds of vertices : 1 head and K feet and exactly K edges which join the head to each of the legs . 1 K T where T is given .. . .. . Given an undirected graph you have to find in it some vertex-disjoint subgraphs where each one is a crab . The goal is to select those crabs in such a way that the total number of vertices covered by them is maximized . Note : two graphs are vertex-disjoint if they do not have any vertex in common . ex . input Comment : Everyone please be aware that this is an active challenge on the HackerRank contest site https : www.hackerrank.com challenges crab-graphs . .. . Answer : Solving the above problem by vertex cover approach results in exponential tim algorithm but this can be solved by maximizing flows using Ford Fulkerson algorithm Above problem can be solved using Ford Fulkerson . 1 . Create a path from source 0 to all nodes of the graph with capacity t . .. . 2 . Create a path from from all nodes to target 1 with capacity 1 . 3 . Find a max-flow of the above modified graph using Ford Fulkerson . Ford Fulkerson Algorithm to find max-flow in the given Graph .. . .. . 1 . Find a path from source to target in the graph . 2 . Find the minimum flow along the path . 3 . Increase the flow of all edges along the path by min flow calculated above .. . 4 . Store the min flow of the path . Repeat the above 4 steps till no augmenting path possible . Explanation for Ford Fulkerson Alogrithm .. . .. . Chose one possible path and identify the edge with the smallest capacity . Record this number Substract this number from each number on that path . This is the new capacity for each arc long the path . Chose another route and repeat step 1 once again record the smallest capacity . Repeat untill all possible path are exhausted . Add the smallest capacities of all routes . This is the minimum carrying capacity of the network .. . .. . Reference .. . .. . http : anandtechblog.blogspot.in search label Ford 20Fulkerson 20algorithm Comment : Which nodes are the source and the target How does the resulting flow relate to the number of crabs Comment : That doesn t make sense to me . If you modify the graph like this then max-flow will be always number of nodes . Comment : Why is the max-flow algorithm explained here I can look that up I m interested in the crab graph solution . : It doesn t explain how to solve the crabs problem . Why is this answer accepted Comment : This is one of the most misleading answers I have ever seen on StackOverflow . Please read the answer from machaxX .", "Question : I ve searched stackoverflow and google but I haven t found someone with quite the same type of problem . Optimal distribution of power plants on a city http : stackoverflow.com questions 16122077 optimal-distribution-of-power-plants-on-a-city seemed like the closest solution to this problem but I believe my problem is simplier than the question there and therefore would have a better solution than bruteforce . The problem is this : I have 9 cities each producing power and using power . Each city is connected to the other 8 cities . How can I determine the best way to send excess power to the cities that need it with the minimum amount of energy transfered I ve tried to do this problem with network-flow utilizing multiple sources and sinks but it does work correctly . Thanks Comment : Assume each city is producing x amount of energy and using y if x y than that city is just producing x-y energy if not than is using right so you can do this trick after that you will have only cities that produces exclusivly or uses energy.. . than may be to run maximum flow for all positive vertexes Comment : What do you mean the best way How you define which way is better Comment : Maybe you want a min-cost flow Comment : I added a line to qualify best -- The minimum amount of energy needed to power the entire system . Comment : If a city can produce power p1 but needs p2 where p2 p1 then p2 - p1 power must be transfered to that city . Find the sum over all cities that cannot produce as much power as they need . That is how much power has to be transfered from cities with excess power . You cannot transfer less and power all cities there is no need to transfer more . Where is the difficulty Are there capacity limits or costs you have not told us about .. . Answer : Look at this article http : www.cs.cmu.edu ckingsf bioinfo-lectures flowext.pdf . That is how you can reduce your problem to min-cost max-flow . For every city calculate demand d as usage - production . Group cities by d 0 d 0 and d 0 . Let all connections have infinite capacity . Then add two new nodes sink and source . Add edges between source and d 0 nodes with capacity d . Add edges between d 0 and sink nodes with capacity d . Now you have single-source single-sink network and you can apply any min-cost max-flow algorithm to find the solution . Comment : Holy...That works perfectly Thank you", "Question : Will the Ford-Fulkerson algorithm finds a maximum flow of a unit-capacity flow network all edges have unit capacity with n vertices and m edges in O mn time .. . Answer : O M f is a known running time estimation for Ford-Fulkerson on graphs with integer capacities where M is the number of edges and f the value of maximal flow just because it is easy to find augmenting paths in O E each and each such path increases the flow by at least 1 . If your graph has no duplicate edges that is there is no pair of edges that has the same start and end vertices and each edge has unit capacity then the the maximal flow f is no more than the number of vertices N just because there is no more than N-1 edges going from the source and therefore the complexity is indeed O N M . However if your graph is allowed to have duplicate edges but still each edge has capacity of 1 then f can be bigger than N and up to M and the time-complexity can become O M M and it is not difficult to come with an example where such complexity takes place .", "Question : The integraloty theorem tells us that if all capacities in a flow network are integers then there is a maximum flow where every value is an integer .. . .. . But the most remarkable part is the existence not every maximum flow Which means this statement doesn t claim every maximum flow is integer-valued .. . .. . I cannot figure out why if all capacities are integer but there exists a maximum flow is not integer-valued Or did I just get wrong idea of this theorem that tries to tell me .. . Answer : If using Ford-Fulkerson method to get a maximum flow then the resulted flow must be integer-valued .. . .. . But we still can have a maximum flow that use real number as the flow value on the edges .. . .. . Check this example : .. . .. . s------A t .. . .. . the directions of edges all go from left to right and the s a has 1 flow and 1 capacity .. . .. . and rest of all all go with 0.5 flow and 1 capacity . This is flow network having a maximum flow but not integer-valued .", "Question : I am studying the analysis of algorithms . I am currently reading on Network Flow algorithms . I am considering an application of Network Flow algorithms concerning finding bipartite matchings of minimum cost . Let G with corresponding Network Flow G .. . Let M be a perfect matching in G .. . Let G sub M sub be the residual graph associated with this matching .. . .. . From Jon Kleinberg and Eva Tardos Algorithm Design http : www.aw-bc.com info kleinberg 7.13 on page 406 .. . .. . Theorem 7.62 states : .. . .. . 7.62 Let M be a perfect matching . If there is a negative-cost directed cycle C in GM then M is not minimum cost .. . .. . This theorem makes sense however I am confused as to how a bipartite flow network s residual graph of a perfect matching can actually contain a cycle . The only way I could see a cycle is if the sink or source were involved . However in a perfect matching the source would contain no edges leaving it and the sink would contain no edges entering it . Also a cycle occurring in the inner nodes would seem to contradict the definition of a Bipartite graph . Can someone provide an example of such a cycle in the residual graph .. . Answer : Sure . Consider the graph where a cost and c capacity : .. . .. . So there are obviously 2 possible max flows . One uses the horizontal edges and the other the diagonals . For the flow along the horizontals we have a residual graph : .. . .. . Notice the cycle B- A- D- C with capacity 1 and cost -3 + 1 -3 + 1 -4 . The intuitive explanation for this cycle is that every increase in flow of one unit going along the edges in the cycle - or conversely every decrease in flow going along its edges in the opposite direction - we will decrease total cost of flow by 4 because we will be substituting flow along the cheaper diagonal edges for flow along the comparatively expensive horizontal edges . In the augmenting path algorithm for min cost flow we d go ahead and push 1 unit of flow along this cycle and end up with a new cheaper flow along the diagonals . This would provide the new residual graph : .. . .. . Now the cycle is A- B- C- D and has cost 3 - 1 + 3 - 1 4 so the max-flow along diagonals is a min cost max-flow . Comment : Very well explained along with good graphical example . Thank You .", "Question : Can somebody please help me out with this problem The solution is apparently using network-flow but I am not very familiar with network-flow . How does network-flow help you solve this A crab is an undirected graph which has two kinds of vertices : 1 head and K feet and exactly K edges which join the head to each of the legs . 1 K T where T is given .. . .. . Given an undirected graph you have to find in it some vertex-disjoint subgraphs where each one is a crab . The goal is to select those crabs in such a way that the total number of vertices covered by them is maximized . Note : two graphs are vertex-disjoint if they do not have any vertex in common . ex . input Comment : Everyone please be aware that this is an active challenge on the HackerRank contest site https : www.hackerrank.com challenges crab-graphs . .. . Answer : Think how can Network Flow can be applied to this problem . It should be something like that a flow passes from head of the crab to its feet . And flow coming to the head should be having a value equivalent to number of feet and each edge from head to feet of crab should have capacity one . How can we achieve that It is definitely tough to come to this by oneself but I hope after seeing the example multiple times you can get the hang of this . We have to create a new graph where original vertices are duplicated . One set can give every vertex to have a chance of being head and other set can act as feet . Keeping this in mind the precise algo can be written as following : - .. . .. . The image below can give a decent idea of how the graph forms . New Graph formation http : i.stack.imgur.com 1EiTx.jpg .. . .. . Explanation of point 3 : - every vertex in the headset should be connected with source with capacity min t degree because if we would to like to have a max-flow at this edge to be as large as T not more than that because because crab cannot have more than t feet and value of capacity here is also limited by degree of vertex to which 0 is connected . A head cannot have more feet than its degree . Explanation of point 4 : - To ensure pairs are disjoint so that each vertex come only in one crab every feet is connected with capacity 1 to the target 10 in figure . I can post the code if it is required .", "Question : I have an edge-weighted undirected graph and 2 nodes often called source and sink . I need to find a set of edges of minimum possible weight which separates these 2 nodes into 2 weak components . I know about Ford-Fulkerson s maximum flow algorithm https : en.wikipedia.org wiki Ford E2 80 93Fulkerson algorithm and his theorem about maximum flow and minimum-cut relation https : en.wikipedia.org wiki Max-flow min-cut theorem on directed graphs . I also know about a modification of Ford-Fulkerson s maximum flow algorithm for undirected graphs which replaces each undirected edge with 2 opposite directed edges and updates flow to both of them simultaneously . But with this modification the max-flow-min-cut-theorem seems to not be valid anymore because on the following undirected graph the minimum-cut will not be determined correctly : .. . .. . The max-flow-min-cut theorem says minimum-cut are those edges which flow is equal to their capacity and by the modified Ford-Fulkerson that s all the edges which is obviously not the correct cut . I found a Stoer Wagner algorithm for finding a global minimum-cut https : en.wikipedia.org wiki Stoer E2 80 93Wagner algorithm in undirected graph but that s quite not the thing i want since this algorithm doesn t consider any source and sink and can find a cut which lets the nodes be in the same component . Is there any algorithm which can efficiently find a minimum-cut in an undirected graph with source and sink separating these 2 specified nodes Can i maybe somehow modify the previously mentioned algorithms to make them working for my case Comment : How about converting your graph to a directed-graph by replacing each undirected edge by 2 edges for each direction Comment : @SamSegers : That works for flows but won t work for cuts anymore i will try to put more info about this into question .. . Answer : You can use some modification of the Ford-Fulkerson s algorithm . 1 . Firstly you need to find maximum flow between source and sink and rememver it . 2 . Remove some edge from the graph . 3 . Then you need to find maximum flow in the new graph . If maximum flow is not the same as on step one then this edge is in the minimal cut . 4 . Return edge to the graph choose some another edge and go to step 2 . When you finding maximal flow just consider undirected edge as two directed edges with same capacity . Comment : I don t think this will work . If you remove any edge with non-zero flow the global flow will always change .", "Question : I m working on a system where I have a resource flow network which should consider time . For an example : .. . .. . Think of a standard flow network where each node is a warehouse used for distributing an item which has an expiration date . Additionally transporting an item from one node to another also takes time so when an item is sent from the source the time before it reaches the sink should be minimized . The network contains sources suppliers and sinks customers and additionally nodes warehouses might have stock if an item already . The demand for this item is distributed through out the network at different points in time and a proper flow should be calculated . However you might get a change in demand in the middle of your timeline for an existing flow network forcing you to change the flow in the network . When doing so i would like to avoid having to re-calculate everything from the beginning but instead just make subtle changes to the network so that it can take the new demand into account . I ve looked at standard flow algorithms and have a hard time finding anything that considers time in the same way . I m looking for something that might be able to push me in the right direction . Does anyone know of any algorithms that address this kind of problem or something similar Or have any suggestions for a good data-structure for handling the time aspect .. . Answer : There are a lot of algorithms for this kind of problems : .. . .. . Dijkstra - in your case : edge cost time to send information from a node to another if you don t know this kind of info you can use Dijkstra to calculate the shortest-path and consider the shortest-path is the fastest to . Complexity : O V lg V + E - where V vertices and E edges .. . .. . A - if you are sure you have many unpredictable changes you can find a good heuristic function for your problem . I find A pretty difficult to implement but it has a good complexity . Bellman-Ford Johnson - this may help too .. . .. . Maybe you can find something useful here : https : www.sics.se seif DistributedAlgorithms routing.pdf .. . .. . or .. . .. . http : page.math.tu-berlin.de skutella WAOA09-lncs.pdf Comment : Thank you for your answer . I already have implementations of Djikstra and A for the graph searching part of the problem . The problem is considering time in the network-flow . The routing link you posted is on to something but it s not quite what i need . I ll try to formulate my question better . Comment : You can try the classic algorithms used in communication protocols : link-state distance vector.. . cs.ccsu.edu stan classes cs490 slides networks4-ch4-4.pdf http : www.cs.ccsu.edu stan classes cs490 slides networks4-ch4-4.pdf 5D" ] }
[ "yes-answer-long", "yes-answer-short" ]
directed-graph
UNK_RELATION
teradata-aster@mpp@88
teradata-aster -- the teradata-aster discovery platform is the market-leading big data @placeholder database platform incorporating relational and hadoop technologies and data stores coupled with advanced map-reduce and graph processing engines .
{ "confidence": [ 84.88079071044922, 84.3509292602539, 81.71080017089844, 77.62380981445312, 76.45533752441406, 72.8585433959961, 69.93966674804688, 69.44001007080078, 69.09818267822266, 65.5153579711914, 63.577247619628906, 62.70289611816406, 60.51508331298828, 59.13568115234375, 58.203285217285156, 56.79656982421875, 56.53229522705078, 54.10194396972656, 53.975868225097656, 53.6019287109375, 52.854217529296875, 52.646697998046875, 52.42840576171875, 51.601524353027344, 51.601524353027344, 50.97295379638672, 50.97295379638672, 50.64425277709961, 50.48481750488281, 49.536258697509766, 49.08274841308594, 48.445343017578125, 48.040428161621094, 47.89374542236328, 47.83279800415039, 47.83279800415039, 47.83279800415039, 47.83279800415039, 47.83279800415039, 47.83279800415039, 47.83279800415039, 47.49590301513672, 47.3743782043457, 46.49584197998047, 46.02806854248047, 46.02806854248047, 45.44935607910156, 44.90311813354492, 43.750389099121094, 43.56523895263672, 43.56523895263672, 43.56523895263672, 43.237083435058594, 43.237083435058594, 41.07520294189453, 41.07520294189453, 40.34264373779297, 38.484130859375, 38.484130859375, 38.484130859375, 38.484130859375, 38.484130859375, 38.484130859375, 37.27410888671875, 37.27410888671875, 36.94993591308594, 35.11222839355469, 34.711181640625, 33.26674270629883, 32.521156311035156, 31.843093872070312, 30.890628814697266, 30.31683921813965, 30.215980529785156, 30.007984161376953, 28.86162757873535, 27.698211669921875, 27.698211669921875, 27.547048568725586, 26.420455932617188, 26.202381134033203, 26.165306091308594, 25.547443389892578, 25.547443389892578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.657794952392578, 24.501489639282227, 24.414701461791992, 23.750316619873047, 23.611309051513672, 21.39903450012207 ], "content": [ "@EdHarper Actually it s Teradata Aster Data .", "The query is for teradata-aster not for PGSql .", "@user1635914 : Teradata Studio and act are clients to Teradata and Teradata Aster .", "@StanleyAyzenberg : why are you referring to Aster Data but have the question tagged teradata", "There is a good research study based on a lab study which compares the time to develop and execute analytic-functions in both the Teradata Aster discovery platform and Hadoop Hive .", "I am trying to get a table from present in a Teradata database in Aster .", "Closest post on SE i found was : Teradata Aster : Fast Export ncluster export using query http : stackoverflow.com questions 24499115 teradata-aster-fast-export-ncluster-export-using-query", "Teradata Developer http : downloads.teradata.com itself has also some tipps tricks and hints about using Teradata and Aster .", "disclosure : i work for Teradata which acquired Aster Data 2 years ago http : www.asterdata.com resources assets ESG-Lab-Validation-Teradata-Aster-MapReduce-Platform.pdf", "Besides there is no tag for Aster Data .", "On contrary Aster SQL MR is native to Aster database .", "The actual database is Aster Data which is based on Postgres as are most recent database engines .", "I know Aster Data leverages SQL Map Reduce ncluster and analytic capability .", "All the components in Aster Data seems to have a similar component in Hadoop stack .", "Aster database doesn t formally belong to certain database family but you can identify it with several database types : .. . .. . it s distributed parallel relational-database .. . it s MPP massively parallel-processing database .. . it s based on PostgreSQL open-source code forked .. . it s NOT based on Teradata database .", "I am trying to export a query from Teradata Studio 14.10 Aster using the ncluster export command-line function .", "Aster is database and analytical engine matching Hadoop stack functions but not components .", "Are you using SQL-H in Aster to work with Hadoop nodes", "I am using latest version of Aster express edition form Teradata and configured which is run only in windows so create a virtual-machine of windows on my Ubuntu machine and its perfectly working in SUSE using Aster Client Tools - ACT and windows-7 Teradata studio .", "Unfortunately my database Teradata Aster needs either an additional distributed by hash some column at the end of the create-table or it needs to be called with create dimension table at the beginning .", "From Database architecture perspective which family does Aster belongs-to", "Thanks @PeterEisentraut - yes Aster is indeed Terradata Aster which is theoretically just an implementation of PostgreSQL .", "By native I mean that Java runs within each Aster node as part of Aster SQL MR framework which in turn is integral part of Aster database engine .", "Or you compare Aster and hive independently", "i know that there is SQL-H in Aster .", "Yes each counterpart on Aster side matches up with Hadoop stack offering - the difference is with Aster there is no such stack at least as of 6.x yet .", "Aster File System comes as complex plug-able functional layer integrated into Aster software - not as independent framework and software that are HDFS and Hadoop .", "Thanks xhudik for the idea I could not try that out as we moved out of Aster Database using CSVs .", "i want to know the difference between Aster and Hive if Hive can do analytic-functions then just like Aster", "Aster Data might handle it differently because the reference documentation doesn t mention adding a FORMAT specifier as an option .", "There s no GO in Aster this is Transact SQL syntax .", "I would recommend you to use joins to be more precise because Aster was designed to calculate data on worker side and i think joins will be more readable for Aster .", "The best path would be getting Hive Hadoop and Aster side-by-side and prototyping simple functions in both .", "Function basket generator is part of Aster Analytics Foundation which is set of analytical functions included with Aster software .", "I am connected to Aster DB using PHP VIA ODBC .", "Here is my query for aster : .. . .. . Here is my php code :", "Am using PGSQL just to save records returned from aster", "@user1635914 - TD Aster is running on forked improved postgreSQ DB .", "We re using Aster for some of our web session logs .", "Aster does indeed have a lot of similarities with Postgres but it is not the same .", "So there is no version of PosgreSQL - it s only version of Aster that matters .", "You do not need to use FACT keyword Aster will understand it by distribution type .. . 3 . dnoeth right there is no GO keyword in Aster .. . 4 .", "the difference would be that in Aster data it is already in-built whereas in hive we have to write it .", "I want to export aster tables into tab delimited files each file containing just 100 records .", "When looking for help for Aster you can t google aster question I have as there are very few results you need to google postgres question I have .", "Use two SQL statements when dropping creating table in Aster : .. . .. . Also I don t recommend consulting Postgres documentation newer than version 8.3 and even then it s no guarantee that Aster supports function or feature found there .", "So your analogy does explain Hadoop side of the equation without really giving proper due to Aster .", "SQL-MR is map-reduce framework in Aster using which one can implement and run map-reduce tasks in Java or other languages across nodes transparently and inside SQL code .", "In Aster while using its SQL MR functions including Java-based user never leaves premises of SQL and the data model .", "Could you run the SQL using Teradata Studio or act or the like", "You can download them at Teradata Download http : downloads.teradata.com download .", "I use the Teradata Studio which is a standalone Eclipse based application .", "I expect this to be either a problem in the PHP or ODBC client and that the LIMIT parameter is not send to Aster but filtered by any of these clients .", "In order to find out what version I m on that article recommends : .. . .. . But that returns an error : .. . .. . So Aster must not be 100 PostgreSQL .", "At the same time SQL MR is polymorphic to table definitions adapting for arbitrary models all within Aster SQL .", "So such analytic-functions can be done in Hive theoretically but wont be easy as using Aster", "If you want to export a result set from Teradata Studio then you can do that from the Teradata Result Set Viewer window .", "I m using the Aster Basket Generator function to calculate a basket from a table of purchases retail purchases .", "What s the recommended way to calculate basket aggregates when using the Aster Basket Generator analytic function", "From Aster documentation on basket generator : .. . .. . Columns in the ACCUMULATE clause should be a subset of the columns in the PARTITION BY clause .", "Did you install the Aster Client Tools on your PC running TD Studio", "So my requirement is that i want to access Aster express edition in Ubuntu or remotely in other machine ... . Any body HELP", "The most striking difference goes for Aster analytical engine consisting of SQL SQL MR and SQL GR .", "I ve been told internally that Aster uses PostgreSQL and in fact for a lot of my queries I look on this site and follow the guidelines for PostgreSQL code which always work .", "My two questions are how do I use IF EXISTS when creating a table in Aster and how do I tell what version of PostgreSQL I am using", "But I want to use that aster express edition with my UBUNTU on which window m c virtually configured in which my aster express edition is installed but And when i ping form SUSE to windows and windows to Ubuntu and viceversa its working but when i ping form Ubuntu to SUSE is shows unreachable .", "Another point to make is that Aster offers rich set of high-level analytical functions out of the box so that writing custom Java SQL MR may not be necessary .", "Of course I cannot run your command with all the tables but I ve many examples in the Teradata Studio History which were all limited and worked fine by returning the right row count and the right rows : -", "ncluster export turned out to be the fastest tool to export data", "If you want to run a SQL script then export the results to a file then you should use ACT rather than ncluster export .. . .. . The syntax is - .. . .. . This will pass a SQL script to Aster and redirect the output to the specified file .", "If I m not mistaken the standard ANSI SQL CAST operator always expect time date timstamp literals in ISO format YYYY-MM-DD .. . .. . But according to the manual for Teradata V12 can t test it the format of the CAST operator is .. . .. . with date data attribute being a character value plus an optional FORMAT specifier .", "All data manipulations will be consistent with the data model data distribution keys etc .", "On page 77 of the Aster Analtyics users guide : http : www.info.teradata.com eDownload.cfm itemid 122580002 .. . .. . it says : Note that the predicates for different symbols may overlap and therefore multiple symbols may match the same row . .. . .. . Does anyone have any experience with practical use cases where you actually need multiple symbols per row", "Theoretically yes Hive should be able to do all the same as both feature Java code and map-reduce frameworks .", "Have a look in the data directory on the file system .", "I am not a user of Hadoop Hive but my understanding is that Hive is a layer on top of Hadoop and everything Hive does including analytical extensions written in Java will get translated into Hadoop jobs .", "Using the query : .. . .. . produces .. . .. . The error with CONVERT actually happens even if you use a generic function such as getdate for the data source .", "I need to know exact number of rows as I have to break data in chunks to insert in PostgreSQL .", "In this database you would use to timestamp .", "The database is built on top of Postgres similar to other databases like Netezza and Greenplum .", "Easy is relative and I don t want to compare to Hive Hadoop I have very limited knowledge of .", "It s nothing like Hive infrastructure on top of Hadoop .", "The call would be something like : .. . .. . There are no ANSI functions for date conversion so each database does its own .", "I have to create database tables out of a pile of data.frames some of them with more then 100 columns for further analysing .", "Hence i m using ACT Tool as i cannot specify an SQL select from table name limit 100 with ncluster export tool .", "One issue i m facing is when specifying the -F option with ACT tool i am not able to specify TAB as the delimiter .", "I have tried t and TAB which did not resolve to correct TAB .", "I have checked the guide and act --help couldn t find the correct option .", "My commands have been like : .. . .. . act -h xx.xx.xx.xx -U username -w password -p port -d mintdw -t -F t -A -c select from tablename limit 100 -o tmp filename .. . .. . Please help me out .", "just guess : -F tab inside - wont help", "how would i type a tab inside the double quote", "This is a command on the terminal .", "If i press tab it would nt type a tab .", "so bypass it by writing TAB in some editor and copy-paste to terminal .", "Just make sure the terminal do not convert your tab into sequence of spaces", "Likely coming from the Hadoop side you made the question using Hadoop architecture which is assembly of layered and or integrated somewhat independent components each with its own functional spec configuration and execution environment etc .", "Alternatively can I add a hook just before dbWriteTable sends the query so that I can add change my specials and send my SQL to the database", "What it means is that there is no functional or operational gaps between data-storage and its operators SQL statements an SQL MR or SQL GR functions operating on the data store - they live inside the same environment configuration execution maintenance support .", "Because you wouldn t ask the same question if comparing Hadoop and Oracle or SAP databases right", "I have a column in a table where timestamps have been stored in VARCHAR format but I need to compare these against a column of DATETIME values from another table to find time intervals so I want to either cast or convert the VARCHAR timestamps to DATETIME ." ] }
{ "confidence": [ 118.10745239257812, 116.83524322509766, 93.32811737060547, 85.47909545898438, 84.81304931640625, 81.10498046875, 79.42413330078125, 78.85630798339844, 76.35482788085938, 75.63262176513672, 75.31690979003906, 74.8862533569336, 74.654052734375, 70.54635620117188, 64.74519348144531, 64.25372314453125, 63.78144836425781, 63.169891357421875, 58.47333526611328, 48.77758026123047 ], "content": [ "Question : I know Aster Data leverages SQL Map Reduce ncluster and analytic capability . From Database architecture perspective which family does Aster belongs-to .. . Answer : Aster database doesn t formally belong to certain database family but you can identify it with several database types : .. . .. . it s distributed parallel relational-database .. . it s MPP massively parallel-processing database .. . it s based on PostgreSQL open-source code forked .. . it s NOT based on Teradata database .", "Question : I came across something which showed that you can write analytic-functions in Hive . For example : for a wordcount example we can write in hive as well . the difference would be that in Aster data it is already in-built whereas in hive we have to write it . What will be the difference why go for which Comment : Are you using SQL-H in Aster to work with Hadoop nodes Or you compare Aster and hive independently Comment : i know that there is SQL-H in Aster . its just that I came across something that Hive can do the same word-count problems . So can Hive do all the at least basic analytic-functions if I can write them Comment : i want to know the difference between Aster and Hive if Hive can do analytic-functions then just like Aster .. . Answer : There is a good research study based on a lab study which compares the time to develop and execute analytic-functions in both the Teradata Aster discovery platform and Hadoop Hive . The systems were run side-by-side to show what workloads are appropriate for each system . There is a good working example of a day in the life of an analyst and the time effort required . disclosure : i work for Teradata which acquired Aster Data 2 years ago http : www.asterdata.com resources assets ESG-Lab-Validation-Teradata-Aster-MapReduce-Platform.pdf", "Question : null .. . Answer : I am connected to Aster DB using PHP VIA ODBC . I am running a query which is taking a long time to run . I have added limit to get 1000 records only . While displaying those records it prints exact 1000 records but when I print total number of rows it displays a very large number 140393890971647 . Why is it returning wrong row nums while its printing 1000 only . I need to know exact number of rows as I have to break data in chunks to insert in PostgreSQL . Here is my query for aster : .. . .. . Here is my php code : Comment : That SQL query is kinda illegible but I don t suppose it matters . When LIMIT is used PostgreSQL doesn t produce any value that says number of rows that would ve been returned without limit . It sends the number of rows actually returned and that s it . If you re getting another result I d be inclined to suspect a PHP ODBC driver bug personally though it could be a bug with psqlODBC I guess . Try to produce a self-contained compilable test case including SQL script that demonstrates the problem . Comment : The query is for teradata-aster not for PGSql . Am using PGSQL just to save records returned from aster Comment : @user1635914 - TD Aster is running on forked improved postgreSQ DB . Comment : LIMIT is quite useful to limit amount of a result set and execution-time . Could you run the SQL using Teradata Studio or act or the like I expect this to be either a problem in the PHP or ODBC client and that the LIMIT parameter is not send to Aster but filtered by any of these clients . Of course I cannot run your command with all the tables but I ve many examples in the Teradata Studio History which were all limited and worked fine by returning the right row count and the right rows : - Comment : @user1635914 : Teradata Studio and act are clients to Teradata and Teradata Aster . You can download them at Teradata Download http : downloads.teradata.com download . I think yo must register but it s for free and so far I wasn t spammed with emails . I use the Teradata Studio which is a standalone Eclipse based application . Alternatively you can use the Eclipse Plug-In but then you must take care of the supported versions . Teradata Developer http : downloads.teradata.com itself has also some tipps tricks and hints about using Teradata and Aster .", "Question : I came across something which showed that you can write analytic-functions in Hive . For example : for a wordcount example we can write in hive as well . the difference would be that in Aster data it is already in-built whereas in hive we have to write it . What will be the difference why go for which Comment : Are you using SQL-H in Aster to work with Hadoop nodes Or you compare Aster and hive independently Comment : i know that there is SQL-H in Aster . its just that I came across something that Hive can do the same word-count problems . So can Hive do all the at least basic analytic-functions if I can write them Comment : i want to know the difference between Aster and Hive if Hive can do analytic-functions then just like Aster .. . Answer : Theoretically yes Hive should be able to do all the same as both feature Java code and map-reduce frameworks . I am not a user of Hadoop Hive but my understanding is that Hive is a layer on top of Hadoop and everything Hive does including analytical extensions written in Java will get translated into Hadoop jobs . You may want to ask Hive-directed question on how what it takes to do it . On contrary Aster SQL MR is native to Aster database . By native I mean that Java runs within each Aster node as part of Aster SQL MR framework which in turn is integral part of Aster database engine . All data manipulations will be consistent with the data model data distribution keys etc . In Aster while using its SQL MR functions including Java-based user never leaves premises of SQL and the data model . At the same time SQL MR is polymorphic to table definitions adapting for arbitrary models all within Aster SQL . Maybe you want to investigate how this would work in Hive . Another point to make is that Aster offers rich set of high-level analytical functions out of the box so that writing custom Java SQL MR may not be necessary . Thus word counting example could be executed using nGram function and aggregate SQL . Comment : So such analytic-functions can be done in Hive theoretically but wont be easy as using Aster Comment : Easy is relative and I don t want to compare to Hive Hadoop I have very limited knowledge of . The best path would be getting Hive Hadoop and Aster side-by-side and prototyping simple functions in both . Sorry for no definite answer . Comment : Oh OK . No problem . Thank you for your help . :", "Question : null .. . Answer : I want to export aster tables into tab delimited files each file containing just 100 records . Hence i m using ACT Tool as i cannot specify an SQL select from table name limit 100 with ncluster export tool . One issue i m facing is when specifying the -F option with ACT tool i am not able to specify TAB as the delimiter . I have tried t and TAB which did not resolve to correct TAB . I have checked the guide and act --help couldn t find the correct option . My commands have been like : .. . .. . act -h xx.xx.xx.xx -U username -w password -p port -d mintdw -t -F t -A -c select from tablename limit 100 -o tmp filename .. . .. . Please help me out . Closest post on SE i found was : Teradata Aster : Fast Export ncluster export using query http : stackoverflow.com questions 24499115 teradata-aster-fast-export-ncluster-export-using-query Comment : just guess : -F tab inside - wont help Comment : how would i type a tab inside the double quote This is a command on the terminal . If i press tab it would nt type a tab . Comment : so bypass it by writing TAB in some editor and copy-paste to terminal . Just make sure the terminal do not convert your tab into sequence of spaces Comment : Thanks xhudik for the idea I could not try that out as we moved out of Aster Database using CSVs . ncluster export turned out to be the fastest tool to export data", "Question : I have a column in a table where timestamps have been stored in VARCHAR format but I need to compare these against a column of DATETIME values from another table to find time intervals so I want to either cast or convert the VARCHAR timestamps to DATETIME . However both casting and converting are giving me problems . The format of the VARCHAR timestamp looks like this : 29 07 2012 01 : 53 : 36 +12 . Using the query : .. . .. . produces ERROR : date time field value out of range : 29 07 2012 01 : 53 : 36 +12 . Using the query : .. . .. . produces .. . .. . The error with CONVERT actually happens even if you use a generic function such as getdate for the data source . This db uses ANSI SQL-92 or so I m told . Could anyone please help me out with this Comment : Would it be easier to convert the datetime field to a varchar for the comparison of 2 varchar fields instead Comment : Which RDBMS Looks like SQL Server or Sybase - if so which version Comment : @RobJohnson Would I be able to find time intervals between two varchar fields Comment : @EdHarper Actually it s Teradata Aster Data . Comment : Sorry missed that not really what is the +12 indicative of The following would work for example : select CONVERT datetime 29 07 2012 01 : 53 : 36 103 ...although I am going by MS SQL I m not familiar with TAD .. . Answer : If I m not mistaken the standard ANSI SQL CAST operator always expect time date timstamp literals in ISO format YYYY-MM-DD .. . .. . But according to the manual for Teradata V12 can t test it the format of the CAST operator is .. . .. . with date data attribute being a character value plus an optional FORMAT specifier . So in your case this would probably be : .. . .. . I m not entirely sure about the format definition though . You ll probably need to adjust that .. . .. . Btw : CONVERT isn t a standard SQL function . It s SQL Server specific . Comment : Yeah sorry that was my mistake . And unfortunately that didn t work either . Aster Data might handle it differently because the reference documentation doesn t mention adding a FORMAT specifier as an option . I was told that they used standard ANSI SQL-92 but given some of the oddities I ve found while working in it I m starting to doubt that.. . Comment : @StanleyAyzenberg : why are you referring to Aster Data but have the question tagged teradata Comment : I actually didn t add that tag myself it looks like it was added in by someone else . Besides there is no tag for Aster Data .", "Question : null .. . Answer : I am using latest version of Aster express edition form Teradata and configured which is run only in windows so create a virtual-machine of windows on my Ubuntu machine and its perfectly working in SUSE using Aster Client Tools - ACT and windows-7 Teradata studio . But I want to use that aster express edition with my UBUNTU on which window m c virtually configured in which my aster express edition is installed but And when i ping form SUSE to windows and windows to Ubuntu and viceversa its working but when i ping form Ubuntu to SUSE is shows unreachable . So my requirement is that i want to access Aster express edition in Ubuntu or remotely in other machine ... . Any body HELP Comment : Maybe better ask this on Ask Ubuntu askubuntu.com http : askubuntu.com because it does not seem to be about programing . Comment : @smartmeta thanks for your reply .. . but its not only related to Ubuntu . There are many other things .", "Question : I am trying to export a query from Teradata Studio 14.10 Aster using the ncluster export command-line function . I can t find a working example to go off of . Does anyone have one they could share Also how would I actually run the script ie ncluster export myScript1.bat Assume the following : .. . Answer : If you want to export a result set from Teradata Studio then you can do that from the Teradata Result Set Viewer window . There s an export icon on the top right corner . If you want to run a SQL script then export the results to a file then you should use ACT rather than ncluster export .. . .. . The syntax is - .. . .. . This will pass a SQL script to Aster and redirect the output to the specified file . The -F parameter specifies the delimiter . There are other parameters you can use . act --help will list them", "Question : I know Aster Data leverages SQL Map Reduce ncluster and analytic capability . From Database architecture perspective which family does Aster belongs-to .. . Answer : I do not know exactly about right name but it is sharded db what means one Queen server and several workers with running postgres instances .", "Question : null .. . Answer : I have to create database tables out of a pile of data.frames some of them with more then 100 columns for further analysing . My idea was to use RJDBC and let the dbWriteTable function create all the tables with all columns . Unfortunately my database Teradata Aster needs either an additional distributed by hash some column at the end of the create-table or it needs to be called with create dimension table at the beginning . Is there a way to add replace some SQL code that is produced by dbWriteTable Alternatively can I add a hook just before dbWriteTable sends the query so that I can add change my specials and send my SQL to the database", "Question : null .. . Answer : I am trying to get a table from present in a Teradata database in Aster . I am using the load from teradata statement . Usually this works but this time I am getting an error and I am not able to trouble shoot it . Following is the query : .. . .. . I am encountering the following error while executing it : .. . .. . enter image description here http : i.stack.imgur.com bhxe8.jpg .. . .. . any help", "Question : I know Aster Data leverages SQL Map Reduce ncluster and analytic capability . From Database architecture perspective which family does Aster belongs-to .. . Answer : Agree with topchef . Hope the below gives you some high level information . The database is built on top of Postgres similar to other databases like Netezza and Greenplum . Asterdata is built on postgres but in a distributed manner . It has something called vproc s which are similar to a standalone postgres db instance . A Node worker will have multiple vprocs and all the nodes are co-ordinated using a Queen node Master . Though its built on Postgres not all features of postgres are ported to Asterdata because of the distributed nature of the system .", "Question : All the components in Aster Data seems to have a similar component in Hadoop stack . AFS HDFS .. . .. . SQL-MR Hive .. . .. . AMC Ambari .. . .. . ACT beeline hive terminal .. . .. . Postgres for storing metadata Hive can be configured to store metadata in any RDBMS .. . .. . Queen Worker NameNode Datanode .. . .. . SQL-GR Giraph .. . .. . Apart from providing a package of pre-built functions is there anything that is strikingly different and not available in Hadoop .. . Answer : Your question is not bad it s wrong . Likely coming from the Hadoop side you made the question using Hadoop architecture which is assembly of layered and or integrated somewhat independent components each with its own functional spec configuration and execution environment etc . Why is that wrong Because you wouldn t ask the same question if comparing Hadoop and Oracle or SAP databases right Yes each counterpart on Aster side matches up with Hadoop stack offering - the difference is with Aster there is no such stack at least as of 6.x yet . Aster is database and analytical engine matching Hadoop stack functions but not components . For example ACT is a command-line utility similar to SQL Plus for Oracle operating over client-server interface . It s nothing like Hive infrastructure on top of Hadoop . Aster File System comes as complex plug-able functional layer integrated into Aster software - not as independent framework and software that are HDFS and Hadoop . The most striking difference goes for Aster analytical engine consisting of SQL SQL MR and SQL GR . What it means is that there is no functional or operational gaps between data-storage and its operators SQL statements an SQL MR or SQL GR functions operating on the data store - they live inside the same environment configuration execution maintenance support . For example columnar and row-based tables are completely transparent for any operation performed on the them barring constraints defined a priori and by design . So your analogy does explain Hadoop side of the equation without really giving proper due to Aster .", "Question : I have a column in a table where timestamps have been stored in VARCHAR format but I need to compare these against a column of DATETIME values from another table to find time intervals so I want to either cast or convert the VARCHAR timestamps to DATETIME . However both casting and converting are giving me problems . The format of the VARCHAR timestamp looks like this : 29 07 2012 01 : 53 : 36 +12 . Using the query : .. . .. . produces ERROR : date time field value out of range : 29 07 2012 01 : 53 : 36 +12 . Using the query : .. . .. . produces .. . .. . The error with CONVERT actually happens even if you use a generic function such as getdate for the data source . This db uses ANSI SQL-92 or so I m told . Could anyone please help me out with this Comment : Would it be easier to convert the datetime field to a varchar for the comparison of 2 varchar fields instead Comment : Which RDBMS Looks like SQL Server or Sybase - if so which version Comment : @RobJohnson Would I be able to find time intervals between two varchar fields Comment : @EdHarper Actually it s Teradata Aster Data . Comment : Sorry missed that not really what is the +12 indicative of The following would work for example : select CONVERT datetime 29 07 2012 01 : 53 : 36 103 ...although I am going by MS SQL I m not familiar with TAD .. . Answer : This seems really painful but the following should work : .. . .. . I ve never added datetime s before but this just worked on SQL Server 2008 . Why can t SQL Server just support a flexible notation built around yyyy mm mmm dd and so on The actual database is Aster Data which is based on Postgres as are most recent database engines . In this database you would use to timestamp . See the documentation here http : www.postgresql.org docs 8.2 static functions-formatting.html . The call would be something like : .. . .. . There are no ANSI functions for date conversion so each database does its own . Even string functions vary among databases substr substring charindex instr location so there is no ANSI way to do this . Comment : +1 for why can t SQL Server support a flexible notation . I really hate the limited functionality of the CONVERT function . Comment : This code didn t work but that s probably because as you mentioned above I incorrectly assumed CONVERT was standard to SQL . Comment : to timestamp worked perfectly For anyone who may wind up in this situation my solution is to use to timestamp on the VARCHAR column and CAST columnname AS TIMESTAMP on the DATETIME column to have them meet in the middle . Thanks Gordon", "Question : I am trying to export a query from Teradata Studio 14.10 Aster using the ncluster export command-line function . I can t find a working example to go off of . Does anyone have one they could share Also how would I actually run the script ie ncluster export myScript1.bat Assume the following : .. . Answer : I can t test it right now but I don t think you can use a ncluster export directly within TD Studio you need to run it on your PC s command-line . Did you install the Aster Client Tools on your PC running TD Studio Then it should be you seem to be on Windows : .. . .. . start the command-line cmd and enter .. . cd myhomedir .. . ncluster export --hostname ip of asterqueen --username user1 --password pass1 --csv schemaname.tablename outFile1.csv .. . .. . Regarding running the script you can t pass the parameters to cluster export afaik in a file but you can put the commands in a bat -file and then execute this . Comment : This works fine for a single table but NOT for a query across tables . That s my problem . Comment : Sorry I didn t notice that you were talking about exporting a query not a table . This is not possible using cluster export afaik", "Question : We re using Aster for some of our web session logs . I ve been told internally that Aster uses PostgreSQL and in fact for a lot of my queries I look on this site and follow the guidelines for PostgreSQL code which always work . Now I m trying to use a simple query that keeps failing Syntax error at or near NOT : .. . .. . I keep getting errors on IF NOT EXISTS . So I found another article that says I need at least PostgreSQL-9.1 for IF NOT EXISTS to work . In order to find out what version I m on that article recommends : .. . .. . But that returns an error : .. . .. . So Aster must not be 100 PostgreSQL . My two questions are how do I use IF EXISTS when creating a table in Aster and how do I tell what version of PostgreSQL I am using Comment : @CraigRinger asterdata.com http : www.asterdata.com Comment : Thanks @PeterEisentraut - yes Aster is indeed Terradata Aster which is theoretically just an implementation of PostgreSQL . When looking for help for Aster you can t google aster question I have as there are very few results you need to google postgres question I have . Comment : Ah familiar to me as Terradata . Sorry . Comment : Have a look in the data directory on the file system . If you don t know where it is it s possible that SHOW data directory will tell you but again it depends on how customised this PostgreSQL flavour is . In the datadir there might be a file named PG VERSION .. . again unless they ve removed that as part of their changes to PostgreSQL . .. . Answer : Use two SQL statements when dropping creating table in Aster : .. . .. . Also I don t recommend consulting Postgres documentation newer than version 8.3 and even then it s no guarantee that Aster supports function or feature found there . Aster does indeed have a lot of similarities with Postgres but it is not the same . So there is no version of PosgreSQL - it s only version of Aster that matters . One way to check it is via admin console AMC : point your browser to https : server name or ip-address .. . .. . After logging in click Admin : Cluster Management : Nodes tab . It displays all the nodes present in the cluster along with software version information . Comment : Awesome thanks so much for the great answer I can t upvote it yet no reputation .", "Question : I m using the Aster Basket Generator function to calculate a basket from a table of purchases retail purchases . I can create the basket without issue using the following code : .. . .. . What I d like to do additionally is to calculate the average value of each basket . Ideally that would be returned to me as one column but I d be completely satisfied with the average sale price for each item in the basket . I ve tried the following : .. . .. . But the avg sales amt column doesn t seem to be returning the correct value . What s the recommended way to calculate basket aggregates when using the Aster Basket Generator analytic function Comment : @topchef what is sql-mr and how is it relevant here Comment : Function basket generator is part of Aster Analytics Foundation which is set of analytical functions included with Aster software . All of these functions are SQL-MR functions . SQL-MR is map-reduce framework in Aster using which one can implement and run map-reduce tasks in Java or other languages across nodes transparently and inside SQL code . .. . Answer : From Aster documentation on basket generator : .. . .. . Columns in the ACCUMULATE clause should be a subset of the columns in the PARTITION BY clause . Otherwise the deterministic property is not guaranteed . Thus your approach doesn t hold as sales amt is not part of PARTION BY and rightly so since prices change . One option is to place results of basket generator into new table and then join it to your product catalog that contains prices - resulting table will contain prices to calculate average sale prices .", "Question : I am not sure what is wrong with this code . I keep getting this error Comment : There s no GO in Aster this is Transact SQL syntax . Comment : what do I use instead of go Comment : I can t test right now but you might simply remove it . Comment : hmm tried that and it gave me the same error . Comment : Then remove the BEGIN END too . Do you really want to do it in a single transaction why .. . Answer : 1 . There is no such function YEAR you can use date trunc year somedate instead .. . 2 . You do not need to use FACT keyword Aster will understand it by distribution type .. . 3 . dnoeth right there is no GO keyword in Aster .. . 4 . I would recommend you to use joins to be more precise because Aster was designed to calculate data on worker side and i think joins will be more readable for Aster .", "Question : I have a column in a table where timestamps have been stored in VARCHAR format but I need to compare these against a column of DATETIME values from another table to find time intervals so I want to either cast or convert the VARCHAR timestamps to DATETIME . However both casting and converting are giving me problems . The format of the VARCHAR timestamp looks like this : 29 07 2012 01 : 53 : 36 +12 . Using the query : .. . .. . produces ERROR : date time field value out of range : 29 07 2012 01 : 53 : 36 +12 . Using the query : .. . .. . produces .. . .. . The error with CONVERT actually happens even if you use a generic function such as getdate for the data source . This db uses ANSI SQL-92 or so I m told . Could anyone please help me out with this Comment : Would it be easier to convert the datetime field to a varchar for the comparison of 2 varchar fields instead Comment : Which RDBMS Looks like SQL Server or Sybase - if so which version Comment : @RobJohnson Would I be able to find time intervals between two varchar fields Comment : @EdHarper Actually it s Teradata Aster Data . Comment : Sorry missed that not really what is the +12 indicative of The following would work for example : select CONVERT datetime 29 07 2012 01 : 53 : 36 103 ...although I am going by MS SQL I m not familiar with TAD .. . Answer : You are using the wrong syntax try : .. . .. . Where X is the total number of characters desired . You will then be able to search for a match with datetimeValue and event timestamp assuming each value share the same structure . This will allow you to match string against string . Comment : I m still getting the same syntax-error . Also I m trying to find intervals between the two fields as the values are not supposed to be exactly the same . Would I be able to do this with two varchars Sorry I m still new to SQL . Comment : it doesn t work on postgresql", "Question : null .. . Answer : On page 77 of the Aster Analtyics users guide : http : www.info.teradata.com eDownload.cfm itemid 122580002 .. . .. . it says : Note that the predicates for different symbols may overlap and therefore multiple symbols may match the same row . .. . .. . Does anyone have any experience with practical use cases where you actually need multiple symbols per row Concern is this could explode pretty quickly : for n symbols per row and m rows in a partition number of symbol combinations per partition is n m . e.g . for n 2 and m 50 this results in 1e15 symbol combinations which we certainly don t want to traverse . Thx Francis" ] }
[ "yes-answer-long", "yes-answer-short" ]
mpp
UNK_RELATION
c++builder-6@visual-c++@56
c++ builder-6 -- the 2002 release of c++ builder a rapid @placeholder development-environment .
{ "confidence": [ 48.45952224731445, 48.45952224731445, 48.05042266845703, 45.96565246582031, 45.96565246582031, 45.1994514465332, 45.1994514465332, 45.1994514465332, 45.1994514465332, 44.59771728515625, 43.11487579345703, 43.11467742919922, 43.11467742919922, 43.11467742919922, 42.598716735839844, 42.58567810058594, 42.58567810058594, 42.366920471191406, 42.255218505859375, 41.337646484375, 41.337646484375, 41.337646484375, 41.337646484375, 41.337646484375, 40.77250289916992, 40.38881301879883, 39.39588928222656, 39.266700744628906, 39.25287628173828, 39.25287628173828, 39.25287628173828, 39.25287628173828, 38.48794174194336, 38.48794174194336, 38.48794174194336, 36.403167724609375, 36.35581970214844, 36.21226119995117, 36.13581848144531, 36.13581848144531, 36.13581848144531, 36.13581848144531, 36.13581848144531, 36.13581848144531, 35.24158477783203, 34.48507308959961, 34.48507308959961, 34.48507308959961, 34.051048278808594, 34.051048278808594, 34.051048278808594, 33.19322967529297, 32.95219039916992, 31.22500228881836, 31.22500228881836, 30.142127990722656, 30.10455322265625, 29.140230178833008, 29.140230178833008, 29.140230178833008, 29.140230178833008, 29.076583862304688, 28.775121688842773, 28.673870086669922, 28.673870086669922, 28.673870086669922, 28.201570510864258, 26.96502113342285, 26.96502113342285, 26.792335510253906, 26.589099884033203, 25.974353790283203, 25.515050888061523, 25.02417755126953, 24.305023193359375, 23.925426483154297, 23.925426483154297, 23.74038314819336, 22.150482177734375, 21.763721466064453, 21.763721466064453, 21.511810302734375, 21.511810302734375, 21.03687286376953, 20.91244125366211, 19.994871139526367, 19.783061981201172, 19.506183624267578, 19.472116470336914, 19.01717185974121, 19.01717185974121, 19.01717185974121, 18.503650665283203, 18.503650665283203, 18.503650665283203, 18.503650665283203, 18.503650665283203, 18.503650665283203, 17.910099029541016 ], "content": [ "C++Builder 6 has std : : list .", "I m using C++ Builder 6 and f.e .", "I use C++ Builder 6 .", "I m using C++Builder 6 .", "In c++ builder 6 on windows-vista .. .", "I am working with Borland C++Builder 6 .", "I am using Borland C++Builder 6 .", "Using C++ Builder 6 and trying to run this code .. . .. .", "I m using Borland C++Builder 6 .", "I have problems with rewriting code to Builder c++ 6 format .", "I made an mdi application in Borland C++Builder 6 .", "I use Borland C++Builder 6 and FastMM4 .", "std : : deque in C++Builder 6 is bugged and unusable", "I m making an application in C++ Builder 6 .", "Please also note that C++ Builder 6 was released in 2002 which makes it a very old and outdated compiler .", "In C++Builder 6 the default STL library is STLPort replaced with Dinkumware in C++Builder 2006 .", "I m trying to migrate my project from C++ Builder 6 to C++ Builder 2010 .", "C++Builder 6 does not support 64-bit development and thus does not support C++11 .", "2 Borland C++ 5.6.4 and the STL shipped with C++-Builder 6 upd4", "C++-Builder 6 GUI applications are based on the VCL framework .", "What am I doing wrong or is this simply a bug in C++-Builder 6", "What does Application- ProcessMessages do on Borland C++Builder 6", "I can compile and install successfully in C++ Builder 6 .", "Actually I can t get C++Builder 6 to even compile this .", "Using c++ builder borland bcb6 .", "That was added in C++Builder XE3 .", "I am attempting to create a report using QuickReport in C++ Builder 6 and cannot produce the results I require .", "C++ Builder 32-bit is not C++11 compliant .", "I am writing an application using C++Builder 6 and Indy 10 .", "I myself still use C++Builder 6 at my day job .", "I don t want to change away from C++Builder 6 .", "I have problem with some application written under C++ Builder 6 .", "Unfortunately it still exists in C++ Builder XE8 .", "used in borland c++ builder bcb6 .. . .. . Thanks", "There is nothing specific in C++Builder for changing font in a MessageBox .", "Even a more recent version of C++Builder", "Borland C++Builder 6 https : en.wikipedia.org wiki C 2B 2BBuilder Version history appears to have come out in 2002... . any chance you could use a more modern compiler", "I am using borland C++ builder 6 and i have a ServerSocket now i need to open a connection and to listen from client socket .", "It s built with C++-Builder 6 and runs on Windows XP...7 also 8 .", "This is clearly an error and I want to fix it but the application is old Borland C++Builder 6 and its code it very extensive .", "And what can I do for initialize instead of : .. . .. . I m using Borland C++Builder 6 .", "I m trying to upgrade an C++ Builder 6 component package to rad studio seatle 10 .", "I have a problem deleting a dynamically created button in Borland C++Builder 6 .", "I m using Borland C++ Builder 6 to try to do some simple string-concatenation .", "That said the RogueWave STL which was used in earlier C++Builder versions is also shipped with C++Builder 6 for backwards compatibility with older code and does not suffer from this issue .", "My code doesn t work : .. . .. . It s not very nessesary to write code in C++ Builder", "But really before that I d work on doing away with C++ Builder all together and going to Visual Studio 2013 .", "Maybe C++ Builder is not so modern it is very old actually but i like it and it s very easy for me .", "EDIT : .. . .. . It looks like C++ Builder 6 just doesn t like the code line.. .", "Apparently C++Builder 6 just didn t know what to do as the errors came from my use of something in the stl .", "Does anybody know how to set the value for a VrSlider object in Borland C++Builder 6", "enter image description here http : i.stack.imgur.com TQvQ6.png .. . .. . Also I ve checked vcljpg.bpi file exist F : Borland CBuilder6 Lib Release in C++ Builder 6 .", "I have a remote database mysql connected to the application C++ Builder 6 using ADOConnection and DBGrid which is displayed data ADOConnection-ADOTable-Dataset-DBGrid .", "The bad new is that I do not know C++ builder and cannot say where to find the message loop .", "But I try project compile and install in Rad Studio C++ Builder then showing that linker-error message .", "The error I encounter is in this function : .. . .. . C++Builder 6 tells me : C++ Error ErrMericc.cpp 1 : impossible to call code execution because of source code errors .", "bcc32 --version says Borland C++ 5.6.4 f r Win32 Copyright c 1993 2002 Borland at my installation .", "In Builder C++ 2010 functions with names beginning Change is changed to properties without Change .", "As far as I remember C++ Builder was always helpful to me with its error messages when I used it back then .", "It does not happen in later Delphi C++Builder versions so it might be something specific to BCB6 that needs fixing .", "I m using c++ builder bcb6 and on : .. . .. . event there is : .. . .. . I would like to know what exactly the responsibility of : .. . .. . What exactly it did", "Fortunately you can install SoftGems XP Theme Manager http : www.soft-gems.net index.php controls windows-xp-theme-manager to address these issues SoftGems code was integrated directly into the VCL in a later C++Builder version .", "C++Builder 6 predates XP and the Visual Styles https : msdn.microsoft.com en-us library windows desktop bb773187.aspx feature so its VCL has no built-in support for theming styling at all there are 3rd party components for custom skinning though .", "But .. . as the message you show is not original Windows one I suspect C++ builder to already have such an exception handler in its message loop .", "Note that my VCL-fu is a bit rusty I haven t coded with C++Builder for 10+ years there might be a more idiomatic way of writing this .", "I m using c++ builder bcb6 .. . .. . I would like enlarge font-size of message box without creating custom message box .", "Their implementation was moved to the RTL s Classes unit in Delphi C++Builder 6 to support the CLX framework in Kylix and the existing functions in the Forms unit were marked as deprecated they were finally removed from the Forms unit in Delphi C++Builder 2009 .", "I don t know if that was the reason but I had Builder 6 and 2010 istalled on the same machine .", "Now I just have Builder 6 and it seems that I cannot reproduce the error with test application like before .", "The problem in the given case is that I m using a Delphi source file in a C++Builder project and in a Delphi project .", "For a programme I ve created in Borland C++ Builder 4.0 I would like to be able to create a version with which I can set up a batch script .", "You do not have to use AnsiString : .. . .. . However since you are interacting with VCL components it might make sense to rewrite the code to use AnsiString instead or better System : : String in case you ever migrate the code to a modern C++Builder version :", "I expect the following code to invoke my unexpected handler but my terminate handler is called instead : .. . .. . The C++ Builder 6 Developer s Guide http : www.informit.com articles article.aspx p 31668 explicitly encourages installing custom unexpected handlers via set unexpected .", "I d strongly recommend that you update to a version newer than 2002 .", "Or even in standard C++", "I mean make program in Builder and this program will show button in Windows 7 like it button looks in Windows 7 show ProgressBar in W10 W8 like it looks in W10 W8 .", "But i have one more question it works when im in Builder and when im running .exe in project folder but when i take .exe to another location even with rc and manifest it doesn t work .", "C : Program Files x86 Embarcadero Studio 17.0 lib win32 release vclimg.bpi I ll try", "I tried FBO but having an old Borland Builder 6 version I can t manage using FBO .. . .. . My goal is to display the same buffer in two openGL windows .", "So either fix the loops or you can just replace them with C++Builder s StringReplace function instead .", "I m a beginner in C++ so please.. . make it really simple unless it is too hard .", "The described problems disappear if I : .. . .. . include Inner.h within Outer.h or .. . explicitly calling inner.reset .. . .. . I work on legacy code that compiles only with C++-Builder 6 so I ve to stick to std : : auto-ptr since it s the only smart ptr implementation the compiler seems to support so there is currently no alternative to this type that I know is deprecated by C++11 .", "So I m trying to use std : : any of function but C++ Builder 6 says that there is an error : .. . .. . C++ Error Unit1.cpp 93 : E2316 any of is not a member of std .. . .. . .. . But I have include algorithm in my Unit1.h .. . .. . My Unit1.cpp : .. . .. . It s weird because I m using such functions as std : : set union std : : set-intersection std : : set-difference in the same programm and everything worked fine untill std : : any of .", "You may use fill n like suggested in : C C++ initialization of a normal array with one default-value http : stackoverflow.com questions 1065774 c-c-initialization-of-a-normal-array-with-one-default-value .. . .. . If no fill n is available you can always use memset like :", "any of is C++11 and newer did you compile with C++11 enabled", "Even though I view it as strange behavior I m normally a C programmer", "Thank you Remy your help looks great but I ve got two errors C++ Error Unit4.cpp 22 : E2268 Call to undefined function StartsText C++ Error Unit4.cpp 24 : E2268 Call to undefined function EndsText ......do you have any idea for them", "In the C++Builder installation folder check the following files : .. . .. . source cpprtl Source misc errormsg.c - implementation of ErrorMessage .. . source cpprtl Source procses abort.c - implementation of abort which calls ErrorMessage .. . source cpprtl Source misc assert.c - implementation of assert which calls ErrorMessage .. . .. . errormsg.c defines an undocumented messagefunc function pointer that you can set to override the default behavior .", "Malcolm and I work together on Indy C++ issues and he wrote the C++ compile scripts for Indy .", "I read C++ : auto-ptr + forward-declaration", "something like -std c++11 or similar", "due t bug either in compiler or in C++ engine .", "After reading some answers to What is the easiest way to make a C++ program crash", "@ChristianHackl Well it is possible that it works but I m just a newbie and I have no idea how to use it with c++ instead of Java .", "The containing class has an explicitly defined destructor that isn t inline but my compiler Borland C++ 5.6.4 fails to compile .", "As far as I m aware the curly-brackets syntax is only used when initializing the array for every C++ compilator .", "I load an image like this : .. . .. . And when I run project on another pc that C : Users Raul Desktop is diffrent .", "My compiler C++Builder6 syntactically allows array member initialization at least with zero but actually it doesn t really do it .", "For all of the c++11 features you need to use the 64-bit version ." ] }
{ "confidence": [ 42.82286834716797, 42.624488830566406, 42.41384506225586, 38.51719284057617, 36.763458251953125, 36.12848663330078, 35.844482421875, 35.53584671020508, 34.89942169189453, 33.42034149169922, 33.370460510253906, 33.311790466308594, 33.311790466308594, 32.77183532714844, 32.52790069580078, 32.52790069580078, 32.45515441894531, 32.218936920166016, 31.55828285217285, 31.55828285217285 ], "content": [ "Question : I m trying to upgrade an C++ Builder 6 component package to rad studio seatle 10 . I can compile and install successfully in C++ Builder 6 . But I try project compile and install in Rad Studio C++ Builder then showing that linker-error message . ilink32 Error Fatal : Unable to open file VCLJPG.BPI .. . .. . The package requires in Rad Studio Seatle .. . .. . enter image description here http : i.stack.imgur.com TQvQ6.png .. . .. . Also I ve checked vcljpg.bpi file exist F : Borland CBuilder6 Lib Release in C++ Builder 6 . But I couldn t find this file in Rad Studio Seatle . What equivalent of this file on Rad Studio Seatle what s my problem . .. . Answer : The JPG code is no longer in its own vcljpg package . When GIF and PNG were added to the RTL years ago they were all merged together into a new vclimg package . You need to update your package s Requires list to refer to vclimg.bpi instead of vcljpg.bpi and then make any updates to your package s source code as needed . Comment : thanks for reply @Remy I found the vclimg package that here . C : Program Files x86 Embarcadero Studio 17.0 lib win32 release vclimg.bpi I ll try Comment : I used vclimg instead of vcljpg . But when I Install the component then showing IDE that error message Can t load package E : utildb componts Compont2 Source . PictList.bpl . I don t understanding source of problem . Comment : There is not enough information to diagnose that particular error . Your package likely has another dependency that is not being satisfied . In any case that should be asked in a separate question . This question has been answered as asked . Comment : I removed vcljpg from requires list . you re right.thanks for interest @Remy", "Question : I have problems with rewriting code to Builder c++ 6 format . So the tasks are as follows : .. . .. . 1 . Delete from S first occurrence of a combination of red .. . 2 . After first combination th paste e .. . 3 . Copy 5 symbols to from S and paste them after the 6th member have problems with solving .. . 4 . Delete all . and from S .. . .. . void fastcall TForm1 : : Button1Click TObject Sender .. . .. . AnsiString S Edit1- Text .. . AnsiString X Edit2- Text .. . string str .. . .. . Delete from S first occurrence of a combination of red .. . str red .. . std : : size-t pos S.find str .. . if pos std : : string : : npos .. . S.replace pos str.length .. . .. . .. . After first combination th paste e .. . str th .. . pos S.find str .. . if pos std : : string : : npos .. . S.insert pos + str.length e .. . .. . .. . Copy 5 symbols to from S and paste them after the 6th member .. . str 6 .. . pos S.find str .. . if pos std : : string : : npos .. . X S.substr pos + str.length 5 .. . .. . .. . Delete all points and comas .. . for int i 1 i s.Length i++ .. . if s i . s.Delete i 1 .. . .. . for int i 1 i s.Length i++ .. . if s i s.Delete i 1 .. . .. . Label1- Caption S .. . Label2- Caption X .. . Comment : I d strongly recommend that you update to a version newer than 2002 . But really before that I d work on doing away with C++ Builder all together and going to Visual Studio 2013 . .. . Answer : You are mixing AnsiString and std : : string logic together or maybe you are migrating from std : : string and do not know how to rewrite for AnsiString . find replace insert length and substr are all std : : string methods . The AnsiString equivalents are Pos Delete Insert Length and SubString . There is no reason to mix the two string types together in the same function . Pick one or the other . Also your two loops to delete periods commas are broken . You are ignoring the last character in the string and you skip a character every time you delete a character . So either fix the loops or you can just replace them with C++Builder s StringReplace function instead . If you want to re-use your existing std : : string -based code you can do that . You do not have to use AnsiString : .. . .. . However since you are interacting with VCL components it might make sense to rewrite the code to use AnsiString instead or better System : : String in case you ever migrate the code to a modern C++Builder version :", "Question : So I m trying to use std : : any of function but C++ Builder 6 says that there is an error : .. . .. . C++ Error Unit1.cpp 93 : E2316 any of is not a member of std .. . .. . .. . But I have include algorithm in my Unit1.h .. . .. . My Unit1.cpp : .. . .. . It s weird because I m using such functions as std : : set union std : : set-intersection std : : set-difference in the same programm and everything worked fine untill std : : any of . Sorry for bad english . Comment : any of is C++11 and newer did you compile with C++11 enabled something like -std c++11 or similar Comment : Side note : fastcall looks ancient Comment : @DieterL cking : Borland s fastcall calling convention is for compatibility with Delphi s register calling convention which is certainly not ancient . Maybe you are thinking of Microsoft s fastcall which is msfastcall in Borland . .. . Answer : C++ Builder 32-bit is not C++11 compliant . For all of the c++11 features you need to use the 64-bit version . std : : set union std : : set-intersection and std : : set-difference are not c++11 features which is why they work . Comment : C++Builder 6 does not support 64-bit development and thus does not support C++11 . That was added in C++Builder XE3 .", "Question : I am creating a class for a project using an Emericc axe . The goal of this class is to use the error frames to return a message . I have to use only STL s std : : string variables . However the IDE doesn t recognize any string manipulation after one of the find functions . Note that I m French so the variables I use are in my language the code is pretty simple tho . The error I encounter is in this function : .. . .. . C++Builder 6 tells me : C++ Error ErrMericc.cpp 1 : impossible to call code execution because of source code errors . When I double click on this error message it brings me at the first line of source code in the file . The error message doesn t seem to stop popping except if I comment out the trame.find posVirg . Could you please explain me where my error is Thank you in advance . EDIT : .. . .. . It looks like C++ Builder 6 just doesn t like the code line.. . This works : .. . .. . This doesn t : .. . .. . Weird . I m starting to think the problem comes from the IDE . So far I ve tried copying and moving the files into a new folder but the malfunction isn t affected . Comment : Do you have a more precise error message I m afraid the current information is too vague to diagnose the problem . Please also note that C++ Builder 6 was released in 2002 which makes it a very old and outdated compiler . Comment : @SirDarius Unfortunately I don t.. . Here is a screencap http : s28.postimg.org 7bz1gntfx stack Overflow builder String err Window.png maybe it can help . This is a school project so I m required to use that version although I d enjoy something more recent . Comment : This is the same error that you quoted in your question . What are the errors in the source code This is pretty surprising . As far as I remember C++ Builder was always helpful to me with its error messages when I used it back then . Comment : I found the error with some IRL help and documentation about the std : : strings . @SirDarius Thanks for your time and help : Comment : On a side note you are misusing std : : string : : find . The second parameter is an input parameter the starting position of the search but you are treating it as-if it were an output parameter the result-of the search . Change trame.find posExcl to posExcl trame.find trame.find posVirg to posVirg trame.find posExcl+2 and nb.push back trame.substr posExcl+2 posVirg to nb trame.substr posExcl+2 posVirg- posExcl+2 . Also StrToInt trame.c str will always fail due to the punctuation you likely wanted StrToInt nb.c str instead . .. . Answer : Turns out the error came from my using of the push-back function : I can push-back only one char at a time . Inputing multiple values in one memory location made to contain one char wasn t a good idea . Apparently C++Builder 6 just didn t know what to do as the errors came from my use of something in the stl . So I shouldn t have done : .. . .. . But : Comment : std : : string is a container of char values so push-back only accepts char values . Just like a std : : vector T can push-back only T values . In every container type push-back only accepts values of the container s element type . Comment : In this case if I really wanted to use a function I should have use std : : string : : append . Thanks for your helpful comments .", "Question : I m trying to migrate my project from C++ Builder 6 to C++ Builder 2010 . There is a TChart in the project . And when I compile it in BCB 2010 I getting many errors like E2247 fastcall TSeriesPointer : : ChangeStyle TSeriesPointerStyle is not accessible . What can it be There is string with failed code : .. . .. . Series8 -- it s an object of TSeries type . InpStr -- is an UnicodeString object . Comment : It s private or protected Comment : If this is purely from migrating between compilers could any compiler macro mess up the accessiblity between those versions Comment : Either way you want to see TSeriesPointer definition to see if ChangeStyle is declared private protected instead of public Comment : I can t find neither TChart API nor source . So I can t say protected it or private . .. . Answer : I found an answer . In Builder C++ 2010 functions with names beginning Change is changed to properties without Change . i.e : .. . .. . to :", "Question : When I create an empty console-application and use an STL container in it FastMM reports a memory leak when the application is closed . For example if I create a std : : vector int in main : .. . .. . Compile run and close no leaks are reported . If I do : .. . .. . I get : .. . .. . This application has leaked memory . The small block leaks are : .. . .. . 309 - 340 bytes : Unknown x 1 .. . .. . Similarly I get a leak reported on : .. . .. . And also a leak is reported on : .. . .. . For some containers like std : : deque its enough just to create one and even without altering its content a leak is reported when the application is closed . Can anyone explain what is happening I use Borland C++Builder 6 and FastMM4 . I ve been changing various settings in FastMMOptions.inc however I m still seeing these leaks reported . Comment : Borland C++Builder 6 https : en.wikipedia.org wiki C 2B 2BBuilder Version history appears to have come out in 2002... . any chance you could use a more modern compiler Even a more recent version of C++Builder 14 years is a long time in software terms . Comment : I say that because given that snippet of code there is nothing that would cause a memory leak without seeing the surrounding context other than a faulty std : : vector implementation by the compiler . Or a false positive reported by the leak detector . Comment : Yes we have Borland XE7 and new projects are developed in new environment . However I need to investigate memory-leaks in existing projects which we haven t migrated to XE7 yet due to their size . I find the FastMM very useful but because the STL is used at many places in our code it is pointing out the leaks that confuse me very much . Comment : @CoryKramer : sometimes people don t have the option of using a modern compiler . I myself still use C++Builder 6 at my day job . Not because I want to but because my company requires it and not from a lack of trying to upgrade over the years the PTBs would not allow it because newer versions were more unstable and did not satisfy business requirements . Comment : std : : deque in C++Builder 6 is bugged and unusable .. . Answer : Clearing a std : : vector does not deallocate the memory used for the vector s internal array it merely destructs the items inside the array and then sets the std : : vector : : size to 0 . The array itself is still allocated so it can be reused for new items pushed in the vector . The vector s destructor will deallocate the array . In C++Builder 6 the default STL library is STLPort replaced with Dinkumware in C++Builder 2006 . STLPort s implementation of the std : : vector merely destructs the array items as-if clear has been called but does not deallocate the array itself thus the leak you are seeing . Which is not actually a leak at all according to the following FAQ on the STLPort website : .. . .. . Q6.2 My tool detect memory-leaks in application with STLport . Is this leak from STLport http : stlport.sourceforge.net FAQ.shtml leaks .. . .. . A6.2 In most cases this are pseudo memory-leaks that some tools wrongly supports . .. . In the default compile of STLport the node allocator is used to allocate internal memory . The node allocator works by pre-allocating a large chunk of memory and handing out small memory blocks out . The memory chunk is not freed during running an application that uses STLport i.e . it don t returned to system There are tools like BoundsChecker Purify or Valgrind that check for memorytml leaks for memory that isn t freed when no longer used . These tools may report false memory-leaks when one uses STLport s node allocator . The memory chunk is normally freed at application-end but the memory checkers usually report memory-leaks before that point . Another memory problem might be reported when you use shared-libraries e.g . DLL this problem specific for Windows DLL model that uses STLport internally and are statically link-to it . If memory is allocated in a dll and released in an other then the STLport node allocator will keep the released memory for a future use . If you do not use this memory then your application global memory consumtion will grow until the appli crash even if there is no realy memory leak . This is why you should always use a coherent configuration everything in dll or everything in static lib . .. . There are ways to remove the pseudo memory-leaks since the memory is properly freed at the end of the program the leaks are just pseudo-ones . You could use another allocator that is used in STLport . Open the file stlport stl site config.h and uncomment either one of the following : .. . .. . .. . STLP USE NEWALLOC enables a simple allocator that uses new delete .. . STLP USE MALLOC enables a simple allocator that uses malloc free .. . .. . .. . The new delete allocator has the advantage of giving an entry-point to track memory starvation see set new handler in your compiler doc or the C++ Standard for more information . .. . Alternatively you can define the following symbol just uncomment it in stlport stl site config.h . .. . .. . STLP LEAKS PEDANTIC .. . .. . .. . The symbol forces freeing all memory chunks . Also see the comments around the symbol in the config file . .. . Note that you have to recompile STLport AND your application and all of your dependent libraries if you make any change to the file .. . There are also some defines that help in debugging memory problems in STLport . In STLP DEBUG mode just also define the following symbols either in . stlport stl user config.h or in your project settings : .. . .. . .. . STLP DEBUG ALLOC .. . STLP DEBUG UNINITIALIZED .. . .. . .. . You don t need to rebuild STLport for these options but you have to rebuild your application and all of your dependent libraries if you make any change to the file . That said the RogueWave STL which was used in earlier C++Builder versions is also shipped with C++Builder 6 for backwards compatibility with older code and does not suffer from this issue . You can switch from STLPort to RogueWave by defining USE OLD RW STL in your project s conditionals list . Comment : Excellent and very informative reply . With USE OLD RW STL defined FastMM does not report any leaks on the containers used in our project std : : vector std : : list std : : deque . Thank you very much . It is so much easier to go through the memory-leaks report now . Comment : One other thing I noticed any usage of std : : cout reports a leak too . Luckily there are not many in our code but if you know another magic conditional define to stop those showing up in report that would be great . Example : std : : cout hello endl reports : 13 - 20 bytes : Unknown x 1 21 - 36 bytes : std : : codecvt char char std : : mbstate t x 1 Unknown x 2 37 - 52 bytes : Unknown x 2 53 - 68 bytes : std : : ctype char x 1 rwstd : : locale imp x 2 85 - 100 bytes : Unknown x 2 485 - 532 bytes : Unknown x 3 while printf hello n reports no leak", "Question : I want to load some images from a folder but I want to works on another pc . I load an image like this : .. . .. . And when I run project on another pc that C : Users Raul Desktop is diffrent . How can I load that image from another pc I use C++ Builder 6 . .. . Answer : If you need to load a JPEG .jpg you can use :", "Question : I expect the following code to invoke my unexpected handler but my terminate handler is called instead : .. . .. . The C++ Builder 6 Developer s Guide http : www.informit.com articles article.aspx p 31668 explicitly encourages installing custom unexpected handlers via set unexpected . What am I doing wrong or is this simply a bug in C++-Builder 6 Comment : what happens if you remove catch const std : : logic error Comment : @stijn you mean the whole try-catch thing The same . .. . Answer : When uncaught exception is occur terminate is called . When unexpected exception is occur unexpected is called . I ll show you example program which occur terminate unexpected : .. . .. . live example for terminate http : ideone.com oynChl unexpected http : ideone.com 9zhejv Comment : +1 This also answers my next question which I added as a comment to the first answer http : stackoverflow.com a 25403651 2932052 . Comment : ...but is terminate called for this only reason Comment : @Wolf According to http : en.cppreference.com w cpp error terminate there s 10 cases to call terminate .", "Question : My compiler C++Builder6 syntactically allows array member initialization at least with zero but actually it doesn t really do it . So the assert in the example given below fails depending from the context . Changing the compiler isn t an option at the moment . My question is : what will be the best way to repair this flaw with respect to future portability and standard conformance .. . .. . Edit : As it turns out my first example was too short . It missed the point that the fill level of the array is so essential that it has to be stored very close to the array which is : in the same class . Even if the original problem remains my actual problem pattern is usually this : Comment : qc.embarcadero.com wc qcmain.aspx d 83751 http : qc.embarcadero.com wc qcmain.aspx d 83751 shows this is fixed in newer versions XE onwards and shows a workaround using boost : : value initialized http : www.boost.org doc libs 1 54 0 libs utility value init.htm Comment : @hvd : I think suggesting boost : : value initialized would be a good regular answer . Sure it s somewhat heavy in the source but since the work is restricted to the declaration it seems to me the best option so far . Comment : Sure . I ll do so when I can test to verify what actually works and what doesn t but that won t be for some hours . Comment : Actually I can t get C++Builder 6 to even compile this . It doesn t accept the : b syntax complaining Call to function b without prototype . Comment : @hvd : Thanks for your effort . I have applied BCB6 patch4 http : edn.embarcadero.com article 29793 maybe this matters bcc32 --version says Borland C++ 5.6.4 f r Win32 Copyright c 1993 2002 Borland at my installation . .. . Answer : I would like to append previous posts that if you are using a character array as a string then it is enough to write in the constructor .. . .. . TT b 0 0 Comment : Yes that s true but choosing char in my example was maybe a mistake strings are already implemented using AnsiString or std : : string .", "Question : I m making an application in C++ Builder 6 . I need to use my own color in the Caption of a TLabel . I mean not a standard color like clBlue clRed etc but like 8c8a8a it s grey dedcdc it s white . There are some hue of colors that I need . I have searched the Internet but I have not found anything . Is there a way to do this Please don t say something like Yes change to VS QT or something modern . I don t want to change away from C++Builder 6 . .. . Answer : Use a hex-encoded number eg 0x8c8a8a . This can be done in the Object Inspector at design-time or in code at run-time : .. . .. . Alternatively use the Win32 RGB https : msdn.microsoft.com en-us library dd162937.aspx macro and type-cast the returned COLORREF https : msdn.microsoft.com en-us library dd183449.aspx to TColor . This can only be done in code at run-time : Comment : Thank u it works but I have one problem . Not every color is the same as RGB . White hue is fine but when i want to use blue : 99ccff it gives me something like gold yellow .", "Question : I made an mdi application in Borland C++Builder 6 . I made 2 forms : .. . .. . 1 . The Main Form .. . 2 . Child Form .. . .. . I set Child Form to Available Forms . When I want to call a Child form . I use the following command : .. . .. . Why when I call the command again child form into 2 like this http : i.stack.imgur.com 6rjQ8.png Comment : Maybe because you are calling CreateForm .. . Answer : First don t use Application- CreateForm use new instead : .. . .. . Second what you describe is normal . You are creating a new instance of an independent child form and that is what you see . If you don t want another child then don t create a new one re-use the one you already have eg : Comment : Thanks Bro.. . its work : D", "Question : I have a TFrame with some components on it and among all it I have a TPanel and a TPaintBox such that the PaintBox size is the same as the Panel . I would like that user will see the Panel and not only the PaintBox . The problem is that when I right-click on the Panel and choose Control- Send to Back it doesn t work . Any assumption or suggestion for solution I am working with Borland C++Builder 6 . .. . Answer : TPaintBox is a TGraphicControl descendant . It has no HWND of its own it simply draws on its Parent when the Parent is painted . As such a TPanel which has an HWND of its own can never appear behind a TPaintBox unless the TPaintBox is a child of the TPanel .", "Question : null .. . Answer : What does Application- ProcessMessages do on Borland C++Builder 6 What is the meanning of this function When should I call it Is there any option that this function will throw an exception Comment : Here you have the answer of your question stackoverflow.com questions 25181713 http : stackoverflow.com questions 25181713 i-do-not-understand-what-application-processmessages-in-delphi-is-doing Comment : you should not call it directly Windows will but you can hook it up .. . by changing the WinProc function handler to your own .. . of coarse it is a good idea to call the original handler in it too so the VCL will work too .", "Question : I m using C++ Builder 6 and f.e . Button or ProgressBar has very old look like from Windows 95 98 . : P .. . .. . How can I change it I actually want to make them like in Windows . I mean make program in Builder and this program will show button in Windows 7 like it button looks in Windows 7 show ProgressBar in W10 W8 like it looks in W10 W8 . I want to make it depend on the OS . I m a beginner in C++ so please.. . make it really simple unless it is too hard . Comment : How can I change it Get a more modern compiler like VS2015 . Comment : @ That might not be necessary there is a way to do it relating to manifest files . Even programs compiled with MSVC 2010 have the old look Comment : See if any of the steps in msdn.microsoft.com en-us library windows desktop https : msdn.microsoft.com en-us library windows desktop bb773175 v vs.85 .aspx can apply to you . You might need to create a .rc file Comment : @ i wont i hate it literally . Maybe C++ Builder is not so modern it is very old actually but i like it and it s very easy for me . I don t fell good in VS or QT . immibis i will try if someone have other things come on . Comment : @Zagrajek i hate it literally Seems you fell down into some blinders syndrome . I d never let my powers and capabilities be restricted by any particular 3rd party IDE framework or such . You may prefer walking in the dark tunnels below . .. . Answer : C++Builder 6 predates XP and the Visual Styles https : msdn.microsoft.com en-us library windows desktop bb773187.aspx feature so its VCL has no built-in support for theming styling at all there are 3rd party components for custom skinning though . That is why your UI looks old . Many of the native VCL components are based on standard Win32 controls that support Visual Styles if a ComCtrl v6 manifest is added to your application https : msdn.microsoft.com en-us library windows desktop bb773175.aspx . However several VCL components exhibit run-time problems when styled since they were not designed to handle styling correctly . Fortunately you can install SoftGems XP Theme Manager http : www.soft-gems.net index.php controls windows-xp-theme-manager to address these issues SoftGems code was integrated directly into the VCL in a later C++Builder version . SoftGems TThemeManager component dynamically hooks into various VCL components at runtime and also allows user-defined hooks for custom-controls to fix styling-related bugs in them . Just drop it on your MainForm and optionally set a few properties to control what type of UI controls it hooks . SoftGems TXPManifest component has an embedded ComCtrl v6 manifest resource to enable Visual Styles . Just drop it on your MainForm there is nothing to configure . However enabling Visual Styles is all that TXPManifest does . An app can only have one manifest and if you need to customize the manifest such as for handling UAC specifying Windows compatibility flags etc - things which most modern apps pretty much need to do nowadays don t use TXPManifest at all . You will have to create your own custom manifest compiled into a .res file that is linked into the resources of your application s .exe file . The easiest way to do that is to define the manifest content in an external .manifest file and then compile it into a .res file using an .rc file eg : .. . .. . myapp.exe.manifest .. . .. . mymanifest.rc : .. . .. . If you add the .rc file to your project the .manifest file will be compiled and linked into the .exe automatically . Otherwise you will have to manually compile the .rc file into a .res file using C++Builder s command-line brcc32 tool http : docwiki.embarcadero.com RADStudio en BRCC32.EXE the Resource Compiler and then you can add the resulting .res file to your project : .. . .. . Otherwise forget all of this and just use 3rd-party component suites that provide advanced UIs and functionality such as TMS https : www.tmssoftware.com site DevExpress https : www.devexpress.com products vcl Raize http : www.raize.com DevTools RzComps Default.asp etc . Comment : Okay thank you guys it works But i have one more question it works when im in Builder and when im running .exe in project folder but when i take .exe to another location even with rc and manifest it doesn t work . What should i do now Comment : @Zagrajek it works fine I ve been doing it for years . Do you have your manifest compiled into the resources of your .exe file with the correct resource ID and resource type It sounds like you do not or haven t done it correctly . Comment : A guy told me that i should make .res file from this .rc file but when i m doing it by brcc32.exe it doesn t make .res file . I don t know what i m doing wrong . Comment : @Zagrajek : netiher do we as you have not provided any details about what you are actually doing . But in general yes you need a .res file and you need to link it into your .exe resources . If you add an .rc file to your project it will automatically be compiled into a .res file and linked into the .exe . Otherwise yes you can use brcc32 manually to create a .res and then add that to your project instead of .rc . If you are not getting a .res file from brcc32 you are not calling it correctly . Comment : How should i call that in command-line", "Question : null .. . Answer : I d like to ask a question . I am using borland C++ builder 6 and i have a ServerSocket now i need to open a connection and to listen from client socket . my code is like that .. . .. . and here in the event of ServerSocketClientRead I have .. . .. . when I try to debug the program i found the code .. . .. . is true but it will never go to code in .. . .. . I d like to ask is there any error in my code of connecting server in which case the event ServerSocketClientRead will be executed Thank u very much for ur kindness help .. . .. . btw i think i know when ClientSocket- Socket- SendText tbxClientText- Text is executed ServerSocketClientRead is activated Comment : You don t connect to a client socket - you open a server socket and wait for the client to connect to you . The sktServerSocket- Socket- Connected just means the server socket is listening not that there are any clients yet . There is an event that fires for client connecting and client activity . I m not at my dev PC at the moment but I ll write a good answer tomorrow if Remy doesn t get here first . Comment : @MattMcNabb : Feel free to answer this one : Comment : thank u very much", "Question : I should make 2 codes that building graphics . I already have 1 . It is just building picture : .. . .. . But 2nd task is much harder for me . I shoud make new struct .. . .. . and then make linked-list . Then put points x y to StringGrid and then build the grapfic . I made some pieces of code but it doesnt work correctly . Need help . Comment : If you used a modern compiler you could use std : : list and not worry about creating and debugging your own linked-list . Comment : C++Builder 6 has std : : list . .. . Answer : Your first loop is not linking the nodes together so they all have a next value of NULL thus your second loop runs only 1 iteration for the head node . And you should also be using new instead of malloc . Try this instead : .. . .. . And do not forget to free the nodes when you are done using them : .. . .. . With that said you should use the std : : list class instead let it handle the memory-management for you :", "Question : I expect the following code to invoke my unexpected handler but my terminate handler is called instead : .. . .. . The C++ Builder 6 Developer s Guide http : www.informit.com articles article.aspx p 31668 explicitly encourages installing custom unexpected handlers via set unexpected . What am I doing wrong or is this simply a bug in C++-Builder 6 Comment : what happens if you remove catch const std : : logic error Comment : @stijn you mean the whole try-catch thing The same . .. . Answer : The handler set by the call to std : : set unexpected for std : : unexpected http : en.cppreference.com w cpp error unexpected will be called when an unexpected exception is thrown not when an exception is unhandled . The unexpected handler is called when a dynamic exception specification is violated . By way of example .. . .. . The output is .. . .. . my unexpected handler .. . .. . The handler set by std : : set terminate is called by std : : terminate http : en.cppreference.com w cpp error terminate for numerous reasons as listed in the reference . Of interest here is that the default behaviour when an exception is thrown but not caught is to call std : : terminate . Comment : Does this mean unexpected does only address exception specifications Comment : @Wolf I believe so yes . It is called when a dynamic exception specification has been violated . See en.cppreference.com w cpp error unexpected http : en.cppreference.com w cpp error unexpected Comment : @Wolf : Yes . An expected exception is one that matches the exception specification of the function it s leaving . An unexpected exception is one that doesn t . In your example the exception is unhandled but not unexpected . Comment : Is there a specific way to detect uncaught exceptions or is terminate only called in fatal situations Comment : @Wolf I think terminate is pretty much it http : en.cppreference.com w cpp error terminate . It is called if an exception is not caught . I m not sure on the situation but catch .. . catches all the exceptions.. .", "Question : My compiler C++Builder6 syntactically allows array member initialization at least with zero but actually it doesn t really do it . So the assert in the example given below fails depending from the context . Changing the compiler isn t an option at the moment . My question is : what will be the best way to repair this flaw with respect to future portability and standard conformance .. . .. . Edit : As it turns out my first example was too short . It missed the point that the fill level of the array is so essential that it has to be stored very close to the array which is : in the same class . Even if the original problem remains my actual problem pattern is usually this : Comment : qc.embarcadero.com wc qcmain.aspx d 83751 http : qc.embarcadero.com wc qcmain.aspx d 83751 shows this is fixed in newer versions XE onwards and shows a workaround using boost : : value initialized http : www.boost.org doc libs 1 54 0 libs utility value init.htm Comment : @hvd : I think suggesting boost : : value initialized would be a good regular answer . Sure it s somewhat heavy in the source but since the work is restricted to the declaration it seems to me the best option so far . Comment : Sure . I ll do so when I can test to verify what actually works and what doesn t but that won t be for some hours . Comment : Actually I can t get C++Builder 6 to even compile this . It doesn t accept the : b syntax complaining Call to function b without prototype . Comment : @hvd : Thanks for your effort . I have applied BCB6 patch4 http : edn.embarcadero.com article 29793 maybe this matters bcc32 --version says Borland C++ 5.6.4 f r Win32 Copyright c 1993 2002 Borland at my installation . .. . Answer : I think you may use this : .. . .. . This way you will solve your problem while nothing is wrong with portability and standard conformance Comment : As long as the compiler respects the value-initialisation of char . An explicit 0 might be safer . Comment : @MikeSeymour Question talk about standard and future conformance value-initialization is part of standard so I think char is more standard than int literal 0 Comment : The question is about a compiler that doesn t conform to the standard specifically one in which value-initialisation is broken . In that case I d avoid value-initialisation altogether even if I do observe that it works in this case . Comment : It s not possible to avoid value initialisation when you have const or reference members and BCB6 lacks only array member initialisation . I ve so much code that depends so heavily on proper initialisation of simple members using ctr syntax that I m absolutely sure about this .", "Question : I have a remote database mysql connected to the application C++ Builder 6 using ADOConnection and DBGrid which is displayed data ADOConnection-ADOTable-Dataset-DBGrid . ADOTable by default can not be edited by clicking on the button Edit I write readonly false and edit data . After editing the line for example the cursor moved to the line above I need to prompt the user Save changes Y N and when you select No to undo the changes . On request there is no problem . The question is how I should undo the changes preferably still on the client ie ADOTable or DBGrid .. . Answer : Okay got it myself . Three weeks of headache and five rows of code . Also if we click on other field and select No cursor would not move . But that s not a problem for now .", "Question : null .. . Answer : I m using Borland C++Builder 6 . I would like to hide a form but I want all its functionalities to remain as is . The problem is that if I change the Visible property of the form some things go wrong . In addition I can t use the Hide function since it contains code which closes the window . Comment : If you want to Hide your forms they must be coded so the do not access visual stuff while hidden otherwise exceptions and other weird stuff happens . Try minimizing instead that should be safe . Comment : do not access visual stuff while hidden otherwise exceptions and other weird stuff happens - such as I have never run into this problem . It might be specific to the particular UI controls being used . Comment : The problem is that if I change the Visible property of the form some things go wrong - like what exactly Please be more specific ." ] }
[ "yes-answer-long", "yes-answer-short" ]
visual-c++
UNK_RELATION
wsgi@server@39
wsgi -- wsgi is a python standard web @placeholder gateway interface .
{ "confidence": [ 55.87086868286133, 49.87360763549805, 49.49763107299805, 43.76300811767578, 41.457862854003906, 41.457862854003906, 40.73771286010742, 40.49640655517578, 40.32198715209961, 39.63050842285156, 39.5235710144043, 39.14296340942383, 38.34761047363281, 38.33039855957031, 38.33039855957031, 38.33039855957031, 38.1894645690918, 38.13521194458008, 38.11580276489258, 38.03052520751953, 37.92204666137695, 37.84862518310547, 37.641178131103516, 36.93214797973633, 36.09395217895508, 36.06925582885742, 35.9036865234375, 35.9036865234375, 35.6999626159668, 35.411441802978516, 35.33633041381836, 35.29560470581055, 35.035057067871094, 34.84123611450195, 34.800392150878906, 34.78387451171875, 34.61183547973633, 34.60298538208008, 34.60298538208008, 34.60298538208008, 34.60298538208008, 34.60298538208008, 34.52742004394531, 34.35610580444336, 34.137046813964844, 33.95344161987305, 33.95344161987305, 33.85935974121094, 33.74009323120117, 33.74009323120117, 33.74009323120117, 33.74009323120117, 33.686607360839844, 33.64996337890625, 33.64996337890625, 33.63542556762695, 33.422447204589844, 33.422447204589844, 33.404296875, 33.3987922668457, 33.25096130371094, 33.17545700073242, 33.17545700073242, 33.17545700073242, 33.17545700073242, 33.17545700073242, 33.11529541015625, 33.09054946899414, 33.09054946899414, 33.09054946899414, 33.09054946899414, 33.09054946899414, 32.99646759033203, 32.92858123779297, 32.880062103271484, 32.824005126953125, 32.82371520996094, 32.804420471191406, 32.705894470214844, 32.705894470214844, 32.705894470214844, 32.705894470214844, 32.705894470214844, 32.558982849121094, 32.46039581298828, 32.35525894165039, 32.35525894165039, 32.35525894165039, 32.33597946166992, 32.325469970703125, 32.325469970703125, 32.325469970703125, 32.325469970703125, 32.325469970703125, 32.31256866455078, 32.31256866455078, 32.31256866455078, 32.31256866455078, 32.31256866455078 ], "content": [ "WSGI is a Python-specific interface standard for web-applications .", "CGI applications will find that many of the keys will be in os.environ because the gateway server has provided them and the cgi to wsgi gateway interface say wsgiref.handlers.CGIHandler need add only the wsgi specific keys before calling the wsgi application .", "WSGI is a Python specific interface for writing web-applications .", "That s the responsability of the WSGI gateway eg .", "For Python one such option is WSGI .", "WSGI is Python only .", "From the web I ve gleaned that WSGI is a CGI for python web development frameworks .", "WSGI is the standard that allows webservers to communicate with Python applications .", "Are you using the WSGI interface directly", "WSGI is a Python API connecting two or more Python WSGI-compatible modules inside the same process Python interpreter .", "There are wrappers for about any web server protocol to provide the WSGI interface .", "In a project like Django https : www.djangoproject.com you can use a WSGI Web Server Gateway Interface http : en.wikipedia.org wiki Web Server Gateway Interface server from the Flup module http : www.saddi.com software flup .", "Python connector WSGI .", "Below is the Python script I wrote for isapi-wsgi .", "For me the problem was wsgi python version mismatch .", "But mod-python is deprecated and I want to migrate to wsgi .", "Isn t there something standard in WSGI itself for this", "See Graham Dumpleton s post : .. . .. . WSGI and printing to standard output http : blog.dscpl.com.au 2009 04 wsgi-and-printing-to-standard-output.html", "I m having a problem with the sessions in my python wsgi web app .", "WSGI is a specification .", "If you need a very small WSGI server which only relies on stuff from the standard Python distribution then use the WSGI server from the wsgiref module .", "WSGI is an interface that is based on the CGI design pattern .", "Learn WSGI .. . .. . WSGI is absurdly simple. .", "Wsgi is for interacting with a web server Apache or Nginx .", "Are you sure libapache2-mod-wsgi-py isn t for Python 3.3 .", "Or is there any way to use tornado web sockets with wsgi .", "It also support wsgi .", "It could be refactored for WSGI .", "This is the basic wsgi code .", "IMHO flup is a much more lean and simple way to deploy WSGI-apps and serves as a gateway between a WSGI-app and AJP FCGI SCGI CGI .", "Seriously - IIS sucks on running python wsgi apps .", "To run a WSGI as a CGI script you can use the CGIHandler http : docs.python.org library wsgiref.html wsgiref.handlers.CGIHandler in Python standard-library .", "This is my web application which is binded with web.py and wsgi .", "@Merlin i think it will not be an easy way Flask uses WSGI and WSGI is not asynchronous .", "I have a wsgi directory in which i have some python code saved in a .wsgi file .", "I ve got a IIS 7.5 web server runnig a python website using the isapi-wsgi module .", "There is no WSGI with Klein .", "This question is tagged wsgi .", "The wsgi is setting the path correct .", "How to install WSGI support", "How to install WSGI support", "Helped me understand WSGI .", "To have WSGI support you ll need to have installed a WSGI module like mod-wsgi http : code.google.com p modwsgi or use a web server with WSGI baked in like CherryPy http : tools.cherrypy.org .", "The problem only exists with WSGI .", "Since fcgi and wsgi are two different ways to interface a programming language to a web request they do very similar things .", "I m using CherryPy in order to serve a python application through WSGI .", "You might want to check which python interpreter is pointed to by wsgi .", "The WSGI API uses Python language features like iteration generators and passing of callable objects between the cooperating WSGI-compatible modules .", "WSGI is a protocol not a server .", "wsgi is a protocol. . and 2 .", "The setup is on apache with WSGI .", "Write a WSGI app that does this .", "It is not related to WSGI or php or any other specific web technology .", "Example the sock is var run httpd wsgi.1769.1.1.sock but apache looks for var run httpd wsgi.1769.0.1.sock .. . .. . There are no permission issues AFAIK the problem is with the WSGI sock number apache is looking up .", "Exact log line : 2 No such file or directory : client A.B.C.D : 57798 mod-wsgi pid 1549 : Unable to conn ect to WSGI daemon process wsgi on etc httpd run wsgi.1144.0.1.sock after multiple attempts .", "You should now run your application with the WSGI interface .. . .. .", "Try to enable wsgi mod in Apache .. . .. . If you come across below error .. . .. . ERROR : Module mod-wsgi does not exist", "It is a limitation of the WSGI specification itself in as much as the WSGI specification prohibits use of chunked request content by requiring a CONTENT LENGTH value for request .", "I never use IIS but IIS supports CGI gateway therefore you should be able to adapt CGI with WSGI .", "Therefore running a scheduler in a WSGI worker is not a good idea .", "It s not a framework but more a protocol for web-frameworks to use. . .. . .. . For creating sites using WSGI is not the right way - using existing frameworks is. . but if you are writing a Python web-framework then using WSGI is absolutely the right way. .", "Questions are : is class reloaded by application or wsgi", "I have configured wsgi module .", "And imported my app s wsgi callable there .", "WSGI Flow http : i.stack.imgur.com glnJA.png", "Just use cherrypy s wsgi server .", "This is because ways of hosting WSGI applications such as CGI use standard output as the mechanism for sending the content of a response back to the web server .", "In your WSGI script : .. . .. . Adjust as appropriate for your Python version etc .", "I am working with python buildout and want do deploy a diazo wsgi .", "WSGI is a Python specification http : www.python.org dev peps pep-3333 .", "For WSGI applications you are better off staying with Python 2.X .", "Python servers that allow WSGI applications do not seem to have Rewrite engines .", "Note that WSGI is not yet fully-specified for Python 3.0 and much of the popular WSGI infrastructure has not been converted or has been 2to3d but not properly tested .", "Reconfigure the WSGI app for daemon mode .", "Especially if long-polling is a concern If your existing WSGI-interface app is a must nichol.as benchmark-of-python-web-servers http : nichol.as benchmark-of-python-web-servers might be helpful .", "It has been used to deploy many wsgi compliant Python web-applications and frameworks including Django TurboGears Mercurial and Trac .", "I am using wsgi server to spawn the servers for my web application .", "There are several implementations of the WSGI specification and it s intended to be used for more than just application servers web servers but there are quite a few WSGI application servers ie .", "I have created wsgi .", "I am using WSGI .", "WSGI is an inherently synchronous API .", "What wsgi server is this", "I m on WSGI 3.X", "A solution that is WSGI compliant would be much preferred .", "Wiki states that for a Python application interface OpenShift uses WSGI 3 http : en.wikipedia.org wiki OpenShift Supported frameworks .", "You will have to install mod-wsgi as below .", "For me the issue was that the WSGI script wasn t executable .", "If you wsgi is configured on root correctly it wont .", "I googled the errors related to Target WSGI script not being loaded as Python module .", "It s working correctly without WSGI I mean via manage.py but when I move to WSGI I got the problems .", "How you apply the middleware depends on the exact WSGI server you are using see your WSGI server documentation .", "Both of them are designed to be generic WSGI middleware and easily can work with any of WSGI frameworks .", "You explained well about CGI WSGI but whats the relation differences between FASTCGI WSGI", "In pursuit of a canonical answer here are the WSGI handlers that I ve found while looking for a way to get Mongrel2 to serve a WSGI app .", "I m using apache mod-wsgi for it .", "I want to test a wsgi application .", "uWSGI provides an implementation of the WSGI specification .", "WSGI and uwsgi both ARE protocols not servers .", "What WSGI handler are you using" ] }
{ "confidence": [ 62.205352783203125, 59.6146240234375, 55.647884368896484, 54.49143981933594, 54.185523986816406, 51.985504150390625, 49.1691780090332, 49.05511474609375, 48.58448791503906, 47.54558563232422, 47.47877883911133, 47.30760192871094, 45.859153747558594, 45.53306198120117, 44.15595245361328, 44.138916015625, 43.83927917480469, 43.587615966796875, 43.217185974121094, 43.033470153808594 ], "content": [ "Question : I m just wondering what the differences and advantages are for the different CGI s out there . Which one would be best for python scripts and how would I tell the script what to use Comment : Is mod-wsgi faster My current server uses CGI what reasons are there to switch Comment : Possible duplicate : stackoverflow.com questions 219110 http : stackoverflow.com questions 219110 how-python-web-frameworks-wsgi-and-cgi-fit-together Comment : We can t tell you if mod-wsgi will be faster in your environment . You have to actually measure them in your environment with your constraints and your applications and your configuration . Comment : mod-wsgi is Apache only . Is it still the most popular in 2012 .. . Answer : In a project like Django https : www.djangoproject.com you can use a WSGI Web Server Gateway Interface http : en.wikipedia.org wiki Web Server Gateway Interface server from the Flup module http : www.saddi.com software flup . A WSGI server wraps a back-end process using one or more protocol : .. . .. . FastCGI http : en.wikipedia.org wiki FastCGI calling a server process .. . SCGI Simple Common Gateway Interface http : en.wikipedia.org wiki Simple Common Gateway Interface - a simpler FastCGI .. . AJP Apache JServ Protocol http : en.wikipedia.org wiki Apache JServ Protocol - a Java FastCGI .. . mod-python http : en.wikipedia.org wiki Mod python runs pre-loaded code per request - uses lots of RAM .. . CGI Common Gateway Interface http : en.wikipedia.org wiki Common Gateway Interface starts a process per request - slow", "Question : From the web I ve gleaned that WSGI is a CGI for python web development frameworks . FCGI seems to be a more generalised gateway for a variety of languages . Don t know the performance difference between the two in reference to the languages python and C ++ . .. . Answer : They are two different things . WSGI is a Python specific interface for writing web-applications . There are wrappers for about any web server protocol to provide the WSGI interface . FastGCI FCGI is one of such web server protocols . So WSGI is an abstraction-layer while CGI FastCGI mod-python are how the actual web servers talk to the application . Some code has to translate the native interface to WSGI there is a CGI module in wsgiref there is flup for FastCGI etc . . There is also mod-wsgi for Apache which does the translation directly in an Apache module so you don t need any Python wrapper .", "Question : I m confused . If AppEngine is supposed to allow running of WSGI-employing apps . . .. . .. . . . then why does env not contain variables that PEP 333 http : www.python.org dev peps pep-0333 lists as must -be-present -- causing the wsgiref.util.request uri to raise a KeyError I m basically writing some libraries that will need to work either AppEngine or a typical Apache + modwsgi setup . I thought it would be enough to simply write a WSGI compliant app but seems AppEngine itself . . is not .. . Answer : the environ which must contain wsgi specific keys is the environ passed to the wsgi application callable . PEP-333 does not require that this be the value os.environ . CGI applications will find that many of the keys will be in os.environ because the gateway server has provided them and the cgi to wsgi gateway interface say wsgiref.handlers.CGIHandler need add only the wsgi specific keys before calling the wsgi application . To be clear when PEP-333 mentions environ it does not mean os.environ . EDIT : google.appengine.ext.webapp.Request apparently inherits from webob.Request . Thus a webapp handler can access the wsgi environ something like so . Comment : And note that when the App Engine Python runtime gets concurrency support os.environ will become particularly untrustworthy as it could contain data from a request being served by another thread . Comment : as a general rule be very pedantic about where you get the environ pep-333 makes some choices that enable a high degree of concurrency wsgi servers may interleave interaction for multiple requests in the same process multi-threaded or even in the same thread asyncronous although I know of no actual servers in the wild that do the second and this fact has eluded the designs of many frameworks which are not async safe in any measure .", "Question : From the web I ve gleaned that WSGI is a CGI for python web development frameworks . FCGI seems to be a more generalised gateway for a variety of languages . Don t know the performance difference between the two in reference to the languages python and C ++ . .. . Answer : Correct WSGI is a Python programmatic API definition and FASTCGI is a language-agnostic socket wire protocol definition . Effectively they are at different layers with WSGI being a higher layer . In other words one can implement WSGI on top of something that so happened to use FASTCGI to communicate with a web server but not the other way around . In general FASTCGI being a socket wire protocol means that you always need some type of programmatic interface on top to use it . For Python one such option is WSGI . As FASTCGI is just a means to an end one can t really compare its performance to WSGI in that case because WSGI isn t a comparable socket wire protocol but a user of FASTCGI itself . One could try and compare performance of different language interfaces on top of FASTCGI but in general that is quite meaningless in itself as the lower network layer and server request handling aren t the bottleneck . Instead your application code and database will be . Comment : I think it s meaningful to ask what the time difference is between a fcgi app responding to a request and a wsgi app responding to request . Since fcgi and wsgi are two different ways to interface a programming language to a web request they do very similar things .", "Question : What s the difference between these two Which is better faster reliable .. . Answer : SCGI like FastCGI is a serialized protocol suitable for inter-process communication between a web-server and a web-application . WSGI is a Python API connecting two or more Python WSGI-compatible modules inside the same process Python interpreter . One module represents the web-server being either a Python in-process web-server implementation or a gateway to a web-server in another process via e.g . SCGI . The other module is or represents the web application . Additionally zero or more modules between theses two modules may serve as WSGI middleware modules doing things like session cookie management content caching authentication etc . The WSGI API uses Python language features like iteration generators and passing of callable objects between the cooperating WSGI-compatible modules . Comment : Perfect answer .", "Question : Can anyone help me get a Flask application running on IIS 6 I have tried to use isapi-wsgi but when I visit the Virtual Directory address I get a page that says The specified module could not be found . Are there other options for this Below is the Python script I wrote for isapi-wsgi . The Virtual Directory was made and everything looked ok in IIS Manager but the site did not work . .. . Answer : I never use IIS but IIS supports CGI gateway therefore you should be able to adapt CGI with WSGI . To run a WSGI as a CGI script you can use the CGIHandler http : docs.python.org library wsgiref.html wsgiref.handlers.CGIHandler in Python standard-library . Comment : CGI is not an acceptable solution unless it s a very low-traffic thing e.g . just used by yourself . It starts a process everytime a page is requested .", "Question : Pyramid uses it s own Waitress web server for development purposes but I want to serve my WSGI app under Tornado . I think I should configure it using the pserve .ini files but I can t get it to work Comment : Not really what you asked for so making it a comment not an answer . While Tornado CAN serve WSGI it s not really recommended since WSGI doesn t allow the asynchronous processing which is the real reason for running Tornado . IMHO flup is a much more lean and simple way to deploy WSGI-apps and serves as a gateway between a WSGI-app and AJP FCGI SCGI CGI . You should go for the fork-versions in production since it get s around the Python GIL http : wiki.python.org moin GlobalInterpreterLock . .. . Answer : Again not really recommending running WSGI under Tornado since it gives you none of the advantages of Tornado . Should you still want to do it for some reason the second example of the docs seems to be what you are looking for : http : www.tornadoweb.org documentation wsgi.html Comment : Okay which server should I use then Preferably one that s very fast Comment : Depends on your needs . If speed is everything you should probably go with Tornado but not deploy as a WSGI-app but a native asynchronous Tornado-app . Especially if long-polling is a concern If your existing WSGI-interface app is a must nichol.as benchmark-of-python-web-servers http : nichol.as benchmark-of-python-web-servers might be helpful . Depending on your app a good strategy can be to use a slightly slower but simple and lean server combined with a well-tuned Varnish nginx caching frontend . Comment : For example if much of the app is generating a few highly-visited common index-views a well-tuned nginx could make sure just one request every few seconds hit the Python-code and any application-server can handle that . Comment : Personally I find tornado to be a much more pleasant web server to use over pyramid so OP s question makes sense to me I d rather develop on tornado + waitress and then slowly migrate over to a proper async model when time and opportunity allow . Thank you for posting this solution even if it doesn t have an obvious use-case .", "Question : What s the difference between these two Which is better faster reliable .. . Answer : SCGI is a language-neutral means of connecting a front-end web server and a web application . WSGI is a Python-specific interface standard for web-applications . Though they both have roots in CGI they re rather different in scope and you could indeed quite reasonably use both at once for example having a mod scgi on the webserver talk to a WSGI app run as an SCGI server . There are multiple library implementations that will run WSGI applications as SCGI servers for you eg . wsgitools cherrypy . They are both reliable in as much as you can consider a specification reliable as opposed to a particular implementation . These days you would probably write your application as a WSGI callable and consider the question of deployment separately . Maybe an Apache+mod wsgi embedded interface might be a bit faster than an Apache+mod scgi+ SCGI wrapper lib but in all likelihood it s not going to be hugely different . More valuable is the ability to run the application on a variety of servers platforms and connection standards .", "Question : For the server part of Python s WSGI specification not the application part is the server not allowed to rewrite requests I ask because I can t find any that do . As I understand it Nginx and Apache are generic so they will have a rewrite rule-engine and IIS . Why wouldn t a WSGI capable server have the same so that I do not have to use regex Does PEP-333 not allow rewrites Is rewriting not a Python way to do things Comment : What does a rewrite rule-engine have to do with an web interfacing standard A rewrite rule-engine is an application . Write a WSGI app that does this . Comment : @MartijnPieters I know you are the expert on Python . But that does not make sense to me . The application is separate from the server . Python servers that allow WSGI applications do not seem to have Rewrite engines . I do not want to create a rewrite engine in the application . I only want to deal with the results like I would with mod-rewrite . I have no idea if it has anything to do with it or not . That is why I asked the very specfic question about it . Comment : But why would this need to be part of the specification URL rewriting is orthogonal to a standard that lets you plug in Python code into a web server . Comment : The specification doesn t preclude it it just doesn t care because that s not the job of the specification or a server implementing a WSGI container . Comment : @MartijnPieters I have no idea why it would or wouldn t . I was asking if it precluded it . It does not appear to do so and perhaps doing it at the server is not the Pythonic way . .. . Answer : How paths are handled is not part of the WSGI server responsibility . It passes on the request to the apps transparently and returns the response produced equally transparently . That is what the standard describes . URL rewriting is an extra service that a server could implement but that has nothing to do with the WSGI standard . Apache does this with an optional module mod-rewrite . It is a popular feature so other servers have offered it too . But that doesn t mean that the WSGI standard needs to say anything about this just as the HTTP standard doesn t describe URL rewriting . If you need paths rewritten you can easily do so in your WSGI app or write WSGI middleware to do so . WSGI middleware looks just like a WSGI app to the server and like a server to the next app . Someone already wrote such middleware for you see the WSGIRewrite project https : pypi.python.org pypi WSGIRewrite . Comment : The answer then is it something that it typically done at the server level but the application which is different from the non-Python world who use Apache IIS or something else Comment : Apache is an application too . It is just a very rich and versatile applicition with plugins . mod-rewrite is a plugin middleware that offers that functionality . WSGI servers are also versatile in that middleware can solve this same problem .", "Question : I have a Bluehost http : en.wikipedia.org wiki Bluehost account where I can run Python scripts as CGI . I guess it s the simplest CGI because to run I have to define the following in .htaccess : .. . .. . Now whenever I look up web programming with Python I hear a lot about WSGI and how most frameworks use it . But I just don t understand how it all fits together especially when my web server is given Apache running at a host s machine and not something I can really play with except defining .htaccess commands . How are WSGI http : en.wikipedia.org wiki Web Server Gateway Interface CGI and the frameworks all connected What do I need to know install and do if I want to run a web framework say web.py http : webpy.org or CherryPy http : en.wikipedia.org wiki CherryPy on my basic CGI configuration How to install WSGI support .. . Answer : You can run WSGI over CGI as Pep333 demonstrates http : www.python.org dev peps pep-0333 the-server-gateway-side as an example . However every time there is a request a new Python interpreter is started and the whole context database connections etc . needs to be build which all take time . The best if you want to run WSGI would be if your host would install mod-wsgi http : code.google.com p modwsgi and made an appropriate configuration to defer control to an application of yours . Flup http : trac.saddi.com flup is another way to run with WSGI for any webserver that can speak FCGI http : www.fastcgi.com drupal SCGI http : www.mems-exchange.org software scgi or AJP . From my experience only FCGI really works and it can be used in Apache either via mod-fastcgi http : www.fastcgi.com mod-fastcgi docs mod fastcgi.html or if you can run a separate Python daemon with mod-proxy fcgi http : mproxyfcgi.sourceforge.net . WSGI http : wsgi.org is a protocol much like CGI which defines a set of rules how webserver and Python code can interact it is defined as Pep333 http : www.python.org dev peps pep-0333 . It makes it possible that many different webservers can use many different frameworks and applications using the same application protocol . This is very beneficial and makes it so useful . Comment : Is running WSGI over CGI what flup is for How is flup connected to the scheme", "Question : Pyramid uses it s own Waitress web server for development purposes but I want to serve my WSGI app under Tornado . I think I should configure it using the pserve .ini files but I can t get it to work Comment : Not really what you asked for so making it a comment not an answer . While Tornado CAN serve WSGI it s not really recommended since WSGI doesn t allow the asynchronous processing which is the real reason for running Tornado . IMHO flup is a much more lean and simple way to deploy WSGI-apps and serves as a gateway between a WSGI-app and AJP FCGI SCGI CGI . You should go for the fork-versions in production since it get s around the Python GIL http : wiki.python.org moin GlobalInterpreterLock . .. . Answer : The Pyramid application can be loaded from the INI files easily . From there you just pass the wsgi app into Tornado s WSGIContainer . Comment : Is there a way to start the app via pserve instead of a runner script Comment : Well the pserve server runners are entirely pluggable via PasteDeploy so feel free to write your own it s quite simple if you figure out setuptools entry points . I am not familiar with a pre-baked runner for tornado .", "Question : I have a Bluehost http : en.wikipedia.org wiki Bluehost account where I can run Python scripts as CGI . I guess it s the simplest CGI because to run I have to define the following in .htaccess : .. . .. . Now whenever I look up web programming with Python I hear a lot about WSGI and how most frameworks use it . But I just don t understand how it all fits together especially when my web server is given Apache running at a host s machine and not something I can really play with except defining .htaccess commands . How are WSGI http : en.wikipedia.org wiki Web Server Gateway Interface CGI and the frameworks all connected What do I need to know install and do if I want to run a web framework say web.py http : webpy.org or CherryPy http : en.wikipedia.org wiki CherryPy on my basic CGI configuration How to install WSGI support .. . Answer : I think Florian s answer http : stackoverflow.com questions 219110 how-python-web-frameworks-wsgi-and-cgi-fit-together 219124 219124 answers the part of your question about what is WSGI especially if you read the PEP http : www.python.org dev peps pep-0333 . As for the questions you pose towards the end : .. . .. . WSGI CGI FastCGI etc . are all protocols for a web server to run code and deliver the dynamic-content that is produced . Compare this to static web serving where a plain HTML file is basically delivered as is to the client . CGI FastCGI and SCGI are language-agnostic . You can write CGI scripts in Perl Python C bash whatever . CGI defines which executable will be called based on the URL and how it will be called : the arguments and environment . It also defines how the return-value should be passed back to the web server once your executable is finished . The variations are basically optimisations to be able to handle more requests reduce latency and so on the basic concept is the same . WSGI is Python only . Rather than a language-agnostic protocol a standard function signature is defined : .. . .. . That is a complete if limited WSGI application . A web server with WSGI support such as Apache with mod-wsgi can invoke this function whenever a request arrives . The reason this is so great is that we can avoid the messy step of converting from a HTTP GET POST to CGI to Python and back again on the way out . It s a much more direct clean and efficient linkage . It also makes it much easier to have long-running frameworks running behind web servers if all that needs to be done for a request is a function-call . With plain CGI you d have to start your whole framework up http : tools.cherrypy.org wiki RunAsCGI for each individual request . To have WSGI support you ll need to have installed a WSGI module like mod-wsgi http : code.google.com p modwsgi or use a web server with WSGI baked in like CherryPy http : tools.cherrypy.org . If neither of those are possible you could use the CGI-WSGI bridge given in the PEP . Comment : Whose stupid idea was it to not make WSGI language-agnostic What s the point then Might as well just ship the whole of Python as an Apache module . Comment : @SalmanPK I think it s just a trade off . Surely it s not easy if not impossible to make a language-agnostic protocol that can be used by simply implementing a function in the chosen language .", "Question : I m considering running a tiny Python webapp that comes as an implementation of a BaseHTTPRequestHandler i.e . https : github.com openid python-openid blob master examples server.py . I want to use an existing WSGI server i.e . Apache with mod-wsgi . So my question is : How to conveniently serve the BaseHTTPRequestHandler via WSGI so that I can hook it up with Apache + mod-wsgi .. . Answer : Don t try it would likely be one huge hack even if you tried and could somehow get it to work . Try and find a version of your application which already works on a WSGI server . If you need a very small WSGI server which only relies on stuff from the standard Python distribution then use the WSGI server from the wsgiref module . http : docs.python.org 2 library wsgiref.html module-wsgiref.simple server .. . .. . If you need a simple to use WSGI framework and try and port that application use Flask .", "Question : I am trying to implement websockets on a openshift.com server which should support them . openshift.com provides me a WSGI so I embed my cherrypy to it so that my wsgi.py script define an application object . Also cherrypy has a websocket tool as defined by ws4py . This is a minimal cherrypy application that works under WSGI in OpenShift and that should use websockets too Everything work wonderfully except when I create a websocket connecting to ws : myserver : 8000 ws this is the stacktrace I get : .. . .. . I manually deleted the absolute path from the filenames PS : I use python3.3 cherrypy 3.5.0 ws4py 0.3.4 . It is not clear to me : .. . .. . if this is a lack of compatibility between cherrypy and ws4py when in an WSGI environment . if it is a problem of ws4py when in a WSGI environment .. . if it is because Openshift websockets have a different port than the http one .. . .. . PPS : this is a complete OpenShift project that you can run and try this yourself : https : github.com spocchio wsgi-cherrypy-ws4py .. . Answer : I don t think it is possible at all . WSGI is a synchronous protocol 1 http : bottlepy.org docs dev async.html 2 http : tornado.readthedocs.org en latest wsgi.html tornado.wsgi.WSGIContainer WebSocket protocol is asynchronous . Wiki states that for a Python application interface OpenShift uses WSGI 3 http : en.wikipedia.org wiki OpenShift Supported frameworks . Alas . However I ve recently played with ws4py in pub sub scenario and it works really well on top of CherryPy standard HTTP-server deployment . So it shouldn t be a problem on a generic virtual-server with no application interface constraints . Comment : I know on Heroku it works perfectly . Unlucky they have a 55 seconds timeout on websockets so the client have to keep the connection alive at least once a minute not the best option for a mobile app that runs in background . Comment : Although the WSGI specification technically disallows it the issue is more to do with the WSGI server being used . The WebSocket code is relying on being used on a WSGI server implemented as a pure Python WSGI server which deals directly with the client socket itself . It then sides steps the WSGI specification and WSGI server and reaches down to grab the actual socket connection for the client and communicates over it directly . In other words it is using an evil hack . This hack will not work on mod-wsgi as it doesn t expose the original socket connection . Comment : To make it clearer I would add that in case of Python Openshift uses Apache webserver https : www.openshift.com products technologies thus mod-wsgi for WSGI . What Graham calls an evil hack is documented in ws4py CherryPy module https : ws4py.readthedocs.org en latest sources ws4py.server module-ws4py.server.cherrypyserver . Comment : I had indeed to perform such a hack which i wasn t that proud about . Unfortunately the WSGI spec was written long before WebSocket and didn t consider that use-case . Hopefully someday it ll be amended to address it .", "Question : Could anyone please explain pros cons when using WSGI http : www.wsgi.org en latest index.html VS uWSGI http : projects.unbit.it uwsgi wiki with Nginx . Currently i am building up a production server for the Django website which i have prepared but unable to decide whether should i go with WSGI or uWSGI . Could you please explain in detail what differentiates each configuration Which configuration should scale the best Thanks in advance Comment : WSGI is a specification . uWSGI provides an implementation of the WSGI specification . You can t compare them . You can only compare different implementations . Comment : segmentfault.com a 1190000004294634 http : segmentfault.com a 1190000004294634 .. . Answer : It is generally best to run Python in a separate process from your main web server . That way the web server can have lots of tiny threads that serve static content really fast while your separate Python processes will be big and heavyweight and each be running their own Python interpreter . So plain WSGI is bad because it bloats every single one of your nginx threads with a big Python interpreter . Using flup or gunicorn or uWSGI behind nginx is much better because that frees up nginx to simply serve content and lets you choose how many tiny light nginx threads to run independently of your choice of how many heavyweight Python threads you bring up to serve dynamic-content . People seem very happy with gunicorn at the moment but any of those three options should work fine . Going forward it also frees you up to move the Python to another server when load starts to get serious . Comment : Am a bit confused by your answer . I can t see that he mentioned running any sort of WSGI implementation inside of nginx . He referenced the main wsgi.org site . His original comparison between WSGI and uWSGI is thus a bit silly in the first place because uWSGI is an implementation of the WSGI specification . You yourself have used generic WSGI term in a confusing way in saying that it bloats every single one of your nginx threads with a big Python interpreter . The WSGI specification itself can t do that only implementations can . Comment : It could make sense if we were comparing nginx + mod-wsgi the pluggable module and nginx + uWSGI the application server container . Comment : So when it comes to using Nginx to run Python web apps since Manlio Perillo s mod-wsgi is deadware and not recommended the good solutions are either WSGI with either gunicorn or uWSGI or FastCGI with Flup", "Question : print only works in development server . But what if I want it to work in Apache Just in case I forget to comment it out...I want to be able to go smoothly without causing errors . Just print to nothing .. . Answer : What you re proposing is a Bad Idea but if you insist on doing it anyways check out the mod-wsgi configuration directives http : code.google.com p modwsgi wiki ConfigurationDirectives : .. . .. . WSGIRestrictStdout .. . .. . A well behaved Python WSGI application should never attempt to write any data directly to sys.stdout or use the print statement without directing it to an alternate file object . This is because ways of hosting WSGI applications such as CGI use standard output as the mechanism for sending the content of a response back to the web server . If a WSGI application were to directly write to sys.stdout it could interfere with the operation of the WSGI adapter and result in corruption of the output stream . .. . In the interests of promoting portability of WSGI applications mod-wsgi restricts access to sys.stdout and will raise an exception if an attempt is made to use sys.stdout explicitly . .. . The only time that one might want to remove this restriction is purely out of convencience of being able to use the print statement during debugging of an application or if some third party module or WSGI application was errornously using print when it shouldn t . If restrictions on using sys.stdout are removed any data written to it will instead be sent through to sys.stderr and will appear in the Apache error-log file .", "Question : I have a Bluehost http : en.wikipedia.org wiki Bluehost account where I can run Python scripts as CGI . I guess it s the simplest CGI because to run I have to define the following in .htaccess : .. . .. . Now whenever I look up web programming with Python I hear a lot about WSGI and how most frameworks use it . But I just don t understand how it all fits together especially when my web server is given Apache running at a host s machine and not something I can really play with except defining .htaccess commands . How are WSGI http : en.wikipedia.org wiki Web Server Gateway Interface CGI and the frameworks all connected What do I need to know install and do if I want to run a web framework say web.py http : webpy.org or CherryPy http : en.wikipedia.org wiki CherryPy on my basic CGI configuration How to install WSGI support .. . Answer : How WSGI CGI and the frameworks are all connected .. . .. . Apache listens on port 80 . It gets an HTTP request . It parses the request to find a way to respond . Apache has a LOT of choices for responding . One way to respond is to use CGI to run a script . Another way to respond is to simply serve a file . In the case of CGI Apache prepares an environment and invokes the script through the CGI protocol . This is a standard Unix Fork Exec situation -- the CGI subprocess inherits an OS environment including the socket and stdout . The CGI subprocess writes a response which goes back to Apache Apache sends this response to the browser . CGI is primitive and annoying . Mostly because it forks a subprocess for every request and subprocess must exit or close stdout and stderr to signify end of response . WSGI is an interface that is based on the CGI design pattern . It is not necessarily CGI -- it does not have to fork a subprocess for each request . It can be CGI but it doesn t have to be . WSGI adds to the CGI design pattern in several important ways . It parses the HTTP Request Headers for you and adds these to the environment . It supplies any POST-oriented input as a file-like object in the environment . It also provides you a function that will formulate the response saving you from a lot of formatting details . What do I need to know install do if I want to run a web framework say web.py or cherrypy on my basic CGI configuration .. . .. . Recall that forking a subprocess is expensive . There are two ways to work around this . 1 . Embedded mod-wsgi or mod-python embeds Python inside Apache no process is forked . Apache runs the Django application directly . 2 . Daemon mod-wsgi or mod-fastcgi allows Apache to interact with a separate daemon or long-running process using the WSGI protocol . You start your long-running Django process then you configure Apache s mod-fastcgi to communicate with this process . Note that mod-wsgi can work in either mode : embedded or daemon . When you read up on mod-fastcgi you ll see that Django uses flup http : pypi.python.org pypi flup to create a WSGI-compatible interface from the information provided by mod-fastcgi . The pipeline works like this . Django has several django.core.handlers for the various interfaces . For mod-fastcgi Django provides a manage.py runfcgi that integrates FLUP and the handler . For mod-wsgi there s a core handler for this . How to install WSGI support .. . .. . Follow these instructions . http : code.google.com p modwsgi wiki IntegrationWithDjango .. . .. . For background see this .. . .. . http : docs.djangoproject.com en dev howto deployment howto-deployment-index Comment : I can t install mod-wsgi because i m on shared-hosting . All I have is fcgi support . How can I still run WSGI apps through it Comment : +1 Thats an excellent answer answers lot of but not all questions I ve in mind . This answer is still not complete . You explained well about CGI WSGI but whats the relation differences between FASTCGI WSGI Which is better How do they work How did mod-python come into the picture Comment : @claws : Please do not ask which is better . The question is silly . Better at what Cheaper Faster Uses less memory Involves the most programming Almost everyone uses mod-wsgi because it does everything . Comment : S.Lott instead of complaining about when people ask which is better why not simply state mod-wsgi is better as X fastcgi is better for Y and if the OP has more specific questions they ll ask . Comment : @Greg Lind : Why not simply state mod-wsgi is better as X fastcgi is better for Y Because it s not very easy to do . There are dozens of non-functional quality factors that are elements of the X and Y sets . It s difficult to enumerate them all . It s far far better for folks to ask specific questions about the quality factors that are relevant .", "Question : I have a Bluehost http : en.wikipedia.org wiki Bluehost account where I can run Python scripts as CGI . I guess it s the simplest CGI because to run I have to define the following in .htaccess : .. . .. . Now whenever I look up web programming with Python I hear a lot about WSGI and how most frameworks use it . But I just don t understand how it all fits together especially when my web server is given Apache running at a host s machine and not something I can really play with except defining .htaccess commands . How are WSGI http : en.wikipedia.org wiki Web Server Gateway Interface CGI and the frameworks all connected What do I need to know install and do if I want to run a web framework say web.py http : webpy.org or CherryPy http : en.wikipedia.org wiki CherryPy on my basic CGI configuration How to install WSGI support .. . Answer : It s a simple abstraction-layer for Python akin to what the Servlet spec is for Java . Whereas CGI is really low-level and just dumps stuff into the process environment and standard in out the above two specs model the http-request and response as constructs in the language . My impression however is that in Python folks have not quite settled on de-facto implementations so you have a mix of reference implementations and other utility-type libraries that provide other things along with WSGI support e.g . Paste . Of course I could be wrong I m a newcomer to Python . The web scripting community is coming at the problem from a different direction shared-hosting CGI legacy privilege separation concerns than Java folks had the luxury of starting with running a single enterprise container in a dedicated environment against statically compiled and deployed code .", "Question : I m trying to deploy Django located in a virtualenv on Apache using WSGI deploying . I m following the default tutorial from https : docs.djangoproject.com en dev howto deployment wsgi modwsgi .. . .. . wsgi.py the default one which Django generated with the comments dropped : .. . .. . apache2.conf its the same httpd.conf just in Debian . Appended this to the end : .. . .. . However this ends-with an error : .. . .. . It seems that the standard python is accessible since .. . .. . yields no errors . So it seems that modules imported from the virtualenv aren t importable . The tutorial said : .. . .. . A further change required to the above configuration if you use daemon mode is that you can t use WSGIPythonPath instead you should use the python-path option to WSGIDaemonProcess for example : .. . .. . What am I missing .. . Answer : the pythonpath your envinronment is different than the apache one i think . install django globaly with easy install or pip .. . .. . or add .virtualenv pythonpath to the mod-wsgi config .. . .. . WSGIPythonPath directory directory-1 : directory-2 : .. . .. . MOD wsgi config http : code.google.com p modwsgi wiki ConfigurationDirectives WSGIPythonPath Comment : I want to use wsgi in daemon mode and it is specified in the Django documentation that in those cases WSGIPythonPath doesn t work but has to be changed with WSGIDaemonProcess example.com python-path path to mysite.com : path to venv lib python2.7 site-packages", "Question : I have a Bluehost http : en.wikipedia.org wiki Bluehost account where I can run Python scripts as CGI . I guess it s the simplest CGI because to run I have to define the following in .htaccess : .. . .. . Now whenever I look up web programming with Python I hear a lot about WSGI and how most frameworks use it . But I just don t understand how it all fits together especially when my web server is given Apache running at a host s machine and not something I can really play with except defining .htaccess commands . How are WSGI http : en.wikipedia.org wiki Web Server Gateway Interface CGI and the frameworks all connected What do I need to know install and do if I want to run a web framework say web.py http : webpy.org or CherryPy http : en.wikipedia.org wiki CherryPy on my basic CGI configuration How to install WSGI support .. . Answer : If you are unclear on all the terms in this space and lets face it its a confusing acronym-laden one there s also a good background reader in the form of an official python HOWTO which discusses CGI vs . FastCGI vs . WSGI and so on : http : docs.python.org howto webservers.html" ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
fusionreactor@java@69
fusionreactor -- fusionreactor is a professional server monitor for @placeholder application servers such as tomcat jboss and websphere and is recommended for monitoring adobe coldfusion .
{ "confidence": [ 49.314598083496094, 48.10891342163086, 47.9227409362793, 47.9227409362793, 46.74806213378906, 45.168731689453125, 43.2725830078125, 42.9732551574707, 39.75638198852539, 39.75638198852539, 39.75638198852539, 39.45368194580078, 38.977474212646484, 37.86835479736328, 37.068260192871094, 37.068260192871094, 37.068260192871094, 37.068260192871094, 36.7916145324707, 35.82095718383789, 35.81547546386719, 33.93947982788086, 33.725868225097656, 33.725868225097656, 33.32281494140625, 32.260440826416016, 32.260440826416016, 32.006072998046875, 32.006072998046875, 31.99188995361328, 30.655441284179688, 29.31795310974121, 29.31795310974121, 29.31795310974121, 28.580657958984375, 28.259357452392578, 26.182979583740234, 26.022260665893555, 25.13225555419922, 24.060768127441406, 23.28451919555664, 22.89670753479004, 21.590316772460938, 21.334522247314453, 21.334522247314453, 20.76168441772461, 20.73105239868164, 20.596399307250977, 20.32763671875, 20.11182975769043, 19.72948455810547, 19.283769607543945, 19.214303970336914, 19.19019889831543, 18.959306716918945, 18.804269790649414, 18.646400451660156, 18.248855590820312, 18.091548919677734, 17.957969665527344, 17.955060958862305, 17.868183135986328, 17.41687774658203, 17.41687774658203, 17.042837142944336, 17.041362762451172, 17.041362762451172, 17.041362762451172, 17.041362762451172, 17.041362762451172, 16.96121597290039, 16.833850860595703, 16.702892303466797, 16.502077102661133, 16.424245834350586, 16.11200714111328, 16.102399826049805, 16.05904769897461, 15.657661437988281, 15.657661437988281, 15.269847869873047, 15.199783325195312, 15.199783325195312, 15.199783325195312, 14.98844051361084, 14.94577407836914, 14.683130264282227, 14.683130264282227, 14.273096084594727, 14.273096084594727, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.81835651397705, 12.9695405960083, 12.9695405960083 ], "content": [ "We use FusionReactor to monitor our instances .", "I have FusionReactor ENT v5 on my new server .. . .. . I have FusionReactor STD Edition v.5 on my old server .", "FusionReactor currently can not .", "Those are the arguments required for fusionreactor .", "The data belonging to FusionReactor is in the directory etc .java .systemPrefs com intergral fusionreactor .", "Kind Regards .. . .. . Ben Donnelly .. . .. . FusionReactor Support", "Checked FusionReactor and saw no memory usage .", "It is possible to see the Application Scope size from ColdFusion using FusionReactor Application Performance Monitor http : www.fusion-reactor.com - this information is currently captured and stored in one of the log files .", "FusionReactor always has the thread-state at evaluating the QoQ or processing the QoQ .", "The hung thread shows up in CF and cannot be killed from FusionReactor .", "FusionReactor creates a jvm.config.frbak which is the file before FR was installed .", "Once the application server has stopped delete the file Library Preferences com.intergral.fusionreactor.plist to clear all Preferences belonging to FusionReactor .", ".. . On Windows the data is stored in the registry hive HKEY LOCAL MACHINE SOFTWARE JavaSoft Prefs the data belonging to FusionReactor is in HKEY LOCAL MACHINE SOFTWARE JavaSoft Prefs com intergral fusionreactor .", "Have you tried remove the obvious arguments -javaagent : C : FusionReactor instance cfusion.cf10 fusionreactor.jar name cfusio n.cf10 address 8088 and -agentpath : C : FusionReactor instance cfusion.cf10 frjvmti x64.dll", "What I am seeing is a hung thread in FusionReactor for the 404.cfm file .", "But it is giving me an error : .. . .. . How do I solve it and install FusionReactor successfully", "Garbage collection recovers no memory and there are no active .. . .. . long running threads reported by FusionReactor .", "When there are multiple requests for PDFs the request start to hang as monitored in FusionReactor .", "If you have any other problems I suggest you contact the FusionReactor support team at support@fusion-reactor.com .", "According to a post on the FusionReactor group : http : groups.google.com group fusionreactor browse thread thread 8a017a61d17e9840 d57cef46b843207d lnk gst q memory+request d57cef46b843207d http : groups.google.com group fusionreactor browse thread thread 8a017a61d17e9840 d57cef46b843207d lnk gst q memory+request d57cef46b843207d .. . .. . James Holmes said : .. . .. . A CF Standard install could make use of the Java SizeOf class : sizeof.sourceforge.net sourceforge.net projects sizeof Some custom code would be necessary to create a monitor based on this but it does work .", "Note : Uploads do work on my development server which does NOT have FusionReactor installed .", "We use FusionReactor which will show the overall memory usage at the server level but it would be useful to be able to see how much memory individual items stored in the application scope are taking up .", "null The root cause was that : java.sql.SQLException : FusionReactor JDBC : 9 No driver reported it was capable of handling the URL jdbc : mysql : localhost : 3306 mydsn .", "I don t think you need want the there but it s been a while since I used FusionReactor .", "CFSimplicity .. . .. . The Enterprise version of ColdFusion 8 and higher has the Server monitor .", "Page 14 of the FusionReactor Installation Guide provides you with instructions how to adjust the permissions of this store .", "I m already using FusionReactor and that s great for profiling memory spaces and so on but it doesn t have anything for I O .", "Andy as I said we do use FusionReactor but it only tells you how much of the overall allocated memory is being used .", "It is also possible to visualize this information using FusionAnalytics - which is able to display and analyze the metrics which have been captured from FusionReactor .", "From the FusionReactor support pages found here : FusionReactor Technote - FRS-198 http : www.fusion-reactor.com support kb FRS-198.cfm this was also mentioned in the error that you received .. . .. . HOW TO FIX IT .. . .. . Insufficient privileges .. . .. . The runtime user of the server on which FusionReactor is installed requires read-write access to the Java System Preferences Backing Store .", ".. . On a Windows machine run the registry editor regedit.exe or regedt32.exe and then delete the key .. . .. . HKEY LOCAL MACHINE SOFTWARE JavaSoft Prefs com intergral fusionreactor .. . .. . On a UNIX machine as user root delete the directory .. . .. . etc .java .systemPrefs com intergral fusionreactor .. . .. . If the permissions are configured correctly uploading a license and activating it will work properly afterwards .", "Here s an example of the stacktrace taken from one of these hung threads : .. . .. . I ve tried manually killing these threads through FusionReactor but they won t die .", "FusionReactor reports there are no active request even though one is running one which is why we couldn t identify the problem while it was happening .", "FusionReactor now showed two long running requests 10 seconds and climbing even though there were over 15 browser tabs running .", "I have a coldfusion web service for uploading files here is the upload function : .. . .. . When I attempt to upload files larger than zero bytes an empty txt file does successfully upload I get this exception : .. . .. . I suspect this has something to do with FusionReactor but I have reviewed all of the Reactor settings and I do not see any FusionReactor rejections in the logs .", "I have installed Fusion Reactor and am trying to create a New Wrapped Datasource in ColdFusion but I am getting this : error- .. . .. . Connection verification failed for data source : mydsn java.sql.SQLException : FusionReactor JDBC : 9 No driver reported it was capable of handling the URL jdbc : mysql : localhost : 3306 mydsn .", "We have upgraded one of these two servers to ColdFusion 10 in order to soft-launch our ColdFusion 10 upgrade .", "Using FusionReactor which we ve just installed which is how I finally got some insight into this issue I was inspecting the PermGen memory space and found that it accounted for .. . .. . 85 of the heap .", "I saw post on Railo about this https : groups.google.com forum msg railo Fsh-uuwE2ic SetqhPXrbpYJ .. . .. . 2 According to FusionReactor the stack-trace has the request always in the evaluate 90 chance or execution phase 10 chance of the QoQ -- never any other part of the logic surrounding it .", "ColdFusion 10 if it helps .", "After removing the arguments from the config file make sure to restart ColdFusion server .", "We have been running 2 load-balanced ColdFusion 8 servers for ages without issue .", "Perhaps you could use onCFCRequest http : help.adobe.com en US ColdFusion 9.0 CFMLRef WSe821657cd7d6f83f6daaa733122cf6931bb-8000.html in your Application.cfc to monitor this issue .", "One of the more interesting features in Coldfusion is how it handles external requests .", "http : www.schierberl.com blog coldfusion-memory-leaks-part-i-profiler-introduction", "Is this something that you need to do in real-time and or in production for monitoring", "The Server Monitor can breakdown memory usage and find out what requests and what variable scopes are consuming how much memory .", "I m having an odd intermittent issue with the 404 handler pages on our ColdFusion 10 server .", "Check the Document services at adobe.com products coldfusion-family buying-guide.html http : www.adobe.com products coldfusion-family buying-guide.html .", "I am using ColdFusion 8 and MySQL on Windows 7 .", "1 Is there something about the ColdFusion QoQ Java implementation that would cause access to the QoQ system to be single-threaded", "The only way to clear the hung threads is to restart the ColdFusion service which I ve had to do at least once a day since I upgraded to ColdFusion 10 .", "A server restart should correct this issue .", "One of the things you should start to look at is the hardware between the two servers .", "hope Adobe is able to identify and fix the problem", "Have your tried restarting your server", "I believe this is a legit bug in ColdFusion and I ve reported it through their bug system .", "By the looks of things your new server config looks ok for the CrashProtection settings .", "How can I monitor I O requests", "Is there some other connection limit or timeout which could be causing the communication between the servers to go awry", "The individual survival strategies are defined as follows : .. . .. . My reactor.conf from my old server : .. . .. . My reactor.conf from my new server : .. . .. . The test email works fine and the crash notication email works fine .", "Still I hope Adobe is able to identify and fix the problem .", "Both servers are running Windows 2008 R2 .", "Our servers are set for 20GB of heap space .", "If you do not wish to restart your server you can try putting all the protection settings back to the defaults save them .", "So I m not sure what might be happening here but it s definitely stalling the completion of our ColdFusion 10 migration .", "I am trying to install FusionReactor windows 4 5 5 on my ColdFusion 10 Windows 7 32bit system .", "In case the link breaks it says Document services PDF file generation is a Restricted feature in ColdFusion 11 Standard .", "..Restricted features in ColdFusion Standard Edition : Enterprise features run through the Enterprise Feature Router EFR .", "Note : This Coldfusion instance has been updated to patch level 17 and the IIS connector has been updated to the correct version .", "We had a similar problem with a MS SQL server .", "so you could start out by using the operating-system monitoring tools to see if you have mainly reads or writes next step is looking at memory issues despite it being an disk IO issue maybe your servers are low on memory and thrashing the drives as they are swapping pages in and out-of-memory .", "There the root cause was a known issue in which for some reason the server thinks it s shutting down and the thread hangs even though the server is obviously not shutting down .", "These objects look like this : .. . .. . So I restarted CF on one of our servers .", "i enter it myself in localhost after login to coldfusion administrator 127.0.0.1 : 8500 CFIDE administrator fr jdbc wrapper.cfm quot http : 127.0.0.1 : 8500 CFIDE administrator fr jdbc wrapper.cfm quot", "http : www.coldfusionmuse.com index.cfm 2009 6 9 killing.threads .. . .. . So with that in mind the issue we ve run into is that somehow the communication between our CF server and our mySQL server sometimes goes awry and leaves behind hung threads .", ".. . Clear the System Preferences Backing Store .. . .. . If you attempt to install a license and you get the error message mentioned before : .. . .. . Can not upload license : null .. . .. . or simply .. . .. . null .. . .. . then you should stop the application server clear the content of the Java System Preferences Backingstore and restart the application server .", "Looking at the thread-dump it appears that ColdFusion has finished doing the processing and completed filling the buffer with output but it s not finishing sending to the browser", "They become 10 times as long to complete unless they are kicked off nearly immediately after a server reboot .", "Mistakes in the file can prevent the server from starting so you do not want to be caught without a backup copy .", "Since implementing this fix we ve seen memory usage go down on all servers from a consistent 98 to 15 .", "This can result in the mySQL box thinking it has completed the task while the CF server sits there and waits for a complete response indefinitely creating a hung thread .", "Have you looked at http : www.fusion-reactor.com fr or http : www.seefusion.com .. . .. . I think both of these server monitors could help you out", "no i did not because i do not want to mess up the server i do not what to remove so that is what i am asking for", "Only a server restart will recovery it .", "The two IP s you posted are from securedservers.com - an external source and if I had to guess it s probably some sort of uptime monitor .", "The timeout on the server is set to 5 minutes .", "Only a server restart solved the problem .", "After awhile the server eventually reaches 98 capacity .", "This is CF9.01 Standard on Win2003 Server running Java 1.7.0 25 .", "The only problem I am having is that the WebRequest Runtime Protection is not working .", "I have checked the settings .. . .. . http : docs.intergral.com display FR50 Protection+Settings .. . .. . Request Runtime Protection Strategy .. . .. . This defines what happens when this protection type is triggered .", "The slow web request does not", "It might just be that the Protection system has not taken the settings correctly .", "It looks like there is a bug in the current FR 5 agent where the Crash Protection settings would not correctly update if Quantity protection is enabled .", "Then setting up Runtime protection first .", "Hopefully this will solve your issue .", "On a fresh restart after loading the application memory will cruise around 800MB .", "I ve installed Update 8 on the CF10 server and have removed and re-added the connectors .", "When a cfc is called directly with no method argument the server begins to chew up memory ." ] }
{ "confidence": [ 72.43505096435547, 65.26355743408203, 62.052757263183594, 60.38648986816406, 57.97869110107422, 56.774131774902344, 56.0718994140625, 54.85877227783203, 54.630096435546875, 53.01976013183594, 51.77507019042969, 51.375640869140625, 49.632774353027344, 44.22270965576172, 41.503883361816406, 41.41008377075195, 41.39716339111328, 39.34564971923828, 35.89958953857422, 16.76511573791504 ], "content": [ "Question : We use FusionReactor which will show the overall memory usage at the server level but it would be useful to be able to see how much memory individual items stored in the application scope are taking up . Comment : Short answer is you can t directly through CF instead you ve got to work with Java . See answers to this question : stackoverflow.com questions 52353 http : stackoverflow.com questions 52353 in-java-what-is-the-best-way-to-determine-the-size-of-an-object .. . Answer : CFSimplicity .. . .. . The Enterprise version of ColdFusion 8 and higher has the Server monitor . The Server Monitor can breakdown memory usage and find out what requests and what variable scopes are consuming how much memory . FusionReactor currently can not . According to a post on the FusionReactor group : http : groups.google.com group fusionreactor browse thread thread 8a017a61d17e9840 d57cef46b843207d lnk gst q memory+request d57cef46b843207d http : groups.google.com group fusionreactor browse thread thread 8a017a61d17e9840 d57cef46b843207d lnk gst q memory+request d57cef46b843207d .. . .. . James Holmes said : .. . .. . A CF Standard install could make use of the Java SizeOf class : sizeof.sourceforge.net sourceforge.net projects sizeof Some custom code would be necessary to create a monitor based on this but it does work . mxAjax CFAjax docs and other useful articles : www.bifrost.com.au blog", "Question : We use FusionReactor which will show the overall memory usage at the server level but it would be useful to be able to see how much memory individual items stored in the application scope are taking up . Comment : Short answer is you can t directly through CF instead you ve got to work with Java . See answers to this question : stackoverflow.com questions 52353 http : stackoverflow.com questions 52353 in-java-what-is-the-best-way-to-determine-the-size-of-an-object .. . Answer : It is possible to see the Application Scope size from ColdFusion using FusionReactor Application Performance Monitor http : www.fusion-reactor.com - this information is currently captured and stored in one of the log files . It is also possible to visualize this information using FusionAnalytics - which is able to display and analyze the metrics which have been captured from FusionReactor . You can see an example of this here - http : docs.intergral.com display FA205 CF+Scope+Sizes Comment : Seems to show the size of the overall scope but I was really looking for a way to see how much memory individual variables were using . Thanks for the info though .", "Question : I am trying to install FusionReactor windows 4 5 5 on my ColdFusion 10 Windows 7 32bit system . But it is giving me an error : .. . .. . How do I solve it and install FusionReactor successfully .. . Answer : From the FusionReactor support pages found here : FusionReactor Technote - FRS-198 http : www.fusion-reactor.com support kb FRS-198.cfm this was also mentioned in the error that you received .. . .. . HOW TO FIX IT .. . .. . Insufficient privileges .. . .. . The runtime user of the server on which FusionReactor is installed requires read-write access to the Java System Preferences Backing Store . Depending on the operating-system the location of this data store is different . .. . On Windows the data is stored in the registry hive HKEY LOCAL MACHINE SOFTWARE JavaSoft Prefs the data belonging to FusionReactor is in HKEY LOCAL MACHINE SOFTWARE JavaSoft Prefs com intergral fusionreactor . Page 14 of the FusionReactor Installation Guide provides you with instructions how to adjust the permissions of this store . .. . On Linux and Solaris the data is typically stored in the directory etc .java .systemPrefs as a hierarchy of directories containing XML files . The data belonging to FusionReactor is in the directory etc .java .systemPrefs com intergral fusionreactor . To set the necessary permissions execute the following command as user root : .. . .. . chmod -R 777 etc .java .systemPrefs .. . .. . Alternative locations of the System Preferences Backing Store .. . .. . Some JVMs try to create the System Preferences Backing Store in the directory JAVA HOME .systemPrefs as a fallback solution if the directory etc .java .systemPrefs cannot be created where JAVA HOME denotes the directory where the JVM itself is located e.g . opt coldfusionmx runtime jre . .. . We strongly recommend you to use etc .java .systemPrefs as the one and only location of the System Preferences Backing Store . In case there is already data from other applications in JAVA HOME .systemPrefs you should move it to etc .java .systemPrefs and delete JAVA HOME .systemPrefs afterwards after you have adjusted the permissions of etc .java .systemPrefs properly . .. . Clear the System Preferences Backing Store .. . .. . If you attempt to install a license and you get the error message mentioned before : .. . .. . Can not upload license : null .. . .. . or simply .. . .. . null .. . .. . then you should stop the application server clear the content of the Java System Preferences Backingstore and restart the application server . .. . On a Windows machine run the registry editor regedit.exe or regedt32.exe and then delete the key .. . .. . HKEY LOCAL MACHINE SOFTWARE JavaSoft Prefs com intergral fusionreactor .. . .. . On a UNIX machine as user root delete the directory .. . .. . etc .java .systemPrefs com intergral fusionreactor .. . .. . If the permissions are configured correctly uploading a license and activating it will work properly afterwards . .. . On MacOS the System Preferences are stored as a set of .plist files under the Library Preferences folder . Once the application server has stopped delete the file Library Preferences com.intergral.fusionreactor.plist to clear all Preferences belonging to FusionReactor .", "Question : null .. . Answer : I am using ColdFusion 8 and MySQL on Windows 7 . I have installed Fusion Reactor and am trying to create a New Wrapped Datasource in ColdFusion but I am getting this : error- .. . .. . Connection verification failed for data source : mydsn java.sql.SQLException : FusionReactor JDBC : 9 No driver reported it was capable of handling the URL jdbc : mysql : localhost : 3306 mydsn . null The root cause was that : java.sql.SQLException : FusionReactor JDBC : 9 No driver reported it was capable of handling the URL jdbc : mysql : localhost : 3306 mydsn . null .. . .. . How to solve this error Comment : I don t think you need want the there but it s been a while since I used FusionReactor . Did you enter the URL yourself or did you use the FR wrapper tool Comment : i enter it myself in localhost after login to coldfusion administrator 127.0.0.1 : 8500 CFIDE administrator fr jdbc wrapper.cfm quot http : 127.0.0.1 : 8500 CFIDE administrator fr jdbc wrapper.cfm quot", "Question : We use FusionReactor which will show the overall memory usage at the server level but it would be useful to be able to see how much memory individual items stored in the application scope are taking up . Comment : Short answer is you can t directly through CF instead you ve got to work with Java . See answers to this question : stackoverflow.com questions 52353 http : stackoverflow.com questions 52353 in-java-what-is-the-best-way-to-determine-the-size-of-an-object .. . Answer : Is this something that you need to do in real-time and or in production for monitoring Or is this just something that you need for debugging I would suggest just using one of the JVM memory-dump tools or maybe launching your app with the JRockit jvm and doing some live analysis with that . http : www.schierberl.com blog coldfusion-memory-leaks-part-i-profiler-introduction", "Question : I have a coldfusion web service for uploading files here is the upload function : .. . .. . When I attempt to upload files larger than zero bytes an empty txt file does successfully upload I get this exception : .. . .. . I suspect this has something to do with FusionReactor but I have reviewed all of the Reactor settings and I do not see any FusionReactor rejections in the logs . Note : Uploads do work on my development server which does NOT have FusionReactor installed . Note : This Coldfusion instance has been updated to patch level 17 and the IIS connector has been updated to the correct version . Comment : Did you try a simple file-upload on a .cfm page without using a remote function Comment : yes regular FORM based file uploads do work correctly we have a 20 megabyte limit on those particular uploads . .. . Answer : This turned out to be an IIS Connector issue there were 2 ws config folders and the first instance was the old connector and the second instance had the proper updated IIS Connector . I had assumed we were using the newer of the 2 but it turns out that by upgrading the first instance connector these uploads started working . Thanks to all who looked at this question .", "Question : i had Fusion Reactor Installed on my Machine I unstalled other Day the Folder for Fusion reactor was still there and I was not able to delete it I found the JVM config file has still some entries I want to remove those What entries from the below should be removed so i can delete my fusion reactor folder .. . .. . Thanks .. . .. . Here is the JVm Config File Code Comment : Have you tried remove the obvious arguments -javaagent : C : FusionReactor instance cfusion.cf10 fusionreactor.jar name cfusio n.cf10 address 8088 and -agentpath : C : FusionReactor instance cfusion.cf10 frjvmti x64.dll Comment : no i did not because i do not want to mess up the server i do not what to remove so that is what i am asking for .. . Answer : As @beloidavisja suggested you should remove the javaagent and agentpath arguments from the jvm config . Those are the arguments required for fusionreactor . After removing the arguments from the config file make sure to restart ColdFusion server . A restart is required for the changes to take effect . Read this http : docs.intergral.com display FR51 Manual+Installation Comment : Though be sure you always make a backup of jvm.config BEFORE making any modifications . Mistakes in the file can prevent the server from starting so you do not want to be caught without a backup copy . Comment : Thanks I will keep a backup and try this again on weekend Comment : FusionReactor creates a jvm.config.frbak which is the file before FR was installed . You can switch back to this assuming you didnt make changes to it when FR was installed .", "Question : We ve had a memory problem for a long time . I ve finally tracked down how to replicate the issue but I do not know what is causing it or how to fix it . We have a number of cfc s in a web accessible controller directory that handle for submits and processing . When a cfc is called directly with no method argument the server begins to chew up memory . For instance an URL like http : www.domain.com controller LoginController.cfc will run in the browser until it times out . The CFIDE has been locked down and is not publically accessible .. . .. . so the cfexplorer is not or should not be available . We use FusionReactor to monitor our instances . Our servers are set for 20GB of heap space . On a fresh restart after loading the application memory will cruise around 800MB . With normal traffic memory will fluctuate between 5GB and 10GB with regular garbage-collection . After awhile the server eventually reaches 98 capacity . It tends to run there .. . .. . fine for hours or even days sometimes until some spike in traffic pushes it over and an outofmemory error occurs . Garbage collection recovers no memory and there are no active .. . .. . long running threads reported by FusionReactor . Only a server restart will recovery it . Using FusionReactor which we ve just installed which is how I finally got some insight into this issue I was inspecting the PermGen memory space and found that it accounted for .. . .. . 85 of the heap . This didn t seem right at all . I performed a memory-dump and loaded it into MAP through Eclipse to analyze it . I found that there were 10 objects in memory .. . .. . measuring 1.7GB 1.7x10 is approx 85 of total heap . These objects look like this : .. . .. . So I restarted CF on one of our servers . Checked FusionReactor and saw no memory usage . Then went to a browser and called the cfc first like this : .. . .. . http : www.domain.com controller LoginController.cfc method foo .. . .. . This resulted in the onMissingMethod handler properly kicking and redirecting to the appropriate error page with no server effect . But then calling this : .. . .. . http : www.domain.com controller LoginController.cfc .. . .. . Resulting in a page hang . FusionReactor reports there are no active request even though one is running one which is why we couldn t identify the problem while it was happening . Worse refreshing the memory sees it slowly increase by tenths of a percentage with no reported activity . The timeout on the server is set to 5 minutes . I m assuming that eventually it gets killed and then orphaned at 1.7GB . This didn t bring down the server just spiked the memory where it was now running at a flat 3GB usage where garbage-collection recovers nothing . This seems to explain why over time random calls to these URLs slowly chew up and hold onto memory . Next I called the URL from multiple browser tabs . This spiked the memory almost instantaneously to 98 . FusionReactor now showed two long running requests 10 seconds and climbing even though there were over 15 browser tabs running . Force killing the thread seemed to do nothing . Only a server restart solved the problem . So now I ve identified the issue specifically phantom threads creating huge orphaned-objects in PermGen heap and how to replicate the issue . How or why requests are made directly to the cfc I have no idea . Possibly bots or occasional weird browser behavior . All the huge objects are instances of jrun.servlet.jrpp.ProxyEndpoint . What specifically is causing this issue and how do I fix it . This is CF9.01 Standard on Win2003 Server running Java 1.7.0 25 . Thanks Screenshot of MAP analysis of heap-dump http : i.stack.imgur.com 0ynya.jpg Comment : although not a proper fix could you configure Apache IIS to block log requests to that exact URL As for what s causing your problem I think if your heap s being exhausted it may not be a permgen thing . PermGen objects aren t held on the heap . It may be that there s a reference to the byte array which is still live stopping GC de-allocating it . Have you tried running stack dumps whilst the CFC request is being processed That ll tell you which code is running and filling up the array Comment : pls report to bugbase.adobe.com https : bugbase.adobe.com Comment : Thank you bugbase.adobe.com index.cfm event bug id 3690526 https : bugbase.adobe.com index.cfm event bug id 3690526 Comment : Bugbase makes it sound like this is fixed in CF10 CF11 maybe never an issue there . Or was it fixed with a hotfix Is this only a CF9 issue Very confusing comment by Nimit Sharma . .. . Answer : Perhaps you could use onCFCRequest http : help.adobe.com en US ColdFusion 9.0 CFMLRef WSe821657cd7d6f83f6daaa733122cf6931bb-8000.html in your Application.cfc to monitor this issue . It would still create the object but you could log the request then the CFABORT should stop the request dead in its tracks . Comment : A workaround like this occurred to me after posting . The interesting thing is that we already do implement oncfcRequest to handle our direct calls to cfcs . After some testing it seems that the method IS NOT being called if there is no method argument . It looks like onRequestStart is hit first . It seems to test the argument.targetPage for a cfc call . If it is a cfc AND method exists is passed onto the oncfcRequest . So your method may work if implemented in onRequestStart . Still working on it but very interesting behavior .", "Question : I m having an odd intermittent issue with the 404 handler pages on our ColdFusion 10 server . Here s the backstory : .. . .. . 1 . We have been running 2 load-balanced ColdFusion 8 servers for ages without issue . 2 . We have upgraded one of these two servers to ColdFusion 10 in order to soft-launch our ColdFusion 10 upgrade . 3 . I ve installed Update 8 on the CF10 server and have removed and re-added the connectors . 4 . Both servers are running Windows 2008 R2 . I ve read several forum posts stating issues with people getting connection reset issues with their 404 pages but I m not seeing that particular issue . What I am seeing is a hung thread in FusionReactor for the 404.cfm file . Here s an example of the stacktrace taken from one of these hung threads : .. . .. . I ve tried manually killing these threads through FusionReactor but they won t die . The only way to clear the hung threads is to restart the ColdFusion service which I ve had to do at least once a day since I upgraded to ColdFusion 10 . The 404 doesn t do anything special other than run our standard layout custom tag and display a page not found notification . Looking at the thread-dump it appears that ColdFusion has finished doing the processing and completed filling the buffer with output but it s not finishing sending to the browser There s lots of stuff there about closing and finishing but the steps following it have more reads and responses . So I m not sure what might be happening here but it s definitely stalling the completion of our ColdFusion 10 migration . I need to discover exactly what s causing these hung threads . Comment : what happens if you hit the 404 page directly Comment : I ve never seen the problem myself it always renders for me . We have those pages hit 100s 1000s of times a day by bad bots but I see just one or two hung threads a day and it s always on 404.cfm . .. . Answer : What you are experiencing is the same bug I encountered in January . I ve logged the bug in Adobe s bugbase : .. . .. . https : bugbase.adobe.com index.cfm event bug id 3494728 https : bugbase.adobe.com index.cfm event bug id 3494728 .. . .. . Their engineering team has acknowledged the issue but no ETA on an actual fix . Adobe s connector for IIS in CF10 has been quite troublesome for us . You can set a timeout to kill these hanging threads as listed in my workaround which will at least keep you from having to reboot the server daily . Good luck Comment : Perfect . I ve added my vote to the bug and am marking this as the answer . Thanks for that .", "Question : I have FusionReactor ENT v5 on my new server .. . .. . I have FusionReactor STD Edition v.5 on my old server . The only problem I am having is that the WebRequest Runtime Protection is not working . I have checked the settings .. . .. . http : docs.intergral.com display FR50 Protection+Settings .. . .. . Request Runtime Protection Strategy .. . .. . This defines what happens when this protection type is triggered . The individual survival strategies are defined as follows : .. . .. . My reactor.conf from my old server : .. . .. . My reactor.conf from my new server : .. . .. . The test email works fine and the crash notication email works fine . The slow web request does not .. . Answer : By the looks of things your new server config looks ok for the CrashProtection settings . It might just be that the Protection system has not taken the settings correctly . Have your tried restarting your server It looks like there is a bug in the current FR 5 agent where the Crash Protection settings would not correctly update if Quantity protection is enabled . A server restart should correct this issue . If you do not wish to restart your server you can try putting all the protection settings back to the defaults save them . Then setting up Runtime protection first . Hopefully this will solve your issue . If you have any other problems I suggest you contact the FusionReactor support team at support@fusion-reactor.com . Kind Regards .. . .. . Ben Donnelly .. . .. . FusionReactor Support", "Question : We use FusionReactor which will show the overall memory usage at the server level but it would be useful to be able to see how much memory individual items stored in the application scope are taking up . Comment : Short answer is you can t directly through CF instead you ve got to work with Java . See answers to this question : stackoverflow.com questions 52353 http : stackoverflow.com questions 52353 in-java-what-is-the-best-way-to-determine-the-size-of-an-object .. . Answer : Have you looked at http : www.fusion-reactor.com fr or http : www.seefusion.com .. . .. . I think both of these server monitors could help you out Comment : Andy as I said we do use FusionReactor but it only tells you how much of the overall allocated memory is being used . You can t drill down to individual items which is what I m after . I suspect it s just not possible .", "Question : We ve had a memory problem for a long time . I ve finally tracked down how to replicate the issue but I do not know what is causing it or how to fix it . We have a number of cfc s in a web accessible controller directory that handle for submits and processing . When a cfc is called directly with no method argument the server begins to chew up memory . For instance an URL like http : www.domain.com controller LoginController.cfc will run in the browser until it times out . The CFIDE has been locked down and is not publically accessible .. . .. . so the cfexplorer is not or should not be available . We use FusionReactor to monitor our instances . Our servers are set for 20GB of heap space . On a fresh restart after loading the application memory will cruise around 800MB . With normal traffic memory will fluctuate between 5GB and 10GB with regular garbage-collection . After awhile the server eventually reaches 98 capacity . It tends to run there .. . .. . fine for hours or even days sometimes until some spike in traffic pushes it over and an outofmemory error occurs . Garbage collection recovers no memory and there are no active .. . .. . long running threads reported by FusionReactor . Only a server restart will recovery it . Using FusionReactor which we ve just installed which is how I finally got some insight into this issue I was inspecting the PermGen memory space and found that it accounted for .. . .. . 85 of the heap . This didn t seem right at all . I performed a memory-dump and loaded it into MAP through Eclipse to analyze it . I found that there were 10 objects in memory .. . .. . measuring 1.7GB 1.7x10 is approx 85 of total heap . These objects look like this : .. . .. . So I restarted CF on one of our servers . Checked FusionReactor and saw no memory usage . Then went to a browser and called the cfc first like this : .. . .. . http : www.domain.com controller LoginController.cfc method foo .. . .. . This resulted in the onMissingMethod handler properly kicking and redirecting to the appropriate error page with no server effect . But then calling this : .. . .. . http : www.domain.com controller LoginController.cfc .. . .. . Resulting in a page hang . FusionReactor reports there are no active request even though one is running one which is why we couldn t identify the problem while it was happening . Worse refreshing the memory sees it slowly increase by tenths of a percentage with no reported activity . The timeout on the server is set to 5 minutes . I m assuming that eventually it gets killed and then orphaned at 1.7GB . This didn t bring down the server just spiked the memory where it was now running at a flat 3GB usage where garbage-collection recovers nothing . This seems to explain why over time random calls to these URLs slowly chew up and hold onto memory . Next I called the URL from multiple browser tabs . This spiked the memory almost instantaneously to 98 . FusionReactor now showed two long running requests 10 seconds and climbing even though there were over 15 browser tabs running . Force killing the thread seemed to do nothing . Only a server restart solved the problem . So now I ve identified the issue specifically phantom threads creating huge orphaned-objects in PermGen heap and how to replicate the issue . How or why requests are made directly to the cfc I have no idea . Possibly bots or occasional weird browser behavior . All the huge objects are instances of jrun.servlet.jrpp.ProxyEndpoint . What specifically is causing this issue and how do I fix it . This is CF9.01 Standard on Win2003 Server running Java 1.7.0 25 . Thanks Screenshot of MAP analysis of heap-dump http : i.stack.imgur.com 0ynya.jpg Comment : although not a proper fix could you configure Apache IIS to block log requests to that exact URL As for what s causing your problem I think if your heap s being exhausted it may not be a permgen thing . PermGen objects aren t held on the heap . It may be that there s a reference to the byte array which is still live stopping GC de-allocating it . Have you tried running stack dumps whilst the CFC request is being processed That ll tell you which code is running and filling up the array Comment : pls report to bugbase.adobe.com https : bugbase.adobe.com Comment : Thank you bugbase.adobe.com index.cfm event bug id 3690526 https : bugbase.adobe.com index.cfm event bug id 3690526 Comment : Bugbase makes it sound like this is fixed in CF10 CF11 maybe never an issue there . Or was it fixed with a hotfix Is this only a CF9 issue Very confusing comment by Nimit Sharma . .. . Answer : I know it d represent a big shift in how you do things but I ve always avoided allowing CF to unnecessarily create CFCs . Unless they ve changed how they do things I last played with this versions ago hitting the CFC directly causes a new instance to be created . If you re up for a small test maybe try setting up a simple front-controller delegate .cfm page and moving the CFCs within controller to the application scope . There s certainly more elegant architectures to handle it short of moving to a full-bore framework but you could : .. . .. . Use Application.cfc to set an instance of something like LoginController into the application scope and then use a simple invoke.cfm page that basically expects the name of one of these application-scoped CFCs to invoke along with parameters . Something like just for example s sake : .. . .. . Note that this d cause your controllers to be stateful and thread-safety would need to be considered but should already be anyhow .", "Question : We ve had a memory problem for a long time . I ve finally tracked down how to replicate the issue but I do not know what is causing it or how to fix it . We have a number of cfc s in a web accessible controller directory that handle for submits and processing . When a cfc is called directly with no method argument the server begins to chew up memory . For instance an URL like http : www.domain.com controller LoginController.cfc will run in the browser until it times out . The CFIDE has been locked down and is not publically accessible .. . .. . so the cfexplorer is not or should not be available . We use FusionReactor to monitor our instances . Our servers are set for 20GB of heap space . On a fresh restart after loading the application memory will cruise around 800MB . With normal traffic memory will fluctuate between 5GB and 10GB with regular garbage-collection . After awhile the server eventually reaches 98 capacity . It tends to run there .. . .. . fine for hours or even days sometimes until some spike in traffic pushes it over and an outofmemory error occurs . Garbage collection recovers no memory and there are no active .. . .. . long running threads reported by FusionReactor . Only a server restart will recovery it . Using FusionReactor which we ve just installed which is how I finally got some insight into this issue I was inspecting the PermGen memory space and found that it accounted for .. . .. . 85 of the heap . This didn t seem right at all . I performed a memory-dump and loaded it into MAP through Eclipse to analyze it . I found that there were 10 objects in memory .. . .. . measuring 1.7GB 1.7x10 is approx 85 of total heap . These objects look like this : .. . .. . So I restarted CF on one of our servers . Checked FusionReactor and saw no memory usage . Then went to a browser and called the cfc first like this : .. . .. . http : www.domain.com controller LoginController.cfc method foo .. . .. . This resulted in the onMissingMethod handler properly kicking and redirecting to the appropriate error page with no server effect . But then calling this : .. . .. . http : www.domain.com controller LoginController.cfc .. . .. . Resulting in a page hang . FusionReactor reports there are no active request even though one is running one which is why we couldn t identify the problem while it was happening . Worse refreshing the memory sees it slowly increase by tenths of a percentage with no reported activity . The timeout on the server is set to 5 minutes . I m assuming that eventually it gets killed and then orphaned at 1.7GB . This didn t bring down the server just spiked the memory where it was now running at a flat 3GB usage where garbage-collection recovers nothing . This seems to explain why over time random calls to these URLs slowly chew up and hold onto memory . Next I called the URL from multiple browser tabs . This spiked the memory almost instantaneously to 98 . FusionReactor now showed two long running requests 10 seconds and climbing even though there were over 15 browser tabs running . Force killing the thread seemed to do nothing . Only a server restart solved the problem . So now I ve identified the issue specifically phantom threads creating huge orphaned-objects in PermGen heap and how to replicate the issue . How or why requests are made directly to the cfc I have no idea . Possibly bots or occasional weird browser behavior . All the huge objects are instances of jrun.servlet.jrpp.ProxyEndpoint . What specifically is causing this issue and how do I fix it . This is CF9.01 Standard on Win2003 Server running Java 1.7.0 25 . Thanks Screenshot of MAP analysis of heap-dump http : i.stack.imgur.com 0ynya.jpg Comment : although not a proper fix could you configure Apache IIS to block log requests to that exact URL As for what s causing your problem I think if your heap s being exhausted it may not be a permgen thing . PermGen objects aren t held on the heap . It may be that there s a reference to the byte array which is still live stopping GC de-allocating it . Have you tried running stack dumps whilst the CFC request is being processed That ll tell you which code is running and filling up the array Comment : pls report to bugbase.adobe.com https : bugbase.adobe.com Comment : Thank you bugbase.adobe.com index.cfm event bug id 3690526 https : bugbase.adobe.com index.cfm event bug id 3690526 Comment : Bugbase makes it sound like this is fixed in CF10 CF11 maybe never an issue there . Or was it fixed with a hotfix Is this only a CF9 issue Very confusing comment by Nimit Sharma . .. . Answer : I believe this is a legit bug in ColdFusion and I ve reported it through their bug system . The problem is partially repeatable on other systems . For instance on my MBP running CF on Apache a direct CFC call does not cause a memory issue but does results in an immediate JRun Internal Server Error page . So something wrong is going on and the systems are handling the problem differently . Anway.. . I ve found a workaround thanks to @iKnowKungFoo and lots of experimentation . Inserting a method key-value into the URL scope seems to solve the problem . The caveat is it has to be done in the onRequestStart method and not in the onCFCRequest method . From the docs is seems that a call to a CFC would go directly to the onCFCRequest but this does not seem to be the case . All requests go through the onRequestStart method first . When onRequestStart returns only then is onCFCRequest called AND only if the required method argument exists . So in this case onCFCRequest was never being called anyway because the method argument never existed . So here is the code that runs in onRequestStart immediately : .. . .. . This bit of code checks the extension on the requested page and if a method argument does not exist in the both the URL and FORM scopes it inserts a blank key-value pair into both for good measure . The check for the WSDL argument is there as I found that while this code worked perfectly suddenly the few webservices cfc calls we have broke . If the call to the cfc is WebService.cfc WSDL then the method argument is not required and CF handles the whole thing differently . So inserting the empty method value then causes onCFCRequest to be called properly on the completion of onRequsetStart . When the cfc is invoked with the invalid empty method name the onMissingMethod is now properly kicked off . That method promptly handles the bad page request and redirects to a custom error page . Since implementing this fix we ve seen memory usage go down on all servers from a consistent 98 to 15 . Memory graphs show expected sawtoothing of memory being used and collected . Overall performance has gone from an average page request time of 1200ms to 54ms without all these requests running rampant behind the scenes . Still I hope Adobe is able to identify and fix the problem . Comment : hope Adobe is able to identify and fix the problem pls report to bugbase.adobe.com Comment : @Henry ...and I ve reported it through their bug system....first line of my last post . Bug 3690526 . Comment : Got it : bugbase.adobe.com index.cfm event bug id 3690526 https : bugbase.adobe.com index.cfm event bug id 3690526 thx", "Question : null .. . Answer : We recently switched to CF11 and converted some of our file downloads to use cfhtmltopdf https : wikidocs.adobe.com wiki display coldfusionen cfhtmltopdf . When there are multiple requests for PDFs the request start to hang as monitored in FusionReactor . I can replicate the issue by opening just three or four tabs and all requesting a PDF simultaneously . The stack-trace shows the last CFM line processed was cfhtmltopdf . It then looks to be acquiring locks on something and then two or three of the requests hang in this state . Sometimes they eventually resolve after 10 plus minutes other times they are hung for hours . Can anyone shed some light on this thread-dump or the issue Its is maybe a CF Standard Edition thing where PDF creation is limited Comment : This is an expected behaviour . Check the Document services at adobe.com products coldfusion-family buying-guide.html http : www.adobe.com products coldfusion-family buying-guide.html . Comment : In case the link breaks it says Document services PDF file generation is a Restricted feature in ColdFusion 11 Standard . ..Restricted features in ColdFusion Standard Edition : Enterprise features run through the Enterprise Feature Router EFR . These features run in the Standard edition . However all features running through the EFR are limited to one shared simultaneous request .", "Question : null .. . Answer : This is an extreme longshot but once in a while there is an engineer on here that knows what s going on under the hood . First I know that you can almost always rewrite some code to avoid QoQ for much better performance . However what I m trying to debug is a potential reason that code that uses QoQ would perform so poorly under certain conditions to develop guidelines for future projects . 1 Is there something about the ColdFusion QoQ Java implementation that would cause access to the QoQ system to be single-threaded I saw post on Railo about this https : groups.google.com forum msg railo Fsh-uuwE2ic SetqhPXrbpYJ .. . .. . 2 According to FusionReactor the stack-trace has the request always in the evaluate 90 chance or execution phase 10 chance of the QoQ -- never any other part of the logic surrounding it . That s with it running in a loop with a query param . We have several different features that make use of QoQ in a loop over tens of thousands of iterations to generate a report regardless of that being best practice or not . The only processes that slow down are the ones that use QoQ . They become 10 times as long to complete unless they are kicked off nearly immediately after a server reboot . FusionReactor always has the thread-state at evaluating the QoQ or processing the QoQ . Of note : the Heap and CPU are just fine holding steady at under 20 during the entire duration . All memory spaces look good -- code cache perm etc . I know that running QoQ in a loop is not the way to get it done and should be changed but I m just looking for answers . Is code locked Is it an available thread issue Is there something about evaluating the statement Why would it be fine right after a restart but quickly degrade within hours That s what bugs me -- I d be fine with it taking forever always it s the oddball pattern that has me on stack-overflow . ColdFusion 10 if it helps . Comment : I do not think it is a thread issue . QofQ runs in the request thread like other logic operations . Under the hood it is doing array struct comparisons - usually of strings . One way to optimize is to sort your initial data effectively and make sure you are using the right data type in your QoQ to avoid implicit type conversions like float to string for example . But if you think of a function to compare and extract an array of structs to antother array of structs - it s expensive unless it s very small data sets . sorry . Comment : JT - post some code - maybe we can offer some specific suggestions . Comment : @MarkAKruger I agree it is totally inefficient especially in comparison to building a struct once which is far more efficient for repeated lookups . What I m trying to understand is why this particular logic could slow down over time when other CPU bound logic does not . Code is a simple QoQ straight from the books . There is no datatype issue -- I ve experienced that hell with dates before . Comment : yes - beyond 300 400 rows its not great . sorry . Straight from the books is sometimes a problem though ha . Comment : FYI - I actually like and recommend it in some cases - readible and easy to conceptualize and below a certain threshold works with zero impact .", "Question : One of my Railo web-applications generates too many I O requests . Since it s hosted on an Amazon Ec2 instance that directly affects my billing badly because of EBS disk activity hundreds of milions of operations . How can I monitor I O requests The perfect tool would allow me to find which template component makes intensive I O . I m already using FusionReactor and that s great for profiling memory spaces and so on but it doesn t have anything for I O . Comment : You re probably better off asking Railo questions on the Railo Google Group : groups.google.com forum forum railo https : groups.google.com forum forum railo Comment : it seems you are talking about Disk IO and not network IO right Comment : yeah I mean disk I O .. . Answer : so you could start out by using the operating-system monitoring tools to see if you have mainly reads or writes next step is looking at memory issues despite it being an disk IO issue maybe your servers are low on memory and thrashing the drives as they are swapping pages in and out-of-memory . if you have not done so turn on the template cache this will stop railo checking the file system on every page request provided you have the memory . if you have plenty of memory both for your OS and for the JVM and you have template caching on start looking for your busy pages in fusion reactor check for cffile cfdirectory and other tags in these pages... . good luck . also use of queries of queries is often a culprit in high disk-io as internally a database is used which runs pages to disk on large resultsets if I remeber correctly .", "Question : One of the more interesting features in Coldfusion is how it handles external requests . The basic gist of it is that when a query is made to an external source through cfquery or or any other external request like that it passes the external request on to a specific driver and at that point CF itself is unable to suspend it . Even if a timeout is specified on the query or in the cfsetting it is flatly ignored for all external requests . http : www.coldfusionmuse.com index.cfm 2009 6 9 killing.threads .. . .. . So with that in mind the issue we ve run into is that somehow the communication between our CF server and our mySQL server sometimes goes awry and leaves behind hung threads . They have the following characteristics . 1 . The hung thread shows up in CF and cannot be killed from FusionReactor . 2 . There is no hung thread visible in mySQL and no active running query just the usual sleeps . 3 . The database is responding to other calls and appears to be operating correctly . 4 . Max connections have not been reached for the DB nor the user . It seems to me the only likely candidate is that somehow CF is making a request mySQL is responding to that request but with an answer which CF ignores and continues to keep the thread open waiting for a response from mySQL . That would explain why the database seems to show no signs of problems but CF keeps a thread open waiting for the mysterious answer . Usually these hung threads appear randomly on otherwise working scripts such as posting a comment on a news article . Even while one thread is hung for that script other requests for that script will go through which would imply that the script isn t neccessarily at fault but rather the condition faced when the script was executed . We ran some test to determine that it was not a mysql generated max connections error.. . we created a user gave it 1 max connections tied that connection with a sleep 1000 query and executed another query . Unfortunately it correctly errored out without generating a hung thread . So I m left at this point with absolutely no clue what is going wrong . Is there some other connection limit or timeout which could be causing the communication between the servers to go awry Comment : What exactly is wrong Are you running out of some sort of resource threads perhaps Are you maxing out your running requests .. . Answer : One of the things you should start to look at is the hardware between the two servers . It is possible that you have a router or bridge or NIC that is dropping occasional packets . This can result in the mySQL box thinking it has completed the task while the CF server sits there and waits for a complete response indefinitely creating a hung thread . 3com has some details on testing for packet-loss here : http : support.3com.com infodeli tools netmgt tncsunix product 091500 c11ploss.htm 22128", "Question : One of the more interesting features in Coldfusion is how it handles external requests . The basic gist of it is that when a query is made to an external source through cfquery or or any other external request like that it passes the external request on to a specific driver and at that point CF itself is unable to suspend it . Even if a timeout is specified on the query or in the cfsetting it is flatly ignored for all external requests . http : www.coldfusionmuse.com index.cfm 2009 6 9 killing.threads .. . .. . So with that in mind the issue we ve run into is that somehow the communication between our CF server and our mySQL server sometimes goes awry and leaves behind hung threads . They have the following characteristics . 1 . The hung thread shows up in CF and cannot be killed from FusionReactor . 2 . There is no hung thread visible in mySQL and no active running query just the usual sleeps . 3 . The database is responding to other calls and appears to be operating correctly . 4 . Max connections have not been reached for the DB nor the user . It seems to me the only likely candidate is that somehow CF is making a request mySQL is responding to that request but with an answer which CF ignores and continues to keep the thread open waiting for a response from mySQL . That would explain why the database seems to show no signs of problems but CF keeps a thread open waiting for the mysterious answer . Usually these hung threads appear randomly on otherwise working scripts such as posting a comment on a news article . Even while one thread is hung for that script other requests for that script will go through which would imply that the script isn t neccessarily at fault but rather the condition faced when the script was executed . We ran some test to determine that it was not a mysql generated max connections error.. . we created a user gave it 1 max connections tied that connection with a sleep 1000 query and executed another query . Unfortunately it correctly errored out without generating a hung thread . So I m left at this point with absolutely no clue what is going wrong . Is there some other connection limit or timeout which could be causing the communication between the servers to go awry Comment : What exactly is wrong Are you running out of some sort of resource threads perhaps Are you maxing out your running requests .. . Answer : Long story short but I believe the caused was due to Coldfusion s CF8 image-processing . It was just buggy and now in CF9 I have never seen that problem again . Comment : with CF 11 and MySql im facing the same issue but with no solution to it yet :", "Question : One of the more interesting features in Coldfusion is how it handles external requests . The basic gist of it is that when a query is made to an external source through cfquery or or any other external request like that it passes the external request on to a specific driver and at that point CF itself is unable to suspend it . Even if a timeout is specified on the query or in the cfsetting it is flatly ignored for all external requests . http : www.coldfusionmuse.com index.cfm 2009 6 9 killing.threads .. . .. . So with that in mind the issue we ve run into is that somehow the communication between our CF server and our mySQL server sometimes goes awry and leaves behind hung threads . They have the following characteristics . 1 . The hung thread shows up in CF and cannot be killed from FusionReactor . 2 . There is no hung thread visible in mySQL and no active running query just the usual sleeps . 3 . The database is responding to other calls and appears to be operating correctly . 4 . Max connections have not been reached for the DB nor the user . It seems to me the only likely candidate is that somehow CF is making a request mySQL is responding to that request but with an answer which CF ignores and continues to keep the thread open waiting for a response from mySQL . That would explain why the database seems to show no signs of problems but CF keeps a thread open waiting for the mysterious answer . Usually these hung threads appear randomly on otherwise working scripts such as posting a comment on a news article . Even while one thread is hung for that script other requests for that script will go through which would imply that the script isn t neccessarily at fault but rather the condition faced when the script was executed . We ran some test to determine that it was not a mysql generated max connections error.. . we created a user gave it 1 max connections tied that connection with a sleep 1000 query and executed another query . Unfortunately it correctly errored out without generating a hung thread . So I m left at this point with absolutely no clue what is going wrong . Is there some other connection limit or timeout which could be causing the communication between the servers to go awry Comment : What exactly is wrong Are you running out of some sort of resource threads perhaps Are you maxing out your running requests .. . Answer : We had a similar problem with a MS SQL server . There the root cause was a known issue in which for some reason the server thinks it s shutting down and the thread hangs even though the server is obviously not shutting down . We weren t able to eliminate the problem but were able to reduce it by turning off pooled DB connections and fiddling with the connection refresh rate . I think I got that label right -- no access to administrator at my new employment . Both are in the connection properties in Administrator . Just a note : The problem isn t entirely with CF . The problem apparently affects all Java apps . Which does not in any way reduce how annoyed I get by this .", "Question : I ve a website written in CFML hosted on a Amazon ec2 istance with Apache and Railo.. . I m trying to improve the performace and reduce the request calls . Previously I had some problems with CFML query of querys qoq that generated eccessive reading operation on the disk.. . But I ve solved removing the use of qoq . Reading the Apache s and FusionReactor s logs i see an high and instantly CPU peak in relation with the request calls.. . This peak is repeated every hour also in not used moments of the website like overnight . I see that request on apache logs and don t understand why are generated : .. . .. . Soo.. . I think that is a server configuration that do something every hour also because in a parallel website on a different host I haven t this peak . I ve find this on the apache documentation : https : wiki.apache.org httpd InternalDummyConnection .. . .. . What I m asking is if this CPU peak can be produced by an Apache internal request or something other server configuration like an wrong JVM parameters setting . An other idea is this peak can be generate by the JVM Garbace Collector when start to clean the memory.. . There s a way to specify the refresh time of GC Someone have a some suggestions .. . Answer : The two IP s you posted are from securedservers.com - an external source and if I had to guess it s probably some sort of uptime monitor . You could always block those IP s from your firewall if they re causing you grief and costing you extra money . On a side note if Amazon is costing you so much money that it s worth your time to track down tiny little issues like this in order to reduce your costs then maybe it s time to look at a dedicated-server somewhere where you don t have to worry about getting charged for CPU time . Just a thought ." ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
stdafx.h@ide@69
stdafx.h -- stdafx.h is a file generated by microsoft visual-studio @placeholder wizards that describes both standard system and project specific include files that are used frequently but hardly ever change .
{ "confidence": [ 145.92922973632812, 48.017601013183594, 46.8441276550293, 45.4177360534668, 45.4177360534668, 45.112152099609375, 44.214359283447266, 42.90430450439453, 41.903743743896484, 41.72696304321289, 41.660736083984375, 41.56193923950195, 41.26665496826172, 41.13229751586914, 39.75840759277344, 38.962074279785156, 38.962074279785156, 38.375614166259766, 37.72679901123047, 37.326683044433594, 37.326683044433594, 36.0642204284668, 35.69513702392578, 35.69513702392578, 35.13034439086914, 34.5257453918457, 34.03255844116211, 34.012596130371094, 33.57259750366211, 33.48954772949219, 33.29635238647461, 33.12543869018555, 33.12543869018555, 33.07146072387695, 32.9506950378418, 32.77176284790039, 32.75074768066406, 32.75074768066406, 32.75074768066406, 32.15528106689453, 32.15528106689453, 32.15528106689453, 32.044158935546875, 31.95343780517578, 31.873069763183594, 31.565086364746094, 31.1351318359375, 31.072307586669922, 31.072307586669922, 30.74774932861328, 30.74774932861328, 30.49270248413086, 29.705299377441406, 29.651870727539062, 29.40972900390625, 29.40972900390625, 29.01346206665039, 28.295135498046875, 28.243038177490234, 28.14788055419922, 28.14788055419922, 28.14788055419922, 28.14788055419922, 27.293106079101562, 27.15723419189453, 26.485301971435547, 26.485301971435547, 25.764728546142578, 25.656261444091797, 25.07415199279785, 25.07415199279785, 24.76282501220703, 24.715530395507812, 24.58304214477539, 24.250621795654297, 24.032691955566406, 23.85643196105957, 22.708423614501953, 22.649263381958008, 22.590961456298828, 22.590961456298828, 21.64882469177246, 21.175460815429688, 21.04584503173828, 20.98468780517578, 20.90736198425293, 20.487186431884766, 20.330821990966797, 20.300430297851562, 20.079570770263672, 19.760162353515625, 19.754274368286133, 19.56377410888672, 19.47073745727539, 19.194107055664062, 19.17953109741211, 19.14617919921875, 18.901775360107422, 18.824607849121094, 18.438453674316406 ], "content": [ "stdafx.h is a file generated by Microsoft Visual Studio IDE wizards that describes both standard system and project specific include files that are used frequently but hardly ever change .", "This is an empty file that only has a include stdafx.h line .", "It created few files in the project stdafx.h targetver.h stdafx.cpp .", "Leave the stdafx.h include in each .cpp file .", "Add these before the include stdafx.h in each .cpp file .", "http : en.wikipedia.org wiki Precompiled header stdafx.h .. . .. . Since stdafx.h contains the most common headers I would remove every instance of include stdafx.h and try to compile .", "stdafx.h should be the first include in EVERY cpp file in your project .", "Therefore it looks like Windows doesn t like stdafx.h to be ifdef-ed or that Windows only allows include stdafx.h to be the first line in the file .", "I am trying to include 2 platform-specific stdafx.h files in my .cpp file but the compiler is unhappy when I try to ifdef it .", "And Stdafx.h is included in every .cpp file in the beginning .", "stdafx.h is just another header file .", "Stdafx.h is created with MSVC++ .", "The library s stdafx.h may include that .h file as well it isn t very common .", "The stdafx.h is automatically generated when I start a project in VS2010 .", "@Rishi : by line do you mean include stdafx.h", "The name stdafx.h is just a convention .", "stdafx.h is not strictly necessary .", "To expand on the other excellent answers : .. . .. . stdafx.h is the file that includes all of the commonly used headers for a single project .", "That bit about the compiler ignoring everything before the include stdafx.h is very important .", "Empty out the includes from stdafx.h .", "The stdafx.h stdafx.pch name is just convention .", "Because it s good practise you put include string in stdafx.h .", "What is the purpose of the file stdafx.h and what is meant by precompiled-headers", "You could modify the settings for that one .cpp file and remove the stdafx.h line .", "I see so much code including stdafx.h .", "My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed .", "I have a header file called stdafx.h and this one is precompiled of course .", "It s a precompiled header file -- any headers you include in stdafx.h are pre-processed to save time during subsequent compilations .", "However in stdafx.h there are includes for afx.h afxwin.h etc and they were marked as errors .", "However it s quite typical to have a file like stdafx.h exactly for precompiled-headers to work and to not include all the stuff manually in each source file .", "To all : Using the pre compiled header file stdafx.h in the visual C++ always creates one or the other problem n case u have created a Windows Console App from Visual C++ .", "As you can imagine the use of the stdafx.h file name is simply a convention you can change the name if you so wish .", "The MS extension part is just a compiler performance optimization it doesn t change the semantics of having a header file that happens to be called stdafx.h .", "Note that if you remove the include and your code depend on anything that was included via stdafx.h you are going to have to include it directly .", "Is there an MSBuild step that I can do to include stdafx.h at the top of all my .cpp files so it dosen t need to do done manually", "If i include my header file i have added a project refernce to the static library and added additional include path to point to this header file before stdafx.h then it is not being inlcuded anything which is defined declared in this header file in not accessible in UnitTest1.cpp and if i include my header file after stdafx.h then it gives me so many errors from my header file the errors are from string.h and other standard header file not because of my header file .", "Did you forget to add include stdafx.h to your source .. . .. . Which of course is a fair error and I ve dealt with it before .", "My confusion is that clearly I don t include stdafx.h for the library file s header in the application .", "I want to remove the need to add include stdafx.h at the top of all my .cpps that is to say I want to do that programatically .", "StdAfx.h for Novices : cplusplus.com articles 2z86b7Xj http : www.cplusplus.com articles 2z86b7Xj", "Is there a way to keep pre-compiled headers without the stdafx.h dependencies", "When you normally use precompiled-headers stdafx.h serves 2 purposes .", ".. . Visual C++ will not compile anything before the include stdafx.h in the source file unless the compile option Yu stdafx.h is unchecked by default it assumes all code in the source up to and including that line is already compiled .", "For Microsoft compilers the setting that controls the use of precompiled-headers is controlled by a command-line argument to the compiler : Yu stdafx.h .", "Even without pre-compiled headers stdafx.h could be handy as it groups header includes and definitions common for all files .", "Simply list all your big huge headers for your APIs in your stdafx.h file in the appropriate order and then start each of your CPP files at the very top with an include stdafx.h before any meaningful content just about the only thing allowed before is comments .", "the UnitTest1.cpp file in this project includes stdafx.h to write the test cases here i need to add the header file in the UnitTest1.cpp .", "For each .cpp file figure out which includes were needed from the old stdafx.h .", "What would I be needing to debug if nothing is changed from the original except the stdafx.h file", "I ve noticed that I don t have stdafx.h in my compiler mingw32 on windows .. . .. . Am I supposed to have it", "You may wonder why I am using stdafx.h in the Mac code but that is not important at the moment : .", "The projects use the precompiled-headers and all the includes are made under stdafx.h .", "@Jarod42 Yu is the switch that I use to indicate that I am using a precompiled header but then I need to go include stdafx.h at the top of all the .cpps .", "It can be done by Clicking File on Visual Studio prompt and select the option of adding the source file to the project .", "If I get compile error related to stdafx.h I generally set the settings to do not create or use this file. .", "If you are creating a library with no Windows dependencies you can easily comment out or remove includes from the stdafx.h file .", "If a library-project defines some variables and utility functions in its stdafx.h cpp will these be visible throughout application projects built on top of the library", "Thanks for reading .. . .. . EDIT : ok here is my current build log once I took out ALL of the includes of stdafx.h .. . .. . http : pastebin.com bczLr8xY", "This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop .", "In that case is there any other good reason I should be aware of where I require stdafx.h", "You can use pre-compiled headers which are a good thing without using stdafx.h I abominate it too .", "As others have mentioned : if you don t need precompiled-headers you don t really need stdafx.h .", "stdafx.h is only allowed to contain includes of external libraries windows headers STL boost etc .", "When Visual Studio builds it will build your stdafx.cpp file first .", "The things to include in the precompiled header file are all the system and C C++ runtime header-files .", "Article : StdAfx.h for Novices - viva64.com en b 0265 http : www.viva64.com en b 0265", "In most large projects following that rule would leave stdafx.h empty rendering it useless .", "It probably was not Visual studio but visual C++ .", "It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests .", "Also code that s been written with the just stick everything in stdafx.h style is prone to be a pain to maintain as changing anything in any header file is likely to cause the whole codebase to recompile every time .", "I ve thought of possible solutions to this but I m not really sure how to go about implementing them : .. . .. . 1 Create a new stdafx.h file which is up to-date and contains the same info but works with the current version of windows-7 .", "Include header-files manually .", "Ya its very important to note that compiler ignores the include files before stdafx.h i spent around half day wondering whats happened to my code which worked previosuly fine after doing small modifications", "However I am wondering if the stdfx.h file that I created myself works like the one that is automatically created by Visual Studio", "Only include things in your precompiled header which should be there .. . Your precompiled header file must be the first include in every .cpp .. . I would avoid including it in another header in favor of forward-declaration .. . .. . Ask yourself these two questions before including something in stdafx.h .. . .. . 1 .", "Under those conditions instead of starting from scratch the compiler starts compiling from the already saved results of compiling everything in stdafx.h .", "But the question is tagged Visual Studio 2013", "I am trying to use it on visual-studio-2013 .", "If you re building a cross-platform application check Empty project when creating your project and Visual Studio won t put any files at all in your project .", ": But if I recall correctly if you have precompiled-headers switched on MSBuild gives you an actual build-time error if you neglect to include stdafx.h in any cpp unless that cpp specifically has precompiled-headers disabled which hopefully", "In fact even when using precompiled-headers it s good practice to include the headers your process actually needs after stdafx.h or precompiled.h or whatever you want to call it - along with ifdef magic in your precompiled header to turn off the usage of PCH .", "Keep the external dependency files in the same directory in which your source code is : e.g . C : Users John Documents Visual Studio 2010 Projects xyz.cpp xyz.cpp .", "Sure but that s just a standard include .", "For other versions of Visual Studio the location in the GUI will be different .", "If you don t want to use precompiled-headers then there is no point to using a standard include file - this will slow down the build for every file that includes it and cause them to include extra stuff that they do not need .", "After creating the Empty project create the source File .", "It defines a set of stable common include files .", "PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro", "I ve read that I should include these files into my .cpp files but some of these statements are already needed in the header file coming with that .", "However at the beginning I created my project as an empty project which doesn t have a stdfx.h header file .", "And I will include all the required system headers myself manually .", "And along with that it will build the .pch file that the other source files will pick up .", "You can disable precompiled-headers just for the relevant files - those settings are configurable per-file within the same project .", "The idea is that you put any header file that will not change and that you use in several source files inside your precompiled header .", "No error however if I turn the Active Solution Platform to x64 in Visual Studio 2015 I get the following error : .. . .. . Anyone would know how to solve this", "Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files .", "You ll get the most gains by including all these files - since they never change from build to build .", "stdafx usually includes platform specific definitions common for all files .", "@Rishi yes usually there are include files listed inside .", "Finally add the source file to the global-scope that is add it to the Empty Project created already ." ] }
{ "confidence": [ 164.37860107421875, 62.53489685058594, 60.629661560058594, 59.61736297607422, 59.60041046142578, 59.270057678222656, 58.230674743652344, 58.21113204956055, 58.21113204956055, 57.54820251464844, 57.160789489746094, 57.06981658935547, 57.01747512817383, 56.571014404296875, 56.571014404296875, 55.47547149658203, 54.89480209350586, 53.96806335449219, 52.8802604675293, 52.5880241394043 ], "content": [ "Question : What is the purpose of the file stdafx.h and what is meant by precompiled-headers .. . Answer : stdafx.h is a file generated by Microsoft Visual Studio IDE wizards that describes both standard system and project specific include files that are used frequently but hardly ever change . Compatible compilers for example Visual C++ 6.0 and newer will pre-compile this file to reduce overall compile times . .. . Visual C++ will not compile anything before the include stdafx.h in the source file unless the compile option Yu stdafx.h is unchecked by default it assumes all code in the source up to and including that line is already compiled . http : en.wikipedia.org wiki Precompiled header Comment : That bit about the compiler ignoring everything before the include stdafx.h is very important . I ve been burned by that before . Comment : Ya its very important to note that compiler ignores the include files before stdafx.h i spent around half day wondering whats happened to my code which worked previosuly fine after doing small modifications", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : When you normally use precompiled-headers stdafx.h serves 2 purposes . It defines a set of stable common include files . Also in each .cpp file it serves as a marker as where the precompiled-headers end . Sounds like what you want to do is : .. . .. . Leave precompiled header turned on . Leave the stdafx.h include in each .cpp file . Empty out the includes from stdafx.h . For each .cpp file figure out which includes were needed from the old stdafx.h . Add these before the include stdafx.h in each .cpp file . So now you have the minimal set of dependancies and you still are using precompiled-headers . The loss is that you are not precompiling your common set of headers only once . This would be a big hit for a full rebuild . For development mode where you are only recompiling a few files at a time it would be less of a hit . Comment : Thanks . I decided on a variation of this approach . stdafx.h is only allowed to contain includes of external libraries windows headers STL boost etc . All internal app headers must be included directly in .cpp files .", "Question : The stdafx.h is automatically generated when I start a project in VS2010 . I need to make cross-platform C++ library so I don t can t use this header file . What is this for Is it OK that I just remove this header file Comment : If I get compile error related to stdafx.h I generally set the settings to do not create or use this file. . Comment : I ask myself the same all the time - with a loud angry hit on the return button Comment : Article : StdAfx.h for Novices - viva64.com en b 0265 http : www.viva64.com en b 0265 .. . Answer : It s a precompiled header file -- any headers you include in stdafx.h are pre-processed to save time during subsequent compilations . You can read more about it here on MSDN http : msdn.microsoft.com en-us library h552b3ca.aspx . If you re building a cross-platform application check Empty project when creating your project and Visual Studio won t put any files at all in your project . Comment : There s nothing in this file that wouldn t work on other platforms . It might slow down the compilation there if the compiler doesn t support precompiled-headers but it should not break it . It s just a header file that includes other header-files . Comment : @detunized : Maybe my answer made it sound otherwise so thanks for clarifying that part .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : My advice is - don t remove precompiled-headers unless you want to make your builds painfully slow . You basically have three options here : .. . .. . 1 . Get rid of precompiled-headers not recommended .. . 2 . Create a separate library for the legacy code that way you can build it separately . 3 . Use multiple precompiled-headers within a single project . You can select individual C++ files in your Solution Explorer and tell them which precomiled header to use . You would also need to setup your OtherStdAfx.h cpp to generate a precompiled header .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : No there is probably NOT a better way . However for a given individual .cpp file you might decide that you don t need the precompiled header . You could modify the settings for that one .cpp file and remove the stdafx.h line . Actually though I don t how the pre-compiled header scheme is interferring with the writing of your unit tests . Comment : Yes there is a better way . See my answer below . @Len Holgate s answer also works .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : Yes . The stdafx.h stdafx.pch name is just convention . You can give each .cpp its own precompiled header . This would probably be easiest to achieve by a small script to edit the XML in your .vcproj . Downside : you end up with a large stack of precompiled-headers and they re not shared between TU s . Possible but smart I can t say for sure .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : Precompiled headers can save a lot of time when rebuilding a project but if a precompiled header changes every source file depending on the header will be recompiled whether the change affects it or not . Fortunately precompiled-headers are used to compile not link every source file doesn t have to use the same pre-compiled header . .. . .. . pch1.h : .. . .. . .. . pch1.cpp : .. . .. . .. . source1.cpp : .. . .. . .. . pch2.h : .. . .. . .. . pch2.cpp : .. . .. . .. . source2.cpp .. . .. . Select pch1.cpp right-click Properties Configuration Properties C C++ Precompiled Headers . Precompiled Header : Create Yc .. . Precompiled Header File : pch1.h .. . Precompiled Header Output File : intDir pch1.h .. . .. . Select source1.cpp .. . Precompiled Header : Use Yu .. . Precompiled Header File : pch1.h .. . Precompiled Header Output File : intDir pch1.h I don t think this matters for Yu .. . .. . Do the same thing for pch2.cpp and source2.cpp except set the Header File and Header Output File to pch2.h . That works for me .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : Pre-compiled headers are predicated on the idea that everything will include the same set of stuff . If you want to make use of pre-compiled headers then you have to live with the dependencies that this implies . It comes down to a trade-off of the dependencies vs the build speed . If you can build in a reasonable time with the pre-compiled headers turned off then by all means do it . Another thing to consider is that you can have one pch per library . So you may be able to split up your code into smaller libraries and have each of them have a tighter set of dependencies .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : I only use pre-compiled headers for the code that needs to include the afx stuff - usually just UI which I don t unit-test . UI code handles UI and calls functions that do have unit-tests though most don t currently due to the app being legacy . For the bulk of the code I don t use pre-compiled headers . G .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : Yes there is a better way . The problem IMHO with the wizard style of precompiled-headers is that they encourage unrequired coupling and make reusing code harder than it should be . Also code that s been written with the just stick everything in stdafx.h style is prone to be a pain to maintain as changing anything in any header file is likely to cause the whole codebase to recompile every time . This can make simple refactoring take forever as each change and recompile cycle takes far longer than it should . A better way again IMHO is to use pragma hdrstop and Yc and Yu . This enables you to easily set up build configurations that DO use precompiled-headers and also build configurations that do not use precompiled-headers . The files that use precompiled-headers don t have a direct dependency on the precompiled header itself in the source file which enables them to be build with or without the precompiled header . The project file determines what source file builds the precompiled header and the pragma hdrstop line in each source file determines which includes are taken from the precompiled header if used and which are taken directly from the source file.. . This means that when doing maintenance you would use the configuration that doesn t use precompiled-headers and only the code that you need to rebuild after a header file change will rebuild . When doing full builds you can use the precompiled header configurations to speed up the compilation process . Another good thing about having the non-precompiled header build option is that it makes sure that your cpp files only include what they need and include everything that they need something that is hard if you use the wizard style of precompiled header . I ve written a bit about how this works here : http : www.lenholgate.com blog 2004 07 fi-stlport-precompiled-headers-warning-level-4-and-pragma-hdrstop.html ignore the stuff about FI and I have some example projects that build with the pragma hdrstop and Yc Yu method here : http : www.lenholgate.com blog 2008 04 practical-testing-16---fixing-a-timeout-bug.html . Of course getting from the wizard style precompiled header usage to a more controlled style is often non-trivial.. . Comment : Please see : stackoverflow.com questions 7282853 http : stackoverflow.com questions 7282853 what-does-pragma-hdrstop-without-parameter-do-when-used-in-multiple-files - thanks .", "Question : I ve got a bunch of legacy code that I need to write unit tests for . It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests . My first instinct is to remove all these stdafx.h files which for the most part contain include directives and place those includes directly in the source files as needed . This would make it necessary to turn off pre-compiled headers since they are dependent on having a file like stdafx.h to determine where the pre-compiled headers stop . Is there a way to keep pre-compiled headers without the stdafx.h dependencies Is there a better way to approach this problem Comment : Personally I use precompiled-headers for both normal code and unit tests but use the name Precompiled.h cpp . The precompiled-headers for the unit tests include additional headers so that the compile is faster . Comment : PLEASE VOTE FOR THIS : visualstudio.uservoice.com forums 121579-visual-studio http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 4931119-allow-precompiled-headers-to-be-shared-between-pro Comment : Yes there is a better way . Only one precompiled header can be used for each source file but the pch can be specified fore each source file or set of source files . You can also specify which source files use or don t use a precompiled header . See my answer below . .. . Answer : No . pre-compiled headers relies on a single header included by all sources compiled this way . you can specify for a single-source or all not to use pre-compiled headers at all but that s not what you want . In the past Borland C++ compiler did pre-compilation without a specific header . however if two sources files included the same headers but at different order they were compiled separately since indeed the order of header-files in C++ can matter.. . Thus it means that the borland pre-compiled headers did save time only if you very rigidly included sources in the same order or had a single include file included first by all other files.. . - sounds familiar Comment : Not true you can specify a different precompiled header for each individual source file or specify that some souce files use one and others don t .", "Question : The stdafx.h is automatically generated when I start a project in VS2010 . I need to make cross-platform C++ library so I don t can t use this header file . What is this for Is it OK that I just remove this header file Comment : If I get compile error related to stdafx.h I generally set the settings to do not create or use this file. . Comment : I ask myself the same all the time - with a loud angry hit on the return button Comment : Article : StdAfx.h for Novices - viva64.com en b 0265 http : www.viva64.com en b 0265 .. . Answer : All C++ compilers have one serious performance problem to deal with . Compiling C++ code is a long slow process . Compiling headers included on top of C++ files is a very long slow process . Compiling the huge header structures that form part of Windows API and other large API libraries is a very very long slow process . To have to do it over and over and over for every single Cpp source file is a death knell . This is not unique to Windows but an old problem faced by all compilers that have to compile against a large API like Windows . The Microsoft compiler can ameliorate this problem with a simple trick called precompiled-headers . The trick is pretty slick : although every CPP file can potentially and legally give a sligthly different meaning to the chain of header-files included on top of each Cpp file by things like having different macros define d in advance of the includes or by including the headers in different order that is most often not the case . Most of the time we have dozens or hundreds of included files but they all are intended to have the same meaning for all the Cpp files being compiled in your application . The compiler can make huge time savings if it doesn t have to start to compile every Cpp file plus its dozens of includes literally from scratch every time . The trick consists on designating a special header file as the starting point of all compilation chains the so called precompiled header file which is commonly a file named stdafx.h simply for historical reasons . Simply list all your big huge headers for your APIs in your stdafx.h file in the appropriate order and then start each of your CPP files at the very top with an include stdafx.h before any meaningful content just about the only thing allowed before is comments . Under those conditions instead of starting from scratch the compiler starts compiling from the already saved results of compiling everything in stdafx.h . I don t believe that this trick is unique to Microsoft compilers nor do I think it was an original development . For Microsoft compilers the setting that controls the use of precompiled-headers is controlled by a command-line argument to the compiler : Yu stdafx.h . As you can imagine the use of the stdafx.h file name is simply a convention you can change the name if you so wish . In Visual Studio 2010 this setting is controlled from the GUI via Right-clicking on a CPP Project selecting Properties and navigating to Configuration Properties C C++ Precompiled Headers . For other versions of Visual Studio the location in the GUI will be different . Note that if you disable precompiled-headers or run your project through a tool that doesn t support them it doesn t make your program illegal it simply means that your tool will compile everything from scratch every time . If you are creating a library with no Windows dependencies you can easily comment out or remove includes from the stdafx.h file . There is no need to remove the file per se but clearly you may do so as well by disabling the precompile header setting above . Comment : omg very nice answer indeed.i was looking for standard compliant c compiler . it turns out that i can disable micro oft extensions from project properties change the compiler from auto to c and your are pretty much having standard compiler and IDE . Comment : @Rishi : by line do you mean include stdafx.h Sure but that s just a standard include . The MS extension part is just a compiler performance optimization it doesn t change the semantics of having a header file that happens to be called stdafx.h . Note that if you remove the include and your code depend on anything that was included via stdafx.h you are going to have to include it directly . Comment : @Rishi yes usually there are include files listed inside . That s the whole point . Whether your program needs those includes or not depends on the program . If you are writing portable program you probably don t need window.h . Comment : @Youda008 not quite true . Before compiling a code file the contents of headers are simply and literally pasted on the spot where you include them in the source file done by the same preprocessor step that evaluates macros . The resulting total file is then passed to the actual compiler which never sees a header file as a separate entity . You only put declarations on header file because that s what works well on a header file - it s a conventional rule . Try it Create a header file with a whole program then create a source file that only has an include for it . It compiles fine . Comment : @Youda008 of course just like if you typed the code twice . But I think I now understand your question - let me try again : it s true that you don t usually emit code from contents of a header file but a the compiler doesn t know that until it processes the header and b compiling C++ is a lot more complex than just translating formulas to machine code e.g . templates . Even if no code is emitted the compiler still needs to process the header and create an internal representation for it because it alters how it compiles the source file . That s very expensive for complex headers .", "Question : What is the purpose of the file stdafx.h and what is meant by precompiled-headers .. . Answer : To expand on the other excellent answers : .. . .. . stdafx.h is the file that includes all of the commonly used headers for a single project . This would include all of the Windows definitions for example . Because this file includes so much stuff the compiler gets a bit slow when processing it . By precompiling it the compiler can skip much of the processing and reuse it over and over again as long as none of the files included by it change the precompiled result doesn t need to change either . The name stdafx.h is just a convention . You could easily rename it to something else if you changed all your sources to include the new file instead . To produce the actual precompiled header file you need one source file in the project that has special compile flags to produce precompiled output . By convention this file is named stdafx.cpp and if you inspect the settings for that source file you will see how it is different .", "Question : I am trying to include 2 platform-specific stdafx.h files in my .cpp file but the compiler is unhappy when I try to ifdef it . You may wonder why I am using stdafx.h in the Mac code but that is not important at the moment : . When I try to compile the code on Windows I receive : Fatal Error C1018 . I tried enclosing other header-files with ifdef in the same file and the compiler was happy . Therefore it looks like Windows doesn t like stdafx.h to be ifdef-ed or that Windows only allows include stdafx.h to be the first line in the file . So my question is why Kat .. . Answer : When the compiler includes a pre-compiled header it basically forgets anything that came before the header . Thus your elif isn t matched to a if anymore .", "Question : I am trying to include 2 platform-specific stdafx.h files in my .cpp file but the compiler is unhappy when I try to ifdef it . You may wonder why I am using stdafx.h in the Mac code but that is not important at the moment : . When I try to compile the code on Windows I receive : Fatal Error C1018 . I tried enclosing other header-files with ifdef in the same file and the compiler was happy . Therefore it looks like Windows doesn t like stdafx.h to be ifdef-ed or that Windows only allows include stdafx.h to be the first line in the file . So my question is why Kat .. . Answer : This is because you have Precompiled Headers turned on - turn it off and you should be fine .", "Question : I just have a quick question . I ve noticed that I don t have stdafx.h in my compiler mingw32 on windows .. . .. . Am I supposed to have it Or maybe is there a way to get around it Thanks for reading .. . .. . EDIT : ok here is my current build log once I took out ALL of the includes of stdafx.h .. . .. . http : pastebin.com bczLr8xY Comment : Are you having a problem Comment : yes im wondering why i dont have this even though its in this glm library i downloaded : 3dcodingtutorial.com Working-with-3D-models Getting-GLM.html http : www.3dcodingtutorial.com Working-with-3D-models Getting-GLM.html i figured i had to compile it with my project since i get a bunch of errors when making a static lib Comment : and just like every other question its downed Comment : im just gonna attempt taking the stdafx out...again.. . Comment : every other file was there its those undefined errors .. . Answer : To all : Using the pre compiled header file stdafx.h in the visual C++ always creates one or the other problem n case u have created a Windows Console App from Visual C++ . The Solution to it is that just create Empty Project rather than the pre-compiled windows console-application . After creating the Empty project create the source File . Write the business logic and add all the required resource and header-files . Keep the external dependency files in the same directory in which your source code is : e.g . C : Users John Documents Visual Studio 2010 Projects xyz.cpp xyz.cpp . Finally add the source file to the global-scope that is add it to the Empty Project created already . It can be done by Clicking File on Visual Studio prompt and select the option of adding the source file to the project . Thanks and Regards : Rouf Khan", "Question : I see so much code including stdafx.h . Say I do not want pre-compiled headers . And I will include all the required system headers myself manually . In that case is there any other good reason I should be aware of where I require stdafx.h Comment : for anyone who uses this as a referrence If you are already using precompiled-headers go to your project s properties C C++ and precompiled-headers and choose the option not to use them . Comment : StdAfx.h for Novices : cplusplus.com articles 2z86b7Xj http : www.cplusplus.com articles 2z86b7Xj .. . Answer : stdafx.h is just another header file . If you fell you don t need it feel free to not include it and remove it from the project . However it s quite typical to have a file like stdafx.h exactly for precompiled-headers to work and to not include all the stuff manually in each source file .", "Question : I see so much code including stdafx.h . Say I do not want pre-compiled headers . And I will include all the required system headers myself manually . In that case is there any other good reason I should be aware of where I require stdafx.h Comment : for anyone who uses this as a referrence If you are already using precompiled-headers go to your project s properties C C++ and precompiled-headers and choose the option not to use them . Comment : StdAfx.h for Novices : cplusplus.com articles 2z86b7Xj http : www.cplusplus.com articles 2z86b7Xj .. . Answer : Even without pre-compiled headers stdafx.h could be handy as it groups header includes and definitions common for all files . You can of course choose to repeat all these definitions in every file . stdafx.h is not strictly necessary . Comment : Bad practice - you ought to always explicitly list the headers you need so you can check module dependencies . Comment : stdafx usually includes platform specific definitions common for all files . It is a dependency of every file . You use it in order not to repeat the definitions in every file . This is a good practice because you only do that in one place . Comment : It is not a dependency of every file unless every file actually requires every header in stdafx . In practise this is rarely the case IME . Using it in this way is lazy at best bad practise at worst Comment : A common stdfax.h will include pragma once directive windows OS version definition and includes like windows.h or stdio.h . Why is it bad to group all these . Also if you have a header of your own that IS actually required by all files why not put it there Bad practice is to do otherwise . Comment : pragma once doesn t help you across module boundaries without enabling pch support try inserting a pragma message in windows.h . Not all files in a decent project will need windows.h stdio.h etc . For more reasons check my answer.. .", "Question : I see so much code including stdafx.h . Say I do not want pre-compiled headers . And I will include all the required system headers myself manually . In that case is there any other good reason I should be aware of where I require stdafx.h Comment : for anyone who uses this as a referrence If you are already using precompiled-headers go to your project s properties C C++ and precompiled-headers and choose the option not to use them . Comment : StdAfx.h for Novices : cplusplus.com articles 2z86b7Xj http : www.cplusplus.com articles 2z86b7Xj .. . Answer : If you don t want to use precompiled-headers then there is no point to using a standard include file - this will slow down the build for every file that includes it and cause them to include extra stuff that they do not need . Get rid of it and just include the headers they need .", "Question : null .. . Answer : I have a static library-project in VS solution under same solution i have created a unittest project . the UnitTest1.cpp file in this project includes stdafx.h to write the test cases here i need to add the header file in the UnitTest1.cpp . If i include my header file i have added a project refernce to the static library and added additional include path to point to this header file before stdafx.h then it is not being inlcuded anything which is defined declared in this header file in not accessible in UnitTest1.cpp and if i include my header file after stdafx.h then it gives me so many errors from my header file the errors are from string.h and other standard header file not because of my header file . Am i missing something here Following is the tempalate that i get : Comment : resolved it by chnaging the common launguage runtime support to clr instead of clr : safe" ] }
[ "yes-answer-long", "yes-answer-short" ]
ide
UNK_RELATION
cqengine@nosql@51
cqengine -- cqengine collection query-engine is a @placeholder indexing and query-engine for retrieving objects matching sql-like queries from java collections .
{ "confidence": [ 62.264251708984375, 55.819091796875, 54.334564208984375, 53.17070770263672, 50.6352653503418, 50.488285064697266, 50.00847625732422, 49.06852722167969, 47.83583068847656, 46.41864776611328, 46.313392639160156, 45.502235412597656, 44.55391311645508, 41.62546920776367, 41.62546920776367, 40.60722732543945, 39.51360321044922, 39.48090362548828, 39.18182373046875, 39.18182373046875, 37.44224166870117, 37.08534622192383, 32.63427734375, 28.864328384399414, 22.647130966186523, 22.061922073364258, 21.09555435180664, 21.09555435180664, 20.440893173217773, 20.228546142578125, 20.183055877685547, 19.556589126586914, 19.174047470092773, 17.978702545166016, 16.976341247558594, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.37483024597168, 15.13792610168457, 14.591487884521484, 14.591487884521484, 14.426410675048828, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 13.342901229858398, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707, 11.994908332824707 ], "content": [ "Does anyone know if CQEngine can query objects with in other objects", "BTW I m the author of CQEngine and you can find the complete source for this example on the CQEngine site https : github.com npgall cqengine blob master code src test java com googlecode cqengine examples nestedobjects NestedObjectsExample.java .", "So my question is what is the indexing penalty in CQEngine for a fast changing collection elements often added and removed from the collection", "I m the author of CQEngine .", "I m not an expert on lambdas so I ll just answer regarding the CQEngine part : You need to use rows.retrieve to make CQEngine execute a query .", "See : Grouping and Aggregation in CQEngine with Java 8 Lambda Expressions https : code.google.com p cqengine Java version 8 or later - lambda expressions .", "Can this be done with CQEngine or would I need to flatten the objects", "I have an issue in using CQEngine .", "FYI you can also ask questions in the CQEngine discussion forum https : groups.google.com forum forum cqengine-discuss .", "Yes you just need to define a CQEngine attribute which will return the values from the nested objects you want to search .", "I m considering CQEngine https : code.google.com p cqengine for a project where I need to handle lots of real-time events and execute some queries from time to time .", "Also if the values you are indexing uniquely identify an object that is primary key-type attributes then you can also try the UniqueIndex http : cqengine.googlecode.com svn cqengine javadoc apidocs com googlecode cqengine index unique UniqueIndex.html .", "Or cqengine behind the scenes actually makes use of it when RAM is not enough", "There s a bit of discussion on the CQEngine site about how to perform queries to get a ResultSet .", "If you expect to get a variety of queries on the same dataset consider caching the unfiltered dataset into the application tier and querying it with CQEngine .", "Your question mostly relates to how to group and sum objects with lambdas in general and not to CQEngine per-se .", "1-Let oracle take care of this with distinct keyword .. . .. . 2-Do this in java with cqengine https : code.google.com p cqengine wiki DeduplicationStrategies Logical Elimination Strategy : .. . .. . 3-Do this in java with a set .. . .. . From a performance point of view which one is better", "I am using cqengine with no particular setting and I have a 6MB maven-dependency on sqllite .", "I m investigating the use of cqengine https : code.google.com p cqengine as the cost of re querying the database would be too costly but I m really struggling to retrieve the data I need .", "I m the author of CQEngine I created issue 45 https : github.com npgall cqengine issues 45 to see if I can improve the API based on this answer in future .", "I use cqengine https : github.com npgall cqengine for collection indexation : .. . .. . This code isn t compiled because : .. . .. . Probably it s a lack of library design : LocalDate implements ChronoLocalDate that extends Comparable ChronoLocalDate it means that it s necessary to use wildcard bounds in generic method declaration .", "Above you re actually bypassing the query-engine and its indexes and accessing the collection directly .", "If you have a lot of unique values in attributes that you index you would probably benefit from IndexQuantization http : code.google.com p cqengine wiki IndexQuantization discussed on the site .", "I would like to be able to query users orders and products .", "It searches the collection for users who ordered a Snickers Bar .", "You could optionally add an index on this attribute to accelerate queries on it .", "It works well for returning the results but I noticed that the larger the collection gets the slower it becomes to add or remove elements to from it .", "I also get an OutOfMemoryError on large numbers of events from the indexes increasing along with the collection I think .", "I need to have sql-like function which is matchesRegex as well as equal function .", "Regarding the addition removal of elements to the collection I noticed that adding elements is slower if I have indexes on the collection than without indexes .", "Don t know if the IndexQuantization would help since the values I m indexing although unique they are not in sequence .", "Problem : if i Keep the Attribute Data Type as Attribute ClassDataType Comparable Generic purpose i cannot use it for Regex query as it needs something that extends CharSequence and if i make it Attribute ClassType", "So adding objects will either add new entries a new Set to the CHM if objects with the attribute value are already stored or to the existing Set if already stored .", "I have a few simple indexes added on the collection so I m assuming the delay is because on each event added removed the indexes are updated .", "In SQL I d like to .. . .. . Every example I come across shows me how to do this for one field .. . .. . Which returns .. . .. . Is it possible to do it for all fields or am I approaching this completely incorrectly .. . .. . Edit : .. . .. . Example output I d like would be", "I currently just use NavigableIndexes so I am not writing anything on my disk not explicitely that is however I m managing very big lists .", "My question is : can I remove this dependency", "You can safely remove that dependency if you are not using it .", "The situation of which dependencies can be safely be removed should indeed be documented better .", "I ll try to do that in future .", "Ok thanks", "And good job with your project it is really awesome", "For example this attribute will retrieve the names of each Product which is contained in the Orders which were placed by a particular User .", "Here s an example which sets up an IndexedCollection of Users where each user has a number of Orders and each order has a number of Products .", "The products are snacks you might find at a cinema .", "I have just added this as a new example", "That is actually amazing .", "It has cut my project dev time in half .", "Thanks", "No problem glad to help", "Can you give an example of the output you d like to see", "I think creating new classes like a wrapper is to much overhead for fixing a generic signature error .", "I d create a delegation method like .. . .. . Actually the problem lies in the declaration A extends Comparable A which should be A extends Comparable", "I have a table from which I extract 8 columns said columns will be properties of a pojo say MyPojo .", "This is a way to tune the tradeoff between memory usage and retrieval speed .", "But it s especially useful to reduce the size of indexes in memory if you have a large number of unique values .", "Hope that helps", "Thank you for taking the time to respond .", "Will give It a try though .", "Is that because on each add remove the index gets reorganized", "It might depend on which type of index you are talking about as you didn t mention .", "They all use different data-structures .", "But in general no indexes are not reorganized as each object is added .", "The HashIndex is basically a ConcurrentHashMap AttributeType Set ObjectType .", "If your values aren t in sequence you could write your own implementation of the Quantizer interface .", "For example a simple implementation would mod the attribute value to the number of entries in the index you want e.g .", "value desired index size .", "Using an UniqueIndex solved the memory usage I was using initially HasIndexes which were causing lots of memory usage .", "For the delays I m investigating further but will probably post on the forum .", "Thanks a lot", "My requirement is to create Attributes Dynamically .", "And use them while querying .", "extends Comparable can use it for regex by typecasting it to Attribute ClassType String then equal method doesn t accept Attribute .", "What would be the solution for this.. . Will appreciate any response .", "To group and sum the results you can then use JDK 8 StreamSupport to convert the ResultSet to a stream .", "I don t understand what you mean by do it for all fields .", "@StuartMarks example output added", "@Nick The one-arg overload of groupingBy will accumulate a list of values instead if summing them .", "Is that what you want", "I want to remove duplicates .", "I came up with two strategies .", "The one which runs faster on your machine for your dataset .", "The best way to find that out is to test it .", "Let the database do the work .", "In this case you don t send unnecessary data over the network which will - probably - have the biggest positive impact on performance .", "Also it is the most compact solution in terms of code-size .", "The best way to decide these things is to model it .", "What are the access patterns in your application", "If this is would be a one-off request : have the database do the filtering .", "If you expect to get many such identical requests : have the database do the filtering and consider caching results in the application .", "There is no rule of thumb such as always have the database do the work .", "If your application operates at any kind of scale you will not want every request to hit the database .", "You need to scale out your application tier .", "On the other hand you should not over-engineer .", "The answer depends on the traffic volume and data-access patterns that you expect .", "I guess creating of LocalDate wrapper that implements Comparable is a workaround in this case .", "Perhaps there are some other solutions of this problem", "super A however fixing it here wouldn t help as this pattern is spread throughout the API and allowing such a return-type here would just raise errors at the next API usage .", "But since as far as I understood Attribute only produces A s but doesn t consume them we can relax the signature here and accept an Attribute", "extends A following the PECS http : stackoverflow.com q 2723397 2711488 pattern ." ] }
{ "confidence": [ 86.99888610839844, 85.9876708984375, 77.65971374511719, 59.55944061279297, 58.5915641784668, 56.8986701965332, 54.59056091308594, 54.07147979736328 ], "content": [ "Question : Does anyone know if CQEngine can query objects with in other objects I would like to be able to query users orders and products . Can this be done with CQEngine or would I need to flatten the objects .. . Answer : Yes you just need to define a CQEngine attribute which will return the values from the nested objects you want to search . For example this attribute will retrieve the names of each Product which is contained in the Orders which were placed by a particular User . You could optionally add an index on this attribute to accelerate queries on it . Here s an example which sets up an IndexedCollection of Users where each user has a number of Orders and each order has a number of Products . The products are snacks you might find at a cinema . It searches the collection for users who ordered a Snickers Bar . BTW I m the author of CQEngine and you can find the complete source for this example on the CQEngine site https : github.com npgall cqengine blob master code src test java com googlecode cqengine examples nestedobjects NestedObjectsExample.java . I have just added this as a new example Comment : That is actually amazing . It has cut my project dev time in half . Thanks Comment : No problem glad to help", "Question : null .. . Answer : I m investigating the use of cqengine https : code.google.com p cqengine as the cost of re querying the database would be too costly but I m really struggling to retrieve the data I need . In SQL I d like to .. . .. . Every example I come across shows me how to do this for one field .. . .. . Which returns .. . .. . Is it possible to do it for all fields or am I approaching this completely incorrectly .. . .. . Edit : .. . .. . Example output I d like would be Comment : Your question mostly relates to how to group and sum objects with lambdas in general and not to CQEngine per-se . I m not an expert on lambdas so I ll just answer regarding the CQEngine part : You need to use rows.retrieve to make CQEngine execute a query . Above you re actually bypassing the query-engine and its indexes and accessing the collection directly . There s a bit of discussion on the CQEngine site about how to perform queries to get a ResultSet . To group and sum the results you can then use JDK 8 StreamSupport to convert the ResultSet to a stream . Comment : See : Grouping and Aggregation in CQEngine with Java 8 Lambda Expressions https : code.google.com p cqengine Java version 8 or later - lambda expressions . Comment : Can you give an example of the output you d like to see I don t understand what you mean by do it for all fields . Comment : @StuartMarks example output added Comment : @Nick The one-arg overload of groupingBy will accumulate a list of values instead if summing them . Is that what you want", "Question : I m considering CQEngine https : code.google.com p cqengine for a project where I need to handle lots of real-time events and execute some queries from time to time . It works well for returning the results but I noticed that the larger the collection gets the slower it becomes to add or remove elements to from it . I have a few simple indexes added on the collection so I m assuming the delay is because on each event added removed the indexes are updated . I also get an OutOfMemoryError on large numbers of events from the indexes increasing along with the collection I think . So my question is what is the indexing penalty in CQEngine for a fast changing collection elements often added and removed from the collection .. . Answer : If you have a lot of unique values in attributes that you index you would probably benefit from IndexQuantization http : code.google.com p cqengine wiki IndexQuantization discussed on the site . This is a way to tune the tradeoff between memory usage and retrieval speed . But it s especially useful to reduce the size of indexes in memory if you have a large number of unique values . FYI you can also ask questions in the CQEngine discussion forum https : groups.google.com forum forum cqengine-discuss . Hope that helps Comment : Thank you for taking the time to respond . Don t know if the IndexQuantization would help since the values I m indexing although unique they are not in sequence . Will give It a try though . Regarding the addition removal of elements to the collection I noticed that adding elements is slower if I have indexes on the collection than without indexes . Is that because on each add remove the index gets reorganized Comment : It might depend on which type of index you are talking about as you didn t mention . They all use different data-structures . But in general no indexes are not reorganized as each object is added . The HashIndex is basically a ConcurrentHashMap AttributeType Set ObjectType . So adding objects will either add new entries a new Set to the CHM if objects with the attribute value are already stored or to the existing Set if already stored . Comment : If your values aren t in sequence you could write your own implementation of the Quantizer interface . For example a simple implementation would mod the attribute value to the number of entries in the index you want e.g . value desired index size . Comment : Also if the values you are indexing uniquely identify an object that is primary key-type attributes then you can also try the UniqueIndex http : cqengine.googlecode.com svn cqengine javadoc apidocs com googlecode cqengine index unique UniqueIndex.html . Comment : Using an UniqueIndex solved the memory usage I was using initially HasIndexes which were causing lots of memory usage . For the delays I m investigating further but will probably post on the forum . Thanks a lot", "Question : I have a table from which I extract 8 columns said columns will be properties of a pojo say MyPojo . I want to remove duplicates . I came up with two strategies . 1-Let oracle take care of this with distinct keyword .. . .. . 2-Do this in java with cqengine https : code.google.com p cqengine wiki DeduplicationStrategies Logical Elimination Strategy : .. . .. . 3-Do this in java with a set .. . .. . From a performance point of view which one is better Comment : The one which runs faster on your machine for your dataset . The best way to find that out is to test it . .. . Answer : The best way to decide these things is to model it . What are the access patterns in your application If this is would be a one-off request : have the database do the filtering . If you expect to get many such identical requests : have the database do the filtering and consider caching results in the application . If you expect to get a variety of queries on the same dataset consider caching the unfiltered dataset into the application tier and querying it with CQEngine . There is no rule of thumb such as always have the database do the work . If your application operates at any kind of scale you will not want every request to hit the database . You need to scale out your application tier . On the other hand you should not over-engineer . The answer depends on the traffic volume and data-access patterns that you expect .", "Question : I am using cqengine with no particular setting and I have a 6MB maven-dependency on sqllite . I currently just use NavigableIndexes so I am not writing anything on my disk not explicitely that is however I m managing very big lists . My question is : can I remove this dependency Or cqengine behind the scenes actually makes use of it when RAM is not enough .. . Answer : You can safely remove that dependency if you are not using it . I m the author of CQEngine . The situation of which dependencies can be safely be removed should indeed be documented better . I ll try to do that in future . Comment : Ok thanks And good job with your project it is really awesome", "Question : null .. . Answer : I have an issue in using CQEngine . My requirement is to create Attributes Dynamically . And use them while querying . I need to have sql-like function which is matchesRegex as well as equal function . Problem : if i Keep the Attribute Data Type as Attribute ClassDataType Comparable Generic purpose i cannot use it for Regex query as it needs something that extends CharSequence and if i make it Attribute ClassType extends Comparable can use it for regex by typecasting it to Attribute ClassType String then equal method doesn t accept Attribute . What would be the solution for this.. . Will appreciate any response .", "Question : I use cqengine https : github.com npgall cqengine for collection indexation : .. . .. . This code isn t compiled because : .. . .. . Probably it s a lack of library design : LocalDate implements ChronoLocalDate that extends Comparable ChronoLocalDate it means that it s necessary to use wildcard bounds in generic method declaration . I guess creating of LocalDate wrapper that implements Comparable is a workaround in this case . Perhaps there are some other solutions of this problem .. . Answer : I think creating new classes like a wrapper is to much overhead for fixing a generic signature error . I d create a delegation method like .. . .. . Actually the problem lies in the declaration A extends Comparable A which should be A extends Comparable super A however fixing it here wouldn t help as this pattern is spread throughout the API and allowing such a return-type here would just raise errors at the next API usage . But since as far as I understood Attribute only produces A s but doesn t consume them we can relax the signature here and accept an Attribute extends A following the PECS http : stackoverflow.com q 2723397 2711488 pattern . With this helper your code should compile smoothly : Comment : Thanks for a reminder about supression of compiler types restriction -- it saved a lot of memory to me . Comment : Nice answer . I m the author of CQEngine I created issue 45 https : github.com npgall cqengine issues 45 to see if I can improve the API based on this answer in future .", "Question : I have a table from which I extract 8 columns said columns will be properties of a pojo say MyPojo . I want to remove duplicates . I came up with two strategies . 1-Let oracle take care of this with distinct keyword .. . .. . 2-Do this in java with cqengine https : code.google.com p cqengine wiki DeduplicationStrategies Logical Elimination Strategy : .. . .. . 3-Do this in java with a set .. . .. . From a performance point of view which one is better Comment : The one which runs faster on your machine for your dataset . The best way to find that out is to test it . .. . Answer : Let the database do the work . In this case you don t send unnecessary data over the network which will - probably - have the biggest positive impact on performance . Also it is the most compact solution in terms of code-size ." ] }
[ "yes-answer-long", "yes-answer-short" ]
nosql
UNK_RELATION
quill@rich-text-editor@35
quill -- quill is a cross-browser @placeholder .
{ "confidence": [ 49.12944793701172, 47.3116340637207, 47.3116340637207, 46.49934387207031, 46.49934387207031, 46.22925567626953, 44.87030029296875, 44.87030029296875, 44.87030029296875, 44.87030029296875, 44.87030029296875, 43.599151611328125, 43.332244873046875, 42.92218780517578, 42.92218780517578, 42.240196228027344, 41.755035400390625, 41.56336975097656, 41.56336975097656, 40.70214080810547, 40.70214080810547, 40.48085403442383, 40.48085403442383, 40.48085403442383, 40.48085403442383, 39.81412887573242, 39.313697814941406, 38.94280242919922, 38.933265686035156, 38.933265686035156, 38.933265686035156, 38.71522903442383, 37.7756462097168, 37.184024810791016, 37.173927307128906, 37.173927307128906, 37.173927307128906, 37.173927307128906, 37.173927307128906, 37.10896301269531, 37.10896301269531, 37.10896301269531, 37.10896301269531, 37.10896301269531, 37.10896301269531, 36.465904235839844, 36.006771087646484, 36.006771087646484, 35.62194061279297, 35.4246826171875, 34.47885513305664, 34.47885513305664, 34.47885513305664, 34.47885513305664, 34.47885513305664, 34.38276672363281, 34.38276672363281, 34.38276672363281, 34.38276672363281, 32.71951675415039, 32.71951675415039, 32.71951675415039, 32.71951675415039, 32.71951675415039, 32.71951675415039, 32.71951675415039, 31.75265884399414, 31.55236053466797, 31.55236053466797, 31.55236053466797, 31.55236053466797, 31.55236053466797, 31.329326629638672, 31.329326629638672, 31.329326629638672, 31.232494354248047, 30.153491973876953, 29.99332046508789, 29.99332046508789, 29.99332046508789, 29.99332046508789, 29.99332046508789, 29.99332046508789, 29.99332046508789, 28.82616424560547, 28.699222564697266, 28.512556076049805, 28.014217376708984, 27.427295684814453, 26.939882278442383, 26.939882278442383, 26.939882278442383, 26.939882278442383, 26.939882278442383, 26.939882278442383, 26.939882278442383, 25.772727966308594, 24.373859405517578, 24.373859405517578, 23.866567611694336 ], "content": [ "Quill 1.0 has no such limitation .", "for example : I m using a quill editor .", "this should be : I m using a quill editor .", "I m fairly new at Quill .", "Also there is a quill tag just for this .", "I am planning to use quill 1.0 as quill 0.20.1 has no support for block elements .", "Why does quill not like the formats key", "Quill can handle multible spaces but not tabs .", "Quill will duplicate and mirror those option s .", "Are you using Quill 1.0 beta or an older version", "I m using quill editor within primeng editor .", "To the person who voted for closing : please note that the quill website recommends to post quill related question here .", "There is a chunk of jsx code which describes a quill toolbar with that one you should get toolbar exact as on second example at official quill website .", "No Quill does not support arbitrary HTML .", "Quill documentation is really minimalistic though .", "I am working with quill to create a collaborative editor .", "No Quill was designed and built to be a standalone editor .", "A similar issue is on this Github Issue https : github.com quilljs quill issues 469 .", "Custom formats in Quill don t seem to be very well documented at the moment .", "I have Quill inside a fixed-height div so that I can display Quill along other divs panels on the page .", "I didn t see a Quill command for that but you could use this to disable it : .. . .. . where DIV ID is your element id chosen when initializing Quill .", "I am attempting to insert HTML into quill editor .", "I there a way to solve this problem without modifying Quill", "I want to integrate Quill into a SAPUI5 project .", "Quill represents newlines with block tags to avoid ambiguity .", "My understanding of Quill JS is pretty limited at the moment and I can t find any documentation on this on the Quill site github page so I hope someone may be able to set me straight .", "I know that quill will renormalize the html code .", "Is the only way to support custom styling for setting HTML in Quill to manually extract the styles from given HTML first and then applying the HTML into Quill editor", "Thus the Quill div has scrollbars once the text gets long enough .", "How do I add attributes to the buttons in a Quill-base WYSIWIG editor", "Quill 1.0 is moving away from using execCommand and should not have this limitation .", "Uh.. . Use a textarea instead of Quill", "This is currently not possible in the latest version of Quill but will be once Custom Formats https : github.com quilljs quill milestones Customizable 20Formats is added in an upcoming release .", "I m using quill to make myDiv editable like this : .. . .. . I also want Quill to become active or not active the user cannot edit contents anymore on demand e.g .", "Is the switching out of style tags for span tags a bug with Quill", "I m looking to incorporate the Quill editor into my 1.1.0.3 Meteor application .", "I am using Quill JS to output the content of the editor to SVG text .", "I want to try quill http : quilljs.com in my express.js app .", "Do I have to extend Quill and make one of my own", "If I try to inject any dom into editor quill immediately understands that it shouldnt be there and normalizes to text .", "Quill does not permit arbitrary changes to its contents so the normalization are you are seeing is expected .", "im using the quill.js http : quilljs.com Quill Rich Text Editor for my project .", "Code formatting is not supported yet so Quill is converting the content to the subset of formats it does know .", "Instead of grunt or gulp Quill uses npm scripts https : docs.npmjs.com misc scripts for its build tasks .", "If anyone has any pointers with using different fonts and Quill please contact me .", "I m using a Quill Meteor wrapper to Quill Editor v0.19.14 found here : https : github.com themeteorites quilljs .. . .. . This is what I think needs to be in-place to get things working : .. . .. . The main messaging template : .. . .. . I would like to replace the textarea I currently use for message input with Quill .", "Doing that it seems that Quill intercepts the event which is not unexpected but probably stops the propagation .", "Is there a way to make Quill not stop the propagation and allow for remaining click handlers to be called", "I am trying to load quill to only support certain formats according to the format API here : http : quilljs.com docs formats .. . .. . But whenever I add the format key I get the error .. . .. . TypeError : Cannot read property config of undefined .. . .. . Here is the code to initialize quill .", "Quill is replacing all style tags with span tags in the HTML for example a test in this jsfiddle : http : jsfiddle.net f1L4z2py .. . .. . Does Quill support custom styles in its editor HTML", "Colors in Quill is a selectable format so you would add it exactly the same way you added font and size .", "Currently Quill is adding a tag for dropped url but I cannot find related code .", "Both enable and disable exist in Quill 1.0 http : beta.quilljs.com docs api enable for this purpose .", "In Quill 0.20 they are under the editor instance variable so you can do myQuill.editor.enable .", "Check this thread - stackoverflow.com questions 29008914 http : stackoverflow.com questions 29008914 how-to-add-image-in-quill-js", "When creating a Quill toolbar it s possible to set the selected attribute of the toolbar s select elements and this setting will then be used as the default-value when entering a new line .", "Considering I ve only modified Quill a small amount I m not totally sure of the best way to accomplish this or if there is even a good way at all .", "I am using quill js and making a fully responsive editor that will scale font-size with the container using the view width property .", "If you are using Quill 1.0 beta contextual keyboard handlers http : beta.quilljs.com docs modules keyboard context can make this easier .", "To clarify you want Quill to signal when a its content is rendered on a new line with an explicit n character", "I have a blog entirely coded in php using Quill as WYSIWYG text-editor .", "You can do this by overwriting its dom whitelist .. . Every class prismjs creates needs to registered or it will be cleaned removed by Quill .", "For example if you use webpack you can just require quill and it and its dependencies will be bundled together with the rest of your application .", "The whole hr functionality can be done similar to the img format https : github.com quilljs quill blob develop formats image.js .", "I am still using quill 0.20.1 and I cannot switch to v1 yet .", "When creating an editor then clicking in it and tapping the first character quill introduces a line break automatically which is not the behavior I want .", "Is there a way to have the Quill editor insert a class on every div so that I can adjust paragraph spacing with CSS instead of br tags", "Is it possible in some way to make quill keep just the id and the class of the spans or divs it moves", "In Quill I prepared a special span just changing the background-color of some text .", "I just debugged the thing and Quill is perfectly transmitting the events I was able to do what I wanted .", "Quill also listens on keydown and since it s registered before your handler it will fire first .", "With a simple backspace the Quill.js editor actually gets deleted and the functionality of quill is pretty much broken in many other ways .", "I want to add controls over images in quill editor just basic buttons like left center right after digging codebase couldn t find clues on how to do that .", "Quill 0.20.1 uses execCommand https : developer.mozilla.org en-US docs Web API Document execCommand which only allows 1-7 as valid font sizes .", "I m investigating the use of Quill for a project and I need to know if it s possible to create a custom format blot with more complexity than a single element and a single parameter .", "I would like to import both Quill and CKEditor on the same page but somehow CKEditor seems to execute itself even without being executed : .. . .. . You can check it on the example when you try to edit the text sample : .. . .. . How to load both scripts on the same page and just execute Quill", "I just hope that Quill developers won t give up since this project is simply amazing .", "I also added a condition so that if I set the external ng-model binding to undefined it will clear the ng-quill document as well .", "I want users to be able to copy double spaced text from say MS Word and paste it into my Quill editor while preserving their double spacing .", "I realized that in pure Javascript i can solve this problem by changing the contenteditable using a nested span but that implies I have to modify Quill .", "jsfiddle.net aBYpt 14 http : jsfiddle.net aBYpt 14 here is one example in javascript but we cannot figure out a way to do so using Quill :", "The problem is that Quill uses HTML with different s whereas my entire SAPUI5 application only has one div tag and for the rest everything is Javascript .", "You could recall prismjs s highlight API but that will modify Quill s contents in a way Quill has no insight into and lose the user s cursor position .", "Here is the quickstart example from here https : www.npmjs.com package quill .. . .. . As you can see you don t need to install it with npm it is only one of the options .", "For debugging I tried using prepareFormat bold true from Quill JS documentation example instead of prepareFormat size this.value but that seems to be ignored too .", "It is possible to add a image into quill JS editor from a url but can t find a way to add an image from computer like all the traditional rich text editors do .", "Does anyone try to use EmojiOne http : emojione.com emoji icons on Quill editor", "I have it fully built except for one problem : .. . .. . Even though I am using prepareFormat for times where the cursor is at one point and no other text is selected the font-size will-change on occasion to the highest default font inside of the quill minified file which in version 0.20.1 happens to be 48px .", "With the great Quill http : quilljs.com rich-text-editor for Javascript I m trying to make two or more editors share the same toolbar .", "Using Quill I am trying to store the text within a span element span .author-advanced class upon releasing the key but the event keyup does not get fired .", "Would I build a sub template like the following : .. . .. . And then in the quill editor js file like so : .. . .. . And now change the main template to incorporate Quill like this : .. . .. . I m looking for this look and these controls : .. . .. .", "I saw on the Quill example page http : quilljs.com examples that in the simple toolbar the Bold button only transforms the word Three into span class author-gandalf b Three b span if you make the text stronger .", "Here are a few challenges you need to overcome which is why I don t think you can do this right now : .. . .. . Quill needs to recognize accept the new pre and code tags .", "I have still no idea why the question has downvotes but however here is the solution : .. . .. . Import the embed blot https : github.com quilljs quill tree develop blots - important : not block not embed block embed", "I didn t have this before and tried to see what changes I made in my code but everything points towards a Quill behavior I didn t introduce this one in my code .", "I recently found out about Quill text-editor and since I am playing with new stuff in php and javascript I decided to use it in my app instead of Wysiwyg .", "I am trying to customize Quill in such a way that I change the id and class of some spans included in the text for example set a text with a given background-color and give the created span a specific id and class .", "Ok calling addModule multiple times on the same toolbar completely messes up the events : as multiple events are installed multiple times they are applied so Quill starts to loop applying alternatively the toolbar format command forever on the selection .", "What I m applying for now is a workaround : I use the editors one at a time and when creating the new one I destroy the old one with the undocumented destroy method on Quill object in order to detach everything .", "DOCTYPE html .. . html .. . head .. . meta charset utf-8 .. . meta name viewport content width device-width .. . title JS Bin title .. . script src cdn.ckeditor.com 4.5.7 standard ckeditor.js script .. . script src cdn.quilljs.com 0.20.1 quill.js script .. . head .. . body .. . textarea name editor1 textarea .. . hr .. . div id toolbar .. . button class ql-bold Bold button .. . button class ql-italic Italic button .. . div .. . div id quilltest text sample div .. . script .. . CKEDITOR.replace editor1 .. . var quill new Quill quilltest .. . quill.addModule toolbar container : toolbar .. . script .. . body .. . html .. . .. . also on https : jsbin.com xicetom 5" ] }
{ "confidence": [ 54.05298614501953, 54.05298614501953, 53.55284118652344, 52.874305725097656, 52.40939712524414, 51.74669647216797, 51.711463928222656, 51.711463928222656, 50.86579895019531, 49.60467529296875, 49.60467529296875, 49.42767333984375, 49.23389434814453, 48.805259704589844, 48.239418029785156, 47.351478576660156, 47.34056091308594, 47.34056091308594, 47.06073760986328, 46.358543395996094 ], "content": [ "Question : I m using quill to make myDiv editable like this : .. . .. . I also want Quill to become active or not active the user cannot edit contents anymore on demand e.g . by pressing a button . Is there something like myQuill.disable or myQuill.enable Comment : To the person who voted for closing : please note that the quill website recommends to post quill related question here . Also there is a quill tag just for this . .. . Answer : I didn t see a Quill command for that but you could use this to disable it : .. . .. . where DIV ID is your element id chosen when initializing Quill . For all editors use the following : .. . .. . Change false to true to enable back . Comment : Euh I forgot to ask . Do you use jQuery Comment : got it with myQuill.root.contentEditable true false Comment : Nice Both solutions work", "Question : I m using quill to make myDiv editable like this : .. . .. . I also want Quill to become active or not active the user cannot edit contents anymore on demand e.g . by pressing a button . Is there something like myQuill.disable or myQuill.enable Comment : To the person who voted for closing : please note that the quill website recommends to post quill related question here . Also there is a quill tag just for this . .. . Answer : Both enable and disable exist in Quill 1.0 http : beta.quilljs.com docs api enable for this purpose . In Quill 0.20 they are under the editor instance variable so you can do myQuill.editor.enable . Comment : console.log myQuill.enable -- undefined . It seems not to be there in v0.20.1 Comment : My mistake with v0.20.1 it was organized under the editor instance variable so myQuill.editor.enable should work . In 1.0 myQuill.enable works . I ll update my answer to reflect this .", "Question : I am trying to load quill to only support certain formats according to the format API here : http : quilljs.com docs formats .. . .. . But whenever I add the format key I get the error .. . .. . TypeError : Cannot read property config of undefined .. . .. . Here is the code to initialize quill . If I comment out the format key it works . What could be wrong . Why does quill not like the formats key .. . Answer : The likely culprit is the placeholder module not sure if this is yours or a third party . Removing it fixes the problem and the formats config works as advertised : http : jsfiddle.net b1s09v3n . A similar issue is on this Github Issue https : github.com quilljs quill issues 469 . Since multiple people are running into this perhaps some part of the documentation is not clear Or you are both using the same third party placeholder module . Comment : thanks . I need a placeholder . and that was the only placeholder module I could find .", "Question : I want to add controls over images in quill editor just basic buttons like left center right after digging codebase couldn t find clues on how to do that . If I try to inject any dom into editor quill immediately understands that it shouldnt be there and normalizes to text . Thank you . .. . Answer : You can align left right or center the line the image is on using the align format but not just the image itself . Quill does not permit arbitrary changes to its contents so the normalization are you are seeing is expected .", "Question : I m fairly new at Quill . I want to make a custom module or extended function that handles drag-and-drop event . I want to detect the dropped text and if it s an image url I want to insert img tag instead of a tag . Currently Quill is adding a tag for dropped url but I cannot find related code . .. . Answer : There s no special handling for drag-and-drop at the moment . What you re seeing is simply native browser behavior .", "Question : I am attempting to insert HTML into quill editor . The HTML can contain custom styles in style tags . Quill is replacing all style tags with span tags in the HTML for example a test in this jsfiddle : http : jsfiddle.net f1L4z2py .. . .. . Does Quill support custom styles in its editor HTML I looked at the Quill documentation : http : quilljs.com docs api however I saw nothing about support for custom styles in the HTML except for maybe SetContents however I would like to avoid extracting the style from the given HTML if I can avoid it . Is the switching out of style tags for span tags a bug with Quill Is the only way to support custom styling for setting HTML in Quill to manually extract the styles from given HTML first and then applying the HTML into Quill editor Thanks .. . Answer : No Quill does not support arbitrary HTML . Anything it does not recognize will be converted strong tag to b tag when possible or removed when not possible .", "Question : I am using quill js and making a fully responsive editor that will scale font-size with the container using the view width property . I have it fully built except for one problem : .. . .. . Even though I am using prepareFormat for times where the cursor is at one point and no other text is selected the font-size will-change on occasion to the highest default font inside of the quill minified file which in version 0.20.1 happens to be 48px . I have tried putting my own numbers into the quilljs FONT SIZES object but only sometimes it would select them properly . The thing I am most confused about is that if i highlight them the letters will-change to exactly what I would like them to be whereas for the prepareFormat fails to change it into any number but a preset in FONT SIZES . If anyone has a good idea as to what event I should tie prepareFormat to please let me know : .. . .. . Thanks in advanced .. . Answer : Quill 0.20.1 uses execCommand https : developer.mozilla.org en-US docs Web API Document execCommand which only allows 1-7 as valid font sizes . Quill 1.0 has no such limitation . Comment : I just commented out the values in FONT SIZES and used prepareFormat formatText functions to grab my sizes .", "Question : I m using quill editor within primeng editor . I want to apply a style to the text while typing text change .When I m typing a text within slashes i could have to apply a style and 2 slashes should be removed . for example : I m using a quill editor . this should be : I m using a quill editor . the text only within the slashes should be applied the style . except the text within slashes should not be applied the style . I have added the following code to Editor.ts .. . .. . but the issue is once highlighted a text following text entering is getting highlighted bold . i cannot stop highlighting text after highlighting a text then all text will be getting highlighted after a highlighting text . please help me on this . .. . Answer : You can use formatText http : beta.quilljs.com docs api formattext to apply formatting to arbitrary ranges of text . If you are using Quill 1.0 beta contextual keyboard handlers http : beta.quilljs.com docs modules keyboard context can make this easier .", "Question : null .. . Answer : I am planning to use quill 1.0 as quill 0.20.1 has no support for block elements . Its very difficult to follow as every day there is a push to the core logic . Any help on how I can follow the road to 1.0 . I would also love to contribute to help move faster . Comment : Just posted an update quilljs.com blog are-we-there-yet-to-1-0 http : quilljs.com blog are-we-there-yet-to-1-0", "Question : im using the quill.js http : quilljs.com Quill Rich Text Editor for my project . And i want to programm a Code Button to style a specific code content . But a code functionality in the editor requires to keep the text format . Like the pre tag in HTML . But when i copy some code text in the editor tabulators or multible spaces will be removed . Even if i add white-space : pre important to the editor class . Have someone the same problems or anyone know a solution for this problem regards .. . Answer : Code formatting is not supported yet so Quill is converting the content to the subset of formats it does know .", "Question : im using the quill.js http : quilljs.com Quill Rich Text Editor for my project . And i want to programm a Code Button to style a specific code content . But a code functionality in the editor requires to keep the text format . Like the pre tag in HTML . But when i copy some code text in the editor tabulators or multible spaces will be removed . Even if i add white-space : pre important to the editor class . Have someone the same problems or anyone know a solution for this problem regards .. . Answer : Quill can handle multible spaces but not tabs . So there is no way to replace tabs with multible spaces regards", "Question : I am trying to customize Quill in such a way that I change the id and class of some spans included in the text for example set a text with a given background-color and give the created span a specific id and class . I know that quill will renormalize the html code . When I move the selected text or copy-paste it some characteristics are kept but not the id and specific class . Is it possible in some way to make quill keep just the id and the class of the spans or divs it moves I don t want to add crazy html . Thanks .. . Answer : This is currently not possible in the latest version of Quill but will be once Custom Formats https : github.com quilljs quill milestones Customizable 20Formats is added in an upcoming release .", "Question : In Quill I prepared a special span just changing the background-color of some text . Now I would like to fire up a popup when a user clicks or double-clicks on that span . Doing that it seems that Quill intercepts the event which is not unexpected but probably stops the propagation . Is there a way to make Quill not stop the propagation and allow for remaining click handlers to be called I tried a .. . .. . before binding with my handler but it doesn t work . Thanks Damir .. . Answer : I just debugged the thing and Quill is perfectly transmitting the events I was able to do what I wanted . But I keep your idea just in case.. . : - Thanks", "Question : I have Quill inside a fixed-height div so that I can display Quill along other divs panels on the page . Thus the Quill div has scrollbars once the text gets long enough . In response to some user actions in the other panels I use Quill.prototype.setSelection http : quilljs.com docs api quillprototypesetselection which works great when the overall text is short enough that the whole document is visible . But how can I make sure that for longer documents I also scroll to the relevant portion of the doc so that the selection is visible Thanks .. . Answer : You can use quill.getBounds to retrieve the bounds of the selection area and set the scroll height . Ex . Comment : Thank you works well", "Question : null .. . Answer : It is possible to add a image into quill JS editor from a url but can t find a way to add an image from computer like all the traditional rich text editors do . Is there any way that serves this purpose Comment : Check this thread - stackoverflow.com questions 29008914 http : stackoverflow.com questions 29008914 how-to-add-image-in-quill-js Comment : This adds an image using url . Does not allow to drap drop or add an image from computer", "Question : In Quill I prepared a special span just changing the background-color of some text . Now I would like to fire up a popup when a user clicks or double-clicks on that span . Doing that it seems that Quill intercepts the event which is not unexpected but probably stops the propagation . Is there a way to make Quill not stop the propagation and allow for remaining click handlers to be called I tried a .. . .. . before binding with my handler but it doesn t work . Thanks Damir .. . Answer : This is a little wacky but have you tried hiding the real button and using a decoy button to : .. . .. . 1 . Trigger your custom event first . 2 . Then trigger the original hidden button .", "Question : null .. . Answer : Using Quill I am trying to store the text within a span element span .author-advanced class upon releasing the key but the event keyup does not get fired . I realized that in pure Javascript i can solve this problem by changing the contenteditable using a nested span but that implies I have to modify Quill . I there a way to solve this problem without modifying Quill Comment : There are some details missing from your question . What are you trying to fire a keyup event on What text are you trying to store in the span or where are you getting the text from Comment : I m trying to fire a keyup event on a span element of class author-advanced that i am currently typing so I can store the span in a variable . The text are just regular keyboard input like jpaugh is such a nice guy Comment : More information on the pure Javascript solution with nested spans would be helpful . Otherwise I don t believe you can attach a key listeners to just any DOM element such as ordinary spans : jsfiddle.net vqpp1hr5 http : jsfiddle.net vqpp1hr5 Comment : jsfiddle.net aBYpt 14 http : jsfiddle.net aBYpt 14 here is one example in javascript but we cannot figure out a way to do so using Quill :", "Question : null .. . Answer : I would like to import both Quill and CKEditor on the same page but somehow CKEditor seems to execute itself even without being executed : .. . .. . You can check it on the example when you try to edit the text sample : .. . .. . How to load both scripts on the same page and just execute Quill DOCTYPE html .. . html .. . head .. . meta charset utf-8 .. . meta name viewport content width device-width .. . title JS Bin title .. . script src cdn.ckeditor.com 4.5.7 standard ckeditor.js script .. . script src cdn.quilljs.com 0.20.1 quill.js script .. . head .. . body .. . textarea name editor1 textarea .. . hr .. . div id toolbar .. . button class ql-bold Bold button .. . button class ql-italic Italic button .. . div .. . div id quilltest text sample div .. . script .. . CKEDITOR.replace editor1 .. . var quill new Quill quilltest .. . quill.addModule toolbar container : toolbar .. . script .. . body .. . html .. . .. . also on https : jsbin.com xicetom 5", "Question : null .. . Answer : I am still using quill 0.20.1 and I cannot switch to v1 yet . On this old version I have a strange behavior on Firefox . When creating an editor then clicking in it and tapping the first character quill introduces a line break automatically which is not the behavior I want . I didn t have this before and tried to see what changes I made in my code but everything points towards a Quill behavior I didn t introduce this one in my code . Is there any reason why there would be the introduction of a line break at any point Did anyone see such a thing before Sorry to ask questions about an old version I am really not in a position to switch right now to the very new one . Thanks for your suggestions and help .. . .. . Damir Comment : Ok I just found it . The editor was made draggable by upper level object . Solved .", "Question : I m looking to incorporate the Quill editor into my 1.1.0.3 Meteor application . Specifically I have a messaging template that could use more advanced editor more than the simple textarea control I m using now but I m having a little trouble getting started . I m using a Quill Meteor wrapper to Quill Editor v0.19.14 found here : https : github.com themeteorites quilljs .. . .. . This is what I think needs to be in-place to get things working : .. . .. . The main messaging template : .. . .. . I would like to replace the textarea I currently use for message input with Quill . Would I build a sub template like the following : .. . .. . And then in the quill editor js file like so : .. . .. . And now change the main template to incorporate Quill like this : .. . .. . I m looking for this look and these controls : .. . .. . enter image description here http : i.stack.imgur.com jtkV9.png .. . .. . For some reason the drop downs do not work right they look like this so far : .. . .. . enter image description here http : i.stack.imgur.com HANcU.png .. . .. . See how the drop down Text and Background color are blank -- it didn t matter if I have the dropdown select options in the HTML or not nothing would show so in the first case I took it out and in the second case I left it in to show no difference . Am I on the right track There are no really good examples to find . .. . Answer : what about including in your quill-editor template : .. . .. . or try to remove basic-wrapper references from template and from onRendered .. . .. . for dropdown you also have to add the code for example : Comment : This probably belongs in a comment and not as an answer -- what do you think Comment : if you want a full editor check the Full Example here : quilljs.com examples http : quilljs.com examples Comment : @Aaron can be a comment yes but solved your initial issue as well ." ] }
[ "yes-answer-long", "yes-answer-short" ]
rich-text-editor
UNK_RELATION
computer-vision@algorithm@113
computer-vision -- computer-vision enables images or sequences of images to be processed by a computer using an @placeholder .
{ "confidence": [ 62.895023345947266, 60.891780853271484, 60.06517028808594, 60.05091094970703, 60.05091094970703, 60.05091094970703, 59.36382293701172, 58.04766845703125, 58.04766845703125, 57.938968658447266, 57.938968658447266, 57.938968658447266, 57.938968658447266, 56.300514221191406, 56.23124313354492, 56.23124313354492, 56.23124313354492, 56.23124313354492, 56.23124313354492, 55.96391296386719, 55.55292510986328, 54.22800064086914, 54.22800064086914, 54.22800064086914, 54.22800064086914, 54.22800064086914, 54.22800064086914, 54.22800064086914, 54.18986129760742, 53.84519958496094, 53.84519958496094, 52.76500701904297, 52.76500701904297, 52.76500701904297, 51.82158660888672, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 51.057281494140625, 49.146484375, 49.054039001464844, 49.054039001464844, 49.054039001464844, 49.054039001464844, 49.054039001464844, 49.054039001464844, 49.054039001464844, 49.054039001464844, 49.054039001464844, 48.841819763183594, 48.32044982910156, 48.32044982910156, 48.32044982910156, 48.32044982910156, 48.25103759765625, 47.22057342529297, 47.22057342529297, 47.22057342529297, 47.22057342529297, 47.22057342529297, 47.22057342529297, 46.88794708251953, 46.88794708251953, 46.543312072753906, 46.543312072753906, 46.543312072753906, 46.543312072753906, 46.543312072753906, 46.31720733642578, 46.31720733642578, 45.795719146728516, 45.795719146728516, 45.27082443237305, 44.74886703491211, 44.74886703491211, 44.540069580078125, 44.38407897949219, 44.08799362182617, 44.08799362182617, 44.08799362182617, 44.08799362182617, 44.08799362182617, 44.08799362182617, 44.08799362182617, 44.08799362182617, 44.08799362182617 ], "content": [ "Are you interested in computer-vision", "New to computer vision.. .", "area51.stackexchange.com proposals 11036 computer-vision http : area51.stackexchange.com proposals 11036 computer-vision", "This is clearly a computer-vision type of problem .", "I m on people tracking in computer-vision .", "But my project is related with computer-vision .", "OpenCV http : opencv.org is the acronym of Open Computer Vision .", "Computer Vision and Pattern Recognition 2007 .", "Computer Vision and Pattern Recognition 2008 .", "The first is a standard approach in computer-vision keypoint matching .", "How on earth would this work for computer-vision tracking", "Salient features in computer-vision are an art in itself .", "There is a fair amount of computer-vision research in this area .", "By the way I generated the images above using OpenCV + Python which is a great combination for computer-vision .", "Use estimateGeometricTransform function in the Computer Vision System Toolbox .", "Then I use rendered image in a computer-vision algorithm .", "Computer Vision - ECCV 2004 2004 469 481 .", "Material recognition is an active research area in computer-vision .", "What would be an explanation for opening and closing in computer-vision", "PS : For image-processing using matlab or python would be better as they have good computer-vision libraries like Computer vision Toolbox for Matlab and OpenCv for python .", "Tracking defines a computer-vision task with the goal to track a given object region of interesset or point in consequtive images of a video sequence .", "I cant use the Computer Vision Toolbox .", "Viola and Jones are very big names in computer-vision .", "You should also add the computer-vision tag .", "I m reading some paper about computer-vision .", "There is a function for that in the Computer Vision System Toolbox called detectHarrisFeatures .", "Take a smartphone programming class and a computer-vision class .", "Computer Vision ECCV 2010 2010 : 1-14 .", "Any pure Java computer-vision library solution that doesn t depend on opencv", "This might be enough information for a regular programming question but for computer-vision problems you should include 3 images .", "In the context of computer-vision multi-view refers to the images of the same object taken from different views angles positions .", "I did not took computer-vision in college but I d like to give it a try .", "I have heard that this is something called computer-vision not so sure .. .", "We maintain an open-source python library for computer-vision .", "I strongly recommend you to use OpenCV http : opencv.willowgarage.com wiki it s a great computer-vision library that greatly help with anything related to computer-vision .", "Computer vision requires lots of high-level sequential operations .", "It will at least familiarise you even more with the challenges of computer-vision .", "It may be complicated but that s just the nature of doing anything in computer-vision .", "I try to implement my own independent computer-vision library : .", "Wikitude .. . .. . this is more for augmentedreality but in its core is still computer-vision .", "So if this gets approved OpenCV can become the standard API for computer-vision .", "I would use OpenCV as it is the best computer-vision library right now .", "Face Detection Computer Vision http : elm.eeng.dcu.ie oconaire source algorithms in MATLAB .", "Google material recognition computer-vision for a list of recent papers .", "I have a computer-vision set up with two cameras .", "Sorry if this is an obvious question but I am only new to computer-vision .", "You can also use the extractHOGFeatures function in the Computer Vision System Toolbox .", "I need to develop a script utilizing computer-vision that will : .. . .. . 1 .", "In computer-vision there s very often no perfect universal way of doing something .", "I am new to computer-vision and need some advice on where to start .", "I am doing a project in computer-vision and I need some help .", "This one is part of the computer-vision system toolbox http : www.mathworks.com help vision index.html .", "I m very new to the Computer Vision field and am fascinated by it .", "The latest release 2014a of the Computer Vision System Toolbox lets you do that .", "So which computer-vision system I have to use for my objective", "Object recognition in computer-vision is an open and ongoing area of research .", "Computer vision is a very difficult area to work on and requires a good understanding of the area .", "Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition 2015 .", "however if you are new to computer-vision and c++ this is going to be a challenge .", "I may note that I don t have Computer Vision toolbox of MATLAB .", "If the dataset is not a computer-vision one then DBNs can most definitely perform better .", "To save you the trouble there is a detectBRISKFeatures function in the Computer Vision System Toolbox : mathworks.com help vision ref detectbriskfeatures.html http : www.mathworks.com help vision ref detectbriskfeatures.html", "Also the book Mastering OpenCV with Practical Computer Vision Projects https : www.packtpub.com application-development mastering-opencv-practical-computer-vision-projects has a usefull chapter about that .", "Under the hood MATLAB uses OpenCV for some of its computer-vision http : www.mathworks.com products computer-vision functions including detecting SURF http : en.wikipedia.org wiki SURF features .", "I m aware that shape modeling relates a lot with computer-vision as well but I ve never seen any computer-vision or image-processing industry whose transparent description is to use statistical shape models SSM .", "Also OpenCV is considered as part of a Khronos Computer Vision Group Proposal http : www.khronos.org assets uploads developers library Computer-Vision-Working-Group-Proposal-Dec11.pdf .", "I am trying to do computer-vision using a webcam the model is Hercules Dualpix .", "What is the most effective and actually used in the Computer Vision community way of normalizing an RGB image .", "I realise that OpenCV is very popular but please can we stop tagging every computer-vision question with OpenCV", "In a computer-vision project the image I want to process can be partitioned in zones containining multiple products of the same kind .", "In computer-vision does the detection task always have to be based on a sliding-window principle", "Is there any documentation that lists the potential tags returned by the Computer Vision API for any given image", "Consider getting the excellent book Multiple View Geometry https : www.amazon.co.uk Multiple-View-Geometry-Computer-Vision dp 0521540518 .", "If you have the Computer Vision toolbox then check this link out : http : www.mathworks.com help vision examples face-detection-and-tracking-using-the-klt-algorithm.html", "Here is an example http : www.mathworks.com help vision ug stereo-vision.html of how to do that using the Computer Vision System Toolbox for MATLAB .", "I m working on a computer-vision application using openCV and the goal is to measure the width of an obejct before after it falls on a container .", "I am using the JSFeat Computer Vision Library https : inspirit.github.io jsfeat imgproc and am trying to convert an image to greyscale .", "Here is an updated version of TK Gospodinov s example http : tkgospodinov.com computer-vision-face-detection-in-java-with-opencv-using-javacv :", "I m hoping to accelerate a computer-vision application that computes many FFTs using FFTW and OpenMP on an Intel CPU .", "You can now do that as of release R2013B using the Computer Vision System Toolbox .", "@rayryeng segmentation is a classical computer-vision problem many times computer-vision algorithms involve image-processing tools but the question : I want to extract the shirt pixels out of an image has nothing to do with image-processing .", "@Jason It is a bijection in the sense you can convert from one to the other but in the context of computer-vision programming it is not as various important computer-vision algorithms handle the color spaces very differently .", "This will reduce noise in the image always a problem for computer-vision algorithms also will focus detector on more prominent features .", "Thx sparky.. . but we have to do this purely from jpeg data computer-vision .", "I am looking for solutions BoofCV http : boofcv.org index.php title Main Page or any pure java computer-vision library that doesn t require OpenCV to do template matching of images to detect object within a picture .", "This approach is illustrated in an example http : www.mathworks.com help vision examples structure-from-motion-from-two-views.html in the Computer Vision System Toolbox .", "The Computer Vision System Toolbox includes a function estimateFundamentalMatrix http : www.mathworks.com help vision ref estimatefundamentalmatrix.html that does what you need .", "You should be using imwarp rather than conv2 : .. . .. . Better yet use rectifyStereoImages from the Computer Vision System Toolbox .", "Check out Find Image Rotation and Scale Using Automated Feature Matching http : www.mathworks.com help vision examples find-image-rotation-and-scale-using-automated-feature-matching.html example in the Computer Vision System Toolbox .", "In the book Mastering OpenCV with Practical Computer Vision Projects it said something about Perspective-N-Point but I cannot understand it .", "Im still a beginner to Computer vision so need guild lines and help for implementing three dimensional hough space .", "I want to apply computer-vision on an autonomous robot-car to position itself by detecting light sources LED on the field .", "Computer vision can certainly be done with both platforms but from what you ve said the Raspberry Pi is a more appropriate platform .", "Is there any industrial computer-vision camera that comes with a Python interface or that has a well developed third-party solution", "Everything I know about computer-vision is a few examples of photo editing with OpenCV .", "In the context of machine-learning data clustering computer-vision what are the most relevant applications that deal with this approach", "If you have Matlab Computer Vision Library installed on your disc already you can simply use", "BTW before I write an answer do you have the Computer Vision Toolbox" ] }
{ "confidence": [ 64.5773696899414, 62.31025695800781, 60.766151428222656, 60.61273193359375, 59.995887756347656, 59.57577896118164, 58.79570007324219, 58.6313362121582, 55.99537658691406, 55.59706115722656, 55.588035583496094, 55.53224182128906, 55.3680419921875, 55.35447692871094, 54.70689392089844, 54.272193908691406, 54.05177307128906, 53.90045166015625, 53.67783737182617, 53.6552848815918 ], "content": [ "Question : my problem is how to match one image to a set of images and to display the matched images . I am using SURF feature for feature-extraction . Comment : just iterate through all images and compare 1 by 1 . Then show the one with the best score . .. . Answer : If you have the Computer Vision System Toolbox take a look at the following examples : .. . .. . Object Detection In A Cluttered Scene Using Point Feature Matching http : www.mathworks.com help vision examples object-detection-in-a-cluttered-scene-using-point-feature-matching.html .. . Image Search using Point Features http : www.mathworks.com help vision examples image-search-using-point-features.html", "Question : I m trying to recognize the characters of a game using Java so I can process them later . The images look like this : .. . .. . http : i.imgur.com GM0XPgO.jpg .. . .. . I want to recognize specially the 3w in the left-bottom the 214 and 0.13 in the center and the 1m in the right-bottom . Anyone have any idea Comment : Can you share what you ve tried so far Comment : What have you tried so far Do you have any errors This is too broad . Consider attempting a solution and posting a MCVE http : stackoverflow.com help mcve along with any errors or issues you re having . .. . Answer : This question is related to computer-vision and I would suggest using this java OCR library from here : http : ocrsdk.com documentation code-samples .. . .. . This will help you recognize English text present on image . I m pretty sure that it will give you major texts from image . PS : For image-processing using matlab or python would be better as they have good computer-vision libraries like Computer vision Toolbox for Matlab and OpenCv for python . Here are some examples for you task using matlab : http : www.mathworks.com help vision ref ocr.html", "Question : I have two images that are similar but differ in orientation and size . One example can be seen below : .. . .. . enter image description here http : i.stack.imgur.com vXqe8.png enter image description here http : i.stack.imgur.com Pd7pt.png .. . .. . Is there a way to match the two images I have used Procrustes shape analysis but are there other ways Comment : You need to use a log polar comparaison.. . no idea if it s already implemented in matlab or in a matlab toolbox.. . Comment : I would use image registration . Find a set of keypoints that match between the two images then find a homography transformation matrix that aligns the two together . BTW before I write an answer do you have the Computer Vision Toolbox Comment : This might give you some ideas : Algorithm improvement for Coca-Cola can shape recognition http : stackoverflow.com q 10168686 2545927 Comment : @kkuilla - Great link . I ve favourited that one for quite some time . .. . Answer : Check out Find Image Rotation and Scale Using Automated Feature Matching http : www.mathworks.com help vision examples find-image-rotation-and-scale-using-automated-feature-matching.html example in the Computer Vision System Toolbox . enter image description here http : i.stack.imgur.com boFnc.png .. . .. . It shows how to detect interest points extract and match features descriptors and compute the transformation between the two images . Comment : @rayryeng there are a lot of them . You should check them out : mathworks.com help vision examples.html http : www.mathworks.com help vision examples.html", "Question : Matlab Stereo Calibration App http : www.mathworks.com help vision ug stereo-camera-calibrator-app.html only ask the square size once when adding the first image . Is there a way I can : .. . .. . Change the checkerboard square size Set different values to X and Y size rectangles instead of a square I hope that the Matlab Computer Vision System Toolbox http : www.mathworks.com products computer-vision is not that limited since Bouguetj s http : www.vision.caltech.edu bouguetj calib doc Matlab Camera Calibration Toolbox allows to set value to X Y and even different rectangles sizes for the checkerboard rectangles . .. . Answer : The app assumes that checkerboards in all calibration images have the same size same square size and the same number of squares . You have to set the square size once in the beginning of the sessions . If you want to change it you would have to start a new calibration session and add the images again . Under the hood the app calls the detectCheckerboardPoints function to detect the checkerboard in an image . It may work with rectangular squares but I am not sure . You can certainly try it and if it works you would need to generate the world coordinates of your points yourself because generateCheckerboardPoints assumes squares and not rectangles . Then you can do the calibration programmatically using the estimateCameraParameters function . Comment : Thank Dima you are the man Only you are answering this type of questions .", "Question : In image matching with Matlab I found a vector of correspondence of two images using Lucas-Kanade algorithm and now I have to estimate the homography matrix using RANSAC . Any simple way to do it Thanks in advance . .. . Answer : Use estimateGeometricTransform function in the Computer Vision System Toolbox .", "Question : Is there any documentation that lists the potential tags returned by the Computer Vision API for any given image I can see examples in the documentation https : www.microsoft.com cognitive-services en-us computer-vision-api documentation taggingimages and in the demo but is there a definitive list .. . Answer : Regrettably this information is not currently available publicly .", "Question : null .. . Answer : Statistical shape modeling analysis is the statistical study of shapes set of points curves surfaces.. . in space where each individual point in a shape or an image . For those who need here s the wiki article on it : https : en.wikipedia.org wiki Statistical shape analysis .. . .. . I m working in it in academia and I mainly use it in the context of medical imaging so the shapes we get are the the segmented MRI or CT or PT images of patients . Based on this we can infer at what stage the disease started etc . But I d appreciate if someone working in the industry tells me how this is used there . I m aware that shape modeling relates a lot with computer-vision as well but I ve never seen any computer-vision or image-processing industry whose transparent description is to use statistical shape models SSM . It d be good to know how SSM is important in industry i.e . what re the industrial applications of SSM and also which industry use it effectively .", "Question : I am looking for solutions BoofCV http : boofcv.org index.php title Main Page or any pure java computer-vision library that doesn t require OpenCV to do template matching of images to detect object within a picture . For example finding the position of an image within a bigger picture . I have had success with cvMatchTemplate example on OpenCV but interested in using BoofCV to achieve the same results . Comment : It wouldn t take long to add that functionality to BoofCV . However template matching is slow and very sensitive to noise.. . I ll add that functionality to BoofCV is you do the following : 1 Provide an interesting example image and template that you wish to be searched through that I can use in an example on the website . 2 What problem do you hope to solve with this functionality Either e-mail me those answers or post them to BoofCV s mailing list . Both can be found easily . Comment : Hi Peter thank you I will send out an email or post on the mailing list this weekend .. . Answer : It seems this functionality is not implemented in BoofCV . Comment : Any pure Java computer-vision library solution that doesn t depend on opencv", "Question : If a picture contained plastic cloth metal etc . how can one train the computer to segment out materials of the same type . Please add if any other method can be used as a starting point for the problem . .. . Answer : Material recognition is an active research area in computer-vision . Google material recognition computer-vision for a list of recent papers .", "Question : I have found the camera-matrix for an image using DLT : .. . .. . How do I proceed to find the radial distortion parameters . Tools : OpenCV Octave Comment : Can you tell us what have you done till now Comment : Using DLT I have found the camera-matrix . I look forward to find the radial distortion parameters . Comment : I suggest a read on undistortImage which when combined with cameraParameters should solve your problem for you . Also read the example carefully . mathworks.com help vision ref undistortimage.html http : www.mathworks.com help vision ref undistortimage.html Comment : As for OpenCV give a look to this tutorial : docs.opencv.org 2.4 doc tutorials calib3d camera-calibration http : docs.opencv.org 2.4 doc tutorials calib3d camera-calibration camera calibration.html .. . Answer : The best thing to do is to calibrate your camera . For that you would need to take multiple images of a planar calibration pattern e . g . a checkerboard . If you have the Computer Vision System Toolbox for MATLAB you can use the Camera Calibrator app http : www.mathworks.com help vision ug single-camera-calibrator-app.html .", "Question : null .. . Answer : I would like to use Smalltalk Pharo to better refactor my image-processing and computer-vision code algorithms written in other languages . I have not found a lot of examples online where Smalltalk is used for processing images or video frames . I would like to know whether .. . .. . i there is an opencv image computer-vision library available for Smalltalk that is easily installed or .. . .. . ii someone could give an example of how to access the pixel data in an image and threshold it using Smalltalk . Comment : SmallTalk seems an odd choice of language for image-processing however if that is what you know then go for it . What sort of algorithms do you have - I am intrigued . Maybe consider installing ImageMagick heavyweight and very capable or NetPBM light-weight and simple installation to convert any image you have into NetPBM format PGM for greyscale or PPM for colour then you can easily open the files and read them and process them in SmallTalk.. . stackoverflow.com a 36374100 2836621 http : stackoverflow.com a 36374100 2836621 Comment : Using Smalltalk for this is actually a good idea . You should take a look at Cuis http : www.jvuletich.org Cuis Index.html .", "Question : What would be an explanation for opening and closing in computer-vision I am trying to get a well grounded explanation . Comment : Do you mean this opening en.wikipedia.org wiki Opening 28morphology 29 http : en.wikipedia.org wiki Opening 28morphology 29 .. . Answer : These are morphological operations . Opening is erosion followed by dilation . Closing is dilation followed by erosion . For binary images opening removes small connected-components and small protrusions . Closing fills in small holes and gaps between connected-components .", "Question : I am involved in a personal project which will require pretty extensive knowledge of edge-detection and image-segmentation object-recognition . I know the importance of planning understanding before writing code and with this in mind what is the best place to start to learn about these areas of computing I am ideally looking for online articles papers . Thanks .. . Answer : I would suggest looking for good computer-vision course slides such as these Stanford one http : cs223b.stanford.edu schedule.html : .. . .. . for edge-detection check out lecture 3 : Features and Linear Filters http : cs223b.stanford.edu notes CS223B-L3-Features.ppt and lecture 5 : Advanced Image Features ppt http : cs223b.stanford.edu notes CS223B-L5-AdvancedFeatures.ppt .. . for advanced segmentation techniques check out lecture 12 : Segmentation ppt http : cs223b.stanford.edu notes CS223B-L12-Segmentation.ppt perhaps a bit too advanced if you re new to computer-vision .. . .. . In general I find interesting materials by googling university sites for powerpoint presentations on any given subject : computer-vision site : edu filetype : ppt http : www.google.com search q computer+vision+filetype 3Appt+site 3Aedu Comment : I think what Ivan suggested is far more useful than the CodeProject ones . C and GDI are just overhead you shouldn t care what platform you implement on . Comment : link rot...... .", "Question : Many real-world datasets have representations in the form of multiple views . For example a person can be identified by face fingerprint signature and iris or an image that can be represented by its color and texture features . Multi-view is basically information obtained from multiple sources . In the context of machine-learning data clustering computer-vision what are the most relevant applications that deal with this approach .. . Answer : In the context of computer-vision multi-view refers to the images of the same object taken from different views angles positions . There are multiple applications of this strategy . 3D reconstruction from multiple view http : www.cs.cornell.edu snavely bundler is one of the most popular examples . The type of multi-view you are referring to is basically data augmentation to solve a single problem . As you have mentioned too identification of a person from different kind of data-sources is an application of data-augmentation . There can be multiple other applications too . For example expression estimation to identify the mood of a person using data from a RGB camera + 3D data from Kinect + Audio is another example . In the context of machine-learning data-augmentation is everywhere . Combining different features of an image or audio for classification is data-augmentation . Comment : Thanks for the answer I would appreciate if you could provide some articles or good references about it .", "Question : I am working on school project and part of it should be about current situation about computer-vision libraries for Android . I went to it with large enthusiasm because computer-vision seems like fascinating subject but I have been searching for more then a week and I did not find much . I would like to be able to provide information about libraries themselves and about comparison between them . I will share what I found so far . OpenCV .. . .. . seems like the most advanced one and the most popular . provide the biggest number of functions .. . .. . it had problem with backward compatibility .. . .. . is fast at least so I heard but I have zero information about it .. . .. . does have biggest amount of books about it at least for C++ version .. . .. . JavaCV .. . .. . is wrapper for few other libraries including opencv .. . .. . FastCv .. . .. . new with Qualcomm behind it . Wikitude .. . .. . this is more for augmentedreality but in its core is still computer-vision . As you can see I have a little information about it and doing my own tests for every library is far beyond my current computer-vision skills . Kind regards Peter . Comment : Someone else worked on a similar project before : cs.brown.edu courses csci1290 results final sbnguyen http : www.cs.brown.edu courses csci1290 results final sbnguyen Comment : @SamuelAudet you should put that as official answer so I can rep it : Comment : @SamuelAudet now looking at it It seems that information in the link are outdated . .. . Answer : I would use OpenCV as it is the best computer-vision library right now . You ll program your functions in C++ and then you compile the Android aplication using the JNI library . You have information on how to do that on the official documentation http : opencv.itseez.com doc tutorials introduction android binary package android binary package using with NDK.html . I have worked with this configuration and OpenCV performance in android is really nice . You will notice benefits if you make some functions in fixed-point arithmetic . Good luck Comment : Hi @jav Rock thank you for your answer but as I state above I really looking for some serious comparisson .", "Question : For many car fanatics it s quite easy to identify the make model trim level and sometimes year of a car . While this is a manageable task for a human given some training-data passion and experience I m curious about the state-of-the-art computer-vision methods for this problem . There are tons of algorithms that are able to identify this is isn t a car . However I want to identify the make model and possibly trim level of cars selected from all the car models that have been mass produced in the last 20-30 years . To make this more concrete I m looking for libraries algorithms or research results for problems like this : .. . .. . Easy : Given a side and or front view of a car identify its make and model and perhaps generation if not the exact production year . For example identify the image below as 2006-2008 Mazda MX-5 Miata . Bonus points for recognizing that based on the wheels and interior color this is the Grand Touring trim level of the car . 2006 Mazda Miata Grand Touring http : i.stack.imgur.com 6g2Mr.jpg .. . Harder : Given an obscured blurred or otherwise degraded image of a car identify its make and model . For low-quality images like the one below car enthusiasts sometimes give a range of responses http : jalopnik.com 5977353 help-catch-the-florida-driver-who-intentionally-killed-a-jack-russell-terrier-named-snoopy . For less obscured images car enthusiasts tend to give a unanimous answer . My hunch is that this car is a 1997-2000 Lexus GS . Possibly a 1997-2000 Lexus GS http : i.stack.imgur.com DbPAc.jpg .. . Not sure if easy or hard : given just a small region like a taillight http : jalopnik.com 283697 can-you-identify-this-car a http : blog.caranddriver.com name-that-shifter-no-113 shifter http : blog.caranddriver.com tags name-that-shifter or a door handle give as much information as possible about the car . Some humans http : jalopnik.com 283697 can-you-identify-this-car are pretty good at this task . taillight http : i.stack.imgur.com rtx59.jpg .. . .. . Are there any suggestions for computer-vision libraries algorithms or other work that addresses some of these problems .. . .. . .. . .. . Before posting on StackOverflow I did some searching . Here are a few related things that I found : .. . .. . 1 . A Real-Time Car Recognition System http : www.cs.ucsb.edu mturk pubs JangTurkWACV2011.pdf WACV 2011 . Uses SIFT features and a bag-of-words model . Caveat : only tested on a dataset with 20 models of cars . I m hoping to do fine-grained detection of trim level and year with hundreds of car models . 2 . Identifying license plates http : stackoverflow.com questions 981378 how-to-recognize-vehicle-license-number-plate-anpr-from-an-image .. . 3 . Robust classification and tracking of vehicles in traffic video streams http : cvrr.ucsd.edu publications 2006 Morris ITSC06 Classification.pdf IEEE Conference on Intelligent Transportation Systems 2006 . Coarse classification sedan semi truck suv van using PCA . .. . .. . Motivation : I m a car enthusiast I ve been dabbling in computer-vision research and I think this is an interesting problem . My computer-vision colleagues haven t had a lot of suggestions for where to get started on this . I d like to implement a system for this if it doesn t already exist . Comment : Very interesting I ve played with this problem as well and was similarly surprised by the incomplete current work . Want to chat about it Comment : had you implemented this system need help .. . Answer : A Codebook-free and Annotation-free Approach for Fine-Grained Image Categorization http : vision.stanford.edu documents YaoBradskiFei-Fei CVPR2012.pdf .. . .. . They used this to categorize birds . The dataset they used had 200 different bird species and they used 15 training images per species .", "Question : I am working on school project and part of it should be about current situation about computer-vision libraries for Android . I went to it with large enthusiasm because computer-vision seems like fascinating subject but I have been searching for more then a week and I did not find much . I would like to be able to provide information about libraries themselves and about comparison between them . I will share what I found so far . OpenCV .. . .. . seems like the most advanced one and the most popular . provide the biggest number of functions .. . .. . it had problem with backward compatibility .. . .. . is fast at least so I heard but I have zero information about it .. . .. . does have biggest amount of books about it at least for C++ version .. . .. . JavaCV .. . .. . is wrapper for few other libraries including opencv .. . .. . FastCv .. . .. . new with Qualcomm behind it . Wikitude .. . .. . this is more for augmentedreality but in its core is still computer-vision . As you can see I have a little information about it and doing my own tests for every library is far beyond my current computer-vision skills . Kind regards Peter . Comment : Someone else worked on a similar project before : cs.brown.edu courses csci1290 results final sbnguyen http : www.cs.brown.edu courses csci1290 results final sbnguyen Comment : @SamuelAudet you should put that as official answer so I can rep it : Comment : @SamuelAudet now looking at it It seems that information in the link are outdated . .. . Answer : There s a new option for CV on Android the Google Mobile Vision API https : developers.google.com vision . The API is exposed through com.google.android.gms.vision and lets you detect various types of objects faces barcodes and facial features given an arbitrary image bitmap .", "Question : I have two images both are exactly same images and I am trying to calculate the disparity between them using sum of squared distances and reconstruct disparity in 3D space . Do I need to rectify the image before calculating disparity The following are the steps that I have done so far for disparity map computation I have tried with rectification and without rectification but both are returning all zeroes disparity matrix . Am I doing it correctly How can I visualise the 3D reconstruction of the disparity as scatter-plot in matlab .. . Answer : If your two images are exactly the same then the disparity would be 0 for every pixel . You either have to use two separate cameras to take the images or take them with a single camera from two different locations . The best way to do 3D reconstruction is to use a calibrated stereo pair of cameras . Here is an example http : www.mathworks.com help vision ug stereo-vision.html of how to do that using the Computer Vision System Toolbox for MATLAB .", "Question : null .. . Answer : I am trying to process faces in images on a device tablet . I have used opencv NDK a while ago . I see that there are couple of other options available to process faces . Just wondering how opencv android-vision api and FastCV would compare specifically for processing faces .. . .. . Found couple of similar posts here but they did not answer all my questions . Android API face-detection vs . OpenCV JavaCV face-detection http : stackoverflow.com questions 27683958 android-api-face-detection-vs-opencv-javacv-face-detection .. . .. . Android Computer Vision JavaCv OpenCV Fastv comparison http : stackoverflow.com questions 10673099 android-computer-vision-javacv-opencv-fastv-comparison .. . .. . My questions : 1 How does android face api face-detection and landmark extraction compare to opencv javaCV or opencv NDK accuracy Vs speed 2 Is FastCV better for this I presume it comes with license restrictions . 3 Does the android api work for all android devices I found couple of ports for open-source CV libraries other than opencv that are commonly used for pc based CV applications but these are not optimized for the devices I found them very slow when used as is . thanks Comment : What did you end up using I am using android-vision api but if detector s All classification is enabled it slows down performance . Comment : I had to take the traditional path javacv for non-technical reasons . I was more interested in the key points in the vision api as I could use them for alignment and registration . I know this depends on the phone we use for testing but how much time does it usually take for face-detection and the fiducial poiny extraction I think the relative timing info should be comparable across different phones .", "Question : In computer-vision does the detection task always have to be based on a sliding-window principle Are there any references about alternatives to this principle .. . Answer : Have you looked into feature SIFT SURF ORB and such based object-detection" ] }
[ "yes-answer-long", "yes-answer-short" ]
algorithm
UNK_RELATION
gridfs@mongodb@64
gridfs -- gridfs is a specification for storing large-files in @placeholder .
{ "confidence": [ 47.47334289550781, 46.361759185791016, 44.76035690307617, 43.958980560302734, 43.11891174316406, 43.03877639770508, 42.63656997680664, 42.308685302734375, 42.11663055419922, 41.96733474731445, 41.86054992675781, 41.624420166015625, 40.62602996826172, 40.45972442626953, 40.45972442626953, 40.45972442626953, 40.45972442626953, 40.45972442626953, 40.45972442626953, 40.45972442626953, 40.45972442626953, 40.35293960571289, 40.35293960571289, 40.29022979736328, 40.29022979736328, 39.1184196472168, 39.046058654785156, 39.043846130371094, 38.83490753173828, 38.806209564208984, 38.789466857910156, 38.789466857910156, 38.789466857910156, 38.668434143066406, 38.668434143066406, 38.47385787963867, 38.47385787963867, 38.237728118896484, 38.237728118896484, 38.118263244628906, 38.09135437011719, 38.09135437011719, 38.02370834350586, 37.849609375, 37.83652114868164, 37.83652114868164, 37.60749435424805, 37.59634017944336, 37.51798629760742, 37.51798629760742, 37.50392150878906, 37.39242935180664, 37.39242935180664, 37.355648040771484, 37.25985336303711, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.96624755859375, 36.565040588378906, 36.565040588378906, 36.565040588378906, 36.565040588378906, 36.565040588378906, 36.565040588378906, 36.51782989501953, 36.51782989501953, 36.51782989501953, 36.51782989501953, 36.495479583740234, 36.495479583740234, 35.564884185791016, 35.522071838378906, 35.513397216796875, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.36859130859375, 35.28594207763672, 35.124942779541016, 34.93812942504883, 34.93812942504883, 34.93812942504883, 34.93812942504883 ], "content": [ "Do not try to store large-files on gridfs .", "But the lesson to learn here is that GridFS http : docs.mongodb.org manual core gridfs is not automatically the go-to method for storing files .", "Framework : node.js express.js busboy gridfs-stream mongodb .. . .. . I am using busboy to upload files and then use gridfs-stream to store files in mongodb gridfs .", "My files are stored in GridFS .", "The documentation of gridFS https : docs.mongodb.org manual core gridfs gridfs-files-collection describes where to store metadata for files in gridFS there exists the field files.metadata .. . .. . But how do I assign a mongoose-schema to it", "On GridFS it only loads that not all the files .", "GridFS http : www.mongodb.org display DOCS GridFS works by storing a number of chunks for each file .", "I want to use multiple buckets as documented in the GridFS reference http : docs.mongodb.org manual reference gridfs gridfs-reference .", "I am having some problems properly storing and retrieving files with GridFS .", "This shouldn t be a problem to use gridfs for small files", "Well a GridFS object in this context means the name of the object stored in the GridFS collections .", "gridfs-stream https : github.com aheckmann gridfs-stream makes that pretty easy :", "no there is no bulk provided for gridFS operation .", "Even smaller files would not benefit to be stored with GridFS .", "I m trying to display images and files from gridfs .", "I use MongoDB and GridFS in NodeJS to store files .", "The original collection entries refer to the GridFS files fs.files .", ".. . When not to use GridFS .. . .. . Few small static files .", "GridFS does not store all the files only in RAM .", "Isn t it possible to get the GridFS files by nested-attributes", "I am having 436234 files in mongodb gridfs .", "This is my code : .. . .. . Produces : AttributeError : module gridfs has no attribute GridFS", "this link explains just about gridfs i want to do it without gridfs .", "Very confused here So I have a GridFS node express mongoose application and the GridFS database has audio files in it .", "So you do not need to use GridFS http : docs.mongodb.org manual core gridfs just to store files .", "And the nginx-gridfs module is sweet .", "Any thoughts on using gridfs-stream vs . using mongodb driver direclty for streaming into GridFS", "The GridFS specification expects a Binary field called data in the chunks collection .", "This question relates to : Problem with MongoDB GridFS Saving Files with Node.JS http : stackoverflow.com questions 6936396 problem-with-mongodb-gridfs-saving-files-with-node-js", "GridFS is not a core feature of MongoDB but a convention of storing binary-data with accompanying metadata .", "https : github.com aheckmann gridfs-stream", "@robert I am new to gridfs .", "I ve used multer and gridfs-stream .", "mongorestore fails to restore a dump containing a collection called fs.chunks used by GridFS http : docs.mongodb.org manual reference gridfs gridfs-chunks-collection .", "I am using gridfs-stream https : github.com aheckmann gridfs-stream currently i am on displaying image from gridFS .", "is that possible to insert multiple-files as a single record using GridFS", "I am trying a batch upload with GridFS for around 100 files at a time .", "I am trying to get the files that are stored in mongoDB with GridFS .", "Yes I have files stored in GridFS where id is not the ObjectId .", "I m using the gridFS no filesystem", "I m using the adapter skipper-gridfs https : github.com willhuang85 skipper-gridfs to upload the files to mongo .", "In terms of serving files from GridFS there is nginx-gridfs and mod gridfs both are not maintained anymore .", "I am looking for a sample example for storing videos images in MongoDB using GridFS .", "I m using nodejs with mongodb and gridfs-stream .", "I came acorss snippet to write file to gridfs but I am unable to find write way to update string to Gridfs .", "The latest version of the GridFS spec requires that the id for a stored GridFS file be of type ObjectId .", "I have just moved towards storing things in my GridFS in MongoDB .", "From my understanding it makes more sense NOT to use GridFS since that seems to be tailored for either large-files or large numbers of files .", "More examples of usage for gridfs and geospatial .", "GridFS is no different from the file system .", "As the specification http : www.mongodb.org display DOCS GridFS+Specification says you can store whatever you want in the metadata field .", "The collections are reasonably large - about 705k records in the parent collection and 790k GridFS files .", "GridFS tends to handle large numbers many thousands of files better than many file systems .", "similiar to : stackoverflow.com questions 10092282 http : stackoverflow.com questions 10092282 saving-files-to-mongodb-gridfs-with-node-js . . BTW : @Daniel s answer doesn t touch upon GridFS which IS suited for large objects .", "I m fairly new to GridFS though from what I understand GridFS is more than just an abstraction-layer that doubles the number of files .", "What will happen with gridfs when i try to write few files concurrently .", "Will files from gridfs be cached in ram and how it will affect read-write perfomance", "What will happen with gridfs when i try to write few files concurrently .", "What about supporting files uploaded to GridFS using other platforms .", "Looks like the problem is the GridFS Readstream support for small ASCII files then", "I m now attempting to clean the orphaned files out of the GridFS collection .", "I have a MongoDB database with audio files stored in GridFS .", "Is it ok to save image files within a regular mongo collection as opposed to with GridFS", "I have a blogging system that stores uploaded files into the GridFS system .", "I m using mongoose with gridfs-stream to store files images audios and videos .", "This link may help you codefari.com 2015 11 gridfs-in-mongodb.html http : www.codefari.com 2015 11 gridfs-in-mongodb.html", "See compose.io articles gridfs-and-mongodb-pros-and-cons https : www.compose.io articles gridfs-and-mongodb-pros-and-cons", "There is no special resolution of gridfs data on the server-side in fact the server has no idea about gridfs it is completely driver implemented .", "MongoDB manual says by default chunk size http : docs.mongodb.org manual core gridfs gridfs is 255K .", "Firstly let s take the time to consider what GridFS http : docs.mongodb.org manual core gridfs actually is .", "But if that is not your limitation then question why you are using GridFS http : docs.mongodb.org manual core gridfs in the first place .", "The FileField in mongoengine seems to be hardcoded with gridfs .", "Is it a lack of java driver or a restriction of gridfs", "the contentType stored in gridFS is application pdf .", "Let GridFS stay behind the scenes .", "Similar code works as expected with gridfs-stream but I thought could avoid adding an additional package and stream into GridFS using the mongodb driver .", "Hey Alex I tried this- github.com aheckmann gridfs-stream issues 74 https : github.com aheckmann gridfs-stream issues 74 .", "Possible solution .. . .. . My Idea was to create a collection which stores the GridFS ObjectId and GridFS filename to map them .", "Thanks .. . .. . m new MongoClient .. . db m- test .. . gridFS db- getGridFS .. . .. . id 123 .. . .. . echo gridFS- findOne array id id - getBytes .. . .. .", "It could be an issue with GridFS .", "Yes gridfs is fast and reliable enough to be used for production .", "It will by-pass the overhead of using GridFS on top of MongoDB storage .", "Is it possible to use GridFS in the Ruby Volt framework", "There is a write lock when writing in to GridFS yes .", "GridFS may not be the best solution for your problem .", "Are these indexes deleted after deleting the file in GridFS", "BTW I am using gridfs-stream and formidable .", "No need for GridFS and no need for Binary or JSON objects .", "I m using nodejs mongodb mongoose and gridfs .", "What problems will using GridFS for this task present", "Does MongoDB hold the entire GridFS in RAM constantly", "I have a function saving a file to gridfs .", "I want to use gridfs-stream in a nodejs application .", "It is in the tutorial you mentioned : codetutorial.io file-upload-gridfs-mean-stack-meanjs https : www.codetutorial.io file-upload-gridfs-mean-stack-meanjs crayon-56a0ddae56fde861598831", "And as a starter lets read from the manual page that is referenced : .. . .. . GridFS is a specification for storing and retrieving files that exceed the BSON-document size limit http : docs.mongodb.org manual reference limits limit-bson-document-size of 16MB .", "I have studied gridfs but couldn t got the clear picture .", "Or how to recieve the bytes from the device and store in gridfs any optimal way", "I m trying to download a binary file of +200M saved in a mongoDB using the GridFS .", "I am using the above code to fetch all the images from GridFS ." ] }
{ "confidence": [ 58.23590087890625, 54.007728576660156, 53.30207824707031, 52.46437454223633, 49.933326721191406, 49.91324996948242, 49.364437103271484, 48.896644592285156, 48.73200607299805, 48.71543884277344, 48.48741149902344, 48.38437271118164, 48.090614318847656, 47.51914596557617, 47.49230194091797, 47.08283996582031, 47.01027297973633, 46.9385871887207, 46.85873031616211, 46.77574920654297 ], "content": [ "Question : I have a collection referencing GridFS files generally 1-2 files per record . The collections are reasonably large - about 705k records in the parent collection and 790k GridFS files . Over time there have become a number of orphaned GridFS files - the parent records were deleted but the referenced files weren t . I m now attempting to clean the orphaned files out of the GridFS collection . The problem with an approach like suggested here http : stackoverflow.com questions 17684561 gridfs-clean-out-all-unreferenced-files is that combining the 700k records into a single large list of ids results in a Python list that s about 4mb in memory - passing that into a nin query in Mongo on the fs.files collection takes literally forever . Doing the reverse get a list of all ids in fs.files and querying the parent collection to see if they exist also takes forever . Has anybody come up against this and developed a faster solution .. . Answer : Firstly let s take the time to consider what GridFS http : docs.mongodb.org manual core gridfs actually is . And as a starter lets read from the manual page that is referenced : .. . .. . GridFS is a specification for storing and retrieving files that exceed the BSON-document size limit http : docs.mongodb.org manual reference limits limit-bson-document-size of 16MB . So with that out of the way and that may well be your use-case . But the lesson to learn here is that GridFS http : docs.mongodb.org manual core gridfs is not automatically the go-to method for storing files . What has happened here in your case and others is because of the driver level specification that this is and MongoDB itself does no magic here Your files have been split across two collections . One collection for the main reference to the content and the other for the chunks of data . Your problem and others is that you have managed to leave behind the chunks now that the main reference has been removed . So with a large number how to get rid of the orphans . Your current reading says loop and compare and since MongoDB does not do joins then there really is no other answer . But there are some things that can help . So rather than run a huge nin try doing a few different things to break this up . Consider working on the reverse order for example : .. . .. . So what you are doing there is getting the distinct files id values being the references to fs.files from all of the entries for 5000 of your entries to start with . Then of course you re back to the looping checking fs.files for a matching id . If something is not found then remove the documents matching files id from your chunks . But that was only 5000 so keep the last id found in that set because now you are going to run the same aggregate statement again but differently : .. . .. . So this works because the ObjectId values are monotonic http : en.wikipedia.org wiki Monotonic function or ever increasing . So all new entries are always greater than the last . Then you can go an loop those values again and do the same deletes where not found . Will this take forever . Well yes . You might employ db.eval http : docs.mongodb.org manual reference method db.eval for this but read the documentation . But overall this is the price you pay for using two collections . Back to the start . The GridFS http : docs.mongodb.org manual core gridfs spec is designed this way because it specifically wants to work around the 16MB limitation . But if that is not your limitation then question why you are using GridFS http : docs.mongodb.org manual core gridfs in the first place . MongoDB has no problem storing binary-data within any element of a given BSON document . So you do not need to use GridFS http : docs.mongodb.org manual core gridfs just to store files . And if you had done so then all of your updates would be completely atomic as they only act on one document in one collection at a time . Since GridFS http : docs.mongodb.org manual core gridfs deliberately splits documents across collections then if you use it then you live with the pain . So use it if you need it but if you do not then just store the BinData as a normal field and these problems go away . But at least you have a better approach to take than loading everything into memory . Comment : I should specify - it s not orphaned chunks that I m cleaning up it s the files since pymongo takes care of the chunks when deleting a gridfs file . The original collection entries refer to the GridFS files fs.files . There are some good ideas here but they re sadly not applicable because the files I m cleaning are not necessarily contiguously missing most of the time they re not . Comment : @Murodese Same deal applies . Just reverse the case . At any rate you have a method to reduce the working set by utilizing the monotonic nature of the ObjectId keys . And there is no magic tonic here . You have created a lot of mismatching entries across collections . You are stuck with looping to compare . Your not contiguous statement does not make much sense in this context . There is no other way than to compare the mismatch . Comment : Upon re-reading it I see what you mean . Thanks", "Question : I have a blogging system that stores uploaded files into the GridFS system . Problem is I dont understand how to query it I am using Mongoose with NodeJS which doesnt yet support GridFS so I am using the actual mongodb module for the GridFS operations . There doesn t SEEM to be a way to query the files metadata like you do documents in a regular collection . Would it be wise to store the metadata in a document pointing to the GridFS objectId to easily be able to query Any help would be GREATLY appreciated im kinda stuck : .. . Answer : As the specification http : www.mongodb.org display DOCS GridFS+Specification says you can store whatever you want in the metadata field . Here s how a document from the files collection looks like : .. . .. . Required fields .. . .. . Optional fields .. . .. . So store anything you want in the metadata and query it normally like you would in MongoDB :", "Question : I have a blogging system that stores uploaded files into the GridFS system . Problem is I dont understand how to query it I am using Mongoose with NodeJS which doesnt yet support GridFS so I am using the actual mongodb module for the GridFS operations . There doesn t SEEM to be a way to query the files metadata like you do documents in a regular collection . Would it be wise to store the metadata in a document pointing to the GridFS objectId to easily be able to query Any help would be GREATLY appreciated im kinda stuck : .. . Answer : GridFS http : www.mongodb.org display DOCS GridFS works by storing a number of chunks for each file . This way you can deliver and store very large-files without having to store the entire file in RAM . Also this enables you to store files that are larger than the maximum document size . The recommended chunk size is 256kb . The file metadata field can be used to store additional file-specific metadata which can be more efficient than storing the metadata in a separate document . This greatly depends on your exact requirements but the metadata field in general offers a lot of flexibility . Keep in mind that some of the more obvious metadata is already part of the fs.files document by default : .. . .. . To actually read the file from GridFS you ll have to fetch the file document from fs.files and the chunks from fs.chunks . The most efficient way to do that is to stream this to the client chunk-by-chunk so you don t have to load the entire file in RAM . The chunks collection has the following structure : .. . .. . If you want to use the metadata field of fs.files for your queries make sure you understand the dot notation http : www.mongodb.org display DOCS Dot+Notation e.g . also make sure your queries can use an index using explain http : www.mongodb.org display DOCS Explain . Comment : How would one create create usable index on a metadata field Comment : You can simply create an index like fs.files.metadata.my field : 1 not having a schema greatly simplifies some things", "Question : I develop a new website and I want to use GridFS as storage for all user uploads because it offers a lot of advantages compared to a normal filesystem storage . Benchmarks with GridFS served by nginx indicate that it s not as fast as a normal filesystem served by nginx . Benchmark with nginx http : www.coffeepowered.net 2010 02 17 serving-files-out-of-gridfs .. . .. . Is anyone out there who uses GridFS already in a production environment or would use it for a new project Comment : This link may help you codefari.com 2015 11 gridfs-in-mongodb.html http : www.codefari.com 2015 11 gridfs-in-mongodb.html .. . Answer : I don t recommend using gridfs unless you know what you are doing . GridFS is just abstraction-layer which splits files for chunks and stores the files in two collections . More files - more overhead . If you expect files be pretty the same size not exceeding 32M or so - you are in the right way . Do not try to store large-files on gridfs . Why 1 . Drivers on different languages may read the whole file . e.g . chunks when reading the little part of the file . 2 . Modifying the file may affect all chunks and increase database load If your file system is growing up you will have to decide to shard the gridfs . Be careful Consistence is not guaranteed when sharding is initializing If you think about read loaded project - consider loading the files into docs directly if 16M or less size or choose another clusterfs and link filename inode to your logic . Hope this helps . Comment : I m fairly new to GridFS though from what I understand GridFS is more than just an abstraction-layer that doubles the number of files . GridFS provides a simple way of taking advantage of MongoDB s replication and sharding features . I believe others have also mentioned that files are stored in 2GB chunks which I imagine would reduce the total number of files especially if someone has a very large amount of small images . Comment : +1 You are right . Even smaller files would not benefit to be stored with GridFS . If your file could be stored in a MongoDB document i.e . of its 16 MB size limit you would rather store the file as a BLOB within a MongoDB document . It will by-pass the overhead of using GridFS on top of MongoDB storage . See compose.io articles gridfs-and-mongodb-pros-and-cons https : www.compose.io articles gridfs-and-mongodb-pros-and-cons", "Question : Hi i need to store a file in mongodb using node.js the file is placed in my desktop i will have to store it in my mongodb database.I came across something called gridfs but am not sure how to proceed further.Any help will be much appreciated Comment : similiar to : stackoverflow.com questions 10092282 http : stackoverflow.com questions 10092282 saving-files-to-mongodb-gridfs-with-node-js . . BTW : @Daniel s answer doesn t touch upon GridFS which IS suited for large objects . .. . Answer : If your file size exceeds 16Mb Mongo s maximum document size you must use gridFS if you wish to store the files in your DB . There s a very useful run down of the reasons to use gridFS here : http : docs.mongodb.org manual faq developers faq-developers-when-to-use-gridfs .. . .. . In terms of implementation in node if using the nativ mongo driver : .. . .. . Once you ve setup you connection when it comes to writing the file into gridFs Comment : @Rob-I ll give this a try and will update soon.Thanks alot for your suggestion Comment : @AmandaG still waiting on that update... .", "Question : I am new to Node.js . Can anyone provide me an example of how to use GridFS for storing and retrieving binary-data such as images using Node.js and Mongoose Do I need to directly access GridFS Comment : Are you looking for a Mongoose example or are you open to other libraries Comment : i am using mongodb with node.js to store and retrieve data.But i am getting problem in storing and retrieving image files.therefore i want to use GridFS for the same purpose.I am getting confused of how to achieve this . Comment : What library are you using Comment : i am using mongoose express connect-form . .. . Answer : I suggest taking a look at this question : Problem with MongoDB GridFS Saving Files with Node.JS http : stackoverflow.com questions 6936396 problem-with-mongodb-gridfs-saving-files-with-node-js .. . .. . Copied example from the answer credit goes to christkv : Comment : I m struggling with the this.db part of the above example I m not sure how to get the MongoDB db object back from Mongoose . Comment : I think it is require mongoose .connection.db", "Question : It s MongoDB a good candidate to serve static files files video as cdn . I searching a solid way to store big amounts of data +To remplacing S3 and managing cache features . Experiences . Thanks . Comment : why wouldn t a FILEsystem not being good enough to serve files .. . Answer : I suppose that the answer to this question is no because when you are using a CDN to store static files you make your server free from static data requests . But when you are choosing between a file system and mongodb Ii suppose that mongodb will be faster beacause if there is enough ram on the server mongo will load all data to the memory . Also I ve found some links that can help you make your choice : www.markus-gattol.name http : www.markus-gattol.name ws mongodb.html why use gridfs over ordinary filesystem storage groups.google.com http : groups.google.com group mongodb-user browse thread thread 907b465a162df731 f8182309f1213372 show docid f8182309f1213372 .. . .. . From the documentation : .. . .. . When to use GridFS .. . .. . Lots of files . GridFS tends to handle large numbers many thousands of files better than many file systems . .. . User uploaded files . When users upload files you tend to have a lot of files and want them replicated and backed up . GridFS is a perfect place to store these as then you can manage them the same way you manage your data . You can also query by user upload date etc.. . directly in the file store without a layer of indirection .. . .. . Files that often change . If you have certain files that change a lot - it makes sense to store them in GridFS so you can modify them in one place and all clients will get the updates . Also can be better than storing in source tree so you don t have to deploy app to update files . .. . When not to use GridFS .. . .. . Few small static files . If you just have a few small files for a website js css images its probably easier just to use the file system . .. . Note that if you need to update a binary object atomically and the object is under the document size limit for your version of MongoDB 16MB for 1.8 then you might consider storing the object manually within a single document . This can be accomplished using the BSON bindata type . Check your driver s docs for details on using this type . Comment : This is pretty much what the os does with any caching of files from disk . You will get the same behavior from apache lighthttp random-webserver .", "Question : null .. . Answer : I want to store files in MongoDB using GridFS for different purposes like streaming videos and saving images . This ones are part of one mongoose document Article . Im thinking on using different buckets from GridFS for each file-type videos and thumbnails but Im not sure how to create the Schema and the Model to populate the entire collection . I have this schema and i want to populate with the fs.files in each video and thumbnail . Question : .. . .. . The logic to store this collection using pre method must be in the model I see a loot of examples and related questions here but all put the logic of storing the files in the controller instead of doing it in the model .", "Question : i m trying to find the best solution to create scalable storage for big files . File size can vary from 1-2 megabytes and up to 500-600 gigabytes . I have found some information about Hadoop and it s HDFS but it looks a little bit complicated because i don t need any Map Reduce jobs and many other features . Now i m thinking to use MongoDB and it s GridFS as file storage solution . And now the questions : .. . .. . 1 . What will happen with gridfs when i try to write few files concurrently . Will there be any lock for read-write operations I will use it only as file storage .. . 2 . Will files from gridfs be cached in ram and how it will affect read-write perfomance 3 . Maybe there are some other solutions that can solve my problem more efficiently Thanks . .. . Answer : I can only answer for MongoDB here I will not pretend I know much about HDFS and other such technologies . The GridFs implementation is totally client-side within the driver itself . This means there is no special loading or understanding of the context of file serving within MongoDB itself effectively MongoDB itself does not even understand they are files http : docs.mongodb.org manual applications gridfs . This means that querying for any part of the files or chunks collection will result in the same process as it would for any other query whereby it loads the data it needs into your working set http : en.wikipedia.org wiki Working set which represents a set of data or all loaded data at that time required by MongoDB within a given time frame to maintain optimal performance . It does this by paging it into RAM well technically the OS does . Another point to take into consideration is that this is driver implemented . This means that the specification can vary however I don t think it does . All drivers will allow you to query for a set of documents from the files collection which only houses the files meta data allowing you to later serve the file itself from the chunks collection with a single query . However that is not the important thing you want to serve the file itself including its data this means that you will be loading the files collection and its subsequent chunks collection into your working set . With that in mind we have already hit the first snag : .. . .. . Will files from gridfs be cached in ram and how it will affect read-write perfomance The read performance of small files could be awesome directly from RAM the writes would be just as good . For larger files not so . Most computers will not have 600 GB of RAM and it is likely quite normal in fact to house a 600 GB partition of a single file on a single mongod instance . This creates a problem since that file in order to be served needs to fit into your working set however it is impossibly bigger than your RAM at this point you could have page thrashing http : en.wikipedia.org wiki Thrashing 28computer science 29 whereby the server is just page faulting 24 7 trying to load the file . The writes here are no better as well . The only way around this is to starting putting a single file across many shards : . Note : one more thing to consider is that the default average size of a chunks chunk is 256KB so that s a lot of documents for a 600GB file . This setting is manipulatable in most drivers . What will happen with gridfs when i try to write few files concurrently . Will there be any lock for read-write operations I will use it only as file storage .. . .. . GridFS being only a specification uses the same locks as on any other collection both read and write locks on a database level 2.2+ or on a global level pre-2.2 . The two do interfere with each other as well i.e . how can you ensure a consistent read of a document that is being written to That being said the possibility for contention exists based on your scenario specifics traffic number of concurrent writes reads and many other things we have no idea about . Maybe there are some other solutions that can solve my problem more efficiently I personally have found that S3 as @mluggy said in reduced redundancy format works best storing a mere portion of meta data about the file within MongoDB much like using GridFS but without the chunks collection let S3 handle all that distribution backup and other stuff for you . Hopefully I have been clear hope it helps . Edit : Unlike what I accidently said MongoDB does not have a collection level lock it is a database level lock . Comment : I think the global lock was changed blog.serverdensity.com goodbye-global-lock-mongodb-2-0-vs-2-2 https : blog.serverdensity.com goodbye-global-lock-mongodb-2-0-vs-2-2 Comment : @Jeff this is an old answer I could update it if people are still using it Comment : @Jeff oh hang on I actually say database level lock where do I say global Comment : I may have posted the wrong article . And I can t find the other one.. . I was using this answer as I m trying to determine what would be better for file storage Mongo or a FS Comment : @Jeff oh FS easily for big files for smaller....hmmm still a tough one even now for avatars I have gone for storing into the user document but for videos I went for S3.. .", "Question : I develop a new website and I want to use GridFS as storage for all user uploads because it offers a lot of advantages compared to a normal filesystem storage . Benchmarks with GridFS served by nginx indicate that it s not as fast as a normal filesystem served by nginx . Benchmark with nginx http : www.coffeepowered.net 2010 02 17 serving-files-out-of-gridfs .. . .. . Is anyone out there who uses GridFS already in a production environment or would use it for a new project Comment : This link may help you codefari.com 2015 11 gridfs-in-mongodb.html http : www.codefari.com 2015 11 gridfs-in-mongodb.html .. . Answer : I use gridfs at work on one of our servers which is part of a price-comparing website with honorable traffic stats arround 25k visitors per day . The server hasn t much ram 2gigs and even the cpu isn t really fast Core 2 duo 1.8Ghz but the server has plenty storage space : 10Tb sata in raid 0 configuration . The job the server is doing is very simple : .. . .. . Each product on our price-comparer has an image there are around 10 million products according to our product db and the servers job is to download the image resize it store it on gridfs and deliver it to the visitors browser.. . if it s not present in the grid.. . or.. . deliver it to the visitors browser if it s already stored in the grid . So this could be called as a traditional cdn schema . We have stored and processed 4 million images on this server since it s up and running . The resize and store stuff is done by a simple php script.. . but for sure a python script or something like java could be faster . Current data size : 11.23g .. . .. . Current storage size : 12.5g .. . .. . Indices : 5 .. . .. . Index size : 849.65m .. . .. . About the reliability : This is very reliable . The server doesn t load the index size is ok queries are fast .. . .. . About the speed : For sure is it not fast as local file storage maybe 10 slower but fast enough to be used in realtime even when the image needs to be processed which is in our case very php dependant . Maintenance and development times have also been reduced : it became so simple to delete a single or multiple images : just query the db with a simple delete command . Another interesting thing : when we rebooted our old server with local file storage so million of files in thousands of folders it sometimes hangs for hours cause the system was performing a file integrity check this really took hours.. . . We do not have this problem any more with gridfs our images are now stored in big mongodb chunks 2gb files .. . .. . So.. . on my mind.. . Yes gridfs is fast and reliable enough to be used for production . Comment : I am shocked that anyone would use raid 0 as there primary storage on a production web site . Even with good backups increasing the probability of a storage failure is a pretty steep price to pay for improved performance . Comment : We use raid 0 because in our particular case image data can be volatile . It doesn t matter if the image is lost since we will download it again from the merchants website . Pragmatically we could consider that our server is a simple image cache server . Comment : But you re actively increasing the chance of failure initial drive failure factor multiplied by the number of spindles . Raid 10 would be ideal if you need more writes than reads or Raid 5 6 if you need more reads than writes . Comment : @ManuEidenberger Why are you using GridFS for storing images which would rather be stored in a MongoDB document I guess you did not reach the 16 MB document size limit . And storing the image as BLOB within a MongoDB document would be more efficient since you do not need the GridFS layer on top of MongoDB documents .", "Question : I am trying to figure out how I can post an image directly to GridFS without storing it anywhere on the server as a temporary file first . I am using Postman chrome ext . to post a file and I manage to store this post as a file using : .. . .. . I am also able to store directly to GridFS from a readStream when the readStream is created from a file on the server . see code .. . .. . I have the following files saveFromReq.js which listens for the POST and basically just passes this on to the savePic.js . saveFromReq.js : .. . .. . savePic.js : .. . .. . Any help would be greatly appreciated .. . Answer : gridfs-stream https : github.com aheckmann gridfs-stream makes that pretty easy : Comment : Thanks This works . Also can you please tell how to handle file-type multiple or multiple file controls in a form . and how to get the original file name from the post . Comment : @robert I am new to gridfs . Can you please tell me what is the filename in createWriteStream . What will be the case if i want to store bytes Should I create a new question for it Comment : @Java NewBie the filename is documented here http : mongodb.github.io node-mongodb-native api-generated gridstore.html . Basically it s an optional identifier for the GridFS document that you re creating so you can access that document not just through it s unique id property but also through a human-readable string . You can make this string anything you want . Comment : @robertklep Thankyou robert . I am trying to use the above code to store video bytes which will send from the device in gridfs with your answer . but I am struggling to store it . I need an understanding . I have posted the question on the separate thread but someone navigated to this link as duplicate.Thankyou Comment : @robertklep how can I get the details of the file stored in callback Thanks", "Question : I run a website that runs on a backend of nodeJS + mongoDB . Right now I m implementing a system to store some icons small image files that will need to be in the database . From my understanding it makes more sense NOT to use GridFS since that seems to be tailored for either large-files or large numbers of files . Since every file that I need to save will be well under the BSON maximum file size I should be able to save them directly into a regular document . I have 2 questions : .. . .. . 1 Is my reasoning correct Is it ok to save image files within a regular mongo collection as opposed to with GridFS Is there anything I m not considering here that I should be 2 If my thought process is sound how do I go about doing this Could I do something like the following : .. . .. . I m guessing that there s probably a better way to do this since mongoDB uses BSON and here I m trying to save a file in JSON before I send it off to the database . I also don t know if this code will work haven t tried it . UPDATE - New Question .. . .. . If I have a document within a collection that has three pieces of information saved : 1 a name 2 a date and 3 an image file the above icon and I want to send this document to a client in order to display all three would this be possible If not I guess I d need to use GridFS and save the fileID in-place of the image itself . Thoughts suggestions Best and thanks for any responses .. . Sami Comment : Tailored means nothing . Tailored how What problems will using GridFS for this task present Comment : I guess I m going by the suggestions here : mongodb.org display DOCS When+to+use+GridFS http : www.mongodb.org display DOCS When+to+use+GridFS Comment : Do any of the cases listed there actually apply to you Comment : I was looking at the few small static files under when not to use it which applies to me for now but won t in the future . i guess you re right . it ll probably be easier just to use GridFS in the long run . but that said I am still curious how I would go about putting a small file into MongoDB without the grid-system . Comment : GridFS is just two MongoDB collections in your database - one for file metadatas and one for the chunks of your file each chunk is 1 4 of a MB . .. . Answer : I have been looking for the same thing . I know this post is old but perhaps i can help someone out there . Comment : Is helpful +1 . More helpful is if you could show how to save multiple-files e.g . uploaded with multer https : github.com expressjs multer where multiple calls to readFileSync https : nodejs.org api fs.html fs fs readfilesync file options or readFile are required .", "Question : null .. . Answer : The documentation of gridFS https : docs.mongodb.org manual core gridfs gridfs-files-collection describes where to store metadata for files in gridFS there exists the field files.metadata .. . .. . But how do I assign a mongoose-schema to it I can t wrap my head around it since its kind of an existing schema which I don t know how to access or modify it . Let s say I have this schema : .. . .. . I initialize gridFS like that : .. . .. . Now I look for something like this :", "Question : I m doing some tests to see whether we can use GridFS on MongoDB to store files for a future application I m using 10gen s C driver to Upload an 80Mb file onto the database . The first addition was fine and took approx 3 seconds which isn t too bad on my test machine however future additions of the same file took much longer up to 30 seconds eventually MongoDB told me it ran out-of-memory and crashed out . Adding 10 files 80Mb in size results in 8 files being created for my database before the system crashes named dbaseName.0 to dbaseName.7 with their file sizes increasing exponentially from 16Mb to 512Mb from files 0 to 5 then files 6 and 7 are both 512Mb . Those files come to just under 2Gb obviously adding the file for the 10th time takes the dbase to over 2Gb which is beyond my 32bit test version s limit . Why does storing 800Mb worth of files take over 2Gb Is there a setting I ve missed somewhere Does MongoDB hold the entire GridFS in RAM constantly If so what s the point of the disk If I ve only got 32Gb of RAM on my production server can I only store 32Gb in GridFS I used EnsureIndexes on my MongoGridFS object and I checked the datbase which shows indexes were created for GridFS so surely Mongo shouldn t try and fit the whole datastore into RAM MongoDB fits all of our needs but we need it to be able to hold a large file collection am I missing something obvious Stack Trace : .. . Answer : GridFS does not store all the files only in RAM . Do you have the stacktrace or can you reproduce the crash again Comment : I ve edited my original question to include a stack-trace . Thanks . Comment : The problem is that in a 32bit system you can t allocate more than 2GB files . --smallfiles limits the datafiles to 500mb so that should help . Though it s not recommended to run MongoDB in 32bit system . More info here mongodb.org display DOCS 32+bit http : www.mongodb.org display DOCS 32+bit Comment : The 32-bit version is simply on my test machine I m running the 64 bit version on our server however the individual files I m using are only 80Mb nowhere near 2Gb so I don t know why Mongo can t seem to handle them .", "Question : I develop a new website and I want to use GridFS as storage for all user uploads because it offers a lot of advantages compared to a normal filesystem storage . Benchmarks with GridFS served by nginx indicate that it s not as fast as a normal filesystem served by nginx . Benchmark with nginx http : www.coffeepowered.net 2010 02 17 serving-files-out-of-gridfs .. . .. . Is anyone out there who uses GridFS already in a production environment or would use it for a new project Comment : This link may help you codefari.com 2015 11 gridfs-in-mongodb.html http : www.codefari.com 2015 11 gridfs-in-mongodb.html .. . Answer : Heads-up on repairs for larger DBs though - a new system we re developing mongo didn t cleanly exit and repairing the 7TB GridFS looks like it will take 130 hrs . Because of this I think I ll look at switching to OpenStack Swift or Ceph . Still until then it was good . And the nginx-gridfs module is sweet .", "Question : I have a collection referencing GridFS files generally 1-2 files per record . The collections are reasonably large - about 705k records in the parent collection and 790k GridFS files . Over time there have become a number of orphaned GridFS files - the parent records were deleted but the referenced files weren t . I m now attempting to clean the orphaned files out of the GridFS collection . The problem with an approach like suggested here http : stackoverflow.com questions 17684561 gridfs-clean-out-all-unreferenced-files is that combining the 700k records into a single large list of ids results in a Python list that s about 4mb in memory - passing that into a nin query in Mongo on the fs.files collection takes literally forever . Doing the reverse get a list of all ids in fs.files and querying the parent collection to see if they exist also takes forever . Has anybody come up against this and developed a faster solution .. . Answer : Would like to add my bit to this discussion . Depending on size of difference you may find it reasonable first to find identities of files you have to keep first and than remove chunks that should not be kept . It may happen when you are managing huge amounts of temporary files . In my case we have quite an amount of temporary files beeing saved to GridFS on daily basis . We currently have somewhat like 180k temporary files and a few nontemporary . When expiration index hits we end up with approx . 400k orphans . Useful thing to know when trying to find those files is that ObjectID is based on timestamp . As so you can narrow your searches between dates but enclosing range on id or files id . To start looking for files i start with a loop on dates like this : .. . .. . Inside I am creating variables to search in range of IDs : .. . .. . and collecting to variable IDs of files that does exists in collection .files : .. . .. . For now I have approx 50 IDs in found variable . Now to remove hight amount on orphans in collection of .chunks I am loop-searching for 100 IDs to remove as long as I found nothing : .. . .. . and afterwards increment dates to get closer to current : .. . .. . One thing I can t solve for now is that removing operation is taking quite some time . Finding and removing chunks based on files id takes 3-5s per 200 chunks 100 unique ids . Probably I have to create some smart index to make finds quicker . Improvement .. . .. . Packed it into small task that is creating deletion process on mongo server and disconnects . It is obviously a JavaScript you can send to mongo-shell on eg . daily basis :", "Question : I develop a new website and I want to use GridFS as storage for all user uploads because it offers a lot of advantages compared to a normal filesystem storage . Benchmarks with GridFS served by nginx indicate that it s not as fast as a normal filesystem served by nginx . Benchmark with nginx http : www.coffeepowered.net 2010 02 17 serving-files-out-of-gridfs .. . .. . Is anyone out there who uses GridFS already in a production environment or would use it for a new project Comment : This link may help you codefari.com 2015 11 gridfs-in-mongodb.html http : www.codefari.com 2015 11 gridfs-in-mongodb.html .. . Answer : mdirolf s nginx-gridfs module is great and fairly easy to get setup . We re using it in production at paint.ly http : paint.ly to serve all of the paintings and there have been no problems so far . Comment : paint.ly is no longer available it seems . :", "Question : null .. . Answer : I need to insert multiple-files documents as a single record with single key into mongo db . Example : I have following files that need to insert into mongo db using GridFs .. . .. . my-data.doc .. . my-profile.xls .. . my-imge.jpg .. . .. . All these files should be saved as a one record i.e should associate with one id say id : myIdValue 10101 . Currently I am using GridFs to insert one file at a time and those file are inserted with unique id . is that possible to insert multiple-files as a single record using GridFS or else is there any other alternative approach to insert multiple-files as a single record Pleas", "Question : I am new to Node.js . Can anyone provide me an example of how to use GridFS for storing and retrieving binary-data such as images using Node.js and Mongoose Do I need to directly access GridFS Comment : Are you looking for a Mongoose example or are you open to other libraries Comment : i am using mongodb with node.js to store and retrieve data.But i am getting problem in storing and retrieving image files.therefore i want to use GridFS for the same purpose.I am getting confused of how to achieve this . Comment : What library are you using Comment : i am using mongoose express connect-form . .. . Answer : I was not satisfied with the highest rated answer here and so I m providing a new one : I ended up using the node module gridfs-stream https : www.npmjs.org package gridfs-stream great documentation there which can be installed via npm . With it and in combination with mongoose it could look like this : .. . .. . Note that path is the path of the file on the local system . As for my read function of the file for my case I just need to stream the file to the browser using express :", "Question : Framework : node.js express.js busboy gridfs-stream mongodb .. . .. . I am using busboy to upload files and then use gridfs-stream to store files in mongodb gridfs . Download is simple : Use gridfs-stream s createReadStream I read the contents from mongodb and then use the following code to send it to browser . Problem : When I upload a 90kb pdf file it uploads fine . I see the size is correct in mongodb . But when I download the file size of the downloaded file is about 165kb . There is a mismatch . This does not happen with text-files . Sure its something to do with data type . can anyone please help .. . Answer : Pipe the gfs read stream to the response directly . This is what works for me Comment : thank you...works great ." ] }
[ "yes-answer-long", "yes-answer-short" ]
mongodb
UNK_RELATION
gollum-wiki@wiki@35
gollum-wiki -- gollum is a simple @placeholder system built on top of git that powers github wikis .
{ "confidence": [ 75.54905700683594, 61.26231384277344, 60.852943420410156, 60.45249938964844, 60.41796112060547, 59.83738708496094, 59.670188903808594, 58.3547477722168, 58.21194839477539, 57.531471252441406, 56.21534729003906, 55.81757354736328, 55.433502197265625, 55.433502197265625, 55.256561279296875, 54.87464141845703, 54.790367126464844, 54.65635681152344, 54.10060119628906, 54.10060119628906, 53.98981475830078, 53.60160827636719, 53.41640090942383, 52.77326583862305, 52.583351135253906, 52.000762939453125, 51.85624694824219, 51.559967041015625, 51.22682189941406, 51.22228240966797, 51.22228240966797, 51.0748405456543, 51.06007385253906, 51.06007385253906, 50.797264099121094, 50.70635223388672, 50.583683013916016, 50.583683013916016, 50.355712890625, 49.860809326171875, 49.860809326171875, 49.55671310424805, 49.16209411621094, 49.042972564697266, 48.85847473144531, 48.51944351196289, 48.51944351196289, 48.51944351196289, 47.84370803833008, 47.84370803833008, 47.57977294921875, 47.20051574707031, 47.00130081176758, 46.847103118896484, 46.62541961669922, 46.62541961669922, 46.502342224121094, 45.78813171386719, 45.65412521362305, 45.65412521362305, 45.65412521362305, 45.25532531738281, 45.25532531738281, 45.25532531738281, 45.25532531738281, 45.25532531738281, 45.25532531738281, 44.98419952392578, 44.41416549682617, 44.39778518676758, 44.348995208740234, 44.19943618774414, 44.115028381347656, 44.08478927612305, 43.63702392578125, 43.63702392578125, 43.528724670410156, 43.363407135009766, 43.23822021484375, 43.23822021484375, 43.23822021484375, 43.022621154785156, 42.566646575927734, 42.462318420410156, 42.329917907714844, 42.05213165283203, 41.680389404296875, 41.51162338256836, 41.2194709777832, 41.2194709777832, 41.20819854736328, 40.85857391357422, 40.85857391357422, 40.85857391357422, 40.85857391357422, 40.85857391357422, 40.85857391357422, 40.85857391357422, 40.85857391357422, 40.85857391357422 ], "content": [ "https : github.com gollum gollum - Gollum is a simple wiki system built on top of Git . .. . .. . Gollum is great but it s written in Ruby I m not insinuating that there is anything wrong with that .", "The Pages menu doesn t seem to be a feature of Gollum https : github.com gollum gollum-wiki the library that Github uses to create the Wiki...but if it is is there a way of modifying it", "Does Gollum https : github.com github gollum support any kind of redirect", "Gollum will not sync with a git-remote .", "github wiki gollum-wiki https : github.com github gollum doesn t inherently provide anything explicit for organizing pages into sub-directories .", "I have problems using Gollum wiki with github remote wiki pages .", "Is there any existing way to generate a what-links-here report for a gollum https : github.com gollum gollum-wiki", "clone your repository locally and grab the wiki submodule see here https : github.com blog 699-making-github-more-open-git-backed-wikis .. . install the gollum and redcarpet gems .. . ruby : .. . .. . require gollum .. . wiki Gollum : : Wiki.new proj.wiki .. . wiki.pages.each p puts p.formatted data", "I like Gollum https : github.com github gollum for wiki but seems to be always one project topic specific .", "Gollum is A simple Git-powered wiki with a sweet API and local frontend .", "Or is there any other Wiki that is anywhere near as simple as Gollum", "github.com github gollum pull 257 https : github.com github gollum pull 257", "Working with gollum https : github.com github gollum I am unable to get headers to render .", "Gollum https : github.com github gollum readme seems to want to manage a local working directory .", "git init .. . .. . gollum --port 80 .. . .. . Good Luck .", "In this thread .. . .. . https : github.com gollum gollum issues 107 .. . .. . one of the Gollum developers gives some hints .", "Try with .. . .. . gollum --port 80 --gollum-path your repo directory .. . .. . Or run the command from inside your git-repo", "Clone the repo using ssh : .. . .. . Install Gollum : .. . .. . Run gollum inside wiki repository : .. . .. . Edit home page and save with comments .", "Is there a way to in which the gollum-wiki can load json object", "And even stranger running Gollum again shows the wiki in its new state .", "I would like to synchronize bidirectional selected pages of a corporate wiki MediaWiki https : mediawiki.org with my personal wiki Gollum https : github.com gollum gollum .", "Why is the personal wiki forced to be on gollum", "You might want to consider giving Gollum https : github.com github gollum another look .", "If you clone git : github.com mojombo gollum-demo.git and then run gollum you ll see them .", "I use the Gollum gem https : github.com github gollum and like it alot however it is only built on top of github or use in local server to edit the files offline .", "Related pull request https : github.com github gollum pull 242", "Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 .", "If you upgrade icu4c then Gollum can break .", "I would like to use my Gollum Wiki using aws github for a book project .", "I created a new git-repo install gollum and started it .", "I was getting my git configs confused with my gollum configs .", "I installed gollum-wiki to serve as our labs wiki 14 members .", "The gollum event is especially raised any time a wiki page is updated .", "What is the best way to add multiple role access to a Gollum wiki", "I m working on an open-source wiki using the GitHub s built-in gollum on the wiki tab of the project .", "Open an issue on gollum", "I want to create a wiki with gollum and push it to my own git-repo is that possible", "I set up a wiki directory seeded it with some files created a git-repo there then called gollum on the directory .", "The git repository lacks examples .. . .. . https : github.com gollum gollum .. . .. . @edit .. . .. . taking this post as an example what is YourApplication in the accepted answer", "When you are ready to start the gollum server run bundle exec gollum from the command-line .", "For the record here s the unresolved issue https : github.com gollum gollum issues 809 you are having with this flag .", "See below for more information : .. . .. . http : www.nomachetejuggling.com 2012 05 15 personal-wiki-using-github-and-gollum-on-os-x toc-synchronization-with-github", "When you are ready you can generate a static html site form your Gollum wiki using this https : github.com dreverri gollum-site project .", "It would also break when running the wiki locally via gollum .", "Does somebody know a nice way to migrate a Confluence wiki to the Github wiki aka Gollum", "Can the Gollum HTTP server serve static files", "I ve got gollum deployed on my server .", "---- ...and I just tried running gollum with the --bare flag .", "Well there s big-gollum https : github.com oponder big-gollum but it doesn t look particularly active .", "page1 I see page1.md created in the gollum directory under var gollum but when I create a page e.g .", "The file is name Header.md following the specifications https : github.com github gollum header-files and contains the following content .. . .. . however it is not rendered when the site is accessed running gollum in the root of the repository and accessing the page at http : localhost : 3000 .", "I m trying to do that from the local copy of my project s wiki cloned from gitHub and of course I ve installed Gollum on my PC .", "I ve been trying stubbornly to install gollum behind a firewall downloading all dependency gems until gollum installed without error or --force .", "I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work .", "We have a wiki written in Markdown served up by Gollum .", "How to properly mount github s gollum-wiki inside a Rails App", "Can I do this using Gollum API", "May be you are checking a wrong repository the default is for gollum to use or create a git repository at the root of page files .", "Then I ran : .. . .. . So I can t do push to origin when I edit wiki pages using gollum .", "In Gollum wiki how do I find orphan pages - that is pages that don t have a link-to them", "Since I do not know Gollum-wiki at all : do the name of the pages match the MD filename", "user groups in linux to make commits push automaticaly through gollum", "It is much easier to have the gollum process running on your web server .", "I have used the following commands to build and install gollum .", "Gollum comes with a Gemfile and I m using bundle install as mentioned above .", "Are gollum updated files accessible from the command-line somewhere", "Files are visible but just the ones I put there before running gollum .", "I keep a Gollum server running on my development-machine and edit the Markdown files directly and then view the results in the local Gollum server .", "Don t forget to commit changes to github into your gollum fork and point gem instruction to it into Gemfile before uploading .", "It s hosted on GitHub : http : github.com github gollum .. . .. . Deploying my site to EngineYard is generating this error .", "I just created two different wikis : .. . .. . Control-c to stop running gollum .. . .. . I created a home.mediawiki file as the homepage for each .", "You must have gollum running on the remote-server or you must manually run git-push on machines where you make edits and git-pull on machines who also want to see the wiki .", "Here are the codes for my routes.rb .. . .. . I can access to the whole gollum using http : localhost : 3000 gollum . .. . .. . I have to create a wiki directory from root and do a git init . there to get gollum working .. . .. . The issue I m having right now is that this is a simple mounting of gollum without all the other features in my app like authentication and layout .", "looks like gollum is the most popular solution .", "No what i want to achieve is to have the Gollum page which let me create delete new wiki .", "I m starting a project where I will work with the base Gollum wiki gem and add some features to it .", "Then running gollum results in the following error : .. . .. . I have tried clean installing the ruby version and all gems installing the gems in vendor bundle building different release tags of Gollum and using Ruby 2.2.2 instead of 1.9.3p551 .", "Edited .. . .. . As you pointed out that you restrict yourself not to create a local clone of the git repository I recommend following : .. . .. . Read the code in https : github.com github gollum blob master lib gollum frontend app.rb which defines maybe all of the external HTTP interface .", "Is out there some project or out-of-box solution to maintain Gollum projects instances", "Gollum version 2.5.0 and starting as Rack app under Pow", "@VijayIvaturi Yes I wish Gollum had multi-user functionality .", "@ChristianGoudreau Yes it has it s at version 2.4 now and supports exactly what is described https : github.com github gollum table-of-contents", "On the side note it seems a bit easier to integrate gollum to my app using gollum-lib but my have to reimplement the front end features .", "Then I stopped gollum and found there was nothing new in my git-repo I even checked if stuff hadn t been pushed...nothing .", "I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated .", "The Github wikis are backed by a separate git repository then the main project repository .", "I ve been trying to get Gollum-wiki up and going but I keep getting an error about library not load Here is what error Im getting for when I try to start it up :", "mywiki that I want to clone from bitbucket into the webserver and start using that as a starting point - do I need to use .. . .. . gollum --page-file-dir .. . .. . to specify gollum to use that folder for page creation", "I need to add wiki pages to my application and I ve just read about the Gollum gem .", "I was unable to install gollum-wiki after a fresh install of ruby v2.2.2 via rbenv .", "Which opens it up as blank page in edit mode and I then add some dummy text save quit browser quit gollum .", "I am trying to use Gollum as my documentation for new projects and this problem hit me recently also .", "This will give you a nice isolated gollum server using the gems you specifically bundled and will solve this problem discussed in your question .", "may require forking Gollum to do so it depends on the granularity of authorization roles rights desired .", "There s also the omnigollum project https : github.com arr2036 omnigollum to support omniauth with gollum .", "Leaving this here for anyone interested : Using vigntom s method I made a repo with basic auth added in for Gollum ready to go .", "It can be changed with the options --page-file-dir and --base-path cf gollum --help", "You can list all committed files by launching gollum with the --show-all flag .", "I ve sent this same question as a Gollum bug and --show-all doesn t seem to work .", "After succesful installation I do .. . sudo gollum --port 80 and get error" ] }
{ "confidence": [ 83.37886810302734, 80.25544738769531, 77.93970489501953, 76.5428466796875, 75.44794464111328, 75.3682632446289, 74.59291076660156, 73.53026580810547, 73.1524429321289, 72.79895782470703, 71.4936294555664, 69.05860900878906, 68.80119323730469, 68.57620239257812, 67.54725646972656, 67.448486328125, 66.9037094116211, 66.85456085205078, 66.83522033691406, 65.92314147949219 ], "content": [ "Question : I d like to generate a local static copy of the generated HTML of my github project wiki from the directory of markdown files . What s the best way of doing that .. . Answer : clone your repository locally and grab the wiki submodule see here https : github.com blog 699-making-github-more-open-git-backed-wikis .. . install the gollum and redcarpet gems .. . ruby : .. . .. . require gollum .. . wiki Gollum : : Wiki.new proj.wiki .. . wiki.pages.each p puts p.formatted data", "Question : https : github.com gollum gollum - Gollum is a simple wiki system built on top of Git . .. . .. . Gollum is great but it s written in Ruby I m not insinuating that there is anything wrong with that . I want to use it as part of an existing ASP.NET website Or as a standalone website on Azure . Has anybody already created an ASP.NET version Or is there any other Wiki that is anywhere near as simple as Gollum .. . Answer : You will need to run it as an azure VM . Since grit doesn t not work on windows . Azure has pre-built linux vm s that you can deploy then install your required software . Or make a windows friendly version of grit", "Question : The Github wikis are backed by a separate git repository then the main project repository . This post https : github.com blog 699-making-github-more-open-git-backed-wikis by the Github team makes it sound like you should be able to link-to images stored in the wiki repository inside the wiki-markup . Images and Folders .. . .. . You can now reference images hosted inside the Git repository . I ve checked out my wiki s repository and pushed a resource folder and an image into it . My question is how do I go about using this image Is this even possible or have I misunderstood something Comment : There is a github-faq about adding-images-to-wikis https : help.github.com articles adding-images-to-wikis but it has no infos about short relative image urls discussed here .. . Answer : To use relative paths do : .. . .. . For more info see the demo wiki s page on images https : github.com mojombo gollum-demo blob master Mordor Eye-Of-Sauron.md . Comment : This is preferable to hardcoding the path . Only thing I couldn t figure out is how to create alt text using this method . Oh and the images in that demo don t load for me . Comment : If you clone git : github.com mojombo gollum-demo.git and then run gollum you ll see them . : Comment : The example doesn t seem to work anymore . Comment : Maybe I m missing something.. . but the wiki syntax works in this wiki that I help with : github.com newhavenrb conferences wiki WindyCityRails-2012 https : github.com newhavenrb conferences wiki WindyCityRails-2012 Perhaps you re trying this with a README Comment : The wiki syntax is determined by the file extension . .wiki uses mediawiki style . .md uses markdown style RyanQ s answer .", "Question : I want to create a wiki with gollum and push it to my own git-repo is that possible I created a new git-repo install gollum and started it . I got the edit Home page . I added some content saved...all looked good . Even the revision history showed that revisions occurred . Then I stopped gollum and found there was nothing new in my git-repo I even checked if stuff hadn t been pushed...nothing . I m not sure how where it s storing the content that I add when I run it . Any ideas Thanks .. . Answer : Gollum will not sync with a git-remote . It will never perform git-pull or git-push . You must have gollum running on the remote-server or you must manually run git-push on machines where you make edits and git-pull on machines who also want to see the wiki . This could be part of a cron job if you re running locally . It is much easier to have the gollum process running on your web server . See below for more information : .. . .. . http : www.nomachetejuggling.com 2012 05 15 personal-wiki-using-github-and-gollum-on-os-x toc-synchronization-with-github", "Question : I d like to organize my GitHub wiki pages in subdirectories . How do we refer to the pages in subdirectories Comment : Organizing Github wikis is crucial for documenting software development . Those who closed this question ought to ponder literate-programming carefully . .. . Answer : github wiki gollum-wiki https : github.com github gollum doesn t inherently provide anything explicit for organizing pages into sub-directories . Any page can be linked from any other page irrespective of where it logically belongs . This is a powerful feature that makes wikis very flexible . One way to implement a sub-directories structure would be to follow a naming convention . Example : Having all pages related to subject1 have names that start with subject1 and so on .", "Question : I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work . I m on Ubuntu 11.10 64Bit . I ve tried this as well with Ruby 1.9 also the same error . I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated . Comment : Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 . Comment : Related pull request https : github.com github gollum pull 242 .. . Answer : I got the same undefined method new for Redcarpet : Module error after running a bundle update . .. . .. . Similar to above this installed version 2 of the gem along side version 1 . I could have gone back to v1 as described above but since I m not actually using a system that required the first gen of the gem I removed version 1 and went with v2 . Easy .", "Question : I have problems using Gollum wiki with github remote wiki pages . I created a wiki for this project https : github.com ricardogarfe python-sample-test and Create Wiki pages in wiki git-repo https : github.com ricardogarfe python-sample-test wiki . Clone the repo using ssh : .. . .. . Install Gollum : .. . .. . Run gollum inside wiki repository : .. . .. . Edit home page and save with comments . Then I ran : .. . .. . So I can t do push to origin when I edit wiki pages using gollum . I forget any configuration user groups in linux to make commits push automaticaly through gollum Using : .. . .. . ruby-1.8.7 .. . gem 1.8.15 .. . .. . Thanks Ricardo . .. . Answer : I haven t worked with gollum so this may be a bit off base but your output indicates that there is a commit which hasn t been pushed yet : .. . .. . If you look at the output of git-log -p -1 does it appear to contain the changes you made If so just git-push and you should be set . Comment : thanks I didn t understand git message git-push worked . more eyes more solutions regards .", "Question : I like Gollum https : github.com github gollum for wiki but seems to be always one project topic specific . Is out there some project or out-of-box solution to maintain Gollum projects instances By the maintain i mean creating it having list of them .. . .. . Answer : I just created two different wikis : .. . .. . Control-c to stop running gollum .. . .. . I created a home.mediawiki file as the homepage for each . So they are occupying two different namespaces . To edit these at the same time I suppose I d learn to use a different port for the second instance of gollum or just commit notes to one directory or the other wiki1 or wiki2 through my text-editor which is probably what I ll be doing anyway . Since wiki1 and wiki2 are directories on a computer with a GUI interface I d just use Finder Windows Explorer whatever to maintain the list of them . Does that meet your needs Comment : No what i want to achieve is to have the Gollum page which let me create delete new wiki . Similar what github let you do but it could be a much simpler", "Question : I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work . I m on Ubuntu 11.10 64Bit . I ve tried this as well with Ruby 1.9 also the same error . I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated . Comment : Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 . Comment : Related pull request https : github.com github gollum pull 242 .. . Answer : I am trying to use Gollum as my documentation for new projects and this problem hit me recently also . To solve this I isolated the changes using Bundler . In my cloned Gollum directory on my local machine I did the following : .. . .. . Next just run bundle install to set everything up . When you are ready to start the gollum server run bundle exec gollum from the command-line . This will give you a nice isolated gollum server using the gems you specifically bundled and will solve this problem discussed in your question .", "Question : i was wondering if there are any good alternatives to Sphinx when i want to provide static html documentation for software projects . Sphinx seems ok but is mostly used in the Python area . I am interested in a solution that could potentially be used in all kinds of projects not only Python related . My goal is to document stuff in markdown or something like that and afterwards generate a static html site that will be delivered to the users administrators .. . .. . I have also seen Gollum but this is tied to GitHub : .. . Answer : You might want to consider giving Gollum https : github.com github gollum another look . I will mention my thoughts about Gollum since my needs sound similar to your requirements . I have started using Gollum recently for Rails project documentation and my experience so far is very positive . It is developed by the people at Github but it is not tied to the Github service and can be used independently of Github . It is a very active open-source project with many committers . The framework is Sinatra and you can easily run it on your personal workstation . I keep a Gollum server running on my development-machine and edit the Markdown files directly and then view the results in the local Gollum server . This is especially nice if you setup your editor to automatically add your updates with a keystroke . When you are ready you can generate a static html site form your Gollum wiki using this https : github.com dreverri gollum-site project . Also since it uses git behind the scenes there is built-in versioning and all the power of git .", "Question : The Github wikis are backed by a separate git repository then the main project repository . This post https : github.com blog 699-making-github-more-open-git-backed-wikis by the Github team makes it sound like you should be able to link-to images stored in the wiki repository inside the wiki-markup . Images and Folders .. . .. . You can now reference images hosted inside the Git repository . I ve checked out my wiki s repository and pushed a resource folder and an image into it . My question is how do I go about using this image Is this even possible or have I misunderstood something Comment : There is a github-faq about adding-images-to-wikis https : help.github.com articles adding-images-to-wikis but it has no infos about short relative image urls discussed here .. . Answer : Figured it out . The url is formatted as follows .. . .. . https : raw.github.com wiki username project pathtoimage imagename.extension .. . .. . pathtoimage is optional Comment : That works but is tightly coupled to how GitHub stores files . If they change their paths it would break . It would also break when running the wiki locally via gollum .", "Question : null .. . Answer : I ve got gollum deployed on my server . I set up a wiki directory seeded it with some files created a git-repo there then called gollum on the directory . I can access my wiki via a browser and update and create files . However I can t find any of the new files or any of the updates in the filesystem . Are gollum updated files accessible from the command-line somewhere Comment : It uses a git repository to store the data . If that repo is bare there will be no directly visible files . In that case you could use a git tool to look at them . Comment : @Thilo - thank you . My git-config shows bare false . Files are visible but just the ones I put there before running gollum . Files I add via the browser don t show up . ---- ...and I just tried running gollum with the --bare flag . Now it s displaying updated files Thanks for your help . Comment : @Thilo thanks again . I was getting my git configs confused with my gollum configs . Anyway if you d like to put in the answer files are stored within the git-repo then I ll check it off . Otherwise I ll put in the answer in a few days to close out this question .", "Question : I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work . I m on Ubuntu 11.10 64Bit . I ve tried this as well with Ruby 1.9 also the same error . I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated . Comment : Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 . Comment : Related pull request https : github.com github gollum pull 242 .. . Answer : Try reinstalling redcarpet like this : .. . .. . If using bundler put in your Gemfile Comment : Thank you very much kind sir Comment : According to github.com tanoku redcarpet blob master README.markdown http : github.com tanoku redcarpet blob master README.markdown Redcarpet version 2 is not backwards-compatible with the 1.X versions . Lame This update broke the site generator I use Jekyll . Amusingly Redcarpet and Jekyll are both made by GitHub . It s discourteous that they broke other folk s software embarassing that they broke their own Comment : @MattHickford At least they followed semver semver.org http : semver.org Comment : I believe this is resolved in Jekyll in the 0.12.0 release", "Question : I want to create a wiki with gollum and push it to my own git-repo is that possible I created a new git-repo install gollum and started it . I got the edit Home page . I added some content saved...all looked good . Even the revision history showed that revisions occurred . Then I stopped gollum and found there was nothing new in my git-repo I even checked if stuff hadn t been pushed...nothing . I m not sure how where it s storing the content that I add when I run it . Any ideas Thanks .. . Answer : May be you are checking a wrong repository the default is for gollum to use or create a git repository at the root of page files . It can be changed with the options --page-file-dir and --base-path cf gollum --help", "Question : I ve been looking into wikis for use in production in an existing rails app not for personal use - have seen a few questions on wiki gems here but little outside of personal use . Gollum seems simple to get up an running locally but is it a good choice for production where you may have multiples users groups that each have their own secure wikis Besides Gollum I have also looked into Instiki http : www.instiki.org show HomePage zena http : zenadmin.org en documentation Wiki page735.html and Wagn http : wagn.org . Some of the production requirements to consider : .. . .. . 1 . Needs to play nice with existing models and storage - rails app is already using S3 to store media videos images - those same assets will be combined with the wiki . 2 . Need to be able to create separate wikis for groups within my company - seems like integration with devise cancan is not too difficult . Is it easy to add a separate repository for users groups 3 . This is a general purpose wiki for internal use - non-technical employees from HR finance marketing etc . will also be using it with different levels of access . As such would hope to swap out the text-editor to something more user friendly such as this wysihtml5 text-editor http : jhollingworth.github.com bootstrap-wysihtml5 . Is there anything I should be concerned about flexibility-wise with Gollum before investing too much time in it Any advice is much appreciated and hopefully this helps others Comment : Just incase anyone decides to respond I installed Gollum which was as easy as advertised . Problems for me are that you can t customize the html css and I don t think I have a way to embed wiki functionality into existing pages and other controllers . Will probably try Instiki next but it does not seem to be as updated as others . It does offer the benefit of controlling the database which is nice for this use-case . .. . Answer : Great Question . I suggest looking at https : www.ruby-toolbox.com categories wiki apps instead of asking the general populus of stackoverflow . looks like gollum is the most popular solution . with any rails engine you will have to customize it to your needs .", "Question : Is there any way to programmatically using libraries like PyGithub GitPython or dulwich load any file right into MyRepo.wiki.git repository Using Python of course . I can easily upload a file right into MyRepo.git repository with a help of PyGithub but unfortunately this library has no API or ways to work with MyRepo.wiki.git repository . Here is how I can upload a file to MyRepo.git repository : .. . .. . So how can I do the same but with MyRepo.wiki.git repository If you can provide an example using PyGithub library - it would be really great . P.S . Can I do this using Gollum API P.P.S . Has not anybody worked with .wiki.git using any kind of python library I do not believe : .. . .. . P.P.P.S . If I was not clear enough : I DO NOT want to create a local repository in any way . All I want to modify repo structure on-the-fly - just how my example does . But with .wiki.git repository . Thank you Comment : What exactly is the MyRepo.wiki.git Comment : Just an example . It is about any repository with wiki suffix . Comment : I don t understand : GitHub wikis are just ordinary git repositories as described in this answer http : stackoverflow.com a 3484073 165988 . If you can already clone the wiki as a separate repository and there you have a way to manipulate a general git repository then you have a solution . Comment : @NT3RP . I can manipulate with my own public and private repository . But I am a contributor to third party private repository . And I can t request those repository directly - only in performing a loop with comparing if the next repo is of my interest . Also I can do things like : ...getRepo myrepo.git but this doesn t work with the following : ...getRepo myrepo.wiki.git . Please note I indeed can use git tool but I want to do everything from Python library . Comment : @NT3RP . Please note I can find that mentioned third party repo using cycle and get repos function in case of PyGithub . But .wiki.git repository is not included in that list . The only way I can find out if the repo has a Wiki is request the found repo using has wiki property : repo.has wiki . And that s all : .. . Answer : You can t access a github wiki via the github web API which PyGithub uses exclusivly . But you can point your GitPython at the git URL of the wiki . After that you can access files in this git-repo as with any other repo . Edited .. . .. . As you pointed out that you restrict yourself not to create a local clone of the git repository I recommend following : .. . .. . Read the code in https : github.com github gollum blob master lib gollum frontend app.rb which defines maybe all of the external HTTP interface . A nicely wrapper around it for Python doesn t exist . But when you do make one partially than I recommend using a REST client library like mentioned here : Which is the best python library to make REST request like PUT GET DELETE POST and how http : stackoverflow.com questions 2176561 which-is-the-best-python-library-to-make-rest-request-like-put-get-delete-pos .. . .. . If you now think that your restriction could be changed : .. . .. . The documentation http : packages.python.org GitPython 0.3.2 tutorial.html provides a good tutorial covering everything one needs with a little git knowledge . It boils down to : Comment : Could you provide a simple example Comment : If you read clearly my question it was about how to change .wiki.git repository without creating any local repository please take a look at my example in the question s description . Comment : Thank you for trying to help me . I appreciate this . I will check your suggestion I hope that Gollum will give me a hint anyway .", "Question : I have several .md files in markdown format initially on github but I would like to put it up as a wiki with a custom link . I use the Gollum gem https : github.com github gollum and like it alot however it is only built on top of github or use in local server to edit the files offline . Are there any opensource wiki that reads markdown format that I can create and point the wiki to my hosted domain Appreciate any suggestions : .. . Answer : Here are some likely candidates : .. . .. . w2wiki http : code.google.com p w2wiki - PHP based A web-based wiki-like notepad that you host yourself .. . Markdoc http : markdoc.org - Python based .. . Gitit http : gitit.net - a wiki backed by a git darcs or mercurial filestore . Uses Pandoc for markup so supports several formats . ikiwiki http : ikiwiki.info - A WIKI compiler based around a revision control backend .. . nikiwiki https : github.com synack nikiwiki - Python based .. . Beautiful docs http : beautifuldocs.com - a documentation viewer based on markdown files uses Node.js .. . Commonplace http : helloform.com projects commonplace - Ruby-based but written for Mac desktop should work elsewhere thougH . Not sure this is really classed as a WIKI but it does display MD formatted files", "Question : I like Gollum https : github.com github gollum for wiki but seems to be always one project topic specific . Is out there some project or out-of-box solution to maintain Gollum projects instances By the maintain i mean creating it having list of them .. . .. . Answer : Well there s big-gollum https : github.com oponder big-gollum but it doesn t look particularly active .", "Question : I m starting a project where I will work with the base Gollum wiki gem and add some features to it . I was wondering what is the best way to do this . Do I need to build and install the gem everytime I need to test it Is there a way to edit the source code of the gem and test it on-the-fly I m only a beginner at this so sorry if this is a silly question .. . Answer : Clone the git into your userspace .. . Checkout the source code somewhere into your Projects directory .. . Put in your main projects Gemfile the following : .. . .. . instead of : git .. . .. . .. . Run bundle update in your main project directory each time you changed smth in gollum . Don t forget to commit changes to github into your gollum fork and point gem instruction to it into Gemfile before uploading . Hope it helps .", "Question : null .. . Answer : Months back I started populating a wiki for someone else s GitHub repo . I put instructions here https : groups.google.com forum topic mathbox vKkMknqa7rg . Yesterday I decided I wanted to add a new page . Nobody has modified the wiki in the meanwhile so I figured I can just repeat those instructions from.. . .. . .. . Make the edits : .. . : .. . .. . So I run gollum from path to MathBox mathbox.wiki which currently contains a Home.md and Slides.md which correctly reflects the wiki as is launch my browser at localhost : 4567 and add a new page by adding foo to the homepage saving it clicking it . Which opens it up as blank page in edit mode and I then add some dummy text save quit browser quit gollum . But the files in the current folder haven t changed . Home.md should have an extra line and there should be a new Foo.md file containing my dummy text . But nothing And even stranger running Gollum again shows the wiki in its new state . So my changes are getting recorded somewhere . But as it is not in the working folder GitHub Desktop doesn t grok that I have made modifications . What s going wrong here" ] }
[ "yes-answer-long", "yes-answer-short" ]
wiki
UNK_RELATION
jqmath@module@34
jqmath -- jqmath is a javascript @placeholder that makes it easy to put formatted mathematical-expressions in web pages .
{ "confidence": [ 51.916709899902344, 48.211151123046875, 48.162696838378906, 45.83563232421875, 45.55024719238281, 44.906105041503906, 44.357200622558594, 44.2442741394043, 44.2442741394043, 42.5404052734375, 42.458980560302734, 42.253021240234375, 41.12266540527344, 40.33124542236328, 40.26710891723633, 40.100433349609375, 40.100433349609375, 40.100433349609375, 40.100433349609375, 40.100433349609375, 40.100433349609375, 40.100433349609375, 40.100433349609375, 40.100433349609375, 39.28974151611328, 38.97007751464844, 38.97007751464844, 38.77581024169922, 38.56324005126953, 38.56324005126953, 38.49922180175781, 38.49922180175781, 38.49922180175781, 38.49922180175781, 37.93498229980469, 37.917137145996094, 36.85224151611328, 36.85224151611328, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.79535675048828, 36.56299591064453, 36.087730407714844, 35.665000915527344, 35.665000915527344, 35.665000915527344, 35.665000915527344, 35.047088623046875, 35.047088623046875, 35.047088623046875, 35.047088623046875, 35.047088623046875, 34.92760467529297, 34.36712646484375, 34.310237884521484, 34.04730224609375, 34.04730224609375, 34.04730224609375, 33.70012664794922, 32.561973571777344, 32.56110763549805, 32.4164924621582, 32.4164924621582, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.34342956542969, 32.10526657104492, 31.996259689331055, 31.213075637817383, 31.213075637817383, 31.213075637817383, 31.213075637817383, 31.213075637817383, 31.213075637817383, 31.213075637817383 ], "content": [ "Is this easy to do with jqmath", "The link in the answer above explains how to use jqMath in web pages if that helps .", "jqMath calls M.parseMath document.body after the document is loaded to convert jqMath strings to formatted mathematics .", "I ve downloaded jqMath files to show mathematical formula in my app .", "Using jqMath in Android application http : stackoverflow.com questions 22127355 using-jqmath-in-android-application .. . .. . Or here : https : www.google.com.ua webhp q jqmath 20android 20example", "If you want to create mathematical-expressions dynamically after load-time see Jqmath - apply after page load http : stackoverflow.com questions 8517334 jqmath-apply-after-page-load .", "I am the jqMath author .", "jqMath behaves differently on differing browsers .", "So I thought of using JQMath .", "Does your jqmath work with ASCIIMath", "Also jqMath accepts backquote in-place of if that makes things easier .", "I ve just written a javascript module to do this named jqmath .", "jqMath is a JavaScript library like MathJax but much smaller simpler and faster .", ": .. . .. . See How to left align elements in a jqmath table http : stackoverflow.com questions 10965767 how-to-left-align-elements-in-a-jqmath-table and jqMath highlight box like bbox in MathJax MathJs http : stackoverflow.com questions 11805054 jqmath-highlight-box-like-bbox-in-mathjax-mathjs for more jqMath CSS examples and information .", "To find out more about how to style code generated by jqMath just look at their CSS style sheet http : mathscribe.com mathscribe jqmath-0.2.0.css .", "@50ndr33 jqMath uses Unicode not ASCIIMath ASCII notation .", "The output of jqMath is shown within an android s webview .", "@DaveBarton : I think you can help the author of jqmath", "If so is there a jqmath version that works with jquery 1.12 version", "Are you asking for a tutorial on how to use jqMath", "My problem : syntax is different between mathjax and jqmath .", "- At least now the equation seems to be in correct form-for jqmath .", "I discovered jqmath library that works very well .", "jqMath can generate MathML but not convert it to smth else .", "Added these files to my assets folder : jqmath-0.4.3.css jqmath-0.4.3.js jqmath-etc-0.4.3.min.js jquery-1.4.3.js jquery-1.4.3.min.js jscurry-0.4.0.js jscurry-0.4.0.min.js .. . .. . 2 .", "It can be MathJax or JqMath or anything that is small and fast .", "jqmath 0.4.3 is the only version that seems to be available .", "See jqMath highlight box like bbox in MathJax MathJs http : stackoverflow.com questions 11805054 jqmath-highlight-box-like-bbox-in-mathjax-mathjs and How to left align elements in a jqmath table http : stackoverflow.com questions 10965767 how-to-left-align-elements-in-a-jqmath-table .", "If you don t have the files yet go to http : mathscribe.com author jqmath.html and click the download jqMath link in the middle of that page to download jqMath to your computer .", "And then I tried it like this Using jqMath in Android application http : stackoverflow.com questions 22127355 using-jqmath-in-android-application in many different ways but nothing worked .", "Alternatively jqMath also supports backquote for its macros to avoid this annoyance .", "I want to write table matrix with jqmath but the output is not correct .", "I copy jqmath example http : mathscribe.com author jqmath.html .", "I have heard abt the jqMath I did lots of search on it .", "See Jqmath - apply after page load http : stackoverflow.com questions 8517334 jqmath-apply-after-page-load .. . .. . Basically you call M.parseMath on a DOM element after you ve loaded jqMath text into it .", "After that your php script can just produce input to jqmath or mathjax and it ll be formatted on the client .", "jqMath at http : mathscribe.com author jqmath.html is a JavaScript library like MathJax but much smaller simpler and faster .", "If they can use HTML CSS and Javascript I d think they could use jqMath same as however you d use MathJax .", "I would like to apply the jqMath script after the initial page load .", "For example jqMath automatically does M.parseMath document.body after the initial page load .", "Does jqmath have support for adding custom containers inside of final render", "I am using jqMath to display chemistry formulas on a website .", "Note that .. . .. . is not valid markup when using jqMath the precedes any character to be superscripted .", "I have jqMath up and running within an android app .", ": Thanks Dave for the response.Special thanks for giving us the jqmath an extremely useful library .", "In a another part of this project I would like to use jqmath .", "Of course jqmath doesn t care about my formulas syntaxed under mathjax.. .", "So you can generate MathML from MathJax and feed that into jqmath .", "I ve heard of html of course mathml mathjax jsmath jqmath.. .", "If the end result reads ov55 then the problem seems to be before jqmath sees anything .", "I have a WebView that updates its jqMath equation every fraction of a second .", "The moral is to just put true mathematics inside MathML jqMath and leave everything else in HTML if possible .", "This question already has an answer here : .. . .. . Using jqMath in Android application questions 22127355 using-jqmath-in-android-application 3 answers .. . .. . I am trying to display some math equations in my Android application but I am unsure how you use JqMath to display these equations .", "I was looking for something faster smaller and simpler than MathJAX JQMath is perfect .", "So you mean that I have to write the script to work with the syntax of jqMath", "Specifically I never see an example of jqmath code that is being used in Android .", "I have an html file eqn.html stored in the same directory as the jqMath files .", "See M.addClass in jqmath-0.4.0.js for what I do instead inside jqMath - basically I call element.setAttribute class .. . on XML elements which is equivalent to your addClassML .", "I am using jqmath for math rendering.Here is the complete code .. . .. . It is working perfectly in firefox but not in chrome 32 and IE 8.I checked the compatibility and it says jqMath is compatible with both the versions.So why it is not working", "Both MathJax and jqmath use MathML internally and both understand it as an input format jqmath added MathML input support a while back see the copy-me.html in the distribution .", "Basically you use CSS like in jqMath highlight box like bbox in MathJax MathJs http : stackoverflow.com questions 11805054 jqmath-highlight-box-like-bbox-in-mathjax-mathjs rq 1 .", "If you want to call M.parseMath on part of a page yourself instead of reloading an entire webview see Jqmath - apply after page load http : stackoverflow.com questions 8517334 jqmath-apply-after-page-load 31248938 31248938", "2 3.If I visit homepage of jqmath using same version of chrome and write the same expressions in the test area provided they are rendered correctly .", "PS : On broswer it works but I will not be making a browser but an app and hence a mechanism to run that jqMath javascript library", "I know Android has WebView and hence jqMath has good performance there .", "If I try to create a table in jqmath http : mathscribe.com author jqmath.html it always centers the elements .", "So if I write .. . .. . then I get .. . .. . How do I make jqmath align the columns to the left so that the table is displayed as", "As far as I know to add a class in jqmath I have to use this cl myclass command .", "Jan the library does support mathematical Unicode characters and the main jqMath page at http : mathscribe.com author jqmath.html has a table to help you find and type them .", "I know that jqMath is supported on majority of mobile browsers but I Wanted to know that when I will make a Windows app then is there something like WebView in Android so that I can include jqMath library and render the formula", "I have this DOM class which I add to a jqMath expression to change the color of part of an equation which I ve written using jqmath and the corresponding CSS : .. . .. . The thing is the color usually changes as expected but this is not the case if I have for example a division in the equation like this : d dx x 2 .", "try this javascript based equation editor jqmath http : mathscribe.com author jqmath.html .. . .. . this is very fast .. . .. . Try this new one . . mathquill http : mathquill.com", "You might also look at my jqMath JavaScript library at http : mathscribe.com author jqmath.html - it s like MathJax but simpler smaller and much faster .", "See stackoverflow.com questions 8517334 http : stackoverflow.com questions 8517334 jqmath-apply-after-page-load for your point 2 .", "I am using jqMath http : mathscribe.com author jqmath.html for Math equation formatter .", "from the author .. . .. . .. . In general it s best to let html handle the text and jqMath handle the math .", ".. . Basically jqMath isn t smart enough to tell what s math and what isn t without to help .", "To quote the page you provided : .. . .. . spaces tabs and newlines are ignored - jqMath formats the mathematics", "How do I ensure jqMath can be triggered when the ajax call returns and applied to the appropriate div section", "After you read and experiment there click the download jqMath link in the middle of that page and then read the COPY-ME.html file .", "The above might fail to work if you use a global variable M for something other than jqMath .", "It seems like jqMath or maybe MathML hardcodes all math operators to display as normal size .", "jqMath cannot be as pretty as you want on Android currently sigh because Android s webview doesn t implement MathML .", "jqMath uses built-in MathML in browsers that have it namely Firefox and recent versions of Safari webkit .", "could use the MathPlayer plugin for MathML so jqMath has to use its own .css file to help with formatting .", "I am newbie in Android programming and I want to us jqMath to display some math formulas in WebView .", "You can also look at the jqmath source to see how http : mathscribe.com author jqmath.html does it .", "So my question is : does it exist a way to convert maths strings from mathjax to jqmath syntax", "I suspect its something to do with how Java strings processes the jqmath text as it works perfectly on the website but not in the Android code", "I guess jqmath is a good way to do this and I downloaded the files from this site http : mathscribe.com author jqmath.html .", "I get this error Unable to open asset URL : file : android asset mathscribe jqmath-0.4.3.css", "The problem was that i had copied content of jqmath-etc-0.4.3.min.js from web to my own editor sublime and saved it and then used that - something went wrong there .", "I am new to jqmath I have contained a textarea field in my HTML : .. . .. . I will set mathematical formula in the text area so that it will be displayed in div tag : .. . .. . This code is available in http : mathscribe.com author jqmath.html .", "Unlike ASCIIMathML jqMath will work in any browser back to IE6 and is also open-source .", "But for examples like yours jqMath will be faster and use a simpler syntax based directly on MathML and Unicode .", "In your example you would need to input 5 2x 2 2+3 81 to jqMath .", "Your php page should include produce an html script src .. . tag to load jqmath or mathjax on the client in the user s browser .", "But you say that jqMath and MathJax can convert from a string to HTML+CSS or MathML .", "MathJax is much bigger and more complicated than jqMath and roughly 5 times slower .", "I tried to use Jqmath some time ago but I couldn t make it work ." ] }
{ "confidence": [ 70.11546325683594, 65.92598724365234, 61.59305953979492, 59.817447662353516, 57.50834274291992, 56.28549575805664, 56.10301208496094, 55.6246337890625, 54.97098159790039, 54.64289474487305, 53.34983444213867, 51.92903137207031, 51.8696174621582, 51.66266632080078, 51.163002014160156, 50.701019287109375, 50.490238189697266, 50.38585662841797, 50.38335418701172, 50.26564025878906 ], "content": [ "Question : I am new to jqmath I have contained a textarea field in my HTML : .. . .. . I will set mathematical formula in the text area so that it will be displayed in div tag : .. . .. . This code is available in http : mathscribe.com author jqmath.html . But I don t know how to use it . Please help me . Thank you . Comment : Are you asking for a tutorial on how to use jqMath .. . Answer : I like Nathan s question - what exactly are you trying to do The normal case is to have some math in your static web page which you just surround with s and it gets parsed and formatted at load-time . If you want to create mathematical-expressions dynamically after load-time see Jqmath - apply after page load http : stackoverflow.com questions 8517334 jqmath-apply-after-page-load . You can also look at the jqmath source to see how http : mathscribe.com author jqmath.html does it . All these methods end up calling the same functions to do the actual work parsing and formatting .", "Question : I have a PHP-script that outputs : 5 2x 2 2+3 sqrt sqrt 81 .. . .. . I want it to be formatted properly like you would write it . Where can I find a ASCII to MathML converter like this : http : www.equationsheet.com asciitomathml.php That is OpenSource in PHP or JavaScript so that I can use it on my webpage to format the mathematical fraction Because this is done in PHP closed source but I need something that I can implement on my own server . My scripts outputs the math as that and I need it to be displayed properly .. . .. . I really appriciate that you spend your time helping me : .. . Answer : You might also look at my jqMath JavaScript library at http : mathscribe.com author jqmath.html - it s like MathJax but simpler smaller and much faster . Unlike ASCIIMathML jqMath will work in any browser back to IE6 and is also open-source . If you know LaTeX and want its full power for very advanced mathematics and don t mind if pages load slowly then use MathJax . But for examples like yours jqMath will be faster and use a simpler syntax based directly on MathML and Unicode . In your example you would need to input 5 2x 2 2+3 81 to jqMath . You can try this out at the page I linked to above . Comment : Thanks but my problem is that my script processes the formula and I don t want to write 400 lines-of-code just to output the result-of the script . Comment : Your php page should include produce an html script src .. . tag to load jqmath or mathjax on the client in the user s browser . After that your php script can just produce input to jqmath or mathjax and it ll be formatted on the client . Comment : Thanks . But the user inputs a formula my script changes it and outputs it . So you mean that I have to write the script to work with the syntax of jqMath Comment : Yes your script output must match the input syntax of whatever you are feeding it to jqmath or mathjax or mathml or whatever you choose . The problem with mathml is that most browsers don t support it yet plus it s very verbose so it s better to produce a concise string that jqmath or mathjax can convert to either mathml or html+css depending on the user s browser . Comment : Thanks . But you say that jqMath and MathJax can convert from a string to HTML+CSS or MathML . Can it be formatted like I did in the example You see I have a script on 500 lines but I don t want to write another 500 lines just to output my script s result.. .", "Question : I ve to create a custom text field which is support some of the mathematical expression also . So I thought of using JQMath . I ve to pass a expression with html-input field using javascript . It ll be added dynamically . So I put the expression in a string which is changeable anytime . But if I use the string it didn t give the positive output . I googled a lot about this but I cant get it . Please help me on this . Below is my code . Comment : I suspect it s because the library doesn t understand or . Don t get me wrong Unicode is a nice idea but it s pretty hard to type . .. . Answer : The in the javascript quoted string source needs to be doubled to produce a in the actual string . Alternatively jqMath also supports backquote for its macros to avoid this annoyance . Jan the library does support mathematical Unicode characters and the main jqMath page at http : mathscribe.com author jqmath.html has a table to help you find and type them .", "Question : I m a beginner in Android . I want to display Mathematical and Science Formula . I have heard abt the jqMath I did lots of search on it . But I couldn t find out how to use it actually . So Please help me out to use it. . Its basic Steps n all. . .. . Answer : Is it what you want Using jqMath in Android application http : stackoverflow.com questions 22127355 using-jqmath-in-android-application .. . .. . Or here : https : www.google.com.ua webhp q jqmath 20android 20example Comment : @Alexksandr Ostaf Thankx. . what do we need to paste in assets file .", "Question : I have a WebView that updates its jqMath equation every fraction of a second . Every now and then more often when the equation s font is large the equation displays the delimiting characters for a fraction of a second . This usually happens on fast devices . Here is my code : .. . .. . jqMath will render this function correctly : .. . .. . 4+5+6+8 .. . .. . However very rarely it will display it with its delimiting blocks for a fraction of a second : .. . .. . 4+5+6+8 .. . .. . Even though it only appears for a fraction of a second it causes the text to jitter and look bugged . I have no clue what could possibly cause this . Any help will be appreciated . .. . Answer : jqMath calls M.parseMath document.body after the document is loaded to convert jqMath strings to formatted mathematics . The conversion takes a small but nonzero amount of time . You can take steps to hide the webview or move parts of it offscreen if you want for instance by temporarily setting a positioned element s css left property to -10000 but basically when most web pages are loaded they take a little time before they look right . Reloading html every fraction of a second doesn t seem like a good idea in general . It d be better to just change or reload the math when you need to and as I say do the reformatting offscreen if you want ideal results . This is a common technique in any interactive page or app with nontrivial rendering or graphics . If you want to call M.parseMath on part of a page yourself instead of reloading an entire webview see Jqmath - apply after page load http : stackoverflow.com questions 8517334 jqmath-apply-after-page-load 31248938 31248938 Comment : I have no experience working with JS or HTML and frankly have used the code to configure the WebView from other questions . Can you tell me exactly how do I apply it after the page has loaded Comment : What I meant above was how to only reformat the math without having the reload the WebView", "Question : null .. . Answer : I ve already searched a lot to find out how to write mathematical symbols in android . I guess jqmath is a good way to do this and I downloaded the files from this site http : mathscribe.com author jqmath.html . I created a folder inside the main folder called android asset in my android project and i ve copied the whole folder mathscribe which i v downloaded inside the android asset folder . And then I tried it like this Using jqMath in Android application http : stackoverflow.com questions 22127355 using-jqmath-in-android-application in many different ways but nothing worked . I get this error Unable to open asset URL : file : android asset mathscribe jqmath-0.4.3.css", "Question : I am working on a Math related web page and am looking for a solution to writing Mathematical equations easily onto a web page . There are several solutions readily available to me at the moment : .. . .. . Use LaTeX and publish them on my web page as images . Use MathML .. . .. . Both of these solutions aren t ideal and seem somewhat dated . Replacing what should be text with an image is never a good idea and MathML isn t compliant with all browsers operating systems . I m hoping that there is a modern solution to using images or MathML perhaps something utilising sIFR to display mathematical equations After a bit of research I am still yet to find any real solution . Please note that I am asking for a new way of publishing equations . I do not want images to be the output that is displayed on the web page and would rather have these equations rendered as textual data . MathML is the closest I ve come but it s still not ideal . I ve wondered for a while whether a replacement tool like sIFR could be utilised to create equations in Flash . Anyone have any suggestions on this front EDIT : It s been a while since I last updated this post but with HTML5 becoming adopted by browsers there is a new player in the game that introduces LaTeX and MathML back into the mix MathJax http : www.mathjax.org . MathJax are definitely the way to go .. . .. . Similar Question : Math equations on the web http : stackoverflow.com questions 775168 Comment : Same as this StackOverflow question : stackoverflow.com questions 775168 math-equations-on-the-web http : stackoverflow.com questions 775168 math-equations-on-the-web Comment : The title is the same but I am asking for a specific solution not involving images . These solutions are dated and this question is about finding a newer method of inserting equations in a text form that could possibly be styled using CSS or Flash instead of using an image . Comment : On a related note does anyone know if these options are present in Stack overflow Comment : As of early last year SE now uses MathJax . mathjax.org 2011 04 12 news http : www.mathjax.org 2011 04 12 news stack-exchange-becomes-mathjax-partner Comment : Yep and math.se has used various math rendering libraries for quite some time now for.. . reasons.. . .. . Answer : I ve just written a javascript module to do this named jqmath . See http : mathscribe.com author jqmath.html .. . .. . It s sort of similar to MathJax but simpler smaller and faster . Comment : This looks great and hopefully in the next few weeks I ll give it a proper test drive and see how it performs . Comment : Hi again Does your jqmath work with ASCIIMath I m trying to achieve two goals which I have achieved with MathJax already . But I want a faster webpage . 1 . To be able to type math here . 2 . To be able to type math into a textarea and see the result form in realtime . Get JavaScript to update the contents of a div that shows the result . Is this easy to do with jqmath The solution with MathJax is to use their implementation of ASCIIMathML.js to do point 1 and to use the original ASCIIMathML.js to do point 2 . Comment : @50ndr33 jqMath uses Unicode not ASCIIMath ASCII notation . See stackoverflow.com questions 8517334 http : stackoverflow.com questions 8517334 jqmath-apply-after-page-load for your point 2 . Comment : mathscribe.com is down .", "Question : I am using jqmath for math rendering.Here is the complete code .. . .. . It is working perfectly in firefox but not in chrome 32 and IE 8.I checked the compatibility and it says jqMath is compatible with both the versions.So why it is not working The strange part is that the home page of jqmath http : www.mathscribe.com author jqmath.html is working perfectly and when I write math expressions in the text area available for practice on the homepage that is also being rendered properly.So where is the problem EDIT .. . .. . The symbols are appearing but are scattered.It seems the problem is only with divide-by e.g . 2 3.If I visit homepage of jqmath using same version of chrome and write the same expressions in the test area provided they are rendered correctly . Example1 .. . .. . firefox correct enter image description here http : i.stack.imgur.com 57u93.png chrome wrong enter image description here http : i.stack.imgur.com sVqNr.png .. . .. . Example2 .. . .. . firefox correct enter image description here http : i.stack.imgur.com sfmnj.png chrome wrong enter image description here http : i.stack.imgur.com 9DATP.png Comment : @DaveBarton : I think you can help the author of jqmath Comment : Incorrect rendering and not working are not problem descriptions explain how the rendering differs from the expected . Comment : @JukkaK.Korpela : Please see the EDIT with diagrams . Comment : @JukkaK.Korpela : I found the solution.I was not including the css file provided with jqmath.But shockingly why was it working in firefox In fact it was the reason I removed that css thinking it is not required . Comment : I am trying to use jqmath-etc-0.4.3.min.js with jquery-1.12.1.min.js - i see errors in console - is this version incompatibility problem If so is there a jqmath version that works with jquery 1.12 version .. . Answer : jqMath uses built-in MathML in browsers that have it namely Firefox and recent versions of Safari webkit . Sadly I.E . and Chrome are not so advanced though old versions of I.E . could use the MathPlayer plugin for MathML so jqMath has to use its own .css file to help with formatting . This explains the solution you found . Comment : : Thanks Dave for the response.Special thanks for giving us the jqmath an extremely useful library . Comment : Dave Barton Perhaps you have an answer to this question - pls see : stackoverflow.com questions 36526435 http : stackoverflow.com questions 36526435 jqmath-not-loading-correctly", "Question : I am developing a website which will have some math equations and hence to render them I am planning to use jqMath . Now before delving into coding I would like to plan in advance so that it doesn t turn into a nightmare at the end and want to know whether jqMath can be used works on Mobile apps . I know Android has WebView and hence jqMath has good performance there . But I am completely alien to Windows and IOS apps .So I want to know whether jqMath works on those platforms also .. . Answer : By simply browsing to a jqMath website on the phone I could see that it works perfectly fine . enter image description here http : i.stack.imgur.com q6Ags.png .. . .. . close up .. . .. . enter image description here http : i.stack.imgur.com axPJE.png Comment : Thanks for your response . I know that jqMath is supported on majority of mobile browsers but I Wanted to know that when I will make a Windows app then is there something like WebView in Android so that I can include jqMath library and render the formula PS : On broswer it works but I will not be making a browser but an app and hence a mechanism to run that jqMath javascript library Comment : @InsaneCoder When you use a web control in your application or when your application is an html app you re using the built-in browser . So if it works in the browser it works in the app .", "Question : I am new to jqmath I have contained a textarea field in my HTML : .. . .. . I will set mathematical formula in the text area so that it will be displayed in div tag : .. . .. . This code is available in http : mathscribe.com author jqmath.html . But I don t know how to use it . Please help me . Thank you . Comment : Are you asking for a tutorial on how to use jqMath .. . Answer : i got solution .. . .. . script code .. . .. .", "Question : If I try to create a table in jqmath http : mathscribe.com author jqmath.html it always centers the elements . So if I write .. . .. . then I get .. . .. . How do I make jqmath align the columns to the left so that the table is displayed as .. . Answer : All you need to do is style the appropriate tags . This is demonstrated in the following fiddle http : jsfiddle.net creemama ehbLt 3 . To find out more about how to style code generated by jqMath just look at their CSS style sheet http : mathscribe.com mathscribe jqmath-0.2.0.css . jqMath behaves differently on differing browsers . By default Chrome displays the text using left alignment whereas Firefox displays the text using center alignment . Chrome uses td class fm-mtd while Firefox uses mtd . The tag used depends upon whether the web browser supports MathML http : en.wikipedia.org wiki MathML Web browsers . To learn more about text-align visit the Mozilla Developer Network https : developer.mozilla.org en CSS text-align . Comment : Thanks but Firefox and Chrome display it differently . Firefox shows your example centered while Chrome correctly left-aligns it . Is there a work around for that Comment : @DamascusSteel I updated the fiddle http : jsfiddle.net creemama ehbLt 3 .", "Question : This question already has an answer here : .. . .. . Using jqMath in Android application questions 22127355 using-jqmath-in-android-application 3 answers .. . .. . I am trying to display some math equations in my Android application but I am unsure how you use JqMath to display these equations . Could someone tell me step by step what to do to get some simple equations displayed on the Android Application I have tried the following : .. . .. . And get the following errors : Unable to open asset URL : file : android asset mathscribe jqmath-0.4.0.css Unable to open asset URL : file : android asset mathscribe jqmath-etc-0.4.2.min.js Unable to open asset URL : file : android asset mathscribe jquery-1.4.3.min.js .. . .. . I think the problem might be that I need to download some jqMath files to my Android assets folder but I m not sure where to find these files . Comment : What have you tried Read this sscce.org .. . Answer : If you don t have the files yet go to http : mathscribe.com author jqmath.html and click the download jqMath link in the middle of that page to download jqMath to your computer . You ll then need to put the correct files in your assets folder . Also M.parseMath should only be applied to a node in the DOM not a string variable . Your M.parseMath s call here is a no-op does nothing . You could replace your entire line : .. . .. . with just : Comment : Thank you this solved my problem", "Question : I have included the following on my html page : .. . .. . But when the page loads i see the following error in Javascript console : .. . .. . I am using jqmath-etc-0.4.3.min.js with jquery-1.12.1.min.js . What am i missing here or could this be a version incompatibility issue jqmath 0.4.3 is the only version that seems to be available . Comment : Do you have other scripts besides those Comment : Bikash Yes i do - but they are unrelated simple ones that i wrote - and they are all after these scripts . .. . Answer : Change your second script-element to : .. . .. . As alljamin suggests you ll see basically this in COPY-ME.html . The key is the charset utf-8 required if you don t have a meta charset utf-8 in your html file but you probably really should . Comment : Dave I added meta charset utf-8 in html file and also in script-tag as suggested but i still see the same error . Comment : Dave This is solved now . The problem was that i had copied content of jqmath-etc-0.4.3.min.js from web to my own editor sublime and saved it and then used that - something went wrong there . So i took the original jqmath-etc-0.4.3.min.js from download zip and used it - and it worked fine Thankyou very much .", "Question : Using jqMath you can use html to insert html inside mathematical-expressions such as in .. . .. . This results in the following expression displayed to the user with a html-input before the first + .. . .. . y ax actual input here +bx+c .. . .. . So. . is it possible to achieve the same using MathJax .. . Answer : You might find this discussion http : groups.google.com group mathjax-users browse thread thread 60ed8c30e898715a on the MathJax user forums to be helpful . Davide Comment : semantics and annotation elements associate Content MathML with a presentation . The HTML 5 spec also allows HTML inside Presentation MathML token elements such as mtext . Hope this helps .", "Question : On a project I use ck editor with mathjax plugin in order to insert some formulas . In a another part of this project I would like to use jqmath . Cause it s faster and more integrated in wkhtmltopdf I use those formulas in some docs produced by wkhtmltopdf and some issues exist with mathjax especialy over bar . My problem : syntax is different between mathjax and jqmath . Of course jqmath doesn t care about my formulas syntaxed under mathjax.. . So my question is : does it exist a way to convert maths strings from mathjax to jqmath syntax Cheers .. . Answer : Both MathJax and jqmath use MathML internally and both understand it as an input format jqmath added MathML input support a while back see the copy-me.html in the distribution . So you can generate MathML from MathJax and feed that into jqmath . Comment : For PDF generation with MathJax see also stackoverflow.com a 30433735 http : stackoverflow.com a 30433735 . You might also want to check out MathJax s CommonHTML output which is very fast and somewhat like jqmath s output . Comment : many thanks i will try and give feedback", "Question : It is sad to see that science and math is never given enough attention in Android platform . Maybe this is an easy problem but I m a total dude in javascript so I m struggling to understand how to solve this problem . What I want to do is simple : I just need to use render mathematic equation . It can be MathJax or JqMath or anything that is small and fast . If I have to do it in a webview how can I show plain text in paragraph and formatted equation within the same webview .. . .. . anyone comes out with other methods which obviously works I ll consider that as solution also .. . .. . WHAT I VE DONE SO FAR : .. . .. . I started with using MathJax to put formula into webview I dunno if there is any successful jqMath use-case out there Anyone care to share their experience I can reproduce all the functionalities just like that of the standalone MathJax App http : cs.jsu.edu wordpress p 498 . In that app a user keys in a string into EditText field and MathJax will render the formula in Latex once user presses a button to confirm . I don t need user to confirm . I thought this should be easier because there is no user-interaction but somehow the equation never gets displayed . I know I must be missing something because the codes in the standalone MathJax is meant for user input . Which part of the code should I modify to directly render an equation from a string say sqrt b 2-4ac Here is the initial header for webview : .. . .. . And here is how the original webview loads when user presses a button after input to edittext : .. . .. . I attempted to replace with a hard-coded string .. . .. . but it doesn t work the text sample string won t even show up in the webview . SOLUTION see Joe s Answer .. . .. . To elaborate on his answer this is an example on how to set a sentence in plain text and then display a formatted equation in display form all in a single webview : .. . .. . Replace the last line above at .. . .. . with .. . .. . Then call .. . .. . This will set a string This is plain text in normal font and center-display the formula foo+bar https : chart.googleapis.com chart cht tx chl 5Csqrt 7Bb 5E2-4ac 7D in webview . EDIT Android 4.4 issue .. . .. . Starting with Android KitKat you have to replace all the lines loadUrl .. . with evaluateJavascript .. . . But this is only available for KitKat API 19 or above so you need to do an SDK version check first . For example : .. . .. . UPDATE AS OF MATHJAX 2.5 .. . .. . Because there are folders changes previous code won t work on latest version of MathJax . Besides the recommended way to minimalize the size of local MathJax is now using Grunt http : gruntjs.com getting-started . The template to reduce size of MathJax can be found here https : github.com mathjax MathJax-grunt-cleaner . Assuming you have successfully reduced the size of MathJax and assuming output of HTML-CSS here is a simple version that can load MathJax : .. . .. . Unlike Joes s answer there is no need to separate text or math types MathJax will just format them accordingly . However it appears that there is a bug that webview in KitKat devices cannot render capital letter A . Anyone who knows a way is welcome to provide a workaround for this . Comment : This doesn t work on android 4.4 . Do you have any solution for that Comment : See new edit in post . Comment : for the result you get is it possible to edit it like : mathquill.com http : mathquill.com @Neoh .. . Answer : jqMath is a JavaScript library like MathJax but much smaller simpler and faster . If you don t need all of LaTeX you might like it . It should work fine on Android . It is just a suggestion I have no idea what errors or advantages you might have if you use MathJax . MathJax is much bigger and more complicated than jqMath and roughly 5 times slower . Working JSFIDDLE : http : jsfiddle.net sinhayash gWWB5 1 .. . .. . For sqrt b 2-4ac you can have this code : b 2-4ac .. . .. . You can easily use string handling in javascript to convert strings to the jqMath format and easily display it Comment : I tried to use Jqmath some time ago but I couldn t make it work . As I said I don t have knowledge about javascript what sounds like piece of cake to you is actually a barrier that newbies like us can t overcome . Specifically I never see an example of jqmath code that is being used in Android . That s why I cannot accept this as answer .", "Question : I would like to apply the jqMath script after the initial page load . The problem I have is that I make an ajax call which retrieves some jqMath syntax and loads it into a div section of the main page . However the syntax is not currently being parsed . How do I ensure jqMath can be triggered when the ajax call returns and applied to the appropriate div section .. . Answer : The above might fail to work if you use a global variable M for something other than jqMath . The work-around is to call jqMath.parseMath element for example jqMath.parseMath document.body", "Question : I researched on this for quite a while and I know this kind of questions already answered . But I couldn t find a right answer showing how to practically deal with math formula in Android app . Without including large amount 5 20MB of files in the Android project it seems that there is no way to parse display math formula script like MATHML . I looked at JEuclid and MathJax that were mentioned a lot for Android but I found them in this category . So at this point the only way I can think of is to take each of those formula in a image file and display it on Android . But in practice that manual process is really slow . I am sure this is not a right way . So I have to ask this again . How to practically display math formula in your Android app Comment : maybe these links for mathML on Java Android http : stackoverflow.com a 1792641 94363 can help Comment : @rds Ironically that s one of the answers I particularly didn t like . The question was clearly for android device but that answer mentioned java libraries Android app cannot utilize . Refer to this for detail : stackoverflow.com questions 5767409 http : stackoverflow.com questions 5767409 math-or-latex-engine-for-droid-phones .. . Answer : jqMath at http : mathscribe.com author jqmath.html is a JavaScript library like MathJax but much smaller simpler and faster . If you don t need all of LaTeX you might like it . It should work fine on Android . Comment : Thanks for your answer . In fact that looks like a good method utilizing unicode symbols and jquery to organize equation layout . Comment : @Dave Barton how to use this library in android project . Comment : I don t know much about Android projects or apps . If they can use HTML CSS and Javascript I d think they could use jqMath same as however you d use MathJax . The link in the answer above explains how to use jqMath in web pages if that helps . Comment : anyone who succeeded in using this in android", "Question : I am using jqMath http : mathscribe.com author jqmath.html for Math equation formatter . I don t want to remove spaces and newline character from the expression . How can I do that I have tried a lot but I coudn t find any solution . .. . Answer : from the author .. . .. . .. . In general it s best to let html handle the text and jqMath handle the math . For example write using y x+1 x+2 or td x+y 2 td 1 inside an html-table . .. . You have to be able to separate user input into mathematics and non-mathematics . If a user inputs using y x you don t want using parsed as the product of 5 variables u s i n and g . Similarly if he inputs extra spaces that you want to keep outside the mathematics you have to capture them using regular expressions or something and don t pass them to jqMath . If you want the spaces to be part of the mathematics you could make the user input table or sp or text or something though most users won t know to do that . You could tell users that they need to put around their mathematics if they want it to format and then you could search for that . .. . Basically jqMath isn t smart enough to tell what s math and what isn t without to help . .. . Probably 0.2.0 will be out in a couple months or at least I ll have a version I could send you by then . Update : New version is out which support text and html", "Question : I would like to apply the jqMath script after the initial page load . The problem I have is that I make an ajax call which retrieves some jqMath syntax and loads it into a div section of the main page . However the syntax is not currently being parsed . How do I ensure jqMath can be triggered when the ajax call returns and applied to the appropriate div section .. . Answer : Call M.parseMath myDiv after loading myDiv . For example jqMath automatically does M.parseMath document.body after the initial page load . Comment : Thanks works a treat Comment : Look I m trying to use your library http : mathscribe.com author jqmath.html but I cannot implement it . . May you please help me Is there any reference on github to explain how can I implement it Comment : It s not on github at least not yet . The main documentation is at mathscribe.com author jqmath.html http : mathscribe.com author jqmath.html . After you read and experiment there click the download jqMath link in the middle of that page and then read the COPY-ME.html file . If you have a specific question after that post a question to stackoverflow . If you re working on Android see stackoverflow.com questions 30263725 http : stackoverflow.com questions 30263725 how-do-i-install-jqmath-on-android ." ] }
[ "yes-answer-long", "yes-answer-short" ]
module
UNK_RELATION
elastic4s@elasticsearch@199
elastic4s -- elastic4s is mostly a wrapper around the standard elasticsearch java client with the intention of creating a concise idiomatic reactive type safe dsl for applications in scala that use @placeholder .
{ "confidence": [ 67.66594696044922, 62.66206741333008, 55.147830963134766, 54.35926055908203, 54.2966423034668, 54.161476135253906, 53.02826690673828, 52.625633239746094, 52.56471252441406, 52.07176971435547, 51.43344497680664, 50.956939697265625, 50.956939697265625, 50.956939697265625, 50.4359130859375, 49.868492126464844, 49.868492126464844, 49.82999038696289, 49.82999038696289, 47.74366760253906, 47.56947326660156, 46.010040283203125, 45.5432014465332, 45.5432014465332, 45.5432014465332, 45.484596252441406, 45.284358978271484, 44.57695388793945, 44.29169464111328, 43.901493072509766, 43.672149658203125, 43.64502716064453, 42.558067321777344, 42.558067321777344, 42.52204895019531, 42.32735061645508, 42.16949462890625, 42.080810546875, 42.080810546875, 42.073204040527344, 41.159305572509766, 41.159305572509766, 41.159305572509766, 41.159305572509766, 40.91392135620117, 40.91392135620117, 40.46886444091797, 40.339576721191406, 40.339576721191406, 40.08946228027344, 39.66796112060547, 39.48914337158203, 38.63078308105469, 38.41857147216797, 38.168941497802734, 37.75551986694336, 37.75551986694336, 37.75551986694336, 37.75551986694336, 37.75551986694336, 37.75551986694336, 37.49067306518555, 37.2490234375, 37.15525817871094, 36.60542297363281, 36.567039489746094, 35.955039978027344, 35.955039978027344, 35.85586166381836, 35.812808990478516, 35.51539611816406, 34.90426254272461, 33.84979248046875, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 33.17063522338867, 32.73356246948242, 32.43314743041992, 32.020538330078125, 31.334339141845703, 30.65985870361328, 30.65985870361328, 30.36458969116211, 30.36458969116211, 30.36458969116211, 30.36458969116211, 29.214492797851562, 29.214492797851562, 29.214492797851562, 28.70546531677246, 28.225704193115234, 27.836071014404297 ], "content": [ "Elastic4s uses TCP only as does the Elasticsearch Java API Elastic4s being a wrapper around the Java client .", "I was trying to use elastic4s to connect elasticsearch with scala .", "Now trying to rewrite to elastic4s dsl .", "In particular I am using elastic4s https : github.com sksamuel elastic4s and looking at the aggregationDefinition trait https : github.com sksamuel elastic4s blob master elastic4s-core src main scala com sksamuel elastic4s aggregations.scala L62 .", "We re using elastic4s for ElasticSearch 2.2.0 .", "I use as elastic4s library to communicate with ElasticSearch .", "github.com sksamuel elastic4s elastic-reactive-streams https : github.com sksamuel elastic4s elastic-reactive-streams", "what about github.com sksamuel elastic4s blob master elastic4s-core src https : github.com sksamuel elastic4s blob master elastic4s-core src main scala com sksamuel elastic4s aggregations.scala", "The ImmutableSettings is a Java Client class not something that is specific to elastic4s .", "I use elastic4s https : github.com sksamuel elastic4s 1.3.4 elasticsearch https : www.elastic.co 1.4.3 as server .", "I m using elastic4s in my scala project to communicate with ElasticSearch .", "I am using latest elastic4s and elasticsearch 1.5.2 .", "I m using elastic4s to make index in ElasticSearch .", "Using Elasticsearch 1.3 so elastic4s 1.3.3", "github.com sksamuel elastic4s blob https : github.com sksamuel elastic4s blob c208850f1d650eb9de8ef64d837526f735d6f1a9 src main scala com sksamuel elastic4s mappings MappingDefinition.scala L77", "Wondering how to achieve this in elastic4s .", "I am using Elastic4s .", "The latest release of elastic4s even include a testkit https : github.com sksamuel elastic4s blob master elastic4s-testkit src main scala com sksamuel elastic4s testkit ElasticSugar.scala that makes it really easy to get the embedded node .", "Elastic4s seem has no api in UpdateDefinition https : github.com sksamuel elastic4s blob master elastic4s-core src main scala com sksamuel elastic4s UpdateDsl.scala for now 23.07.2015 to set fields .", "In the SearchDslTest.scala https : github.com sksamuel elastic4s blob 02494f01d1d9782f0b34be2c5fd4650061f1d53f elastic4s-core-tests src test scala com sksamuel elastic4s SearchDslTest.scala L138 file you ll find how to set all possible properties of a match query .", "The elastic4s is a small wrapper around the official ES Java driver and I m quite confident there is no magic happening there in this scenario .", "Go through the tests https : github.com sksamuel elastic4s blob 1d6b8decda7b82703dfd0c90fd5be592d1bbeebd elastic4s-core src test scala com sksamuel elastic4s CreateIndexDslTest.scala that the author has written for the API .", "Written using elastic4s 1.7.4", "It s a limitation of elastic4s currently .", "Here s my elastic4s dependency :", "I want to implement the following query in Elastic4s .", "You can t do what you want in the elastic4s Scala API at the moment .", "Based on this thread http : stackoverflow.com questions 23056292 dynamic-elasticsearch-mapping-using-elastic4s 24089414 24089414 though it sounds to me like elastic4s doesn t support indexing a JSON string without creating a template for it .", "Is there a way to build a query in elastic4s https : github.com sksamuel elastic4s from a JSON string", "You can t do it yet in elastic4s : .. . .. . So I ve just added it : https : github.com sksamuel elastic4s commit 3f8a4e47ae603b7a3263bc3d31c27f2b6706cd8e .. . .. . This will be in the next 1.5.x release and 1.6.0 .", "I m using com.sksamuel.elastic4s elastic4s 1.5.9", "Yes you can define your own analyzer https : github.com sksamuel elastic4s blob ca409b775fd0acbd65c143c60cb1ef4ed5ee079b elastic4s-core src main scala com sksamuel elastic4s analyzers AnalyzerDsl.scala and then use it like any pre-defined ones .", "Updated .. . .. . Elastic4s after this https : github.com sksamuel elastic4s commit 064f12fd6e62d0c377899f9fa781976673520e04 commit support this via UpdateDsl.includeSource or UpdateDsl.setFields methods .", "Hello Steve can you check this link : github.com sksamuel elastic4s https : github.com sksamuel elastic4s See if it helps you .", "Where are you running the elastic4s code", "I want to use the elastic4s api to delete and create templates .", "I need to convert the above index settings and mappings to the type accepted by elastic4s .", "tried to read elastic4s docs and test cases but still can t make it work", "After upgraded to elastic4s 1.6.0 I finally saw this function .", "I want to delete only one particular field and value in elasticsearch using elastic4s library .", "I m currently trying to create a percolator query with Elastic4s .", "I m trying to register a percolator query with the elastic4s library .", "I would like to build a dynamic query in with elastic4s .", "So I think this could be a bug of elastic4s .", "If the query-string format is not suitable then you need to create the query using the elastic4s query dsl eg .. . .. . or .. . .. . etc .", "As I see in https : github.com sksamuel elastic4s issues 452 this doesn t seem to be supported by the DSL .", "In Elastic4s 1.6.2 you can use the show typeclass https : github.com sksamuel elastic4s json-output on a number of requests to get the JSON equivilent .", "You can t do a percolate currently on id in elastic4s and I m not sure if you can even do it in elasticsearch itself .", "I am using elastic4s to connect to an Elasticsearch cluster and depending precise timing of establishing the connection it either works or it doesn t .", "Yes but sometimes you need to use java collections to interface with things that are based on Java as elastic4s is .", "I did not find build-in feature to track every request via elastic4s client but there is a builder variable in elastic4s which you can use to print request before execute it :", "I am using elastic4s 2.0.1 to query my cluster .", "I am using akka-streams and elastic4s .", "The data is grouped processed in-memory in order to create meaningful json representation and bulk update is created from the results and send to elastic search with elastic4s scala client .", "The following is setting up a local elasticsearch instance using the elastic4s library .. . .. . Here I am creating a new index and then inserting the mockES item above .", "My attempt in elastic4s follows : .. . .. . morelike doesn t work in this context .", "However Elastic4s now takes an implicit parameter in its client.execute method .", "I m using elastic4s in order to index and search data in ES .", "A number of queries is stored as JSON on disk and used as rawQuery via the elastic4s driver .", "Val the score is different 1 for elastic4s and 3.075806 for the curl REST query .", "is there a way how to pass settings to elastic4s from property file", "I m using elastic4s as a wrapper around ElasticSearch Java API .", "There are a number of helpers you can use in elastic4s that will allow you to create embedded instances - take a look at any of the units tests .", "I am running ElasticSearch on Docker which is available locally as .. . .. . I am using Elastic4s https : github.com sksamuel elastic4s for connecting to ElasticSearch I tried following approach but all of them gave me error as .. . .. . and .. . .. . The error is .. . .. . My complete code is", "Basically slick creates a publisher which elastic4s can subscribe to .", "Here at the end of table https : github.com sksamuel elastic4s syntax example about using scrolls http : www.elastic.co guide en elasticsearch reference current search-request-scroll.html in elastic4s https : github.com sksamuel elastic4s but I can not see any API to set scan http : www.elastic.co guide en elasticsearch reference current search-request-scroll.html scroll-scan parameter .", "Based on what @monkjack suggested and what I read from elastic4s s documentation I finally came up with following answers to what index settings and mappings would look like when used with elastic4s .", "This is how the elastic4s documentation says to do it : https : github.com sksamuel elastic4s blob master guide index.md .. . .. . where StringSource extends DocumentSource If you able to marshall your input into JSON this is the best way to do it .", "The approach now taken in elastic4s to encapsulate the logic for executing each request type is one using typeclasses http : danielwestheide.com blog 2013 02 06 the-neophytes-guide-to-scala-part-12-type-classes.html .", "I m trying : .. . .. . which results in : .. . .. . Reading the docs it appears that elastic4s can only connect via TCP 1 https : github.com sksamuel elastic4s client and Amazon Elasticsearch Service does not support TCP 2 http : docs.aws.amazon.com elasticsearch-service latest developerguide aes-limits.html : The service supports HTTP on port 80 but does not support TCP transport . .. . .. . Could someone confirm that elastic4s and Amazon ES really don t work together", "To do this in Elastic4s you actually have to use register instead of percolate like so : .. . .. . This will register a percolator query at the id .", "I ve been using elastic4s for my data-retrieval and have begun looking into testing for my current code .", "Here is my hypothesis on what happens : .. . .. . The race-condition is caused by the way ES java driver handles connections and has nothing to do with Play or elastic4s .", "Before I was doing this to submit the percolator query : .. . .. . notice the queryId just need something similar to that but in elastic4s .", "So after much more researching I figured out how this works with elastic4s .", "Elastic4s version 1.5.7 allows you to set the timestamp like this : .. . .. . Path format and store are optional .", "I am using elastic4s 1.5.10 and trying to build up a query that I prepared on elasticsarch REST endpoint .", "Either the query as it is in raw json doesn t make sense or elastic4s doesn t support this or .. . .. . .. . Could someone help", "In previous versions of Elastic4s you could do something like .. . .. . after several executions in your test i.e .", "I m using elastic4s to query elastic search and now I need to cache this query to be used later for pagination purposes .", "How do I add the following german phonebook analyzer to elastic search using elastic4s", "The score in the result differs between the query being submitted via command-line or the elastic4s driver .", "The code for elastic4s : .. . .. . Note that I removed anything but rawQuery preparedQuery and it didn t change the score 1 .", "Do you get the exact same results through elastic4s driver and through REST", "I have a document that I want to index on elasticSearch this document contains some dynamic keys that I can not know in advance like spanish or french in the following example .. . .. . I m using the elastic4s DSL in order to make my mapping Via the createIndex DSL https : github.com sksamuel elastic4s blob master guide createindex.md but I can not find how to create with this library a dynamic mapping based on the match option like suggested here http : www.elasticsearch.org guide en elasticsearch reference current mapping-root-object-type.html in order to specify a different analyzer for each language stored under the path contents.title .", "I am using elastic4s and elasticsearch 2.0.x .. . .. . My working code is as follows : .. . .. . On hitting the last line the code will break with the message Field artist suggest is not a completion suggest field .", "If you try it and it works then I can add special support to elastic4s to do the conversion for you .", "So I need something like this : .. . .. . .. . .. . for sorting : .. . match mapping type : .. . mapping : .. . type : dynamic type .. . fields : .. . raw : .. . type : dynamic type .. . index : not analyzed .. . .. . .. . .. . .. . .. . .. . .. . How can I accomplish this in elastic4s", "My update method : .. . .. . And find : .. . .. . A working test looks like this : .. . .. . And a failing test trying to use elastic4s syntactic-sugar blockUntilDocumentHasVersion : .. . .. . Am I missing here something", "I am trying to do it with elastic4s like this : .. . .. . In order to use the above code snippet I need to enable groovy scripts and I am not sure how to do it with multiple items .", "You set the scan parameter when you do the initial search so : .. . .. . Then later .. . .. . Taken from 1.5.x releases of elastic4s", "I have data stored with a nested location object and can t figure out how to get elastic4s to return the location as part of the result-of a search .", "You should try using source filtering https : github.com sksamuel elastic4s blob master guide search.md source-filtering instead as shown below .", "The elastic4s driver always returns score of 1 for all results while the command-line execution yields two different scores for different data types .", "I can t remember but some of the less common ones don t output json or at least they didn t when I first started elastic4s 2 years ago .", "I am using elastic4s version 1.6.2 and need to write a query which searches for a given geo location sorts results by distance and also returns the distance .", "I m trying to update a document by adding updating an array of objects using client.execute update .. . but I m having issues trying to pass in key-value pairs in Elastic4s .", "This is because the execute method wraps the Java client and the Java client provides seperate methods per request type .", "But if I do this : .. . .. . Then it is not returned by search : .. . .. . The resulting mapping looks like this : .. . .. . .. . .. . But I ve got a feeling that it should be like this : .. . .. . Which cannot be done using elastic4s Dsl because it doesn t have a special handling for fields named timestamp so that the field goes to properties instead of fields in that mapping.. .", "I can verify that it works by ssh-ing into ec2 and doing : .. . .. . However I am having trouble connecting elastic4s to that ES instance ." ] }
{ "confidence": [ 77.4914779663086, 70.47428131103516, 69.860595703125, 69.80392456054688, 68.67433166503906, 68.17507934570312, 65.87175750732422, 64.58329010009766, 64.13066101074219, 63.989280700683594, 62.9282112121582, 62.826751708984375, 62.61452102661133, 61.99360656738281, 61.87928009033203, 61.406368255615234, 61.3171272277832, 60.64113998413086, 60.38847732543945, 59.725284576416016 ], "content": [ "Question : I m using elastic4s in my scala project to communicate with ElasticSearch . For development I started a local node and everything is working fine . For production I would like to use Amazon Elasticsearch Service . I ve configured that service and allowed access to it via the ip of my ec2 instance . I can verify that it works by ssh-ing into ec2 and doing : .. . .. . However I am having trouble connecting elastic4s to that ES instance . I m trying : .. . .. . which results in : .. . .. . Reading the docs it appears that elastic4s can only connect via TCP 1 https : github.com sksamuel elastic4s client and Amazon Elasticsearch Service does not support TCP 2 http : docs.aws.amazon.com elasticsearch-service latest developerguide aes-limits.html : The service supports HTTP on port 80 but does not support TCP transport . .. . .. . Could someone confirm that elastic4s and Amazon ES really don t work together Because that would mean I have to re-write all of my ES code . .. . Answer : Amazon s Elasticsearch service does not support TCP just the HTTP protocol . Elastic4s uses TCP only as does the Elasticsearch Java API Elastic4s being a wrapper around the Java client . If you want to use HTTP you ll need to write the queries by hand and use a regular HTTP client or use an Elasticsearch client that supports the HTTP protocol . https : github.com searchbox-io Jest", "Question : null .. . Answer : a newbie here I was trying to use elastic4s to connect elasticsearch with scala . However I do not find anything to calculate aggregations . Is it not yet supported What other option do I have Comment : what about github.com sksamuel elastic4s blob master elastic4s-core src https : github.com sksamuel elastic4s blob master elastic4s-core src main scala com sksamuel elastic4s aggregations.scala Comment : You can also read elastic4s.readthedocs.org en stable guide search aggregations http : elastic4s.readthedocs.org en stable guide search aggregations Comment : Hey thanks . Will check and get back", "Question : I have a document that I want to index on elasticSearch this document contains some dynamic keys that I can not know in advance like spanish or french in the following example .. . .. . I m using the elastic4s DSL in order to make my mapping Via the createIndex DSL https : github.com sksamuel elastic4s blob master guide createindex.md but I can not find how to create with this library a dynamic mapping based on the match option like suggested here http : www.elasticsearch.org guide en elasticsearch reference current mapping-root-object-type.html in order to specify a different analyzer for each language stored under the path contents.title . Any track please : - .. . Answer : You can t do what you want in the elastic4s Scala API at the moment . But you can create a dynamic template in the Java API and use the Scala API for the rest of your calls . The dynamic template can be set to use a regex and apply a mapping . But since you will really know your countries in advance there s only 200 why not just spend the time and make a mapping Comment : dynamicTemplates template name NotAnalyzed match matchMappingType string mapping type typed StringType index NotAnalyzed leads to StackOveflow at MappingDefinition.scala : 141 any idea what is wrong Comment : this is correct templates Seq template name NotAnalyzed match matchMappingType string mapping type typed StringType index NotAnalyzed : anything else you pass in there : Iterable or single instance fails on StackOverFlow", "Question : I have a document that I want to index on elasticSearch this document contains some dynamic keys that I can not know in advance like spanish or french in the following example .. . .. . I m using the elastic4s DSL in order to make my mapping Via the createIndex DSL https : github.com sksamuel elastic4s blob master guide createindex.md but I can not find how to create with this library a dynamic mapping based on the match option like suggested here http : www.elasticsearch.org guide en elasticsearch reference current mapping-root-object-type.html in order to specify a different analyzer for each language stored under the path contents.title . Any track please : - .. . Answer : This is how the elastic4s documentation says to do it : https : github.com sksamuel elastic4s blob master guide index.md .. . .. . where StringSource extends DocumentSource If you able to marshall your input into JSON this is the best way to do it .", "Question : I am trying to update several document fields and return full document after update . I use elastic4s https : github.com sksamuel elastic4s 1.3.4 elasticsearch https : www.elastic.co 1.4.3 as server . Here is a code : .. . .. . Why I get NullPointerException in line res.getGetResult.sourceAsString It seems that update response do not contains a document after update operation . Is it possible to return document source from update response .. . Answer : Elastic4s seem has no api in UpdateDefinition https : github.com sksamuel elastic4s blob master elastic4s-core src main scala com sksamuel elastic4s UpdateDsl.scala for now 23.07.2015 to set fields . However it s builder support this operation the code below is like dirty hack but it works as exepcted just set fields directly into builder : .. . .. . prints .. . .. . Note .. . .. . Elasticsearch does support https : www.elastic.co guide en elasticsearch reference current docs-update.html parameters 3 returning fields after update request . Updated .. . .. . Elastic4s after this https : github.com sksamuel elastic4s commit 064f12fd6e62d0c377899f9fa781976673520e04 commit support this via UpdateDsl.includeSource or UpdateDsl.setFields methods .", "Question : null .. . Answer : I have a very large relational-database dataset which I would like to index in elastic search . The query which retrieves the data consists of multiple joins and all other SQL goodies . The data is grouped processed in-memory in order to create meaningful json representation and bulk update is created from the results and send to elastic search with elastic4s scala client . I would like to introduce streaming to this process as both slick and elastic support it . The problem I have is that the in-memory grouping and converting to json makes only sense if all the results for given relation are loaded into memory due to several joins left joins I need to group-by id and map the results in memory . How would it be handled with streaming Comment : What specific stream implementation are you looking at scalaz-stream https : github.com functional-streams-for-scala fs2 spark-streaming http : spark.apache.org streaming akka-streams http : doc.akka.io docs akka-stream-and-http-experimental 1.0-M2 scala stream-index.html maybe play-iteratees https : www.playframework.com documentation 2.0.4 Iteratees Comment : github.com sksamuel elastic4s elastic-reactive-streams https : github.com sksamuel elastic4s elastic-reactive-streams Comment : Basically slick creates a publisher which elastic4s can subscribe to .", "Question : null .. . Answer : I m trying to update a document by adding updating an array of objects using client.execute update .. . but I m having issues trying to pass in key-value pairs in Elastic4s . I can t find any documentation on ctx . source except for this https : www.elastic.co guide en elasticsearch guide current partial-updates.html which says nothing . The preceding code puts the following in the db : .. . .. . developers : value .. . .. . I tried : .. . .. . But I get the following error : .. . .. . background log : error : Caused by : java.io.IOException : Can t write type class scala.collection.immutable.Map Map1 .. . .. . How do I add a key-value pair I found a java solution http : grokbase.com t gg elasticsearch 133sq31fsm java-api-update-append-to-object-array but it did not help me . If there is any documentation someone can point me to I would greatly appreciate the help . Comment : Did you try converting the map to a java map before using it Comment : I m trying to stick strictly to Scala . Comment : Yes but sometimes you need to use java collections to interface with things that are based on Java as elastic4s is . If you try it and it works then I can add special support to elastic4s to do the conversion for you . Comment : Thanks I just realized who is writing these comments . I will update you once I try it out .", "Question : I am running ElasticSearch on Docker which is available locally as .. . .. . I am using Elastic4s https : github.com sksamuel elastic4s for connecting to ElasticSearch I tried following approach but all of them gave me error as .. . .. . and .. . .. . The error is .. . .. . My complete code is Comment : Where are you running the elastic4s code .. . Answer : Make sure client version is same as ElasticSearch server .", "Question : Say that I use such code : .. . .. . How to see what json request was been sent to Elasticsearch .. . Answer : I did not find build-in feature to track every request via elastic4s client but there is a builder variable in elastic4s which you can use to print request before execute it : Comment : This doesn t work for every request type . Version 1.6 will have a feature to log all queries or most of them . The reason is that the java client doesn t turn things into json but the other way around . The REST interface turns json into java calls internally . Comment : Could you please provide example of non-working request Comment : I can t remember but some of the less common ones don t output json or at least they didn t when I first started elastic4s 2 years ago . Maybe they all do now . I m going to add some logging to expose these anyway . Comment : UpdateDsl is an example of one that you can t simply call toString on .", "Question : is there a way how to pass settings to elastic4s from property file The following way works but it is not flexible in munltienvironment : .. . .. . I tried java configuration file elasticsearch.yaml as mantioned in java doc but that doesn t work . Any suggestion here Comment : What version are you using Comment : Using Elasticsearch 1.3 so elastic4s 1.3.3 .. . Answer : You can do this using the same method you would for the Java client . The ImmutableSettings is a Java Client class not something that is specific to elastic4s . To load your properties file from the classpath eg if you have something in src main resources com package settings.props .. . .. . Or if you want to load from an input stream : .. . .. . There are other methods too just check out the ImmutableSettings.settingsBuilder object .", "Question : null .. . Answer : We re using elastic4s for ElasticSearch 2.2.0 . A number of queries is stored as JSON on disk and used as rawQuery via the elastic4s driver . The score in the result differs between the query being submitted via command-line or the elastic4s driver . The elastic4s driver always returns score of 1 for all results while the command-line execution yields two different scores for different data types . The code for elastic4s : .. . .. . Note that I removed anything but rawQuery preparedQuery and it didn t change the score 1 . The full query via the command-line is quite long : .. . .. . Note that this is almost preparedQuery but for the replacement of search with the search query . The elastic search REST client returns a score of 3.075806 for the matches . Comment : When you say result score is this the per-item score What does The elastic search REST client returns a score of 3.075806 for the matches . mean Comment : Do you get the exact same results through elastic4s driver and through REST Comment : @James the elastic search REST client means querying elastic search via curl directly . Val the score is different 1 for elastic4s and 3.075806 for the curl REST query .", "Question : I am running ElasticSearch on Docker which is available locally as .. . .. . I am using Elastic4s https : github.com sksamuel elastic4s for connecting to ElasticSearch I tried following approach but all of them gave me error as .. . .. . and .. . .. . The error is .. . .. . My complete code is Comment : Where are you running the elastic4s code .. . Answer : 9200 is the port for connecting via HTTP which is why it works from your browser . If you check you the top of your stack-trace you can see in your case that you re connecting via the Transport client i.e . TCP so you need to use the port 9300 instead . Try this :", "Question : In previous versions of Elastic4s you could do something like .. . .. . after several executions in your test i.e . one DeleteIndexDefinition followed of two IndexDefinition . And each verify would be matched against its type . However Elastic4s now takes an implicit parameter in its client.execute method . The parameter is of type Executable T R which means you now need something like .. . .. . After doing that I was getting an error . Mockito is considering both three client.execute in the first verify . Yes even if the first parameter is of a different type . That s because the implicit the second parameter has after type-erasure the same type Executable . So the asertions were failing . How to test in this setup .. . Answer : The approach now taken in elastic4s to encapsulate the logic for executing each request type is one using typeclasses http : danielwestheide.com blog 2013 02 06 the-neophytes-guide-to-scala-part-12-type-classes.html . This is why the implicit now exists . It help modularize each request type and avoids the God class anti-pattern that was starting to creep into the ElasticClient class . Two things I can think of that might help you : .. . .. . 1 . What you already posted up using Mockito and passing in the implicit as another matcher . This is how you can mock a method using implicits in general . 2 . Not use mockito but spool up a local embedded node and try it against real data . This is my preferred approach when I write elasticsearch code . The advantages are that you re testing real queries against the real server so not only checking that they are invoked but that they actually work . Some people might consider this an integration test but whatever I don t agree it all runs inside a single self-contained test with no outside deps . The latest release of elastic4s even include a testkit https : github.com sksamuel elastic4s blob master elastic4s-testkit src main scala com sksamuel elastic4s testkit ElasticSugar.scala that makes it really easy to get the embedded node . You can look at almost any of the unit tests to give you an idea how to use it . Comment : I see your point . I still try to separate both kind of tests but your answer is more generic . However I ll keep it open for some time in case there are other approaches .", "Question : I am using elastic4s 1.5.10 and trying to build up a query that I prepared on elasticsarch REST endpoint . Now trying to rewrite to elastic4s dsl . The goal of this query is get similar items to 472825948 which has the same operation add-in the same city London . My attempt in elastic4s follows : .. . .. . morelike doesn t work in this context . Either the query as it is in raw json doesn t make sense or elastic4s doesn t support this or .. . .. . .. . Could someone help Thx .. . Answer : Just for completeness adding response I got here as well . morelike e is for a request type morelikeThisQuery is the correct form of the query . So the resulted query should look like as follows", "Question : I need to convert the above index settings and mappings to the type accepted by elastic4s . I am using latest elastic4s and elasticsearch 1.5.2 . I went through some examples given in the documentation but I can t figure out how to do it like I tried to create it this way : .. . .. . I cannot figure out how to use store index term vectors etc . as given in the PUT request . UPDATE : Based on the answer I was able to make this kind of a thing : .. . .. . what I cannot figure out now is how to add snowball stemmer and stop-words file path to the aplyzer analyzer How should I go about it .. . Answer : Based on what @monkjack suggested and what I read from elastic4s s documentation I finally came up with following answers to what index settings and mappings would look like when used with elastic4s . Go through the tests https : github.com sksamuel elastic4s blob 1d6b8decda7b82703dfd0c90fd5be592d1bbeebd elastic4s-core src test scala com sksamuel elastic4s CreateIndexDslTest.scala that the author has written for the API . Use StopTokenFilter ap stop stopwords Set a an the in-place of NamedStopTokenFilter if you wish to give your own list of stopwords . I get the following setting mapping when I run GET new index in Sense . If you want StopWords and Stemmers as separate Analyzers as @monkjack suggested just add SnowballAnalyzerDefinition and StopAnalyzerDefinition like :", "Question : I m able to enable timestamp on a mapping like this : .. . .. . But to be able to retrieve it when searching using fields : timestamp it also needs to have store attribute set to true . But if I do this : .. . .. . Then it is not returned by search : .. . .. . The resulting mapping looks like this : .. . .. . .. . .. . But I ve got a feeling that it should be like this : .. . .. . Which cannot be done using elastic4s Dsl because it doesn t have a special handling for fields named timestamp so that the field goes to properties instead of fields in that mapping.. . Comment : It s a limitation of elastic4s currently . I ll update it . .. . Answer : Elastic4s version 1.5.7 allows you to set the timestamp like this : .. . .. . Path format and store are optional . Comment : thank you I think you forgot to update the timestamp method only TimestampDefinition is updated with the store attribute . github.com sksamuel elastic4s blob https : github.com sksamuel elastic4s blob c208850f1d650eb9de8ef64d837526f735d6f1a9 src main scala com sksamuel elastic4s mappings MappingDefinition.scala L77 Comment : Or should we rather use the mapping name convention It can be done 2 ways now . Comment : the existing timestamp method is overloaded so you can actually do timestamp name store Some true which isn t as nice as the DSL . Comment : I ve added a method in 1.5.8 not released yet that will allow you to do timestamp name .store true .path path etc Comment : I see I finally got it thank you", "Question : I wrote a method that returns objects that all extend a common trait . I want to specify the return-type to be objects with that trait . The complication is that the trait has a recursive type signature . In particular I am using elastic4s https : github.com sksamuel elastic4s and looking at the aggregationDefinition trait https : github.com sksamuel elastic4s blob master elastic4s-core src main scala com sksamuel elastic4s aggregations.scala L62 . The trait definition is : .. . .. . And a simplified version of my method is : .. . .. . The complication lies with AggregationDefinition that it requires type parameters : .. . .. . I am confused by the recursion and the cross reference in the trait definition and it is unclear to me what the type parameters should be . What should I use for the type parameters .. . Answer : The AggregationDefinition need type Bound see the type signature you can use AbstractAggregationDefinition like : Comment : What you are suggesting works just fine . However I need to call aggregations on the objects returned by asAggregation . I want to return AggregationDefinition because that is where aggregations is defined .", "Question : I am trying to pass a string of JSON data into an indexing statement like this where inputDoc is my string of JSON : .. . .. . I m getting a compiler error that doc cannot be resolved I m assuming because it is looking for either a DocumentSource or DocumentMap rather than the String I am passing . Based on this documentation https : github.com sksamuel elastic4s blob master guide source.md it looks to me like I should be able to pass a String that Jackson will marshall into JSON . Based on this thread http : stackoverflow.com questions 23056292 dynamic-elasticsearch-mapping-using-elastic4s 24089414 24089414 though it sounds to me like elastic4s doesn t support indexing a JSON string without creating a template for it . My question is two-fold : 1 Is it possible to index a JSON string without creating a case class to map the data 2 If that is possible is it advisable Or is that discouraged because it s preferable to know the structure of the data I m indexing rather than just adding in a JSON string I haven t necessarily checked I m working with ElasticSearch version 2.1.1 . Here s my elastic4s dependency : .. . Answer : There s no reason why you have to have a strongly typed data structure before you index your data . In some cases that s preferable if you re working with the data in Scala for example but in other cases you might just be acting as a gateway for example a process that reads from HDFS and indexes the files . To do what you want doc expects a DocumentSource so just create a JsonDocumentSource which wraps a Json string by doing JsonDocumentSource yourjsonhere . So your full example would look something like :", "Question : Is there a way to build a query in elastic4s https : github.com sksamuel elastic4s from a JSON string For example something like : .. . Answer : It doesn t support a truly raw query in the sense of passing a string to client.execute . This is because the execute method wraps the Java client and the Java client provides seperate methods per request type . But you can pass in a raw query-string so something like :", "Question : I m currently trying to create a percolator query with Elastic4s . I ve got about this far but I can t seem to find any examples so I m not sure how this quite works . So I ve got : .. . .. . Every time it runs it doesn t match anything . I figured out I need to be able to percolate on an Id but I can t seem to find any examples on how to do it not even in the docs . I know with Elastic4s creating queries other than a percolator query lets you specify an id field like : .. . .. . I ve tried this way for percolate but it doesn t like the id field does anyone know how this can be done I was using Dispatch Http to do this previously but I m trying to move away from it . Before I was doing this to submit the percolator query : .. . .. . notice the queryId just need something similar to that but in elastic4s . .. . Answer : So after much more researching I figured out how this works with elastic4s . To do this in Elastic4s you actually have to use register instead of percolate like so : .. . .. . This will register a percolator query at the id . Comment : Register is the act of registering your queries . Percolate is the act of adding a document and seeing which registered queries it matches . I think the terminology is consistent with Elasticsearch" ] }
[ "yes-answer-long", "yes-answer-short" ]
elasticsearch
UNK_RELATION
tgridpanel@grid@144
tgridpanel -- tgridpanel is a user-interface element that implements a grid panel control in which each component is placed within a cell on a @placeholder .
{ "confidence": [ 54.960880279541016, 49.377418518066406, 40.282012939453125, 39.64216232299805, 36.287261962890625, 36.287261962890625, 34.48505401611328, 33.14704132080078, 27.429611206054688, 26.324947357177734, 22.32651710510254, 22.115936279296875, 21.614309310913086, 21.553539276123047, 21.047016143798828, 21.047016143798828, 20.751144409179688, 20.57378387451172, 19.833717346191406, 19.597421646118164, 19.597421646118164, 19.079435348510742, 18.953506469726562, 18.428524017333984, 18.090232849121094, 17.917739868164062, 17.816829681396484, 17.61549186706543, 17.394533157348633, 16.88014030456543, 16.81797981262207, 16.43103790283203, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 15.261004447937012, 13.979694366455078, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 13.244117736816406, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959, 11.90610408782959 ], "content": [ "I have a TGridPanel on a form and wish to add a control to a specific cell that is clicked on .", "I ve created the following TGridPanel in the IDE : .. . .. .", "enter image description here http : i.stack.imgur.com D5fxz.png .. . .. . This TGridPanel is inside a TPageControl : TTabSheet which is on a TFrame .", "I want to use Delphi s 2009 TGridPanel but I don t understand how to use it correctly .", "How I can find out the position row and column index of controls inside TGridPanel", "Unfortunately because of the magic of TGridPanel it is a little more complicated than just getting the Top and Left properties.. .", "I ve been up and down the TGridPanel and TControlCollection class code and can t find anything that will give me a column or row value from mouse coordinates .", "Would be good with a regular TPanel but does not address the specific question of TGridPanel where embedded controls have a Row and Column properties to be used instead of Top and Left .", "I have grid panel 16 x 4 like this one : .. . .. .", "To workaround this you d need to be notified by the cell component about its visibility change .", "So it isn t all or nothing valid cell or invalid cell .", "You can do this in the form designer if your just dropping buttons into the grid panel or in the routine your using to create and insert your buttons .", "The component calculates Value s again to have the total distributed proportionally i.e .", "For example I want to have a GridPanel with 4 columns which should have each 25 percent of the GripPanels width .", "This function will return the X Y grid location in a TPoint .", "If the grid is not regular then Ravaut123 s solution is the better choice .", "I think I had te redraw refresh that parent frame or form on which the GridPanel was placed .", "I can get the point easily enough : .. . .. . I probably don t need the if ControlAtPos P nil then line but I want to make sure I m not inserting a control in a cell that already has one in it .", "When you set the Value of a column with SizeStyle ssPercent the component distributes the new sum of all ssPercent styled columns for the available total percentage .", "When I set component visible property to false the layout is not updated : .. . .. .", "Why the component don t set row height to zero when there is nothing to display", "You are responsible for the memory it points to it will not be managed by the component .", "You can either use the listeners config at config time or the .on method with a grid reference .", "I give the column items SizeStyle ssPercent and now I try to give each ColummItem a Value of 25 ober the object inspector .", "This should do it for any Control adapt it to your needs :", "@Vitaliy - That is not easier than selecting all 4 and then typing 0 which is covered in Uwe s answer .", "enter image description here http : i.stack.imgur.com CasQS.png .. . .. . Why the component don t set row height to zero when there is nothing to display", "I think the grid adjusts its child controls after the second resize event .", "This function assumes the grid is regular every column has the same row height as the first column likewise every row has the same column width as the first row .", "When the GridPanel align mode is alClient and I maximize its parent window the GridPanel adjusts to the new size of that window however the controls laying on the grid do not .", "If the user clicked on a valid column but not a valid row then the valid column information is still returned and the same goes for rows .", "Changing the width invalidating the control doesn t work for me something changed with recent versions of RAD Studio .", "So I put a GripPanel on the form and add 4 ColumnItems .", "But for some reasons the object inspector doesn t accept the value 25 .", "It s automatically changed to something like 23 8095238095238 .", "Could somebody explain me in short how to use this components", "Thanks", "For instance if you ve got 4 25 columns and you set one to be 50 now you ve got a total of 125 .", "50 - 40 100 50 125 .", "To set the value of more than one columns at once at run time you d surround your code with GridPanel.ColumnCollection.BeginUpdate and GridPanel.ColumnCollection.EndUpdate .", "And at design-time edit the .dfm directly .", "Press Alt+F12 when you re viewing your form in the design editor find your GridPanel in the text-editor edit the value of the columns there and then press Alt+F12 again to return to the design view .", "Thanks that works", "On note : After dropping a GridPanel on the form and deleting the rows and colums at designtime these rows and columns still exist on runtime and you have to delete them manually .", "Little bit strange .", "Or you can select all 4 columns and write 25 in object inspector", "My answer rather is helpful if you re not going to equally distribute the widths .", "Of course you can also do that but indeed other alternatives are better at that .", "If you want to set all columns to the same value select all columns in the structure view and then assuming SizeStyle is already set to ssPercent set the Value to 0 .", "This will trigger some automatism that makes all of the columns sized equal .", "You can use Sender cast as a tButton and then ask it for its top and left for example : .. . .. . Or if your just wanting to know what button was pressed you can also use the TAG property to insert a number into each button and then retrieve the tag value in your onclick event .", "Can you tell me how to attach headerclick or headerdblclick event to Ext.grid.GridPanel", "or", "So.. . what code do I use to get InsCol and InsRow", "Nor does their seem to be a relevant event to use other than OnDblClick .", "Any help would be greatly appreciated .", "EDIT : Changed variable Result to MyControl to avoid confusion .", "I wish there was a more efficient way but this does seem to be a reliable method .", "By the way Windows has an API called PtInRect that does what your PointInRect function does but has the parameters in the reverse order .", "Correction : The difference between your PointInRect and Windows PtInRect is that the Windows version excludes the right and bottom edges .", "I know that something exist like PointInRect .", "Because i ever seen it but i could not found it .", "Thanks Jerry to remind me of the function", "Here is an optimization of Ravaut123 s approach should be MUCH faster for larger grids .", "enter image description here http : i.stack.imgur.com aYwtT.png .. . .. . Sometimes i want to hide some rows and to move bottom rows up .", "enter image description here http : i.stack.imgur.com LV0Up.png .. . .. . Nevertheless the row size type is set to auto : .. . .. .", ".. . .. . Because the row is considered as empty only if there are no components in all columns in that row not if they re visible or not .", "So the same returns the IsRowEmpty http : docwiki.embarcadero.com Libraries XE3 en Vcl.ExtCtrls.TCustomGridPanel.IsRowEmpty method .", "When this notification is generated you can check the row just like the IsRowEmpty http : docwiki.embarcadero.com Libraries XE3 en Vcl.ExtCtrls.TCustomGridPanel.IsRowEmpty method does except you ll check if the controls are visible not if they re assigned .", "Based on the result-of such method you can then set the size of the Value http : docwiki.embarcadero.com Libraries XE3 en Vcl.ExtCtrls.TCellItem.Value to 0 to hide the row .", "With a help of interposed class the method for checking if all controls in a row or column are visible you might write something like this .", "Those methods return True when all existing controls in a certain row or column are visible False otherwise : .. . .. . And the usage shown for the first row :", "I ve got a hacky solution .. . keeping the Autosizing", "During Design Time in the IDE everything is fine .", "However when I drop the TFrame on empty main form and then hit the Compile button all ColumnSpan and RowSpan settings I made in the TFrame are reset when the compilation finishes .", "When I then run the application I get an EGridPanelException saying : .. . .. . Error reading ...Panel Setup Content.ColumnCollection : Cannot delete a column that contains controls .. . .. . and the application terminates after hitting OK .", "Additionally when I close the project and re-open it with the TFrame dropped on the main form I get the exact same error + Ignore the error and continue", "Note : Ignoring the error may cause components to be deleted or property values to be lost .", "When I use Notepad to remove the TFrame from the main Form DFM I can open the project again and also the TFrame file without error messages or problems .", "The problems occur as soon as I drop the TFrame on the main form .", "Is this a Delphi issue", "Or is it me doing something wrong", "I have a problem I am unable to solve even though I spend long time trying to do it .", "I usually use GridPanels to align controls on forms .", "It has however an annoying bug .", "They stay in the same position they were before window resize .", "It happens only at the first window s maximization .", "If the window is first resized manually everyting is OK .", "What to to do make GridPanel work properly if it comes to this bug", "It might be enough to send a message to it but what message", "I do not know .", "I tried to use Realign Refresh etc . but they did not help .", "Thanks for your help in advance .. . .. . Mariusz .", "Ah I ve had similar issues as well .", "It might be related to a resizing problem in the VCL .", "You might want to try the fix by Andreas Hausladen http : cc.embarcadero.com Item 25646 .", "It seems to work for me in most of the cases .", "I found one trick .", "in OnResize event of parent of gridpanel change gridpanel s width by 1 pixel .", "then gridPanel will notice size changed then rearrange sub-controls in gridpanel. . .. . .. . sample is below. ." ] }
{ "confidence": [ 67.15719604492188, 60.45512390136719, 56.45644760131836, 55.08953857421875, 46.97731018066406, 46.40623092651367, 43.05196762084961, 30.85993194580078, 30.533329010009766, 23.35555648803711, 20.83207893371582, 19.61051368713379, 17.79739761352539, 17.79739761352539, 17.79739761352539 ], "content": [ "Question : I have a TGridPanel on a form and wish to add a control to a specific cell that is clicked on . I can get the point easily enough : .. . .. . I probably don t need the if ControlAtPos P nil then line but I want to make sure I m not inserting a control in a cell that already has one in it . So.. . what code do I use to get InsCol and InsRow I ve been up and down the TGridPanel and TControlCollection class code and can t find anything that will give me a column or row value from mouse coordinates . Nor does their seem to be a relevant event to use other than OnDblClick . Any help would be greatly appreciated . EDIT : Changed variable Result to MyControl to avoid confusion . .. . Answer : Here is an optimization of Ravaut123 s approach should be MUCH faster for larger grids . This function will return the X Y grid location in a TPoint . If the user clicked on a valid column but not a valid row then the valid column information is still returned and the same goes for rows . So it isn t all or nothing valid cell or invalid cell . This function assumes the grid is regular every column has the same row height as the first column likewise every row has the same column width as the first row . If the grid is not regular then Ravaut123 s solution is the better choice .", "Question : How I can find out the position row and column index of controls inside TGridPanel I d like to use common OnClick event for number of buttons and need to know the X Y position of the button . I m using Delphi 2007 . .. . Answer : You can use Sender cast as a tButton and then ask it for its top and left for example : .. . .. . Or if your just wanting to know what button was pressed you can also use the TAG property to insert a number into each button and then retrieve the tag value in your onclick event . Just remember to first set the Tag property to something . You can do this in the form designer if your just dropping buttons into the grid panel or in the routine your using to create and insert your buttons . You can also use the tag property to store more than just an integer since a pointer currently uses the same memory size as the integer you can cast a pointer to an integer and insert that value into the tag property . Just be aware that any pointer you place in this field is still treated as an integer . You are responsible for the memory it points to it will not be managed by the component . Comment : Would be good with a regular TPanel but does not address the specific question of TGridPanel where embedded controls have a Row and Column properties to be used instead of Top and Left . as in Object Inspector", "Question : I have a TGridPanel on a form and wish to add a control to a specific cell that is clicked on . I can get the point easily enough : .. . .. . I probably don t need the if ControlAtPos P nil then line but I want to make sure I m not inserting a control in a cell that already has one in it . So.. . what code do I use to get InsCol and InsRow I ve been up and down the TGridPanel and TControlCollection class code and can t find anything that will give me a column or row value from mouse coordinates . Nor does their seem to be a relevant event to use other than OnDblClick . Any help would be greatly appreciated . EDIT : Changed variable Result to MyControl to avoid confusion . .. . Answer : Comment : I wish there was a more efficient way but this does seem to be a reliable method . By the way Windows has an API called PtInRect that does what your PointInRect function does but has the parameters in the reverse order . Comment : Correction : The difference between your PointInRect and Windows PtInRect is that the Windows version excludes the right and bottom edges . Comment : I know that something exist like PointInRect . Because i ever seen it but i could not found it . Thanks Jerry to remind me of the function", "Question : How I can find out the position row and column index of controls inside TGridPanel I d like to use common OnClick event for number of buttons and need to know the X Y position of the button . I m using Delphi 2007 . .. . Answer : Unfortunately because of the magic of TGridPanel it is a little more complicated than just getting the Top and Left properties.. . This should do it for any Control adapt it to your needs :", "Question : null .. . Answer : I ve created the following TGridPanel in the IDE : .. . .. . enter image description here http : i.stack.imgur.com D5fxz.png .. . .. . This TGridPanel is inside a TPageControl : TTabSheet which is on a TFrame . During Design Time in the IDE everything is fine . However when I drop the TFrame on empty main form and then hit the Compile button all ColumnSpan and RowSpan settings I made in the TFrame are reset when the compilation finishes . When I then run the application I get an EGridPanelException saying : .. . .. . Error reading ...Panel Setup Content.ColumnCollection : Cannot delete a column that contains controls .. . .. . and the application terminates after hitting OK . Additionally when I close the project and re-open it with the TFrame dropped on the main form I get the exact same error + Ignore the error and continue Note : Ignoring the error may cause components to be deleted or property values to be lost . When I use Notepad to remove the TFrame from the main Form DFM I can open the project again and also the TFrame file without error messages or problems . The problems occur as soon as I drop the TFrame on the main form . Is this a Delphi issue Or is it me doing something wrong", "Question : I want to use Delphi s 2009 TGridPanel but I don t understand how to use it correctly . For example I want to have a GridPanel with 4 columns which should have each 25 percent of the GripPanels width . So I put a GripPanel on the form and add 4 ColumnItems . I give the column items SizeStyle ssPercent and now I try to give each ColummItem a Value of 25 ober the object inspector . But for some reasons the object inspector doesn t accept the value 25 . It s automatically changed to something like 23 8095238095238 . Could somebody explain me in short how to use this components Thanks .. . Answer : If you want to set all columns to the same value select all columns in the structure view and then assuming SizeStyle is already set to ssPercent set the Value to 0 . This will trigger some automatism that makes all of the columns sized equal .", "Question : I want to use Delphi s 2009 TGridPanel but I don t understand how to use it correctly . For example I want to have a GridPanel with 4 columns which should have each 25 percent of the GripPanels width . So I put a GripPanel on the form and add 4 ColumnItems . I give the column items SizeStyle ssPercent and now I try to give each ColummItem a Value of 25 ober the object inspector . But for some reasons the object inspector doesn t accept the value 25 . It s automatically changed to something like 23 8095238095238 . Could somebody explain me in short how to use this components Thanks .. . Answer : When you set the Value of a column with SizeStyle ssPercent the component distributes the new sum of all ssPercent styled columns for the available total percentage . For instance if you ve got 4 25 columns and you set one to be 50 now you ve got a total of 125 . The component calculates Value s again to have the total distributed proportionally i.e . 50 - 40 100 50 125 . To set the value of more than one columns at once at run time you d surround your code with GridPanel.ColumnCollection.BeginUpdate and GridPanel.ColumnCollection.EndUpdate . And at design-time edit the .dfm directly . Press Alt+F12 when you re viewing your form in the design editor find your GridPanel in the text-editor edit the value of the columns there and then press Alt+F12 again to return to the design view . Comment : Thanks that works On note : After dropping a GridPanel on the form and deleting the rows and colums at designtime these rows and columns still exist on runtime and you have to delete them manually . Little bit strange . Comment : Or you can select all 4 columns and write 25 in object inspector Comment : @Vitaliy - That is not easier than selecting all 4 and then typing 0 which is covered in Uwe s answer . My answer rather is helpful if you re not going to equally distribute the widths . Of course you can also do that but indeed other alternatives are better at that .", "Question : I have grid panel 16 x 4 like this one : .. . .. . enter image description here http : i.stack.imgur.com aYwtT.png .. . .. . Sometimes i want to hide some rows and to move bottom rows up . When I set component visible property to false the layout is not updated : .. . .. . enter image description here http : i.stack.imgur.com LV0Up.png .. . .. . Nevertheless the row size type is set to auto : .. . .. . enter image description here http : i.stack.imgur.com CasQS.png .. . .. . Why the component don t set row height to zero when there is nothing to display .. . Answer : I ve got a hacky solution .. . keeping the Autosizing", "Question : I have grid panel 16 x 4 like this one : .. . .. . enter image description here http : i.stack.imgur.com aYwtT.png .. . .. . Sometimes i want to hide some rows and to move bottom rows up . When I set component visible property to false the layout is not updated : .. . .. . enter image description here http : i.stack.imgur.com LV0Up.png .. . .. . Nevertheless the row size type is set to auto : .. . .. . enter image description here http : i.stack.imgur.com CasQS.png .. . .. . Why the component don t set row height to zero when there is nothing to display .. . Answer : Why the component don t set row height to zero when there is nothing to display .. . .. . Because the row is considered as empty only if there are no components in all columns in that row not if they re visible or not . So the same returns the IsRowEmpty http : docwiki.embarcadero.com Libraries XE3 en Vcl.ExtCtrls.TCustomGridPanel.IsRowEmpty method . To workaround this you d need to be notified by the cell component about its visibility change . When this notification is generated you can check the row just like the IsRowEmpty http : docwiki.embarcadero.com Libraries XE3 en Vcl.ExtCtrls.TCustomGridPanel.IsRowEmpty method does except you ll check if the controls are visible not if they re assigned . Based on the result-of such method you can then set the size of the Value http : docwiki.embarcadero.com Libraries XE3 en Vcl.ExtCtrls.TCellItem.Value to 0 to hide the row . With a help of interposed class the method for checking if all controls in a row or column are visible you might write something like this . Those methods return True when all existing controls in a certain row or column are visible False otherwise : .. . .. . And the usage shown for the first row :", "Question : I have a problem I am unable to solve even though I spend long time trying to do it . I usually use GridPanels to align controls on forms . It has however an annoying bug . When the GridPanel align mode is alClient and I maximize its parent window the GridPanel adjusts to the new size of that window however the controls laying on the grid do not . They stay in the same position they were before window resize . It happens only at the first window s maximization . If the window is first resized manually everyting is OK . I think the grid adjusts its child controls after the second resize event . What to to do make GridPanel work properly if it comes to this bug It might be enough to send a message to it but what message I do not know . I tried to use Realign Refresh etc . but they did not help . Thanks for your help in advance .. . .. . Mariusz . .. . Answer : I have had this error too on several projects . I m not sure how I solved this it was on projects for my previous employer I don t have access to this source code anymore . I think I had te redraw refresh that parent frame or form on which the GridPanel was placed .", "Question : I have a problem I am unable to solve even though I spend long time trying to do it . I usually use GridPanels to align controls on forms . It has however an annoying bug . When the GridPanel align mode is alClient and I maximize its parent window the GridPanel adjusts to the new size of that window however the controls laying on the grid do not . They stay in the same position they were before window resize . It happens only at the first window s maximization . If the window is first resized manually everyting is OK . I think the grid adjusts its child controls after the second resize event . What to to do make GridPanel work properly if it comes to this bug It might be enough to send a message to it but what message I do not know . I tried to use Realign Refresh etc . but they did not help . Thanks for your help in advance .. . .. . Mariusz . .. . Answer : Changing the width invalidating the control doesn t work for me something changed with recent versions of RAD Studio . Anyway a similar simple workaround along that line is :", "Question : Can you tell me how to attach headerclick or headerdblclick event to Ext.grid.GridPanel .. . Answer : You can either use the listeners config at config time or the .on method with a grid reference . or", "Question : I have a problem I am unable to solve even though I spend long time trying to do it . I usually use GridPanels to align controls on forms . It has however an annoying bug . When the GridPanel align mode is alClient and I maximize its parent window the GridPanel adjusts to the new size of that window however the controls laying on the grid do not . They stay in the same position they were before window resize . It happens only at the first window s maximization . If the window is first resized manually everyting is OK . I think the grid adjusts its child controls after the second resize event . What to to do make GridPanel work properly if it comes to this bug It might be enough to send a message to it but what message I do not know . I tried to use Realign Refresh etc . but they did not help . Thanks for your help in advance .. . .. . Mariusz . .. . Answer : Ah I ve had similar issues as well . It might be related to a resizing problem in the VCL . You might want to try the fix by Andreas Hausladen http : cc.embarcadero.com Item 25646 . It seems to work for me in most of the cases .", "Question : I have a problem I am unable to solve even though I spend long time trying to do it . I usually use GridPanels to align controls on forms . It has however an annoying bug . When the GridPanel align mode is alClient and I maximize its parent window the GridPanel adjusts to the new size of that window however the controls laying on the grid do not . They stay in the same position they were before window resize . It happens only at the first window s maximization . If the window is first resized manually everyting is OK . I think the grid adjusts its child controls after the second resize event . What to to do make GridPanel work properly if it comes to this bug It might be enough to send a message to it but what message I do not know . I tried to use Realign Refresh etc . but they did not help . Thanks for your help in advance .. . .. . Mariusz . .. . Answer : I found one trick . in OnResize event of parent of gridpanel change gridpanel s width by 1 pixel . then gridPanel will notice size changed then rearrange sub-controls in gridpanel. . .. . .. . sample is below. . Comment : Somewhat related qc.embarcadero.com wc qcmain.aspx d 45827 http : qc.embarcadero.com wc qcmain.aspx d 45827", "Question : I have a problem I am unable to solve even though I spend long time trying to do it . I usually use GridPanels to align controls on forms . It has however an annoying bug . When the GridPanel align mode is alClient and I maximize its parent window the GridPanel adjusts to the new size of that window however the controls laying on the grid do not . They stay in the same position they were before window resize . It happens only at the first window s maximization . If the window is first resized manually everyting is OK . I think the grid adjusts its child controls after the second resize event . What to to do make GridPanel work properly if it comes to this bug It might be enough to send a message to it but what message I do not know . I tried to use Realign Refresh etc . but they did not help . Thanks for your help in advance .. . .. . Mariusz . .. . Answer : on the resize of the owner call GridPanel.Invalidate . I didn t test it . I hope it s work ." ] }
[ "yes-answer-long", "yes-answer-short" ]
grid
UNK_RELATION
foolproof-validation@validation@100
foolproof-validation -- mvc foolproof-validation is a library that complements the data annotation @placeholder provided in asp.net-mvc .
{ "confidence": [ 66.80218505859375, 65.30789947509766, 65.27637481689453, 62.963531494140625, 59.49007797241211, 59.26201629638672, 59.23466110229492, 57.397438049316406, 56.06937026977539, 53.87504577636719, 53.87504577636719, 53.835140228271484, 53.0930061340332, 51.8994140625, 51.8994140625, 51.48009490966797, 51.43582534790039, 51.420284271240234, 51.41618347167969, 49.36707305908203, 49.34318542480469, 49.34318542480469, 49.34318542480469, 49.300254821777344, 49.085060119628906, 48.905460357666016, 48.02787780761719, 47.9823112487793, 46.94047546386719, 46.94047546386719, 46.94047546386719, 46.63029861450195, 46.201969146728516, 46.02394485473633, 45.527549743652344, 45.527549743652344, 45.48179626464844, 45.42854309082031, 45.26911926269531, 43.796653747558594, 43.27869415283203, 43.120635986328125, 43.10182571411133, 43.10182571411133, 43.02742385864258, 42.616729736328125, 42.335357666015625, 40.647064208984375, 40.5893440246582, 39.897029876708984, 39.8617057800293, 39.837188720703125, 39.73052978515625, 39.39623260498047, 38.85481643676758, 38.4967041015625, 38.4967041015625, 38.48365020751953, 38.15623474121094, 37.76002883911133, 37.72541427612305, 37.72541427612305, 37.653114318847656, 36.76239776611328, 36.27818298339844, 36.04194259643555, 36.04194259643555, 35.632774353027344, 35.632774353027344, 35.632774353027344, 35.632774353027344, 35.61372756958008, 35.61372756958008, 35.041805267333984, 35.03179931640625, 35.00361633300781, 34.94953155517578, 34.94953155517578, 34.567726135253906, 34.19725799560547, 34.11785888671875, 34.04838943481445, 33.86771774291992, 33.86771774291992, 33.86771774291992, 33.86771774291992, 33.86711883544922, 33.29579544067383, 33.25273513793945, 33.17801284790039, 33.17801284790039, 33.17801284790039, 31.77507781982422, 31.77507781982422, 31.335163116455078, 31.086498260498047, 31.016624450683594, 31.016624450683594, 31.016624450683594, 30.99302101135254 ], "content": [ "I have added a reference to MVC Foolproof Validation to my project .", "When using MVC Foolproof Validation is it possible to have a custom validation asynchronous", "You need to use NuGet to download MVC Foolproof Validation and Mvc Extensions.Foolproof .", "I am using MVC Foolproof validation in my application .", "Foolproof Validation has problems with EntityFramework .", "The mvc data annotation validation Required is working .", "http : foolproof.codeplex.com SourceControl latest http : forums.asp.net t 1752975.aspx Conditional+validation+with+MVC+Foolproof+Validation+", "So I installed Foolproof Validation .", "You cannot use a Foolproof validation attribute for this .", "Foolproof references .net-3.5 and MVC 2 .", "I use foolproof in mvc 4 with no issues .", "I m trying to add a custom validator using the MVC Foolproof library .", "I am using Foolproof http : foolproof.codeplex.com SourceControl latest Foolproof RequiredIf.cs Validation .", "I m trying to make use of the MVC Foolproof Validation framework http : foolproof.codeplex.com but I m having trouble with the ModelAwareValidationAttribute class .", "I have that classic error on MVC 4 using .Net 4.5.2 which is that Foolproof Validation is throwing .. . .. . method or operation is not implemented .", "This question mayt sound duplicate but I am not satisfied with any of the answers as some are suggesting MVC Foolproof validaiton for conditional validaiton and some tells it dont work well with entity-framework .. . .. . I am using MVC Foolproof RequiredIf validation in my project.It works well on clientside and is validation is working on server-side as well .", "I m having trouble with client-side validation with the nuget foolproof package .", "I am using foolproof in a MVC project .", "This validator is DRY because you can also plug it into ASP.NET MVC Validation .", "We are trying to use the Foolproof validation annotation RequiredIf to check if an email-address is needed .", "Am I simply asking too much of Foolproof Validation", "I m trying to implement FoolProof validation on two jQuery datepicker textboxes .", "Good day .. . .. . I am using MVC4 and Foolproof validation .", "foolproof adds client-side validation in the same way that MVC s validation attributes do by defining a rule to be added to jQuery validation using the .validator.addMethod and .validator.unobtrusive.adapters.add functions so parsing the validator will also work for foolproof-validation attributes .", "I am trying to use the MVC Foolproof Validation toolkit to enforce a field has a value if a earlier status field has reached a certain value.. .", "I am trying to use MVC Foolproof library to validate my model and show error message respectively .", "I m using the MVC Foolproof Validation library to make dependent requirements : .. . .. . This works perfectly on the client-side allowing me to submit the form without a RequiredIfTrueSelectID value i.e .", "@StephenMuecke : If possible kinldy look into this question http : stackoverflow.com questions 33346189 complex-custom-validation-in-foolproof-validation", "I m using Foolproof Validation http : foolproof.codeplex.com so I can use RequiredIf attributes on my view model .", "I think a better approach would be to use FluentValidation http : fluentvalidation.codeplex.com documentation not foolproof-validation .", "It is not necessary to use foolproof and the following method and scripts will give you both server and client-side validation .. . .. . Scripts .. . .. . and then use it as", "It seems Foolproof Validation does not work with WEB API : .. . .. . Fiddler : .. . .. . Response : .. . .. . The same code works fine with classic MVC 4 temaplate .", "I am trying to validate two fields based on the URL entered using a RequiredIf data annotation provided by MVC Foolproof Validation the project is an n-layer web application with business logic data tier presentation and unit-testing layers .", "I am using foolproof .", "I currently use foolproof for that validation : .. . .. . but customer wants to add validation as that : .. . .. . But it compilator disagree with that so how can In combine both", "For the normal validation I am able to rebind it using .. . .. . Is there a similar method for rebinding them foolproof-validation", "Example Validators with ASP.NET MVC 4 https : github.com pjmagee CI3540 tree master CI3540.UI Validation", "How to : Implement Remote Validation in ASP.NET MVC http : msdn.microsoft.com en-us library gg508808 VS.98 .aspx", "I found the solution here : .. . .. . http : forums.asp.net t 1752975.aspx Conditional+validation+with+MVC+Foolproof+Validation+ .. . .. . The problem is that I have no idea how to edit that ModelAwareValidationAttribute class .", "The same code will reparse foolproof-validation but before calling .validator.unobtrusive.parse form you should be calling form .data validator null", "Generally for most of the routes I have created the job title textbox will be required only three URLs currently require military rank instead in similar projects I have added a RequiredIf annotation using MVC Foolproof Validation which has been added to a view model in the case I have tried using the annotation but because I am validating from a domain-model project the Foolproof Validation is not working .", "I want to compare two date fields using Foolproof validation where the second field must be greater than the first field .", "I m using Foolprof for clied side validation .. . .. . 1 . reference added .. . .. . using Foolproof .. . .. . .. . 2 .", "Sorry getting confused with my own validation attributes : - Let me check the docs not even sure foolproof supports this", "I just verified that all my projects ViewModel MVC MVCTest are referencing the same version of Foolproof .", "I am doing unit-testing of my validation logic in MVC using the following helper method : .. . .. . One of my data models contains the following : .. . .. . This throws a NotImplementedException from Foolproof with this stacktrace : .. . .. . The interesting thing is that this runs fine when running MVC but not in UnitTest land .", "A foolproof scanf for a float will look like this .. . .. . This works for me .", "Hi I am loading a form and using unobtrusive clientside validation extended with the foolproof nuget-package .", "There must be some way to validate this using Foolproof .", "Base on the http : foolproof.codeplex.com SourceControl latest Foolproof Client Scripts mvcfoolproof.unobtrusive.js http : foolproof.codeplex.com SourceControl latest Foolproof Client 20Scripts mvcfoolproof.unobtrusive.js you can add your custom client validation rules as the server-side sibling .", "One validator for all bind it to MVC Model Validation or use it in any normal application .", "I have implemented Complex custom Foolproof validation in my application from this link http : www.nickriggs.com posts build-model-aware-custom-validation-attributes-in-asp-net-mvc-2 but sadly its not working.My requirement is simple I have a input file for uploading an image and there should be a validation if the user chooses to upload file other than specified below .. . .. . Code is .. . .. . CSHTML is", "This is an issue with the foolproof attribute .", "I suspect this is because the library was originally written to work with the older validation script files which came with MVC 2 and possibly 3 so is there a way to register my validation function for the javascript validation files which come with MVC 4", "I thought that I might have missed including a script or something but after consulting similar SO questions here http : stackoverflow.com questions 23888850 fromdate-todate-clientside-validation-using-foolproof-in-mvc-not-working rq 1 here http : stackoverflow.com questions 18071630 mvc-foolproof-not-working-on-mvc3 it seems that I m all good .", "Then I can uncomment the Foolproof stuff and it seems to work .", "Actually my requirement is to achieve this using FoolProof .", "You will need to write you own validation attribute that implements IClientValidatable - refer this article http : www.devtrends.co.uk blog the-complete-guide-to-validation-in-asp.net-mvc-3-part-2 to get you started", "I m guessing foolproof is buggy here .", "To solve that I tried to use the requiredIf sttribute from the FoolProof library .", "Third did you add the Foolproof package using NuGet", "When calling .. . .. . RequiredIfTrue CommonUseStatus .. . .. . Foolproof ReqiuredIfAttribute gives System.NullReferenceException .", "Does anyone else know of a more recently-published library that functions like Foolproof", "Out of the box EditorFor fields show the expected ErrorMessage but for my custom EditorTemplates it uses the default MVC ErrorMessage and ignores the FoolProof defined ErrorMessage .", "However I am not applying the Data Annotation correctly so the validation does not works .", "I have understood that with Foolproof can be possible.. .", "Everything s foolproof until you turn off JavaScript .", "I used the package manager console to install these two packages : foolproof MvcExtentions.Foolproof .", "I included the foolproof script files in my bundle config see below .", "Sounds like you ve got two different versions of Foolproof you re referencing .", "I ended up downloading the Foolproof code from Codeplex to dig into this one .", "I have a pretty big project example in my Github if you want to see more examples of this Validator instead of FoolProof .", "I am trying to achieve this using Foolproof but the problem is False Condition is not getting validated .", "Is the Validation logic flawed", "Any other way of doing annotation validation", "im using foolproof-validation for hours .. . .. . it validates the fields correctly but when i call submitchanges in the controller it throws me an error .. . .. . NotImplementedException : No se puede implementar el m todo o la operaci n .", "It looks like you actually want to validate the the email enter by the user does not already exist in he database in which case you need a Remote attribute standard MVC not foolproof .", "I also deleted all my bin folders so that only one MVC Foolproof Validation.dll file-exists on disk prior to running the test and it still fails .", "In my MVC4 application I m using MVC FoolProof library .. . .. . In my Metadata class I have .. . .. . But at my controller post method an exception has been thrown on db.SaveChanges .. . .. . Following are the details of exception .. . .. . Stack Trace Details .. . .. . What should I do in this case", "Here is the source snippet : .. . .. . The following modification makes more sense to me in almost any scenario I can think of since required fields would still have their own validation to pass : .. . .. . Is there another way I should be validating this or is FoolProof just needing a fix", "seems that foolproof doesnt have integration with EF4 or higher to fix that you must download the whole Foolproof project and overdrive the isvalid method in the ModelAwareValidationAttribute class them build it and reference the dll to your project .", "I m using Asp.Net MVC 3 in case that matters .", "First of all I suppose you have included using Foolproof in your model .", "Your packages.config should contain something like package id foolproof version 0.9.4517 targetFramework net45 .", "Mostly shots in the dark here but getting Foolproof working is usually just a click-and-go operation .", "You can see the source code for the IsValid method here http : foolproof.codeplex.com SourceControl latest Foolproof RequiredIf.cs", "You need to have ASP.NET MVC 2 installed on your system .", "Client validation should work then .", "I can t make foolproof ie the ban on entering letters and negative numbers.I just can not create a second condition when creating the first that refers to the letters .", "What I did in the projects is to extend the foolproof base on that file .", "http : foolproof.codeplex.com RequireIf Code http : foolproof.codeplex.com SourceControl latest Foolproof RequiredIf.cs", "I m update all foolproof dlls but still don t working .", "NOTE : I have found simply commenting out the Foolproof attributes in the view model and then rcompiling allows the scaffolding to work again .", "And yes there are some issues with using foolproof validations and EF so best to use a view model .", "Please refer this tutorial http : www.codeproject.com Articles 301022 Creating-Custom-Validation-Attribute-in-MVC to create custom validation attribute to do the work as you need where you need to write your own jquery validation script for client-side validation in MVC framework way if you use IClientValidatable which is also explained in the same .", "Runs fine in MVC .", "Also are you displaying any validation messages in the view", "@MuhammadDanish is the server-side validation work at your side", "The error is being displayed in the Validation Summary automatically .", "I hadn t realized that Fluent also supported client-side validation ." ] }
{ "confidence": [ 73.39112854003906, 72.64681243896484, 70.68367004394531, 70.49126434326172, 69.67316436767578, 68.3586654663086, 67.7713623046875, 67.35726928710938, 67.01194763183594, 66.53092193603516, 65.97777557373047, 65.82279205322266, 65.67174530029297, 65.5436019897461, 65.47125244140625, 65.05717468261719, 64.99235534667969, 63.777427673339844, 63.75849914550781, 62.88364791870117 ], "content": [ "Question : I have an MVC3 application . This is the model : .. . .. . I enabled the onubtrusive validation on the web.config : .. . .. . And this on my layout.cshtml : .. . .. . My problem here is the MvcFoolproof is not working . The mvc data annotation validation Required is working . What did I missed here Thanks Comment : Do you have any errors in browser Comment : No i don t have any errors on browser . .. . Answer : First of all I suppose you have included using Foolproof in your model . Second I believe you might need this script too for client-side validation to work properly script src Scripts MvcFoolproofJQueryValidation.min.js script . Third did you add the Foolproof package using NuGet Your packages.config should contain something like package id foolproof version 0.9.4517 targetFramework net45 . Also are you displaying any validation messages in the view Are these being shown for the required properties but not for the NotEqualTo attribute Last are you displaying all those properties in the view correctly using e.g . @Html.EditorFor model model.Answer1 Unless Answer2 has something to compare to it surely won t validate . And you re using the jQuery validate-call on the form Mostly shots in the dark here but getting Foolproof working is usually just a click-and-go operation .", "Question : I m using Foolproof Validation http : foolproof.codeplex.com so I can use RequiredIf attributes on my view model . The problem is that I d like to trigger validation within my code using the same logic outside a controller . I ve tried creating my own validation context and using Validatior.TryValidateObject however it fails with Foolproof s custom RequiredIf validator . Is there a way to take my model and validate it other than passing it to a controller Am I using the wrong approach Here is my code : .. . .. . And the error I get is on the TryValidateObject line .. . .. . System.NotImplementedException : The method or operation is not implemented . .. . Answer : I think a better approach would be to use FluentValidation http : fluentvalidation.codeplex.com documentation not foolproof-validation . I personally think Fluent is nicer than attributes too : . Using FluentValidation you are also able to validate your model without the use of a Controller . This will NOT give you a System.NotImplemented exception . This validator is DRY because you can also plug it into ASP.NET MVC Validation . You can simply call the following code in Global.asax or App Start etc . One validator for all bind it to MVC Model Validation or use it in any normal application . If you use Inversion of Control container like Ninject FluentValidation also has a plugin to work with that . More available on their documentation in link provided above . I have a pretty big project example in my Github if you want to see more examples of this Validator instead of FoolProof . Example Validators with ASP.NET MVC 4 https : github.com pjmagee CI3540 tree master CI3540.UI Validation Comment : Thanks @Patrick Magee that may be the right approach . I hadn t realized that Fluent also supported client-side validation . I ll test it today and if it also provides custom client-side validation then this will be my answer . Comment : You can also get away with FluentValidation using REMOTE validation for things like Emails which need to be unique using Ajax to validate without the user having to post back the form . There s an example of that in my project too . Since the Predicate Must function doesnt support remote validation by default . You could create custom binders though . Comment : Thanks @Patrick Magee I tested your solution and it works great . This solved my problem . As for Remote that would work however for I still prefer client-side custom validators if possible .", "Question : I m trying to make use of the MVC Foolproof Validation framework http : foolproof.codeplex.com but I m having trouble with the ModelAwareValidationAttribute class . When I add a custom validation attribute it works fine for server-side model-validation but not on the client-side . If I use one of the built-in attributes supplied by the framework client-side unobtrusive-validation works so I know or at least I think I know that I have the correct javascript libraries loaded . Has anyone out there created a custom validation attribute using this framework at does it work with client-side unobtrusive-validation If so what did you do to make it work I m using Asp.Net MVC 3 in case that matters . .. . Answer : Base on the http : foolproof.codeplex.com SourceControl latest Foolproof Client Scripts mvcfoolproof.unobtrusive.js http : foolproof.codeplex.com SourceControl latest Foolproof Client 20Scripts mvcfoolproof.unobtrusive.js you can add your custom client validation rules as the server-side sibling . What I did in the projects is to extend the foolproof base on that file . Example code : .. . .. . I hope that help you", "Question : null .. . Answer : I have that classic error on MVC 4 using .Net 4.5.2 which is that Foolproof Validation is throwing .. . .. . method or operation is not implemented . on Foolproof.ModelAwareValidationAttribute.IsValid Object value when I m trying to save the record . I found the solution here : .. . .. . http : forums.asp.net t 1752975.aspx Conditional+validation+with+MVC+Foolproof+Validation+ .. . .. . The problem is that I have no idea how to edit that ModelAwareValidationAttribute class . I only have reference to it . Comment : This is an issue with the foolproof attribute . You should not be applying them to your data models . Use a view model and apply it to a property of your view model . In the POST method map the view model to the data model and then save . Comment : Can you please give me an example on how to do that Comment : Please bro no dudes around here Comment : @GeorgiG Refer What is ViewModel in MVC http : stackoverflow.com questions 11064316 what-is-viewmodel-in-mvc", "Question : I m trying to add a custom validator using the MVC Foolproof library . However upon following the instructions here http : www.nickriggs.com posts client-side-model-aware-validation I get the error message Sys is not defined . I suspect this is because the library was originally written to work with the older validation script files which came with MVC 2 and possibly 3 so is there a way to register my validation function for the javascript validation files which come with MVC 4 The property on my model is defined as .. . .. . The validation attribute is defined as .. . .. . And the JavaScript wiring-up for this is .. . .. . Also I m not sure what the file MvcFoolproofJQueryValidation.js is requied for because somehow I had the out-of-the-box validation working without this script file being present . Sadly including it doesn t help with my Sys is not defined error . Comment : I use foolproof in mvc 4 with no issues . Can you add the code that is throwing the error and your model how you are defining the required Comment : I ve updated the question with all relevant code javascript . Comment : possible duplicated of this question stackoverflow.com questions 23541452 http : stackoverflow.com questions 23541452 .. . Answer : Base on your error you are using the jquery obstructive approach . See this post http : stackoverflow.com questions 19644838 how-to-make-unobtrusive-client-side-validation-work-with-foolproofs-modelawarev 21814158 21814158 for more info .", "Question : I am trying to validate two fields based on the URL entered using a RequiredIf data annotation provided by MVC Foolproof Validation the project is an n-layer web application with business logic data tier presentation and unit-testing layers . The validation is currently being handled in the domain project found in the business-logic-layer I have used this package successfully in other project but so far not got it to work in this project . when I run the application in the web browser the field is not marked as required and the form can be submitted without entering one or other of these two fields . for more details please refer to question I asked previously found here : .. . .. . validating textboxes based on the URL entered http : stackoverflow.com questions 14211860 validating-textboxes-based-on-the-url-entered .. . .. . I have implemented a custom validator so far which does catch error but the user is unware that the field is actually required until they have submitted the form without entering a value . .. . Answer : After looking at a number of MVC 4 projects using an n-tier architecture in particular ProDinner which can be found here : .. . .. . http : prodinner.codeplex.com .. . .. . I have now decided to refactor the application so that the domain core now implements the model as POCOs and then the validation is implemented in a view model within the MVC project that inherits from the domain-model .", "Question : I have implemented Complex custom Foolproof validation in my application from this link http : www.nickriggs.com posts build-model-aware-custom-validation-attributes-in-asp-net-mvc-2 but sadly its not working.My requirement is simple I have a input file for uploading an image and there should be a validation if the user chooses to upload file other than specified below .. . .. . Code is .. . .. . CSHTML is Comment : Only use the jQuery Validate tag when your question is about the jQuery Validate plugin . Edited . .. . Answer : You will not be able to get client-side validation unless you also create a script to add the rules . It is not necessary to use foolproof and the following method and scripts will give you both server and client-side validation .. . .. . Scripts .. . .. . and then use it as Comment : Thanks mate for your wonderful support. . :", "Question : I am trying to use MVC Foolproof library to validate my model and show error message respectively . However I am not applying the Data Annotation correctly so the validation does not works . My requirement is that I have two checkboxes and atleast one of them needs to be checked before submitting the form . Below is the code for both fields in the model with data annotation .. . .. . Now when I submit the form without checking any checkbox then form is submitted and no error is displayed . I know there is some logical mistake with the model and the way I am applying the custom validation attribute because if I make first field as int or string and make it required if the CheckBox is checked then validation works fine and validation messages are displayed accordingly on the view . Kindly help me in identifying the logical error in above fields . .. . Answer : In order to fix the issue find mvcfoolproof.unobtrusive.js and replace the following : .. . .. . with .. . .. . and .. . .. . with Comment : This is a completely different scenario to the question which is 2 properties which are typeof bool and therefore is not an answer to the question and making these changes would do nothing to solve OP s problem", "Question : I am doing unit-testing of my validation logic in MVC using the following helper method : .. . .. . One of my data models contains the following : .. . .. . This throws a NotImplementedException from Foolproof with this stacktrace : .. . .. . The interesting thing is that this runs fine when running MVC but not in UnitTest land . My goal is to unit test validations and bindings through the MVC interface in order to ensure changes don t have far reaching effects as the project gets bigger . Any advice on ways to get this to work are greatly appreciated . Comment : Sounds like you ve got two different versions of Foolproof you re referencing . Go find every copy of the dll and check it . Use fusion logging if you don t find mismatched versions . Comment : I just verified that all my projects ViewModel MVC MVCTest are referencing the same version of Foolproof . Comment : How By locating every copy on disk and using a decompiler to examine it By using fusion logging to see where it is being loaded This is what you need to do when you ve got something freaky going on . Start at the bottom . Comment : I verified the version number via VS . I also deleted all my bin folders so that only one MVC Foolproof Validation.dll file-exists on disk prior to running the test and it still fails . Runs fine in MVC . Comment : Runs fine in MVC what does that mean Works at runtime On the same machine or on a server somewhere .. . Answer : I ended up downloading the Foolproof code from Codeplex to dig into this one . The validation method being called isn t implemented . I ll reach out on their message boards to see how to get this resolved instead .", "Question : This question mayt sound duplicate but I am not satisfied with any of the answers as some are suggesting MVC Foolproof validaiton for conditional validaiton and some tells it dont work well with entity-framework .. . .. . I am using MVC Foolproof RequiredIf validation in my project.It works well on clientside and is validation is working on server-side as well . But when i call db.Savechanges to insert data an exception is coming .. . .. . InnerException Comment : Is this applied to a view model or your actual data model Comment : Thanks for the reply..Its applied to actual data model. . Comment : Not a good idea . And yes there are some issues with using foolproof validations and EF so best to use a view model . Also it really only needs to be RequiredIf STCompulsory true ErrorMessage . . Comment : Thanks mate.You saved me again.If you post the answer i will accept it so that it helps others having similar issue. . Comment : @StephenMuecke : If possible kinldy look into this question http : stackoverflow.com questions 33346189 complex-custom-validation-in-foolproof-validation .. . Answer : You do not need the Operator.EqualTo parameter and it can be simply .. . .. . You are correct in that the foolproof RequiredIf attribute does have some problems with EF and it is discussed in detail in this work issue http : foolproof.codeplex.com workitem 15609 along with some suggested changes . The easiest solution is to use a view model rather than your data model in the view and apply the attribute to the view model property .", "Question : null .. . Answer : I am trying to use the MVC Foolproof Validation toolkit to enforce a field has a value if a earlier status field has reached a certain value.. . The Status field type is an ENum with defined int values . Once the status has reached Confirmed I need to ensure that the ConfirmationNumber field has a value .. . .. . With the above setting it works fine and validates that the field has data however if I change to the following no validation occurs . or this .. . .. . I ve looked at this SO question http : stackoverflow.com questions 27283689 using-foolproof-requiredif-with-an-enum and whilst it is similar it s not as that is an explicit EqualsTo comparison not a GreaterThanOrEqualTo", "Question : null .. . Answer : Good day .. . .. . I am using MVC4 and Foolproof validation . I am trying to validate a field based on the values of at least 2 other fields . RequireIf can on be specified once . RequireIf only takes 1 fieldname and value . How would i go about doing something like this .. . .. . so that if pos1 1 and pos2 5 validation should fail Comment : You will need to write you own validation attribute that implements IClientValidatable - refer this article http : www.devtrends.co.uk blog the-complete-guide-to-validation-in-asp.net-mvc-3-part-2 to get you started", "Question : In my MVC4 application I m using MVC FoolProof library .. . .. . In my Metadata class I have .. . .. . But at my controller post method an exception has been thrown on db.SaveChanges .. . .. . Following are the details of exception .. . .. . Stack Trace Details .. . .. . What should I do in this case Not getting actually where I am going wrong . Please Help me Thanks .. . Answer : Foolproof Validation has problems with EntityFramework . For more details see this bug report https : foolproof.codeplex.com workitem 15609 Comment : Thanks . I saw that later", "Question : I am trying to use MVC Foolproof library to validate my model and show error message respectively . However I am not applying the Data Annotation correctly so the validation does not works . My requirement is that I have two checkboxes and atleast one of them needs to be checked before submitting the form . Below is the code for both fields in the model with data annotation .. . .. . Now when I submit the form without checking any checkbox then form is submitted and no error is displayed . I know there is some logical mistake with the model and the way I am applying the custom validation attribute because if I make first field as int or string and make it required if the CheckBox is checked then validation works fine and validation messages are displayed accordingly on the view . Kindly help me in identifying the logical error in above fields . .. . Answer : A boolean has only 2 states true or false and either one is valid so RequiredIfFalse is effectively saying that the value must be either true or false which it always will be assuming your using @Html.CheckBoxFor . You cannot use a Foolproof validation attribute for this . Comment : Thanks for your response . There must be some way to validate this using Foolproof . Some workaround Comment : No there is not . Required means its required not null and a boolean is never null . Easiest workaround is just to check the values in the POST method and if both are false add a model state error - ModelState.AddModelError Please check Checkbox1 and or Checkbox2 and it will be displayed in the @Html.ValidationSummary Comment : Forgive me but it feel strange . If a CheckBox is not checked then its value is false and if it is checked then its value is true . So RequiredIfFalse should mean that to show message if CheckBox is not checked . What you are saying is that RequiredIfFalse don t work because it is not null . I am talking about RequiredIfFalse and not just required Comment : Your clearly not understanding the logic . RequiredIfFalse CheckBox2 applied to property CheckBox1 means that the value of CheckBox1 is required if the value of CheckBox2 is false . Which means if CheckBox2 is false then CheckBox1 must have a value - which it always will because both true and false are values a boolean cannot have a null value Comment : Thank you . I was mistaken because I thought RequiredIfFalse is checking the false value of checkbox which it is clearly not . But clearly you were also not right that this has no other solution . I played around with other Attributes and found that RequiredIfNot CheckBox1 true fulfill my requirements . The only short coming is that when both CheckBoxes are not checked it display error message for both CheckBox but when atleast one CheckBox is checked then there is no error . I will post this as answer if other needs it and thank you for clarifying logic to me .", "Question : if email exist by function check i want display error .. . .. . how i do it Comment : What are you trying to do here Sound like you want a Remote attribute that checks if an email already exists in the database and display error if it does . That s not what RequiredIf is for .. . Answer : The RequiredIf attribute is for validating a property that is required based on the value of another property . For example if you model contains properties bool NotifyMeByEmail and string EmailAddess then you could apply it as follows . Then in the view if the checkbox for NotifyMeByEmail is not checked a validation error is generated for EmailAddress . It looks like you actually want to validate the the email enter by the user does not already exist in he database in which case you need a Remote attribute standard MVC not foolproof . How to : Implement Remote Validation in ASP.NET MVC http : msdn.microsoft.com en-us library gg508808 VS.98 .aspx", "Question : null .. . Answer : I have added a reference to MVC Foolproof Validation to my project . I am using one of the annotations on my model : .. . .. . We have a validation class which validates like so : .. . .. . This works for all the regular DataAnnotation s but it s not catching it for the new annotation . I can t debug into Validator.TryValidateProperty but the result comes back as true for the property despite being after the EndDate . Is the Validation logic flawed Comment : Use the second overload of Validator.TryValidateProperty http : msdn.microsoft.com en-us library dd411772.aspx and specify validateAllProperties true . Otherwise the validator will only validate the Required attributes . Comment : My brain must be tired I was linking to TryValidateObject . Sorry for the mistake . On a sidenote why not use the TryValidateObject instead of writing the exact same thing in above code Comment : @Styxxy Your guess is as good as mine I didn t write it : I went ahead and tried it and it exhibited the same behavior . Comment : Kyle it seems like the library is incomplete . The IsValid function throws a NotImplementedException . The library is also dead . So best thing is to fork it and do some adjustments . Example adjustments : pastebin.com thQERyy2 http : pastebin.com thQERyy2 Comment : @Styxxy I see that it s dead I m not seeing that it s incomplete . The LessThanOrEqualTo class only has a constructor to call Is which has a valid implementation of IsValid", "Question : im using foolproof-validation for hours .. . .. . it validates the fields correctly but when i call submitchanges in the controller it throws me an error .. . .. . NotImplementedException : No se puede implementar el m todo o la operaci n . Foolproof.ModelAwareValidationAttribute.IsValid Object value +59 System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid Object value ValidationContext validationContext +115 System.ComponentModel.DataAnnotations.ValidationAttribute.GetValidationResult Object value ValidationContext validationContext +29 System.Data.Entity.Internal.Validation.ValidationAttributeValidator.Validate EntityValidationContext entityValidationContext InternalMemberEntry property +198 .. . .. . DbUnexpectedValidationException : An unexpected exception was thrown during validation of end when invoking Foolproof.GreaterThanAttribute.IsValid . See the inner-exception for details . happens the same with dates what can i do is there any other way to do this validation .. . Answer : seems that foolproof doesnt have integration with EF4 or higher to fix that you must download the whole Foolproof project and overdrive the isvalid method in the ModelAwareValidationAttribute class them build it and reference the dll to your project . http : foolproof.codeplex.com SourceControl latest http : forums.asp.net t 1752975.aspx Conditional+validation+with+MVC+Foolproof+Validation+", "Question : I m using Foolproof Validation http : foolproof.codeplex.com so I can use RequiredIf attributes on my view model . The problem is that I d like to trigger validation within my code using the same logic outside a controller . I ve tried creating my own validation context and using Validatior.TryValidateObject however it fails with Foolproof s custom RequiredIf validator . Is there a way to take my model and validate it other than passing it to a controller Am I using the wrong approach Here is my code : .. . .. . And the error I get is on the TryValidateObject line .. . .. . System.NotImplementedException : The method or operation is not implemented . .. . Answer : You need to let the MVC framework provide your Validator instead of using the Validator.TryValidateObject as below :", "Question : I recently added MVC Foolproof Validation http : foolproof.codeplex.com workitem 18815 to a new MVC4 app and now every time I try and scaffold a view using the Add View wizard I get the following exception shortened for brevity : .. . .. . C : Projects2012 Comair.RI Comair.RI.UI CodeTemplates AddView CSHTML Details.tt 0 0 : error : Running transformation : System.TypeInitializationException : The type initializer for Foolproof.ContingentValidationAttribute threw an exception . --- System.IO.FileNotFoundException : Could not load file or assembly System.Web.Mvc Version 2.0.0.0 Culture neutral PublicKeyToken 31bf3856ad364e35 or one of its dependencies . The system cannot find the file specified . NOTE : I have found simply commenting out the Foolproof attributes in the view model and then rcompiling allows the scaffolding to work again . Then I can uncomment the Foolproof stuff and it seems to work . Comment : Do you have the following lines in your web.config assemblyIdentity name System.Web.Mvc publicKeyToken 31bf3856ad364e35 bindingRedirect oldVersion 0.0.0.0-4.0.0.0 newVersion 4.0.0.0 .. . Answer : You need to have ASP.NET MVC 2 installed on your system . You can download it from here : http : www.microsoft.com en-us download details.aspx id 22079", "Question : null .. . Answer : I m trying to implement FoolProof validation on two jQuery datepicker textboxes . My goal is to validate whether or not the second date preceeds the first . If this is the case I want to alert the user with the model s attribute message and prompt them to select a valid ending date . I thought that I might have missed including a script or something but after consulting similar SO questions here http : stackoverflow.com questions 23888850 fromdate-todate-clientside-validation-using-foolproof-in-mvc-not-working rq 1 here http : stackoverflow.com questions 18071630 mvc-foolproof-not-working-on-mvc3 it seems that I m all good . I was using Firefox s native debugger to try and see what exception was being thrown if any and noticed that line 73 inside mvcfoolproof.unobtrusive.js throws the following error : .. . .. . Please see my code-snippets and screenshots below : .. . .. . Layout .. . .. . Model Properties .. . .. . View .. . .. . Screenshot http : i.imgur.com Slfs6E3.png of Firefox s debugger ." ] }
[ "yes-answer-long", "yes-answer-short" ]
validation
UNK_RELATION
google-sites@open-source@43
google-sites -- google-sites is an online @placeholder platform for building static websites .
{ "confidence": [ 48.95845413208008, 44.542236328125, 43.94488525390625, 43.36442184448242, 42.299224853515625, 42.0400505065918, 41.47906494140625, 41.47906494140625, 41.47906494140625, 41.47906494140625, 41.47906494140625, 40.6411247253418, 40.24037551879883, 40.24037551879883, 40.24037551879883, 39.92558670043945, 38.75577163696289, 38.75577163696289, 38.75577163696289, 38.46979904174805, 38.13896942138672, 38.13896942138672, 38.13896942138672, 38.13896942138672, 38.13896942138672, 38.13896942138672, 38.13896942138672, 37.014259338378906, 36.9002799987793, 36.9002799987793, 36.9002799987793, 36.9002799987793, 36.9002799987793, 36.9002799987793, 36.29893493652344, 36.00735092163086, 35.46078109741211, 35.41567611694336, 35.41567611694336, 35.41567611694336, 35.41567611694336, 35.41567611694336, 35.41567611694336, 35.243682861328125, 34.8143310546875, 34.8143310546875, 34.41546630859375, 34.24690628051758, 34.204925537109375, 33.749534606933594, 33.674163818359375, 33.64889144897461, 33.63988494873047, 33.63988494873047, 33.63988494873047, 33.63988494873047, 33.63988494873047, 33.135860443115234, 33.072818756103516, 32.746036529541016, 32.746036529541016, 32.746036529541016, 32.50539779663086, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.40119171142578, 32.13794708251953, 31.98779296875, 31.98779296875, 31.17607879638672, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.916587829589844, 30.886348724365234, 30.886348724365234, 30.886348724365234, 30.886348724365234, 30.886348724365234, 30.886348724365234, 30.246280670166016, 30.246280670166016, 29.907943725585938, 29.69147491455078, 29.647655487060547, 29.175079345703125 ], "content": [ "I m building an intranet for a company with google-sites .", "That isn t what Google Sites is for .", "I have a Google Sites page .", "I ve created multiple sites under the same Google Sites domain .. . 2 .", "I create an application using google appscript and bind it into google-sites and google-sites render my application as iframe .", "I m building this page in the Google Apps for Work Sites app .", "How to set target attribute in Google sites html", "Unfortunately google-sites doesn t appear to support styles .", "However it illustrates a limitation of the WYSIWYG editor in Google Sites .", "Google Sites changes your entire script .", "Google Sites will filter out operations it considers unsafe .", "I created my sites using Google Sites only .", "Image links are only usable with files on google-sites .", "But is there any way to directly replace the site into google-sites .", "And also is there anyway to create a database and access it in Google Sites", "Web translation does not seems to be working with Google Sites once generated code javascript is considered invalid by the Google Sites page-editor Edit HTML .", "You can t use JavaScript on Google Sites .", "Is it possible to embed Highcharts scripts in Google sites", "I have created sites and group in google .", "My various Google Gadgets embedded on Google Sites broke yesterday with the deprecation of OAuth1 by Google .", "This page is done on a responsive google-sites template two column page lyout .", "Can we connect Google Sites Web application to Sql Database", "Doesn t answer the question : How to create a custom Google Sites theme", "possible duplicate of how to add custom javascript to google-sites", "http : stackoverflow.com questions 10874147 how-to-add-custom-javascript-to-google-sites", "I m trying to create a custom background theme for a Google Sites site .", "Is there a way to use responsive-design principles with Google Sites https : sites.google.com .", "Direct Access left and Embedded in Google Sites right .", "I am not sure but I think Google Sites only allows HTML .", "What am I doing wrong on Google Sites in Chrome", "Should I avoid Chrome for Google Sites Javascript development", "Google Sites already has an automatic vertical sub-page listing widget .", "Going forward will Google Sites be useful for professional web designing", "This means that no sound can be played from my Google Sites website anymore .", "This is the code I got from the Google Developers website however I can not implement it in Google Sites for some reason .", "Example .. . .. . I have a Google site with a few sub-pages : .. . .. . Each page is a File Cabinet type page with several photo attachments : .. . .. . Everything works until I need to replace the photo using the Google Sites Google Data API https : developers.google.com google-apps sites docs 1.0 developers guide protocol UpdatingContent .", "Possibly AppScripts have been enabled to work with Google Sites http : regulargeek.com 2010 10 26 google-sites-automation-with-apps-script since 2010 .", "On google-sites you can add Php File with App engine .", "I am using Google Sites api to return list page items .", "If I don t specify the height of the gadget Google Sites will automatically add a scrollbar : .. . .. .", "The problem google-sites render the iframe using scrollbar http : i.stack.imgur.com bAmeM.png .", "By the way this is a google-apps-script running in Sites not in Spreadsheets if that makes a difference .", "This appears to be an issue between Google Sites and Chrome v.37 .", "So I made this google-apps-script to use the google-picker on my google-sites webpage .", "I have created a Google Apps Script application and put it inside Google Sites .", "I think no if you have an google account you can create a google-sites .", "I am an Interaction Designer with average web skills and am trying to build an intranet within the confines of very limited Google Sites web building tools .", "I am trying to write a Google Apps Script to get the content of a Google Doc as HTML and use that HTML to create or update a web page in Google Sites .", "In my JavaEE application I m using the Atom-based Google Sites API https : developers.google.com google-apps sites to retrieve content from a non-public Google Site .", "I see that some people are trying to grab data from google spreadsheets via google-apps-script to stick in their google-sites : .. . .. . How to access data on different Google Spreadsheet through Google Apps Script", "It does https : developers.google.com google-apps sites docs 1.0 developers guide protocol ContentFeedQueriesFullText .", "You cannot deploy a SQL Server Reporting Services project to Google Sites as running the reports requires.. . SQL Server Reporting Services which is a part of the SQL Server ecosystem and not availabel on Google Sites .", "I have a question I have gone through Google Sites API and Report API as well .", "I created my website on Google sites and there appears to be no way to have the header and sidebar in a fixed position .", "Edit .. . .. . I ve tried several of the suggestions but unfortunately it looks like google-sites doesn t allow any of that functionality in the html .", "The key to your question is that Google Sites don t use a viewport declaration meta viewport in the head element .", "I m trying to include a simple javascript to Google Sites but I get nothing when pressing the button .", "Is there a way to draw some 2D shapes in a Google Sites page using Javascript without jumping through all the extra hoops to create a Google Gadget as described at How do I embed JavaScript code into a Google Sites page", "And here I mean GAS for use on Google Sites.. . so the script is not located in Google Drive", "I ve read the article about Google Sites storage quota at https : support.google.com sites answer 96770 hl en but it doesn t seem like I ve hit any of the quota .", "Awhile back I did some googling and found some sites with a background-image and instructions of how to change table dimensions to create a google-sites make shift theme .", "I looked at this google help topic https : web.archive.org web 20130118125736 http : support.google.com sites bin answer.py hl en answer 1260297 topic 1260296 ctx topic but then that is supposedly about exclusively mobile sites .", "Within Google Drive each client has their own folder and on Google Sites I have a sub-page embedded with their associated Google Drive folder .", "I am unable to find a working example of an oauth2 gadget that works on Google Sites .", "I am making a webpage in Google Sites and am running into a seemingly common problem .", "I wanted to ask a general question and share my experience using Google Sites and Javascript .", "So I need to convert this from uploading to drive to uploading to a folder on a google-sites file cabinet page .", "All of the info I have found re : attachments to google-sites are using the UI app which I am not interested in .", "I m trying to leverage GoogleAppsScript to embed a timestamp of Last Modified within a Google Sites page .", "When I Update my script my Webpage on Google sites is not updated and for long time .", "Now if I have to transfer it to Google Sites where do I create the folders and stuff", "Can anyone provide any ideas on whether or not Google Sites is a good idea for a professional webmaster to use", "Tell the client that it isn t possible or desirable to move your site to Google Sites .", "You should consider hosting your solution using Google s App Engine instead of Google Sites .", "I feel like this should be really obvious but I can t find it anywhere https : developers.google.com google-apps sites docs 1.0 developers guide protocol ContentFeed in the docs https : developers.google.com google-apps sites docs 1.0 reference feed Content .", "After looking at the html from the Google Doc I see that it is not using inline styles and I believe that Google Sites requires inline styling .", "Anyone have a Google Apps Script that I can use to convert the CSS to inline styles before using it to create a Google Sites page", "we are not talking about a public sites script but a sites script for an INTRANET .", "My cousin has given me her old website to redo which is on a Google Sites template .", "I wonder if any one can explain how to deploy a report server project to google-sites", "For my current project it would be very useful to get the description -metadata of a page on Google Sites .", "I am using Google Sites for my webpage and I want parts of it to be kind of dynamic .", "The tab is published to the web and inserted into a google-sites webpage using a Include gadget iframe .", "Instead you may create a gadget https : developers.google.com google-apps sites gadgets site gadgets for your site .", "I need to integrate the functionality of creating dynamic pages like google-sites to my regular asp.net-mvc C application .", "I don t use Google Sites so I d need to go take a look at it .", "I ve tried to add them on other google-sites and even created a fresh one and still get the same error .", "I think I m just going to abandon Google Sites and redo the page in GAE .", "If I set target value top or parent for anchor or form tag in Google sites insert html it will be automatically changed to parent after saving it .", "It is possible to apply other people s custom themes http : www.gethemes.com free-themes but I cannot find documentation on how to create Google Sites themes .", "take a look at this question : stackoverflow.com questions 1522665 http : stackoverflow.com questions 1522665 where-can-i-find-custom-themes-for-google-sites", "Google Sites don t let you write your own CSS or HTML HEAD so you can t implement a more responsive-design yourself .", "I was messing with Google Sites today and you can make a site mobile friendly I had to come here to get started .", "Some details here http : www.mydigitallife.info how-to-add-javascript-or-custom-contents-to-google-sites-with-gadget but was unable to find official documentation with quick search .", "I am trying to create a google App Script for displaying a chart on Google Sites in which I want to update chart values automatically .", "If the script is embedded in a Google Site it scales properly but I d rather be able to view the web app directly rather than embed it in Google Sites .", "Have you tried SitesApp https : developers.google.com apps-script reference sites sites-app", "Documentation https : developers.google.com apps-script reference sites sites-app getsitebyurlurl", "Javascript from http : stackoverflow.com a 14781022 6088382 was used and inserted into an HTML Box on my Google Sites test page https : sites.google.com site woogietest .", "Correct me if I m wrong but that is the only way to run the required JavaScript on a Google Sites webpage ." ] }
{ "confidence": [ 43.2747802734375, 42.997013092041016, 40.3674430847168, 39.21330261230469, 39.14395523071289, 38.85700225830078, 38.84764099121094, 38.717323303222656, 38.063385009765625, 37.82743835449219, 37.82743835449219, 37.48509979248047, 37.22890090942383, 37.150352478027344, 37.06941223144531, 37.047523498535156, 36.89937973022461, 36.82947540283203, 36.75, 36.53949737548828 ], "content": [ "Question : I m trying to create a custom background theme for a Google Sites site . Awhile back I did some googling and found some sites with a background-image and instructions of how to change table dimensions to create a google-sites make shift theme . I can no longer find any of these themes anywhere . Does anyone know where I can find these templates or instructions how to create my own themes Comment : despite the question being so old I feel it doesn t belong here on SO I think it should be moved to a more appropriate site of the network .. . Answer : I was wondering the same thing and came accross : .. . .. . You can t upload your own themes only the ones provided by Google . You can change the background images and most of the colours on the site however . One of the other users on this forum has made this own themes this way and provided instructions .. . .. . However you can create Page Templates http : www.steegle.com websites google-sites-howtos page-templates and then use that custom layout for multiple pages .", "Question : null .. . Answer : I m building an intranet for a company with google-sites . Is there a way to import custommed fonts or icon fonts to the sites I ve been searching all over the internet but none gave me desired answer... .", "Question : null .. . Answer : I have created a Google Apps Script application and put it inside Google Sites . For simplicity I will call this application a gadget . If I don t specify the height of the gadget Google Sites will automatically add a scrollbar : .. . .. . scrollbar http : i.stack.imgur.com PcsBv.png .. . .. . I can remove the scrollbar by adding the height of the gadget statically . But because my script always adds elements dynamically I also need to have height dynamic not static . Interestingly I can change the site s height in Google developer tools by changing the CSS height of sites-canvas-main as shown below . But when I add that element and change the height in my CSS file it doesn t work . sites-canvas-main http : i.stack.imgur.com Hsl15.png .. . .. . How can I accomplish this", "Question : I have hosted a website . But now my client asks to change it to http : sites.google.com . They have registered their domain with Google . I logged in the site and saw the procedures to create a website from scratch . But is there any way to directly replace the site into google-sites . Like in my site I have included CSS files in a folder called stylesheets css and access it through the link tag . And there are several folders like that : images scripts etc . 1 . Now if I have to transfer it to Google Sites where do I create the folders and stuff I have the priviliges to login to the admin part of the site . 2 . And also is there anyway to create a database and access it in Google Sites 3 . Also I see that only HTML pages can be created . Is there a way to add PHP pages or other scripting languages 4 . Going forward will Google Sites be useful for professional web designing Can anyone provide any ideas on whether or not Google Sites is a good idea for a professional webmaster to use Comment : That isn t what Google Sites is for . It is not managed hosting . The level of customizabiity you re looking for simply isn t possible . Tell the client that it isn t possible or desirable to move your site to Google Sites . Comment : thank you . @meager .. . Answer : You should consider hosting your solution using Google s App Engine instead of Google Sites . You can set it up so it uses PHP see link below you can configure it to use your domain-name and you get enough CPU disk and bandwidth allowance to serve around five million page views for free each month if you are serving more than that their prices are extremely competitive . Google App Engine : http : code.google.com appengine docs whatisgoogleappengine.html How to setup PHP using Google App Engine : http : blog.caucho.com p 187 Comment : Thank you Rafael . That was a wonderful suggestion Comment : No problem . Good luck with your project Comment : But Google App Engine is if you want to host a web service in Cloud not a website - what I need is a website HOSTING which allows Server Side Scripting . From what I understand - Google Site don t allow any Server side Scripting --- QUOTE : It is disturbing and unexpected that googlesites is not dynamic enough to allow other popular scripting and programming-languages References productforums.google.com forum topic sites nMOQqLiW8Zs https : productforums.google.com forum topic sites nMOQqLiW8Zs google.com sites help intl en overview.html http : www.google.com sites help intl en overview.html", "Question : I have a Google Sites page . How can I embed JavaScript code in it without implementing a gadget and adding JavaScript code in that Comment : Welcome to Stack Overflow What have you tried http : whathaveyoutried.com Stack Overflow is not your personal research assistant . http : meta.stackexchange.com a 128553 133242 Comment : possible duplicate of how to add custom javascript to google-sites http : stackoverflow.com questions 10874147 how-to-add-custom-javascript-to-google-sites .. . Answer : You can read Googles documentation on how to do this here http : support.google.com sites bin answer.py hl en answer 2500646 ctx cb src cb cbid -11zqfs2rw8yfe cbrank 0 http : support.google.com sites bin answer.py hl en answer 2500646 ctx cb src cb cbid -11zqfs2rw8yfe cbrank 0", "Question : I have a Google Sites page . How can I embed JavaScript code in it without implementing a gadget and adding JavaScript code in that Comment : Welcome to Stack Overflow What have you tried http : whathaveyoutried.com Stack Overflow is not your personal research assistant . http : meta.stackexchange.com a 128553 133242 Comment : possible duplicate of how to add custom javascript to google-sites http : stackoverflow.com questions 10874147 how-to-add-custom-javascript-to-google-sites .. . Answer : Refer to this article http : blog.ncce.org 2013 12 10 put-javascript-into-google-sites you need to create a Google Gadget file that you can access from a server to share the file and write the following code : .. . .. . Save the file as Name.xml and upload it to a file hosting service that has public access not password protected . Then insert the link as following : .. . .. . Insert . . More Gadget Add gadget by URL .. . .. . enter image description here http : i.stack.imgur.com 6BDgg.png Once you copy your url to the saved .xml Google Gadget code you will have javascript embedded through your very own custom Google Gadget .", "Question : I m developing an application in which I ve wrote a function .NET to create a Google Site . It works perfectly fine up until I m testing for a while and have created and deleted several sites in a relatively short time span : I eventually end up with the 403 Forbidden : Insufficient storage quota response . It s usually fixed after a day or 2 but it s not the first time I ve encountered this issue so I thought I should share it and see if anyone else has encountered the same thing . I ve read the article about Google Sites storage quota at https : support.google.com sites answer 96770 hl en but it doesn t seem like I ve hit any of the quota . The sites that are created are empty templates so the site quota can t be reached . They re located under a https : sites.google.com a domain . To make sure it isn t a configuration issue I ve tested the raw requests in the OAuth 2.0 Playground which can be found on https : developers.google.com oauthplayground resulting in the same error response . Steps to reproduce : .. . .. . 1 . I ve created multiple sites under the same Google Sites domain .. . 2 . I m eventually unable to make more sites due to the 403 Forbidden - Insufficient storage quota error .. . 3 . Even after deleting multiple sites the issue still persists .. . .. . Because the code I ve written is quite long and not really relevant I ve made a GitHub snippet for the ones who are interested : https : gist.github.com Cyanized 8ef24ff1de6454fd4ccd6466d591a53d .. . .. . Is there something I m overlooking or is it a known issue bug Many thanks in advance .. . Answer : I contacted Google Apps Support and they ve linked me an article with the answer . The maximum amount of sites you can create on an account in a week is 5 . If you go over that amount you will get the error I mentioned . When the week is over you re able to create more sites again . This is a global restriction and can t be changed at the current time . Reference : https : support.google.com sites answer 117477 hl en", "Question : null .. . Answer : I feel like this should be really obvious but I can t find it anywhere https : developers.google.com google-apps sites docs 1.0 developers guide protocol ContentFeed in the docs https : developers.google.com google-apps sites docs 1.0 reference feed Content . How do you look up the entry for a specific File Cabinet attachment All I can think of is downloading the entire multi-part content feed https : developers.google.com google-apps sites docs 1.0 reference feed Content for the site and then searching that for the one file I need but that s such a waste of time when I need ONE file amongst a few hundred . Is there no other way Example .. . .. . I have a Google site with a few sub-pages : .. . .. . Each page is a File Cabinet type page with several photo attachments : .. . .. . Everything works until I need to replace the photo using the Google Sites Google Data API https : developers.google.com google-apps sites docs 1.0 developers guide protocol UpdatingContent . Replacing the photo requires that I know its entry ID which I need a way to look up . I found each page s entryID by looking it up in the content feed https : developers.google.com google-apps sites docs 1.0 reference feed Content : .. . .. . This works with sub pages too : .. . .. . But for whatever infuriating reason you can t do that with file attachments : .. . .. . What am I missing", "Question : Is it possible to support different locales not making use of Google Web Translation Tool Web translation does not seems to be working with Google Sites once generated code javascript is considered invalid by the Google Sites page-editor Edit HTML . Head based meta-tags are also not supported . .. . Answer : Make a new site for each locale and synchronize their page structures . You could also create machine translated versions using this script although they would need fixing by a native speaker :", "Question : I have a Google Sites page . How can I embed JavaScript code in it without implementing a gadget and adding JavaScript code in that Comment : Welcome to Stack Overflow What have you tried http : whathaveyoutried.com Stack Overflow is not your personal research assistant . http : meta.stackexchange.com a 128553 133242 Comment : possible duplicate of how to add custom javascript to google-sites http : stackoverflow.com questions 10874147 how-to-add-custom-javascript-to-google-sites .. . Answer : You can run some JavaScript code but during page editing it will be automatically wrapped into a trivial gadget and when rendering page it will be executed inside of iframe and won t be able to interact with DOM of main page - this is prevented by security mechanisms of browser and Google Sites . So anything your script do it will do in a sandbox of it s iframe who s outer size is defined at page design-time if you don t want to implement a gadget . And even if you implement a gadget with your script inside it will also run in the same iframe sandbox . But gadget has some advantages for example access to API that allows to change size of iframe dynamically and some others .", "Question : I m trying to include a simple javascript to Google Sites but I get nothing when pressing the button . I put the code inside an HTML Box . The code works perfectly when tested locally . Here is my code : .. . .. . Is there something I forgot to make it work Comment : Can you give us a link-to the the live site Comment : Sorry I can t . It s a private site and the owner doesn t want to give acces . .. . Answer : Google Sites will filter out operations it considers unsafe . Some details here http : www.mydigitallife.info how-to-add-javascript-or-custom-contents-to-google-sites-with-gadget but was unable to find official documentation with quick search . As another answer mentions your variables need var declarations . This is required because without this the variables will become global to the window and potentially could be used to escape whatever sandbox Google is putting around the sites javascript support potentially causing security concerns . So to fix :", "Question : I have a question I have gone through Google Sites API and Report API as well . but im not getting which all sites are owned by user and which are sites user has access to or domain wise access to.. . .. . .. . is there any API available for this Need quick help. . Thanks a lot in advance.. . Thanks .. . Answer : Have you tried SitesApp https : developers.google.com apps-script reference sites sites-app You can retrieve all the sites and query the ownership and other share settings using the Site class .", "Question : null .. . Answer : If I set target value top or parent for anchor or form tag in Google sites insert html it will be automatically changed to parent after saving it . For example I give below html to insert .. . .. . After saving this html target value changed to blank . How to set target attribute in Google sites html", "Question : I have a Google Sites page . How can I embed JavaScript code in it without implementing a gadget and adding JavaScript code in that Comment : Welcome to Stack Overflow What have you tried http : whathaveyoutried.com Stack Overflow is not your personal research assistant . http : meta.stackexchange.com a 128553 133242 Comment : possible duplicate of how to add custom javascript to google-sites http : stackoverflow.com questions 10874147 how-to-add-custom-javascript-to-google-sites .. . Answer : You can use the HTML Box gadget here is where you find it in the menu : .. . .. . selecting HTML Box in the menu . http : i.stack.imgur.com 0tZq7.png .. . .. . It allows you to Insert custom HTML CSS and Javascript https : support.google.com sites answer 2500646 hl en ref topic 1046075 . Caveats : .. . .. . your HTML is loaded in an iframe .. . your code cannot interact with content outside of the HTML Box .. . the HTML Box does not currently support iframe .. . your script cannot create any script img or a tags", "Question : I have created sites and group in google . And i don t want to user can create new sites or new group . So how to restrict the option to users .. . Answer : I think no if you have an google account you can create a google-sites . I think it s just Google Group can be restricted to create a group .", "Question : null .. . Answer : Is there a way to draw some 2D shapes in a Google Sites page using Javascript without jumping through all the extra hoops to create a Google Gadget as described at How do I embed JavaScript code into a Google Sites page http : stackoverflow.com questions 10357716 how-do-i-embed-javascript-code-into-a-google-sites-page .. . .. . I want help my daughter use Javascript to draw some 2D shapes in a Google Sites page using the functions described in the Khan Academy Hour of Code lesson at https : www.khanacademy.org computing hour-of-code hour-of-drawing-code .. . .. . Simple drawing command like these work fine in the Khan Academy editor : .. . .. . And the W3CSchools HTML5 Canvas tutorial explains that Javascript needs to be enclosed in an HTML script-tag like this example from the tutorial : .. . .. . But when I copy-paste this code into the Google Sites HTML source editor it displays a WARNING dialog that says Your HTML contains some tags that are not permitted . These have been removed from your changes . And when I try inserting an HTML Box gadget which claims to support HTML CSS and Javascript https : support.google.com sites answer 2500646 hl en and then copy-paste this same code into the source editor of the HTML Box gadget it converts my code into entity-escaped HTML that looks like this : I added line-breaks and indentation for slightly improved clarity .. . .. . Creating a custom Google Gadget and then inserting it into the page seems like a bridge too far at this early stage in my daughter s programming education so I m hoping there s a relatively easy way to help her publish her 2D Javascript art on a Google Sites page . Comment : You will need to add an Apps Script gadget to the site then the Apps Script inside the Apps Script gadget must be a stand alone web app . There is a little bit of set up that you need to do for the web app but after you ve done that you can just write HTML as you like . All you need is a doGet function to process your HTML file and push it out to the browser . You really don t even need to write any code just copy the code from this documentation : Google Documentation - Serve HTML https : developers.google.com apps-script guides html serve html as a web app", "Question : Is there a way to use responsive-design principles with Google Sites https : sites.google.com . Has anyone tried that . Could you direct me to a sample site . I looked at this google help topic https : web.archive.org web 20130118125736 http : support.google.com sites bin answer.py hl en answer 1260297 topic 1260296 ctx topic but then that is supposedly about exclusively mobile sites . My main focus is a normal website which is optimized for web rather than primarily a mobile site . Alternatively would Blogger be a better option in this case as that allows to change CSS . Comment : You would have to have direct access to the CSS to make anything responsive so I think you answered your own question with Blogger . .. . Answer : I think your negative impression is right . It doesn t implement the features you d expect in responsive-design . The key to your question is that Google Sites don t use a viewport declaration meta viewport in the head element . If you don t have that then device browsers treat you as a legacy desktop-only website . They assume you ll break completely below 830px and set a page min-width accordingly . That doesn t sound much like responsive-design to me . Google Sites don t let you write your own CSS or HTML HEAD so you can t implement a more responsive-design yourself . To be fair you can choose to not set a fixed page width . Also navigations buttons will reflow on relatively narrow windows if you re using the horizontal navigation feature . The latter isn t great design but at least it s degrading gracefully . There is an option Automatically adjust site to mobile-phones under Manage site - General . However many people suggest it s better not to use it : . I tried enabling it on an old site https : sites.google.com site jardinepoetryhistory previewing the page and selecting preview in mobile . At least on Firefox on my original netbook 800px width it was not responsive . It didn t expand to use the 800px screen properly . As an aside the line-wrapping or absence of it is a pre-existing issue with my site . You could blame this on me for not testing it : . However it illustrates a limitation of the WYSIWYG editor in Google Sites . It doesn t show check for or filter out the formatting that causes this problem . google site mobile preview http : i.stack.imgur.com bIGwx.png", "Question : Is there a way to use responsive-design principles with Google Sites https : sites.google.com . Has anyone tried that . Could you direct me to a sample site . I looked at this google help topic https : web.archive.org web 20130118125736 http : support.google.com sites bin answer.py hl en answer 1260297 topic 1260296 ctx topic but then that is supposedly about exclusively mobile sites . My main focus is a normal website which is optimized for web rather than primarily a mobile site . Alternatively would Blogger be a better option in this case as that allows to change CSS . Comment : You would have to have direct access to the CSS to make anything responsive so I think you answered your own question with Blogger . .. . Answer : Mobile yes responsive no . I was messing with Google Sites today and you can make a site mobile friendly I had to come here to get started . I just used the Blank Template to mess around with . You do need to activate like others that have mentioned : .. . .. . Options gear icon Manage site scroll down to Mobile Check. . Automatically adjust for mobile-phones . Yeah let s bury that option way down at the bottom .. . .. . Considering the whole mobile push Google implemented in the spring of 2015 this should be ON by default for any newly created Google Site . .. . .. . Just selecting that option makes an OK basic mobile site . Not a responsive site . So on my iPhone it does scale photos correctly to fit the device and switches the main horizontal menu to the hamburger icon menu . But collapsing the desktop browser window does not produce responsive results . https : sites.google.com site rwstws51 .. . .. . As a test I uploaded a way too large photo 2.5mb to see what would happen . Running the site through Google PageSpeed Insights it did not display any optimize photos warning so seems to serves up an optimized photo for phones and desktops . I guess the basic theme is actually called Ski . I tried out the Legal Pad theme and it was totally borked on mobile . I think due to the header and content area background images . .. . .. . To me Google Sites is ideal if you are already heavy into Google s other products.. . drive docs Google+ webmastertools analytics etc.. . As it has links to add those types of items when editing . Or need a quick site for collaborating as you can easily set the site access like YouTube Drive items . Also you are very limited as to what html you can added . Trying to add a script-tag gets stripped out when attempting to save . So again depending on the use there are definitely other options out there .", "Question : null .. . Answer : I create an application using google appscript and bind it into google-sites and google-sites render my application as iframe . The problem google-sites render the iframe using scrollbar http : i.stack.imgur.com bAmeM.png . Is it possible somehow to remove the scrollbar from my application You can see the application here https : sites.google.com site widiagadgets projektsteckbrief .. . .. . For any help I would appreciate Comment : You may need to use parent.document.getElementById userHtmlFrame .style.overflowY hidden for now as stated in this thread https : code.google.com p google-apps-script-issues issues detail id 5164 . Comment : Hi . Thanks for the answer . But it still doesn t work :", "Question : null .. . Answer : Can we connect Google Sites Web application to Sql Database Please help me to find if i can connect Sql DB as the backend for Google Site Web Application" ] }
[ "yes-answer-long", "yes-answer-short" ]
open-source
UNK_RELATION
flashdevelop@ide@64
flashdevelop -- flashdevelop is a popular free and open-source @placeholder for actionscript and haxe .
{ "confidence": [ 53.30475616455078, 44.79641342163086, 44.50746154785156, 44.18751525878906, 43.97291564941406, 42.760955810546875, 42.69003677368164, 40.55760955810547, 40.55760955810547, 40.45682907104492, 40.45682907104492, 40.45682907104492, 40.45682907104492, 40.45682907104492, 40.29486846923828, 39.45463562011719, 39.45463562011719, 38.984344482421875, 38.78418731689453, 38.74214553833008, 38.70325469970703, 38.253482818603516, 38.22985076904297, 38.22985076904297, 38.22985076904297, 38.048492431640625, 38.048492431640625, 38.048492431640625, 37.78199768066406, 36.633270263671875, 36.580841064453125, 36.580841064453125, 36.580841064453125, 36.53781509399414, 36.53781509399414, 36.53781509399414, 36.04911804199219, 36.04911804199219, 36.04911804199219, 35.535621643066406, 35.535621643066406, 35.535621643066406, 35.535621643066406, 35.535621643066406, 35.535621643066406, 35.535621643066406, 35.00565719604492, 35.00565719604492, 35.00565719604492, 34.334468841552734, 34.334468841552734, 34.334468841552734, 33.49497985839844, 33.49497985839844, 33.49497985839844, 33.49497985839844, 33.49497985839844, 32.919246673583984, 32.4927864074707, 32.4927864074707, 32.4927864074707, 32.4927864074707, 32.4927864074707, 32.4927864074707, 31.2916316986084, 31.2916316986084, 31.2916316986084, 31.2916316986084, 31.2916316986084, 31.2916316986084, 31.2916316986084, 31.2916316986084, 31.2916316986084, 31.2916316986084, 30.906972885131836, 30.906972885131836, 30.906972885131836, 30.906972885131836, 30.906972885131836, 30.906972885131836, 30.500892639160156, 30.499736785888672, 29.498701095581055, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672, 29.39629364013672 ], "content": [ "I use FlashDevelop haxe", "I m using FlashDevelop and it s ActionScript Documentation Generator .", "FlashDevelop", "Im using nme 3.5.5 haxe 2.10 and flashdevelop 4.4.1 .", "Within Flashdevelop press F10 to open the Settings window .", "I m new to ActionScript development and am using the FlashDevelop IDE .", "Developing in FlashDevelop .", "I m making a game in actionscript using the FlashDevelop tool and the FlashPunk game-engine .", "I also forgot to add that the FlashDevelop project is an Actionscript Project .", "All this is done through flashdevelop .", "I m writing this in FlashDevelop .", "Or can it be a bug in FlashDevelop", "Maybe FlashDevelop is a buggy IDE", "With flashdevelop it works like this :", "Screenshot of Flashdevelop http : i.stack.imgur.com giwHr.png", "This is a AS3 project created in FlashDevelop .", "But FlashDevelop makes it automatically .", "Posts with specific Flashdevelop info from setting it up to creating css swfs modules rsl etc are tagged with Flashdevelop : http : mattreyuk.wordpress.com tag flashdevelop", "I m using FlashDevelop as my IDE .", "Sorry I forgot the most important part close FlashDevelop and re-open it .", "Then I found FlashDevelop learned that Flex SDK and compilers are free .", "I m authoring this in FlashDevelop .", "To activate interactive debugging with haxe Flash FlashDevelop you have to add the fdb switch and network-sandbox .", "So I created a new Haxe JS project in FlashDevelop and installed CreateJS with haxelib install createjs .", "I ve created a new project using Flambe a Haxe framework and opened it in the FlashDevelop IDE .", "I don t think they have FlashDevelop for Mac though .", "Today s my first day with Flex and FlashDevelop .", "FlashDevelop is aware about this and Code-completion works fine .", "If so how would FlashDevelop detect it .", "Check stackoverflow.com questions 6928456 http : stackoverflow.com questions 6928456 flashdevelop-building-ios-with-air-and-flashdevelop I assume you intend to crosscompile to Objective-C", "I normally use FlashDevelop for the IDE .", "I m trying to embed a font in FlashDevelop .", "I am using FlashDevelop to program .", "I compile an openfl project from flashdevelop to neko .", "This is for AS3 FlashDevelop Basically I m super new to this .", "It s the same setting as in FlashDevelop just a different name .", "I am not sure if this makes a difference but I am writing my ActionScript in FlashDevelop with compilation done in the Flash IDE .", "I m creating a game in ActionScript 3.0 using the FlashPunk game-engine and the FlashDevelop SDK .", "I m using FlashDevelop actionscript-3 and fxg graphics build with Illustrator exported as fxg 2.0 .", "This is nice but unfortunately in FlashDevelop there is no code-completion on e.g .", "Can I safely install FlashDevelop on my PC", "All coding is done in pure actionscript3 in FlashDevelop .", "Installed latest FlashDevelop Flex+AIR SDK TortoiseGit .", "Please don t send me to FlashDevelop forum .", "This might be relevant I use flashdevelop IDE .", "Get FlashDevelop and it will download the important stuff for you .", "However since I m using FlashDevelop I don t know where to find that .", "You can use a custom .hxml file to build your project in FlashDevelop .", "It looks like FlashDevelop is just a Flash editor but Flash doesn t run on iOS .", "Create a new blank openfl project in FlashDevelop .. . 2 .", "I am developing an android application in FlashDevelop .", "All my code is written in and compiled in FlashDevelop .", "I am a beginner with Flash and I am having issues with FlashDevelop .", "http : stackoverflow.com questions 3664944 flashdevelop-specify-an-hxml-file and now it works .", "I m making a game in FlashDevelop using this technique and it works well .", "I take it that the expand collapse region functionality is a FlashDevelop-specific feature", "Then on flashdevelop you have to add it as a library Project settings - Compiler options - Libraries .", "The framerate in Flash defaults to 12 while FlashDevelop defaults to 30 so if you don t manually set the framerates any animations will play much faster in FlashDevelop .", "Is debugging AIR content on the physical device possible with FlashDevelop remote debugging", "The answer was for FlashDevelop which has in the main menu : Debug Start Remote Session .", "Using FlashDevelop you even have rich code-completion on objects such as button .", "Maybe some kind of settings in FlashDevelop or parameters to the MXMLC compiler", "I just downloaded FlashDevelop from flashdevelop.org http : flashdevelop.org and uploaded it to Virustotal .", "This is just an example my aim is to build complex graphics with illustrator and use it in FlashDevelop .", "To get flashdevelop work with an HaxePunk project this is what I usually do : .. . .. . 1 .", "Substitute files from the haxepunk project into the flashdevelop one .. . 4 .", "Turns out that the previous FlashDevelop update set the program to run the 64bit version .", "In particular how exactly are you using FlashDevelop and Flash CS3 in tandem", "Check what framerate Flash is set to and what framerate FlashDevelop is set to .", "Using FlashDevelop I ve got a bit of code to detect keyboard-events .", "I m unable to run any Flash Mobile AS3 project in FlashDevelop .", "In FlashDevelop I have my AIR application descriptor application.xml .", "The file exclusions may still be relevant but I m not familiar with FlashDevelop to say .", "How can you embed a font in as3 using FlashDevelop", "I have searched the internet looking for a definitive answer to the question of can FlashDevelop deploy to iOS .", "Via Adobe AIR you can compile for iOS and with the AIR SDK FlashDevelop can compile AIR iOS .", "I have a macbook pro and use bootcamp to boot in run windows primarily to use flashdevelop and it works great .", "-1 question was using flashdevelop with clearly mentioning op don t want to use the flash-builder .", "Your AS3 class path is pointing at a directory to low in the flashdevelop library folder structure to pick the mx class prototypes .", "Flashdevelop should now be aware of the mx libraries thus autocomplete should now also work .", "I m using flashDevelop and Flixel for my game so right now my floder contains assets source hxproj file and a xml file .", "I have worked with FlashDevelop before and with Haxe but one simple thing that I ve never understood is what occurs when choosing a specific project type for a new project .", "I ve been learning Flex using Flashdevelop and working from Adobe Flex 3 : Training from the source which is a great book .", "I did the windows setup on two machines yesterday first one just needed a FlashDevelop restart the second a full reboot .", "The tutorial wasn t flashdevelop specific so it showed how to make an xml file convert image using swfmill and editing the compile.hxml .", "I was wondering how you d go about this using Flashdevelop as I can t find any tutorials about it .", "Also I understand swfmill is bundled with Flashdevelop but where exactly and how d you use it", "Is there any reason why my swf would just show up blank after I run it in FlashDevelop", "I m not sure what you are trying to do I have a feeling you are expecting something that FlashDevelop is not going to do .", "All that was needed was a build.hxml file : .. . .. . And then specify a hxml file : FlashDevelop -- Specify an HXML file", "The FlashDevelop way of doing the -lib createjs thingy is : go to the menu project- properties- compiler options- add createjs to the Libraries list .", "I am using FlashDevelop and have got to trying to run the program after adding the logo.png .", "The link-to the tutorial is here https : precisioncode.wordpress.com 2012 09 16 a-tutorial-in-as3-with-flashdevelop .", "I run the PackageApp.bat in flashdevelop the same way I run it when I push the game to my iPhone 5 .", "Specs : .. . .. . FlashDevelop 5.0 .. . .. . SDK Air17.0 + FLex 4.6.0 .. . .. . Android Nexus 5 Android 5.1.1", "I m making a project in FlashDevelop and today it will not load external files even though it had been previously .", "In FlashDevelop set Use Network Services to false Project Properties - Compiler Options tab .", "I think i may be wrong that flashdevelop references are just autocompletion and not actually passed to the compiler .", "I use haxelib dev mylibrary path to mylib src and then use -lib mylibrary when compiling or from FlashDevelop ." ] }
{ "confidence": [ 67.27371978759766, 59.15780258178711, 57.98589324951172, 56.763328552246094, 55.6153450012207, 55.432552337646484, 54.823001861572266, 53.541011810302734, 52.2777099609375, 52.22337341308594, 51.986061096191406, 51.982948303222656, 50.84866714477539, 50.44404602050781, 50.24494171142578, 50.24494171142578, 49.80516815185547, 47.6787109375, 47.39800262451172, 46.84092712402344 ], "content": [ "Question : I want to start Flash Flex ActionScript development and got lost with the technologies documentation and tools available . Searches pointed me to Adobe FlexBuilder and Adobe Flash Designer CS3 CS4 . Then I found FlashDevelop learned that Flex SDK and compilers are free . Also you can make a complete Flash application in FlashDevelop using FLA dummy method . Question - what traning materials I should start from to understand how to develop Flash applications using FlashDevelop I look for training materials guides tutorials screencast books amazon kindle for beginners in Flash using free tools either FlashDevelop or TextEditor + compiler but not for beginners in programming know few languages already . .. . Answer : Just to add one more technology and option to the pot you might want to look into haXe http : haxe.org . It is a language that FlashDevelop natively supports which can compile to several platforms including SWFs both AVM1 and AVM2 that run in Flash Player . If you use Flash as your target-platform for your haXe program you get full access to the Flash API not sure about Flex though . Comment : haXe just added complexity to already complex picture of SWF development : Thanks .. . seems haXe can be also used for iPhone development which is interesting as I never climbed ObjectiveC learning curve .", "Question : I have searched the internet looking for a definitive answer to the question of can FlashDevelop deploy to iOS . All the thing s I have read are not very clear and not very certain . I don t have enough money to afford Adobe Flash or Flash Builder so provided I have a Mac is FlashDevelop a suitable replacement that I can make flash games for iOS thanks David Comment : I don t think I understand the question . It looks like FlashDevelop is just a Flash editor but Flash doesn t run on iOS . Comment : Check stackoverflow.com questions 6928456 http : stackoverflow.com questions 6928456 flashdevelop-building-ios-with-air-and-flashdevelop I assume you intend to crosscompile to Objective-C Check HaXe too .. . Answer : Although this doesn t answer your question directly I think this may still help you . Adobe provides free copies of Flash Builder Standard Ed . only not Premium if you meet certain conditions . We provide free copies of Adobe Flash Builder 4.5 Standard to : .. . .. . Students faculty and staff of eligible educational institutions .. . Software developers who are affected by the current economic condition and are currently unemployed .. . Event attendees who receive a special promotional code at their event .. . .. . http : www.adobe.com devnet-apps flex free index.html Comment : too bad it doesn t cover open-source projects : Comment : -1 question was using flashdevelop with clearly mentioning op don t want to use the flash-builder .", "Question : I want to start Flash Flex ActionScript development and got lost with the technologies documentation and tools available . Searches pointed me to Adobe FlexBuilder and Adobe Flash Designer CS3 CS4 . Then I found FlashDevelop learned that Flex SDK and compilers are free . Also you can make a complete Flash application in FlashDevelop using FLA dummy method . Question - what traning materials I should start from to understand how to develop Flash applications using FlashDevelop I look for training materials guides tutorials screencast books amazon kindle for beginners in Flash using free tools either FlashDevelop or TextEditor + compiler but not for beginners in programming know few languages already . .. . Answer : I ve been learning Flex using Flashdevelop and working from Adobe Flex 3 : Training from the source which is a great book . I ve blogged my notes on the lessons and what I had to do to get some things to work using Flashdevelop rather than Flex Builder . Posts with specific Flashdevelop info from setting it up to creating css swfs modules rsl etc are tagged with Flashdevelop : http : mattreyuk.wordpress.com tag flashdevelop", "Question : I want to simply create a reusable library for all my future projects that I m going to be doing in Haxe . I understand there aren t library projects in Haxe but rather you would just have a collection of source files somewhere and import them as needed . Right I ve created a new project using Flambe a Haxe framework and opened it in the FlashDevelop IDE . It compiles and runs fine . Now I want to include my library so I go into the Project Properties under the Classpaths tab and set the relative-path to my library . It shows up correctly in the References and even has the proper code-completion when I type import .. . yet when I compile it fails on the import line stating : Class not found : mlg.Engine .. . .. . mlg being the package and Engine being the class type .. . .. . .. . .. . Is there anything I m missing .. . Answer : I think i may be wrong that flashdevelop references are just autocompletion and not actually passed to the compiler . I m not sure what s the right way to do it but I can tell you what I ve done I made a few helper classes for flambe too : P : I simply created a fake haxelib I created HaxeToolkit haxe lib name git and in name i created a .current file that contains git . Then on flashdevelop you have to add it as a library Project settings - Compiler options - Libraries . Note : there are probably other better ways to do it . Comment : I use the fake haxelib thing too.. . though a little differently . I use haxelib dev mylibrary path to mylib src and then use -lib mylibrary when compiling or from FlashDevelop . Comment : I was hoping I didn t have to do the whole haxelib thing as I m not familiar with it plus it assumes it s open-source licence which my project isn t . But it sounds like I can fake it and it ll work . Thanks for the info . I ll also try Jason s way Comment : you don t have to publish it as opensource if you want to use my orJason s way", "Question : Today s my first day with Flex and FlashDevelop . In my ActionScript file I have this line . FlashDevelop is aware about this and Code-completion works fine . But when I have this line . Then code-completion doesn t work . .. . Answer : I had the same problem . Your AS3 class path is pointing at a directory to low in the flashdevelop library folder structure to pick the mx class prototypes . 1 . Within Flashdevelop press F10 to open the Settings window . 2 . In the list on the left click on the AS3Context option . 3 . Imediately Under the group title of Language on the right hand side of the window find the AS3 Classpath option . Its value is typically set to Library AS3 Intrinsic . Change the the AS3 Classpath value to read Library AS3 . 4 . FIXED . Flashdevelop should now be aware of the mx libraries thus autocomplete should now also work .", "Question : a continuation of this question http : stackoverflow.com questions 3664148 haxe-embed-files-like-in-actionscript .. . .. . In order to embed resources in a SWF file I have to add lines to my HXML file . However since I m using FlashDevelop I don t know where to find that . Where should I put stuff I would ordinarily specify in my HXML .. . Answer : There s more detailed help about the projects settings you need in the haXe wiki http : haxe.org com ide haxefd haxe flashdevelop4 . You can use a custom .hxml file to build your project in FlashDevelop . Go to Project - Properties.. . . Choose Custom Build as compilation target . Go to the Build tab and insert the following line in the Pre-Build Command Line field assuming you named your build configuration compile.hxml and placed it in the root of the project directory : .. . .. . .. . CompilerPath haxe.exe ProjectDir compile.hxml .. . Comment : Also worth mentioning - If you have spaces in either your Haxe install path or Project path wrap them up in double-quotes individually like this : CompilerPath haxe.exe ProjectDir compile.hxml . I was struggling for a good 45mins 1hour to figure out why I kept getting Exception : The system cannot find the file specified in FlashDevelop s Output Panel . There you have it", "Question : I have searched the internet looking for a definitive answer to the question of can FlashDevelop deploy to iOS . All the thing s I have read are not very clear and not very certain . I don t have enough money to afford Adobe Flash or Flash Builder so provided I have a Mac is FlashDevelop a suitable replacement that I can make flash games for iOS thanks David Comment : I don t think I understand the question . It looks like FlashDevelop is just a Flash editor but Flash doesn t run on iOS . Comment : Check stackoverflow.com questions 6928456 http : stackoverflow.com questions 6928456 flashdevelop-building-ios-with-air-and-flashdevelop I assume you intend to crosscompile to Objective-C Check HaXe too .. . Answer : Via Adobe AIR you can compile for iOS and with the AIR SDK FlashDevelop can compile AIR iOS . I don t think they have FlashDevelop for Mac though . I have a macbook pro and use bootcamp to boot in run windows primarily to use flashdevelop and it works great . FlashDevelop s project-organization and code-completion etc is so good much better than adobe s definitely worth it .", "Question : a continuation of this question http : stackoverflow.com questions 3664148 haxe-embed-files-like-in-actionscript .. . .. . In order to embed resources in a SWF file I have to add lines to my HXML file . However since I m using FlashDevelop I don t know where to find that . Where should I put stuff I would ordinarily specify in my HXML .. . Answer : At least in the case of specifying resources you can do this by specifying a command-line argument right-click the project in the Project view select Properties.. . then click Compiler Options Additional Compiler Options and add it there .", "Question : I m a beginner in haxe and flash apps and I was trying to follow this tutorial . http : blog.neurotoxic.org post 2009 01 13 first .. . .. . I understand that Flashdevelop when previewing the project would use commands without the use of a compile.hxml to build it but I was trying to figure out how to change some of the arguments . The tutorial wasn t flashdevelop specific so it showed how to make an xml file convert image using swfmill and editing the compile.hxml . I was wondering how you d go about this using Flashdevelop as I can t find any tutorials about it . Also I understand swfmill is bundled with Flashdevelop but where exactly and how d you use it Thanks . .. . Answer : Isn t it as simple as described in second post here : http : www.flashdevelop.org community viewtopic.php t 1909", "Question : I just started trying out Haxe to make a web-app and I would like to use CreateJS which has a Haxe extern lib thingy . I m using FlashDevelop as my IDE . So I created a new Haxe JS project in FlashDevelop and installed CreateJS with haxelib install createjs . Thougg now I try to add an import to my Main.hx but it doesn t work . My import looks like : import createjs.easeljs.Ticker got that from an example just copied it but didn t work : s I also added a new map lib to my project in which I added the createjs stuff . The error I get is : src Main.hx : 3 : characters 0-31 : Class not found : createjs.easeljs.Ticker .. . .. . enter image description here http : i.stack.imgur.com dGC6a.png .. . .. . Anything else I have to do to make this work Thanks -Pablo .. . Answer : In FD goto Project- Properties then to the Compiler Options tab there you can add each required lib you installed with haxelib and don t need to copy the lib source into your project source tree . This will only be useful in case you need to modify the lib .", "Question : Today s my first day with Flex and FlashDevelop . In my ActionScript file I have this line . FlashDevelop is aware about this and Code-completion works fine . But when I have this line . Then code-completion doesn t work . .. . Answer : Works perfectly well for me w o doing anything special . But maybe your project s properties got borked . Do this : .. . .. . Open Project Properties .. . Go to Compiler Options tab .. . In Advanced - Intrinsic Libraries add the following .. . Library AS3 frameworks Flex3 Comment : +1 helped with Library AS3 frameworks Flex4 as well as for spark.components", "Question : I want to start Flash Flex ActionScript development and got lost with the technologies documentation and tools available . Searches pointed me to Adobe FlexBuilder and Adobe Flash Designer CS3 CS4 . Then I found FlashDevelop learned that Flex SDK and compilers are free . Also you can make a complete Flash application in FlashDevelop using FLA dummy method . Question - what traning materials I should start from to understand how to develop Flash applications using FlashDevelop I look for training materials guides tutorials screencast books amazon kindle for beginners in Flash using free tools either FlashDevelop or TextEditor + compiler but not for beginners in programming know few languages already . .. . Answer : A lot of help can be found on their wiki - FlashDevelop wiki http : www.flashdevelop.org wikidocs index.php title Main Page .. . .. . If you want to start developing in Flex which might be a really nice idea if you re coming from desktop development FlashDevelop will work but I would suggest to use Flex Builder first as a lot of examples you will find on the web are built using that and it s really very straight forward as it s aimed ad Flex . If you re a student you can get a free license from Adobe here https : freeriatools.adobe.com flex if you re not than there is a 30 day free trial . Comment : thanks for info .. . guess I will start from Adobe SDK documentation after reading first 2 chapters seems its not Flex Builder focused . Comment : thanks for help .. . I ended up with Programming Flex 3 from Oreilly . Comment : and I write code in TextMate rather than via FlashDevelop and VM to run Windows", "Question : I have searched the internet looking for a definitive answer to the question of can FlashDevelop deploy to iOS . All the thing s I have read are not very clear and not very certain . I don t have enough money to afford Adobe Flash or Flash Builder so provided I have a Mac is FlashDevelop a suitable replacement that I can make flash games for iOS thanks David Comment : I don t think I understand the question . It looks like FlashDevelop is just a Flash editor but Flash doesn t run on iOS . Comment : Check stackoverflow.com questions 6928456 http : stackoverflow.com questions 6928456 flashdevelop-building-ios-with-air-and-flashdevelop I assume you intend to crosscompile to Objective-C Check HaXe too .. . Answer : Good tutorials .. . .. . Here are some detailed tutorial here to publish to iOS from FlashDevelop - this kind of template will be integrated in FD in the future : .. . .. . http : www.codeandvisual.com 2011 exporting-for-iphone-using-air-27-and-flashdevelop-part-two-creating-an-iphone-project .. . http : connorullmann.com 2011 04 air-2-6-and-ios .. . .. . Workflow optimization .. . .. . Please note that since these tutorials the AIR SDK was improved and you can package your IPA in interpreter mode it greatly cuts packaging time and it runs about as fast unless doing really CPU intensive computations . In your packaging command use ipa-test-interpreter or ipa-debug-interpreter instead of the respective ipa-test and ipa-debug options . This is something to locate and change in the .BAT scripts which do the packaging job .", "Question : I m getting small dialog boxes that pop-up saying I O Error occurred . What causes this and how should I fix this Edit : what happens is that after i run my flash game FlashDevelop will try to connect to the Flash debugger but apparently fail and give me the above error . I have both the debug standalone player and the ActiveX debug control for Firefox . Comment : anyone anyone at all .. . Answer : To activate interactive debugging with haxe Flash FlashDevelop you have to add the fdb switch and network-sandbox . To do that open Project - Properties - Compiler Options - Directives and add the following two lines : .. . .. . That should be all you need . After that you should be able to set breakpoints inspect object fields and local-variables and profile your code . Comment : That did it Thanks", "Question : Today s my first day with Flex and FlashDevelop . In my ActionScript file I have this line . FlashDevelop is aware about this and Code-completion works fine . But when I have this line . Then code-completion doesn t work . .. . Answer : To include any swc to code-complete add it s parent folder to the swc libraries option . Some people claim that using intrinsic libraries works but it didn t for me . Here s the paths to both settings :", "Question : Today s my first day with Flex and FlashDevelop . In my ActionScript file I have this line . FlashDevelop is aware about this and Code-completion works fine . But when I have this line . Then code-completion doesn t work . .. . Answer : It seems like you are missing the Flex framework in your build path . Have you looked at the libraries being included", "Question : After a successfull compile of : http : nickalie.com posts 67 when I try to see it in the browser I get a Uncaught ReferenceError : createjs is not defined right here on the resulting compiled create.js file : .. . .. . Uncaught ReferenceError : createjs is not defined .. . .. . Edit : .. . .. . Ok I added both easeljs tweenjs files no error but nothing else happens . Comment : I haven t used the createJS library for Haxe but it s possible that the library only includes the externs ie the info for the compiler not the actual CreateJS code . Try including the official CreateJS javascript files before your haxe-generated javascript files . I have an answer here that describes a bit of how externs work : stackoverflow.com a 12344618 180995 http : stackoverflow.com a 12344618 180995 Comment : If you ve verified that createjs has been included and it s loaded before your haxe javascript is let me know and I ll take a closer look.. . Comment : Updated question . .. . Answer : Ok I was abble to get this working with the help of haxe iRC resident @Jan Flanders . All that was needed was a build.hxml file : .. . .. . And then specify a hxml file : FlashDevelop -- Specify an HXML file http : stackoverflow.com questions 3664944 flashdevelop-specify-an-hxml-file and now it works .", "Question : I am new to OpenFL and were trying to get it to work for the first time . I have installed haxe lime and openfl via command-prompt and installed Visual Studio Express 2010 using lime setup windows . But when I try to compile a brand new OpenFL project in Flash Develop targeting c++ I get the error Error : Could not guess MINGW ROOT tried c : MinGW - please set explicitly . Anyone had this problem before or is there anything I have to configurate Thanks . Comment : What is the exact you try to execute to build our project .. . Answer : Hi your system is not yet setup for windows check this link : .. . .. . http : www.openfl.org documentation advanced-setup platforms setup-windows .. . .. . Basically you need to install Visual C++ and other stuff luckily openfl have this automated . Just open the command-prompt where openfl is and type : .. . .. . Hope this helps Comment : Sorry I forgot the most important part close FlashDevelop and re-open it . Comment : I did the windows setup on two machines yesterday first one just needed a FlashDevelop restart the second a full reboot .", "Question : I m getting small dialog boxes that pop-up saying I O Error occurred . What causes this and how should I fix this Edit : what happens is that after i run my flash game FlashDevelop will try to connect to the Flash debugger but apparently fail and give me the above error . I have both the debug standalone player and the ActiveX debug control for Firefox . Comment : anyone anyone at all .. . Answer : I didn t have haxe but I had the same error and to get rid of it I followed the advice from here http : www.flashdevelop.org community viewtopic.php f 13 t 7083 : .. . .. . Specify the path to the debug player flashplayer-10 sa debug.exe or FlashPlayerDebug.exe in the SDK in FlashDevelop Tools Program settings FlashViewer", "Question : I m trying to compile my nme project for android but until this moment it has been impossible for me . The error message that I m getting is .. . .. . Running process : C : Program Files x86 FlashDevelop Tools fdbuild fdbuild.exe C : Users Andr s Documents myOP project.hxproj -ipc cf7bbe3a-8e0c-47e5-aac3-4d442ae964f2 -version 2.10 -compiler C : Motion-Twin Haxe -notrace -library C : Program Files x86 FlashDevelop Library -target android Building project haxelib run nme build C : Users Andr s Documents myOP project.nmml android haxelib run hxcpp Build.xml haxe -Dactuate -Dandroid -Dcpp -Dfullscreen -Dhaxe 208 -Dhaxe 209 -Dhaxe 210 -Dmobile -Dnme -Dnme install tool -Dsys -Dtrue Creating obj android pch haxe hxcpp.h.gch.. . arm-linux-androideabi-g++ -Iinclude --sysroot C : Users Andr s Documents AndroidNDK platforms android-5 arch-arm -IC : Users Andr s Documents AndroidNDK sources cxx-stl gnu-libstdc++ 4.4.3 include -IC : Users Andr s Documents AndroidNDK sources cxx-stl gnu-libstdc++ 4.4.3 libs armeabi include -DHXCPP VISIT ALLOCS -Dhaxe 210 -IC : Motion-Twin Haxe lib hxcpp 3 0 1 include -Iinclude -fpic -fvisibility hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -D ARM ARCH 5 -D ARM ARCH 5T -D ARM ARCH 5E -D ARM ARCH 5TE -D LINUX STDDEF H -Wno-psabi -march armv5te -mtune xscale -msoft-float -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit 10000 -DANDROID -Wa --noexecstack -O2 -DNDEBUG -c -frtti -o obj android pch haxe hxcpp.h.gch C : Motion-Twin Haxe lib hxcpp 3 0 1 include hxcpp.h C : Motion-Twin Haxe lib hxcpp 3 0 1 include hxcpp.h : 14 : 20 : error : typeinfo : No such file or directory In file included from C : Motion-Twin Haxe lib hxcpp 3 0 1 include hxcpp.h : 193 : C : Motion-Twin Haxe lib hxcpp 3 0 1 include Array.h : 205 : 21 : error : algorithm : No such file or directory In file included from C : Motion-Twin Haxe lib hxcpp 3 0 1 include hxcpp.h : 185 : C : Motion-Twin Haxe lib hxcpp 3 0 1 include hx Object.h : In member function void hx : : ObjectPtr : : CastPtr hx : : Object : C : Motion-Twin Haxe lib hxcpp 3 0 1 include hx Object.h : 143 : error : must include before using typeid In file included from C : Motion-Twin Haxe lib hxcpp 3 0 1 include hxcpp.h : 193 : C : Motion-Twin Haxe lib hxcpp 3 0 1 include Array.h : In member function void Array obj : : sort Dynamic : C : Motion-Twin Haxe lib hxcpp 3 0 1 include Array.h : 401 : error : stable-sort is not a member of std In file included from C : Motion-Twin Haxe lib hxcpp 3 0 1 include hxcpp.h : 194 : C : Motion-Twin Haxe lib hxcpp 3 0 1 include Class.h : In function bool hx : : TCanCast hx : : Object : C : Motion-Twin Haxe lib hxcpp 3 0 1 include Class.h : 154 : error : must .. . .. . include before using typeid Called from line 1 Called from BuildTool.hx line 1529 Called from BuildTool.hx line 673 Called .. . .. . from BuildTool.hx line 708 Called from BuildTool.hx line 842 Called from BuildTool.hx line 885 Called from BuildTool.hx line 194 Uncaught exception - Error creating pch : 1 - build cancelled Error : Build failed Build halted with errors haxelib.exe . Done 1 .. . .. . okay . I ve already used the nme setup android command . My .hxcpp config.xml file : .. . .. . ANDROID SDK : C : Users Andr s Documents eclipse+android sdk .. . .. . ANDROID SETUP value true .. . .. . ANDROID NDK ROOT : C : Users Andr s Documents AndroidNDK .. . .. . ANT HOME : C : Development Apache Ant .. . .. . JAVA HOME value : C : Program Files Java jdk1.7.0 11 .. . .. . And finally I verified my environmental variables . Here they are . User variables .. . .. . HAXEPATH : C : Motion-Twin haxe .. . .. . NEKO INSTPATH : C : Motion-Twin neko .. . .. . PATH : HAXEPATH NEKO INSTPATH .. . .. . system variables .. . .. . Path : WINDOWS system32 JAVA HOME bin .. . .. . I added C : Motion-Twin haxe C : Motion-Twin neko to the system path variable without succes . Im using nme 3.5.5 haxe 2.10 and flashdevelop 4.4.1 . I ve already used the haxelib upgrade command so I m updated . Can you tell me what I m missing .. . Answer : Hey just to let you know . I found the problem You ll see flashdevelop was looking for the haxe files in C : Users Andr s Documents AndroidNDK sources cxx-stl gnu-libstdc++ 4.4.3 include so I went to that direction and surprise the 4.4.3 folder was missing so i created it and put all the files form C : Users Andr s Documents AndroidNDK sources cxx-stl gnu-libstdc++ into the 4.4.3 folder and done . Hope this can help somebody" ] }
[ "yes-answer-long", "yes-answer-short" ]
ide
UNK_RELATION
ggvis@graphics@75
ggvis -- the goal of ggvis is to make it easy to describe interactive web @placeholder in r .it fuses the ideas of ggplot2 and shiny rendering graphics on the web with vega so one can draw on the canvas or using svg .
{ "confidence": [ 57.05453872680664, 49.028297424316406, 48.80552673339844, 48.80552673339844, 48.3015022277832, 48.04571533203125, 48.04571533203125, 47.77233123779297, 47.696266174316406, 47.667938232421875, 47.24665451049805, 45.80338668823242, 45.80338668823242, 44.99726104736328, 44.875091552734375, 44.230525970458984, 44.02601623535156, 44.019264221191406, 43.932334899902344, 42.94984436035156, 42.238853454589844, 42.08219909667969, 42.08219909667969, 41.73633575439453, 41.717037200927734, 41.717037200927734, 41.419490814208984, 41.419490814208984, 41.419490814208984, 41.419490814208984, 41.419490814208984, 40.971832275390625, 40.2809944152832, 40.19132614135742, 40.13130187988281, 39.78895568847656, 39.78895568847656, 38.01570510864258, 38.01570510864258, 37.24169158935547, 36.695526123046875, 35.8150749206543, 35.204071044921875, 35.204071044921875, 35.204071044921875, 35.038841247558594, 34.63869094848633, 34.63869094848633, 33.67349624633789, 33.6319465637207, 33.430824279785156, 33.430824279785156, 33.430824279785156, 33.430824279785156, 33.430824279785156, 33.430824279785156, 33.430824279785156, 33.430824279785156, 33.430824279785156, 32.81729507446289, 32.41669845581055, 32.25444030761719, 32.25444030761719, 30.844512939453125, 30.62477684020996, 30.62477684020996, 30.086904525756836, 29.650331497192383, 28.038467407226562, 28.038467407226562, 27.800731658935547, 27.711055755615234, 27.481904983520508, 27.481904983520508, 27.481904983520508, 27.481904983520508, 27.481904983520508, 27.26374053955078, 26.974552154541016, 26.75434112548828, 26.40944480895996, 26.362958908081055, 26.305522918701172, 26.305522918701172, 26.196651458740234, 25.938976287841797, 25.840557098388672, 24.43209457397461, 24.06969451904297, 23.087753295898438, 22.991981506347656, 22.031702041625977, 22.031702041625977, 21.674259185791016, 21.57763671875, 20.653072357177734, 20.524587631225586, 20.23950958251953, 20.116954803466797, 19.991004943847656 ], "content": [ "I am using ggvis version 0.3.0.1 and shiny 0.10.0 on R 3.1.1", "Can this be done w ggvis", "The export png function in the R ggvis package requires us to have the program vg2png installed from the node.js module vega .", "I have a vega chart being generated in R by ggvis see code below .", "library ggvis", "I am getting acquainted with ggvis and I am trying to use it in shiny .", "I just created an shiny app with an interactively filtered ggvis graph", "In this question http : stackoverflow.com questions 22312767 shiny-ggvis-reactivity-to-subset-plot-data the ggvis output is registered with observe ggvis function but it seems that it is not present in current ggvis version 0.3 .", "It appears as though these methods apply to ggplot2 whereas I am concerned with ggvis .", "I know ggvis is rendered with SVG and so exploring that might be fruitful .", "Another alternative in this ggvis issue https : github.com rstudio ggvis issues 311 .", "However it is piped to ggvis as a function .", "Looks like a bug in ggvis .", "I try to create a simple function which allow to draw a ggvis plot .", "The trick is that the call to reactive is evaluated hence you can separate the process of computing data for ggvis and actual ggvis plotting .", "ggvis can be passed bare reactives for a dataset .", "Goal .. . .. . Export a ggvis figure as a PNG file for inclusion in an .Rmd document .", "source : R Documentation http : www.rdocumentation.org packages ggvis functions export png .. . .. . I have node and npm installed on windows and I ran npm-install vega .", "Or is there another way to register ggvis object", "I get as far as : .. . .. . .. . .. . Setup .. . .. . Platform .. . .. . OS X Mavericks 10.9.5 .. . RStudio 0.98.945 .. . Used devtools : : install github hadley ggvis to install ggvis 0.3.0.9001 and dependencies .. . Cloned https : github.com trifacta vega to usr local src vega .. . Symlinked . bin vg2png - usr local src vega bin vg2png .. . .. . sessionInfo", "I have an RStudio Shiny server running and I installed ggvis from https : github.com rstudio ggvis but I am not able to reproduce any of the demo examples in the server .", "I m desperately trying to make export png in ggvis package running .", "I d like to make a horizontal legend below the ggvis chart .", "R create interactive plot with slider which width could be changed example below I m searching in ggvis R package but other are also welcome : .. . .. .", "I am having trouble understanding how ggvis gets the data from the reactive Shiny expression .", "Ok I found the solution in this answer http : stackoverflow.com questions 24935452 rstudio-shiny-not-able-to-use-ggvis .", "You quote ggvis in the UI.R call is this correct", "What happens if you put the add tooltip before the ggvis", "I want to add a title to a ggvis plot .", "I m trying to format the axis numbering on an ggvis object .", "How to change axis direction in ggvis plot", "@aosmith I m afraid dt ggvis V2 V3 stroke factor V1 layer lines does not draw any lines at all .", "One of the devices I use is a ggvis line chart that sits in a wellPanel .", "I wonder if this post http : stackoverflow.com questions 31082021 r-ggvis-ordering-axis helps you .", "Directly from the documentation : .. . .. . Link http : rpackages.ianhowson.com cran ggvis man layer densities.html .. . .. . Your Case : .. . .. . Please see this SE page http : stackoverflow.com questions 27454976 controlling-color-of-factor-group-in-ggvis-r for information on controlling ggvis color s .", "Here is a good example : https : github.com rstudio ggvis issues 164", "But I m not sure how to go about that with two data frames in my ggvis .", "I know how to create a scaled dual-y axis in ggvis .", "I had not thought to use reshape2 I was attempting to do this with just ggvis .", "I try to create a horizontal bar-chart in R with the ggvis package where the bars overlap each other .", "I d like to display the prediction lines of a model on a ggvis plot so I can dynamically change the scale on the x-axis .", "The levels are still present in the factor so you need to drop them before plotting with ggvis .", "The same holds for dt ggvis V2 V3 fill factor V1 layer points group-by V1 layer lines", "I have created a function which uses ggvis to graph some of the data we review regularly .", "I looked inside a ggvis object to try and find where it might be but did not have success .", "enter image description here http : i.stack.imgur.com pAJoT.jpg .. . .. . But when I try to do it in ggvis I get strange behaviours - I don t know how to tell ggvis to group-by pop in the predicted dataframe .", "If I re-size the ggvis charts the wellPanel responds so there must be some link between the size of these two objects .", "So is there a way to set the default size of a rendered ggvis chart to the default size of the container it s in regardless of the users screen-size", "I am referencing this question : ggvis side-by-side barchart grouped by second variable http : stackoverflow.com questions 28553760 ggvis-side-by-side-barchart-grouped-by-second-variable from 1 year ago to see if anybody has solved this better or knows how to do this", "I haven t worked directly with SVG or Vega .", "When I try to knit a RMarkdown document with ggvis plots to Word I get the following message from Rstudio .", "I think you need to put the library ggvis line at the top of the ui.R file .", "Source ggvis in your ui.R file example here http : 128.199.255.233 : 3838 userApps john ggvistest : .. . .. . ui.R .. . .. . server.R", "Here is the basic app from ggvis GitHub repository : .. . .. . ui.R : .. . .. . server.R : .. . .. . Now mtc is the reactive expression which is actually a function or is it", "The reason I am asking is that I would like to return additional objects which I want to use in ggvis .", "But it also forces ggvis to replot the entire plot when something changes as opposed to just replotting the data .", "Doesn t work because add tooltip takes a vis as its first argument and that vis is generated by ggvis .", "When I add the key : id input to the ggvis it oddly makes the layer lines disappear from the plot .", "mtcars ggvis wt mpg layer points add axis x title long axis label add title title Any Title", "If you want to get three separate colored lines one for each V1 group you can either move stroke into ggvis or leave it where it is and group via group-by V1 before layer lines .", "I currently am designing some graphs with the ggvis package and would like to know how can I save them in .eps format .", "enter image description here http : i.stack.imgur.com TuHzL.jpg .. . .. . EDIT .. . .. . Think I found a solution : Change the order of the arguments to ggvis : .. . .. .", "I solved this issue by creating another function that created a ggplot plot that was an exact replicate of my ggvis plot to use with the downloadHandler .", "The example code for the question comes from this https : github.com rstudio ggvis issues 366 post on github .", "It would look like e.g . ggvis prop x as.name xvar prop y as.name yvar but see the help page for more examples .", "If you test out both methods method 1 will look smoother ggvis has built-in transition animations when you data changes .", "Can I do this within Vega", "This is my input dataset : .. . .. . For my ggvis I m using the following variables firstaired.posix and rating : .. . .. . I successfully created my ggvis with a tooltip containing the rating information like this : .. . .. . But I actually want the tooltip to contain more data like the epid variable so I tried : .. . .. . Using as.character because epid is an ordered factor But the part of the tooltip is empty .", "You could also check this http : stackoverflow.com questions 28485588 ggvis-layer-bars-and-layer-lines-on-different-y-axis 28490223 28490223 answer too .", "I have earlier used ggvis It gives an option for resizing the chart in the browser and also an option to download the chart in HTML or PNG format .", "For me not a huge deal since I have a huge screen and if I was looking at it on a small screen I know I can just resize the ggvis charts interactively but I don t want to tell folks to do that .", "I m new to Shiny and R in general and could do with some help", "To be more precise I want to change x and y axis-labels where the labels are computed inside in the reactive expression something like this : .. . .. . Is it possible to somehow exploit the structure of mtc output inside of ggvis call", "When you do this ggvis will automatically replot the data when it changes but it doesn t need to replot the entire plot : .. . .. . This will update the data points in the plot but not redraw the entire plot each time the data from get rct df changes .", "It looks like the cause of this problem is that the vis object created by piping my dataset into ggvis doesn t contain the information I want to display at least that s why I gathered by looking through the output of str on the first example .", "Here is a screenshot of the output : .. . .. . Snapshot of the full ggvis output http : i.stack.imgur.com l3LyD.png .. . .. . Here is an simplified version of my code : .. . .. . There are two things that I haven t been able to work out .", "As I had a hard time finding information about stacking multiple density plots with ggvis do you know how I would go about specifying the colors of each density-plot", "Screenshot of app UI can be seen here http : i.stack.imgur.com HBuJN.png .. . .. . I have used these posts to try to resolve the issue : .. . .. . Downloading png from Shiny R http : stackoverflow.com questions 26764481 downloading-png-from-shiny-r .. . .. . Downloading png from Shiny R pt .", "I can get gvis outputs for bubble motion and scatter charts directly in R but not in a shiny app .", "in my installation of vega", "This is done in a Shiny app .", "I have a shiny app with a reactive ggvis plot that updates with user specified variables and filters much like the shiny app seen here : .. . .. . http : shiny.rstudio.com gallery movie-explorer.html .. . .. . I have a column that contains about 130 names of people and when I ask the legend displaying the fill to reflect those names it lists every name in the data frame even if that name has been filtered out and is not being displayed in the plot .", "First solution you don t have to sort the input data frame but you DO have to put the arguments in this order to ggvis : .. . .. . Second solution you have to sort the predicted values data.frame first :", "I d like to deploy the app for viewing online but I know from looking at the app on normal sized screens laptops that the ggvis plot spills over the borders of the wellPanel .", "In R Shiny I have generated a histogram using ggplot.I am trying to create a functionality similar to tooltip .", "It seems that Shiny has an issue with rendering googlevis charts in the pop-up window clicking open in browser solves the problem... .", "I installed vega through the github depository etc .", "You can have a look at this SO post http : stackoverflow.com help mcve on how to make a great reproducible example in R .", "I want my y-axis to start at the left top and increase to the bottom basically to change y-axis direction data ggvis XX YY layer points add axis y title Y title add axis x title X title orient top", "There are some examples here : cookbook-r.com Graphs Plotting distributions ggplot2 http : www.cookbook-r.com Graphs Plotting distributions ggplot2", "Below is the minimum reproducible code grabbed from the web .", "This is the output that I got on running npm-install vega : .. . .. . I m not sure if it has installed correctly .", "Is there a specific way in which vega has to be installed on Windows which would resolve this error", "I ve been trying to get some googleVis outputs into Shiny without success .", "Note that you can also call this function in a shiny app .", "I m using R studio and have a single file Rmarkdown app .", "Any ideas", "Here I ll take one of the palettes given at Cookbook for R http : www.cookbook-r.com Graphs Colors 28ggplot2 29 with 8 different colors .", "2 http : stackoverflow.com questions 27008434 downloading-png-from-shiny-r-pt-2 .. . .. . The app does not work if vis is changed to a function rather than a reactive .", "Consider including a reproducible example http : stackoverflow.com questions 5963269 how-to-make-a-great-r-reproducible-example in your question ." ] }
{ "confidence": [ 74.33915710449219, 73.447265625, 72.04187774658203, 70.80441284179688, 70.72576904296875, 67.71465301513672, 67.0514907836914, 64.56731414794922, 64.0707015991211, 60.91914367675781, 55.52531433105469, 54.3765754699707, 54.15787124633789, 53.988136291503906, 53.70716857910156, 52.985595703125, 52.89277648925781, 50.13982391357422, 48.61437225341797, 48.23223876953125 ], "content": [ "Question : null .. . Answer : I ve got a pretty cool shiny app going to look at the results of some modeling I m doing at work . One of the devices I use is a ggvis line chart that sits in a wellPanel . I d like to deploy the app for viewing online but I know from looking at the app on normal sized screens laptops that the ggvis plot spills over the borders of the wellPanel . For me not a huge deal since I have a huge screen and if I was looking at it on a small screen I know I can just resize the ggvis charts interactively but I don t want to tell folks to do that . If I re-size the ggvis charts the wellPanel responds so there must be some link between the size of these two objects . So is there a way to set the default size of a rendered ggvis chart to the default size of the container it s in regardless of the users screen-size I know ggvis is rendered with SVG and so exploring that might be fruitful . I haven t worked directly with SVG or Vega . Example code is below and here is a link https : miles2knowportal.shinyapps.io ExampleResults to the app hosted on shinyapps . Any thoughts note : I posted the code obviously for folks to work with . I guess I just want to be clear that I m not asking a question about how to get this shiny app to work - It s more how to style it . Of course I welcome other suggestions though . Cheers . ui.r .. . .. . server.r .. . .. . Global.r Comment : Is the code in server.R correct Comment : I get an error in line 10 of the server function Comment : global.R doesnt seem to relate to the rest of the app Comment : Where are sPlot1 and sPlot2 Comment : So sorry I forgot a few - lt - ...ahhh", "Question : I have a vega chart being generated in R by ggvis see code below . I would like to make it so that the axes cross at 0 0 so there is no blank space between the area series and the axes . Can this be done w ggvis Can I do this within Vega Output http : i.stack.imgur.com uIbqH.png .. . Answer : This can be set using the expand parameter in scale numeric . Modified code below :", "Question : null .. . Answer : Goal .. . .. . Export a ggvis figure as a PNG file for inclusion in an .Rmd document . Problem .. . .. . I know essentially nothing about Node.js other than that it is great and I should know more . I get as far as : .. . .. . .. . .. . Setup .. . .. . Platform .. . .. . OS X Mavericks 10.9.5 .. . RStudio 0.98.945 .. . Used devtools : : install github hadley ggvis to install ggvis 0.3.0.9001 and dependencies .. . Cloned https : github.com trifacta vega to usr local src vega .. . Symlinked . bin vg2png - usr local src vega bin vg2png .. . .. . sessionInfo Comment : .. . does anyone know where the problem might be at least E.g . in my installation of vega", "Question : I am getting acquainted with ggvis and I am trying to use it in shiny . I am having trouble understanding how ggvis gets the data from the reactive Shiny expression . Here is the basic app from ggvis GitHub repository : .. . .. . ui.R : .. . .. . server.R : .. . .. . Now mtc is the reactive expression which is actually a function or is it Its result is a data.frame . However it is piped to ggvis as a function . If you tried to pass the resulting data.frame like .. . .. . Shiny would start complaining along the lines that Operation not allowed without an active reactive context . So what is actually going on The reason I am asking is that I would like to return additional objects which I want to use in ggvis . To be more precise I want to change x and y axis-labels where the labels are computed inside in the reactive expression something like this : .. . .. . Is it possible to somehow exploit the structure of mtc output inside of ggvis call Or it is only possible to pass the data.frame and then put your data in the data.frame Or is there another way to register ggvis object In this question http : stackoverflow.com questions 22312767 shiny-ggvis-reactivity-to-subset-plot-data the ggvis output is registered with observe ggvis function but it seems that it is not present in current ggvis version 0.3 . I am using ggvis version 0.3.0.1 and shiny 0.10.0 on R 3.1.1 .. . Answer : Ok I found the solution in this answer http : stackoverflow.com questions 24935452 rstudio-shiny-not-able-to-use-ggvis . The trick is that the call to reactive is evaluated hence you can separate the process of computing data for ggvis and actual ggvis plotting .", "Question : I am getting acquainted with ggvis and I am trying to use it in shiny . I am having trouble understanding how ggvis gets the data from the reactive Shiny expression . Here is the basic app from ggvis GitHub repository : .. . .. . ui.R : .. . .. . server.R : .. . .. . Now mtc is the reactive expression which is actually a function or is it Its result is a data.frame . However it is piped to ggvis as a function . If you tried to pass the resulting data.frame like .. . .. . Shiny would start complaining along the lines that Operation not allowed without an active reactive context . So what is actually going on The reason I am asking is that I would like to return additional objects which I want to use in ggvis . To be more precise I want to change x and y axis-labels where the labels are computed inside in the reactive expression something like this : .. . .. . Is it possible to somehow exploit the structure of mtc output inside of ggvis call Or it is only possible to pass the data.frame and then put your data in the data.frame Or is there another way to register ggvis object In this question http : stackoverflow.com questions 22312767 shiny-ggvis-reactivity-to-subset-plot-data the ggvis output is registered with observe ggvis function but it seems that it is not present in current ggvis version 0.3 . I am using ggvis version 0.3.0.1 and shiny 0.10.0 on R 3.1.1 .. . Answer : ggvis can be passed bare reactives for a dataset . When you do this ggvis will automatically replot the data when it changes but it doesn t need to replot the entire plot : .. . .. . This will update the data points in the plot but not redraw the entire plot each time the data from get rct df changes . This also means that certain things cannot be updated without redrawing the entire plot plot labels equations for layer model predictions . You can do the other suggestion and wrap the entire plot in a reactive : .. . .. . This will allow you to update plot titles and other parts of the plot . But it also forces ggvis to replot the entire plot when something changes as opposed to just replotting the data . If you test out both methods method 1 will look smoother ggvis has built-in transition animations when you data changes .", "Question : null .. . Answer : The export png function in the R ggvis package requires us to have the program vg2png installed from the node.js module vega . source : R Documentation http : www.rdocumentation.org packages ggvis functions export png .. . .. . I have node and npm installed on windows and I ran npm-install vega . This is the output that I got on running npm-install vega : .. . .. . I m not sure if it has installed correctly . Now when I run : .. . .. . I get the following error : .. . .. . Writing to file plot.png .. . .. . Error in vega file vis file file-type png : .. . .. . Conversion program vg2pngnot found . Is there a specific way in which vega has to be installed on Windows which would resolve this error Comment : Is it on your path Comment : Yes C : Program Files nodejs is in my PATH", "Question : I have an RStudio Shiny server running and I installed ggvis from https : github.com rstudio ggvis but I am not able to reproduce any of the demo examples in the server . When I run R with the same version installed in the server 3.1.0 I can do the following : .. . .. . But when I try the example in one of the demo folders : .. . .. . I get : .. . .. . ERROR : could not find function ggvisOutput .. . .. . Commenting out the line with the ggvisOutput statement then renders the page normally but with no plot . Any ideas Comment : I think you need to put the library ggvis line at the top of the ui.R file . .. . Answer : Source ggvis in your ui.R file example here http : 128.199.255.233 : 3838 userApps john ggvistest : .. . .. . ui.R .. . .. . server.R Comment : You quote ggvis in the UI.R call is this correct library ggvis Comment : I have been trying to follow this example but it keep receiving the error ERROR : on request read connection reset by peer . Does anyone know what causes this error", "Question : null .. . Answer : I m desperately trying to make export png in ggvis package running . I installed vega through the github depository etc . But my R still says : .. . .. . but I see the folder vg2png somewhere...I m not master of the Terminal .. . .. . any help would be greaely appreciated . thanks", "Question : How would one go about plotting multiple density plots on the same set of axes I understand how to plot multiple line graphs and scatter plots together however the matter of having the density plots share a common x-axis is tripping me up . My data is currently set up as such : .. . .. . Thanks for the help EDIT : Here are some details I was missing which may help make my question clearer . I have a data frame attr gains which looks like the example above and whose variable names are Str Agi and Int . So far I have been able to get a density-plot of the Str variable alone with this code : .. . .. . What I would like to do is overlay two more density plots one for Agi and Int each so that I have three density plots on the same set of axes . Comment : There are some examples here : cookbook-r.com Graphs Plotting distributions ggplot2 http : www.cookbook-r.com Graphs Plotting distributions ggplot2 Comment : Thank you for the link . It appears as though these methods apply to ggplot2 whereas I am concerned with ggvis . Comment : What have you already tried Where did you get stuck Please supply a minimal reproducible example to go along with your question . Something we can work from and use to show you how it might be possible to answer your question . You can have a look at this SO post http : stackoverflow.com help mcve on how to make a great reproducible example in R . Comment : I will edit the OP with some clarification thank you for the suggestion . .. . Answer : Directly from the documentation : .. . .. . Link http : rpackages.ianhowson.com cran ggvis man layer densities.html .. . .. . Your Case : .. . .. . Please see this SE page http : stackoverflow.com questions 27454976 controlling-color-of-factor-group-in-ggvis-r for information on controlling ggvis color s . .. . .. . Looks like this : .. . .. . Density Plot http : i.stack.imgur.com vyznx.png Comment : Thank you I had not thought to use reshape2 I was attempting to do this with just ggvis . I tried it with reshape2 though and it worked I appreciate your help . As I had a hard time finding information about stacking multiple density plots with ggvis do you know how I would go about specifying the colors of each density-plot Or do you know of a resource I could use to figure it out Comment : Answer has been updated . Best of luck", "Question : I have a shiny app with a reactive ggvis plot that updates with user specified variables and filters much like the shiny app seen here : .. . .. . http : shiny.rstudio.com gallery movie-explorer.html .. . .. . I have a column that contains about 130 names of people and when I ask the legend displaying the fill to reflect those names it lists every name in the data frame even if that name has been filtered out and is not being displayed in the plot . This results in a huge list of names in the legend even when there are only 5 people who haven t been filtered out . The legend does automatically update based on gender for fill and I have no idea why that would auto update like I want it to and the names do not . Any help you can provide is appreciated . I have provided a simplified code that replicates the issue for the iris data frame as well as a screenshot showing only the setosa data on the plot but all three species still on the legend screenshot of issue http : i.stack.imgur.com kauob.png . Comment : Welcome to SO This question is nearly there but it will really help us help you if you make it into a fully reproducible example server.R ui.R and example data . stackoverflow.com help mcve http : stackoverflow.com help mcve Comment : @Hack-R I have updated my post to reflect your suggestion Comment : The levels are still present in the factor so you need to drop them before plotting with ggvis . One way to do this is to use droplevels when you make the filtered dataset - m - droplevels as.data.frame m . Another alternative in this ggvis issue https : github.com rstudio ggvis issues 311 . Comment : @aosmith droplevels worked perfectly . Thank you .. . Answer : as aosmith pointed out my solution was to use the droplevels function when making the filtered dataset . m - droplevels as.data.frame m", "Question : null .. . Answer : I just created an shiny app with an interactively filtered ggvis graph Can I let user download data behind the graph that the user sees i.e . based on the same filters I m using R studio and have a single file Rmarkdown app . For instance if I had the following graph : .. . .. . I would like to the user to be able to download the data only for the number of cylinders they chose . If possible with the touch of a button next to the graph . P.s . This is my first post and I only recently began using R my first programming language but I m really exited about it all .", "Question : null .. . Answer : I wish to assign a different color to each instance of V1 in .. . .. . Best would be to have both points and lines corresponding to same V1 instance in the same color : .. . .. . only one line passing through all data points : http : i.stack.imgur.com mzot0.jpg .. . .. . Drawing just the lines without the points doesn t help either : .. . .. . http : i.stack.imgur.com 3f0zk.jpg Comment : If you want to get three separate colored lines one for each V1 group you can either move stroke into ggvis or leave it where it is and group via group-by V1 before layer lines . Comment : @aosmith I m afraid dt ggvis V2 V3 stroke factor V1 layer lines does not draw any lines at all . Did you try it and actually got lines drawn The same holds for dt ggvis V2 V3 fill factor V1 layer points group-by V1 layer lines Comment : Yes it worked for me but I was using a data.frame . Does the help page example in layer lines work for you How about if you change mtcars to a data.table", "Question : I d like to display the prediction lines of a model on a ggvis plot so I can dynamically change the scale on the x-axis . I can plot the model predictions in ggplot easily enough : .. . .. . enter image description here http : i.stack.imgur.com pAJoT.jpg .. . .. . But when I try to do it in ggvis I get strange behaviours - I don t know how to tell ggvis to group-by pop in the predicted dataframe . These are the graphs that I m getting.. . I m wondering if this is even possible currently Just read on http : ggvis.rstudio.com layers.html that You can not currently set the component of lines to different colours : track progress at https : github.com trifacta vega issues 122 . hmmmm.. . .. . .. . Reproducible example below . .. . .. . enter image description here http : i.stack.imgur.com RDQDr.jpg .. . .. . enter image description here http : i.stack.imgur.com izQaU.jpg .. . .. . enter image description here http : i.stack.imgur.com TuHzL.jpg .. . .. . EDIT .. . .. . Think I found a solution : Change the order of the arguments to ggvis : .. . .. . enter image description here http : i.stack.imgur.com izq66.jpg Comment : You could just add your predicted values to your original dataset and then plot using layer lines i.e . dframe pred predict model level 0 . layer lines doesn t currently have a data argument - you can use layer paths instead but then you ll have to order the dataset by x manually . Comment : Both solutions aren t working ideally for me in my real situation . layer lines because my data are chunky so in between chunks the model lines look strangely flat and layer paths - not sure why that one is being so fractious . Comment : I believe the dataset needs to be ordered by the x variable not by the fitted values the help page for layer lines clarifies this . Comment : Glad you figured something out you should add a solution as an answer . For the layer paths option you could have grouped the prediction dataset - layer paths data group-by predframe pop y fitted stroke pop Comment : Maybe you forgot to set the order of predframe before plotting Your comment code works for me using a sorted predframe . .. . Answer : With @aosmith s help thanks and some tweaking we came up with two solutions to this problem I m posting both solutions here - to see the solution graphed look at the edits section of my original question . First solution you don t have to sort the input data frame but you DO have to put the arguments in this order to ggvis : .. . .. . Second solution you have to sort the predicted values data.frame first :", "Question : I try to create a simple function which allow to draw a ggvis plot . I know that I have to use non-standard evaluation here that s why I use intercept function of lazyeval package : .. . .. . EDIT : .. . .. . This function works fine : .. . .. . But what should I do additionally in order to a given command works : Comment : Can you clarify what exactly doesn t work Using your function test fn mtcars mpg wt makes a plot . Consider including a reproducible example http : stackoverflow.com questions 5963269 how-to-make-a-great-r-reproducible-example in your question . Comment : Also note that you can use the prop function from ggvis for this sort of task instead of lazyeval : : interp . It would look like e.g . ggvis prop x as.name xvar prop y as.name yvar but see the help page for more examples . .. . Answer : One option is to use deparse substitute .. . for this sort of non-standard evaluation . It makes the function longer but can be convenient for the user . Here s what it could look like using the lazyeval : : interp method : .. . .. . And here s the version with prop : .. . .. . Both work using unquoted variable names : .. . .. . test fn mtcars mpg wt .. . .. . enter image description here http : i.stack.imgur.com 7mUGd.png", "Question : null .. . Answer : I m trying to format the axis numbering on an ggvis object . It s based on the D3 s format pattern : https : github.com mbostock d3 wiki Formatting .. . .. . I m building an interactive population pyramid . Here is a screenshot of the output : .. . .. . Snapshot of the full ggvis output http : i.stack.imgur.com l3LyD.png .. . .. . Here is an simplified version of my code : .. . .. . There are two things that I haven t been able to work out . 1 I need to have dot instead of comma as a thousand seperator . 2 I need to show negative-number without the - sign . so that a -1000 will be shown as 1.000 . Is there a way to do this either directly or by changing the format to text and use regex I have not been able to get rid of the minus sign on the negative numbers in the axis and I have not been able to make this graph without changing the sign on the women population . Neither have I been able to change the thousand separator . I have tried playing around with the format input but there seems there is no way to customize the thousand separator or the sign of a d3 format . Comment : Please provide a reproducible example http : stackoverflow.com questions 5963269 how-to-make-a-great-r-reproducible-example demonstrating what you have attempted so far .", "Question : R create interactive plot with slider which width could be changed example below I m searching in ggvis R package but other are also welcome : .. . .. . enter image description here http : i.stack.imgur.com s0xiM.jpg .. . Answer : Highcharts Highstock it s another great tool for this kind of plots and there is an awesome API wrapper in R : http : jkunst.com highcharter .. . .. . enter image description here http : i.stack.imgur.com h9BfY.png Comment : This is pretty cool .", "Question : null .. . Answer : I d like to make a horizontal legend below the ggvis chart . I can use legend-properties to place it below the chart but don t know how to make the labels horizontal below the legend title . Below is the minimum reproducible code grabbed from the web . Thank you in advance .", "Question : This is my input dataset : .. . .. . For my ggvis I m using the following variables firstaired.posix and rating : .. . .. . I successfully created my ggvis with a tooltip containing the rating information like this : .. . .. . But I actually want the tooltip to contain more data like the epid variable so I tried : .. . .. . Using as.character because epid is an ordered factor But the part of the tooltip is empty . I also noticed the linebreak I intended n to insert is missing but that s a different problem . It looks like the cause of this problem is that the vis object created by piping my dataset into ggvis doesn t contain the information I want to display at least that s why I gathered by looking through the output of str on the first example . EDIT : I solved that linebreak issue so there s no need to point me to add tooltip totally forgot about that . EDIT : The accepted answer is working fine even though it doesn t let me put arbitrary variables in the tooltip it s pretty much what I need for my usecase thanks Here s what I did in the end : Comment : What happens if you put the add tooltip before the ggvis Comment : Doesn t work because add tooltip takes a vis as its first argument and that vis is generated by ggvis . Comment : you figure this out Key has to be unique . .. . Answer : One workaround is to pass the epid variable in the key property which is normally meant to keep track of which observations correspond to one another during transitions but it has the desired effect here of including epid in the data without producing any side effects : .. . .. . If you needed to use multiple variable from the original dataset you can add an id column with a unique value for each row and then do this :", "Question : R create interactive plot with slider which width could be changed example below I m searching in ggvis R package but other are also welcome : .. . .. . enter image description here http : i.stack.imgur.com s0xiM.jpg .. . Answer : Have a look at dygraphs and dyRangeSelector . The dygraphs package is an R interface to the dygraphs JavaScript charting library . It provides rich facilities for charting time-series data in R .. . .. . For more information and examples have a look at dygraph s github.io https : rstudio.github.io dygraphs : .. . .. . Which gives : .. . .. . enter image description here http : i.stack.imgur.com gkyvc.gif Comment : that s what I m looking for but what is the time-series underslider could I customize Comment : @Qbik I m not sure I understand what you mean Of course you can customize : have a look at dySeries .", "Question : This is my input dataset : .. . .. . For my ggvis I m using the following variables firstaired.posix and rating : .. . .. . I successfully created my ggvis with a tooltip containing the rating information like this : .. . .. . But I actually want the tooltip to contain more data like the epid variable so I tried : .. . .. . Using as.character because epid is an ordered factor But the part of the tooltip is empty . I also noticed the linebreak I intended n to insert is missing but that s a different problem . It looks like the cause of this problem is that the vis object created by piping my dataset into ggvis doesn t contain the information I want to display at least that s why I gathered by looking through the output of str on the first example . EDIT : I solved that linebreak issue so there s no need to point me to add tooltip totally forgot about that . EDIT : The accepted answer is working fine even though it doesn t let me put arbitrary variables in the tooltip it s pretty much what I need for my usecase thanks Here s what I did in the end : Comment : What happens if you put the add tooltip before the ggvis Comment : Doesn t work because add tooltip takes a vis as its first argument and that vis is generated by ggvis . Comment : you figure this out Key has to be unique . .. . Answer : Yes it s possible . Normally the client only sends back the columns of data that are actually in the plot . To get other columns you should use a key to index into the original data : This is simple reproducible example Comment : Thanks I ve chosen your answer as accepted because it covers the same solution as the previous answer but also provides a simple reproducible example . Comment : this is great . it would be even better if the tooltip would not be in a clunky serif font . Comment : Is there any known drawback to this approach that is dependent on the type of plot I have an example where i have a layer lines layer and a layer points layer . When I add the key : id input to the ggvis it oddly makes the layer lines disappear from the plot . It is a somewhat complex example so I don t have a reproducible piece of code yet but figured I d ask first if there were any known issues . Comment : This approach does not work with layer bars . In that case it gives the following : Error in eval expr envir enclos : object id not found . Any idea what to do in that case E.g . you would like to plot the counts and tooltip the shares ." ] }
[ "yes-answer-long", "yes-answer-short" ]
graphics
UNK_RELATION
jquery-validate@jquery@52
jquery-validate -- the jquery-validate plugin is a @placeholder plugin by j rn zaefferer .
{ "confidence": [ 55.840057373046875, 55.840057373046875, 55.840057373046875, 54.899139404296875, 54.899139404296875, 54.899139404296875, 54.59241485595703, 53.097084045410156, 52.749061584472656, 50.86840057373047, 50.86840057373047, 50.86840057373047, 50.86840057373047, 50.86840057373047, 50.86840057373047, 50.20831298828125, 49.620758056640625, 49.620758056640625, 49.620758056640625, 49.620758056640625, 49.539466857910156, 49.539466857910156, 49.539466857910156, 48.619346618652344, 48.5445556640625, 48.359214782714844, 48.12542724609375, 47.005340576171875, 46.79649353027344, 46.79649353027344, 46.585235595703125, 46.371334075927734, 46.371334075927734, 46.1900634765625, 46.05226135253906, 45.71315002441406, 45.616241455078125, 45.34034729003906, 44.47148895263672, 44.38282775878906, 44.377220153808594, 44.37211608886719, 44.171600341796875, 44.171600341796875, 44.171600341796875, 44.171600341796875, 44.171600341796875, 44.171600341796875, 44.171600341796875, 44.15122985839844, 44.08161926269531, 44.08161926269531, 43.96800231933594, 43.96800231933594, 43.763343811035156, 42.992919921875, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.9239616394043, 42.8836669921875, 42.65781784057617, 42.65781784057617, 42.65781784057617, 42.65781784057617, 42.65781784057617, 42.59737777709961, 42.557708740234375, 42.557708740234375, 42.38970184326172, 41.94356918334961, 41.94356918334961, 41.936004638671875, 41.636024475097656, 41.562774658203125, 41.42863082885742, 41.42863082885742, 41.410179138183594, 41.410179138183594, 41.3100700378418, 41.3100700378418, 41.14206314086914, 41.047603607177734, 41.0463752746582, 41.0463752746582, 40.730525970458984, 40.594417572021484, 40.073020935058594, 40.073020935058594, 40.073020935058594, 40.073020935058594, 40.073020935058594 ], "content": [ "See this : .. . .. . jQuery validate plugin : accept letters only", "There are no such rules as equalOrLessThan and equalOrGreaterThan in the jQuery Validate plugin .", "this extension method works using the jQuery validate plugin .", "I am using the jquery-validate plugin to validate the form on the fly .", "I use jQuery Validate plugin to validate user-inputs .", "I m trying to validate a form using the validate plugin for jquery .", "But makes no use of the jQuery Validate plugin as requested by the OP .", "That s what the jQuery Validate plugin is already doing .", "I am using jquery validation plugin to validate a registration form .", "I had the same problem with jQuery validate and the jQuery.validate.unobtrusive plugin .", "@starbucks sounds like you forgot to include the code for the jQuery Validate plugin .", "I am using the jQuery validation plugin to validate forms .", "Do you have the jQuery Validate plugin https : jqueryvalidation.org installed", "Maybe you didn t realize that the jQuery Validate plugin is lazy .", "I have a form divided into three tabs and validate it with jQuery validation plugin .", "If you re using a Microsoft framework the default functioning of the jQuery Validate plugin is over-written by Microsoft s unobtrusive-validation plugin .", "The jQuery Validate plugin by default will also ignore any hidden input elements .", "I m using jQuery Validate plugin for field validations on my registration page .", "I am trying to validate the inputs using jquery validation plugin .", "I use jQuery Validation plugin to validate my form .", "This works though : stackoverflow.com questions 5748346 http : stackoverflow.com questions 5748346 jquery-validate-plugin-cant-validate-classes", "I am trying to validate html-select element using jQuery Validate plugin .", "How can I use the JQuery Validate Plugin http : docs.jquery.com Plugins Validation to validate a form in such a situation", "As per the jQuery Validate plugin developer s page http : bassistance.de jquery-plugins jquery-plugin-validation version 1.10 of the plugin has only been tested through jQuery 1.8.x .", "jquery-validation-engine http : stackoverflow.com questions tagged jquery-validation-engine has nothing to do with the jquery-validate http : stackoverflow.com questions tagged jquery-validate plugin .", "I have a form I am working on and my validation javascript jQuery jQuery validate plugin works up to a point .", "Is there a way to do that within the rules section of jQuery validate plugin", "Are you using a plugin to validate", "The unobtrusive lib calls the validate method of the jquery-validate plugin to set all the rules and messages .", "I m using the excellent jQuery Validate Plugin http : docs.jquery.com Plugins Validation to validate some forms .", "I m using the latest versions of jQuery and jQuery Validate .", "I ve some problems getting KO and jQuery Validate plugin work together .", "I m using the jQuery Validation Plugin to validate the form fields .", "Via Bower I downloaded jquery jquery-validate jquery-validate-unobtrusive .", "In the new version of jQuery validation plugin 1.9 by default validation of hidden fields ignored http : jquery.bassistance.de validate changelog.txt .", "jQuery for Validate plugin : .. . .. . jQuery for Tooltipster plugin : .. . .. . HTML : .. . .. . How would I integrate the usage of these two jQuery plugins so that validation errors appear inside the tooltips", "I am using multistep form plugin of jquery stepy which uses jquery-validate .", "I d like to validate a form using the jquery-validate plugin but I m unable to use the name value within the html - as this is a field also used by the server app .", "I m using jQuery Validate and xVal to validate in input forms .", ".validate http : jqueryvalidation.org validate is what initializes the Validation plugin on your form .", "The form uses jQuery Validate .", "The jQuery Validate plugin already has a rule called lettersonly as part of the additional-methods.js file https : cdnjs.cloudflare.com ajax libs jquery-validate 1.15.0 additional-methods.js which looks like this.. .", "It removes the errorClass that the jQuery.validate plugin sets and so when the form is reset jQuery validate cannot find the error labels to remove .", "I am trying to validate an input file-type using jQuery validation plugin .", "I would like to ask how to validate multiple file input using the jQuery validation-plugin .", "The jQuery Validate plugin mandates that all elements considered for validation contain a unique name attribute .", "If you don t install the jQuery Validate plugin then you cannot use the code above .", "How would I use the JQuery Validate plugin to have one error message for say 3 fields .", "I have a form which I am validating through the jQuery Validate plugin .", "I d like to use the Tooltipster plugin http : calebjacob.com tooltipster to display form errors generated by the jQuery Validate plugin http : docs.jquery.com Plugins Validation .", "i am use asp.net-mvc-5 about jquery-validate unobtrusive jquery-validate is 1.13 version .", "I am using jQuery to validate forms. . but when I use CKeditor and try to validate it using jQuery it s not working .", "I m validating the form with jQuery Validate .", "just above the JQuery validate function .", "Integrating a jQuery tooltip plugin with the jQuery Validate plugin can be a very complex task that depends on the methods made available by both plugins .", "lettersonly and phoneUS are perfectly acceptable jQuery Validate rules as long as you include the additional-methods.js file https : cdnjs.cloudflare.com ajax libs jquery-validate 1.15.0 additional-methods.js just after jQuery Validate .", "I have a form that is using jQuery Validate plugin for client-side validation and submits via AJAX .", "The one huge problem with this idea is that the jQuery Validate plugin has its own built-in submit handler function .", "You can use jQuery validation plugin directly in jeditable to validate the fields of your form", "Just because the jQuery Validate plugin is preventing the default submit action does not mean that any external submit handlers will not fire .", "Just because the jQuery Validate plugin is preventing the default submit action does not mean that any external submit handlers will not fire .", "How can I validate chosen inputs with the jQuery validation plugin and show the error message for invalid ones", "Could you please show me how to validate the above form using jquery validation plugin", "Anyway .. . .. . I am using the jQuery validation plugin to validate my ASP.net form .", "I do not see any of your code for the jQuery Validate plugin in your OP .", "By default the jQuery Validate plugin simply inserts a label element immediately after the input element with the error .", "2 Edit the callback functions options of the jQuery Validate plugin to place the label differently when the element is a radio or checkbox .", "try reading the documentation on : .. . .. . jQuery site .validate options http : docs.jquery.com Plugins Validation validate options .. . .. . its in the options of the .validate .", "Additionally jQuery validate won t work onKeyUp", "jQuery Validate uses only the name NOT the id .", "Do you think this is a bug in jQuery Validate", "jquery-validate target cheking disabled html attribute .", "I am trying to use jQuery validate for a form .", "the validation for datepicker is not working when I applied disabled disabled .. . .. . By default the jQuery Validate plugin will never be able to validate disabled fields among other things .", "The .validate method merely initializes the plugin on your form .", "Just let the Validate plugin do it for you .", "I m using the jQuery Validation Plugin http : bassistance.de jquery-plugins jquery-plugin-validation on my form .", "In the onLeaveStep option of the wizard plugin I called the validate plugin .", "Quote OP : .. . .. . In the onLeaveStep option of the wizard plugin I called the validate plugin .", "Please do not post duplicates especially when others already posted answers trying to help you : jQuery select box validations with Validate plugin http : stackoverflow.com questions 14889736 jquery-select-box-validations-with-validate-plugin", "localhost tasks validate remote.cfc method validate has absolutely nothing to do with JavaScript or jQuery Validate s .validate method .", "producteditform .validate initializes the validate plugin http : docs.jquery.com Plugins Validation validate options on the form .", "I m using ASP .NET MVC 3 with Data Annotations and the jQuery validate plugin .", "This workaround is needed since the jQuery Validate plugin by default is only looking at events on the original select element which is now hidden .", "Suprisingly jquery-validate has not been fixed yet .", "For this I am using .validate from jquery .", "Rather .validate is the method for initializing the plugin on the form .", "If the tabs are hidden the Validate plugin will ignore the fields .", "I have used jquery validation plugin http : bassistance.de jquery-plugins jquery-plugin-validation for validation in client-side .", "My validation method is the jQuery plugin .", "possible duplicate : stackoverflow.com questions 1271640 jquery-validate-select-box http : stackoverflow.com questions 1271640 jquery-validate-select-box", "This may help you : forum.jquery.com topic jquery-validate-remote-vs-depends http : forum.jquery.com topic jquery-validate-remote-vs-depends", "Therefore I need a way of specifically disabling just these two rules within jQuery Validate rather than disabling the whole of jQuery or jQuery Validate .", "I m using jQuery validate 1.10 and Microsoft jQuery Unobtrusive Validation 2.0.20710.0 which was published on 1 29 2013 .", "I am loading a form via ajax and usind the new .on to load the jQuery validate plugin is not loaded before I press the submit a second time .", "http : stackoverflow.com questions 2476378 jquery-validate-plugin-accept-letters-only .. . .. . regarding custom validator methods for you other issues .", "How do you create a simple custom rule using the jQuery Validate plugin using addMethod http : jqueryvalidation.org jQuery.validator.addMethod that doesn t use a regex", "I m loading a dialog box with a form that s built on-the-fly using Bootbox.js http : bootboxjs.com and I m validating user input with a jQuery validate plugin .", "However by simply using the supplied form argument directly you do not have any errors when using the submitHandler option of the jQuery Validate plugin ." ] }
{ "confidence": [ 54.70929718017578, 54.24535369873047, 53.43989944458008, 52.39479064941406, 52.354488372802734, 51.86943054199219, 51.619773864746094, 51.46263885498047, 51.239166259765625, 51.239166259765625, 51.21216583251953, 51.194217681884766, 50.78749084472656, 50.58670425415039, 50.58670425415039, 50.28506088256836, 50.19478225708008, 50.18731689453125, 50.116004943847656, 50.002967834472656 ], "content": [ "Question : I m using the validate plugin from http : bassistance.de jquery-plugins jquery-plugin-validation .. . .. . What i m trying to find is a way to make some of my form fields accept letters only no numbers special chars etc.. . .. . .. . Any idea people Thanks a lot . .. . Answer : The jQuery Validate plugin already has a rule called lettersonly as part of the additional-methods.js file https : cdnjs.cloudflare.com ajax libs jquery-validate 1.15.0 additional-methods.js which looks like this.. .", "Question : I have a dynamically generated form with input fields with the same name for example : map . I do not have the option of changing the field names or generating unique field names because the form handler code Perl CGI is designed to handle an array of input values in this case @map . How can I use the JQuery Validate Plugin http : docs.jquery.com Plugins Validation to validate a form in such a situation Specifically I would want exactly one element of the submitted array to have a certain fixed value . I am currently using a custom event handler that creates a JSON object with serializeArray and then traverses it to ensure that the condition is met . But since I have used the Validate Plugin in the rest of the application I was wondering if such a case may be handled using the same plugin here too . Thank you for your attention . Comment : It would be so much easier to provide you with an answer if you posted some code with your question . Comment : Sorry I should have . Here is some representative code . In my application the form is generated dynamically from a template . The HTML form has the following fields : input type text name map input type text name map ... . input type text name map I want to check that at least one of the fields contains the value say email I discovered after posting here that this is not possible using the Validate Plugin . See the plugin authors mail here : tr.im n0lQ http : tr.im n0lQ As the author suggests you can do this for checkboxes and radio buttons Comment : @Ya.Perelman you should consider answer from scampbell it is working and very simple . .. . Answer : I just learned from a mail by the Plugins author J rn Zaefferer that validation requires field names to be unique except for radio buttons and check boxes .", "Question : I am trying to validate html-select element using jQuery Validate plugin . I set required rule to true but it always passes validation because zero index is chosed by default . Is there any way to define empty value that is used by required rule UPD . Example . Imagine we have the following html control : .. . .. . I want Validation plugin to use default-value as empty . Comment : Put some snippet of code so we can help . Comment : possible duplicate : stackoverflow.com questions 1271640 jquery-validate-select-box http : stackoverflow.com questions 1271640 jquery-validate-select-box .. . Answer : Here is the simple and understandable example : .. . .. . JQuery :", "Question : In the new version of jQuery validation plugin 1.9 by default validation of hidden fields ignored http : jquery.bassistance.de validate changelog.txt . I m using CKEditor for textarea input field and it hides the field and replace it with iframe . The field is there but validation disabled for hidden fields . With validation plugin version 1.8.1 everything works as expected . So my question is how to enable validation for hidden fields with v1.9 validation plugin . This setting doesn t work : Comment : See also stackoverflow.com questions 7952181 http : stackoverflow.com questions 7952181 jquery-validation-plugin-validating-hidden-inputs-and-not-visible .. . Answer : Just find the text ignore : : hidden in your jquery validation file and comment it . After comment this it will never loss any hidden elements to validate.. . Thanks Comment : Never a good idea to just randomly comment out code in a third party library .", "Question : In the new version of jQuery validation plugin 1.9 by default validation of hidden fields ignored http : jquery.bassistance.de validate changelog.txt . I m using CKEditor for textarea input field and it hides the field and replace it with iframe . The field is there but validation disabled for hidden fields . With validation plugin version 1.8.1 everything works as expected . So my question is how to enable validation for hidden fields with v1.9 validation plugin . This setting doesn t work : Comment : See also stackoverflow.com questions 7952181 http : stackoverflow.com questions 7952181 jquery-validation-plugin-validating-hidden-inputs-and-not-visible .. . Answer : So I m going to go a bit deeper in to why this doesn t work because I m the kind of person that can t sleep at night without knowing haha . I m using jQuery validate 1.10 and Microsoft jQuery Unobtrusive Validation 2.0.20710.0 which was published on 1 29 2013 . I started by searching for the setDefaults method in jQuery Validate and found it on line 261 of the unminified file . All this function really does is merge your json settings in to the existing .validator.defaults which are initialized with the ignore property being set to : hidden along with the other defaults defined in jQuery Validate . So at this point we ve overridden ignore . Now let s see where this defaults property is being referenced at . When I traced through the code to see where .validator.defaults is being referenced . I noticed that is was only being used by the constructor for a form validator line 170 in jQuery validate unminified file . At this point a validator will merge any default settings that were set and attach it to the form validator . When you look at the code that is doing the validating highlighting unhighlighting etc they all use the validator.settings object to pull the ignore property . So we need to make sure if we are to set the ignore with the setDefaults method then it has to occur before the form .validate is called . If you re using Asp.net MVC and the unobtrusive plugin then you ll realize after looking at the javascript that validate is called in document.ready . I ve also called my setDefaults in the document.ready block which is going to execute after the scripts jquery-validate and unobtrusive because I ve defined those scripts in the html before the one that has the call in it . So my call obviously had no impact on the default functionality of skipping hidden elements during validation . There is a couple of options here . Option 1 - You could as Juan Mellado pointed out have the call outside of the document.ready which would execute as soon as the script has been loaded . I m not sure about the timing of this since browsers are now capable of doing parallel script loading . If I m just being over cautious then please correct me . Also there s probably ways around this but for my needs I did not go down this path . Option 2a - The safe bet in my eyes is to just replace the .validator.setDefaults ignore : inside of the document.ready event with form .data validator .settings.ignore . This will modify the ignore property that is actually used by jQuery validate when doing each validation on your elements for the given form . Options 2b - After looking in to the code a bit more you could also use form .validate .settings.ignore as a way of setting the ignore property . The reason is that when looking at the validate function it checks to see if a validator object has already been stored for the form element via the .data function . If it finds a validator object stored with the form element then it just returns the validator object instead of creating another one . Comment : option 2 works . Comment : Thank you for the detailed answer Comment : Good work as the OP answer didn t work for me in MVC 5 Comment : your analysis helped me a lot in fixing one my validation issues . +1", "Question : I am trying to validate html-select element using jQuery Validate plugin . I set required rule to true but it always passes validation because zero index is chosed by default . Is there any way to define empty value that is used by required rule UPD . Example . Imagine we have the following html control : .. . .. . I want Validation plugin to use default-value as empty . Comment : Put some snippet of code so we can help . Comment : possible duplicate : stackoverflow.com questions 1271640 jquery-validate-select-box http : stackoverflow.com questions 1271640 jquery-validate-select-box .. . Answer : You only need to put validate required as class of this select and then put a option with value .. . .. . for example :", "Question : I m trying to validate a form using the validate plugin for jquery . I want to require that the user check at least one checkbox in a group in order for the form to be submitted . Here s my jquery code : .. . .. . and here s the html-form : .. . .. . The problem is that the form submits even if nothing is checked . How can I resolve this Comment : shouldn t your name elements be an array in the form of name list anyway .. . Answer : Good example without custom validate methods but with metadata plugin and some extra html . Demo from Jquery.Validate plugin author http : jquery.bassistance.de validate demo radio-checkbox-select-demo.html", "Question : I have a very big form which I am splitting across four segments in a wizard like way . The wizard plugin smart-wizard has the form segment currently in focus avtive while the remaining 3 segments are hidden in the dom . I am using the jquery-validate plugin to validate the form on the fly . The problem is validating that part of the form which is shown . Only when the user moves to the next step I want to run validation on that part of the form . Is there a way to specify an array of elements to validate any the validation plugin is triggered In the onLeaveStep option of the wizard plugin I called the validate plugin . Weather or not the user clicks next or previous validation will be triggered . .. . Answer : Quote OP : .. . .. . In the onLeaveStep option of the wizard plugin I called the validate plugin . Wether or not the user clicks next or previous validation will be triggered .. . .. . The problem is that .validate is not a method for testing the form s validity . Rather .validate is the method for initializing the plugin on the form . You would do it once on page load and any subsequent calls to .validate are ignored . To test the form programatically with the jQuery Validate plugin you use the .valid method http : jqueryvalidation.org valid which triggers a test and returns a boolean . The jQuery Validate plugin by default will also ignore any hidden input elements . So perhaps you can leverage this feature to your advantage when using your wizard plugin . within your DOM ready handler.. . .. . .. . within your wizard.. . Otherwise when I create multi-step forms I use a unique set of form tags for each section . Then I use .valid to test the section before moving to the next . Don t forget to first initialize the plugin call .validate on each form when the page is fully loaded . Then on the last section I use .serialize on all sections and concatenate each into a data query-string to be submitted . Something like this.. . Comment : @Binaryrespawn : You still have to initialize the plugin on each form first including your rules and options . uniqueFormTag .validate .. . . The .validate method for any all forms can be called immediately after the HTML is loaded . Comment : I changed the code above that is my current code . Are you saying to sub divide the form into 4 separate sub forms and then call the plugin then serialize join them up and do the major save . Comment : @Binaryrespawn they are not sub -forms . Each section is contained within its own form . Three steps three forms call .validate on each one . Last step is where you can serialize the data on each one join the data and submit . Call .validate initialize on page load and call .valid test on each step . Comment : Thanks Sparky you rock .", "Question : I am trying to validate html-select element using jQuery Validate plugin . I set required rule to true but it always passes validation because zero index is chosed by default . Is there any way to define empty value that is used by required rule UPD . Example . Imagine we have the following html control : .. . .. . I want Validation plugin to use default-value as empty . Comment : Put some snippet of code so we can help . Comment : possible duplicate : stackoverflow.com questions 1271640 jquery-validate-select-box http : stackoverflow.com questions 1271640 jquery-validate-select-box .. . Answer : use min rule .. . .. . set first option value to 0 Comment : The first value is fixed there is some backend logic against this value Comment : Great SIMPLE : -D Comment : great hack funky", "Question : I am trying to validate html-select element using jQuery Validate plugin . I set required rule to true but it always passes validation because zero index is chosed by default . Is there any way to define empty value that is used by required rule UPD . Example . Imagine we have the following html control : .. . .. . I want Validation plugin to use default-value as empty . Comment : Put some snippet of code so we can help . Comment : possible duplicate : stackoverflow.com questions 1271640 jquery-validate-select-box http : stackoverflow.com questions 1271640 jquery-validate-select-box .. . Answer : It s simple you need to get the Select field value and it cannot be default .", "Question : I am trying to use the validate plugin http : bassistance.de jquery-plugins jquery-plugin-validation on a div as shown in the answer to this question http : stackoverflow.com questions 1046739 jquery-validator-plugin-without-using-form 1089155 1089155 : .. . .. . I have all within a form . I am getting a bunch of different errors on different browsers . Firefox : validator in undefined .. . IE8 : settings is null or not an object .. . Chrome : Cannot read property settings of undefined .. . .. . Any help appreciated .. . Answer : You can get the same error if you select the form by class .. . .. . .form class .validate .. . .. . .. . instead of by ID form id .validate .. . .. . .. . or tag name form .validate .. .", "Question : I m trying to validate a form using the validate plugin for jquery . I want to require that the user check at least one checkbox in a group in order for the form to be submitted . Here s my jquery code : .. . .. . and here s the html-form : .. . .. . The problem is that the form submits even if nothing is checked . How can I resolve this Comment : shouldn t your name elements be an array in the form of name list anyway .. . Answer : How about this : Comment : this is a very smooth and fast way I like it Comment : But makes no use of the jQuery Validate plugin as requested by the OP . Comment : I can t see the revision history for the question but I don t think that the original version mentioned the Validate plugin . I could be wrong though.. . Comment : Great works like a charm : Comment : awesome works great. . thank you @jgeewax Sir.. .", "Question : I d like to use the Tooltipster plugin http : calebjacob.com tooltipster to display form errors generated by the jQuery Validate plugin http : docs.jquery.com Plugins Validation . jQuery for Validate plugin : .. . .. . jQuery for Tooltipster plugin : .. . .. . HTML : .. . .. . How would I integrate the usage of these two jQuery plugins so that validation errors appear inside the tooltips .. . Answer : First initialize the Tooltipster plugin with any options http : calebjacob.com tooltipster options on all specific form elements that will display errors : .. . .. . Second use Tooltipster s advanced options http : calebjacob.com tooltipster advanced along with the success : and errorPlacement : callback functions built into the Validate plugin http : docs.jquery.com Plugins Validation validate toptions to automatically show and hide the tooltips as follows : .. . .. . Working Demo : http : jsfiddle.net 2DUX2 http : jsfiddle.net 2DUX2 .. . .. . EDIT : Updated code to take advantage of the new Tooltipster API features released in version 2.1 on 2 12 13 .. . .. . .. . .. . UPDATE for Tooltipster 3.0 .. . .. . Tooltipster 3.0 is out and as such doesn t work the same as illustrated above . The following code provides an updated example . This version has the added benefit of not calling Tooltipster on every keystroke when the message has not yet changed . Don t forget that you still need to attach .tooltipster to your relevant input elements as illustrated above . .. . .. . DEMO using Tooltipster version 3.0 : jsfiddle.net 2DUX2 3 http : jsfiddle.net 2DUX2 3 Comment : I am trying to use your JS but I get this error and not sure how to solve it as i am new to JS : TypeError : .. . .validate is not a function submitHandler : function form-for demo Comment : @starbucks sounds like you forgot to include the code for the jQuery Validate plugin . Comment : @starbucks Click this link http : stackoverflow.com search q user 3A594235+ 5Bjquery-validate 5D+is 3Aanswer+highlight and browse my other answers for something similar . Otherwise feel free to read the FAQ http : stackoverflow.com help and post a new question because the comments section is not the place for new issues questions . Comment : @Sparky Great question and even better answer : Unfortunately I can t get it to work with dynamically created controls : Comment : @eddy I m sorry you re having problems but hijacking comments on another question s answer is not the proper way to ask for help here . Please post a whole new question as I stated already .", "Question : I have the following form . I am trying to validate the inputs using jquery validation plugin . I have tried some codes but its not working . When I click on the submit button it just goes to form s action . Could you please show me how to validate the above form using jquery validation plugin Thanks : .. . .. . My Jquery code : .. . Answer : here is my way .. . .. . Hope it has little help for you .", "Question : I m trying to validate a form using the validate plugin for jquery . I want to require that the user check at least one checkbox in a group in order for the form to be submitted . Here s my jquery code : .. . .. . and here s the html-form : .. . .. . The problem is that the form submits even if nothing is checked . How can I resolve this Comment : shouldn t your name elements be an array in the form of name list anyway .. . Answer : Here is the a quick solution for multiple checkbox validation using jquery validation plugin :", "Question : I have the following form . I am trying to validate the inputs using jquery validation plugin . I have tried some codes but its not working . When I click on the submit button it just goes to form s action . Could you please show me how to validate the above form using jquery validation plugin Thanks : .. . .. . My Jquery code : .. . Answer : You can find a good answer here : jquery-validation-for-array-of-input-elements http : www.codeboss.in web-funda 2009 05 27 jquery-validation-for-array-of-input-elements . In jquery.validate.js we can find a function named checkForm we have to modify it as below :", "Question : I am trying to use the validate plugin http : bassistance.de jquery-plugins jquery-plugin-validation on a div as shown in the answer to this question http : stackoverflow.com questions 1046739 jquery-validator-plugin-without-using-form 1089155 1089155 : .. . .. . I have all within a form . I am getting a bunch of different errors on different browsers . Firefox : validator in undefined .. . IE8 : settings is null or not an object .. . Chrome : Cannot read property settings of undefined .. . .. . Any help appreciated .. . Answer : This isn t the answer you want to hear but the other answer is incorrect it may have been right when it was posted but there have been several major jQuery validation plugin changes since then . The validation plugin http : bassistance.de jquery-plugins jquery-plugin-validation is currently designed to work on a form and only on a form . You can also note that all of the plugin documentation http : docs.jquery.com Plugins Validation references a form not any other generic container . The plugin itself keeps track of validator.currentForm internally which refers to the this of the passed in selector getting .elements https : developer.mozilla.org en DOM form.elements etc off that...it s really not going to work any other way not the way the current version s written . The overall solution alternative approach here : call .validate http : docs.jquery.com Plugins Validation validate options on the form element the jQuery wrapper for it rather directly not any other container . If you need to divide your form use fieldset https : developer.mozilla.org en HTML Element fieldset elements possibly using the ignore : : hidden option in .validate if you don t want to validate input fields that aren t visible to the user . Comment : this is the answer I needed thanks . I just needed a final word on the topic . Would you be able to provide a link-to a question showing that alternative solution or to copy-paste a sample in here or maybe that should be another question : Comment : What if I don t submit the form and instead have a simple button which doesn t post the form and I explicitly validate using .validate on the click of that button Is that possible Comment : @Ismail - In that case you still use .validate initially to rig up the validation then use .valid which checks if the form is valid according to the rules you setup . You can read more on that function here : docs.jquery.com Plugins Validation valid http : docs.jquery.com Plugins Validation valid Comment : Hi I am getting the exactly same error but I dint call any validate method... . is there any clue why the error is still shown My question is here : stackoverflow.com questions 8473650 http : stackoverflow.com questions 8473650 error-validator-is-undefined-occured-when-edit-drop-down-list-using-jeditable Thanks in advance... .", "Question : i m trying to create a basic validation of my HTML form i m using Jquery Valate to achieve this . My main problem is that the form is submitted even when some of the fields are still invalid . My second problem is that the custom message that i want to show aren t appearing . Here is my HTML : .. . .. . JS .. . .. . Thanks in advance . Comment : This should be because of some error . When you submit the form and there is some error the validation code fails and the form is submitted without being controlled by the jquery-validate . Comment : To add to that check the console for an error in your code Comment : To check it in your error console you need to enable persistent option because as soon as you will get the error message in console the form submission would cause a page refresh . Comment : Thanks i am gonna check the console with the persistent option . I am still a noob in this so it might take a while . .. . Answer : See this : .. . .. . jQuery validate plugin : accept letters only http : stackoverflow.com questions 2476378 jquery-validate-plugin-accept-letters-only .. . .. . regarding custom validator methods for you other issues . Comment : Or just use the lettersonly rule that s included in the additional-methods.js file https : cdnjs.cloudflare.com ajax libs jquery-validate 1.15.0 additional-methods.js .", "Question : I m using the jQuery Validation Plugin http : bassistance.de jquery-plugins jquery-plugin-validation on my form . On my form I have a Telephone field and a Mobile No . field . How would I go about making it so the user has to fill in one of them but it can be either field Comment : I think you d have to find a way to remove a rule after one is filled in and back again if they remove the value and type in the second field . That would dynamically create your validation script . It sounds like a simple solution like this would work with simple jQuery and not the validation library . Comment : possible duplicate of jQuery Validate - require at least one field in a group to be filled http : stackoverflow.com questions 1300994 jquery-validate-require-at-least-one-field-in-a-group-to-be-filled .. . Answer : Requirement is Validation need to be either C or A and B is required . The thing worked for me is :", "Question : I am using jquery 1.8.3 and jquery validation plugin 1.13.1 which is a latest validation version . my form looks like this .. . .. . And my validations looks like this - .. . .. . The form is in forms section in mura admin . I created that using form editor . I am unable to understand why the form gets submitted even when there are invalid fields Could it be because HTML5 validations are turned off by validation plugin and Mura just submits the form no matter if the form is valid or invalid But then why doesn t the validation plugin do preventdefault if the validations fails Also I tried using JSFiddle for the validations and it works there . Please help me out . Thanks . FYI . The above form html is the one from page source and not actual form from the form editor . That is why all the weird form id and cffp mm etc . Comment : JavaScript does not care about your framework or CMS . All that matters is the code rendered in the browser source . Meanwhile the code you ve shown us is working perfectly fine : jsfiddle.net oemuca7u http : jsfiddle.net oemuca7u Comment : If the form is submitting while invalid it simply means that something is broken within the JavaScript . Look at your browser s JavaScript error console . Comment : I do not get any error in firebug . I did mention in my question that the code works fine in fiddle . I debugged more and found out that Mura calls a function validate which is an ajax call once the submit button is clicked . URL was this localhost tasks validate remote.cfc method validate Comment : You also have rules defined by phone and message but the name on those fields are tel and comment . You must declare rules using the correct name attributes . Comment : localhost tasks validate remote.cfc method validate has absolutely nothing to do with JavaScript or jQuery Validate s .validate method . .. . Answer : To those who came here searching for the same issue . I added novalidate novalidate onsubmit return true to the form tag and it did the trick . Mura was overriding the jquery validations even though jQuery Validation plugin was putting the novalidate attribute in form tag so I had to manually add novalidate there . I hope this helps . Comment : The answer does not make any sense given the content of your OP . The novalidate tag is automatically put there when jQuery Validate is initialized and it s only there to stop HTML5 validation . Whether it s there or not jQuery Validate is what s stopping the invalid form from submitting . Something unidentified is breaking your JavaScript or stopping the plugin from initializing properly . Comment : Was onsubmit return true there this whole time I can t see how that s going to help anything . What happens when you remove it" ] }
[ "yes-answer-long", "yes-answer-short" ]
jquery
UNK_RELATION
artax@http-1.1@35
artax -- artax is an asynchronous @placeholder client built on the amp concurrency framework .
{ "confidence": [ 46.12548065185547, 42.50273513793945, 39.575138092041016, 39.15928268432617, 33.476722717285156, 33.476722717285156, 19.718475341796875, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 14.459208488464355, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043, 12.998438835144043 ], "content": [ "Can anyone shed light on the correct method to disable peer verification with Artax", "First go ahead and grab amphp artax : 1.0.0-rc2 .. . .. . Then go ahead and do : .. . .. . If that doesn t work then edit composer.json and add-in the req for those projects : .. . .. . The problem is that composer can t resolve the amphp artax package for some reason .", "JFYI : We are currently replacing the artax http client by another one so after the next pdo release which will happen soon this issue should be gone .", "- crate crate-pdo 0.0.7 requires amphp artax 1.0.0-rc4 - no matching package found .", "When making a POST request to a server with an invalid SSL certificate Cloudflare has to reissue the certificate Artax returns the following error : .. . .. . stream socket enable crypto : SSL operation failed with code 1 .", "Returned : Call to undefined method Artax Request : : setOption in home ias public html wp-content plugins ias core helper-classes ias-redmine.php on line 29", "@bdb.jack You need to call setOption on the Client instance -- not the Request instance .", "OpenSSL Error messages : error : 14090086 : SSL routines : SSL3 GET SERVER CERTIFICATE : certificate verify failed .. . .. . I have attempted to use .. . .. . and .. . .. . However in both cases errors are thrown .", ".. . .. . Update .. . .. . I ve tried both : .. . .. . And .. . .. . Both give me a response of 400 Bad Request .", "Hmm .. .", "I ll look into it .. .", "In the meantime what version of PHP are you using", "I.E .", "what s the output from var-dump PHP VERSION", "5.4.27-1+deb.sury.org precise+1", "Sorry for the slowness responding here .", "I ve been working on a complete rewrite of the project and should be able to answer this in full in the next couple of days .", "There was a bug so verify peer name didn t work on versions before PHP 5.6 .", "github.com amphp socket releases tag v0.9.4 https : github.com amphp socket releases tag v0.9.4", "Maybe allowing self-signed would work :", "With the current master branch the following will bypass the validation :", "I m trying to install the Crate PDO driver from here : https : github.com crate crate-pdo .. . .. . The manual says to use composer.phar like so : .. . .. . php composer.phar require crate crate-pdo : 0.0.3 .. . .. . However that produces the following : .. . .. . Your requirements could not be resolved to an installable set of packages .", ".. . .. . Problem 1 .. . - Installation request for crate crate-pdo 0.0.7 .", "- satisfiable by crate crate-pdo 0.0.7 .", ".. . Potential causes : .. . - A typo in the package name .. . - The package is not available in a stable-enough version according to your minimum-stability setting .. . see https : groups.google.com d topic composer-dev g3ASeIFlrc discussion for more details .", ".. . .. . I ve looked at the minimum-stability setting but am unsure how to use that where exactly do I set that .", "This is also my first time using composer so perhaps I m overlooking something", "Edit .. . .. . As of 1 8 2015 there s a fresh release https : github.com crate crate-pdo on git that does not require the work around described above .", "Simply require crate and run composer update .", "Thanks this worked .", "I do have new php errors now though .", "If I manage to solve those I ll post a link here .", "@SebastianUtz That s awesome", "I wasn t expecting to see you respond here .", "Keep up the great work", "We ve just released v0.1.0 which fixes this issue ." ] }
{ "confidence": [ 54.266990661621094, 52.38286209106445, 49.12934875488281 ], "content": [ "Question : I m trying to install the Crate PDO driver from here : https : github.com crate crate-pdo .. . .. . The manual says to use composer.phar like so : .. . .. . php composer.phar require crate crate-pdo : 0.0.3 .. . .. . However that produces the following : .. . .. . Your requirements could not be resolved to an installable set of packages . .. . .. . Problem 1 .. . - Installation request for crate crate-pdo 0.0.7 . - satisfiable by crate crate-pdo 0.0.7 . - crate crate-pdo 0.0.7 requires amphp artax 1.0.0-rc4 - no matching package found . .. . Potential causes : .. . - A typo in the package name .. . - The package is not available in a stable-enough version according to your minimum-stability setting .. . see https : groups.google.com d topic composer-dev g3ASeIFlrc discussion for more details . .. . .. . I ve looked at the minimum-stability setting but am unsure how to use that where exactly do I set that . This is also my first time using composer so perhaps I m overlooking something .. . Answer : First go ahead and grab amphp artax : 1.0.0-rc2 .. . .. . Then go ahead and do : .. . .. . If that doesn t work then edit composer.json and add-in the req for those projects : .. . .. . The problem is that composer can t resolve the amphp artax package for some reason . Edit .. . .. . As of 1 8 2015 there s a fresh release https : github.com crate crate-pdo on git that does not require the work around described above . Simply require crate and run composer update . Comment : JFYI : We are currently replacing the artax http client by another one so after the next pdo release which will happen soon this issue should be gone . Comment : Thanks this worked . I do have new php errors now though . If I manage to solve those I ll post a link here . Comment : @SebastianUtz That s awesome I wasn t expecting to see you respond here . Keep up the great work Comment : We ve just released v0.1.0 which fixes this issue .", "Question : When making a POST request to a server with an invalid SSL certificate Cloudflare has to reissue the certificate Artax returns the following error : .. . .. . stream socket enable crypto : SSL operation failed with code 1 . OpenSSL Error messages : error : 14090086 : SSL routines : SSL3 GET SERVER CERTIFICATE : certificate verify failed .. . .. . I have attempted to use .. . .. . and .. . .. . However in both cases errors are thrown . Can anyone shed light on the correct method to disable peer verification with Artax .. . .. . Update .. . .. . I ve tried both : .. . .. . And .. . .. . Both give me a response of 400 Bad Request . Comment : Hmm .. . I ll look into it .. . In the meantime what version of PHP are you using I.E . what s the output from var-dump PHP VERSION Comment : 5.4.27-1+deb.sury.org precise+1 Comment : Sorry for the slowness responding here . I ve been working on a complete rewrite of the project and should be able to answer this in full in the next couple of days . Comment : There was a bug so verify peer name didn t work on versions before PHP 5.6 . github.com amphp socket releases tag v0.9.4 https : github.com amphp socket releases tag v0.9.4 .. . Answer : Maybe allowing self-signed would work : Comment : Returned : Call to undefined method Artax Request : : setOption in home ias public html wp-content plugins ias core helper-classes ias-redmine.php on line 29 Comment : @bdb.jack You need to call setOption on the Client instance -- not the Request instance .", "Question : When making a POST request to a server with an invalid SSL certificate Cloudflare has to reissue the certificate Artax returns the following error : .. . .. . stream socket enable crypto : SSL operation failed with code 1 . OpenSSL Error messages : error : 14090086 : SSL routines : SSL3 GET SERVER CERTIFICATE : certificate verify failed .. . .. . I have attempted to use .. . .. . and .. . .. . However in both cases errors are thrown . Can anyone shed light on the correct method to disable peer verification with Artax .. . .. . Update .. . .. . I ve tried both : .. . .. . And .. . .. . Both give me a response of 400 Bad Request . Comment : Hmm .. . I ll look into it .. . In the meantime what version of PHP are you using I.E . what s the output from var-dump PHP VERSION Comment : 5.4.27-1+deb.sury.org precise+1 Comment : Sorry for the slowness responding here . I ve been working on a complete rewrite of the project and should be able to answer this in full in the next couple of days . Comment : There was a bug so verify peer name didn t work on versions before PHP 5.6 . github.com amphp socket releases tag v0.9.4 https : github.com amphp socket releases tag v0.9.4 .. . Answer : With the current master branch the following will bypass the validation :" ] }
[ "yes-answer-long", "yes-answer-short" ]
http-1.1
UNK_RELATION
automator@macros@112
automator -- an application first appearing in apple s os x providing a point and click interface for creating @placeholder to automate tasks .
{ "confidence": [ 36.852699279785156, 36.13667297363281, 29.785381317138672, 29.747142791748047, 28.93844223022461, 28.926105499267578, 28.841995239257812, 28.473190307617188, 28.248620986938477, 28.1158447265625, 27.55449867248535, 27.476951599121094, 27.296260833740234, 27.270843505859375, 26.973392486572266, 26.940555572509766, 26.746671676635742, 26.599720001220703, 26.273088455200195, 26.273088455200195, 26.260957717895508, 26.230552673339844, 25.92558479309082, 25.878965377807617, 25.878965377807617, 25.588207244873047, 25.47168731689453, 25.43885040283203, 25.43885040283203, 25.2956485748291, 25.259437561035156, 25.083847045898438, 24.846731185913086, 24.814496994018555, 24.617324829101562, 24.524944305419922, 24.475446701049805, 24.475446701049805, 24.475446701049805, 24.377260208129883, 24.377260208129883, 24.377260208129883, 24.377260208129883, 24.377260208129883, 24.259374618530273, 24.052734375, 24.027992248535156, 24.016000747680664, 24.016000747680664, 24.016000747680664, 24.016000747680664, 24.016000747680664, 23.810989379882812, 23.611026763916016, 23.582141876220703, 23.582141876220703, 23.582141876220703, 23.582141876220703, 23.582141876220703, 23.582141876220703, 23.582141876220703, 23.381019592285156, 23.341785430908203, 23.184234619140625, 23.144515991210938, 23.125980377197266, 23.108707427978516, 23.108707427978516, 22.86612319946289, 22.86612319946289, 22.86612319946289, 22.86612319946289, 22.86612319946289, 22.86612319946289, 22.853057861328125, 22.75766944885254, 22.75766944885254, 22.74292755126953, 22.65419578552246, 22.598339080810547, 22.58590316772461, 22.58590316772461, 22.58590316772461, 22.56954002380371, 22.56954002380371, 22.56954002380371, 22.56954002380371, 22.56954002380371, 22.56954002380371, 22.51429557800293, 22.51429557800293, 22.51429557800293, 22.51429557800293, 22.51429557800293, 22.51429557800293, 22.51429557800293, 22.51429557800293, 22.51429557800293, 22.187000274658203, 22.187000274658203 ], "content": [ "Is this a bug in OS X Automator", "Is there an easy way to use Automator on OS X to replace spaces in filenames with underscores", "Instead use Automator to create an OS X Service http : www.macosxautomation.com services learn tut01 index.html as services can manipulate selected text in almost any OS X app no application scripting required .", "I have an automator application I wrote that uses some basic automator tools and incorporates in some AppleScript and it saves and runs on my computer correctly I am running OS X 10.7.5 .", "The first item in the array is the compression level that was given to the Automator Script .", "I m creating an automator pdf print plugin .", "The workflow is at https : www.dropbox.com s jp4t9pen3gvtyiq Rename-Action.workflow.zip .. . .. . I guess it is something simple but this is the first applescript automator workflow I m creating .", "OS X Services are the correct way to do it and the easiest way to write those is in Automator .", "To see how it works try this very simple Automator service : .. . .. . Create a Service in Automator and choose Text and Every application as input .", "Apple supplies examples of Rule Action scripts with Mac OS X .", "Here s another Services tutorial http : arstechnica.com apple 2011 03 howto-build-mac-os-x-services-with-automator-and-shell-scripting that shows how to do this .", "I m trying to find a running Automator-based OS X Service s own filesystem location from inside that service .", "I am another one that has never used Automator and quite a lot of people say it s easy to use .", "My software is just the default automator that comes with my Mac OS version .", "System events got an error : can t get application automator runner 2 .", "so in automator .", "When creating an Automator Service the paths of the selected items are given to the service automatically .", "AppleScript via Image Events http : www.macosxautomation.com applescript imageevents index.html a scriptable faceless background application provided by OS X .", "Is it possible to rework this script so that Automator will instead copy and resize the first file then copy and resize the second file and so on", "Here s how you would do that in Automator : .. . .. . First get the files and the compression setting : .. . .. .", "What you are describing is simply The Automator Way .", "I m using Automator to combine PDF files but can t figure out how to automate saving the resulting file to the same folder .", "On Mac OS X Apple mail is the default mail client .", "Is there a specific reason to use Automator for this", "Is automator the best way to do this", "When I run Apple s Automator to simply cut a bunch of images in their size Automator will also reduce the quality of the files jpg and they get blurry .", "I have an Automator application that renames a scanned file and emails it as an attachment .", "but not from Automator .", "In Automator no output .. .", "I found this apple script .. . .. . So I created an service in Automator with this apple script attached it to keyboard shortcut whenever I run this script in automator it works but when i hit the shortcut im getting The action Run AppleScript encountered an error .", "The Automator variables are only used in the Automator workflow .", "automator screenshot http : i.stack.imgur.com NhdnN.png", "I would not like to use a third party framework isn t this somehow easily possible using apple script automator workflows", "Finally got around to use the Automator in a proper and really useful way .", "Passing files and compression settings to a shell script in Automator http : i.stack.imgur.com 09JtO.png .. . .. . Make sure that the first Get Value of Variable action is not accepting any input right-click on them select Ignore Input and that the second Get Value of Variable takes the input from the first .", "How does that Apple Script for OS X looks like", "I created an automator application and made it run a shell script on the bash .", "Is there any way i can open that connection with an automator application and keep in the background", "I opened Automator and created an Application under watch me do .", "Save the Automator document .", "The problem is with the Services Automator wrapper .", "Automator variables are not persistent .", "No Automator or AppleScript silliness .", "Automator http : i.stack.imgur.com wEf0D.png", "The error is : .. . .. . Your python script return the Automator Runner application when it run as service it s the frontmost in the background but not in the foreground .", "As far as automation is concerned Automator includes the ability to create Mac OS X Services which can operate on selected text in almost any application and can be bound to keyboard-shortcuts in System Preferences so you might look into that .", "But I ve found out that I can t use window or document here in Automator to make change to Mac OS so can someone show me how to convert this Javascript code into JXA which Automator can understand", "This is a followup to Apple s Automator : compression settings for jpg", "Ran it with try error in automator viola no issues at all .", "There are also two Automator Actions that will also solve this problem .", "I don t think automator is the way to go .", "automator could run the shell script directly though", "Got it working by using Automator and creating a service which is activated and runs the script when a certain keystroke is pressed .", "I want to be able to right-click the tar file use the Automator service and untar it automatically .", "I am making an Automator action .", "Have her open it her Automator .", "Have fun with Automator Michael Hamburg", "I m betting that Automator knows nothing of it .", "---Edit--- .. . .. . Oh this is tagged with an Automator tag .", "Is there a way to also do this through the Automator", "They said which utility namely Automator .", "This Applescript is then to be included in a Automator workflow .", "However when I click run or step instead of going and opening up the correct window Untitled the cursor moves to the Media button in automator and clicks that instead", "This is how the automator script looks like and it runs well till that point I have to require something .", "I m not sure if this is do-able via AppleScript and or Automator but I d like to be able to : .. . .. . a launch an application I know this can be done pretty easily by AppleScript or Automator .. . .. . b once the application is launched use AppleScript or Automator to select specific menu items .", ": .. . .. . PS : I would like to do this using mac automator and AppleScript I do not want to use Squish or eggPlant to automate UI .", "You can also open apps made with Automator using Automator without converting them at all .", "On Mac is it possible to use AppleScript Automator to show a preview of an image in the background while the Automator app is running", "I have an Automator script that consists of Ask for Finder Items to Copy Finder Items to Scale Images .", "Automator s Crop Images and Scale Images actions have no quality settings as is often the case with Automator simplicity trumps configurability .", "@melros : Automator actions are designed for simplicity not configurability which means you mostly are at the mercy of the decisions of the action developer as to their implementation .", "In order to create something similar for yourself : .. . .. . 1 . launch Automator .. . .. . 2 . when prompted choose the Service template .", "Lastly at the top of the Automator window you must configure two dropdowns that specify what this Service will be active for .", "Technical note : there is a limit of exactly 1000 files that can be multi-selected and renamed in one batch with Automator .", "I am guessing you are using a different application or a different version of Mac OS X .", "I m working on an Automator application that run s an applescript - which interacts with iterm a vim server .", "Obviously the Automator application can write the correct info to a the plist file and the runAservice method .", "I d like to launch Excel 2008 I have the home student edition which doesn t come preconfigured for Automator and then click the File menu and click on open .", "Automator view http : i.stack.imgur.com lJJdu.png .. . .. . I have already researched where are this scripts stored : Library Automator I have disabled in Parallels Share Windows Applications with Mac Automator is set to open these scripts obviously :", "But I want to know why this code earlier without try-error function was giving the error messages when ran outside automator application .", "Open Automator create a custom workflow .", "Next I have an Automator pause .", "Is Automator even a proper way to go", "http : stackoverflow.com questions 10702121 apples-automator-compression-settings-for-jpg .. . .. . It works .", "I created a loop in Automator that simply call an external web page .", "I have an Automator script for a service that looks like this : .. . .. . No other options set .", "I m trying to create a Service using Automator that simply calls textutil convert .", "I ve tried to do this already in automator by using the watch me do function .", "Any help appreciated but maybe automator is the wrong way to go", "My plan is to use a combination of Automator and AppleScript .", "I m running a Photo Booth program in Automator .", "I m assuming it must be Automator doing something", "In Automator select the contents of the script and copy it to the clipboard .", "Here s my AppleScript code : .. . .. . And a screenshot of automator :", "I m trying to run a ruby script in the mac automator .", "Do Automator variable persist between executions of a workflow", "I don t use automator so I m not sure .", "I m a complete nub with Applescript Automator however .", "Alternately is there a way to do this with Automator", "for a cocoa-applescript automator action ." ] }
{ "confidence": [ 46.65949249267578, 44.800010681152344, 37.752994537353516, 37.21897888183594, 37.021976470947266, 35.91548156738281, 35.781272888183594, 35.24603271484375, 35.10679244995117, 34.89910888671875, 34.76673889160156, 34.51475524902344, 34.46796798706055, 34.434932708740234, 34.37706756591797, 34.223487854003906, 34.10158920288086, 33.8895149230957, 33.87922668457031, 33.789894104003906 ], "content": [ "Question : I m using a Mac OSX 10.6 and I have a function in a desktop application that I want to automate . Manually I press Command+R wait for the application to read some data form a physical device for 1 minute then press command+R again to take another reading at this point it asks me if I want to save the data so I press tab tab and then space bar to select to save the data . I do this 3 times in total so I want to automate the 3 times so I can walk away from the computer and it will read 3 times automatically . Is automator the best way to do this I ve tried to do this already in automator by using the watch me do function . This starts with the bring window Untitled to the front and then the second command is press command+R . I then found a little piece of apple script to wait 1 minute and I plug the first action into that for the wait function . However when I click run or step instead of going and opening up the correct window Untitled the cursor moves to the Media button in automator and clicks that instead But the application is definitely listed as the correct one . Any help appreciated but maybe automator is the wrong way to go .. . Answer : Apple Script is the best way to go for things that don t require any special processing that would need to be done by a chain of different applications . 1 uging the AppleScript Utility make sure that you have GUI scripting enabled in the AppleScript Utility 2 using the Script Editor choose File Open Library and see if your application has any scriptable functions .. . these may be a better way to go . 3 Create a new script and put in something like this .. . I used Firefox to test it ... . should work for you ... . .. . .. . Once you ve got the script you can use the save-as to make it into an app or save it as a script in your Library Scripts folder or paste it into an automator workflow and schedule it with iCal . Comment : make sure to change the delay values to the number of seconds to wait .. . and change Firefox to your app s name", "Question : I m using a Mac OSX 10.6 and I have a function in a desktop application that I want to automate . Manually I press Command+R wait for the application to read some data form a physical device for 1 minute then press command+R again to take another reading at this point it asks me if I want to save the data so I press tab tab and then space bar to select to save the data . I do this 3 times in total so I want to automate the 3 times so I can walk away from the computer and it will read 3 times automatically . Is automator the best way to do this I ve tried to do this already in automator by using the watch me do function . This starts with the bring window Untitled to the front and then the second command is press command+R . I then found a little piece of apple script to wait 1 minute and I plug the first action into that for the wait function . However when I click run or step instead of going and opening up the correct window Untitled the cursor moves to the Media button in automator and clicks that instead But the application is definitely listed as the correct one . Any help appreciated but maybe automator is the wrong way to go .. . Answer : I don t think automator is the way to go . You could use applescript but you should take a look at sikuli http : groups.csail.mit.edu uid sikuli . You will need to write the Sikuli script yourself but what you describe shouldn t be difficult Comment : Sikuli is also great btw thanks :", "Question : I m supper new here either Javascript and JXA so pardon me if I make some stupid questions . But I m trying to figure out a way to get the string from the highlighted text using JXA - JavaScript for Automation for Javascript can be recognized in Automator since Yosemite I thought I can make something work with these : window.getSelection in : .. . .. . This code is not mine somebody posted this . But I ve found out that I can t use window or document here in Automator to make change to Mac OS so can someone show me how to convert this Javascript code into JXA which Automator can understand Thanks a lot .. . Answer : Don t do that it s only applicable to JavaScript embedded inside a web browser . JXA is a standalone JS interpreter that has absolutely no understanding of web pages or DOM and frankly doesn t have much clue about Mac application scripting either btw . Instead use Automator to create an OS X Service http : www.macosxautomation.com services learn tut01 index.html as services can manipulate selected text in almost any OS X app no application scripting required . Comment : It s true that making it with Automator workflow is much less effort I managed to create one . But I was told to do it again using Javascript that s why things have become this complicated . Anyway thanks for your answer . Comment : Who told you to do it again in JavaScript Do they even know what they re talking about There is no way to get selected text from applications using the DOM-based JavaScript in your original post because that s not how Mac automation works . The closest you can get is to use GUI Scripting as in JMichaelTX s post to send Cmd-C keystrokes but GUI Scripting is an abominable hack : flaky unreliable and an absolute last resort definitely not the sort of code you want to be writing for others to use . OS X Services are the correct way to do it and the easiest way to write those is in Automator . Comment : i.e . Use the right tool for the job . Anyone who says otherwise is an idiot . If your Manipulate Selected Text service needs to interact with scriptable applications or the Unix shell Automator includes Run AppleScript and Run Shell Script actions for running scripts directly . Here s another Services tutorial http : arstechnica.com apple 2011 03 howto-build-mac-os-x-services-with-automator-and-shell-scripting that shows how to do this . Comment : Sorry I didn t make myself clear enough . I realized that the using of window or document is impossible in JXA or Automator so I asked if anyone know how to write a Javascript that can do the job without using the DOM methods since there are quite little documentation about JXA methods that I can refer to . Not that using DOM-based Javascript to get the selected text . Comment : And you are right . We should use the right tool to do the job . I m learning and my instructor tell me to do this task . Maybe it s not an efficient way but at least I now know it s not an efficient way . And receiving answers from pros like you guys also teach me a lot . Thank you .", "Question : I have a simple Apple Script that mounts a folder : .. . .. . This runs on start up since Mac OS X 10.5.5 doesn t have the concept of mapped drives like Windows . The script doesn t go as far as I d like though . I get the machine IP added to Finder Sidebar and when I click it all of the shared folders for that machine appear including the above folder with the little eject icon . How do I get that folder to appear under Devices in Finder Sidebar using Apple Script . Is there a way to also do this through the Automator .. . Answer : You might want to look into using the fstab instead of a mount script . Check here http : forums.macrumors.com showthread.php t 170786 for how to go about this . If you want to have mounted folders available on the sidebar of Finder you probably can just drag the Volumes name folder to your places bar .", "Question : I have an automator application I wrote that uses some basic automator tools and incorporates in some AppleScript and it saves and runs on my computer correctly I am running OS X 10.7.5 . I emailed it to a colleague running 10.8.4 and when she tried to open it an error appeared : You can t open the application MyApp because the Classic environment is no longer supported . From what I understand classic support dropped in way earlier versions of Mac OS and I don t understand why it should be giving me errors today nor why my program written on a Lion machine would save in such an old state . Could there be a problem with the AppleScripts I am running Or with the way I am saving the app EDIT .. . I noticed that when I tried downloading the copy I emailed and running it I experienced the same problem on my machine . It launches fine from my computer but the version downloaded from my email has the same problem . .. . Answer : Your software may be using Carbon technology which isn t supported anymore .. . .. . Apple s Old Carbon API An Upgrade Path from the Classic API http : en.wikipedia.org wiki Carbon 28API 29 .. . .. . And or your software may be using Rosetta to translate old Power PC PPC code : .. . .. . Apple Used to Support Rosetta for Power PC PPC http : en.wikipedia.org wiki Rosetta 28software 29 Comment : My software is just the default automator that comes with my Mac OS version . Is there any way to check change this Comment : If you email a copy to me I can look at it . kaydell@learnbymac.com Comment : You could try send your colleague the workflow as a workflow file . Have her open it her Automator . I suspect in this form her Automator will either update it or tell her the parts that need updating . If all goes well she can then save it as an app . Comment : Ok I saved it originally as an app - is there a way to save it as a workflow from there Comment : Yes you can choose Convert to.. . from the File menu and change how any kind of Automator document is saved At least in Mountain Lion . You can also open apps made with Automator using Automator without converting them at all . Also emailed me his app and the problem seemed to be that it was emailed without being archived . When he or she sent it a second time this time being zipped it worked OK .", "Question : null .. . Answer : I have both Office 2011 and Office 2016 installed on my Mac . I also have Parallels and the windows version of MSFT Office . I need to automate some work and need to use the scripts that are bundled with the Office for Mac 2011 version . I am running Yosemite 10.10.5 14F1808 .. . .. . When I enter automator I see the scripts but they point to the Parallels versions of Office : .. . .. . Automator view http : i.stack.imgur.com lJJdu.png .. . .. . I have already researched where are this scripts stored : Library Automator I have disabled in Parallels Share Windows Applications with Mac Automator is set to open these scripts obviously : file info http : i.stack.imgur.com qxKgJ.png", "Question : When I run Apple s Automator to simply cut a bunch of images in their size Automator will also reduce the quality of the files jpg and they get blurry . How can I prevent this Are there settings that I can take control of Edit : .. . .. . Or are there any other tools that do the same job but without affecting the image quality .. . Answer : Automator s Crop Images and Scale Images actions have no quality settings as is often the case with Automator simplicity trumps configurability . However there is another way to access CoreImage s image-manipulation facilities whithout resorting to Cocoa programming : the Scriptable Image Processing System which makes image-processing functions available to .. . .. . 1 . the shell via the sips utility https : developer.apple.com library mac documentation Darwin Reference ManPages man1 sips.1.html . You can fiddle with the most minute settings using this but as it is a bit arcane in handling you might be better served with the second way .. . 2 . AppleScript via Image Events http : www.macosxautomation.com applescript imageevents index.html a scriptable faceless background application provided by OS X . There are crop and scale commands and the option of specifying a compression level when saving as a JPEG with .. . .. . save image as JPEG with compression level low medium high .. . .. . .. . Use a Run AppleScript action instead of your Crop Scale one and wrap the Image Events commands in a tell application Image Events block and you should be set . For instance to scale the image to half its size and save-as a JPEG in best quality overwriting the original : .. . .. . on run input parameters .. . set output to .. . repeat with aPath in input .. . tell application Image Events .. . set aPicture to open aPath .. . try .. . scale aPicture by factor 0.5 .. . set end of output to save aPicture as JPEG with compression level low .. . on error errorMessage .. . log errorMessage .. . end try .. . close aPicture .. . end tell .. . end repeat .. . return output -- next action processes edited files . end run .. . .. . .. . for other scales adjust the factor accordingly 1 100 .5 50 .25 25 etc . for a crop replace the scale aPicture by factor X by crop aPicture to width height . Mac OS X Automation has good tutorials on the usage of both scale http : www.macosxautomation.com applescript imageevents 04.html and crop http : www.macosxautomation.com applescript imageevents 07.html . Comment : Thank you for this precise answer but unfortunately all these things doesn t really say anything to me . I never worked with AppleScript . I am also wondering why this is happening anyways cause nothing in my automation asks for a compression . Comment : @melros : Automator actions are designed for simplicity not configurability which means you mostly are at the mercy of the decisions of the action developer as to their implementation . Comment : @Melros : I ve expanded my answer with sample code . Comment : Thank you for your detailed answer This actually brought me on a new path which I will definitely discover more in future", "Question : I m creating an automator pdf print plugin . When you choose the print plugin the filename to the pdf is the input normally var something documentName.pdf .. . .. . I would like to get the documentName to use it later in an Rename Finder Item . I m using atm applescript to accomplish this . The problem is that this only works when I put an Ask for Text Action before the applescript which displays the posix path . If I remove the Ask for Text action the applescript fails . The workflow is at https : www.dropbox.com s jp4t9pen3gvtyiq Rename-Action.workflow.zip .. . .. . I guess it is something simple but this is the first applescript automator workflow I m creating . As I fail on commenting .. . .. . Solution is .. . .. . as by @Ken post below . Thanks Comment : solution is on run input parameters tell application Finder set fileName to name of first item of input as string end tell return fileName end run as of @Ken post .. . Answer : Solution is .. . .. . as by @Ken s post .. . .. . Thanks", "Question : Is there an easy way to use Automator on OS X to replace spaces in filenames with underscores Comment : You should be able to shell script something like this and run it from the command-line .. . Answer : I am another one that has never used Automator and quite a lot of people say it s easy to use . Judging by the above tutorial i find that very hard . I am 64 years old not technically minded and to tell you the truth i would still prefer to do it manually.I have getting by all the time the same has a lot of people that do not evan mention it and have never used it at all the same has me Comment : Unfortunately when you start doing things that are technical on your computer it can be an issue . Some systems will see spaces as separators between different entities . They will understand Amazing Title.mpg as two separate things -- Amazing and Title.mpg . Calling it Amazing Title.mpg makes sure that this confusion doesn t happen .", "Question : I m a novice at coding so please be patient with me . I ve created a Workflow with Automator OSX which works fine . The only issue I have is that I want it to run on a number of inputs that is as a batch . I ve inserted the Loop action but the problem I m having is about changing the initial input each time . I would like to use an applescript to automate the insertion of the initial input each time . I have a TXT file with URLs . With an apple script I d like to copy a URL or a line of text to clipboard . In the next iteration I d like to copy the next URL or line of text . Can anyone help Thank you Comment : So the whole autmator should do only do the next 1 . get a next line from a file 1st at start 2 . copy the line to clipbard 3 . start again looping manually keypress or automatically by count Comment : @jm666 The Automator would do : 1 . get next line from a file 1st at start 2 . copy the line to clipbard 3 . Do all the remaining task in the workflow This has been completed by me no issue here 4 . Loop Automatically by count also completed by me no issue here .. . Answer : You don t need AppleScript to get the URLs but can directly extract them with Automator by using a shell task . After using the task that s getting contents of a folder this is a Finder task in Automator add a shell task as the next task . Make sure you select that the input is send as arguments instead of sending it to stdin . When you have done that you only need something like one of the following shell scripts . It first read all the files using cat . The @ is a shell variable that contains the arguments collected by the previous task : A list of paths to all files of batch folder . We pipe them to egrep will which will only output the URL filtered by their schemes . If you want to support any scheme official and unofficial schemes : Comment : I used the shell scrip you gave me and it works wonderfully. . cat @ egrep -io S http : S+ However because all the URLs are now being processed together Automator crashes further down the workflow about 25 of the time. . I ve only tested it with upto 4 URLs right now but I m expecting it would fail more often with more URL that are inserted . Ideally I d want it to work with around 75-100 URLs. . This is why I wanted one URL to run through the whole process before starting with the next one . Comment : I think it will crash because it will return an error when an file doesn t contain an URL . You can add true at the end of the command . The is an or that means that when grep fails it will return empty by executing the true command .", "Question : Is there an easy way to use Automator on OS X to replace spaces in filenames with underscores Comment : You should be able to shell script something like this and run it from the command-line .. . Answer : I ve set up a service called Rename Items that can be run by selecting any item or batch of items in the Finder right clicking and then selecting Services Rename Items .. . .. . This is useful as it will provide a small popup window when you perform the action where you can choose whatever settings you want for example you can make the sequence sequential replace text add text etc . In order to create something similar for yourself : .. . .. . 1 . launch Automator .. . .. . 2 . when prompted choose the Service template . 3 . drag-and-drop the Rename Finder Items action to the workflow area on the right you can find this action easily by typing rename into the search bar in the upper left of Automator .. . .. . 4 . you will be asked whether you want this service to duplicate files when they are renamed preserving the originals or just work on the files themselves if you do this your actions will not be undo-able .. . .. . 5 . configure the action to whatever you want the default prompt to be Add Date or Time Add Text Change Case etc . I have selected Make Sequential as my default but you can do whichever you prefer . 6 . At the bottom of the action bubble there are 3 small buttons Results Options Description . Choose Options and then tick the box that says Show this action when the workflow runs .. . .. . 7 . Lastly at the top of the Automator window you must configure two dropdowns that specify what this Service will be active for . Set this to : Service receives FILES OR FOLDERS in FINDER.APP .. . .. . 8 . Save and you re done . Select any file in the Finder now and under the Services menu you will find your new service under whatever name you gave when saving eg . Rename Items Whenever you run this service you will get a popup window that allows you to configure your renaming pattern . Comment : Thanks . Finally got around to use the Automator in a proper and really useful way . I find myself often renaming heaps of files like 50 in a go . Saves me endless of time . Have a beer . Comment : Glad to help . I hardly ever need to do this sort of thing but when I do this service has saved me heaps of time . I m always amazed at how fast it runs too . Comment : Being able to add whatever renaming convention I want to my right-click menu for files and folders is incredible Thanks Comment : Technical note : there is a limit of exactly 1000 files that can be multi-selected and renamed in one batch with Automator .", "Question : null .. . Answer : Can anyone help me write a script to play a sound from howjsay For example I can click a shortcut when I select a word from a website and it will play the pronunciation from howjsay . http : howjsay.com pronunciation-of-myselectedtexthere Comment : Looks like a parasitic ad site . Have you tried using translate.google.com which already provides a play audio button Or if you re in Safari try Edit Speech Start Speaking to play your selected text . As far as automation is concerned Automator includes the ability to create Mac OS X Services which can operate on selected text in almost any application and can be bound to keyboard-shortcuts in System Preferences so you might look into that . Of course bear in mind that the quality of text-to-speech machine-translation is still variable to say the least .", "Question : I use OS X Mountain 10.8.2 . I used Automator and added AppleScript copying the command from the old app s developer at the Iconoodle - Convenient ICNS to PNG image-conversion http : macscripter.net viewtopic.php id 25281 Iconoodle isn t supported by OS X 10.8 by being a PPC app . I saved the workflow as an application . I selected the images and dropped them into the application but the images weren t converted to ICNS . I also copied from the question Convert image to .icns file AppleScript Obj-C http : stackoverflow.com questions 11991645 convert-image-to-icns-file-applescript-obj-c and it didn t work either . I m really frustrated with it . I want to use Automator to convert the multiple images from PNG to ICNS once at all . It s very annoying to convert each image to ICNS in the icon editor applications one for one . The Preview.app doesn t want to convert the image in format PNG to ICNS because it has only one page it can convert it to ICNS only if the icon has-many pages . Do you know to make it Thank you for your attention help and patience .. . Answer : You can still run the iconoodle script by just pasting it to AppleScript Editor . It s just a wrapper for sips but it can only convert icns to png . You can use sips directly to convert png to icns : Comment : on png2icns pngpath icnspath set command to sips -s format icns f --out f png icns as class utf8 do shell script command end png2icns Is it correct Comment : The command in the answer can just be run in Terminal . You have to give the actual paths as arguments : do shell script sips -s format icns quoted form of pngpath --out quoted form of icnspath . Comment : When I copied do shell script sips -s format icns quoted form of pngpath --out quoted form of icnspath Automator warned an error : Syntax Error - The variable pngpath is not defined . I also copied for f in .png do sips -s format icns f --out f png icns done and Automator warned again the error : A parameter name can t go here . .", "Question : I need a quick way to get the image URL just like I would get if I right-click on an image and select Copy Image URL . I m thinking Applescript though others have mentioned Javascript . This needs to be compatible with an Automator workflow and needs to work with Google Chrome Chromium and Safari at a minimum . More specifics : .. . .. . 1 . I already have an Automator workflow that this will be added to . 2 . The workflow begins with text and images that I have selected on a webpage using the mouse . 3 . The processing of the text is working fine . 4 . I just need a Applescript or Javascript or Shell Script which I assume are the only outside code that can be added to an Automator workflow that will grab any and all image URL s within the part of the page selected in step 2 . 5 . Images are NOT downloaded . Only the image URL is needed . The basic logic is this : .. . .. . Any help or ideas appreciated .. . Answer : OS X Services would be your best bet . Those work with text selections and are supported in most apps e.g . see the Safari Services submenu . You can also assign them keyboard-shortcuts which is very handy for repetitive tasks . Basically you want to get the selection as web content i.e . HTML data not plain text then extract the URLs from that . You can create services in Automator which includes various actions for working with web content so I recommend starting there . Comment : OK if I m reading this correctly and I might not be you re suggesting this can be done in Automator . I do know that you can process all image URLs in Automator as long as you re not processing text at the same time . I tried getting all image URLs in Automator at the same time I m getting text and it didn t work . This is why I specifically asked for another solution . Plus a Safari only solution wouldn t work in this case since the workflow I already have works with Safari Chrome and Chromium . Comment : I m saying it can be done using Services . You can write Services in Automator assuming you can find suitable Actions or you can write them in Xcode assuming you know ObjC . Automator-built services can get the selected text in a variety of formats including web format . What I can t tell you is if there s an Action that ll take web format as input and output the HTML markup as a string which is presumably what your URL extraction code takes so you ll have to find that out yourself . Comment : Re . Chrome Chromium I don t use it on Mac but I d be surprised if it didn t support Services too - most apps do e.g . Firefox does .", "Question : Can one automate the process of copying a file name and pasting it in the Spotlight Comment box of that file How does that Apple Script for OS X looks like I would need to do that a thousand times otherwise : .. . .. . 1 . Hitting enter to select the file .. . 2 . Short cut typing Hotkey Cmd C .. . 3 . Short cut typing Hotkey Cmd I to open that info window .. . 4 . Hitting tab button twice to enter the Spotlight Comment box .. . 5 . Short cut typing Hotkey Cmd v .. . 6 . Short cut typing Hotkey Cmd w to close that info window .. . .. . The aformentioned folder contains a thousand files and even more . .. . Answer : Automator has that function built right in via the Set Spotlight Comments for Finder Items Action : .. . .. . enter image description here http : i.stack.imgur.com Fp6wu.png .. . .. . You should be able to point the first action at your target folder have it find all the files and it will add the Comment to all of them . Good luck Comment : Doesn t work . 2 error-code results . Can I send @Craig a screen shot pls How do I add that shot to this comment to reflect my response as above Comment : Request specification . One folder contains 1.000 files . They all have different file names . Most have movie format extensions . I want the script to target one by one those thousand names copy one by one the original name and paste it one by one in the Spotlight Comment boxes of the OS X 10.8.5 . files . When done the script should rename the original file name by putting the prefix DONE in front of that original name . Comment : That is much more complex than I had originally believed . From your original post I believed that you were copying and pasting a single piece of data . This sort of metadata massage is much more appropriate for AppleScript than Automator . Do you have any experience with that Comment : No Craig . Sorry . Just a novice . I want to attract movie footage from other people for a global meditation for peace project . Therefore I should be able to edit the file name myself based on my sorting criteria and put the title they used to describe their file to my downloaded file comment box . As of yesterday being a Belgian myself my mission is more important than ever if you see what I mean . In fact I need a small army of coders to get my stuff done even faster now . It s all OS X Finder stuff related to creating fast sorting routines . Comment : Don t know whether you know them but found two resources you may like : amsys.co.uk 2013 02 http : www.amsys.co.uk 2013 02 how-to-append-the-spotlight-comments-on-files-without-going-into-get-info arstechnica.com apple 2005 04 macosx-10-4 7 http : arstechnica.com apple 2005 04 macosx-10-4 7 So far I didn t find a solution yet .", "Question : When I run Apple s Automator to simply cut a bunch of images in their size Automator will also reduce the quality of the files jpg and they get blurry . How can I prevent this Are there settings that I can take control of Edit : .. . .. . Or are there any other tools that do the same job but without affecting the image quality .. . Answer : If you want to have finer control over the amount of JPEG compression as kopischke said you ll have to use the sips utility which can be used in a shell script . Here s how you would do that in Automator : .. . .. . First get the files and the compression setting : .. . .. . Passing files and compression settings to a shell script in Automator http : i.stack.imgur.com 09JtO.png .. . .. . Make sure that the first Get Value of Variable action is not accepting any input right-click on them select Ignore Input and that the second Get Value of Variable takes the input from the first . This creates an array that is then passed on to the shell script . The first item in the array is the compression level that was given to the Automator Script . The second is the list of files that the script will do the sips command on . In the options on the top of the Run Shell Script action select bin bash as the Shell and select as arguments for Pass Input . Then paste this code : .. . .. . If you click on Results at the bottom it ll tell you what file it s currently working on . Have fun compressing Comment : Thank you Eric Any chance you still have the workflow script itself to share Comment : Here you go : wikiupload.com 5Z3C6CITGTBFW4R http : www.wikiupload.com 5Z3C6CITGTBFW4R", "Question : I can manage to find how to use the selected text as a variable for AppleScript and Automator . Any idea .. . Answer : To see how it works try this very simple Automator service : .. . .. . Create a Service in Automator and choose Text and Every application as input . The first workflow step is Execute Applescript . The Applescript s input parameter contains the selected text . Set the Applescript to .. . .. . After saving you will have this action available in the context menu whenever you have selected text . Maybe the naming is different I don t know the English descriptions . But I hope this is a good starting point for you . Have fun Michael Hamburg", "Question : I m tempted by Automator.app s ability to create contextual services in Mac OS X Snow Leopard . I would like to create some keyboard accessible shortcuts to manipulate text snippets by calling a shell script . However Automator only suggests bash Perl Python and Ruby among others to allow this . But since PHP also ships with Mac OS and to be honest it s the only scripting-language I fully master I wonder why I can t run a PHP shell script . .. . Answer : The list of shells that Automator supports is in .. . .. . You can follow this guy s instructions http : www.patrickpatoray.com index.php Page 112 to add an entry for usr bin php . You may want to copy the .action file to Library Automator first and work on the copy instead . Of course it s probably easier to just wrap it in a bash script as others have suggested .", "Question : I m tempted by Automator.app s ability to create contextual services in Mac OS X Snow Leopard . I would like to create some keyboard accessible shortcuts to manipulate text snippets by calling a shell script . However Automator only suggests bash Perl Python and Ruby among others to allow this . But since PHP also ships with Mac OS and to be honest it s the only scripting-language I fully master I wonder why I can t run a PHP shell script . .. . Answer : This is just a hack but how about creating a python or ruby or perl or bash script that calls php command-line interpreter with the php script you want to execute For instance in bash would be as simple as this : .. . .. . Now save it give it permission for execution : .. . .. . And voil . Automator can now run the bash script which calls the php script .", "Question : I m supper new here either Javascript and JXA so pardon me if I make some stupid questions . But I m trying to figure out a way to get the string from the highlighted text using JXA - JavaScript for Automation for Javascript can be recognized in Automator since Yosemite I thought I can make something work with these : window.getSelection in : .. . .. . This code is not mine somebody posted this . But I ve found out that I can t use window or document here in Automator to make change to Mac OS so can someone show me how to convert this Javascript code into JXA which Automator can understand Thanks a lot .. . Answer : You need to mix JXA and Safari s javaScript .. . .. . The script is in JXA but the document.getSelection .toString is Safari s javaScript . Of course you will need to enable apple events in Safari http : osxdaily.com 2011 11 03 enable-the-develop-menu-in-safari .. . .. . If you want the selected text from another application the code might be very different . Comment : Yea I want to get the text from other applications too.. . But this is really good references . Thank you" ] }
[]
macros
UNK_RELATION
eigenvalue@eigenvector@57
eigenvalue -- the eigenvalue is the factor by which the @placeholder is scaled when multiplied by the matrix .
{ "confidence": [ 44.46588134765625, 43.38575744628906, 42.722434997558594, 42.722434997558594, 42.164222717285156, 42.164222717285156, 41.679931640625, 40.440311431884766, 40.440311431884766, 39.69590377807617, 39.49358367919922, 39.38131332397461, 38.33372497558594, 38.250343322753906, 38.250343322753906, 38.204811096191406, 38.125083923339844, 38.125083923339844, 38.125083923339844, 37.044960021972656, 36.66647720336914, 36.66647720336914, 36.52206039428711, 36.44792175292969, 36.44792175292969, 36.44792175292969, 36.44792175292969, 35.75040817260742, 35.75040817260742, 35.75040817260742, 35.473392486572266, 35.2209358215332, 35.08683776855469, 34.988975524902344, 34.988975524902344, 34.988975524902344, 34.988975524902344, 34.988975524902344, 34.988975524902344, 34.988975524902344, 34.988975524902344, 33.48600769042969, 33.3300895690918, 32.886714935302734, 32.61429977416992, 32.61429977416992, 32.61429977416992, 32.05044174194336, 31.693180084228516, 30.76465606689453, 30.76465606689453, 30.76465606689453, 30.76465606689453, 30.493839263916016, 30.493839263916016, 29.68453598022461, 29.68453598022461, 29.68453598022461, 29.68453598022461, 29.413719177246094, 28.38998031616211, 28.179283142089844, 28.179283142089844, 28.179283142089844, 28.179283142089844, 27.099163055419922, 26.911720275878906, 25.283573150634766, 24.20345115661621, 24.20345115661621, 24.20345115661621, 22.908897399902344, 22.139705657958984, 22.139705657958984, 21.80150604248047, 21.05958366394043, 20.93334197998047, 20.78653335571289, 20.253862380981445, 20.086761474609375, 19.602203369140625, 19.602203369140625, 19.602203369140625, 19.602203369140625, 19.231597900390625, 19.03232765197754, 19.031417846679688, 18.97576904296875, 18.89857292175293, 18.52208137512207, 18.458614349365234, 18.458614349365234, 18.458614349365234, 18.40642547607422, 18.38484764099121, 18.38050079345703, 18.045644760131836, 18.03399658203125, 18.03399658203125 ], "content": [ "lam is the eigenvalue . .", "Eigenvalue is correct .", "The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix .", "e.g . if eigenvalue 3 moves to eigenvalue 2 I want column 3 of the eigenvector matrix to move over to column 2 .", "and how to get reduction with eigenvalue", "The eigenvalue -2 is repeated .", "but i got problem when get eigenvalue with jama .", "That s also your eigenvalue directly .", "Here is my code .. . .. . This is the eigenvalue of S .", "I would take a look at Eigenvalue algorithms http : en.wikipedia.org wiki Eigenvalue 5Falgorithm which link-to a number of different methods .", "In initial Lanczos method firstly you are to count the biggest eigenvalue of matrix A .", "After that you count the eigenvector which corresponds to this eigenvalue .", "I got different result The difference occurred I think because of the eigenValue decomposition eigenvalue and eigenvector in Matlab and Jama .", "This way I can t find out to which column corresponds which eigenvalue .", "The information which eigenvalue corresponds to which original input column is lost .", "There is CULA which can do eigenvalue problems allright but only in the dense version .", "Therefore the eigenspace corresponding to the eigenvalue -2 is two-dimensional .", "But I get negative eigenvalue of cov x .", "I solved the same generalized eigenvalue problem in Matlab .", "For the first time they are reasonably different especially the eigenvalue value .", "I am specifically trying to find code where the highest eigenvalue and therefore its associated eigenvalue are located int the first column .", "And the 1 google hit search : eigenvalue decomposition code C .. . .. . http : crsouza.blogspot.com 2010 06 generalized-eigenvalue-decomposition-in.html .. . .. . does not help", "if your matrix is sparse then instantiate your matrix using a constructor from scipy.sparse then use the analogous eigenvector eigenvalue methods in spicy.sparse.linalg .", "for a 2x2 matrix it is easy to track the eigenvalue using an analytic expression is that what you want or something more generic", "Nevertheless if I were you I would check for each eigenvalue the result-of the multiplication of the eigenvector by the matrix .", "To me it s no surprise that an 87-by-87 matrix could have a tiny negative about -1 10 -19 eigenvalue .", "I am trying to find a program in C code that will allow me to compute a eigenvalue spectral decomposition for a square matrix .", "Are there any cases where the eigenvalue computation would not terminate", "Are there any other open-source packages that compute the eigenvalue", "Change the sign and an eigenvector is still an eigenvector for the same eigenvalue .", "Having counted this two objects you can decrease dimension of matrix which you are using on one and then find the maximum eigenvalue of new matrix .", "this is sample my code : .. . .. . when i show eigenvalue in this code : .. . .. . Result is : .. . .. . nilai n PCA@c3e9e9 .. . .. . Can u tell me what way to get eigenvalue and reduction dimension .", "This fact is readily apparent from the definition ie an eigenvector eigenvalue pair solve the characteristic function A v k v where A is the matrix v is the eigenvector and k is the eigenvalue .", "So how can you focus on and plot just a single eigenvalue", "PS : I am using eigenvalue decomposition several time in my algorithm.. .", "I need to get get java implementation of Eigenvalue and eigenvector .", "But I can t find Python program for a generalized eigenvalue problem .", "How can I solve a generalized eigenvalue problem for multiprecision in Python", "but as far as i know eigensolver in Eigen library returns eigenvalue or eigenvector .", "If would indeed be easier to return NA if the smallest eigenvalue is negative .", "Both are free and offer routines for almost any eigenvalue problem .", "The result eigenvalues in latent will be : 27 0 0 The information which eigenvalue corresponds to which original input column is lost .", "Now if you uncomment the commented line above so as to focus on and plot a specific eigenvalue you will see that the focus jumps from one eigenvalue to the other at some point .", "the eigenvalue eigenvector methods http : docs.scipy.org doc scipy reference generated scipy.sparse.linalg.eigs.html scipy.sparse.linalg.eigs for sparse matrices eigs eigsh accept an optional argument k which is the number of eigenvector eigenvalue pairs you want returned .", "If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation .", "The most popular and good open-source packages for eigenvalue computation are LAPACK and EISPACK .", "See Wilkinson J . H . 1965 The Algebraic Eigenvalue Problem .", "I m new to ARPACK I downloaded a script like the following .. . .. . It solves a very simple eigenvalue problem The matrix A there is not symmetric I set A 0 8 to be 30 .", "The constraint is not really on the individual correlations but on the minimum eigenvalue of the correlation matrix : try if min eigen matrix c 1 rho12 rho13 rho12 1 rho23 rho13 rho23 1 3 3 values 0 return NA .", "Numerically speaking you could write a GPU implementation of the QR algorithm for the eigenvalue problem .", "If a vector is an eigenvector so is every scalar multiple of it mathematically the eigenvector is part of a subspace of eigenvectors belonging to an eigenvalue .", "Yes it is reasonable to assume that the eigenvectors are ordered so that the i -th eigenvector corresponds to the i -th eigenvalue .", "what structure I should define three matrices with the size of 512 512 60 for each eigenvalue of each point", "For your information i tried also other libraries like Jblas which has PCA but the performance is really poor in eigenvalue and eigenvector .", "Use scipy.linalg.eig http : docs.scipy.org doc scipy-0.14.0 reference generated scipy.linalg.eig.html scipy.linalg.eig which will solve ordinary or generalized eigenvalue problems .", "For determining eigenvectors I should solve another system of linear equations for every eigenvalue .", "I m trying to calculate the largest eigenvalue eigenvector pair with cuSolver released in CUDA 7.0 RC .", "I m using arpack++ and superlu solver to solve eigenvalue problem via shift and invert method .", "I have everything seemingly working up until the point where i generate the eigenvalue vector .", "1 http : i.stack.imgur.com 2pjd8.png .. . .. . Basically it allows to measure to which extend the Eigenvalue Eigenvector of a variable is correlated to the principal-components dimensions of a dataset .", "If an eigenvalue is of multiplicity greater than one then the eigenvectors are again not unique as long as they span the same subspace .", "I have already implemented the power Iteration Algorithm but it is not suitable for my project because it gives the best value in eigenvalue and eigen vector .", "Using Jama I can get the Eigenvalues and the Eigenvectors yet the correlation between the two is not defined : I want to map each Eigenvector to the corresponding Eigenvalue .", "I want to solve a generalized eigenvalue problem for multiprecision in Python A.C lam .B.C where A and B are 3000x3000 matrices and C is 3000x1 vector .", "Do you mean after I get S 11 1 2 by using eigenvalue decomposition and then use chol and then backsolve to get the inverse", "Since each principal component is a linear function of all input variables each principal component eigenvector eigenvalue corresponds to all of the original input columns .", "Maybe it is more appropriate to ask at scicomp.stackexchange.com See this : scicomp.stackexchange.com questions 10222 http : scicomp.stackexchange.com questions 10222 generalized-eigenvalue-problem-using-arpack The documentation advises to convert problem into standard form", "The reason I need the output to be in this order is because I am trying to compute Eigenvector centrality and therefore I only really need to calculate the eigenvector associated with the highest eigenvalue .", "And this is my code .. . .. . I already tried different choices for initial eigenvalue guess namely max lambda - or mu0 in the cuSolver library tutorial initial eigenvector guess h eigenvector0 or d eigenvector0 tolerance tol even amount of maximum iteration maxite .", "I took a look at the resultant eigenvalue and eigenvector and although they did not appear to be bizarre I could not get them to exactly correlate with my attempt to do the same thing in Octave .", "The results are consistent between NumPy and Matlab if you use the eigs function : .. . .. . As for why the true closest eigenvalue isn t selected I think that has to do with convergence to complex eigenvalues of real matrices and the choice of a real shift .", "Typically just create a structure something like this : .. . .. . Alternatively just put the eigenvalue eigenvector into an std : : pair -- though I d prefer eigen.value and eigen.vector over something.first and something.second .", "Nikolay and NPE I used Jamma API as explained here : math.nist.gov javanumerics jama doc Jama http : math.nist.gov javanumerics jama doc Jama EigenvalueDecomposition.html And NPE I agree that it is only reasonable that the order of the eigenvectors and eigenvalue would correspond each other yet it is not mentioned anywhere So how can I be sure", "Alternatively look for a GPU-compatible version of any method presented here : cseweb.ucsd.edu classes fa04 cse252c sakumar.pdf http : cseweb.ucsd.edu classes fa04 cse252c sakumar.pdf .I m not aware of any ready-to-use gpu-library for the eigenvalue problem", "I start to understand the theory and connections : Given a stochastic matrix to dermine the stationary distribution we need to find the eigen vector for the largest eigenvalue that is 1 .. . .. . I started with generating a stochastic matrix .. . .. . Afterward I use the R eigen function .. . .. . But I dont understand the results .. . .. . The vector for the largest value 1 has all the same component value -0.4472136 .", "The 3 eigenvalues closest to 3.6766133 sigma 3.6766133 in the setting according to the ARPACK results are .. . .. . Then I go to MATLAB and solve the same eigenvalue problem and the results are .. . .. . Apparently the second mode 3.642801014184622 + 0.497479798520641i is more close to sigma 3.6766133 but ARPACK didn t pick it out .", "The problem occurs when the size of the matrix go aprox .", "The huge matrix which I always need could also be cached .", "Singular matrix .", "Thank you but my matrix M is real and symmetric.. .", "Sure it has to be square matrix", "What size matrix", "For a very large sparse Matrix .", "Describe the matrix please .", "When you do Matrix A new Matrix array you are creating a local variable with the same name and not assigning a value to the instance field .", "Basically I would like to calculate the inverse of a matrix which belongs-to the ComplexDoubleMatrix class but I did not find such a function like inverse or inv does any body know how to calculate the inverse of a matrix", "My question is in calculate the eigen value we have to calculate the determinant of the matrix which all the diagonal value - lamda .", "Lease squares pinv gives the same output as actual inverse when the matrix in invertible .", "if dimension of correlation matrix is less then number of periods then matrix is singular", ": My matrix is really sparse .", "The real world matrix I m dealing with is at least 128x128 .", "@duffymo : I mentioned A is a coefficient matrix not a scalar .", "Given a Matrix I m interested in the Eigenvalues and the corresponding Eigenvector .", "Depending on what you want to do you could use nearPD from the Matrix package to force your covariance matrix to be positive-definite : .. . .. . Compute the nearest positive definite matrix to an approximate one typically a correlation or variance-covariance matrix .", "If I compute the singular value decomposition of M by : .. . .. . In this case U will be the matrix eigenvectors S is a diagonal matrix of singular values and V is a transpose orthonormal matrix .", "If your matrices are sparse you can try using scipy s sparse eigenvalue function which should be faster : .. . .. . http : docs.scipy.org doc scipy reference sparse.linalg.html .. . .. . You might also check out specialized packages like SLEPc which has python bindings and can do calculations in parallel using mpi : .. . .. . http : code.google.com p slepc4py", "The error appears to mean that in your generalized eigenproblem .. . .. . the matrix A is not positive definite check the eigs docstring -- in your case the matrix is probably singular .", "I need to output the output to be a matrix .", "So this corresponds to the sample covariance matrix ." ] }
{ "confidence": [ 55.535011291503906, 54.13965606689453, 53.62888717651367, 53.40441131591797, 52.63639450073242, 52.63639450073242, 52.46639633178711, 52.317115783691406, 51.19742965698242, 50.30730438232422, 49.232425689697266, 49.17466354370117, 49.09727478027344, 49.09419250488281, 49.06857681274414, 48.22316360473633, 46.96946334838867, 45.2413330078125, 45.148685455322266, 45.0452766418457 ], "content": [ "Question : I am trying to find a program in C code that will allow me to compute a eigenvalue spectral decomposition for a square matrix . I am specifically trying to find code where the highest eigenvalue and therefore its associated eigenvalue are located int the first column . The reason I need the output to be in this order is because I am trying to compute Eigenvector centrality and therefore I only really need to calculate the eigenvector associated with the highest eigenvalue . Thanks in advance Comment : What size matrix Comment : For a very large sparse Matrix . It is for network-analysis . Comment : Describe the matrix please . symmetric real hermitean none of all Comment : Real square and both symmetric and non-symmetric matrices . Sparse meaning that most of the values will be 0 and the other values will be no greater than one . .. . Answer : And the 1 google hit search : eigenvalue decomposition code C .. . .. . http : crsouza.blogspot.com 2010 06 generalized-eigenvalue-decomposition-in.html .. . .. . does not help Comment : I am specifically trying to find code where the highest eigenvalue and therefore its associated eigenvalue are located int the first column . Would this be true for this program", "Question : How expensive is it to compute the eigenvalues of a matrix What is the complexity of the best algorithms How long might it take in practice if I have a 1000 x 1000 matrix I assume it helps if the matrix is sparse Are there any cases where the eigenvalue computation would not terminate In R I can compute the eigenvalues as in the following toy example : .. . .. . Does anyone know what algorithm it uses Are there any other open-source packages that compute the eigenvalue Comment : If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation . It would be nice to see how they do it . We used power iteration or QR decomposition when doing it in MATLAB during a course in numerical analysis . Comment : The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix . In that case a specialized algorithm is used probably based on some variant of the power method . .. . Answer : I would take a look at Eigenvalue algorithms http : en.wikipedia.org wiki Eigenvalue 5Falgorithm which link-to a number of different methods . They ll all have different characteristics and hopefully one will be suitable for your purposes .", "Question : I am trying to find a program in C code that will allow me to compute a eigenvalue spectral decomposition for a square matrix . I am specifically trying to find code where the highest eigenvalue and therefore its associated eigenvalue are located int the first column . The reason I need the output to be in this order is because I am trying to compute Eigenvector centrality and therefore I only really need to calculate the eigenvector associated with the highest eigenvalue . Thanks in advance Comment : What size matrix Comment : For a very large sparse Matrix . It is for network-analysis . Comment : Describe the matrix please . symmetric real hermitean none of all Comment : Real square and both symmetric and non-symmetric matrices . Sparse meaning that most of the values will be 0 and the other values will be no greater than one . .. . Answer : See the book Numerical recipes in C http : www.nr.com", "Question : I am trying to find a program in C code that will allow me to compute a eigenvalue spectral decomposition for a square matrix . I am specifically trying to find code where the highest eigenvalue and therefore its associated eigenvalue are located int the first column . The reason I need the output to be in this order is because I am trying to compute Eigenvector centrality and therefore I only really need to calculate the eigenvector associated with the highest eigenvalue . Thanks in advance Comment : What size matrix Comment : For a very large sparse Matrix . It is for network-analysis . Comment : Describe the matrix please . symmetric real hermitean none of all Comment : Real square and both symmetric and non-symmetric matrices . Sparse meaning that most of the values will be 0 and the other values will be no greater than one . .. . Answer : In any case I would recommend to use a dedicated linear-algebra package like Lapack http : www.netlib.org lapack Fortran but can be called from C or CLapack http : www.netlib.org clapack . Both are free and offer routines for almost any eigenvalue problem . If the matrix is large it might be preferable to exploit its sparseness e.g . by using Arpack http : www.caam.rice.edu software ARPACK . All of these libraries tend to sort the eigenvectors according to the eigenvalues if they can real or purely imaginary eigenvalues .", "Question : How expensive is it to compute the eigenvalues of a matrix What is the complexity of the best algorithms How long might it take in practice if I have a 1000 x 1000 matrix I assume it helps if the matrix is sparse Are there any cases where the eigenvalue computation would not terminate In R I can compute the eigenvalues as in the following toy example : .. . .. . Does anyone know what algorithm it uses Are there any other open-source packages that compute the eigenvalue Comment : If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation . It would be nice to see how they do it . We used power iteration or QR decomposition when doing it in MATLAB during a course in numerical analysis . Comment : The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix . In that case a specialized algorithm is used probably based on some variant of the power method . .. . Answer : I assume it helps if the matrix is sparse Yes there are algorithms that perform well on sparse matrices . See for example : http : www.cise.ufl.edu research sparse Comment : Is there algorithm for finding eigenvalues I search for a while and get nothing.. . Comment : @Marak : see Lanczos Jacobi-Davidson and other iterative methods which work particularly well if you are only interested in a subset of eigenvalues .", "Question : How expensive is it to compute the eigenvalues of a matrix What is the complexity of the best algorithms How long might it take in practice if I have a 1000 x 1000 matrix I assume it helps if the matrix is sparse Are there any cases where the eigenvalue computation would not terminate In R I can compute the eigenvalues as in the following toy example : .. . .. . Does anyone know what algorithm it uses Are there any other open-source packages that compute the eigenvalue Comment : If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation . It would be nice to see how they do it . We used power iteration or QR decomposition when doing it in MATLAB during a course in numerical analysis . Comment : The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix . In that case a specialized algorithm is used probably based on some variant of the power method . .. . Answer : Apache Mahout http : mahout.apache.org is an open-source framework built on map-reduce i.e . it works for really really big matrices . Note that for a lot of matrix stuff the question isn t whats the big-o runtime but rather how parallelizable is it Mahout says https : cwiki.apache.org MAHOUT dimensionalreduction.html they use Lanczos which can essentially be run in parallel on as many processors as you care to give it .", "Question : How expensive is it to compute the eigenvalues of a matrix What is the complexity of the best algorithms How long might it take in practice if I have a 1000 x 1000 matrix I assume it helps if the matrix is sparse Are there any cases where the eigenvalue computation would not terminate In R I can compute the eigenvalues as in the following toy example : .. . .. . Does anyone know what algorithm it uses Are there any other open-source packages that compute the eigenvalue Comment : If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation . It would be nice to see how they do it . We used power iteration or QR decomposition when doing it in MATLAB during a course in numerical analysis . Comment : The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix . In that case a specialized algorithm is used probably based on some variant of the power method . .. . Answer : It uses the QR algo . See Wilkinson J . H . 1965 The Algebraic Eigenvalue Problem . Clarendon Press Oxford . It does not exploit sparsity .", "Question : How expensive is it to compute the eigenvalues of a matrix What is the complexity of the best algorithms How long might it take in practice if I have a 1000 x 1000 matrix I assume it helps if the matrix is sparse Are there any cases where the eigenvalue computation would not terminate In R I can compute the eigenvalues as in the following toy example : .. . .. . Does anyone know what algorithm it uses Are there any other open-source packages that compute the eigenvalue Comment : If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation . It would be nice to see how they do it . We used power iteration or QR decomposition when doing it in MATLAB during a course in numerical analysis . Comment : The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix . In that case a specialized algorithm is used probably based on some variant of the power method . .. . Answer : How long might it take in practice if I have a 1000x1000 matrix MATLAB based on LAPACK computes on a dual-core 1.83 GHz machine all eigenvalues of a 1000x1000 random in roughly 5 seconds . When the matrix is symmetric the computation can be done significantly faster and requires only about 1 second .", "Question : I try use PCA to reduce dimention and i use jama for help me using matrix . but i got problem when get eigenvalue with jama . for example i hava 2 image dimention 100x100 then i create single matrix 2 image x 100x100 . there is 20.000 pixel . and how to get reduction with eigenvalue this is sample my code : .. . .. . when i show eigenvalue in this code : .. . .. . Result is : .. . .. . nilai n PCA@c3e9e9 .. . .. . Can u tell me what way to get eigenvalue and reduction dimension . .. . Answer : You are seeing the object output because there seems to be no toString implentation in PCA class to print it in a beautiful way . In case you own the PCA class then you can override the toString method to print it the way you want . If you are using eclipse you can generate that method by right clicking on your PCA class- Source- Generate toStirng . Or otherwise try to print it using the getters such as : .. . .. . Btw sharing your PCA class will help more .", "Question : How expensive is it to compute the eigenvalues of a matrix What is the complexity of the best algorithms How long might it take in practice if I have a 1000 x 1000 matrix I assume it helps if the matrix is sparse Are there any cases where the eigenvalue computation would not terminate In R I can compute the eigenvalues as in the following toy example : .. . .. . Does anyone know what algorithm it uses Are there any other open-source packages that compute the eigenvalue Comment : If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation . It would be nice to see how they do it . We used power iteration or QR decomposition when doing it in MATLAB during a course in numerical analysis . Comment : The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix . In that case a specialized algorithm is used probably based on some variant of the power method . .. . Answer : Most of the algorithms for eigen value computations scale to big-Oh n 3 where n is the row col dimension of the symmetric and square matrix . For knowing the time-complexity of the best algorithm till date you would have to refer to the latest research papers in Scientific Computing Numerical Methods . But even if you assume the worse case you would still need at least 1000 3 operations for a 1000x1000 matrix . R uses the LAPACK routine s DSYEVR DGEEV ZHEEV and ZGEEV implementation by default . However you could specify the EISPACK TRUE as a parameter to use a EISPACK s RS RG CH and CG routines . The most popular and good open-source packages for eigenvalue computation are LAPACK and EISPACK . Comment : EISPACK is now defunct and ignored . See stat.ethz.ch R-manual R-devel library base html eigen.html http : stat.ethz.ch R-manual R-devel library base html eigen.html", "Question : I have a data set x . And I use cov x to calculate the covariance of x . I want to calculate the inverse square-root of cov x . But I get negative eigenvalue of cov x . Here is my code .. . .. . This is the eigenvalue of S . Comment : Post the dput of the relevant data-structures please . Comment : .. . and give us some additional hints about where x came from if possible Comment : @BenBolker . It is simulated genotype data . Comment : @Buckminster . What is dput Comment : see dput .. . and stackoverflow.com questions 5963269 http : stackoverflow.com questions 5963269 how-to-make-a-great-r-reproducible-example .. . .. . Answer : While in theory an estimated covariance matrix must be positive semi- definite i.e . no negative values in practice floating-point error can violate this . To me it s no surprise that an 87-by-87 matrix could have a tiny negative about -1 10 -19 eigenvalue . Depending on what you want to do you could use nearPD from the Matrix package to force your covariance matrix to be positive-definite : .. . .. . Compute the nearest positive definite matrix to an approximate one typically a correlation or variance-covariance matrix . Also it will probably be more efficient to compute the Cholesky decomposition chol of your matrix first and then invert it this is easy in principle -- I think you can use backsolve . Comment : Do you mean after I get S 11 1 2 by using eigenvalue decomposition and then use chol and then backsolve to get the inverse", "Question : I would like to write a simple program in C using Lanczos algorithm . I came across a Matlab example which helped me to understand a bit further the algorithm however from this piece of code I can t find the way of getting the eigenvalues and eigenvectors . I can follow the algorithm but I think I must be missing something . Can someone guided to get the eigenvalues from this example so I can understand the method and then code it in C .. . Answer : In initial Lanczos method firstly you are to count the biggest eigenvalue of matrix A . After that you count the eigenvector which corresponds to this eigenvalue . Having counted this two objects you can decrease dimension of matrix which you are using on one and then find the maximum eigenvalue of new matrix . And you are to iterate through this m times where m is the dimension of initial matrix A . But if you want to count all the eigenvalues simultaneously you are to use Paige iterative procedure see in middle http : en.wikipedia.org wiki Lanczos algorithm in which firstly you build tridiogonal matrix . Then you count it s eigenvalues using one of the well-known and fast algorithms as such matrix is very sparse and by formulas specified in article above you can easily count eigenvalues of initial matrix and their corresponding eigenvectors .", "Question : I want to solve a generalized eigenvalue problem for multiprecision in Python A.C lam .B.C where A and B are 3000x3000 matrices and C is 3000x1 vector . lam is the eigenvalue . . So I have installed MPMATH . But I can t find Python program for a generalized eigenvalue problem . How can I solve a generalized eigenvalue problem for multiprecision in Python .. . Answer : Use scipy.linalg.eig http : docs.scipy.org doc scipy-0.14.0 reference generated scipy.linalg.eig.html scipy.linalg.eig which will solve ordinary or generalized eigenvalue problems .", "Question : I am using LAPACK s ssteqr function to calculate eigenvalues eigenvectors . The documentation for ssteqr says that the eigenvalues are sorted in ascending order . Is it reasonable to assume that the list of eigenvectors is also sorted in ascending order .. . Answer : Yes it is reasonable to assume that the eigenvectors are ordered so that the i -th eigenvector corresponds to the i -th eigenvalue . Nevertheless if I were you I would check for each eigenvalue the result-of the multiplication of the eigenvector by the matrix . This way you are sure that you interpret the output right and you see explicitly the accuracy of the calculations .", "Question : I m implementing metric learning algorithm I want to reduce the dimension of the data . I am using Java and libraries Jama to implement and PCA to reduce the dimension . When I used the eig from Jama library to get eigenvalues it takes a lots of time even for a matrix of size 300 by 20 . I need to get get java implementation of Eigenvalue and eigenvector . For your information i tried also other libraries like Jblas which has PCA but the performance is really poor in eigenvalue and eigenvector . .. . Answer : Try the Apache math http : commons.apache.org proper commons-math library . Search for the class EigenDecomposition http : commons.apache.org proper commons-math javadocs api-3.3 index.html in package org.apache.commons.math3.linear . By the way I think you can only find eigenvalues and eigenvectors of square matrices . Comment : Sure it has to be square matrix", "Question : How expensive is it to compute the eigenvalues of a matrix What is the complexity of the best algorithms How long might it take in practice if I have a 1000 x 1000 matrix I assume it helps if the matrix is sparse Are there any cases where the eigenvalue computation would not terminate In R I can compute the eigenvalues as in the following toy example : .. . .. . Does anyone know what algorithm it uses Are there any other open-source packages that compute the eigenvalue Comment : If I m not mistaken the magic in Google PageRank is at least partley a giant eigenvalue calculation . It would be nice to see how they do it . We used power iteration or QR decomposition when doing it in MATLAB during a course in numerical analysis . Comment : The Google Pagerank computation corresponds to a very specific eigenvalue problem : computing the eigenvector associated with the dominant unit eigenvalue of a stochastic matrix . In that case a specialized algorithm is used probably based on some variant of the power method . .. . Answer : With big matrices you usually don t want all the eigenvalues . You just want the top few to do say a dimension reduction . The canonical algorithm is the Arnoldi-Lanczos iterative algorithm implemented in ARPACK : .. . .. . www.caam.rice.edu software ARPACK .. . .. . There is a matlab interface in eigs : .. . .. . http : www.mathworks.com access helpdesk help techdoc index.html access helpdesk help techdoc ref eigs.html .. . .. . And there is now an R interface as well : .. . .. . http : igraph.sourceforge.net doc-0.5 R arpack.html", "Question : I want to solve a generalized eigenvalue problem for multiprecision in Python A.C lam .B.C where A and B are 3000x3000 matrices and C is 3000x1 vector . lam is the eigenvalue . . So I have installed MPMATH . But I can t find Python program for a generalized eigenvalue problem . How can I solve a generalized eigenvalue problem for multiprecision in Python .. . Answer : mpmath version 0.19 includes some functions related to eigenvalues . See http : mpmath.org doc 0.19 matrices.html linear-algebra", "Question : I want to use the princomp function of Matlab but this function gives the eigenvalues in a sorted array . This way I can t find out to which column corresponds which eigenvalue . For Matlab .. . .. . is the same as .. . .. . That is swapping the first two columns does not change anything . The result eigenvalues in latent will be : 27 0 0 The information which eigenvalue corresponds to which original input column is lost . Is there a way to tell matlab to not to sort the eigenvalues Comment : This.. . isn t how PCA eigendecomposition works . Not to be mean but a textbook would probably help you a lot better than this community could . Comment : @Sunny The eigenvalues correspond to eigenvectors which give you a linear combination of the columns cities . They show how the different cities correlate . Comment : @Sunny The eigenvalues do not correspond to specific rows columns of the matrix . The components of the eigenvectors do that . Comment : @Sunny . I think you have basic misconception with linear-algebra . Perhaps more help can found here math.stackexchange.com http : math.stackexchange.com . Thanks Comment : @Sunny : -1 Please don t fight like this there have already many knowledgeable one suggested to you that you are lacking basic linear-algebra . Straighten up your linear-algebra skills and you ll notice how straightforward principal component analysis actually is . Thanks .. . Answer : The information which eigenvalue corresponds to which original input column is lost . Since each principal component is a linear function of all input variables each principal component eigenvector eigenvalue corresponds to all of the original input columns . Ignoring possible changes in sign which are arbitrary in PCA re-ordering the input variables about will not change the PCA results . Is there a way to tell matlab to not to sort the eigenvalues I doubt it : PCA and eigen analysis in general conventionally sorts the results by variance though I d note that princomp sorts from greatest to least variance while eig sorts in the opposite direction . For more explanation of PCA using MATLAB illustrations with or without princomp see : .. . .. . Principal Components Analysis http : matlabdatamining.blogspot.com 2010 02 principal-components-analysis.html", "Question : null .. . Answer : I need to find the eigen value decomposition of the symmetric matrix in Matlab . But I do not want to use the matlab inbuilt function eig Can anyone tell me efficient algortihm . I have already implemented the power Iteration Algorithm but it is not suitable for my project because it gives the best value in eigenvalue and eigen vector . Looking forward for suggestions . PS : I am using eigenvalue decomposition several time in my algorithm.. . Comment : Have you looked at wikipedia s entry en.wikipedia.org wiki Eigenvalue algorithm https : en.wikipedia.org wiki Eigenvalue algorithm It may help you to find a suitable algorithm . Comment : @Kapoios yes I have seen . But I am not sure which one to use . I was thinking about QR algorithm and Lanczos algortihm . The problem with the QR algorithm is QR factorization . For QR factorization there is several algorithms . So still I am searching . I want to add one more thing my matrix is positive semi definite", "Question : I m new to ARPACK I downloaded a script like the following .. . .. . It solves a very simple eigenvalue problem The matrix A there is not symmetric I set A 0 8 to be 30 . The 3 eigenvalues closest to 3.6766133 sigma 3.6766133 in the setting according to the ARPACK results are .. . .. . Then I go to MATLAB and solve the same eigenvalue problem and the results are .. . .. . Apparently the second mode 3.642801014184622 + 0.497479798520641i is more close to sigma 3.6766133 but ARPACK didn t pick it out . What could be the problem Could you help me figure this out Thanks a lot . .. . Answer : The results are consistent between NumPy and Matlab if you use the eigs function : .. . .. . As for why the true closest eigenvalue isn t selected I think that has to do with convergence to complex eigenvalues of real matrices and the choice of a real shift . I don t know how ARPACK calculates its iterates but I remember being told that a real A with a real cannot by default converge to a complex conjugate pair since their ratio in absolute-value is 1 for Inverse Power Iteration . Since ARPACK will generate the complex eigenvalues at the 8th and 9th iteration + - ordering is random I m guessing their is some fix for this that I ve forgotten about or never knew : .. . .. . I m not sure if their is a general work around for this other than guessing a complex part for the shift or just grabbing extra eigenvalues until the conjugate pair falls into the ball of convergence for the ARPACK method ." ] }
[ "yes-answer-long", "yes-answer-short" ]
eigenvector
UNK_RELATION
fileconveyor@python@54
fileconveyor -- file conveyor is a daemon written in @placeholder to detect process and sync files .
{ "confidence": [ 33.58273696899414, 33.04118728637695, 30.23907470703125, 28.524120330810547, 23.512969970703125, 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": [ 40.017791748046875, 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" ]
python
UNK_RELATION
gradle-git@wiki@70
gradle-git -- grgit usage : https : github.com ajoberstar gradle-git @placeholder grgit-usage .
{ "confidence": [ 62.277645111083984, 52.09192657470703, 38.265220642089844, 31.176713943481445, 16.249404907226562, 14.44470500946045, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 10.496094703674316, 9.082365036010742, 9.082365036010742, 9.082365036010742, 9.082365036010742 ], "content": [ "Per the documentation of Grgit for the log http : ajoberstar.org grgit docs groovydoc org ajoberstar grgit operation LogOp.html operation you could do something like this :", "I quote the paragraph regarding the git-commit information and the gradle-git https : github.com ajoberstar gradle-git plugin : .. . .. . A similar gradle-git plugin is also available for Gradle users although a little more work is required to generate the properties file .", "All this is suppose to be done using grgit the gradle-git plugin : .. . .. . Currently I can see the logs by using the log operation of grgit plugin like this : .. . .. . Now the above method gives me an entire list of logs but I just want between two tags.I am sure in order to see the logs between two tags I will have to apply a for-loop in-place of each and give starting point as tagA and end point as tagB .", "Is this a gradle project", "I am in reference to Spring Boot documentation about endpoints http : docs.spring.io spring-boot docs current reference html production-ready-endpoints.html production-ready-git-commit-information .", "Yes you can achieve this in following way : .. . .. . Say your main project is in X REPO Project app .. . .. . Move your module in a separate repo say Y REPO .. . .. . Then add Y REPO as submodule in X REPO Module1 .. . .. . Now make the following changes in .. . .. . settings.gradle .. . .. . X REPO Project app build.gradle .. . .. . Since Android Studio uses same gradle build-system same can be achieved in Android Project as well .", "I want to capture the commit messages between two tags .", "Like I create a tag in my repo then commit some files and then add a tag .", "So in between these tags I want to capture those commit messages .", "But I am not so sure how to achieve that correctly .", "Any pointers", "Your problem statement is not very clear .", "What exactly is the problem", "I have edited it .", "Please read once again and tell me if its still unclear .", "I ll be even more specific", "Yes That worked .", "Thanks", "Can someone please provide advice as to how to generate the git.properties file mentioned in the documentation", "I have some application which has few modules that i want to to replace in submodule .", "Can I do that in the current project .", "Create new repo with these modules ." ] }
{ "confidence": [ 89.75497436523438, 67.16240692138672, 26.983604431152344 ], "content": [ "Question : I want to capture the commit messages between two tags . Like I create a tag in my repo then commit some files and then add a tag . So in between these tags I want to capture those commit messages . All this is suppose to be done using grgit the gradle-git plugin : .. . .. . Currently I can see the logs by using the log operation of grgit plugin like this : .. . .. . Now the above method gives me an entire list of logs but I just want between two tags.I am sure in order to see the logs between two tags I will have to apply a for-loop in-place of each and give starting point as tagA and end point as tagB . But I am not so sure how to achieve that correctly . Any pointers Comment : Your problem statement is not very clear . What exactly is the problem Comment : I have edited it . Please read once again and tell me if its still unclear . I ll be even more specific .. . Answer : Per the documentation of Grgit for the log http : ajoberstar.org grgit docs groovydoc org ajoberstar grgit operation LogOp.html operation you could do something like this : Comment : Yes That worked . Thanks", "Question : null .. . Answer : I am in reference to Spring Boot documentation about endpoints http : docs.spring.io spring-boot docs current reference html production-ready-endpoints.html production-ready-git-commit-information . I quote the paragraph regarding the git-commit information and the gradle-git https : github.com ajoberstar gradle-git plugin : .. . .. . A similar gradle-git plugin is also available for Gradle users although a little more work is required to generate the properties file . Can someone please provide advice as to how to generate the git.properties file mentioned in the documentation", "Question : I have some application which has few modules that i want to to replace in submodule . Can I do that in the current project . Create new repo with these modules . Comment : Is this a gradle project .. . Answer : Yes you can achieve this in following way : .. . .. . Say your main project is in X REPO Project app .. . .. . Move your module in a separate repo say Y REPO .. . .. . Then add Y REPO as submodule in X REPO Module1 .. . .. . Now make the following changes in .. . .. . settings.gradle .. . .. . X REPO Project app build.gradle .. . .. . Since Android Studio uses same gradle build-system same can be achieved in Android Project as well ." ] }
[ "yes-answer-long", "yes-answer-short" ]
wiki
UNK_RELATION
rhoconnect@synchronization@36
rhoconnect -- rhoconnect is a data @placeholder server and client library that keeps enterprise app data current and available on users mobile devices.the information is stored locally on a user s device and is available even when disconnected and offline .
{ "confidence": [], "content": [] }
{ "confidence": [], "content": [] }
[ "yes-answer-long", "yes-answer-short" ]
synchronization
UNK_RELATION
couchrest@ruby@43
couchrest -- a restful couchdb client for @placeholder based on heroku s restclient and couch.js .
{ "confidence": [ 37.02707290649414, 36.577789306640625, 36.51527404785156, 36.135276794433594, 34.76203918457031, 33.598934173583984, 33.41230773925781, 32.954246520996094, 32.22004699707031, 31.46258544921875, 31.230905532836914, 30.719982147216797, 30.719982147216797, 30.411792755126953, 30.11821746826172, 29.55301856994629, 29.365585327148438, 29.19921112060547, 28.971691131591797, 28.971691131591797, 28.711090087890625, 28.702808380126953, 28.618377685546875, 28.0153865814209, 27.675167083740234, 27.022232055664062, 26.899322509765625, 26.74460792541504, 26.731063842773438, 26.52762222290039, 26.372135162353516, 25.82437515258789, 25.82437515258789, 25.56795883178711, 25.475379943847656, 24.991374969482422, 24.991374969482422, 24.991374969482422, 24.991374969482422, 24.991374969482422, 24.618900299072266, 24.401256561279297, 24.401256561279297, 24.297821044921875, 24.168827056884766, 24.168827056884766, 23.92967414855957, 23.828269958496094, 23.774906158447266, 23.036712646484375, 22.96707534790039, 22.91933822631836, 22.810810089111328, 22.648021697998047, 22.648021697998047, 22.648021697998047, 22.648021697998047, 22.648021697998047, 22.544586181640625, 22.544586181640625, 22.544586181640625, 22.43425750732422, 22.43425750732422, 22.3124942779541, 22.292430877685547, 22.292430877685547, 21.958045959472656, 21.958045959472656, 21.958045959472656, 21.865737915039062, 21.865737915039062, 21.865737915039062, 21.611709594726562, 21.514022827148438, 21.49570083618164, 21.48491668701172, 21.3380069732666, 21.304054260253906, 21.283477783203125, 21.283477783203125, 21.283477783203125, 21.283477783203125, 21.283477783203125, 21.283477783203125, 21.21384048461914, 21.21384048461914, 21.21384048461914, 21.0848388671875, 20.799015045166016, 20.616397857666016, 20.298362731933594, 20.298362731933594, 20.120372772216797, 20.050735473632812, 20.050735473632812, 19.584774017333984, 19.584774017333984, 19.584774017333984, 19.584774017333984, 19.584774017333984 ], "content": [ "I have setup an couchdb database to be used with a ruby-on-rails application using couchrest https : github.com couchrest couchrest .", "One thing that may help is to turn on logging for RestClient which CouchRest uses .", "I m having some issues with my couchDB and the couchrest model .", "Based loosely on the docs https : github.com couchrest couchrest wiki couchrest-core :", "I am trying to store my ruby object in couchdb with couchrest .", "I am using couchdb through couchrest in a ruby-on-rails application .", "I am looking for a way to access a list http : wiki.apache.org couchdb Formatting with Show and List I have defined as part of a couchdb design document whilst using CouchRest .", "Is it possible to use multiple couchdb databases for data in rails app while using the CouchRest Model gem https : github.com couchrest couchrest model", "It s a simple case using bare-metal RestClient upon which CouchRest was built .", "CouchRest : : Model is the namespace where CouchRest : : Model : : Base lives .", "I haven t used CouchRest : : Model just CouchRest .", "Can some one give me an example of using CouchRest to store a standalone attachment in CouchDB", "I ve been trying to delete docs in couchdb using ruby couchrest to recover disk space .", ".. . .. . Im not a rubyist so I can t reccomend any particular tool for this but it looks like couchrest depends https : github.com couchrest couchrest blob master couchrest.gemspec L30 on rest-client https : rubygems.org gems rest-client so using that wouldn t be an additional dependency", "I then used Document : : destroy http : rubydoc.info github couchrest couchrest CouchRest Document 3adestroy it sounded like it would work .", "Here s a simple model I m using : .. . .. . I m successfully creating new users with : .. . .. . Executing User.by first name.all results in this HTTP request : .. . .. . This is executed by RestClient via CouchRest .", "You might want to checkout the Proxying feature of CouchRest Model for this .", "Having look at the code server is defined in CouchRest : : Model : : Connection module which is then included in CouchRest : : Model : : Base class .", "Nothing to do with CouchRest .", "Rails CouchRest and Not using ActiveRecord .", "I don t know if ruby s couchrest can do it but it s available in the CouchDB API .. . .. . See here : http : wiki.apache.org couchdb HTTP Document API PUT .. . .. . The document ID is passed into the url .", "I realize that deleting http : rubydoc.info github couchrest couchrest CouchRest Database delete doc-instance method docs may not free up space .", "For more information : Here http : rdoc.info github couchrest couchrest model master CouchRest Model Persistence ClassMethods 3aunique id s the rdoc for unique id .", "I thought couchrest simplifies the process", "You are expected to create a model by inheriting from Base https : github.com couchrest couchrest model blob master lib couchrest model base.rb .", "I m looking for recommendations on how to implement multi-tenancy with couchrest model in a rails app .", "It looks like the CouchRest github UsageOverview wiki page https : github.com couchrest couchrest wiki Usage-Overview has some basic examples in the Attachments section : .. . .. . See the rest of the page for more examples including deleting attachments .", "What is the best practice in Couchrest for implementing something like a unique constraint .", "How can I achieve this using CouchRest", "I couldn t find much documentation for couch potato and couchrest that shows how to work with existing CouchDB databases .", "You might also want to look at the CouchRest Model specs for a more generic approach that might be suitable for testing : github.com couchrest couchrest model blob master spec https : github.com couchrest couchrest model blob master spec spec helper.rb L28", "I can see that server is a class-method defined in connection.rb https : github.com couchrest couchrest model blob master lib couchrest model connection.rb but how can I access it in code", "And because Connection https : github.com couchrest couchrest model blob master lib couchrest model connection.rb is mixed into Model : : Base not Model then you should be able to access it with .. . .. . where Project is your model name .", "I have a problem with integration between CouchRest and Sunspot .", "Assuming I have a view in my CouchDB named user all and a CouchRest ExtendedDocument as follows : .. . .. . How would I go about retrieving a document for the key admin from this view using this ExtendedDocument", "Is anyone using COuchrest 1.0.1 with ruby version 1.9.2 or similar .", "So something which does not involve CouchRest : : Model would be nice .", "I was mucking around with the attachments.rb in CouchRest source helper module .", "Im trying to update a parameter in a collection of objects using Rails CouchRest .", "I thought this was a problem with couchrest but seems to be a deeper internal Ruby problem .", "Any manual changes made to the collection ids property group ids unless replaced will require a reload of the CollectionOfProxy for the two sets of data to be in sync rubydoc.info github couchrest couchrest model http : www.rubydoc.info github couchrest couchrest model CouchRest 2FModel 2FAssociations 2FClassMethods 3Acollection of", "I want to define them with : .. . .. . Everytime I run the code the designdocument is overwritten with default views from the couchrest model .", "According to the Couchrest Model Docs : http : www.couchrest.info model-view objects.html .. . .. . It has a configuration option : auto update design doc which is set true by default .", "The only way to enforce uniqueness in CouchDB is with id field .", "Just not possible with just Couchdb .", "Am Using CouchDB .", "I need to take a date from server but not from client in couchdb is there any way how can I get it", "name of the object as the id field instead of a guid in CouchRest Model .", "To solve this problem CouchDB provides update functions http : wiki.apache.org couchdb Document Update Handlers that allows to setup some part of business logic on server-side removing this knowledge from client realizations .", "I have a running system with existing views in my couchDB they are working fine .", "I am using couchrest model https : github.com couchrest couchrest model in a Rails project and I am trying to retrieve the server URL defined in couchdb.yml .", "More details can be found here : .. . .. . http : www.couchrest.info model proxying.html .. . .. . Although I have no personal experience I understand that CouchDB handles 10k databases .", "One option is to take advantage of some of the direct CouchDB full text offerings like CouchDB Lucene : https : github.com rnewson couchdb-lucene", "It seems my problem was that I was approaching this with a view to designing a database-schema in futon then accessing it using the CouchRest extended document class .", "You just have to call view on the CouchRest database like so.. . doc DB.view foo by role or whatever .", "I m hosting my Couch instance on iriscouch.com and doing some testing with a simple Sinatra app using CouchRest Model .", "I am extending my model from CouchRest : : Model : : Base But still i am unable to see the changes in db .", "I have used couch potato - I think it is built on top of CouchRest to get ORM-ish behavior .", "I m using Couchrest model as a Rails ORM to CouchDB .", "Is there a way to list all CouchApps in one CouchDB", "I m using couchrest model to interact with CouchDB from ruby .", "I tried added CouchRest : : Model : : Embeddable but it won t work for module either .", "All the examples I am seeing are extending from CouchRest : : Model : : Base .", "have a look at the generated couchdb-view", "er.. . those features exist largely so you can navigate to them directly in the browser or to support other client implementations that don t explicitly understand CouchDB eg jsonrpc soap", "Those features exist largely so you can navigate to them directly in the browser or to support other client implementations that don t explicitly understand CouchDB eg jsonrpc soap .", "I suggest using couchdb update API http : wiki.apache.org couchdb Document Update Handlers 0.10 when your problem is about create-or-update .", "See stackoverflow.com questions 1991598 http : stackoverflow.com questions 1991598 problem-with-two-key-ranges-in-couchdb or ask your question to CouchDB users list .", "CouchDB doesn t explicitly support transaction but there is something called bulk update which may be of help : .. . .. . http : wiki.apache.org couchdb HTTP Bulk Document API Modify Multiple Documents With a Single Request .. . .. . Example data for the update :", "Then to get all admin documents you just do the following : .. . .. . If in fact the actual id of the document is admin then all you have to do is this : .. . .. . Or alternatively : .. . .. . I would also suggest taking a look at CouchRest Model which is basically an Active Model complaint extension to CouchRest if you are using this with Rails .", "You might want to check out this answer - it worked for my case where I wanted a database for each user .. . .. . Recommended use of couchrest model in a multi-tenant app http : stackoverflow.com questions 25369695 recommended-use-of-couchrest-model-in-a-multi-tenant-app", "From the documentation : .. . .. . Any manual changes made to the collection ids property group ids unless replaced will require a reload of the CollectionOfProxy for the two sets of data to be in sync .. . .. . http : www.rubydoc.info github couchrest couchrest model CouchRest 2FModel 2FAssociations 2FClassMethods 3Acollection of", "And .. . sorry to ask . . CouchDB is running", "I m trying to set up a rails API using the rails-api gem rails-api https : github.com spastorino rails-api and couchrest model https : github.com couchrest couchrest model .", "it was asked before http : grokbase.com t couchdb dev 112pa6tb2d jira-created-couchdb-1073-delete-session-doesnt-delete-the-session-client-can-still-get-user-information-using-get-session-and-with-the-session-cookie-retrieved but haven t got an answer .", "I am using CouchRest for Rails and I m having problems understanding the documentation or lack of it .", "The database method provided for each model is the canonical source of connection details and is probably the most useful for performing CouchDB operations manually .", "My System .. . .. . Ruby 1.9.2p290 .. . Rails 3.0.10 .. . CouchDB 1.1.0 .. . .. . File structure https : gist.github.com 1164637 .. . .. . Model app models book detail.rb .. . Controller app controllers books controller.rb .. . Sunspot Adapter for CouchRest config initializers couchdb.rb .. . Sunspot Adapter Module config initializers sunspot couch.rb .. . .. . NOTE : Sorry about code link .", "In couchdb I need to filter by key and which is done like this .", "CouchApps are JavaScript and HTML5 applications served directly from CouchDB .", "I am using COUCHDB built-in Session API in my application .", "Lets consider i have 1 day as timeout value in couchdb .", "so if i want to use couchdb in sinatra whats the best way to use it", "Then you see exactly what is being sent to CouchDB : RestClient.log stderr", "I ve probably just missed it in obvious doco but I can t work out how to check if a doc exists in my db using CouchRest .", "couch model doc states that CouchRest Model automatically includes the new ActiveModel validations so they should work just as the traditional Rails validations .", "I am facing issues when making a call to Db using the CouchRest Db when on ruby-1.9.2 . the same calls work with ruby version 1.8.7 .", "If you want a simpler way to test your services you can use RESTClient http : restclient.net instead of curl .", "I may look into using couchrest or simple HTTP and JSON processing instead .", "@JasonSmith described a way of achieving this using a show function .. . .. . CouchDB : Get server-time with an http-request in CouchApp http : stackoverflow.com questions 6136028 couchdb-get-server-time-with-an-http-request-in-couchapp", "I think in real-world applications people developing with CouchDB postpone uniqueness constraints for the same reason people try not to prematurely optimize .", "I want to be able to start my tests pointing at a non-existant couchdb database so that I can test from a blank canvas .", "What is the best way to add a new field property to the couchdb", "Forgive me if I m missing something but I can t see how Sunspot is mapping keywords to the searchable fields on your CouchRest objects .", "I generated a scaffold as usual : .. . .. . But after that the bootstrap layout generator is trying to use couchrest model it seems : .. . .. . I use couchrest for stuff but not Active Record .", "I have a Couchdb document id and revision id and I would like to update the document .", "I advise you to read this doc : http : guide.couchdb.org draft tour.html first It might make couchdb clearer", "If CouchDB hasn t been updated the short answer is that you cannot have multiple ranges .", "Query parameters are documented on CouchDB documentation http : docs.couchdb.org en stable api ddoc views.html .", "Is there a way for me to tell CouchDB that I want to make my field the primary hey not id" ] }
{ "confidence": [ 52.72858428955078, 49.496604919433594, 46.445648193359375, 44.630279541015625, 42.968544006347656, 42.90684509277344, 42.08290100097656, 41.794532775878906, 41.29176330566406, 41.242820739746094, 39.88429260253906, 38.53069305419922, 38.50646209716797, 38.156856536865234, 37.48042297363281, 37.44679641723633, 37.158729553222656, 35.78948974609375, 34.86677551269531, 34.42070770263672 ], "content": [ "Question : null .. . Answer : I am trying to store my ruby object in couchdb with couchrest . I am extending my model from CouchRest : : Model : : Base But still i am unable to see the changes in db . I ve defined Server as CouchRest.new also mentioned in model to use database players .. . .. . How To Persist the object How can i retreive all persisted objects Is there any simple applications which i can refer to Comment : can you please paste the code for Player Comment : furthermore it seems you are using this in a Sinatra app . I am not quite sure but the purpose of couch rest model is for the usage in Rails . So you need at least ActiveModel included .. . Comment : so if i want to use couchdb in sinatra whats the best way to use it I thought couchrest simplifies the process Comment : I haven t used CouchRest : : Model just CouchRest . One thing that may help is to turn on logging for RestClient which CouchRest uses . Then you see exactly what is being sent to CouchDB : RestClient.log stderr Comment : I have used couch potato - I think it is built on top of CouchRest to get ORM-ish behavior .", "Question : I ve probably just missed it in obvious doco but I can t work out how to check if a doc exists in my db using CouchRest . I tried db.get id but that throws a 404 in my application and it seems kind of silly to have to try-catch my way around it . Is there a simple way to say if this ID exists - update else - create .. . Answer : I suggest using couchdb update API http : wiki.apache.org couchdb Document Update Handlers 0.10 when your problem is about create-or-update . Design it just like so : .. . .. . POST then to DB design DESIGN NAME update in-place or PUT to DB design DESIGN NAME update in-place DOC ID . It s a simple case using bare-metal RestClient upon which CouchRest was built .", "Question : I am looking for a way to access a list http : wiki.apache.org couchdb Formatting with Show and List I have defined as part of a couchdb design document whilst using CouchRest . I have tried changing the call from being something like .. . .. . To .. . .. . But I get a parse-error and there doesn t appear to be a function like .view or any parameters I can set to tell it which list to use . Any help would be greatly appreciated . Comment : list show functions should produce raw http responses maybe you want a more generic http library for those Comment : @IfLoop you might be right I would prefer to use the same library if it was possible just to keep things neater but it might be the best way - thanks : - Comment : er.. . those features exist largely so you can navigate to them directly in the browser or to support other client implementations that don t explicitly understand CouchDB eg jsonrpc soap Comment : If you put that as an answer I can mark it as accepted . .. . Answer : list show functions should produce raw http responses maybe you want a more generic http library for those Those features exist largely so you can navigate to them directly in the browser or to support other client implementations that don t explicitly understand CouchDB eg jsonrpc soap . .. . .. . Im not a rubyist so I can t reccomend any particular tool for this but it looks like couchrest depends https : github.com couchrest couchrest blob master couchrest.gemspec L30 on rest-client https : rubygems.org gems rest-client so using that wouldn t be an additional dependency", "Question : Is it possible to use multiple couchdb databases for data in rails app while using the CouchRest Model gem https : github.com couchrest couchrest model Right now in my rails app I specify the one couchDB database in config couchdb.yml . I was wondering if it possible to have more than one couchdb databases being used by one rails app .. . Answer : You might want to check out this answer - it worked for my case where I wanted a database for each user .. . .. . Recommended use of couchrest model in a multi-tenant app http : stackoverflow.com questions 25369695 recommended-use-of-couchrest-model-in-a-multi-tenant-app", "Question : Im trying to update a parameter in a collection of objects using Rails CouchRest . This is what im doing currently .. . .. . Whenever update attributes failed for a User object i want the entire transaction to be rolled back . How can i achieve this Am Using CouchDB . Rails CouchRest and Not using ActiveRecord . .. . Answer : CouchDB doesn t explicitly support transaction but there is something called bulk update which may be of help : .. . .. . http : wiki.apache.org couchdb HTTP Bulk Document API Modify Multiple Documents With a Single Request .. . .. . Example data for the update :", "Question : I m having some issues with my couchDB and the couchrest model . I have a running system with existing views in my couchDB they are working fine . Now I want to use them in a ruby-on-rails project with the couch rest model . I want to define them with : .. . .. . Everytime I run the code the designdocument is overwritten with default views from the couchrest model . Does anybody know how to just use them without changing anything in the designdocument of the database Thanks a lot .. . Answer : According to the Couchrest Model Docs : http : www.couchrest.info model-view objects.html .. . .. . It has a configuration option : auto update design doc which is set true by default . When a view is requested a quick GET for the design document will be sent to ensure it is up to-date with the latest version defined in the model . Setting this option to false so that you can use existing views . But you need to deal with view updating by yourself .", "Question : Can some one give me an example of using CouchRest to store a standalone attachment in CouchDB This is for a non Rails project . So something which does not involve CouchRest : : Model would be nice . thanks mano Comment : I found the answer I was mucking around with the attachments.rb in CouchRest source helper module . The actual method to use is put attachment in database.rb... . line number 313 . .. . Answer : It looks like the CouchRest github UsageOverview wiki page https : github.com couchrest couchrest wiki Usage-Overview has some basic examples in the Attachments section : .. . .. . See the rest of the page for more examples including deleting attachments .", "Question : I want to be able to start my tests pointing at a non-existant couchdb database so that I can test from a blank canvas . How should I do this .. . Answer : I found this inside some tests for another library : .. . .. . So in a test you could do : Comment : The delete bang method works fine for deleting databases . You might also want to look at the CouchRest Model specs for a more generic approach that might be suitable for testing : github.com couchrest couchrest model blob master spec https : github.com couchrest couchrest model blob master spec spec helper.rb L28", "Question : I m hosting my Couch instance on iriscouch.com and doing some testing with a simple Sinatra app using CouchRest Model . Here s a simple model I m using : .. . .. . I m successfully creating new users with : .. . .. . Executing User.by first name.all results in this HTTP request : .. . .. . This is executed by RestClient via CouchRest . No problems there . But when I try to curl this URL I get complaints from Couch about the include docs parameter : .. . .. . I d like to understand what s going on here . Why is include docs a problem only when using curl Comment : Can you show us the full curl command-line that you executed . .. . Answer : One difference is that your URL now contains a question mark . If you don t protect the URL in the shell it will be interpreted as a special character . If you want a simpler way to test your services you can use RESTClient http : restclient.net instead of curl .", "Question : I have setup an couchdb database to be used with a ruby-on-rails application using couchrest https : github.com couchrest couchrest . Now the database has around 100K records and I want to add a field to store timestamp in integer format . Trying to update it in a loop through causes request time out . What is the best way to add a new field property to the couchdb Code .. . .. . Trace .. . Answer : To add a new property you need to load each document modify it and save it back to the database . You could do it using the bulk update api http : wiki.apache.org couchdb HTTP Bulk Document API but for just 100k I would think it s not worth the extra hassle . Please post your update script and the traceback you get when the timeout occurs . Comment : Thanks.. . Added code and trace. .", "Question : I ve been trying to delete docs in couchdb using ruby couchrest to recover disk space . I realize that deleting http : rubydoc.info github couchrest couchrest CouchRest Database delete doc-instance method docs may not free up space . I then used Document : : destroy http : rubydoc.info github couchrest couchrest CouchRest Document 3adestroy it sounded like it would work . After compacting views it seemed like it freed up much more than it should . Can you explain what destroy does Do you know why I recovered so much space .. . Answer : Looking at the source it seems that both methods do more or less the same destroy even calls delete doc . The only difference seems to be that destroy also removes the id and rev fields from the local object which makes no difference on the server-side . It seems though that both methods do some kind of batching when passing bulk true . So it might be the case that your calls to delete doc where cached and your subsequent calls to destroy simply exceeded the limit and executed the bulk deletion on the server . Comment : let me check and get back . I get the impression from various articles that even if you delete docs you can t claim the diskspace back from couchdb . do you know if that is true Comment : That s partially correct . You can delete a doc by simply adding a deleted : true attribute to it . In that case the doc is considered deleted but all its other properties will remain intact and it will still consume its full disk space . You can use that for example to store why a document has been deleted . Alternatively you can use the HTTP method DELETE which will remove all attributes and add the delete flag . In that case most of the space will be freed when compacting the database but a small doc tombstone will always be left behind .", "Question : The difference is when I use phone ids new phone.id to create a new list and update couchdb it doesn t work . But if I use phone ids + new phone.id updates will work . I understand phone ids + new phone.id will return a new instance but cannot figure out why phone ids new phone.id doesnt work Comment : Any manual changes made to the collection ids property group ids unless replaced will require a reload of the CollectionOfProxy for the two sets of data to be in sync rubydoc.info github couchrest couchrest model http : www.rubydoc.info github couchrest couchrest model CouchRest 2FModel 2FAssociations 2FClassMethods 3Acollection of Comment : @bumpy Thank you very much this is exactly what I am looking for Comment : @bumpy I don t know how to mark your answer as correct answer . Comment : I added an answer .. . Answer : Try to add using directly to hash : Comment : Thanks for answering . I tried it doesn t work . Same result as new phone ids list phone ids new phone.id got .", "Question : The difference is when I use phone ids new phone.id to create a new list and update couchdb it doesn t work . But if I use phone ids + new phone.id updates will work . I understand phone ids + new phone.id will return a new instance but cannot figure out why phone ids new phone.id doesnt work Comment : Any manual changes made to the collection ids property group ids unless replaced will require a reload of the CollectionOfProxy for the two sets of data to be in sync rubydoc.info github couchrest couchrest model http : www.rubydoc.info github couchrest couchrest model CouchRest 2FModel 2FAssociations 2FClassMethods 3Acollection of Comment : @bumpy Thank you very much this is exactly what I am looking for Comment : @bumpy I don t know how to mark your answer as correct answer . Comment : I added an answer .. . Answer : From the documentation : .. . .. . Any manual changes made to the collection ids property group ids unless replaced will require a reload of the CollectionOfProxy for the two sets of data to be in sync .. . .. . http : www.rubydoc.info github couchrest couchrest model CouchRest 2FModel 2FAssociations 2FClassMethods 3Acollection of", "Question : I am using couchrest model https : github.com couchrest couchrest model in a Rails project and I am trying to retrieve the server URL defined in couchdb.yml . I can see that server is a class-method defined in connection.rb https : github.com couchrest couchrest model blob master lib couchrest model connection.rb but how can I access it in code I am trying : .. . .. . but seeing the following error : .. . Answer : While couchrest model does offer access to a server method I wouldn t recommend trying to use it . Unlike a traditional ORM or RDMS there is no reason why you can t have multiple servers accessed from the same project . The database method provided for each model is the canonical source of connection details and is probably the most useful for performing CouchDB operations manually . A database object can also be accessed from model instances which is especially useful when dealing with proxied models http : www.couchrest.info model proxying.html . Given the model : .. . .. . You could access the data as follows : .. . .. . And in the case of a proxied model :", "Question : I m looking for recommendations on how to implement multi-tenancy with couchrest model in a rails app . For my multi-tenant app I m thinking of two options : .. . .. . edit - removed my ugly options because they ll only confuse future readers .. . .. . I would like this to work well with 10K users . SOLUTION : Based on Sam s advice here s what I did and it s working well - In my case I needed to override the proxy database method because the standard naming for proxy databases didn t match my naming . created the master .. . .. . Then in each multi-tenant model .. . .. . In ApplicationHelper create a site method that you can reuse in all your controllers . Then controller might do something like : .. . Answer : You might want to checkout the Proxying feature of CouchRest Model for this . More details can be found here : .. . .. . http : www.couchrest.info model proxying.html .. . .. . Although I have no personal experience I understand that CouchDB handles 10k databases . Here is a good thread of ways of scaling the number of users : .. . .. . http : comments.gmane.org gmane.comp.db.couchdb.user 13862 .. . .. . A few considerations to take into account when dealing with lots of databases : .. . .. . File system sub-directory count not a problem with Ext4 . Namespace databases to split between sub-directories and or servers . System open file limit . Usually around 10k . Probably fine if not all databases are accessed at the same time . Hope that helps .", "Question : I have a problem with integration between CouchRest and Sunspot . When I search the book detail the result from Sunspot is empty . I try to google it for a long time but no help . My System .. . .. . Ruby 1.9.2p290 .. . Rails 3.0.10 .. . CouchDB 1.1.0 .. . .. . File structure https : gist.github.com 1164637 .. . .. . Model app models book detail.rb .. . Controller app controllers books controller.rb .. . Sunspot Adapter for CouchRest config initializers couchdb.rb .. . Sunspot Adapter Module config initializers sunspot couch.rb .. . .. . NOTE : Sorry about code link . I always got Please indent all code by 4 spaces using the code toolbar button . I try to remove all tab and follow SO code-formatting guideline but it not work anymore . .. . Answer : Forgive me if I m missing something but I can t see how Sunspot is mapping keywords to the searchable fields on your CouchRest objects . To debug first I d visit Couch in the browser admin UI to make sure my that end is working . Then I d double check that sunspot is getting anything . If sunspot contains your records then the bug is on the search side if it is empty that maybe something is up with the object lifecycle management code it injects into your model class . It s been ages since I did any serious Ruby wish I could be more helpful . One option is to take advantage of some of the direct CouchDB full text offerings like CouchDB Lucene : https : github.com rnewson couchdb-lucene", "Question : I have a Couchdb document id and revision id and I would like to update the document . How can I achieve this using CouchRest I have tried including rev in put as suggested somewhere but that doesn t work . This is what I ve tried so far : .. . Answer : I advise you to read this doc : http : guide.couchdb.org draft tour.html first It might make couchdb clearer PS : You must specify id and rev to make it work . Comment : I went through the documentation and looked up online also I probably am missing something simple here . A simple example would be really helpful .", "Question : Assuming I have a view in my CouchDB named user all and a CouchRest ExtendedDocument as follows : .. . .. . How would I go about retrieving a document for the key admin from this view using this ExtendedDocument If I need to make changes to the ExtendedDocument subclass what should be changed Many thanks . .. . Answer : Try this : .. . .. . Here I am assuming admin is a role property . This will make a view in your design document keyed by role . Then to get all admin documents you just do the following : .. . .. . If in fact the actual id of the document is admin then all you have to do is this : .. . .. . Or alternatively : .. . .. . I would also suggest taking a look at CouchRest Model which is basically an Active Model complaint extension to CouchRest if you are using this with Rails . Good Luck Comment : Thanks . It seems my problem was that I was approaching this with a view to designing a database-schema in futon then accessing it using the CouchRest extended document class . This is of course completely back to front . I ve got it working now by following your example and using .create to first store an object in the database . Comment : You can do it that way if you prefer . You just have to call view on the CouchRest database like so.. . doc DB.view foo by role or whatever . Writing off the top of my head . I just do it in th model there how I have described . You can also explicitly set the map and reduce functions like so.. . view by : role : map Your Map Function Here : reduce Reduce Here", "Question : I am using couchrest model https : github.com couchrest couchrest model in a Rails project and I am trying to retrieve the server URL defined in couchdb.yml . I can see that server is a class-method defined in connection.rb https : github.com couchrest couchrest model blob master lib couchrest model connection.rb but how can I access it in code I am trying : .. . .. . but seeing the following error : .. . Answer : CouchRest : : Model is the namespace where CouchRest : : Model : : Base lives . You are expected to create a model by inheriting from Base https : github.com couchrest couchrest model blob master lib couchrest model base.rb . And because Connection https : github.com couchrest couchrest model blob master lib couchrest model connection.rb is mixed into Model : : Base not Model then you should be able to access it with .. . .. . where Project is your model name . should also work but it s probably not the best solution because it s not model-oriented .", "Question : I thought this was a problem with couchrest but seems to be a deeper internal Ruby problem . With the following couchdb view key values : .. . .. . If I ask for the view this way : .. . .. . I get this result : .. . .. . But if I do this : .. . .. . I get an empty result : .. . .. . I cannot for the life of me figure out why.. . I ve even resorted to cracking open wireshark and watch both queries on the wire . The bytes in the data portion of the packet are identical the stuff with the url and params . And I verify that couchdb is indeed sending me back non-empty data for the first and empty data on the second . Couchdb even shows identical queries in the log : .. . .. . The problem is whenever I concat the string instead of hard coding it even thought the resulting string are the same . But I have no idea why . Thoughts .. . Answer : With the first key test you have Document-2458 where with the second one you have Document- + 2485 . As in you have transposed the 8 and 5 on the end of the document id . Comment : Ah man thanks so much . Can t believe I missed that . Helps to have another set of eyes and maybe some sleep : . Comment : The problem with coding solo : ....happens all the time ." ] }
[ "yes-answer-long", "yes-answer-short" ]
ruby
UNK_RELATION
grunt-ember-templates@templates@201
grunt-ember-templates -- grunt-ember-templates is a grunt.js plugin that precompiles handlebars.js templates and places them into the ember.templates array which is used by ember.js to store compiled @placeholder .
{ "confidence": [ 90.31038665771484, 83.03966522216797, 83.03966522216797, 80.44908905029297, 77.74906921386719, 75.74559783935547, 73.15502166748047, 71.88729858398438, 71.00252532958984, 69.47920227050781, 65.9205322265625, 65.89959716796875, 62.4810791015625, 62.158775329589844, 62.158775329589844, 58.17829132080078, 57.316802978515625, 56.4379997253418, 55.47159194946289, 54.34999084472656, 53.881351470947266, 52.11824035644531, 51.03415298461914, 49.77256393432617, 48.95743942260742, 48.676490783691406, 48.65069580078125, 48.65069580078125, 48.332183837890625, 48.174774169921875, 45.01748275756836, 44.94155502319336, 44.883575439453125, 44.561988830566406, 44.12110137939453, 43.81615447998047, 43.6318359375, 43.03273391723633, 42.944664001464844, 42.65361022949219, 42.275596618652344, 42.275596618652344, 41.8931884765625, 41.84471130371094, 41.77162170410156, 41.10624694824219, 40.97892761230469, 40.97892761230469, 40.88431930541992, 40.191871643066406, 40.137271881103516, 39.961883544921875, 39.01088333129883, 38.36491394042969, 38.196929931640625, 36.91691207885742, 36.14722442626953, 35.84424591064453, 35.00538635253906, 34.4495964050293, 34.4495964050293, 34.32633590698242, 34.32633590698242, 34.32633590698242, 34.32633590698242, 33.84251022338867, 33.84251022338867, 33.84251022338867, 33.56988525390625, 33.50481033325195, 33.50481033325195, 32.63591384887695, 32.177978515625, 31.790151596069336, 31.251934051513672, 31.251934051513672, 28.21306800842285, 27.262876510620117, 26.907264709472656, 26.848464965820312, 26.33146858215332, 26.009464263916016, 24.97481346130371, 24.803077697753906, 24.712602615356445, 23.684146881103516, 23.204301834106445, 22.843732833862305, 21.993358612060547, 21.89021873474121, 21.708419799804688, 21.57695770263672, 21.41884994506836, 21.39495086669922, 21.39495086669922, 21.39495086669922, 21.39495086669922, 21.39495086669922, 21.39495086669922, 21.39495086669922 ], "content": [ "I am precompiling my templates using grunt-ember-templates https : github.com dgeb grunt-ember-templates .", "I am finetuning the configuration of grunt-ember-templates .", "This fork of grunt-ember-templates has a fix .", "I m using ember-grunt-templates 0.4.21 to compile .", "Let s say I have this template : .. . .. . Currently I have this template in a file called app templates phones index.hbs and grunt-ember-templates is putting the pre-compiled template in Ember.TEMPLATES app templates phones index but this is wrong .", "https : github.com huguesdk grunt-ember-templates commit 204c9c12a613180be3c35f80c9b701a69ee10342", "grunt-ember-templates is the right one and upgrading the version solves the problem .", "For people looking for same issue here is the latest update : github.com dgeb grunt-ember-templates issues 60 https : github.com dgeb grunt-ember-templates issues 60", "I m using Bower to manage my frontend dependencies and grunt-ember-templates to precompile handlebars templates .", "My package.json was a bit confusing : it was specifying grunt-contrib-handlebars and grunt-ember-templates .", "I m getting the error below after precompiling my handlebars templates and minifying my Ember code using Grunt .", "This tool is putting my templates in the Ember.TEMPLATES array as expected .", "In my case the problem was that I was using an ember library that included some templates compiled by a previous version of grunt-ember-handlebars So I got a new version of that library that was compiled by the current version of grunt-ember-handlebars and that solved the problem .", "You could use the emberTemplates grunt task from here : https : github.com dgeb grunt-ember-templates since this version has the updated dependencies and is maintained from a member of the ember core team .", "I m using Grunt-Ember-Handlebars https : github.com yaymukund grunt-ember-handlebars to tackle the compiling .. . .. . I ve moved all my templates into a handlebars folder and they compile into templates.js in the same folder .", "You can configure grunt-ember-templates to drop the first part of your path and leave everything after app templates which will give you the correct key assuming you place your template inside of file app templates phones index.hbs .", "As I guess you already know to use the grunt-ember-templates you can define a dependence in your package.json .. . .. . and run npm-install .", "Update 1 : .. . .. . I tried to update to : .. . .. . Ember 1.9 .. . Handlebars 2.0 .. . Grunt-Ember-Templates 0.5 alpha .. . .. . That fixes few occurrences of whitespace issue but some are still present .", "This is my first time using Grunt for anything much less precompile templates .", "Technology Stack .. . .. . NodeJS - v0.10.12 .. . .. . grunt-cli v0.1.9 .. . .. . grunt v0.4.1 .. . .. . grunt-contrib-templates - 0.4.10 .. . .. . JQuery - v1.10.2 .. . .. . These are used by contrib-grunt-template and the frontend client application .", "Using Gruntjs plugin contrib-ember-templates produces incorrect results when viewed on a mobile-browser .", "Use this grunt command .. . .. . ember handlebars : options : processName : function name return name.replace templates .hbs g files : templates.js : templates .hbs", "Put templates into templates .. . 2 .", "ember.js and handlebars.js", "I have a templates directory in which I keep the .hbs templates .", "I m compiling Ember templates into a JS source file which loads properly when loaded as an external source in the HTML .", "Should I drop pre-compiled templates", "Compiled templates are just functions put on the Ember.Handlebars.TEMPLATES global .", "I will then put all phone-related templates in an app templates phones directory .", "The different templates you ve posted are generated html not templates .", "Any directory structure besides the app templates will be used in the key name .", "I have tried building the taxonomy and tweaking the grunt tasks but it seems that the Ember compiling logic for the generator-ember only looks at the index.html in the root .", "@JDillon522 open templates.js it should have string like this Ember TEMPLATES application pay attention to application in your case it seems to be different", "how are your templates formatted", "For example : github.com trek https : github.com trek ember-todos-with-build-tools-tests-and-other-modern-conveniences blob master app templates application.hbs and yes the key name is determined by the file path file name after the app templates", "I m working on a simple Ember.js and Express app and up to now all my templates have been in my index.html file .", "Additionally that version of ember is not compatible with that version of ember template compiler and handlebars is no longer used", "Handlebars templates were designed to be logicless .", "Using this set up the key for the app templates phones index.hbs file will be Ember.TEMPLATES phones index which is the same as having an uncompiled script-tag with data-template-name phones index .", "should I remove the data-template-name from the script-tag when moving to pre-compiled templates", ": phones form.hbs for a general purpose form linked to the phone resource so it might not be a good idea to use it in templates other than partial templates .", "you would place data-template-name phone into app templates phone.hbs and data-template-name phone edit into app templates phone edit.hbs .", "The Gruntfile is this : .. . .. . I have an index.hbs file in templates directory which is just one line : .. . .. . When I run grunt I get this as result.js .. . .. . And I am including the result.js file in my index.html .", "I don t define the x handlebars type since I compile it using gulp-ember-templates it yield JS code that otherwise works if referenced and not inlined .", "Found the link Sails JS with EJS but linker to compile handlebars public templates http : stackoverflow.com questions 21951961 sails-js-with-ejs-but-linker-to-compile-handlebars-public-templates and it looks straight forward but somehow it does not work with my current sails version with jade .. . .. . Here s the current Grunt Configuration in tasks config emberTemplates.js .. . .. . I can see that the task gets picked up by Grunt on .. . .. . But the file . tmp public templates.js never gets created .", "Trying to upgrade an Ember project to version 2 still using Grunt as the build tool getting this error after adding ember-template compiler task : .. . .. . Running emberTemplates : dist emberTemplates task .. . .. . Error : ember-template-compiler.js : 869 throw new Error no global : self or global found no global : self or global found Warning : Ember Handlebars failed to compile.. . .. . .. . .. . .. . .. . .. . Thanks for any help", "I have this emberApp TEMPLATES handlebars application.hbs", "There is no way to do any real computing logic in the templates .", "We are relying heavily on ember-components .", "Initially we had all our hbs templates associated with components written within templates components folder but since the number of components are growing we wanted to give more structure and define the templates within subfolder within components folder .", "Is there any way to reference an Ember view in the handlebars view helper without using the Ember Application global var", "It has : .. . .. . Ember.VERSION : 1.0.0-rc.5 .. . Handlebars.VERSION : 1.0.0-rc.4 .. . jQuery.VERSION : 1.9.1 .. . .. . I am using grunt-contrib-handlebars@0.5.9 to pre-compile my templates this is the latest version available .", "For that I would like to know what is the expected key in the Ember.TEMPLATES array .", "I do not know what version of handlebars is included in that package but I get the following error when starting the application : .. . .. . I have even tried loading another handlebars runtime version 1.0.0-rc.3 but ember is not happy about it : .. . .. . So ember needs 1.0.0-rc.4 but there is no grunt precompiler available for this version .", "@DarshanSawardekar Thanks I m aware the templates get inserted during runtime .", "Does this still effectively reference the global Ember application variable App though", "Running grunt --verbose shows no error warning messages .", "In your example the key in Ember.TEMPLATES should be phones index .", "I had a similar issue with a tool we used and we just added a variable global and set it to this before ember template compiler .", "I fyou want to keep templates in handlebars directory change regexrp like so : return name.replace handlebars .hbs g", "The issue is that somehow my templates are being rendered with lots of additional spaces surrounding each html node .", "I have just installed the latest ember starter kit .", "Having this break every time I upgrade ember is going to be very annoying .. .", "Why do you have ember jquery etc under devDependencies", "While learning Ember I struggled a lot with that issue too .", "Gruntfile.js same as the Gruntfile.js in this https : github.com trek ember-todos-with-build-tools-tests-and-other-modern-conveniences project :", "This seems to be because the Ember global var is shortened to a where the Handlebars template still refers to App.View .", "when i use a ember-component for example .. . .. . I donot want a line break between component and htlml tag .", "in one yeoman ember project with one Gruntfile.js", "I m not the best person on Grunt tho so I can t really tell how you should do it .", "The issue was the dev : section. . as soon as I removed the dev : section it worked : .. . .. . module.exports function grunt", "github.com emberjs ember.js pull 2961 issuecomment-20499040 https : github.com emberjs ember.js pull 2961 issuecomment-20499040", "I believe you should compile the contents of app templates directory ignoring the directory segment in file names so you don t get it translated into the template name .", "When doing so ember complains .. . .. . You are looking for a XYZ component in the SUBFOLDER namespace but the namespace could not be found .. . .. . My compiled template looks like : .. . .. . But things work if I were to make following change : .. . .. . The work around I have now is to modify gruntfile like this .. . .. . I am not sure if this is an ember thing or something else .", ": - .. . .. . Anyone encountered similar issue like mine not like the one mentioned in Ember release notes", "As of Ember 1.11 you can do each model as foo index to get the current loop index .", "I have tried using the Yeoman ember generator and it is wonderful for 1 app environment at a time .", "Please update your precompiler to a newer version 2.0.0 or downgrade your runtime to an older version 1.0.rc.2 . .. . .. . And these are the versions : .. . .. . As you see handlebars is not mentioned explicitly as a dependency but is rather resolved through Ember .", "These are the dependencies in bower.json : .. . .. . .. . and in package.json : .. . .. . However when I compile and run my Ember application I get this error : .. . .. . Assertion failed : Ember Handlebars requires Handlebars version 1.0 or 1.1 COMPILER REVISION expected : 4 got : 5 - Please note : Builds of master may have other COMPILER REVISION values . .. . .. . Uncaught Error : Template was precompiled with an older version of Handlebars than the current runtime .", "So instead of having to initiate 5 different build environments Yeoman ember generators that duplicate the same UI elements I would love to be able to have them all in one build environment instead .", "But my situation is that I have multiple ember apps that are required to be separate because of work oriented restrictions that all use the same UI LESS CSS bower components .", "The only file I know I need to include it after is my ember.js file .", "I know that there was a mention here : http : emberjs.com blog 2014 11 04 ember-1-8-1-released.html about whitespace issue in Chrome but it says that people get the opposite effect of missing spaces due to some bug in Chrome .", "I reported that issue here : https : github.com emberjs ember.js issues 9945 .. . .. . Solution is to make sure that line ending encoding has to be Unix-like .", "Note that is used for partials e.g .", "is 3 in the array .", "is 2 in the array foo three", "your .hbs files will not have any script tags in them you should only place the contents of the template inside .", "It doesn t matter where to put them .", "An another question : you say which is the same as having an uncompiled script-tag with data-template-name phones index .", "I could not do something like foo is 1 in the array foo too", "Name them correctly application.hbs for application template .. . 3 .", "The former was apparently not used and I got confused .", "In a template : .. . .. . It will display all item in model .", "But I want to display only some item depend on index ex : Display item if index 2 0 .", "Any idea about it", "Thanks", "Create a computed property in your controller that will only return every second row and iterate over that instead.. . .. . .. . Something like : .. . .. . Then in your template :", "Thanks I had found this solution myself yesterday.. .", "We can use helpers also ." ] }
{ "confidence": [ 115.64830780029297, 94.93386840820312, 94.12725830078125, 92.68321228027344, 91.71752166748047, 90.42545318603516, 81.89486694335938, 81.64767456054688, 76.63545989990234, 74.76549530029297, 73.66741180419922, 61.773223876953125, 56.760581970214844, 53.25047302246094, 45.52827072143555, 39.84739685058594, 39.05027770996094, 28.110340118408203, 21.170982360839844, 21.170982360839844 ], "content": [ "Question : I am precompiling my templates using grunt-ember-templates https : github.com dgeb grunt-ember-templates . This tool is putting my templates in the Ember.TEMPLATES array as expected . I am finetuning the configuration of grunt-ember-templates . For that I would like to know what is the expected key in the Ember.TEMPLATES array . Let s say I have this template : .. . .. . Currently I have this template in a file called app templates phones index.hbs and grunt-ember-templates is putting the pre-compiled template in Ember.TEMPLATES app templates phones index but this is wrong . What is the expected key for data-template-name phones index Comment : I believe you should compile the contents of app templates directory ignoring the directory segment in file names so you don t get it translated into the template name . Ideally phones index.hbs should translate into App.TEMPLATES phones index . Note that is used for partials e.g . : phones form.hbs for a general purpose form linked to the phone resource so it might not be a good idea to use it in templates other than partial templates . I m not the best person on Grunt tho so I can t really tell how you should do it . .. . Answer : In your example the key in Ember.TEMPLATES should be phones index . You can configure grunt-ember-templates to drop the first part of your path and leave everything after app templates which will give you the correct key assuming you place your template inside of file app templates phones index.hbs . Using this set up the key for the app templates phones index.hbs file will be Ember.TEMPLATES phones index which is the same as having an uncompiled script-tag with data-template-name phones index . Gruntfile.js same as the Gruntfile.js in this https : github.com trek ember-todos-with-build-tools-tests-and-other-modern-conveniences project : Comment : Way simpler than I thought +1 Comment : Thanks . I will then put all phone-related templates in an app templates phones directory . But then I have a problem : where to put the template related to data-template-name phone or to data-template-name phone edit Comment : An another question : you say which is the same as having an uncompiled script-tag with data-template-name phones index . should I remove the data-template-name from the script-tag when moving to pre-compiled templates Will the data-template-name be inferred from the template file name Comment : you would place data-template-name phone into app templates phone.hbs and data-template-name phone edit into app templates phone edit.hbs . Any directory structure besides the app templates will be used in the key name . Comment : your .hbs files will not have any script tags in them you should only place the contents of the template inside . For example : github.com trek https : github.com trek ember-todos-with-build-tools-tests-and-other-modern-conveniences blob master app templates application.hbs and yes the key name is determined by the file path file name after the app templates", "Question : I m working on a simple Ember.js and Express app and up to now all my templates have been in my index.html file . This is my first time using Grunt for anything much less precompile templates . I m using Grunt-Ember-Handlebars https : github.com yaymukund grunt-ember-handlebars to tackle the compiling .. . .. . I ve moved all my templates into a handlebars folder and they compile into templates.js in the same folder . My question is this : where do I include the script-tag linking to templates.js in my HTML file .. . .. . Here is how I have all my scrips laid out : .. . .. . My path to my templates.js file is correct so thats not an issue . But it always returns with errors stating : .. . .. . Assertion failed : Could not find index template or view . The only file I know I need to include it after is my ember.js file . Other than that it makes no difference in error output if I include it after or before any files in my App . Thanks for the help ahead of time Edit : Here is my Gruntfile : Comment : how are your templates formatted are you including script tags within files .. . Answer : It doesn t matter where to put them . Seems like they have wrong naming . 1 . Put templates into templates .. . 2 . Name them correctly application.hbs for application template .. . 3 . Use this grunt command .. . .. . ember handlebars : options : processName : function name return name.replace templates .hbs g files : templates.js : templates .hbs Comment : Negative didnt work . Comment : @JDillon522 open templates.js it should have string like this Ember TEMPLATES application pay attention to application in your case it seems to be different Comment : oohh that might be my problem . I have this emberApp TEMPLATES handlebars application.hbs Comment : @JDillon522 yes that s why we need processName . I fyou want to keep templates in handlebars directory change regexrp like so : return name.replace handlebars .hbs g", "Question : I have just installed the latest ember starter kit . It has : .. . .. . Ember.VERSION : 1.0.0-rc.5 .. . Handlebars.VERSION : 1.0.0-rc.4 .. . jQuery.VERSION : 1.9.1 .. . .. . I am using grunt-contrib-handlebars@0.5.9 to pre-compile my templates this is the latest version available . I do not know what version of handlebars is included in that package but I get the following error when starting the application : .. . .. . I have even tried loading another handlebars runtime version 1.0.0-rc.3 but ember is not happy about it : .. . .. . So ember needs 1.0.0-rc.4 but there is no grunt precompiler available for this version . Catch-22 Should I drop pre-compiled templates Having this break every time I upgrade ember is going to be very annoying .. . .. . Answer : You could use the emberTemplates grunt task from here : https : github.com dgeb grunt-ember-templates since this version has the updated dependencies and is maintained from a member of the ember core team . As I guess you already know to use the grunt-ember-templates you can define a dependence in your package.json .. . .. . and run npm-install . Hope it helps Comment : That did help . My package.json was a bit confusing : it was specifying grunt-contrib-handlebars and grunt-ember-templates . The former was apparently not used and I got confused . grunt-ember-templates is the right one and upgrading the version solves the problem .", "Question : I have just installed the latest ember starter kit . It has : .. . .. . Ember.VERSION : 1.0.0-rc.5 .. . Handlebars.VERSION : 1.0.0-rc.4 .. . jQuery.VERSION : 1.9.1 .. . .. . I am using grunt-contrib-handlebars@0.5.9 to pre-compile my templates this is the latest version available . I do not know what version of handlebars is included in that package but I get the following error when starting the application : .. . .. . I have even tried loading another handlebars runtime version 1.0.0-rc.3 but ember is not happy about it : .. . .. . So ember needs 1.0.0-rc.4 but there is no grunt precompiler available for this version . Catch-22 Should I drop pre-compiled templates Having this break every time I upgrade ember is going to be very annoying .. . .. . Answer : I had the same problem - the same error message . In my case the problem was that I was using an ember library that included some templates compiled by a previous version of grunt-ember-handlebars So I got a new version of that library that was compiled by the current version of grunt-ember-handlebars and that solved the problem .", "Question : null .. . Answer : Trying to upgrade an Ember project to version 2 still using Grunt as the build tool getting this error after adding ember-template compiler task : .. . .. . Running emberTemplates : dist emberTemplates task .. . .. . Error : ember-template-compiler.js : 869 throw new Error no global : self or global found no global : self or global found Warning : Ember Handlebars failed to compile.. . .. . .. . .. . .. . .. . .. . Thanks for any help Comment : I had a similar issue with a tool we used and we just added a variable global and set it to this before ember template compiler . Total hack but I was feeling lazy Comment : Additionally that version of ember is not compatible with that version of ember template compiler and handlebars is no longer used Comment : Just ran into this . This fork of grunt-ember-templates has a fix . https : github.com huguesdk grunt-ember-templates commit 204c9c12a613180be3c35f80c9b701a69ee10342", "Question : null .. . Answer : We are relying heavily on ember-components . Initially we had all our hbs templates associated with components written within templates components folder but since the number of components are growing we wanted to give more structure and define the templates within subfolder within components folder . When doing so ember complains .. . .. . You are looking for a XYZ component in the SUBFOLDER namespace but the namespace could not be found .. . .. . My compiled template looks like : .. . .. . But things work if I were to make following change : .. . .. . The work around I have now is to modify gruntfile like this .. . .. . I am not sure if this is an ember thing or something else . But putting the question out there hoping for some better solution . UPDATE It seems like the problem is caused because of the way we were loading components . We are basically using helper function that loads the component based on parameter we pass to it like : .. . .. . I checked the Ember.Handlebars.helpers and it doesn t seem to have components that were defined within any folder within component . Comment : For people looking for same issue here is the latest update : github.com dgeb grunt-ember-templates issues 60 https : github.com dgeb grunt-ember-templates issues 60", "Question : I have a problem in the app that I m working on since I upgraded EmberJS from 1.6.1 to 1.8.1 . It happens only under Chrome . The issue is that somehow my templates are being rendered with lots of additional spaces surrounding each html node . So to say.. . instead of : .. . .. . I get something like this rendered : .. . .. . Or maybe you ll see it here : An example http : i.stack.imgur.com emOJp.png .. . .. . That obviously breaks styling a lot . The funny thing is that when I remove at least one space from such strange construct then magically the styling for given section is back even though other spaces are still there . Just to mention . I m using ember-grunt-templates 0.4.21 to compile . I know that there are new versions of it 0.4.23 I think.. . and I tried to update it as well but it doesn t help . I know that there was a mention here : http : emberjs.com blog 2014 11 04 ember-1-8-1-released.html about whitespace issue in Chrome but it says that people get the opposite effect of missing spaces due to some bug in Chrome . Is my Chrome instance consuming and gathering all other people whitespaces or what : - .. . .. . Anyone encountered similar issue like mine not like the one mentioned in Ember release notes Anyone knows how to get rid of this Update 1 : .. . .. . I tried to update to : .. . .. . Ember 1.9 .. . Handlebars 2.0 .. . Grunt-Ember-Templates 0.5 alpha .. . .. . That fixes few occurrences of whitespace issue but some are still present . I.e . that results in a space in front of rendered text : .. . .. . And that doesn t : .. . .. . : - Comment : Is your editor converting tabs to 4 spaces Comment : Check my answer below : .. . Answer : It turns out to be a line ending encoding related bug . I reported that issue here : https : github.com emberjs ember.js issues 9945 .. . .. . Solution is to make sure that line ending encoding has to be Unix-like .", "Question : Using Gruntjs plugin contrib-ember-templates produces incorrect results when viewed on a mobile-browser . Generated Template .. . .. . However editing the template via live debugging produces the desired results . Desired template .. . .. . Additional Information .. . .. . This issue only appears when using EmberJS minified release build . This issue does not show itself on desktop browsers . This issue produces no console messages . Running grunt --verbose shows no error warning messages . Technology Stack .. . .. . NodeJS - v0.10.12 .. . .. . grunt-cli v0.1.9 .. . .. . grunt v0.4.1 .. . .. . grunt-contrib-templates - 0.4.10 .. . .. . JQuery - v1.10.2 .. . .. . These are used by contrib-grunt-template and the frontend client application . .. . .. . EmberJS - v1.0.0-rc.6-15-gfe89337 minified .. . .. . Handlebars - 1.0.0 .. . .. . EDIT : .. . .. . This issue only presents itself when a view is being used on the template . uncompiled template .. . .. . Index View .. . .. . EDIT : .. . .. . I ve narrowed this down specifically to this line in the template . Comment : The different templates you ve posted are generated html not templates . Compiled templates are just functions put on the Ember.Handlebars.TEMPLATES global . The malformed script-tag looks like a metamorph render bug . Try posting a jsbin with the buggy behaviour on mobile . Comment : @DarshanSawardekar Thanks I m aware the templates get inserted during runtime . I ll post the offending code on JSBIN however please beware that the issue will not present itself on a desktop browser . Comment : @DarshanSawardekar I m working on it I m having trouble finding the exact library versions on a CDN . jsbin.com ejoxom 1 http : jsbin.com ejoxom 1 Comment : Try builds.emberjs.com . .. . Answer : This issue was relating to the mobile data provider O2 Possibly others but not Vodafone or 3 . It appears to be because of O2 s rather strict data policies where they will minify strip and do all kinds of crazy http : stuartroebuck.blogspot.co.uk 2010 07 mobile-proxy-cache-content-modification.html things to the files going over their network . A work around is provided here http : ashmatadeen.com blog get-rid-of-image-compression-on-o2s-network Comment : Wow I have seen aggressive caching before but modification of content is a new one to me .", "Question : null .. . Answer : My index.html is in root directory and I have specified application template in that itself . I have a templates directory in which I keep the .hbs templates . The Gruntfile is this : .. . .. . I have an index.hbs file in templates directory which is just one line : .. . .. . When I run grunt I get this as result.js .. . .. . And I am including the result.js file in my index.html . However I still don t see the remplate content rendered . So how do I get this working Comment : Does your index.html have all of the required files Ie . ember.js and handlebars.js Comment : @tarasm yeah it had all the files . Actually the problem got solved after I removed amd : true from the options in Gruntfile . Not sure why was that the problem . I had included require.js and wasn t getting any errors in console .", "Question : Is there any way to reference an Ember view in the handlebars view helper without using the Ember Application global var I m getting the error below after precompiling my handlebars templates and minifying my Ember code using Grunt . This seems to be because the Ember global var is shortened to a where the Handlebars template still refers to App.View . MyView.hbs : .. . .. . MyChildView.hbs : .. . .. . JS : .. . .. . Error : .. . .. . Uncaught Error : assertion failed : Unable to find view at path MyChildView .. . .. . .. . .. . Solution : .. . .. . Found a solution to this by using the render helper instead of view . MyView.hbs : Comment : can you show more code on how your App.MyView is setup template etc . Comment : I think that s a better representation of my problem . I m using a simplification of my program . Comment : So I think I found a resolution for this by using the render helper instead of view . Can t post it as an answer because you need 10 rep to answer your own question within 8 hours of posting it : Comment : glad you found a solution maybe you could edit your answer adding the solution . .. . Answer : The handlebars view helper can accept a string instead of a constant . So try : Comment : Does this still effectively reference the global Ember application variable App though Comment : Yep . Agreed that s not ideal would be nice if view did some kind of container lookup like render . Maybe it does I ve not tried.. . Comment : Yeah it s a bit annoying what I really need is a View with the controller inheritance but can t do the template name-lookup like with render . Comment : It seems you re not the only one who wants this - stef just published a PR that would teach view helper about the container . github.com emberjs ember.js pull 2961 issuecomment-20499040 https : github.com emberjs ember.js pull 2961 issuecomment-20499040", "Question : I m using Bower to manage my frontend dependencies and grunt-ember-templates to precompile handlebars templates . These are the dependencies in bower.json : .. . .. . .. . and in package.json : .. . .. . However when I compile and run my Ember application I get this error : .. . .. . Assertion failed : Ember Handlebars requires Handlebars version 1.0 or 1.1 COMPILER REVISION expected : 4 got : 5 - Please note : Builds of master may have other COMPILER REVISION values . .. . .. . Uncaught Error : Template was precompiled with an older version of Handlebars than the current runtime . Please update your precompiler to a newer version 2.0.0 or downgrade your runtime to an older version 1.0.rc.2 . .. . .. . And these are the versions : .. . .. . As you see handlebars is not mentioned explicitly as a dependency but is rather resolved through Ember . But somehow it resolves to a newer incompatible version . How do I fix the version of handlebars Comment : Why do you have ember jquery etc under devDependencies should probably be under dependencies . For node packages dev dependencies is correct . .. . Answer : Do bower-install handlebars 1.3.0 --save but yes this is a issue with bower . I saw you created https : github.com bower bower issues 1114 Comment : Thanks that ll do the trick for now .", "Question : Found the link Sails JS with EJS but linker to compile handlebars public templates http : stackoverflow.com questions 21951961 sails-js-with-ejs-but-linker-to-compile-handlebars-public-templates and it looks straight forward but somehow it does not work with my current sails version with jade .. . .. . Here s the current Grunt Configuration in tasks config emberTemplates.js .. . .. . I can see that the task gets picked up by Grunt on .. . .. . But the file . tmp public templates.js never gets created . I banged my head against the wall for 8 hours and don t know where to go . Any help is apreciated . Thanks .. . Answer : The issue was the dev : section. . as soon as I removed the dev : section it worked : .. . .. . module.exports function grunt", "Question : null .. . Answer : Is it possible have multiple apps that share UI CSS libs etc . in one yeoman ember project with one Gruntfile.js I have tried using the Yeoman ember generator and it is wonderful for 1 app environment at a time . But my situation is that I have multiple ember apps that are required to be separate because of work oriented restrictions that all use the same UI LESS CSS bower components . So instead of having to initiate 5 different build environments Yeoman ember generators that duplicate the same UI elements I would love to be able to have them all in one build environment instead . I have tried building the taxonomy and tweaking the grunt tasks but it seems that the Ember compiling logic for the generator-ember only looks at the index.html in the root . Any info insight is welcome .", "Question : I m compiling Ember templates into a JS source file which loads properly when loaded as an external source in the HTML . However when I inline the same source file into the HTML which is required for the current project I get the following error on the browser console : .. . .. . The code of the template that is failing is the following : .. . .. . Any ideas Comment : Have you tried a simple template e.g . p Hello world p Are you putting this in script type x handlebars tags Comment : Yes I ve tried simplifying the template and the error disappears if I remove the password field . I don t define the x handlebars type since I compile it using gulp-ember-templates it yield JS code that otherwise works if referenced and not inlined . Comment : Did you try just p password p Could just be a closed tag issue .. . Answer : Try using the classNames attribute in your input helper instead of class and see if that helps .", "Question : I feel like I may be doing to much for a simple problem . If index 0 how do I increment index in a template . Ideally I would like to do something like this . From what I understand the solution is to write a helper function like the following . And then in the template you would do the following . So hopefully I am wrong and there is a much easier way to do this . And possibly a easier way to do simple processing in the template . Not sure if there may be an objection because there may be to much logic in the template . Any guidance on this would be greatly appreciated . Thanks Comment : What are your use-case for index in template @user2517182 Comment : And possible a easier way to do simple processing in the template . That would be a no . Handlebars templates were designed to be logicless . You should be doing any and all processing in your code . Comment : If you have stuff and you want to display 1 next to stuff 0 in your template then 2 next to stuff 1 ect .. . Comment : @GJK so does that go for the index + 1 thing as well Just want to make sure there is not a better way to do that . Thanks . Comment : Yes that applies to index + 1 as well . There s no way to do any processing or calculations directly in a template you have to use a helper or computed property . .. . Answer : The short answer is no . There is no way to do any real computing logic in the templates . The helper is your best bet for adding 1 to index within a template . Of course one would wonder why you would want to add +1 to any index anyway possibly to label your itterations in a non-zero based way in that case would you not render an ordered list instead Resulting in : .. . .. . 1 . I m a foo .. . 2 . I m a foo too 3 . I m a foo three .. . .. . another possibility is this as an alternative to using a helper for every index .. . .. . then .. . .. . Resulting in : .. . .. . I m Foo and I m 1 .. . .. . I m Man and I m 2 .. . .. . I m Chu and I m 3 Comment : Thanks for your answer . I think the ordered list may be a bit limiting . I could not do something like foo is 1 in the array foo too is 2 in the array foo three is 3 in the array . But I guess that is why there are helpers . : - Comment : As of Ember 1.11 you can do each model as foo index to get the current loop index .", "Question : I feel like I may be doing to much for a simple problem . If index 0 how do I increment index in a template . Ideally I would like to do something like this . From what I understand the solution is to write a helper function like the following . And then in the template you would do the following . So hopefully I am wrong and there is a much easier way to do this . And possibly a easier way to do simple processing in the template . Not sure if there may be an objection because there may be to much logic in the template . Any guidance on this would be greatly appreciated . Thanks Comment : What are your use-case for index in template @user2517182 Comment : And possible a easier way to do simple processing in the template . That would be a no . Handlebars templates were designed to be logicless . You should be doing any and all processing in your code . Comment : If you have stuff and you want to display 1 next to stuff 0 in your template then 2 next to stuff 1 ect .. . Comment : @GJK so does that go for the index + 1 thing as well Just want to make sure there is not a better way to do that . Thanks . Comment : Yes that applies to index + 1 as well . There s no way to do any processing or calculations directly in a template you have to use a helper or computed property . .. . Answer : While learning Ember I struggled a lot with that issue too . I have created a gist showing you how this can be done using a very simple Handlebars helper method . https : gist.github.com makabde 7d38d09d28b2a167b003 .. . .. . And then all you have to do is call this helper with your-helper-method index it should then output the index incremented by 1 or whatever the increment you have set in your helper method . Comment : This really solved the problem I don t know why it s not higher up . This is better than any of the other solutions . Thanks for your gist saved me a lot of time", "Question : when i use a ember-component for example .. . .. . I donot want a line break between component and htlml tag . .. . Answer : I set the component class s tagName property http : emberjs.com api classes Ember.Component.html property tagName to span . So :", "Question : I feel like I may be doing to much for a simple problem . If index 0 how do I increment index in a template . Ideally I would like to do something like this . From what I understand the solution is to write a helper function like the following . And then in the template you would do the following . So hopefully I am wrong and there is a much easier way to do this . And possibly a easier way to do simple processing in the template . Not sure if there may be an objection because there may be to much logic in the template . Any guidance on this would be greatly appreciated . Thanks Comment : What are your use-case for index in template @user2517182 Comment : And possible a easier way to do simple processing in the template . That would be a no . Handlebars templates were designed to be logicless . You should be doing any and all processing in your code . Comment : If you have stuff and you want to display 1 next to stuff 0 in your template then 2 next to stuff 1 ect .. . Comment : @GJK so does that go for the index + 1 thing as well Just want to make sure there is not a better way to do that . Thanks . Comment : Yes that applies to index + 1 as well . There s no way to do any processing or calculations directly in a template you have to use a helper or computed property . .. . Answer : If you need to access the index in a each block use : .. . .. . see : This Answer http : stackoverflow.com questions 19795562 accessing-index-in-each-in-emberjs .. . .. . You can then use a template helper to convert from index to position . JSBin Example http : emberjs.jsbin.com yetoqu 2 edit html js output", "Question : In a template : .. . .. . It will display all item in model . But I want to display only some item depend on index ex : Display item if index 2 0 . Any idea about it Thanks .. . Answer : Create a computed property in your controller that will only return every second row and iterate over that instead.. . .. . .. . Something like : .. . .. . Then in your template : Comment : Thanks I had found this solution myself yesterday.. .", "Question : In a template : .. . .. . It will display all item in model . But I want to display only some item depend on index ex : Display item if index 2 0 . Any idea about it Thanks .. . Answer : We can use helpers also . Here is an example http : emberjs.jsbin.com gened 3 edit ." ] }
[ "yes-answer-long", "yes-answer-short" ]
templates
UNK_RELATION
apache-commons-net@client-side@65
apache-commons-net -- apache-commons-net library implements the @placeholder of many basic internet protocols .
{ "confidence": [ 64.01553344726562, 60.031219482421875, 59.568031311035156, 56.629783630371094, 56.629783630371094, 56.629783630371094, 56.629783630371094, 56.629783630371094, 54.92762756347656, 54.92762756347656, 54.634239196777344, 54.634239196777344, 54.634239196777344, 54.634239196777344, 52.29337692260742, 52.29337692260742, 52.29337692260742, 51.77943420410156, 51.38849639892578, 51.199581146240234, 51.13786697387695, 50.18048858642578, 49.42425537109375, 49.42425537109375, 49.42425537109375, 49.42425537109375, 49.42425537109375, 49.42425537109375, 49.42425537109375, 48.951148986816406, 48.80907440185547, 47.4287109375, 47.364540100097656, 47.364540100097656, 47.364540100097656, 46.97157287597656, 46.955604553222656, 46.728057861328125, 46.46525573730469, 46.21318054199219, 46.07865905761719, 45.163455963134766, 45.06306457519531, 45.02367401123047, 45.02367401123047, 45.02367401123047, 45.02367401123047, 44.91086959838867, 44.51432800292969, 44.41381072998047, 44.37809753417969, 43.956947326660156, 43.872314453125, 43.589725494384766, 43.492183685302734, 43.06752014160156, 43.06752014160156, 43.03224182128906, 42.91532897949219, 41.762550354003906, 41.762550354003906, 41.49664306640625, 41.49664306640625, 41.49664306640625, 41.49664306640625, 41.002418518066406, 40.574462890625, 39.949703216552734, 39.88371658325195, 39.804325103759766, 38.695838928222656, 38.695838928222656, 38.34296417236328, 38.341163635253906, 37.93204879760742, 37.93204879760742, 37.80878448486328, 37.80878448486328, 37.80878448486328, 36.62440490722656, 36.511009216308594, 36.1822509765625, 35.5911865234375, 35.5911865234375, 35.5911865234375, 35.5911865234375, 34.86843490600586, 34.59032440185547, 34.13383483886719, 33.59046173095703, 33.59046173095703, 33.45970153808594, 33.45970153808594, 32.52171325683594, 32.52171325683594 ], "content": [ "I m using Apache Commons Net .", "I m using Apache Commons Net in Android .", "I use TelnetClient from Apache Commons Net https : commons.apache.org proper commons-net to communicate and read-write to the device .", "I am using JDK7u79 and Apache Commons Net 3.3 .", "With my Java-Program I m connecting to a FTP server with Apache Commons Net .", "I m retrieving files from an FTP server using Apache commons net .", "I have a java code- .. . .. . The apache-commons-net jar is added to the classpath .", "I m trying to use apache commons-net for ftp file transfers .", "Use the FTPClient.mlistDir method https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html mlistDir java.lang.String .", "Iterate the returned array of FTPFile s https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPFile.html .", "I am using Apache Commons net to connect programmatically to my server .", "I m writing a simple FTPS client using Apache Commons Net .", "I m using latest Apache Commons Net to make use of FTP functionality .", "For this purpose Im using Apache Commons net which is quite good .", "I ve tried using Apache Commons Net and Spring s sftpsessionfactory FTP libraries .", "I m using apache commons-net FTPClient to upload some files .", "It s probably worth reporting this on the Apache Commons Net project .", "I ve read other questions and it s not the enterLocalPassiveMode problem Apache Commons Net FTPClient and listFiles http : stackoverflow.com questions 2712967 apache-commons-net-ftpclient-and-listfiles as I m using that after connecting but before logging in .", "In the latest version as of this comment commons-net-3.2 http : apache.parentingamerica.com commons net binaries commons-net-3.2-bin.zip you do the following : ftp.setFileType FTPClient.BINARY FILE TYPE", "This behavior is a error of the commons-net library", "Related questions that didn t answer my question : .. . .. . Apache Commons Net FTPClient and listFiles http : stackoverflow.com questions 2712967 apache-commons-net-ftpclient-and-listfiles .. . Issue with org.apache.commons.net.ftp.FTPClient listFiles http : stackoverflow.com questions 2576647 issue-with-org-apache-commons-net-ftp-ftpclient-listfiles", "It uses the Apache Commons Net library http : commons.apache.org proper commons-net : .. . .. . How can I modify this code to return the time in Melbourne rather than my time", "So after you connect using the FTPClient.connect use the FTPClient.getReplyStrings https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTP.html getReplyString 28 29 to retrieve the welcome message .", "I have the following configuration .. . .. . But the payload is a List FTPFile https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPFile.html and the splitter doesn t work .", "You would have to override the FTPClient.getListArguments https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html getListArguments 28java.lang.String 29 to inject your own flags .", "Just make sure you use FTPClient.mlistDir https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html mlistDir 28 29 which internally uses a modern MLSD command .", "Except for a time-consuming call of MDTM - FTPClient.getModificationTime https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html getModificationTime 28java.lang.String 29 for each listed file .", "You call the FTPClient.setFileType method https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html setFileType 28int 29 too early .", "For those entries where the FTPFile.isDirectory https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPFile.html isDirectory is true call the FTPClient.mlistDir again .", "From http : commons.apache.org net api org apache-commons-net ftp FTPClient.html .. . .. . The default settings for FTPClient are for it to use FTP.ASCII FILE TYPE FTP.NON PRINT TEXT FORMAT FTP.STREAM TRANSFER MODE and FTP.FILE STRUCTURE .", "To upload I m using the library commons-net-3.1 Apache also tested with version 3.5 and it still fails .", "From their documentation https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPSClient.html execPROT java.lang.String I see that P stands for Private Data Channel Protection Level .", "I m using Apache Commons Net FTPSClient to build a FTPS plugin for my web application .", "I don t see a method that Apache Commons net provides to add a cert file .", "I m using Camel 2.15.2 with Apache Commons Net 3.3 on Java 8 deployed into a Tomcat container .", "Which version of Apache Commons are you using", "It doesn t work because the default transfer mode for FTPClient http : commons.apache.org net apidocs org apache-commons-net ftp FTPClient.html is FTP.ASCII FILE TYPE .", "I am using Apache commons ftps client to connect to an ftps server .", "Try using FTPClient http : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html instead of FTPHTTPClient which according to it s documentation http : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPHTTPClient.html is experimental HTTP proxying of FTP connections .. . .. . .. . should work just fine", "I ve been asked to start using the Apache Commons Net library FTPClient and FTPSClient mainly and I m running into problems doing a file listing .", "Getting the following while using Apache s commons-net library .", "While trying to perform a listFiles command using Apache Commons Net 3.3 FTPSClient against an Mina s Apache FTP Server parsing of the listing fails .", "Checked the class files inside the apache-commons-net.jar and there was no SubnetUtils present .", "This makes sense to me as how it s supposed to be work but the Apache Commons Net FTPS implementation doesn t seem to be doing that .", "I had been looking through the Apache Commons Net JIRA but apparently didn t dig as far as you did .", "In apache Commons Net however there seems to be either AuthenticatingSMTPClient no SSL though it extends SMTPSClient", "I am using apache-commons-net 3.4 and i found a strange issue i cant explain .", ".. . .. . The Apache Commons Net FTPClient sends the -a flag when FTPClient.setListHiddenFiles is set the -a flag is supported or at least safely ignored by most -but not all- FTP servers .", "Looking at some other FTPClient-questions I think the reason is a bug in the Apache Commons-NET library https : issues.apache.org jira browse NET-409 of which the FTPClient is a component in version 3.0 .", "This looks like a bug in the Commons NET library https : issues.apache.org jira browse NET-409 which affected version 3.0 .", "https : repository.apache.org content repositories snapshots commons-net commons-net 3.0.1-SNAPSHOT .. . .. . Cheers", "I am trying to use the Aapche Commons Net library to implement a telnet connection in Android .", "Through eclipse java client i tried to connect to server for upload and download the file using the below code using commons-net apache library .", "@SubOptimal That s the same similar code the OP has already but for a different library edtFTPj not Apache Commons .", "I m using spring-integration 4.2.5 and commons-net-2.0 .", "Using Apache Commons FTPSClient the downloaded file is always stored as 0 bytes .", "I am using apache-commons FTP client v3.4 .", "At least the ProFTPD FTP server http : www.proftpd.org resets the default transfer mode after the authentication FTPClient.login https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html login 28java.lang.String 20java.lang.String 29 .", "Code from Apache Commons Net added for reference . .. . .. . openDataConnection in org.apache.commons.net.ftp.FTPClient : .. . .. . parsePassiveModeReply in org.apache.commons.net.ftp.FTPClient : .. . .. . Thank you in advance for trying to help me .", "The exact failure message can be found by calling FtpClient getReplyCode http : commons.apache.org net apidocs org apache-commons-net ftp FTPClient.html getReplyCode 28 29 .", "From documentation http : commons.apache.org net api org apache-commons-net ftp FTPClient.html storeFile 28java.lang.String 20java.io.InputStream 29 .. . .. . This method does NOT close the given InputStream .", "My classpath was pointing to an older verion of commons-net jar file .", "I am using camel 2.15.2 Commons net API 3.3 .", "The client code is written in Java and is as follows : .. . .. . Where ftp is a commons net FTPClient .", "The environment is maven and commons-net has been loaded via the pom file .", "I highly recommend that you use IOutils from Apache Commons IO http : commons.apache.org io apidocs org apache-commons-io IOUtils.html to copy streams .", "The Apache Commons Net client doesn t actually follow the FTPS standard and only allows some subset that doesn t allow for securing the data connections .", "Currently I am using Apache s Commons Net library http : commons.apache.org proper commons-net for transferring some application files 2KB to 200MB from one AIX server to another through FTP protocol .", "like : .. . .. . That when .forEach System.out : : println is run over the templist displays something like : .. . .. . I m using the Apache Commons FTP library in Java .", "There s no API for an FTP client to tell remote path separator not only in Java Apache Commons but in general .", "Looking at the latest implementation of FTPSClient in the trunk of the Subversion repository http : svn.apache.org viewvc commons proper net trunk src main java org apache-commons-net ftp FTPSClient.java view markup pathrev 1697433 it s visibly using a TrustManager implementation coming from TrustManagerUtils.getValidateServerCertificateTrustManager by default .", "In turn the latest implementation of TrustManagerUtils http : svn.apache.org viewvc commons proper net trunk src main java org apache-commons-net util TrustManagerUtils.java view markup pathrev 1697433 reveals that this provides a TrustManager that only calls checkValidity on this certificate and that s the option with validation turned on not even the ACCEPT ALL implementation .", "I am trying to calculate the last IP adddress from CIDR using Apache commons-net for IPV4 .. . .. . It won t work for IPV6 can anybody suggest some library to solve this issue", "It was something related with the Session reuse Apache Commons Net has some kind of bug It does not allow you to reuse the session I had to implement the cyberduck library cyberduck source code https : g.iterate.ch projects ITERATE repos cyberduck browse source ch cyberduck core .", "We are using the following Apache Commons Net FTP code to connect to an FTP server poll some directories for files and if files are found to retrieve them to the local machine : .. . .. . We have this scheduled to run every minute on the minute .", "As far as I know Apache commons net have two methods to force passive-mode .enterLocalPassiveMode and .enterRemotePassiveMode but I need to connect my FTP server first for using such methods .", "I am trying download a file from ftp server to sdcard using Apache Commons FTPClient .", "I am using Apache Commons Util.copyStream function to upload a file to an FTP server .", "@BlocBloc : I m not familiar with the specific implementations in Apache Commons I only know the innards and problems of the FTP protocol itself .", "Looking at older questions here http : stackoverflow.com q 6193485 600500 with similar problems it looks like you hit a bug of the Commons-NET library https : issues.apache.org jira browse NET-409 of which the FTPClient is a part .", "I am trying to rename the files over FTP using commons net FTP 3.5 and Java 1.8.0.45 .", "I can make the login but when I try to list the files I get an Exception : .. . .. . I have tried every possible solution on line nothing has worked for me this is the code I m using with apache commons-net : .. . .. . I will really appreciate your help guys .", "Environment : I m using Sun Java JDK 1.8.0 60 on 64-bit Windows 7 using Spring Integration 4.1.6 which internally appears to use Apache Commons Net 3.3 for FTPS access .", "SOLUTION : On top of setting charset codepage to cp037 as specified by Bruce Martin s answer I also had to change a setting in my FTP logic using apache-commons-net .", "Both will work but apache commons.net libraries are not thread safe http : wiki.apache.org commons Net FrequentlyAskedQuestions so if you do use one client with multiple threads be aware that you ll have to synchronize access to it .", "I created SSL certificate using - .. . .. . I used Apache Commons net to connect to my FTPS server and retrieve files using - .. . .. . This worked fine and I was able to retrieve files .", "You can see from detailed explanation about bug : https : issues.apache.org jira browse NET-409 .. . .. . You can download fixed relea https : repository.apache.org content repositories snapshots commons-net commons-net 3.0.1-SNAPSHOT", "The only solution I currently see is copying the Apache Commons FTP code and implementing my own changes to make it work with a masquerading NAT box .", "Commons FTP defaults to ascii file types .", "For ftp to work I need commons-net.jar as dependency at .. . .. . ANT HOME lib folder .", "Is there a way to keep commons-net.jar at customized folder instead of .. . .. . ANT HOME lib folder", "I am using commons-net package for the first time and using the code below to ftp a file from a FileZilla server over SSL .", "I checked out the commons-net source code and it doesn t look like it s responsible for the weird behavior when BINARY mode is used .", "I m trying to develop a FTP client in java using Apache Commons Net but even if my code seems to be good I can t connect to any server and I get : .. . .. . I tried to connect to this server : ftp : ics.ftptest.org which works perfectly .", "I guess my question s is are : does anyone know of any good FTP libraries for java that just move the damned bytes from there to here or am I going to have to hack up apache commons-net-2.0 and maintain my own FTP client code just for this simple application" ] }
{ "confidence": [ 64.09141540527344, 60.495025634765625, 55.98436737060547, 55.510616302490234, 55.31816864013672, 55.29169464111328, 54.72188949584961, 54.48660659790039, 54.383949279785156, 53.28519821166992, 53.170936584472656, 52.40706253051758, 51.6498908996582, 49.8607292175293, 49.69659423828125, 49.127559661865234, 48.285980224609375, 48.094947814941406, 47.7469482421875, 47.43867492675781 ], "content": [ "Question : My problem is to get the paths of all files on the FTP server in Java . I want to be able to make List String of the paths of all files on on the server . I need this to be able to determine if a file-exists on the server that is not on a local computer and vice versa . How do I get a list of the paths for each file on the server like : .. . .. . That when .forEach System.out : : println is run over the templist displays something like : .. . .. . I m using the Apache Commons FTP library in Java . Thanks for the help .. . Answer : Use the FTPClient.mlistDir method https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html mlistDir java.lang.String . Iterate the returned array of FTPFile s https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPFile.html . For those entries where the FTPFile.isDirectory https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPFile.html isDirectory is true call the FTPClient.mlistDir again . Comment : Awesome thanks Comment : Now the only problem is that my ftp server vsftpd does not support the MLSD command that FTPClient.mlistDir is running.. . Comment : Use .listFiles instead . Comment : Thanks that did the trick : D", "Question : I m trying to develop a FTP client in java using Apache Commons Net but even if my code seems to be good I can t connect to any server and I get : .. . .. . I tried to connect to this server : ftp : ics.ftptest.org which works perfectly . I tried to disconnect my firewall and that leeds to the same results . Here is my code I hope that it will obvious for you guys haha : .. . Answer : Try using FTPClient http : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html instead of FTPHTTPClient which according to it s documentation http : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPHTTPClient.html is experimental HTTP proxying of FTP connections .. . .. . .. . should work just fine Comment : Ouch you re right I just read the FTPClientExample.java file on the apache website and it did not mention that it was experimental . Thank you .", "Question : I have a java code- .. . .. . The apache-commons-net jar is added to the classpath . Still I am getting an error for SubnetUtils as it cannot be resolved to a type . Any ideas .. . Answer : The issue is resolved now . Checked the class files inside the apache-commons-net.jar and there was no SubnetUtils present . The jar file seems to be of a very old version . Downloaded a latest jar and everything works fine .", "Question : I m trying to use apache commons-net for ftp file transfers . Problem is files are intermittently arriving at the server corrupt . by corrupt i mean that winrar tells me a zip file has an Unexpected end of archive . sometimes the files are completely empty . I have noticed that this happens more for larger files 100kb+ however does happen for small files too 20kb . I know for a fact that the source zip file being uploaded is valid and is only 243kb . I do not get any errors exceptions from the code . Here s the code being executed : .. . .. . and some logs : .. . .. . note that all of these were complete within 15 seconds and all of the resulting files on the server are corrupt . i have also tested without setting any timeouts and the problem still occurs . .. . Answer : Commons FTP defaults to ascii file types . You want to set it to Binary when dealing with binary-data like a zip file . From http : commons.apache.org net api org apache-commons-net ftp FTPClient.html .. . .. . The default settings for FTPClient are for it to use FTP.ASCII FILE TYPE FTP.NON PRINT TEXT FORMAT FTP.STREAM TRANSFER MODE and FTP.FILE STRUCTURE . The only file types directly supported are FTP.ASCII FILE TYPE and FTP.BINARY FILE TYPE . you want to do setFileType FTP.BINARY FILE TYPE before you send the file . Comment : should i use binary when sending content via new ByteArrayInputStream a string .getBytes Comment : Im not 100 sure . Its probably safer that way . Should be quick enough to test . Comment : How did you fix it i have the same problem . Comment : In the latest version as of this comment commons-net-3.2 http : apache.parentingamerica.com commons net binaries commons-net-3.2-bin.zip you do the following : ftp.setFileType FTPClient.BINARY FILE TYPE", "Question : I have setup an FTPS server on my aws ec2 instance . I am using Apache Commons net to connect programmatically to my server . I cannot retrieve files if I don t set execProt P . From their documentation https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPSClient.html execPROT java.lang.String I see that P stands for Private Data Channel Protection Level . What does this mean Why am I using P instead of S or E .. . Answer : The PROT command in ftps can have the values P and C . P stands for private and means that the data connection is encrypted with TLS . C stands for clear and means that the data connection is not encrypted . The values of E confidential and S safe are defined too but in practice not implemented in FTP servers . For more details see the specification i.e . RFC 4217 https : tools.ietf.org html rfc4217 page-17 .", "Question : I m modifying some code that was previously working with an FTPS library I wrote myself . I ve been asked to start using the Apache Commons Net library FTPClient and FTPSClient mainly and I m running into problems doing a file listing . I ve read other questions and it s not the enterLocalPassiveMode problem Apache Commons Net FTPClient and listFiles http : stackoverflow.com questions 2712967 apache-commons-net-ftpclient-and-listfiles as I m using that after connecting but before logging in . The same code works fine on a test server I set up also using Apache FTP but doesn t work on the server I need it for . I ve also tried using the PBSZ 0 and PROT P commands but they re not implemented on the remote system . Code : .. . .. . I ve tried specifying the directory explicitly and using the default : .. . .. . .. . but both give the same result . This is the output of the debugging info : .. . .. . Then it times out after 30 seconds with this stack-trace : .. . .. . I ve checked my firewall settings and that host is allowed to connect via port 990 and 6200-6300 . I ve also read FTPClient.listFiles not working http : stackoverflow.com questions 15790074 ftpclient-listfiles-not-working and Java application hanging during LIST command to FTP Server Apache Commons FTPClient http : stackoverflow.com questions 29570165 java-application-hanging-during-list-command-to-ftp-server-apache-commons-ftpcl and neither of these have helped with my problem . EDIT : It looks as though FTPClient is not recognizing the data channel . I tried uploading a file instead of doing a listing and it died after the 150 Opening data connection message . I ve confirmed that the ports assigned to the data connection from the PASV command are NOT blocked by our firewall . Any ideas Comment : Can you connect with a standalone FTP client from the same machine to the same server using a passive-mode Comment : I m currently trying to see if I can use cURL to connect but the local machine is an AIX server I have limited control over . .. . Answer : I fixed it . Turns out I was doing a directory listing with an invalid path . Instead of returning an error message Apache FTP closed the connection . Not sure why . Anyway it s working now .", "Question : I am using apache-commons-net 3.4 and i found a strange issue i cant explain . I want to get the FTPFile entries of an directory but when i use FTPClient listFiles an empty array is returned but FTPClient listNames list all entries . What is going on here how to use listFiles correct Related questions that didn t answer my question : .. . .. . Apache Commons Net FTPClient and listFiles http : stackoverflow.com questions 2712967 apache-commons-net-ftpclient-and-listfiles .. . Issue with org.apache.commons.net.ftp.FTPClient listFiles http : stackoverflow.com questions 2576647 issue-with-org-apache-commons-net-ftp-ftpclient-listfiles .. . Answer : This topic could help you make listFiles work : .. . .. . FTPClient.listFiles not working http : stackoverflow.com questions 15790074 ftpclient-listfiles-not-working .. . .. . From the documentation of FtpClient the two methods don t work in the same way : .. . .. . listFiles String pathname Using the default system autodetect mechanism obtain a list of file information for the current working directory or for just a single file.This information is obtained through the LIST command . .. . listNames String pathname Obtain a list of filenames in a directory or just the name of a given file which is not particularly useful .This information is obtained through the NLST command .", "Question : With my Java-Program I m connecting to a FTP server with Apache Commons Net . The FTP server works as the update server for my software and currently everytime I check for updates the updater downloads a .txt and checks if the version number written in the file is greater than the version number currently installed on the machine . Is there a way to get the version number of the update for the software on the machine from the welcome-message of the FTP server Then I don t have to download the .txt to check for updates instead I m able to only connect to the server and check the welcome-message for the number Comment : @MartinPrikryl of course it is about programming i want to know if there s a way to retrieve the welcomemessage from the server in my Javaprogramm Comment : @MartinPrikryl sorry asked wrong Will edit my post . .. . Answer : The welcome message is effectively a response to a connection . So after you connect using the FTPClient.connect use the FTPClient.getReplyStrings https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTP.html getReplyString 28 29 to retrieve the welcome message . Comment : Thank you it works perfectly And I m sorry about the confusion", "Question : I m using org.apache.commons.net.ftp library to work with FTP servers . I use about 5 FTP servers and one of them doesn t work properly for me . For uploading files I also use method ftpClient.setFileType FTP.BINARY FILE TYPE but on this server the size of the uploaded file is not the same as on my local HDD . It is usually MP3 files and when I try to play uploaded MP3 there is some buzz . I suspects that FTP server has wrong configuration but the company which takes care of this server would be very unlikely to do some changes . One more very important note : when I use Total Commander or WinSCP to upload file the uploaded file is correct with same size . Here is my code : .. . .. . Do someone know the solution how to change this code or set this FTP server to have the same size uploaded file Thanks in advance for any help . .. . Answer : You call the FTPClient.setFileType method https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html setFileType 28int 29 too early . At least the ProFTPD FTP server http : www.proftpd.org resets the default transfer mode after the authentication FTPClient.login https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html login 28java.lang.String 20java.lang.String 29 . Move the .setFileType call after the .login . Comment : It works Thanks", "Question : I have written this below code to connect to a remote FTP Server vsftp in CentOS 6 . For brevity Exception handling is not shown here .. . .. . If there are 100 files in that FTP server this listFiles gives the list of file names according to the Alphabetical order . Is there any way to get the files according to the modified time i.e . oldest files first . This listFiles uses LIST command . Is there any other command available to list the files according to the modification time . Since this is a Linux server can we send some Linux commands to achieve this .. . .. . I have already checked question get latest file from ftp http : stackoverflow.com q 3824983 850848 . The problem with this approach is that we have to order the files using a Comparator then rename and move it a different folder To get them in the modification order . If there are more than 1000 files sorting them would become a time consuming operation Edit : .. . And more over retrieving the files and sorting them has another problem . It doesn t have seconds information when ftpFile.getTimestamp is used . It is accurate only to minutes . Comment : Have a look at this answer how-to-sort-sftp-files-order-by-last-updated-time-using-java http : stackoverflow.com questions 35335826 how-to-sort-sftp-files-order-by-last-updated-time-using-java 35338654 . Comment : @SubOptimal That s the same similar code the OP has already but for a different library edtFTPj not Apache Commons . Comment : @MartinPrikryl I m looking for a solution by which i could retrieve the list in last modified order rather than fetching the list and using comparator to sort it . Comment : @MartinPrikryl I know that it s for a different library but contrary to the code of the OP it has a sorting implement . Can t see that in the OPs code . Comment : The code is in the question the OP is referring to : stackoverflow.com q 3824983 850848 http : stackoverflow.com q 3824983 850848 .. . Answer : There s no standard way to have the FTP server sort the files according to your or any criteria . Though some FTP servers notably the ProFTPD and vsftpd support proprietary flags with the LIST command to sort the entries . Both these servers support the -t flag to sort the files by a modification time : .. . .. . Though this is not only non-standard it actually violates the FTP protocol . For all options supported by ProFTPD see its man page : .. . http : www.proftpd.org docs directives linked config ref ListOptions.html .. . .. . Note that vsftpd supports only -a -r -t -F and -l with the same meaning as ProFTPD . .. . .. . The Apache Commons Net FTPClient sends the -a flag when FTPClient.setListHiddenFiles is set the -a flag is supported or at least safely ignored by most -but not all- FTP servers . It does not offer any API to add another flags . You would have to override the FTPClient.getListArguments https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html getListArguments 28java.lang.String 29 to inject your own flags . .. . .. . Though again I do not see what s wrong with using a Comparator to sort the files . Just make sure you use FTPClient.mlistDir https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html mlistDir 28 29 which internally uses a modern MLSD command . This way you get precise timestamps not minute- or worse precision timestamps like with obsolete LIST - FTPClient.listFiles . Though as you commented the vsftpd does not support MLSD ProFTPD does . In that case the LIST -t is indeed the only efficient although again not standard portable way to get precisely sorted files . Except for a time-consuming call of MDTM - FTPClient.getModificationTime https : commons.apache.org proper commons-net apidocs org apache-commons-net ftp FTPClient.html getModificationTime 28java.lang.String 29 for each listed file . Comment : Got it by overriding the getListArguments as you said I used the arguments -tr to get the oldest files first . And one more thing vsftp server doesn t support MLSD . Comment : That s true I ve forgot . I ve added this to my answer .", "Question : I am developing a Java application that will be used by people from around the world . One feature requires it to display the current time in Melbourne Australia . I have found this http : stackoverflow.com questions 4442192 how-to-use-an-internet-time-server-to-get-the-time answer and adapted the code as follows but it returns my current time as expected . It uses the Apache Commons Net library http : commons.apache.org proper commons-net : .. . .. . How can I modify this code to return the time in Melbourne rather than my time I am open to other solutions to solve this problem as well . .. . .. . Thank you EDIT : .. . .. . Taking Jon s advice I have used the JodaTime library http : www.joda.org joda-time and built the following code to solve the problem . It can be used for other time zones by changing Australia Melbourne to any timezone found here http : en.wikipedia.org wiki List of tz database time zones . .. . Answer : Check this http : docs.oracle.com javase 6 docs api java util TimeZone.html . You can get a calendar instance and change its timezone .", "Question : I am trying to upload file from android-sdcard to FTP Web server . For this i am using Apache FTPClient library . Here is my code to upload file .. . While try to upload file .. . i am getting exception that says bad file number . . socket exception.. . .. . .. . i stuck here and passed a lot time to solve this but no solution yet i found . Please help with this . thanks . .. . Answer : Try getting the Apache FTPClient 3.0.1 . It seems like there was bug in the 3.0 . https : repository.apache.org content repositories snapshots commons-net commons-net 3.0.1-SNAPSHOT .. . .. . Cheers Comment : yahh .. . i also think so .. . coz after firing this exception it was uploading file to my ftp server that i was not knowing .. .", "Question : I have set up an FTPS server on my aws ec2 instance and configured SSL using vsftpd . I created SSL certificate using - .. . .. . I used Apache Commons net to connect to my FTPS server and retrieve files using - .. . .. . This worked fine and I was able to retrieve files . Since it is not a CA certificate how did Java accept the server s self-signed certificate without throwing an error My vsftpd conf has the following lines - My vsftpd.conf has the following lines- .. . .. . .. . Answer : You re not showing how you ve initialised your FTPSClient but I ll assume you ve used the default values . Looking at the latest implementation of FTPSClient in the trunk of the Subversion repository http : svn.apache.org viewvc commons proper net trunk src main java org apache-commons-net ftp FTPSClient.java view markup pathrev 1697433 it s visibly using a TrustManager implementation coming from TrustManagerUtils.getValidateServerCertificateTrustManager by default . In turn the latest implementation of TrustManagerUtils http : svn.apache.org viewvc commons proper net trunk src main java org apache-commons-net util TrustManagerUtils.java view markup pathrev 1697433 reveals that this provides a TrustManager that only calls checkValidity on this certificate and that s the option with validation turned on not even the ACCEPT ALL implementation . Unfortunately checkValidity only checks that the certificate is valid at the current time with respect to its not before and not after validity dates . It s not a verification of the certificate against any known trust anchor . This is essentially very close to useless since attackers in a position to insert an incorrect certificate should be able to create one with the validity dates they want . However it seems that you can instantiate FTPSClient with an SSLContext so using new FTPSClient SSLContext.getDefault would give you the default more sensible behaviour unless you ve changed the default SSLContext . Of course you can also use a custom SSLContext with the correct behaviour but initialised with a specific truststore too . I haven t checked the rest of the implementation but I would have a look at what it does with hostname verifiers too just in case . It s probably worth reporting this on the Apache Commons Net project . This default behaviour probably sounded like a good idea at the time but it really isn t .", "Question : This is the thing I am trying to connect from java to a FileZilla FTPS Server . I can make the login but when I try to list the files I get an Exception : .. . .. . I have tried every possible solution on line nothing has worked for me this is the code I m using with apache commons-net : .. . .. . I will really appreciate your help guys . Thanks in advance . Comment : can you give me your credentials to filezilla Comment : Looks like networkimg problem - wrong port-number or proxy in between would be the usual suspects . Comment : That might be possible but I can list download and upload files to the same FTPS server using any ftp-client software so I guess It is not a networking problem : ...maybe It is something related to the certificates Comment : @Jhon Charles A problem about certificates Could be . Have you installed the remote-server s certificate in your current JRE Comment : Hum.. . I don t think the problem is in authentication because you are authenticating with user pass not with a certificate.. . I suppose you can t use active mode instead of passive-mode can you .. . Answer : I found the solution . It was something related with the Session reuse Apache Commons Net has some kind of bug It does not allow you to reuse the session I had to implement the cyberduck library cyberduck source code https : g.iterate.ch projects ITERATE repos cyberduck browse source ch cyberduck core . I hope this helps someone in the future thanks for your help . Comment : I forgot Something the class we need is FTPClient", "Question : null .. . Answer : I m retrieving files from an FTP server using Apache commons net . While retrieving I want to fetch the files which are having a certain prefix . Here is the sample implementation . Here I have used FTPFileFilter class . If there are 1000 files in the folder and there are only less than 5 files with that prefix Is this implementation would be fast enough Here I m looking for the best way to do with respect to the performance .. . .. . I could see there are two other classes FTPListParseEngine and FTPFileEntryParser . Are these related to this scenario", "Question : I want to download file from FTP server for that I have two ways 1 using FTPClient in java using commons-net-3.0.1.jar 2 linux Binary ftpget of busybox .. . .. . Now I want to know that which utilities I should use in my application I mean which parameter I should have to consider while selection right method for download file from ftp .. . Answer : That depends on your requirements so there can t be a generic answer here . If you are using a Java library you have more control over the whole process you can call methods using known-types stuff like that . If you are calling some binary from your host operating-system that means that you have a dependency towards an element which is much harder to control than a 3rd party Java library . In both situations you have different sets of dependencies that your application has to check for in the end and it might be easier to ship a java application with its version of some apache-commons library versus making sure that you got a specific FTP binary on customer systems .", "Question : I am trying to FTP a file on to a remote machine . Below is my code : - .. . .. . When i execute this piece of code the code is executed without any issues but at the remote machine when i check the file the file is being created but with no content OKB file . Am i missing something in code . Update : I tried with the following code for storing file : - .. . .. . Now the reply code i recieved is : - 451 Failure writing to local file . What does that means . Thanks Comment : +1 to compensate the downvote . whoever downvoted : care to explain that Comment : This is a continuation of stackoverflow.com questions 6717684 http : stackoverflow.com questions 6717684 getting-an-error-while-ftp-file-using-ftpclient it seems . Comment : Also it looks quite like stackoverflow.com questions 6707682 http : stackoverflow.com questions 6707682 ftp-a-file-to-server-but-it-ftp-with-zero-byte-size . Comment : Which version of Apache Commons are you using Comment : @paulo : i think i am using 1.2.2 .. . Answer : Looking at older questions here http : stackoverflow.com q 6193485 600500 with similar problems it looks like you hit a bug of the Commons-NET library https : issues.apache.org jira browse NET-409 of which the FTPClient is a part . Try to install a newer version 3.0.1 or later or an earlier version 2.2 to fix this .", "Question : null .. . Answer : I am trying to develop a java application that reads raw data from a telnet client . I use TelnetClient from Apache Commons Net https : commons.apache.org proper commons-net to communicate and read-write to the device . My device a thermohygrometer sends raw bytes that need to be parsed to get the actual measurements . I am able to communicate with the device but the problem is that while reading binary-data it ignores some bytes . Specifically it ignores 0xff and 1 byte before it . I tested with the telnet client from terminal but I have the same behavior as from within the app . The first image show the wireshark capture while the second the raw input from telnet . Right after multiple 0x00 is the problem Wireshark Capture http : i.stack.imgur.com wdOAm.png .. . .. . Telnet Capture http : i.stack.imgur.com 00zEK.png .. . .. . I understand like 0xff is an escape character or a special command . Is there anyway I can change it so It will treat it as binary-data instead of trying to interpret it Comment : So just to clarify it doesn t sound like the device is actually using the telnet protocol.. . why not just make a raw socket connection with it Comment : I was reading the device manual saying that it uses a telnet like communication protocol and I thought it was telnet . I tried with a Socket and it worked fine . Thank you", "Question : I am tring to upload a file to a database server using FTPClient . It shows the file is transfered succesfully but the file is empty size 0 bytes . Below is the source code that I have used to build . Can anyone resolve this issue Comment : A similar problem is posted here : stackoverflow.com questions 6718338 http : stackoverflow.com questions 6718338 0-kb-file-created-once-ftp-is-done-in-java .. . Answer : Looking at some other FTPClient-questions I think the reason is a bug in the Apache Commons-NET library https : issues.apache.org jira browse NET-409 of which the FTPClient is a component in version 3.0 . Install a newer version 3.0.1 fixes the bug . Comment : I m using 3.0.9 but the same thing happens and only in motorola defy .", "Question : null .. . Answer : I am using apache commons.net 3.5 and am trying to make a passive FTPES connection from behind a masquerading NAT box . BIG-IP F5 . The external FTP server doesn t support EPSV https : blogs.msdn.microsoft.com spike 2013 07 04 a-network-analysis-of-passive-epsv-or-pasv-ftp-connection . The problem I have is that I can t setup a data-channel because the control channel returns Entering passive-mode 213 43 13 53 27 149 . Without EPSV I have no option in the commons.net FTPClient to ignore the returning ip-address and force it to use the same ip-address as the control channel . Graphical example of the connection problem http : i.stack.imgur.com 7xWwU.jpg .. . .. . The the method openDataConnection String String method in the FTPClient uses the variable passiveHost which is set by the method parsePassiveModeReply . I would like to override this or maybe force it to keep the original ip-address from the control-channel . Code from Apache Commons Net added for reference . .. . .. . openDataConnection in org.apache.commons.net.ftp.FTPClient : .. . .. . parsePassiveModeReply in org.apache.commons.net.ftp.FTPClient : .. . .. . Thank you in advance for trying to help me . The only solution I currently see is copying the Apache Commons FTP code and implementing my own changes to make it work with a masquerading NAT box . Comment : As I can not add any more links : Other people have also an issue with this : issues.apache.org jira browse NET-588 https : issues.apache.org jira browse NET-588" ] }
[ "yes-answer-long", "yes-answer-short" ]
client-side
UNK_RELATION
worklight-analytics@analytics@65
worklight-analytics -- ibm worklight includes the ibm websphere @placeholder platform iwap which is the engine that drives the ibm worklight scalable operational analytics feature .
{ "confidence": [ 98.47148895263672, 84.81250762939453, 76.54498291015625, 75.78916931152344, 74.72925567626953, 71.42411804199219, 69.5353012084961, 67.67434692382812, 67.33611297607422, 67.1015396118164, 67.1015396118164, 67.1015396118164, 63.704490661621094, 63.620361328125, 62.90933609008789, 61.99526596069336, 61.99526596069336, 61.60397720336914, 61.338897705078125, 60.46200942993164, 60.0595588684082, 58.54288101196289, 58.274925231933594, 55.91318893432617, 55.69553756713867, 55.48298263549805, 53.6441650390625, 53.5472526550293, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.20173263549805, 53.104461669921875, 53.063655853271484, 52.543636322021484, 51.12929916381836, 51.12929916381836, 51.03013610839844, 51.03013610839844, 49.804683685302734, 48.340423583984375, 48.31938552856445, 48.31938552856445, 48.31938552856445, 48.31938552856445, 48.31938552856445, 48.31938552856445, 48.316646575927734, 48.2779655456543, 47.63231658935547, 46.58341979980469, 45.356014251708984, 44.94337463378906, 44.92233657836914, 44.56273651123047, 44.56273651123047, 44.56273651123047, 44.56273651123047, 44.56273651123047, 44.07865524291992, 43.6533317565918, 43.184051513671875, 42.56447219848633, 41.097434997558594, 41.05097198486328, 39.47420883178711, 39.47420883178711, 39.47420883178711, 39.47420883178711, 39.47420883178711, 39.47420883178711, 39.45392608642578, 39.38427734375, 38.73389434814453, 38.0516471862793, 37.73839569091797, 37.72716522216797, 37.414974212646484, 37.112754821777344, 36.81777572631836, 36.35992431640625, 36.35992431640625, 36.35992431640625, 36.0771598815918, 36.0771598815918, 36.0771598815918, 36.0771598815918, 35.64309310913086, 35.63883972167969, 35.32465362548828, 34.93687057495117, 34.93687057495117, 34.84767532348633, 34.84767532348633 ], "content": [ "The Operational Analytics feature introduced in Worklight 6.0 is only available for paid versions of IBM Worklight 6.0 .", "Can we implement IWAP reports with developer edition of IBM Worklight 6.0", "There s a file analytics.zip in the resulting IBM Installation Manager output folder that contains everything you need to setup the IBM Websphere Analytics Platform IWAP .", "The Worklight V6 Information Center under Installing and configuring the IBM Websphere Analytics PLatform Configuring Worklight Server for analytics says to use the format http : iwap v1 events bulk but the description column in the Environment entries for web modules settings says to use http : iwap v1 events app activities .", "About Worklight 6.2 Analytics .", "It must go through the worklight server and then the worklight server will forward it to the analytics server .", "After redeploying a worklight application some configuration for analytics got lost and I m trying to configure worklight with analytics again .", "See answer to this SO question : Worklight analytics payload http : stackoverflow.com questions 26484559 worklight-analytics-payload .. . .. . The documentation describes passing a metadata object but in Worklight 6.2 this object does not result in searchable text on the Analytics console .", "Worklight v6 iwap http : stackoverflow.com questions 17278110 worklight-v6-iwap 19792958 19792958", "ElasticSearch is working under the covers in Worklight Analytics .", "I m trying to use Worklight Analytics features for App .", "I have separated servers for analytics and worklight-console .", "In Worklight v6 the Analytics console will not function in the developer edition .", "Original : .. . .. . In Worklight 6.1 Worklight uses Tealeaf under the covers to collect and send analytics data .", "When using the WebSphere Analytics Platform can multiple Worklight 6.0 application WAR installations i.e .", "I found my worklight app console has analytics tab and there is IWAP console .", "Please keep in mind that in the Worklight Console there is an Analytics tab and you can only view one IWAP server at a time .", "I set up Worklight V6 Server and IWAP .", "I ve added an analytics server Linux accessible from the http : iwap worklight v1 index.html to use with my Worklight 6 server but the Analytics tab is now displaying but is empty .", "Yes you can have more than one WAR pointing to the same IWAP IBM WebSphere Analytics Platform instance you also can point to different IWAP instances if you want to .", "IBM has provided various guidelines : ibm.com developerworks mobile worklight best-practices.html http : www.ibm.com developerworks mobile worklight best-practices.html and Worklight scalability tests Hardware Calculator ibm.com developerworks mobile worklight getting-started.html http : www.ibm.com developerworks mobile worklight getting-started.html", "Worklight 6.2.0 Native Worklight App on Samsung Galaxy S4 Android 4.4.2 .. . .. . Analytics Dasboard shows the app version and adapter activity .", "Hmm then you must be using a version of Worklight that doesn t have Analytics as an optional feature .", "Basically when the Worklight server receives logs from the client it will send them to Operational Analytics AND it will send them to WLClientLogReceiver s log procedure .", "In your question you re linking to docs for Worklight 5.0.6 and Worklight 6.2 - two VERY different versions of Worklight .", "Environment details : Worklight : 6.2 .. . .. . Application server : Liberty 8.5.5.0 .. . .. . OS : Windows Server 2008 r2 .. . .. . I am trying to achieve the cluster topology of Operational Analytics in Worklight 6.2 .", "Once you have IWAP installed you will need to modify a couple of properties inside worklight.properties which among other things tell the Worklight Server where to send the analytics data .", "The URL directly to the analytics server works fine but the resulting Analytics tab in Worklight console is empty .", "WL 6.0.0.1 .. . .. . I was testing analytics and I configured everything in the worklight studio liberty profile .", "I am having major issues getting Worklight Analytics custom-events working WL v6.1 .", "Even when the data is correctly forwarded to the Worklight server the analytics endpoint is completely hidden from the client .", "Further if running in an environment where the Analytics WAR is on a separate machine from the Worklight Server WAR there are additional latencies .", "Another question do you have the Analytics WAR file from the latest ifix fixpack of Worklight", "You must use the Elastic Search delete APIs to remove existing documents from Worklight Analytics .", "When working with development server you can review all logs in the Analytics Console accessible from the Worklight Console .", "Hi Idan so I got the worklight-analytics console to work by deleting the 2 files as suggested in the APAR .", "When you set wl.analytics.url is myserver in your above example the Worklight Server or the Analytics server", "When you say checked the SystemOut.log and SystemErr.log in the server do you mean the Worklight Server or the Analytics server", "The security put in-place only protects the data-entry point which is the endpoint at which the worklight server sends data to the analytics platform .", "If all of the queues fill up before they post to the Analytics Platform the Worklight Server drops data that is received from the client until a queue empties .", "Worklight 6.2.0 Mobile Web Environment .. . .. . The Worklight Info Center offers three formulations for logging an analytic message .. . .. . I am successfully using the first of these but the other two produce no analytics and my fail function is not fired .", "It will definitely be fixed in the next version of Worklight .", "Worklight queues the data before sending it .", "The correct syntax is : .. . .. . http : iwap.server.path iwap v1 events bulk .. . .. . If the analytics tab is blank its possible that your IWAP server is not currently running or is unreachable from your worklight server .", "You can visit the analytics console using the URL : .. . .. . http : iwap.server.path iwap worklight v1 index.html .. . .. . If you are unable to visit that link then the issue is with your IWAP server .", "So you ll need to provide the same LDAP credentials for the worklight server to get data to the analytics console .", "Hence I d like the Worklight folks to comment .", "I have changed my iPad to English The same as workligh server and analytics server and after rebuilding redeploy in the stand alone worklight and reinstall in the device it worked .", "Ok now I understand that when in the Worklight Analytics documentation talk about cluster it is not talking about WAS Cluster but about Elasticsearch cluster .", "All calls other than .. . .. . WL.Analytics.log my record .. . .. . were intended for Analytics features that were not implemented or did not make it into the Worklight 6.2 release .", "If the following call : .. . .. . WL.Analytics.log activity : myActivity .. . .. . does not result in activities being searchable in the Activites page of the Analytics console then this is a defect for Worklight 6.2 .", "WL v6.2 .. . .. . To my understanding we can create a Log Profile in Worklight console and collected client logs can be viewed there where WL analytics is not used .", "This may sound like a silly question .. . but you state that you are using a Worklight 6.2 server Are you sure you re using 6.2 Analytics", "That is the tool the IBM provides for this purpose .", "The operational analytics dashboard is accessible and is showing correct basic analytics data .", "The IP address you enter is the IP address of the analytics server you installed independently of the Worklight server .", "However you can get it to work within the Worklight 6.0 Studio Liberty server by setting wl.analytics.debug true flag in the worklight properties to try it out .", "is Analytics Platform the right tool", "I am re-implementing an existing worklight system .", "Maybe this older question can help you : stackoverflow.com questions 18467061 http : stackoverflow.com questions 18467061 analytics-tab-empty-in-worklight-console", "If you remove this configuration it should default to the correct location that points to the worklight server .", "We want to be able to collect and centralise client logs in worklight-console .", "Do you have the exact version of Worklight you re using", "I recommend setting the following worklight property : wl.analytics.queue.size 1 .", "The wl.analytics.queues parameter determines the maximum number of queues that the Worklight Server holds in memory .", "You will have to engage with Tealeaf professional services at IBM .", "Analytics in 6.2 was packaged as a single WAR file not an EAR file and was not called IMF Operational Analytics .", "It sounds like you are using Operational Analytics from perhaps MobileFirst Platform Foundation 7.0 or 7.1 .", "Not necessarily Worklight Studio is a component in both the paid editions Enterprise Edition and Consumer Edition and the free edition Developer Edition https : www.ibm.com developerworks mobile worklight - available for evaluation purposes .", "The IP address is used http : iwap v1 events bulk is for the analytics server .", "If you entered .. . .. . http : iwap v1 events bulk this the correct URL .. . .. . The URL you can visit is .. . .. . http : iwap worklight v1 index.html .. . .. . You said you can visit it directly .", "If you want to have results right away also consider adding this as jndi properties in worklight server config in case of Liberty :", "I can confirm that all of the above issues are fixed for the next release of Worklight whether its through code fixes or documentation .", "If you need some of these fixes backported to a previous release of Worklight please open a PMR so that we can begin that process .", "The WL.Analytics APIs mimicked the WL.Logger APIs for the same purpose : parsing the JSON on a worklight adapter .", "You can delete any type of document using the path http : localhost : 9500 worklight document type .", "So start by identifying your Worklight version and then focus ONLY on its documentation and clarify your question accordingly .", "It worked I ve added the URL Pattern you ve mentioned to my web.xml and copied the resources for the login from the worklight-console and now I have my analytics console behind a layer of authentication with LDAP .", "Installing and Configuring the analytics platform http : pic.dhe.ibm.com infocenter wrklight v6r0m0 topic com.ibm.worklight.help.doc install config t install websphere analytics platform.html .. . .. . The analytics tab in the Worklight console simply shows an iframe using a slightly modified URL from the one you entered in the configuration .", "However there is a tmp migration- and some numbers that also have the worklight properties which seems to have some information in it .", "Also check to make sure you have enabled analytics as an optional feature .", "The Operational analytics server came as a convenience to intercept and display some of these logs but not all of them are being captured as you have learned .", "Is the analytics tab empty or are you seeing empty charts in the analytics tab", "I have tried the configuring of analytics in 3 way : .. . .. . 1 . in worklight.properties : .. . .. . wl.analytics.logs.forward true .. . wl.analytics.url http : host : port analytics data .. . .. . .. . 2 . in initOptions.js : .. . .. . .. . analytics : enable : true url : http : host : port analytics data .. . .. . .. . .. . 3 . in server s config : .. . .. . jndi name context wl.analytics.url value http : host : port analytics data .. . jndi name context wl.analytics.logs.forward value true .. . .. . .. . Operational Analytics page has not data .", "In future releases we may make use of the extra JSON object passed into the API in the Operational analytics console but for right now they only serve their original purpose of sending the analytics to a custom-adapter .", "empty charts in the analytics tab .", "Better yet can you try running this as Preview common resources from your Worklight console and see if it sends the messages from there", "The answer is that there a further initialisation requirement that seems to be necessary when working with a pure Native application these are typically build using the Worklight CLI tooling .", "I am using worklight 6.1 and I m trying to send logs that are created in my client to the server in order to be able to view the logs in case the application crashes .", "EDIT .. . .. . If you are running Worklight 6.0 in development mode you will need the following flag in worklight.properties :", "With worklight 6.2 the client devices send logs to the server automatically with a adapter invocation or a connect call this is configurable however it s on by default .", "- this property : .. . .. . This property will guide the application to know to where send the info and also the worklight-console to where to send the information to be stored .", "Then you can use the configuration tool from worklight to help you deploy it into production server .", "Make sure that the server is started using the command service analytics start on the IWAP machine .", "How are configured the analytics JNDI properties on WAS", "For production setup take a look on this page : http : www-01.ibm.com support knowledgecenter SSZH4A 6.2.0 com.ibm.worklight.monitor.doc monitor t setting up production cluster.html .. . .. . The analytics tool requires that the application will opt-in on its use this can be done by the worklight.properties or via JNDI definition on the server with the application runtime usually known as worklight application http : www-01.ibm.com support knowledgecenter SSZH4A 6.0.0 com.ibm.worklight.help.doc admin t using JNDI lookup to override WL properties.html .. . .. . Here the property to be set could be this for example : .. . .. . - code above just as a illustration of an App that has the context root as worklight therefor its jndi properties start as worklight .", "Everything seems to be correct as I saw the analytics traces in the device console and also the analytics tab but there was no data at all in the widgets .", "If this helps I added this to my worklight.proerties file -- wl.analytics.url myserverurl analytics data http : myserverurl analytics data", "Regarding features found only in paid versions beside Application Center and Operational Analytics ability to use other DBMS MySQL DB2 etc .", "In other words this is how you can configure where your log data will be sent if you are not using IBM s Operational Analytics offering ." ] }
{ "confidence": [ 155.52809143066406, 126.16493225097656, 124.10465240478516, 120.61550903320312, 98.00907897949219, 95.74531555175781, 92.67500305175781, 89.8785400390625, 88.91140747070312, 87.84178924560547, 87.5848388671875, 84.92593383789062, 83.12933349609375, 79.60186767578125, 78.4547119140625, 74.40878295898438, 73.80968475341797, 73.62872314453125, 72.2793960571289, 71.9713134765625 ], "content": [ "Question : Can we implement IWAP reports with developer edition of IBM Worklight 6.0 If yes please guide me with technical document or any link . Is this feature only available with Enterprise or Consumer version If yes then how can we implement test this on development-environment . And can anyone please provide me with list of features which are not available with developer version one which comes into my mind is Application Center . .. . Answer : The Operational Analytics feature introduced in Worklight 6.0 is only available for paid versions of IBM Worklight 6.0 . There s a file analytics.zip in the resulting IBM Installation Manager output folder that contains everything you need to setup the IBM Websphere Analytics Platform IWAP . Once you have IWAP installed you will need to modify a couple of properties inside worklight.properties which among other things tell the Worklight Server where to send the analytics data . Regarding features found only in paid versions beside Application Center and Operational Analytics ability to use other DBMS MySQL DB2 etc . and Application Servers WAS Tomcat etc . . There are also Ant scripts that aim to help with common tasks like deployments . More .. . .. . InfoCenter http : pic.dhe.ibm.com infocenter wrklight v6r0m0 topic com.ibm.worklight.getstart.doc what s new c wn operational analytics.html .. . Getting Started Module http : public.dhe.ibm.com software mobile-solutions worklight docs v600 10 03 Operational Analytics.pdf", "Question : When using the WebSphere Analytics Platform can multiple Worklight 6.0 application WAR installations i.e . consoles point to a single instance of the Analytics piece Or do you have to install a separate Analytics instance for each WAR .. . Answer : Yes you can have more than one WAR pointing to the same IWAP IBM WebSphere Analytics Platform instance you also can point to different IWAP instances if you want to . When you search in IWAP it will display from which application the information in the search came from . Comment : Please keep in mind that in the Worklight Console there is an Analytics tab and you can only view one IWAP server at a time . The server you are viewing is specified on the JNDI properties of the server namely wl.analytics.url . Comment : To see how to set change the JNDI properties for the Worklight server see the documentation : pic.dhe.ibm.com infocenter wrklight v6r0m0 http : pic.dhe.ibm.com infocenter wrklight v6r0m0 index.jsp topic 2Fcom.ibm.worklight.help.doc 2Fadmin 2Ft using JNDI lookup to override WL properties.html resultof 3D 2522 256a 256e 2564 2569 2522 2520", "Question : I ve added an analytics server Linux accessible from the http : iwap worklight v1 index.html to use with my Worklight 6 server but the Analytics tab is now displaying but is empty . The changed the wl.analytics.url under the war configuration for Environment entries for web modules and restarted the app . The Worklight V6 Information Center under Installing and configuring the IBM Websphere Analytics PLatform Configuring Worklight Server for analytics says to use the format http : iwap v1 events bulk but the description column in the Environment entries for web modules settings says to use http : iwap v1 events app activities . I ve tried both both with same result empty screen under the Analytics tab . Not sure where to go at this point any one set this up successfully Comment : The above contain my internal servers ip-address Comment : Environment entries for web modules settings says to use http : iwap v1 events app activities - This is an error that will be fixed . .. . Answer : The IP address you enter is the IP address of the analytics server you installed independently of the Worklight server . Have you done this Installing and Configuring the analytics platform http : pic.dhe.ibm.com infocenter wrklight v6r0m0 topic com.ibm.worklight.help.doc install config t install websphere analytics platform.html .. . .. . The analytics tab in the Worklight console simply shows an iframe using a slightly modified URL from the one you entered in the configuration . If you entered .. . .. . http : iwap v1 events bulk this the correct URL .. . .. . The URL you can visit is .. . .. . http : iwap worklight v1 index.html .. . .. . You said you can visit it directly . Can you view the network tab or console in Firebug or Chrome developer tools to see if the URL it is attempting to visit from the Worklight console is correct Comment : The URL directly to the analytics server works fine but the resulting Analytics tab in Worklight console is empty . The IP address is used http : iwap v1 events bulk is for the analytics server .", "Question : I ve added an analytics server Linux accessible from the http : iwap worklight v1 index.html to use with my Worklight 6 server but the Analytics tab is now displaying but is empty . The changed the wl.analytics.url under the war configuration for Environment entries for web modules and restarted the app . The Worklight V6 Information Center under Installing and configuring the IBM Websphere Analytics PLatform Configuring Worklight Server for analytics says to use the format http : iwap v1 events bulk but the description column in the Environment entries for web modules settings says to use http : iwap v1 events app activities . I ve tried both both with same result empty screen under the Analytics tab . Not sure where to go at this point any one set this up successfully Comment : The above contain my internal servers ip-address Comment : Environment entries for web modules settings says to use http : iwap v1 events app activities - This is an error that will be fixed . .. . Answer : The correct syntax is : .. . .. . http : iwap.server.path iwap v1 events bulk .. . .. . If the analytics tab is blank its possible that your IWAP server is not currently running or is unreachable from your worklight server . In truth the analytics tab just acts as an iFrame . You can visit the analytics console using the URL : .. . .. . http : iwap.server.path iwap worklight v1 index.html .. . .. . If you are unable to visit that link then the issue is with your IWAP server . Make sure that the server is started using the command service analytics start on the IWAP machine . Comment : Found the issue as the ip used for the analytics server is internal it was assumed this was analytics server doesn t have to be externally faced there is no doc in this requirement . Some additional information that this is a simple iFrame would be helpful.. . Thanks for letting me know about this .", "Question : WL 6.0.0.1 .. . .. . I was testing analytics and I configured everything in the worklight studio liberty profile . Everything seems to be correct as I saw the analytics traces in the device console and also the analytics tab but there was no data at all in the widgets . I configured a new Liberty profile using the WL Server Enterprise Edition binaries and in this other profile I could see all the information in the analytics widgets . Does analytics works in the studio liberty profile server or I was doing something wrong Thank you . Comment : Is the analytics tab empty or are you seeing empty charts in the analytics tab Comment : empty charts in the analytics tab . .. . Answer : I have seen just this post but I m not sure if saying that I m using the studio is the same that say I m using developer edition . Worklight v6 iwap http : stackoverflow.com questions 17278110 worklight-v6-iwap 19792958 19792958", "Question : We want to be able to collect and centralise client logs in worklight-console . WL v6.2 .. . .. . To my understanding we can create a Log Profile in Worklight console and collected client logs can be viewed there where WL analytics is not used . As in Guideline 05 12 Remote controlled client-side log collection.pdf we can write a WLClientLogReceiver . But it didn t provide any detail on what to do . .. . Answer : When working with development server you can review all logs in the Analytics Console accessible from the Worklight Console . When working with a production server you need to implement a WLClientLogeceiver . By WLClientLogReceiver it is meant to implement an adapter by that name . The tutorial is meant to provide the basic premise and information on using client logging . WLClientLogReceiver is fruther explained in detail and with implementation examples in the user documentation topic Server preparation for uploaded log data http : www-01.ibm.com support knowledgecenter SSZH4A 6.2.0 com.ibm.worklight.dev.doc devref c uploaded client log data.html . If you read all of the documentation linked above by Idan I believe all of your questions will be answered . Basically when the Worklight server receives logs from the client it will send them to Operational Analytics AND it will send them to WLClientLogReceiver s log procedure . The implementation of this log procedure will determine the destination of the uploaded log content . In other words this is how you can configure where your log data will be sent if you are not using IBM s Operational Analytics offering . Comment : So in other words i can add extra handling logging . But ultimately . Analytics Console has to be used for logging purpose And also do you mean i can t use built-in .WAR for production Thank you Comment : 1 Analytics will provide you all sort of data extrapolated for incoming data . 2 In production the recommendation is to use a separate server for analytics unless you re running a super-computer there with endless resources . Please review the Analytics user documentation for more information on both topics . Comment : Thank you so much . If what i want is to gather client custom logs debug messages for production environment . is Analytics Platform the right tool Comment : That is the tool the IBM provides for this purpose . If you have another tool you can try to integrate with it instead . Comment : I am still not so clear . So if i want to use analytics i should install that WAR and config server setting . The main purpose of overriding WLClientLogReceiver is for third-party integration . is it correct thanks @Idan Adar", "Question : I am having major issues getting Worklight Analytics custom-events working WL v6.1 . For my environment I m on the latest 6.1.0.1 0718 . We have installed Analytics on an AWS instance for development and I m pointing to it via worklight.properties . The operational analytics dashboard is accessible and is showing correct basic analytics data . I have problems across mobileWeb using this for dev only iPhone and Android environments . mobileWeb : analytics queue size increases forever and never triggers a send . I ran through the code in firebug and it appears to use the deprecated WL.Client.isConnected method which always returns false for mobileWeb . So I hacked this to return true and was able to get mobileWeb working properly : queue is flushed after 10 messages and the result can be viewed in the Analytics console server log . This confirms that the analytics server is configured properly at least . iPhone simulator : attempts to send after 10 messages have been queued . However I get a 400 from IHS on the analytics server . I have tried increasing the log level but was unable to produce anything more : .. . .. . Android emulator : I see a TeaLeaf exception when the analytics send is called after queuing 10 messages : .. . .. . Here s the very basic analytics call essentially a cut paste from the WL 6.1 InfoCenter : .. . .. . I iterate over this 10 times in a for-loop in order to trigger the analytics send . Incidentally I never get the The queue was flushed message but it seems to at least attempt a send on iPhone Android . Any help would be much appreciated . I can provide more info as-needed . .. . Answer : Edit : .. . .. . After I second look I see another issue : .. . .. . TL Library Error : url : http : : 80 iwap v1 events bulk stream errorjava.util.zip.DataFormatException : stream error .. . .. . and .. . .. . - - 11 Aug 2014 : 13 : 12 : 42 -0400 POST iwap v1 events bulk HTTP 1.1 400 335 .. . .. . Are your clients sending data directly to iwap v1 events bulk The client data should never go directly to the analytics server . It must go through the worklight server and then the worklight server will forward it to the analytics server . Have you configured your client code to point to iwap v1 events bulk If you remove this configuration it should default to the correct location that points to the worklight server . Original : .. . .. . In Worklight 6.1 Worklight uses Tealeaf under the covers to collect and send analytics data . When the analytics data is sent to Tealeaf in a loop it fails for some reason . Instead of making the calls in a loop try manually making the call to WL.Analytics.log by using a button . Comment : Thanks for the response @jnortey . I tried individual WL.Analytic.log calls at 5 second increments and saw the same problems after 10 individual calls . Comment : Per your edit : yep those are the issues that I called out above . To answer your question : We have installed Analytics on an AWS instance for development and I m pointing to it via worklight.properties . I do not have the url property set in my WL init options . Comment : I understand I just wanted to reiterate them to be verbose . The client should never know about the iwap v1 events url . Even when the data is correctly forwarded to the Worklight server the analytics endpoint is completely hidden from the client . Is it possible that this was changed in native-code instead of in the init options properties For iOS there is a file called TLFResources.bundle and inside of it there is TLFConfigurableItems.plist . In the plist there is a key called PostMessageUrl . Can you post what the value is for this key Comment : From my iphone native Tealeaf TLFResources.bundle TLFConfigurableItems.plist : key PostMessageUrl key string @USE WORKLIGHT DEFAULT@ string And from android native assets TLFConfigurableItems.properties : Worklight will set PostMessageUrl programmatically : PostMessageUrl @USE WORKLIGHT DEFAULT@ Seems ok Sorry for formatting idk this mini-markdown stuff . Comment : This all looks just fine . Completely baffled as to why you would be seeing anything about the bulk data in your response . Is there I way I can see more of your project information Do you have PMR open", "Question : I set up Worklight V6 Server and IWAP . I found my worklight app console has analytics tab and there is IWAP console . there is dashboad view search view search log view geo analytics view . then I put WL.Logger.error and WL.Analytics.log code in my app and issued these logs but I cannot find any data on my IWAP console . and there is following NumberFormatException in my IWAP logs . can I fix this Comment : Added extra comment about necessary flag if running in the development studio . .. . Answer : Please check that the following : .. . .. . 1 - Are you using the developer edition In Worklight v6 the Analytics console will not function in the developer edition . This may be changed in future releases . I have never seen that exception before but I wonder if it occurs as a result-of trying to run with the developer edition . 2 - In your initOptions.js analytics has been set to true : .. . .. . analytics : enabled : true .. . .. . 3 - In worklight.properties you should set the queue size to 1 so that analytics are immediately seen on the console .. . .. . wl.analytics.queue.size 1 .. . .. . Important Note The queue size should only be set to 1 in testing mode as using 1 will not scale in production mode . If you continue to have issues please post more information such as the calls you are making to WL.Analytics.log and your worklight.properties for the analytics . EDIT .. . .. . If you are running Worklight 6.0 in development mode you will need the following flag in worklight.properties :", "Question : null .. . Answer : After redeploying a worklight application some configuration for analytics got lost and I m trying to configure worklight with analytics again . The dashboard shows No data available for time after the deployment although there are old records displayed for the time before the deployment of the application . So the db was not affected . I set the wl.analytics.logs.forward property to true in worklight.properties also I set the wl.analytics.url of the db to be something like : .. . .. . The dashboard is on .. . .. . That is the URL for the analytics server . Although if I put the db URL in a browser I get something like : .. . .. . Error 404 : java.io.FileNotFoundException : SRVE0190E : File not found : data .. . .. . Checked SystemOut.log and SystemErr.log WAS logs and I did not see errors there . Does anybody know which is the XML I need to check in order to validate the configuration is OK for analytics How could I troubleshoot this problem Are there other logs I could check Comment : When you set wl.analytics.url is myserver in your above example the Worklight Server or the Analytics server Have you looked at the logs from the analytics server When you say checked the SystemOut.log and SystemErr.log in the server do you mean the Worklight Server or the Analytics server Can you edit your question to clarify The info in the question is a little ambiguous right now . Comment : I updated the question to clarify i ll check the logs for the analytics server . Comment : so i figured out one thing i noticed that there are 2 wars inside IMF Operational Analytics.ear one that stands for analytics and another for analytics-service i changed the wl.analytics.url to be analytics-service and i don t get a 404 error i guess that is the correct url to use however i m still seing No data available in the console Comment : This may sound like a silly question .. . but you state that you are using a Worklight 6.2 server Are you sure you re using 6.2 Analytics Analytics in 6.2 was packaged as a single WAR file not an EAR file and was not called IMF Operational Analytics . It sounds like you are using Operational Analytics from perhaps MobileFirst Platform Foundation 7.0 or 7.1 . Comment : See this documentation for information on installing and configuring 6.2 analytics : ibm.com support knowledgecenter SSZH4A 6.2.0 http : www.ibm.com support knowledgecenter SSZH4A 6.2.0 com.ibm.worklight.installconfig.doc monitor c op analytics installation.html", "Question : I m trying to use Worklight Analytics features for App . I have separated servers for analytics and worklight-console . I have tried the configuring of analytics in 3 way : .. . .. . 1 . in worklight.properties : .. . .. . wl.analytics.logs.forward true .. . wl.analytics.url http : host : port analytics data .. . .. . .. . 2 . in initOptions.js : .. . .. . .. . analytics : enable : true url : http : host : port analytics data .. . .. . .. . .. . 3 . in server s config : .. . .. . jndi name context wl.analytics.url value http : host : port analytics data .. . jndi name context wl.analytics.logs.forward value true .. . .. . .. . Operational Analytics page has not data . enter image description here http : i.stack.imgur.com Ar8nO.png .. . Answer : Worklight queues the data before sending it . You may have analytics data waiting to be sent but the queue has not yet filled . Try setting the following property : .. . .. . wl.analytics.queue.size 1 Comment : I have tried to do this but I had no result .", "Question : I m trying to use Worklight Analytics features for App . I have separated servers for analytics and worklight-console . I have tried the configuring of analytics in 3 way : .. . .. . 1 . in worklight.properties : .. . .. . wl.analytics.logs.forward true .. . wl.analytics.url http : host : port analytics data .. . .. . .. . 2 . in initOptions.js : .. . .. . .. . analytics : enable : true url : http : host : port analytics data .. . .. . .. . .. . 3 . in server s config : .. . .. . jndi name context wl.analytics.url value http : host : port analytics data .. . jndi name context wl.analytics.logs.forward value true .. . .. . .. . Operational Analytics page has not data . enter image description here http : i.stack.imgur.com Ar8nO.png .. . Answer : Actually problem is related to queues . If you want to have results right away also consider adding this as jndi properties in worklight server config in case of Liberty : Comment : Yes It s work but on Linux . On Windows I had not results from this changes . It is unreal truth", "Question : WL 6.0.0.1 .. . .. . I was testing analytics and I configured everything in the worklight studio liberty profile . Everything seems to be correct as I saw the analytics traces in the device console and also the analytics tab but there was no data at all in the widgets . I configured a new Liberty profile using the WL Server Enterprise Edition binaries and in this other profile I could see all the information in the analytics widgets . Does analytics works in the studio liberty profile server or I was doing something wrong Thank you . Comment : Is the analytics tab empty or are you seeing empty charts in the analytics tab Comment : empty charts in the analytics tab . .. . Answer : To answer your question : Is studio the same as as saying you re using the developer edition Not necessarily Worklight Studio is a component in both the paid editions Enterprise Edition and Consumer Edition and the free edition Developer Edition https : www.ibm.com developerworks mobile worklight - available for evaluation purposes . Studio includes a built-in Liberty Profile for development . To answer your question : Does analytics work in the studio liberty profile server Analytics was only intended to work with one of the paid editions for test production mode so it was not enabled for running on Liberty within Studio . However you can get it to work within the Worklight 6.0 Studio Liberty server by setting wl.analytics.debug true flag in the worklight properties to try it out .", "Question : With worklight 6.2 the client devices send logs to the server automatically with a adapter invocation or a connect call this is configurable however it s on by default . What I m asking is if there is any performance decrease or opinion from IBM with this operation as it seems a heavy process that scales with the number of devices in our network . .. . Answer : Unfortunately there is no one answer to this question as it depends on your server load . If you only have 100 active users connecting to your server then this probably isn t a big deal . If you have several million connecting then it might be a good idea to disable the auto send features and then use the dynamic logger configuration on the server to enable it when you actually want the logs . You ll have to run tests for your specific server load to really know how this would affect your server Comment : Thanks I expected that but hoped that IBM could provide us some guidelines regarding load . Comment : IBM has provided various guidelines : ibm.com developerworks mobile worklight best-practices.html http : www.ibm.com developerworks mobile worklight best-practices.html and Worklight scalability tests Hardware Calculator ibm.com developerworks mobile worklight getting-started.html http : www.ibm.com developerworks mobile worklight getting-started.html", "Question : WL 6.0.0.1 .. . .. . I m using the WL.Analytics.log API but no entries appear in the analytics console . I send more than 10 logs .. . .. . I have configured in the initOptions.js the property : .. . .. . I have also tried with .. . .. . In the worklight properties : .. . .. . If I use WL.Client.logActivity it works . If I enable wl.analytics.logs.forward I see all the server logs . I also see the analytics sent by default when invoking an adapter or the init event or the notifications events . I have reviewed the analytics troubleshooting guide but I didn t find anything . I really do not know what else to test or how to debug this . Thank you . Comment : Is there a chance that you are sending the logs in a loop There is a defect in which sending several logs at once causes the logs not to be sent . If this is the case try sending them one at a time . Also please list the device you are testing this on Android iOS . Comment : Also check to make sure you have enabled analytics as an optional feature . Comment : Hi . I was doing it in a loop at the begining but I changed it for doing it one by one . I didn t add Analytics as an optional feature in the application.. . how do I add it using the wizard does no allow me to do it I only can add JSON . Thank you . Comment : I m testing in IPad2 and Samsung Galaxy S3 mini . Comment : Hmm then you must be using a version of Worklight that doesn t have Analytics as an optional feature . I do remember something about some analytics libraries not making it into the iPad environment for some reasons . Can you create a separate iPhone environment and run this to see if it works there Better yet can you try running this as Preview common resources from your Worklight console and see if it sends the messages from there .. . Answer : Finally with the help of support we could find the problem . It was the locale on the device . I have changed my iPad to English The same as workligh server and analytics server and after rebuilding redeploy in the stand alone worklight and reinstall in the device it worked .", "Question : Worklight 6.2.0 Native Worklight App on Samsung Galaxy S4 Android 4.4.2 .. . .. . Analytics Dasboard shows the app version and adapter activity . Log Search does not show any application log messages and the dropdown for selecting applications shows All Applications only no sign of my app . Have I missed some initialisation step Any other ideas edited to add .. . .. . It has been suggested that we should use the method : .. . .. . In our 6.2.0.00 CLI environment there is no such Java method . .. . Answer : For now I suggest that you just use the WLAnalytics.log String method . There are some clear inconsistencies that need to be dealt with whether it be through documentation or code fixes . The WL.Logger APIs were originally created to send log data to a custom-adapter which is why they take a dictionary object for extra metadata . The data sent to the custom-adapter could be read as a valid JSON object to run operations on the adapter . The WL.Analytics APIs mimicked the WL.Logger APIs for the same purpose : parsing the JSON on a worklight adapter . The Operational analytics server came as a convenience to intercept and display some of these logs but not all of them are being captured as you have learned . Your questions are all valid though as none of this is described in the documentation . In future releases we may make use of the extra JSON object passed into the API in the Operational analytics console but for right now they only serve their original purpose of sending the analytics to a custom-adapter . Comment : Thanks . I m not trying to nitpick here and I appreciate you taking the time to explain the history . However I don t see a Java API method with a single parameter documented . I guess my Java coding buddy will try tomorrow . Hope we can fix the docs soon .. . Comment : We have tried this . There is no such method in the Java API . Please could you suggest something else Comment : You re not nitpicking at all . All of your concerns have been completely valid . I m am looking into getting some of the issues you have raised fixed and backported . Of course you can open a PMR to get these fixes expedited if necessary . Comment : You re correct there is no such API for the Android Java API my mistake . I have tried to reproduce your project on iOS but was unable to I chose iOS because I already had that environment setup will be trying on Android soon and will report back with results . On iOS I was able to call the equivalent analytics log method and I was able to search for the log . Will add another comment after trying this on Android . Comment : Another question do you have the Analytics WAR file from the latest ifix fixpack of Worklight", "Question : Worklight 6.2.0 Mobile Web Environment .. . .. . The Worklight Info Center offers three formulations for logging an analytic message .. . .. . I am successfully using the first of these but the other two produce no analytics and my fail function is not fired . I see in the online tutorials a further formulation .. . .. . this too produces no output . Question : Are there other formulations that do work Comment : Can try something like WL.Analytics.log JSON.stringify data : 1 2 3 Comment : dhinesh yes assembling a string as you suggest should be sufficient however if the documented approaches can be made to work then it s somewhat nicer and if they cannot then the documentation should be updated . Hence I d like the Worklight folks to comment . .. . Answer : All calls other than .. . .. . WL.Analytics.log my record .. . .. . were intended for Analytics features that were not implemented or did not make it into the Worklight 6.2 release . Clearly this is not reflected in the documentation . I will open a defect to either have the logs searchable or have this limitation reflected in the documentation . If the following call : .. . .. . WL.Analytics.log activity : myActivity .. . .. . does not result in activities being searchable in the Activites page of the Analytics console then this is a defect for Worklight 6.2 . I can confirm that all of the above issues are fixed for the next release of Worklight whether its through code fixes or documentation . If you need some of these fixes backported to a previous release of Worklight please open a PMR so that we can begin that process . Comment : Thanks I will double check the activity case we probably will need this to work .", "Question : I m trying to use Worklight Analytics features for App . I have separated servers for analytics and worklight-console . I have tried the configuring of analytics in 3 way : .. . .. . 1 . in worklight.properties : .. . .. . wl.analytics.logs.forward true .. . wl.analytics.url http : host : port analytics data .. . .. . .. . 2 . in initOptions.js : .. . .. . .. . analytics : enable : true url : http : host : port analytics data .. . .. . .. . .. . 3 . in server s config : .. . .. . jndi name context wl.analytics.url value http : host : port analytics data .. . jndi name context wl.analytics.logs.forward value true .. . .. . .. . Operational Analytics page has not data . enter image description here http : i.stack.imgur.com Ar8nO.png .. . Answer : This answer is based on that the Windows 7 MFP 6.3 server is installed on top the default WAS Libery Core . After you setting up the analytic ear file you also need to forwarding the Data to the analytic Console . Furthermore you have to add-in the user name and password for the ear because the analytic ear file has security on . Without the username and password which is the one for the WAS that you setup in the Configuration Tools with just the first 3 lines you will still see no data . One other very important point notice that there is a mfp in the jndiName . Yours might name differently as that s the dummy project that we created in the Configuration Tools to represent the runtime . You could have called it anything else . Replace mfp here with whatever you call your runtime . That s the same contextRoot that you would have used in the app settings to find the MFP server . Setup the analytic console to forward the data .. . .. . The worklight.analytics.url property needs to be set such that the mfp server knows where to send the data to .. . The analytics EAR file was enabled with security specify the username and passwords so the mfp server could send data to the analytics console .. . .. . Add the following lines in the server.xml as follow . Save the file and Restart the MFP standalone server to take effect .", "Question : I have been looking for my worklight.properties file and the only property file is in the application center folder . In there all of the properties are commented out . However there is a tmp migration- and some numbers that also have the worklight properties which seems to have some information in it . Does anyone know where I can get this file and or where to copy the worklight.property files on my liberty server so that the server sees it Thanks https : www.dropbox.com s q8nul8kiquzpl5r analyticsserver.xml dl 0 .. . .. . https : www.dropbox.com s pog4e73s1efl5wv defaultServer1.xml dl 0 .. . Answer : The file is on your worklight project on the studio at : server conf worklight.properties .. . .. . And also inside of the generated WAR file of your project that is used for the runtime . at : WEB-INF classes conf .. . .. . The WAR file is under the bin folder of the project . Some clarifications based on the questions around Analytics : .. . 1 - It is a handled by second war file that can be run in a isolated server a minimal config could be for example : .. . server.xml : For analytics server not a production config . For production setup take a look on this page : http : www-01.ibm.com support knowledgecenter SSZH4A 6.2.0 com.ibm.worklight.monitor.doc monitor t setting up production cluster.html .. . .. . The analytics tool requires that the application will opt-in on its use this can be done by the worklight.properties or via JNDI definition on the server with the application runtime usually known as worklight application http : www-01.ibm.com support knowledgecenter SSZH4A 6.0.0 com.ibm.worklight.help.doc admin t using JNDI lookup to override WL properties.html .. . .. . Here the property to be set could be this for example : .. . .. . - code above just as a illustration of an App that has the context root as worklight therefor its jndi properties start as worklight . - this property : .. . .. . This property will guide the application to know to where send the info and also the worklight-console to where to send the information to be stored . In case you have problems to see data on the analytics console ensure that the application is aware of the Analytics Tool by cheking if there is a icon for the Analytics Dashboard on the top-right of the table list of applications . Also check if the analytics is set properly as either been master and have a data node defined or having both behaviors by not having analytics nodetype jndi property set therefore acting as both . Hope this update helps in your problem . Comment : If you use the WAR assembled by the studio it should contains the file you search . Then you can use the configuration tool from worklight to help you deploy it into production server . Comment : It was the war file that came with the server . In particular the analytics.war file . I have created a second server and pointed the jndi to the analyticsData tab in the location of my first server . IT seems according to the files there is some data there but its not picking anything up on the anayltics server . Comment : Is this www-01.ibm.com support knowledgecenter SSZH4A 6.2.0 http : www-01.ibm.com support knowledgecenter SSZH4A 6.2.0 com.ibm.worklight.installconfig.doc monitor c op analytics installation.html what you are trying to do To install the analytics war Could you provide your more details What s your server version Comment : Maybe this older question can help you : stackoverflow.com questions 18467061 http : stackoverflow.com questions 18467061 analytics-tab-empty-in-worklight-console Comment : Cesar I am trying to link my analytics console from my second server called analytics to my defaultServer which has the application on it . The analytics console shows up but I don t see any data . I did also get the analytics console to work on my current server but again I don t see any data . I have no worklight.property file so I can t put the wl.analytics url in there . I am using WL 6.2.0.1 I am sharing the files via dropbox . any help is apprecaited and again I don t have a worklight.properties file . These servers were started by bin server create", "Question : Worklight 6.2.0 Native Worklight App on Samsung Galaxy S4 Android 4.4.2 .. . .. . Analytics Dasboard shows the app version and adapter activity . Log Search does not show any application log messages and the dropdown for selecting applications shows All Applications only no sign of my app . Have I missed some initialisation step Any other ideas edited to add .. . .. . It has been suggested that we should use the method : .. . .. . In our 6.2.0.00 CLI environment there is no such Java method . .. . Answer : The answer is that there a further initialisation requirement that seems to be necessary when working with a pure Native application these are typically build using the Worklight CLI tooling . This is the initialisation note the call to Logger.setContext .. . .. . Then this works .. . .. . It s worth noting that the call to WLAnalytics.send is not necessary in normal running as typically the analytic data is buffered and sent as a piggy-back on adapter calls . However while testing a call to send does help . Further if running in an environment where the Analytics WAR is on a separate machine from the Worklight Server WAR there are additional latencies . Hence testing all of this needs care .", "Question : I ve enabled the wl anaytics on my environment WLP v8 5 and WL6.2 but it s entry-point is unprotected . So I ve looked around and found this article . http : www-01.ibm.com support knowledgecenter SSZH4A 6.2.0 com.ibm.worklight.monitor.doc monitor t securing op analytics.html .. . .. . And figured I should be able to protected it with LDAP as well . However When I follow those steps I can t protect my analytics . My next step was to go to worklightconsole.war and copy the configuration to have form enabled authentication . So I ve ended up with my web.xml from the analytics.war with the following : .. . .. . I even copied into the WAR the login.html and loginError.html . However after I uploaded to my apps folder the modified analytics.war it still doesn t ask me for authentication and just pops open . The configuration I have on server.xml of analytics is : .. . .. . Does anyone have any clues on what I m doing wrong .. . Answer : The security put in-place only protects the data-entry point which is the endpoint at which the worklight server sends data to the analytics platform . If you wish to also protect the actual console with Basic Auth then you ll need to modify the server.xml for the WAR file . I think its something along these lines : .. . .. . But I haven t tested this . Comment : Thanks It worked I ve added the URL Pattern you ve mentioned to my web.xml and copied the resources for the login from the worklight-console and now I have my analytics console behind a layer of authentication with LDAP . : D Comment : Actually I have now a challenge for authentication but the device logs aren t reaching my Analytics platform so I guess this isn t what I m looking for . Thanks for your help though Comment : So you ll need to provide the same LDAP credentials for the worklight server to get data to the analytics console . You can set the JNDI properties wl.analytics.username and wl.analytics.password" ] }
[ "yes-answer-long", "yes-answer-short" ]
analytics
UNK_RELATION
angular-sprout@angular-seed@48
angular-sprout -- angular-sprout is a scalable @placeholder app .
{ "confidence": [], "content": [] }
{ "confidence": [], "content": [] }
[ "yes-answer-long", "yes-answer-short" ]
angular-seed
UNK_RELATION
g-wan@lua@81
g-wan -- g-wan is a web server with scripts in asm c c++ c d go java javascript @placeholder objective-c perl php python ruby and scala .
{ "confidence": [ 87.28804016113281, 81.91724395751953, 81.08837127685547, 77.91841125488281, 76.26551055908203, 75.79035186767578, 73.76322937011719, 73.12328338623047, 71.13224792480469, 70.52766418457031, 70.50595092773438, 69.45764923095703, 68.94727325439453, 68.90032958984375, 67.80778503417969, 66.24126434326172, 65.60350036621094, 65.55793762207031, 65.36103820800781, 65.1275634765625, 65.1275634765625, 63.98435974121094, 63.746360778808594, 63.67671203613281, 63.62364196777344, 63.1314697265625, 62.684906005859375, 62.62651062011719, 62.305076599121094, 62.292198181152344, 62.23691177368164, 62.009056091308594, 62.009056091308594, 62.009056091308594, 60.7119140625, 60.66603088378906, 60.66097640991211, 60.58334732055664, 60.5600471496582, 60.435821533203125, 60.27165985107422, 59.95014953613281, 59.95014953613281, 59.95014953613281, 59.95014953613281, 59.55451202392578, 59.368934631347656, 58.876953125, 58.876953125, 58.63585662841797, 58.63585662841797, 58.1893424987793, 58.1893424987793, 58.14849090576172, 58.09300994873047, 58.09300994873047, 58.09300994873047, 57.817115783691406, 57.304847717285156, 57.304847717285156, 57.304847717285156, 56.818031311035156, 56.73959732055664, 56.424835205078125, 56.35560989379883, 56.35560989379883, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.25804138183594, 56.09595489501953, 56.09595489501953, 55.913414001464844, 55.80669403076172, 55.734798431396484, 55.734798431396484, 55.567447662353516, 54.9525146484375, 54.94709014892578, 54.623626708984375, 54.52064514160156, 54.52064514160156, 54.52064514160156, 54.52064514160156, 54.52064514160156, 54.41168975830078, 54.41168975830078, 54.41168975830078, 54.41168975830078, 54.41168975830078, 54.30075454711914, 54.273292541503906 ], "content": [ "You may want to use G-WAN C scripts for generating images on-the-fly and G-WAN PHP C or Java scripts for less critical tasks .", "G-WAN also support scripts written in other programming-languages C++ Objective-C Java etc .", "But G-WAN C scripts are much faster than G-WAN PHP scripts if that s your question .", "My experience with G-WAN and its C scripts are : .. . .. . The G-WAN community is very small .", "Like for Java G-WAN created some wrappers for the G-WAN C API .", "No G-WAN offers scripts in 17 programming-languages - including C", "Any alternative way to run a web server with scripted C language C++ like g-wan", "Currently the C wrappers are : .. . .. . But you can freely extend this file by adding more wrappers either for the G-WAN C API or for third-party C libraries loaded by your G-WAN scripts .", "The linkage from G-WAN to external libraries is C and not C++ .", "Most G-WAN examples are in C for a simple reason : CPU RAM footprint like G-WAN .", "G-WAN currently supports PH7 multicore loaded as a module like Java C C++ or Objective-C and our efforts to use Zend PHP as a module failed : this PHP runtime crashes once two G-WAN threads calls it .", "G-WAN supports C and C++ servlets so you can use your favorite C++ libraries .", "Has anyone integrated redis with a G-WAN C script", "If the database is stored locally preferably in RAM G-WAN C C++ C scripts if properly implemented won t increase the latency in a noticeable manner .", "G-WAN script crash and G-WAN as well .", "Such a handler or even better a G-WAN switch will make G-WAN compatible with the zillions of codes Go Java Mono NodeJS PHP Ruby etc .", "But pre-compiled modules are much harder to write and test than G-WAN C scripts .", "If you can query the server for scripts then G-WAN is running fine .", ".. . .. . EDIT .. . .. . You must implement the C wrappers for any new G-WAN API or external function you want to support from your C scripts .", "G-WAN uses GCC and not the Tiny C Compiler .", "Detailed steps to run Aerospike C-client example with G-WAN .. . .. . 1 .", "What are G-WAN scripts and where they resides", "As a result some of the values used by get env in G-WAN scripts do not match the values used by G-WAN .", "From what you are describing I would stick to a pure G-WAN approach using C or possibly C++ or one of the others that G-WAN can load as dynamic modules for writing servlets and handlers .", "You must implement the C wrappers for any new G-WAN API or external function you want to support from your C scripts .", "OK i have this crazy idea since php does not play nice with G-WAN maybe the solution is to use phalanger to compile php code to c mono assembly and then use it from g-wan", "In C G-WAN will not add headers if there s already a header on the reply .", "My primary question goes with scripting G-WAN with non-C C++ languages.. . can sendfile be used from a JavaScript servlet", "Unlike other languages C C++ Objective-C C++ C PH7 Java and Scala Javascript is not loaded as a module and rather executed as a CGI process just like Zend PHP or Perl .", "I m looking for an alternative web server like g-wan in case g-wan stopped their free software service or in case I need migration from scripted g-wan code to other solutions alternative .", "But it would be cumbersome to reference a dynamic C++ class-library .so via a C linkage through G-WAN from a servlet .", "G-WAN headers .", "G-WAN is not different .", "Is the syntax correct for G-WAN", "We stopped G-WAN public updates to focus on Global-WAN.com our G-WAN-based Cloud .", "This was made possible by the fact that G-WAN supports both C and Java servlets : C offered compact data-structures for the cache 100 millions of records consume a fair amount of RAM and Java allowed G-WAN to talk to the noSQL DB .", "But since G-WAN is fast server even when used with one single thread http : www.rootusers.com web-server-performance-benchmark G-WAN will not be the bottleneck .", "Sorry I can t be more specific with a PHP example I ve done all my G-WAN work in C C++ so far .", "A more efficient way is to have G-WAN load and run the HHVM itself which has been done with PH7 another thread-safe PHP runtime provided with G-WAN v4+ : .. . .. . It is technically possible to implement .hhvm G-WAN scripts like it has been done for G-WAN .ph7 .java .scala and .cs C scripts .", "I noticed in the g-wan User Manual pdf documentation as of 10 19 2012 http : gwan.ch download that it says : .. . .. . Updating servlets C C++ etc .", "Are you working at g-wan", "G-WAN comes with many examples showing how to link with C libraries such as SQLite Cairo MySQL etc .", "For your last question - you need gcc in order to run G-WAN C servlet .", "A competent C programmer could call these BASIC runtimes from a G-WAN handler .", "If there is a compilation error then G-WAN outputs the line in the source code just like any C compiler .", "G-WAN does it transparently for you .", "For C scripts well the usr lib directory lists more than 1 500 libraries that G-WAN can re-use with a simple pragma link library .", "I have problem using g-wan .", "with following changes G-WAN works normally : .. . 1 .", "G-WAN does reload scripts on-the-fly since years .", "I ve written some scripts now to try out G-WAN .", "in the appropriate location for G-WAN .", "tells G-WAN that it is a servlet .", "As explained php-cli is the only way for G-WAN to use the Zend PHP runtime as it crashes in a multithreaded application like G-WAN .", "Check the G-WAN log files or start G-WAN in the interactive mode to see terminal feedback .", "To have G-WAN support FastCGI you would have to write a G-WAN handler .", "G-WAN v5 will be published later this year after the release of our G-WAN-based Cloud services .", "This question is for the G-WAN development team .", "As title said how to configure G-WAN to use php-fpm", "The php-cli approach in g-wan benchmark test is just not acceptable .", "Anyway I haven t used PHP or PH7 with G-WAN .", "G-WAN hosts Web sites including self since 2009 .", "Is there a way to get POST data from G-WAN Ruby", "i m proficient in php and perl but after a week of playing with g-wan i still can t write a decent program on it .", "G-WAN had a forum hosted by Paco a G-WAN user but he scrapped it recently .", "@Nagi G-WAN is a freeware and G-WAN-based applications are generally custom works paid by a client .", "I was using G-WAN v7.12.2 everything is OK .", "I put G-WAN into home www-data .", "G-WAN is not generally considered to be production-ready .", "G-WAN lets you do that very easily .", "I ve downloaded the latest G-WAN http : gwan.com .", "As g-wan documented xbuf repl is replacing all occurrences .", "What version of G-WAN are you using", "With G-WAN where should I place this file", "I wrote simple library for g-wan .", "And G-WAN is serving more requests in less time .", "G-WAN does not have configuration file .", "As an application server G-WAN is expected to generate dynamic contents .", "You probably mean what if a G-WAN script or the server itself crashes", "This requires writting a G-WAN C module to load the HHVM in the G-WAN memory-sapce something that may take time depending on the level of support provided by the Facebook HHVM team .", "A G-WAN profiler would have to both report issues for : .. . .. . code portions of G-WAN scripts servlets and handlers .. . blocking poorly written scripts not using events .. . slow library or system calls etc .", "Here is my G-WAN log :", "Is my idea doable in G-Wan", "OR maybe i m wrong and G-wan can run php", "For the time being since you re just experimenting and not actually using G-WAN in production run G-WAN without daemon mode - G-WAN will not minify anything js css or html .", "I am currently developing a web app in C using the G-Wan web server and I want to use the KV Store included with G-Wan in order to store the generated web page and a counter on the number of times the page has been displayed .", "what the process of using a third party C-library with a Scala app on Gwan would be .. . .. . If you want to call a C function either from a servlet or from a pre-compiled C library from a Scala G-WAN script then you can just pick the function pointer from a handler for example register it by attaching it to a G-WAN persistent pointer and then invoke it later from your Scala scripts .", "There s a contact form on the G-WAN site for that purpose .", "This issue is resolved on G-WAN version 4+", "I am using G-WAN v4 .", "How to effectively implement subscription mechanism in G-Wan", "If not can NodeJS s streaming be used in G-WAN", "how large is this file and which version of g-wan are you running", "Because I m not able to see how in g-wan website .", "I ran G-WAN with kk user not root no sudo .", "This system configuration problem will affect any program not specifically G-WAN .", "This was the problem : 0.0.0.0.8080 has never been a valid syntax for G-WAN .", "As Ken explained there s no configuration file - but G-WAN scripts servlets handlers including the init.c and main.c G-WAN startup scripts can modify G-WAN by-default settings.. . even dynamically during the life of the server and sometimes on a per-request basis .", "The G-WAN persistent pointers are for one single G-WAN instance but potentially concurrent script runs via several threads ." ] }
{ "confidence": [ 97.06346130371094, 96.81184387207031, 95.34197998046875, 92.81202697753906, 92.3185806274414, 91.72222137451172, 90.25836944580078, 89.75009155273438, 89.01512908935547, 87.215576171875, 86.97682189941406, 86.28709411621094, 83.91899108886719, 83.54866790771484, 83.46858978271484, 82.75360107421875, 82.53650665283203, 82.28054809570312, 82.15401458740234, 81.283447265625 ], "content": [ "Question : Does G-WAN spin up a new NodeJS instance for every user request i.e . if you re using JavaScript for a servlet For instance if 100 users request an action at the same time that s handled by a specific script . My primary question goes with scripting G-WAN with non-C C++ languages.. . can sendfile be used from a JavaScript servlet I want to stream large-files to clients which won t be in the www folder but rather from a specified file path on the server . Is this possible If not can NodeJS s streaming be used in G-WAN .. . Answer : Does G-WAN spin up a new NodeJS instance for every user request Unlike other languages C C++ Objective-C C++ C PH7 Java and Scala Javascript is not loaded as a module and rather executed as a CGI process just like Zend PHP or Perl . So yes Node.JS will scale poorly unless you use caching http : www.gwan.ch faq cache either G-WAN s or yours . can sendfile be used from a JavaScript servlet Yes but G-WAN having its own asynchronous machinery it s certainly more efficient to do it the G-WAN way as suggested by Ken . If you insist for using sendfile from Javascript then keep in mind that you will have to use it in non-blocking mode and manage the asynchronous events yourself synchronous calls are BLOCKING the current G-WAN worker thread . Can I stream files to clients which won t be in the www folder Yes you can just use a system symlink to map a foreign folder to a www resource - or you can stream contents from within a G-WAN handler http : www.gwan.ch developers handler or a servlet http : www.gwan.ch source stream3.c . Comment : Thanks but I can t seem to find any example concerning using sendfile from a JavaScript servlet I only see C examples Comment : Most G-WAN examples are in C for a simple reason : CPU RAM footprint like G-WAN . Once you are using a runtime like JS or Java you trade simplicity for humungus collections of libraries many of them redundant with the small-footprint G-WAN API and sometimes conflicting with it . Cohabitation is great for many cases and lets you pick the right tool to do specific tasks . Don t try to do in JS what should be done in C . Comment : I think a simple No you can t do that in JS would have helped.. . not every programmer is familliar with C and I m definitely not gonna learn C for GWAN . Anyway thanks I guess I ll have to resort to NodeJS s streaming API and NginX Comment : The answer No you can t do that in JS would have been technically wrong - hence a more complex reply .", "Question : The only place where I found informations on G-WAN web server was the project web site http : gwan.com and it looked very much like advertisement . What I would really know is for someone who is proficient with C if it is as easy to use and extend that other architectures . For now I would mostly focus on scripting abilities . Are C scripts on GWAN easy to write Can you easily update and upload new C scripts to the server say as easily than some PHP or Java pages on other architectures Do you have to restart the server when doing so Can you easily extend it with third party or existing C libraries Any other feedback welcome . .. . Answer : G-WAN also support scripts written in other programming-languages C++ Objective-C Java etc . so you will benefit from whatever native libraries each language implements . For C scripts well the usr lib directory lists more than 1 500 libraries that G-WAN can re-use with a simple pragma link library . I found it neat to be able to write a Web application with a part in C another in C++ and a third one in Java", "Question : Looking for web based c proiler tool similar to xhprof and for Linux . Any good recommendations for gwan scripting Thanks in advance . .. . Answer : A G-WAN profiler would have to both report issues for : .. . .. . code portions of G-WAN scripts servlets and handlers .. . blocking poorly written scripts not using events .. . slow library or system calls etc . Rather than making a separate product it may make more sense to use extra code in G-WAN scripts to check your workflow . G-WAN provides several examples http : gwan.ch source httpdate.c using very precise time functions like : cycles64 getms getus and getns to check how fast code portions or library calls are . But G-WAN also provides server counters like REQUEST TIME which will reveal performance and scalability issues in your applications . Further you can go deeper by using a connection handler to check the accept parse build and reply times : .. . .. . As G-WAN supports scripts in 17 programming-languages performance tuning may also involve doing the right choices for speed-critical parts of your applications . You may want to use G-WAN C scripts for generating images on-the-fly and G-WAN PHP C or Java scripts for less critical tasks . G-WAN lets you do that very easily . Last but not least G-WAN provides ab.c http : gwan.ch source ab.c an open-source benchmark tool to let you identify scalability issues most of which are discussed here http : gwan.ch en apachebench httperf.html . Comment : All is good the only issue is I actually like the boxes done by graphviz so I m looking for an equivalent that can do so with c profiling . That ll really make it simple coz I like the visual outlook which makes finding the next frequently accessed function module really easy . Comment : graphviz uses a text file using a special format as input . You can generate this text file from a G-WAN script . Note that many Javascript libraries offer similar graph-drawing services .", "Question : The only place where I found informations on G-WAN web server was the project web site http : gwan.com and it looked very much like advertisement . What I would really know is for someone who is proficient with C if it is as easy to use and extend that other architectures . For now I would mostly focus on scripting abilities . Are C scripts on GWAN easy to write Can you easily update and upload new C scripts to the server say as easily than some PHP or Java pages on other architectures Do you have to restart the server when doing so Can you easily extend it with third party or existing C libraries Any other feedback welcome . .. . Answer : I use G-Wan for a CMS http : solicms.com but for now I use Ruby as primary language .", "Question : I need it for rewriting url to know which friendly-url I am processing . For User-Agent and other stuff . EDIT : .. . .. . Unhandled Exception : System.MissingMethodException : Cannot find the requested method . at wrapper managed-to-native Gwan : getEnv string int .. . .. . What am I doing wrong I guess on your end you need to put something like : .. . .. . Dll in cs folder where gwan api also is not Loaded Comment : Is there any frameworks - for GWAN Comment : G-WAN being a Web application server with a rich API people might not have felt the need to create a framework beyond what is already available . But there s certainly room for DB-agnostic wrappers template libraries etc . for people willing to use ready-to-wear solutions especially if you consider the flexibility of being able to use C C++ C Java Scala PH7 native and therefore superfast scripts . .. . Answer : Like for Java G-WAN created some wrappers for the G-WAN C API . In both cases Java and C these wrappers can be found under the gwan libraries cs directory . Currently the C wrappers are : .. . .. . But you can freely extend this file by adding more wrappers either for the G-WAN C API or for third-party C libraries loaded by your G-WAN scripts . Hope this helps . .. . .. . EDIT .. . .. . You must implement the C wrappers for any new G-WAN API or external function you want to support from your C scripts . The include file listed above is a mere list not implementation . Please refer to the Mono documentation for more details - or drop us a line at G-WAN if you want to sponsor the features you need .", "Question : Any alternative way to run a web server with scripted C language C++ like g-wan I m looking for an alternative web server like g-wan in case g-wan stopped their free software service or in case I need migration from scripted g-wan code to other solutions alternative . Thanks for the recommendation . Comment : surely a migration would be to compiled C C++ code and every similar web server does that . NxWeb is a good alternative as is Mongoose . Comment : Or Apache or Nginx or Lighttpd etc . most scalable Web servers were written in C and therefore support C modules . But pre-compiled modules are much harder to write and test than G-WAN C scripts . .. . Answer : I don t know about any other application server supporting C scripts . But ORACLE Tuxedo supports C modules for a long time now .", "Question : The only place where I found informations on G-WAN web server was the project web site http : gwan.com and it looked very much like advertisement . What I would really know is for someone who is proficient with C if it is as easy to use and extend that other architectures . For now I would mostly focus on scripting abilities . Are C scripts on GWAN easy to write Can you easily update and upload new C scripts to the server say as easily than some PHP or Java pages on other architectures Do you have to restart the server when doing so Can you easily extend it with third party or existing C libraries Any other feedback welcome . .. . Answer : Well now G-WAN is available under Linux I am using it for more than 6 months . The C scripts are fully-ANSI C compatible so there is no difference for any seasonned C programmer . To update them on the server you can edit them directly in the csp folder remotely via SSH or locally on a test machine and copy them later : G-WAN reloads scripts on-the-fly when they have been changed on disk no server stop required . G-WAN C scripts can use any existing library starting with all those under usr lib without any configuration or interface : you just have to write a pragma link followed by the name of the library at the top of your script . What I found really useful is the ability to edit C scripts and refresh the view in the Internet browser to see how my code works . If there is a compilation error then G-WAN outputs the line in the source code just like any C compiler . But where it enters the extraordinary area is when you have a C script crash : here also it gives you THE LINE NUMBER IN THE SOURCE CODE with the faulty call and the backtrace . Kind of black-magic when you are used to Apache modules .", "Question : Any alternative way to run a web server with scripted C language C++ like g-wan I m looking for an alternative web server like g-wan in case g-wan stopped their free software service or in case I need migration from scripted g-wan code to other solutions alternative . Thanks for the recommendation . Comment : surely a migration would be to compiled C C++ code and every similar web server does that . NxWeb is a good alternative as is Mongoose . Comment : Or Apache or Nginx or Lighttpd etc . most scalable Web servers were written in C and therefore support C modules . But pre-compiled modules are much harder to write and test than G-WAN C scripts . .. . Answer : Barracuda Application Server Web Server http : barracudaserver.com accept C Server Pages CSP as well as Lua Server Pages LSP . Comment : It inserts C or C++ code in HTML template files by using special CSP tags : realtimelogic.com products c-server-pages https : realtimelogic.com products c-server-pages ...while G-WAN lets you run C C++ programs that generate contents - optionnally using template engines see this example : gwan.ch source contact.c http : gwan.ch source contact.c", "Question : As title said how to configure G-WAN to use php-fpm Currently using lighttpd with php-fpm . Heard G-WAN maybe even lighter want to give it a try . But after downloading the package and have it running doesn t seems to be able to find any doc about php-fpm setup . .. . Answer : To have G-WAN support FastCGI you would have to write a G-WAN handler . We did not do that because FastCGI is a much slower interface than the language runtime loaded in the G-WAN process address space . G-WAN currently supports PH7 multicore loaded as a module like Java C C++ or Objective-C and our efforts to use Zend PHP as a module failed : this PHP runtime crashes once two G-WAN threads calls it . Comment : Thx for the answer . I did more research since I post the question and your answer is expected . For my case the web servers no matter it is apache lighttpd or g-wan are just https handler so the thinner lighter efficient the better . But php-fpm support is a must . The php-cli approach in g-wan benchmark test is just not acceptable . Comment : As explained php-cli is the only way for G-WAN to use the Zend PHP runtime as it crashes in a multithreaded application like G-WAN . Comment : We know about the threading issue with PHP . But on the other hand we are not using threading in our php code . It is gwan choice of not implamanting a fast-cgi interface while the current solution php-cli is not acceptable . We did some simple test the gwan website benchmark result is actually showing in how fast php-cli can be invoke and shutdown by the OS not php performance . Comment : G-WAN can use PHP as a loaded module rather than as CGI IF you are NOT using threads which you say you are doing . The code to do so has been published on Stackoverflow .", "Question : The only place where I found informations on G-WAN web server was the project web site http : gwan.com and it looked very much like advertisement . What I would really know is for someone who is proficient with C if it is as easy to use and extend that other architectures . For now I would mostly focus on scripting abilities . Are C scripts on GWAN easy to write Can you easily update and upload new C scripts to the server say as easily than some PHP or Java pages on other architectures Do you have to restart the server when doing so Can you easily extend it with third party or existing C libraries Any other feedback welcome . .. . Answer : My experience with G-WAN and its C scripts are : .. . .. . The G-WAN community is very small . Questions you have are mostly answered by its single developer . I consider the API not mature : it s not as clean as Java APIs . The limitation but at the same time the power of C : it s a systems-programming language . So writing application logic in it must be done carefully . You generally need to be a good developer to get good results : if you do something wrong the server crashes fast and hard Unix-style . I ve written some scripts now to try out G-WAN . Overall it s been very productive : not much bugs and it works if you follow the guidelines and don t want to do too much funky stuff you expect it to have like mature web servers . However I have got the feeling I m reinventing the wheel a lot of times .", "Question : I have large photo file and would like to use gwan as it fast . Is there any performance benefits in comparison to nginx fast-cgi . Does gwan fast at timd to first byte Is it faster at connecting time Is commputing time faster Is throughput faster Furthermore can you install hhvm on gwan . If you can how would you install hhvm would it give a performance benefit to php how much Comment : HHVM and speed You mean speed in failing to run or Don t waste your time with that crap if you re hunting performance without resorting to languages like C use beta of php-7 . It might not be finished yet fully but it s as fast as HHVM and most importantly - it works and when it fails - it tells you why . HHVM doesn t . Comment : Thanks for the clarification . We got good reports from G-WAN + PH7 users . .. . Answer : The downside of FasCGI is that it s itself a backend server : instead of having only G-WAN as a server you are limited by the speed of the backend server when G-WAN sends it requests and waits its replies : .. . .. . In this case the latency of a FastCGI server and the extra LAN latency are slowing-down G-WAN . A more efficient way is to have G-WAN load and run the HHVM itself which has been done with PH7 another thread-safe PHP runtime provided with G-WAN v4+ : .. . .. . It is technically possible to implement .hhvm G-WAN scripts like it has been done for G-WAN .ph7 .java .scala and .cs C scripts . This requires writting a G-WAN C module to load the HHVM in the G-WAN memory-sapce something that may take time depending on the level of support provided by the Facebook HHVM team . One could also use the G-WAN CGI interface to invoke HHVM as a local process like G-WAN was forced to do for the thread-unsafe Zend PHP . But the results in terms of performance greatly depend on the initialization and processing times of the HHVM executable not to mention the extra per-request overhead . This third way is simpler to implement but necessarily slower than a native HHVM G-WAN module . Comment : Oh here we go again - PHP is thread safe http : php.net manual en faq.obtaining.php faq.obtaining.threadsafety . One just has to ensure stuff exists : Comment : Yet once you embedd the Zend PHP engine in a multithreaded C program then it crashes as soon as you have 2 threads even with a simple hello world . We have requested assistance from Zend for years - providing them with our embedded C source code and they never told us they managed to make it work . We would be DELIGHTED to have a working version . Comment : Alright from what I read about your server it looks great . I d love to be able to use PHP with it even if just for fun . I d also like to help and I also know that Zend isn t that responsive when in need for help - which is why it s always better to turn to people who maintain PHP and aren t part of Zend . Is there any chance you can provide any kind of code so the rest of us can have a stab at it Even the hello world would suffice . I m interested to see how the thread safe php fails with your server it might be a huge mistake at PHP s end . Comment : @N.B . Gil posted the code here http : stackoverflow.com questions 27353520 how-to-use-gwan-with-wordpress-installation-through-php-fpm and it seems you also participated in the discussion . Comment : @Nagi - thanks I didn t see that code since it was edited a few months after my comments . Going to take a look at it .", "Question : The only place where I found informations on G-WAN web server was the project web site http : gwan.com and it looked very much like advertisement . What I would really know is for someone who is proficient with C if it is as easy to use and extend that other architectures . For now I would mostly focus on scripting abilities . Are C scripts on GWAN easy to write Can you easily update and upload new C scripts to the server say as easily than some PHP or Java pages on other architectures Do you have to restart the server when doing so Can you easily extend it with third party or existing C libraries Any other feedback welcome . .. . Answer : Benchmark shown how G-wan fare poorly at handling these tests . http : joshitech.blogspot.sg 2012 04 performance-nginx-netty-cppcms.html Comment : Apperently @Proyb2 did not read the criticism of this test . From comments : Comment : @Anonymus user : nginx is a single-threaded server . GWan is a multi-threaded server . So using ApacheBench single-threaded to test GWan is idiot : . . . Single-threaded servers are for single-core CPUs . The last one was make in year 2004 . Comment : @Another anonymus user : Something must be wrong with your tests do you know what it can be Comment : @Joshitech replies : Response to Single threaded MultiThreaded comment : Apache AB is not single-threaded . If you look at for test the concurrency level is set to 200 . Comment : G-WAN is using less CPU and RAM than Nginx not more . And G-WAN is serving more requests in less time . Not only AB is not fast enough to tests an SMP server like G-WAN but AB will never use all G-WAN s worker threads . Rather use weighttp which is faster and multi-threaded while using the same syntax .", "Question : Where is the configuration file init.d in g-wan . Also how do I get rid of the In the url to run php or c script I think you need to change this in the configure Comment : etc init.d files are shell scripts that respond to start stop restart and reload commands to manage a particular service . G-WAN provides an example of such a script : gwan.ch faq service http : www.gwan.ch faq service .. . Answer : As Ken explained there s no configuration file - but G-WAN scripts servlets handlers including the init.c and main.c G-WAN startup scripts can modify G-WAN by-default settings.. . even dynamically during the life of the server and sometimes on a per-request basis . Here are the options that can be changed before G-WAN starts listening they are documented in the PDF manual and on the G-WAN Web site http : www.gwan.ch api env : .. . .. . And here is how to change the default query character : .. . .. . To completely remove the rather than replacing it you will have to use a G-WAN connection handler see this example just doing what you want http : www.gwan.ch developers handler on tab 2 connection handlers . In many cases dynamic settings are preferable to fixed options like for adaptive timeouts fixed timeouts leave a server vulnerable to timing attacks like Slowloris . Comment : I don t want to change it . I want to remove it . Do there no directorship character Comment : Then write a G-WAN handler to add it for a specific list of dynamic URLs that clients will use without specifying any . That s what other servers do with regex engines . Comment : u8 query char u8 get env argv QUERY CHAR if query char u8 old query char query char hello.c instead of hello.c printf changed query char from c to c p n old query char query char Comment : Empty characters are a syntax-error in C . And if it were not the case G-WAN would then not process any dynamic request since that s the query character that defines one . Comment : So how would you do it . Sorry I a novice", "Question : The only place where I found informations on G-WAN web server was the project web site http : gwan.com and it looked very much like advertisement . What I would really know is for someone who is proficient with C if it is as easy to use and extend that other architectures . For now I would mostly focus on scripting abilities . Are C scripts on GWAN easy to write Can you easily update and upload new C scripts to the server say as easily than some PHP or Java pages on other architectures Do you have to restart the server when doing so Can you easily extend it with third party or existing C libraries Any other feedback welcome . .. . Answer : I have been using G-Wan for about two years . I consider it highly stable and production ready for static files . I have a number of static sites running for over a year with no issues . I have built some small scale dynamic sites in C with it as demos test projects . A bittorrent tracker and a real-time analytics platform both using the KV Store for data backing . In my view building large scale dynamic sites in G-Wan is possible but only with a significant investment in development and support . G-Wan is better suited to building robust highly scalable enterprise grade applications than tossing something together over a weekend .", "Question : I m trying to set an HTTP header like Content-Type over a CGI script . In PHP : .. . .. . or in Go : .. . .. . Both have no effect on the output . How can this be done EDIT .. . .. . I also tried the following in Go using the CGI package : .. . .. . but I get the error : .. . Answer : Question 1 : .. . .. . If your script returns a valid HTTP return code like 200 then G-WAN builds the corresponding HTTP Headers unless they are already there starting with HTTP 1.x 200 OK here . So to force a given content-type with scripted languages other than those which support the G-WAN API like C C++ D and Objective-C you would have to return 1 and define ALL the HTTP headers of your reply . The programming-languages that support the G-WAN API can use get env argv REPLY MIME TYPE as shown in fractal.c and others and let G-WAN build the rest of the headers . Question 2 : .. . .. . The environment variable REQUEST URI while useful is not part of the supported CGI v1 specification http : tools.ietf.org html rfc3875 RFC-3875 . I have requested that REQUEST URI is added in a future release . The script examples provided with G-WAN list the supported variables by v3.12 : .. . .. . Note that you can however access both the request and the parameters if any by using the following and faster Go code : .. . .. . .. . .. . UPDATE .. . .. . We received this source code by email : .. . .. . Please note that this code is incorrect : it does not even compile - and G-WAN reports the following errors : .. . .. . This is most probably why you haven t seen the program being updated : the old version if any was not replaced by the faulty version updated while G-WAN was running . When you develop editing scripts you should always have a look at the terminal to check if your newly edited code compiles . I recommend you to look at the working hello.go example to see what the requirements are for the expected definition of main and the madatory return code . When no return code is used like in your code G-WAN will inject default HTTP headers HTTP 0.9 200 OK in your case which will bypass your HTTP headers if any and as a result the Internet Browser will wait until it times-out because it does not know the length of your reply . As documented in the examples and in the manual to tell G-WAN not to create HTTP headers you have to return a value in the 1-99 range 0 means close connection and 200-600 is reserved for HTTP return codes that tell G-WAN to generate the correspondig HTTP headers . Comment : danke viel mal : Comment : PS : Is it normal that I have to restart G-WAN for the changes in my Go scripts to take effect Comment : I just doubled-checked that with hello.go and I do not have this issue . Unlike Ruby or PHP Go is a compiled language which gives so more freedom . Drop us a line at G-WAN with an example that fails to refresh after an edition so we can investigate this further . Comment : I have sent you a message through the contact form on gwan.com about Comment : No mail from Switzerland yesterday not even in the logs . Use pierre@trustIeap.com", "Question : Does G-WAN spin up a new NodeJS instance for every user request i.e . if you re using JavaScript for a servlet For instance if 100 users request an action at the same time that s handled by a specific script . My primary question goes with scripting G-WAN with non-C C++ languages.. . can sendfile be used from a JavaScript servlet I want to stream large-files to clients which won t be in the www folder but rather from a specified file path on the server . Is this possible If not can NodeJS s streaming be used in G-WAN .. . Answer : There is also other option for using JS by directly embedding VM Spidermonkey in servlet . Comment : But then will that be usable for Server Programming or just for executing JavaScript snippets of code which wouldn t be really like Server-side Scripting.. . I am a JavaScript NodeJS dev... . no C C++ background Comment : @Ohenepee Peps It is possible to expose G-WAN API or any native functions to Your scripts via developer.mozilla.org en-US docs Mozilla Projects SpiderMonkey https : developer.mozilla.org en-US docs Mozilla Projects SpiderMonkey JSAPI Reference JS DefineFunction . So yes it would be usable but requires some C++ work first", "Question : OK i have this crazy idea since php does not play nice with G-WAN maybe the solution is to use phalanger to compile php code to c mono assembly and then use it from g-wan Anyone has any experience with this combination and could help OR maybe i m wrong and G-wan can run php Comment : That s a good idea . I will give it a try when the new version is released . The current version doesn t have C mono support Comment : I know 3.9 this month . Comment : So anyone or someone know how to run php directly g-wan site lacks documentation Comment : On Oct . 21 a crude but unxepectedly efficient PHP scripts interface has been successfully tested and added to G-WAN see : gwan.com blog 20121021.html hello.php http : gwan.com blog 20121021.html hello.php Here PHP scripts are run like Java and C scripts without any handler or configuration . Comment : Nice but no samples again no code i just need plain simple and full example ready to run without trying to figure it out . .. . Answer : Well I did contact the people behind Phalanger and a few other solutions to add support for PHP . And their reply at the time was that Phalanger was no longer developed . Now it has been re-emplemented as a CLR language this might give PHP a second life . While I have used the G-WAN 3.9 beta I did not yet try to play with the various languages supported by the Mono runtime . Regarding the genuine PHP library I wrote the code below to make it run : .. . .. . If anybody can make this code work with more than one worker thread without crashing the PHP runtime then PHP will be added to G-WAN . Here is what G-WAN produces with one single worker thread : .. . .. . That would be great to resolve this PHP threading issue . Thanks for helping anyone Comment : I ve set it as answer due to the lack of better solution g-wan should really have it s own forum . How you get the g-wan 3.9 beta Gil Are you working at g-wan Then please tell Pierre that there is a strong need for more code samples and examples for g-wan . Comment : G-WAN had a forum hosted by Paco a G-WAN user but he scrapped it recently . Stackoverflow is a decent alternative . I am part of the G-WAN development team but Corporate Registered Users also get access to betas . For the more examples request there s already 60 of them available try to be more specific : tell what you would want G-WAN to show how to do . There s a contact form on the G-WAN site for that purpose . Comment : Gil previously part of the subscription for G-WAN was access to a members only forum . Is this still part of the plan Comment : After the production release yes . But that forum will be readable for all - only registered users will be able to post merely to avoid the tons of crap posted by myriads of anonymous user accounts on the old forum . Comment : Someone can post an example how to run PHP more easily there are new blog entry about this gwan.com blog 20121021.html http : gwan.com blog 20121021.html but it again without any code . Here is something gwan.com faq languages http : gwan.com faq languages but still for me it is not to much help someone please.. .", "Question : I have decided use GWAN like my application server and I wish use voltdb for storage the data . Anybody has employed both together . I will develop it in C++ . Comment : G-WAN is not generally considered to be production-ready . I would strongly advise you to consider alternatives . Comment : G-WAN hosts Web sites including self since 2009 . Thanks for not spreading more F.U.D . .. . Answer : In a recent online Game demo http : gwan.com blog 20121001.html presented at the ORACLE Open World expo in SFO we did not use voltDB but rather ORACLE noSQL which is a Java distributed KV store . Since we used G-WAN as a Database cache accelerator for 100 millions of records updated in realtime on one single server I guess that this experience is relevant in your case because voltDB does not handle this kind of TPS rates . You say very little about your project so I will describe what we did in our demo : the C servlet created worker threads . Some were used to update the position direction orientation speed of the bots and others were used to push the modifications to the remote Java-based noSQL KV store . This allowed this same servlet to reply in realtime to human players that sent their new position and queried the lists of all nearby bots also parallelized . This was made possible by the fact that G-WAN supports both C and Java servlets : C offered compact data-structures for the cache 100 millions of records consume a fair amount of RAM and Java allowed G-WAN to talk to the noSQL DB . I don t know what your application will be doing but at least you have an example of such a case using G-WAN and a huge DB that had to react in realtime . G-WAN supports C and C++ servlets so you can use your favorite C++ libraries .", "Question : Does G-WAN spin up a new NodeJS instance for every user request i.e . if you re using JavaScript for a servlet For instance if 100 users request an action at the same time that s handled by a specific script . My primary question goes with scripting G-WAN with non-C C++ languages.. . can sendfile be used from a JavaScript servlet I want to stream large-files to clients which won t be in the www folder but rather from a specified file path on the server . Is this possible If not can NodeJS s streaming be used in G-WAN .. . Answer : You can stream content from G-WAN you can stream content from Node.JS . Choosing one or the other depends on what other requirements you have since either can support streaming content for the kind of loads you mention assuming reasonable system resources . I have a small Node.JS server doing some URL rewrites and reverse-proxy to serve content we license from a 3rd party . It is entirely separate from the G-WAN server with HAProxy routing requests to either as appropriate . From what I ve just learned about JavaScript under G-WAN I wouldn t want to go that route . From what you are describing I would stick to a pure G-WAN approach using C or possibly C++ or one of the others that G-WAN can load as dynamic modules for writing servlets and handlers . From personal experience I recommend C for simplicity performance and compactness . C++ is also a good choice . G-WAN Servlets and Handlers are often quite small snippets of code - especially compared to writing a complete application - so you may be able to make use of C or C++ here even if you are not expert in those languages . Take a look at the 10-lines-of-C-code implementation of an FLV streamer near the bottom of the G-WAN User s Manual http : gwan.com archives gwan linux.pdf . Other relevant examples are stream1.c http : gwan.com source stream1.c stream2.c http : gwan.com source stream2.c and stream3.c http : gwan.com source stream3.c . To get started I recommend downloading and installing G-WAN following the 10-second G-WAN installation process http : gwan.com download and then tweaking the servlet sample code to serve some content you have i.e . change the paths and filenames as needed . Good luck Ken Comment : FYI : G-WAN s JavaScript implementation is handle by NodeJS you must have node.js installed . So I mean using a JavaScript servlet can you stream say a file which is not in the www folder but rather somewhere on your disk I m trying to build a secure file hosting system Comment : Wow that was news to me about G-WAN s JavaScript mechanisms . I ll adjust my answer a bit . I still recommend choosing C or at least one of the other languages that enable your code to be dynamically bound to the server at run time . For serving content not in the www .. . path I m using symlinks like Gil suggested and then I have a 404-handler that generates - and serves - missing content dynamically i.e . the next request for the same bits will find it at the symlink d location .", "Question : I am looking at Gwan as a higher performance way to run our Scala application . Our use-case involves keeping a good amount of data in memory using Scala data-structures . This is a bit more complex than a simple hashmap so I would want to avoid trying to wedge it into the K V store that comes with Gwan . Also there are a number of C-libraries that would be great to interface with . Curious what the process of using a third party C-library with a Scala app on Gwan would be . Thanks .. . Answer : keeping a good amount of data in memory using Scala data-structures .. . .. . The easiest way to attach Scala data-structures to G-WAN servlets is to use the G-WAN persistence pointers see the persistence.c http : gwan.ch source persistence.c example . For the sake of the discussion G-WAN KV store is not using hash tables nor any hashing by the way to avoid large unused memory and entry collisions . what the process of using a third party C-library with a Scala app on Gwan would be .. . .. . If you want to call a C function either from a servlet or from a pre-compiled C library from a Scala G-WAN script then you can just pick the function pointer from a handler for example register it by attaching it to a G-WAN persistent pointer and then invoke it later from your Scala scripts . Or you can dynamically load a pre-compiled C library from your Scala scripts resolve the function name only once at startup and then call it many times ." ] }
[ "yes-answer-long", "yes-answer-short" ]
lua
UNK_RELATION
wso2wsas@open-source@66
wso2wsas -- wso2 ws is an application server that links together @placeholder technologies .
{ "confidence": [ 33.837608337402344, 27.920650482177734, 27.088539123535156, 26.937255859375, 26.035564422607422, 25.906301498413086, 24.814170837402344, 24.552669525146484, 24.006755828857422, 23.168962478637695, 22.88865852355957, 21.140155792236328, 21.140155792236328, 19.794233322143555, 19.794233322143555, 19.005483627319336, 19.005483627319336, 17.87037467956543, 17.3284912109375, 16.948740005493164, 16.576745986938477, 16.419559478759766, 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.35120964050293, 15.35120964050293, 15.146097183227539, 15.073637008666992, 13.428216934204102, 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 ], "content": [ "I am using WSO2 Application Server .", "Can anybody tell me why marketplace in eclipse-kepler not pulling WSO2WSAS plugin to be installed", "I m currently trying to install the wso2 php-extension on an Ubuntu 12.04 server .", "WSO2 code has task to clean it .", "I have a wso2 wsas3.1.1 in my production environment .", "I am being confused by wso2 aplication server .", "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", "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 .", "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 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 .", "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 .", "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 .", "It will not be enough just to deploy it in your web application .", "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 .", "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 .", "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 .", "Please check source here .", "however it is not working .", "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 .", "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 .", "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 .", "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", "When I do the make command I m getting the following error : .. . .. . So the installer can t find savanc .", "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 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 .", "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, 29.4114990234375, 28.186153411865234, 27.134286880493164, 25.042938232421875, 24.787044525146484, 24.488388061523438, 22.132625579833984, 21.245391845703125, 20.71526336669922 ], "content": [ "Question : null .. . Answer : Can anybody tell me why marketplace in eclipse-kepler not pulling WSO2WSAS plugin to be installed", "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 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 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 : This seems to be a class loading issue . Have you followed this documentation . http : docs.wso2.org wiki display AS510 Webapp+ClassLoading", "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 : 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" ]
open-source
UNK_RELATION
liferay-7@java@40
liferay-7 -- liferay is an open-source @placeholder portal and social platform .
{ "confidence": [ 41.15681838989258, 40.986854553222656, 40.98553466796875, 39.33407211303711, 39.180702209472656, 37.70187759399414, 37.70187759399414, 37.70187759399414, 36.75764465332031, 36.708927154541016, 36.050411224365234, 35.810733795166016, 35.810733795166016, 35.474388122558594, 35.35318374633789, 35.35318374633789, 35.20139694213867, 34.67796325683594, 34.65671920776367, 34.65671920776367, 34.432823181152344, 34.23367691040039, 34.11316680908203, 33.693260192871094, 33.27615737915039, 33.02649688720703, 32.78135681152344, 32.39151382446289, 31.898242950439453, 31.627342224121094, 31.627342224121094, 30.571796417236328, 30.454267501831055, 30.246780395507812, 30.246780395507812, 30.15078353881836, 30.07870101928711, 29.86209487915039, 28.751577377319336, 28.484180450439453, 28.484180450439453, 27.78655433654785, 27.53984260559082, 26.832717895507812, 26.832717895507812, 25.692995071411133, 24.05440902709961, 24.05440902709961, 22.402944564819336, 17.677221298217773, 16.596044540405273, 16.037721633911133, 15.945907592773438, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.716078758239746, 15.147247314453125, 15.067462921142578, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.639050483703613, 13.344173431396484, 12.261137962341309, 12.261137962341309, 12.261137962341309, 12.261137962341309, 12.261137962341309, 12.261137962341309, 12.261137962341309 ], "content": [ "Liferay 7 GA1 is just releasead but the documentation is not complete yet .", "Your version of the Liferay Faces Bridge is not compatible with Liferay 7 .", "When I upgrade to liferay-7 it is a problem .", "I am developing some features for Liferay 7 .", "I downloaded Liferay 7 liferay-portal-7.0-ce-ga1 on ubantu 14.04 when I try to connect with MySql DB then I found an error in logs that : Liferay7 not support lesser then MySQL 5.6.4 .", "I am coding an application using Liferay 7 and OSGi modules .", "Why Liferay 7 not supporting earlier versions of MySql Reason behind that", "Liferay 7 use code assign records ddlDisplayTemplateHelper.getRecords reserved record set id for get a-records .", "I am trying to run my 6.2.5 portlet project from liferay 7.x portal .", "In liferay-6.2 you can modify javascript files with hooks and since fragments are the new way to modify liferay modules jsp I thought this was posible .", "Because of all changes in Liferay 7 my Portlets won t work .", "Created an osgi-bundle jsp hook in liferay .", "It seems to have something to do with the deployer in liferay .", "I worked Application Display Templates on liferay-6.2 I use freemarker help pagination the dynamics data list of liferay .", "How can i change from the default liferay logo to the company logo", "I have created a liferay fragment for the calendar web portlet .", "it seems that the server mirrors.lax.liferay.com is down .. . .. . Console output redirected to file : Users yjradeh foo java workspace .metadata .plugins com.liferay.ide.sdk.core sdk.log Buildfile : Users yjradeh foo java liferay-plugins-sdk-7.0 portlets build.xml get Getting : http : mirrors.lax.liferay.com cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get To : Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get Error getting http : mirrors.lax.liferay.com cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar to Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get Getting : http : cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get To : Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar .. . .. . BUILD FAILED Users yjradeh foo java liferay-plugins-sdk-7.0 portlets build.xml : 5 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-plugins.xml : 5 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common.xml : 57 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-ivy.xml : 130 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-ivy.xml : 81 : HTTP Authorization failure .. . .. . Total time : 1 second", "I had the same issue while trying to compile the SDK you can try this url : https : repository.liferay.com nexus content repositories liferay-public-snapshots com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT .", "Trying to match Liferay 7 with AWS Lambda https : aws.amazon.com documentation lambda .. . .. . 1 .", "Can Liferay 7 in Beta 6 currently be deployed onto AWS Lambda Serverless Cloud Code runner", "I am using Liferay DXP .. . .. . Thanks", "I ve start the new module for Liferay 7 GA1 using .. . .. . This is my gradle.build .. . .. . In the portal the module com.liferay.my.account.web is at 1.0.2 version but in the repository https : repository.liferay.com nexus content repositories liferay-ce com liferay com.liferay.my.account.web the version is still 1.0.1 .. . .. . Building the module I have this error : .. . .. . Setting versione 1.0.1 for com.liferay.my.account.web the gradle build is ok but the deploy process fails with : .. . .. . The complete source code here : https : github.com baxtheman liferay7GA1-sandbox tree master modules .. . .. . Liferay forum question : https : web.liferay.com it community forums - message boards message 73513613 .. . .. . What s wrong", ".. . .. . In project facet under Runtime environment Liferay 7.x server is not visible .", "My question : Is there any chance to get an example Vaadin 7 Liferay 7 Hello World Portlet", "Using the server tab in Liferay Workspace environment added the bundle to configured server .", "Edit to address comment : I tested the liferay-blade-samples https : github.com liferay liferay-blade-samples fragment project from the command-line by doing the following : .. . .. . 1 .", "I use the developper-mode and Liferay 7.0.1 GA2 .", "I ve already read the article from Sampsa Sohlman Link https : web.liferay.com de web sampsa.sohlman blog - blogs double-seven-vaadin-7-with-liferay-2 but it won t work with the newest Version of Liferay .", "I want to display list of items on a page..using Liferay search container. .", "With Liferay 6.x it is very easy to develop and deploy some Vaadin 7 portlets .", "I am trying to write integration tests for liferay-7 portlets with gradle arquillian and bnd tool .", "I am trying to create an liferay-7 plugin project using Ant and I am always recieving the below error can someone help", "Since the Bridge has not been released for Liferay 7 you will need to use SNAPSHOT builds https : web.liferay.com web neil.griffin blog - blogs liferay-faces-project-news-april-2016 .", "Navigate to the liferay-blade-samplesclone and into gradle blade.hook.jsp and build the project .", "Copy the JAR into my running Liferay CE GA2 installation s deploy folder .", "It s the same problem as here : Deploying an osgi-bundle jsp hook in liferay-7 http : stackoverflow.com questions 36157832 deploying-an-osgi-bundle-jsp-hook-in-liferay-7 36180179 36180179 .. . .. . Further Informations : .. . .. . I work on windows .", "try changing this ivy.jar.url repository.liferay.com nexus content repositories https : repository.liferay.com nexus content repositories liferay-public-snapshots com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar in build.properties then you follow this to put a jar of evy to make it work link http : stackoverflow.com questions 12677816 ant-target-failing-antlib-or-ivy-issue", "The issue is resolved by myself look at liferay forum : .. . .. . https : web.liferay.com it community forums - message boards message 73382191", "Here are the pom.xml dependencies : .. . .. . If you have other Liferay Faces dependencies check out the Liferay Faces version scheme https : dev.liferay.com develop tutorials - knowledge base 6-2 understanding-the-liferay-faces-version-scheme liferay-faces-version-scheme-for-releases-after-liferay-faces-ga6 for more information on which version s you should use .", "I am using Liferay 7.0 ge 1 here is my code..ItemFound is the entity i have used. .", "They apparently change the repository of Liferay you can check it on Date Modification on : https : repository.liferay.com nexus content repositories .", "Whenever I try to deploy war file into deploy folder of Liferay 7.0 ce portal or just run my project from liferay-ide Hot deploymentexception is being thrown along side javax.xml.parsers : .. . .. . FactoryConfigurationError : Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found", "Liferay 7 also now requires Java8 something that came in during the last days of the beta cycle - because now every application server that it s running on does support Java8 .", "I found out on a Liferay 7.0.1 GA 2 it doesn t work but it works on a GA 1 .", "I have successfully created new theme in Liferay 7.0-ga2 and also created a language hook and plugin .", "Additionally check out the blade.hook.jsp sample here : https : github.com liferay liferay-blade-samples tree master gradle blade.hook.jsp .. . .. . The build.gradle file has only the version set to 1.0.0 and the bnd.bnd in addition to what you have in yours includes .. . .. . I d start there .", "The solution was in my case to change the ivy settings in build.properties in plugins SDK root directory like this : .. . .. . I m however not familiar with changes Liferay made in the PATCHET version of ivy so it could possibly lead to some other problem .", "Check this article https : web.liferay.com de community forums - message boards message 72611307 and the references for the list of supported dbs and a way to add oracle support again or try Liferay dxp which supports the commercial databases .", "I am looking forward for the code function used for uploading and changing the user-profile picture in Liferay 7.0 under the following link : User - User Organisations - Test User .. . .. . Any help would be highly appreciated .", "As I am a beginner I use incorrectly dependences and try to import kernel but portal-service 7.0.0 is enough .", "Can anyone help me how can i open a popup for selecting a file form documents and media", "Attached is screen shot of the output https : drive.google.com open id 0B9t253zQ5s5eZWNiVGxTRVZYX2M .. . .. . I am not able to add screenshot as i dont have enough reputation. . plz . .", "I see this in the log : .. . .. . 15 : 26 : 51 185 INFO com.liferay.portal.kernel.deploy.auto.AutoDeployScanner AutoDeployDir : 252 Processing blade.hook.jsp-1.0.0.jar 15 : 26 : 59 253 INFO Refresh Thread : Equinox Container : 10c85452-c442-0016-189b-ada8a71b73c4 BundleStartStopLogger : 38 STOPPED com.liferay.login.web 1.0.5 171 15 : 26 : 59 659 INFO Refresh Thread : Equinox Container : 10c85452-c442-0016-189b-ada8a71b73c4 BundleStartStopLogger : 35 STARTED com.liferay.login.web 1.0.5 171 .. . .. . The JSP just does this : .. . .. . p style color : red changed p .. . .. . And I can see the red text changed when I sign out of Liferay and then click Sign In .", "i am trying to create a simple button that when clicked increments text font-size by one using command or execCommand functions but can t seem to figure out how to do that .", "I ve gone through your documentations but couldn t find much information on it .", "Kindly help on following issues .", "1 Using command attribute to call function", "2 How to set .. . .. . 3 Is ckeditor.ui.addButton deprecated in your version", "as i can only add and use richComboBox plugins of ck-editor in current version of AlloyEditor .", "I want to have a custom logo for each site of course .", "1 .", "Go into Control Panel - Configuration - Instance Settings - Miscellaneous tab and make sure Allow site administrators to use their own logo checkbox is checked .", "2 .", "Now you can define a per site logo via : your site in control panel - Navigation - Public Pages - Configuration menu .", "Hier Logo Tab appears now .", "For JSP files the fragment is working ok but when I want to modify a javascript file the fragment is not possible .", "Any ideas Thanks", "So i try assign serviceLocator staticUtil com.liferay.portal.template.ServiceLocator but staticUtil get error .. . .. . The following has evaluated to null or missing : staticUtil in template 20115 20159 21387 at line 9 column 27 Tip : If the failing expression is known to be legally refer to something that s sometimes null or missing .. . .. . I had add freemarker.engine.restricted.classes freemarker.engine.restricted.packages freemarker.engine.restricted.variables in portal-ext.properties", "Hi here is a link-to develop a portlet in vaadin 7 link https : web.liferay.com fr web 26526 blog - blogs developing-a-portlet-in-vaadin-7 The author loaded the project into his own github account you can access it from here https : github.com dnebinger vaadin-sample-portlet .", "If yes what are the challenges in achieving this", "Eg : OSGi Modularity etc .", "3 .", "If no why not", "4 .", "From a scaling perspective which is more preferable Amazon Elastic Beanstalk or AWS Lambda if it s possible .", "Checked the osgi shell with .. . .. . The state is Installed .", "Not sure how to proceed further in terms of the deployment .", "How will the State change to Active", "Try the following command : .. . .. . start 455 .. . .. . Probably your bundle does not resolve correctly .", "You should get a an exception that tells you the reason after calling start .", "I did and then I get start 455 org.osgi.framework.BundleException : Invalid operation on a fragment .", "and also for resolve Not all bundles could be resolved .", "Ok . . so it is normal that start does not work on a fragment .", "Do you see any details after the resolve command", "Maybe in the log", "diag 455 mytest.hook 455 Unresolved requirement : Fragment-Host : com.liferay.blogs.web bundle-version 1.0.0", "Is the host bundle installed", "yes the host was active .", "Will update the post indicating the solution", "I was able to get it deployed successfully by actually putting it to the deploy folder from which the Liferay s deployer kick s in and does the rest .", "So basically the deployer doesn t get notified when you do it from the server tab and add you project for deployment .", "If you have the Vaadin 7 Control Panel installed and you ve deployed the LazyPagedContainer Add On you can download and deploy the vaadin-sample-portlet-1.0-SNAPSHOT.war link https : web.liferay.com documents 26528 48600753 vaadin-sample-portlet-1.0-SNAPSHOT.war 70acad3b-c875-4e24-b820-e7507acd58b9 file directly from this blog .", "I am not getting that next page tems per page ..and all .in the screen. . hELP ME .. . .. . Please guide me where i have gone wrong. .", "I need to create a custom taglib available across all modules portlets but I have litteraly no idea where to start .", "Do you have any idea", "Should I store the taglib definition classes and JSPs in an OSGi modules", "And if not where and how can I reference it from a portlet module", "Thank you very much", "Instead of the old one ." ] }
{ "confidence": [ 57.39051055908203, 52.971710205078125, 51.306678771972656, 49.35975646972656, 46.15038299560547, 45.62425231933594, 44.23097229003906, 44.20958709716797, 43.757747650146484, 43.43459701538086, 43.35954284667969, 40.15715789794922, 38.76542282104492, 38.230979919433594, 38.22114562988281, 37.98779296875, 36.981117248535156, 36.37836456298828, 33.91923141479492, 32.86796569824219 ], "content": [ "Question : I ve start the new module for Liferay 7 GA1 using .. . .. . This is my gradle.build .. . .. . In the portal the module com.liferay.my.account.web is at 1.0.2 version but in the repository https : repository.liferay.com nexus content repositories liferay-ce com liferay com.liferay.my.account.web the version is still 1.0.1 .. . .. . Building the module I have this error : .. . .. . Setting versione 1.0.1 for com.liferay.my.account.web the gradle build is ok but the deploy process fails with : .. . .. . The complete source code here : https : github.com baxtheman liferay7GA1-sandbox tree master modules .. . .. . Liferay forum question : https : web.liferay.com it community forums - message boards message 73513613 .. . .. . What s wrong .. . Answer : The issue is resolved by myself look at liferay forum : .. . .. . https : web.liferay.com it community forums - message boards message 73382191", "Question : I am trying to run my 6.2.5 portlet project from liferay 7.x portal . .. . .. . In project facet under Runtime environment Liferay 7.x server is not visible . Whenever I try to deploy war file into deploy folder of Liferay 7.0 ce portal or just run my project from liferay-ide Hot deploymentexception is being thrown along side javax.xml.parsers : .. . .. . FactoryConfigurationError : Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found .. . Answer : Your version of the Liferay Faces Bridge is not compatible with Liferay 7 . You should use Bridge API 4.x Bridge Impl 4.x and Bridge Ext 5.x . Since the Bridge has not been released for Liferay 7 you will need to use SNAPSHOT builds https : web.liferay.com web neil.griffin blog - blogs liferay-faces-project-news-april-2016 . Here are the pom.xml dependencies : .. . .. . If you have other Liferay Faces dependencies check out the Liferay Faces version scheme https : dev.liferay.com develop tutorials - knowledge base 6-2 understanding-the-liferay-faces-version-scheme liferay-faces-version-scheme-for-releases-after-liferay-faces-ga6 for more information on which version s you should use .", "Question : null .. . Answer : I worked Application Display Templates on liferay-6.2 I use freemarker help pagination the dynamics data list of liferay . When I upgrade to liferay-7 it is a problem . Liferay 7 use code assign records ddlDisplayTemplateHelper.getRecords reserved record set id for get a-records . Code old .. . .. . assign DDLRecordLocalService serviceLocator.findService com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService assign records DDLRecordLocalService.getRecords reserved record set id assign totalRecord DDLRecordLocalService.getRecordsCount reserved record set id 0 it not work . So i try assign serviceLocator staticUtil com.liferay.portal.template.ServiceLocator but staticUtil get error .. . .. . The following has evaluated to null or missing : staticUtil in template 20115 20159 21387 at line 9 column 27 Tip : If the failing expression is known to be legally refer to something that s sometimes null or missing .. . .. . I had add freemarker.engine.restricted.classes freemarker.engine.restricted.packages freemarker.engine.restricted.variables in portal-ext.properties", "Question : I downloaded Liferay 7 liferay-portal-7.0-ce-ga1 on ubantu 14.04 when I try to connect with MySql DB then I found an error in logs that : Liferay7 not support lesser then MySQL 5.6.4 . But I ve already installed MySql 5.5.44 on environment . On earlier version of MySql i.e . 5.5.44 other portals running perfectly . here is the LOGS .. . .. . I ve queries : .. . .. . Is there any fix available for that except upgrading entire MySql Why Liferay 7 not supporting earlier versions of MySql Reason behind that .. . Answer : Why New releases of software typically use newer dependencies . It s quite some work to support older software thus one is typically happy to just support the latest version and you d want the latest version supported right Liferay 7 also now requires Java8 something that came in during the last days of the beta cycle - because now every application server that it s running on does support Java8 . If that wouldn t happen you d be tied to the past forever . Is there another option I assume that you d be able to implement an adapter to older MySql versions yourself and contribute it to the community - I m aware that there s someone currently implementing CE support for Oracle and SQL Server these will be supported by the commercial offering only", "Question : I am trying to create an liferay-7 plugin project using Ant and I am always recieving the below error can someone help it seems that the server mirrors.lax.liferay.com is down .. . .. . Console output redirected to file : Users yjradeh foo java workspace .metadata .plugins com.liferay.ide.sdk.core sdk.log Buildfile : Users yjradeh foo java liferay-plugins-sdk-7.0 portlets build.xml get Getting : http : mirrors.lax.liferay.com cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get To : Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get Error getting http : mirrors.lax.liferay.com cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar to Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get Getting : http : cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get To : Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar .. . .. . BUILD FAILED Users yjradeh foo java liferay-plugins-sdk-7.0 portlets build.xml : 5 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-plugins.xml : 5 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common.xml : 57 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-ivy.xml : 130 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-ivy.xml : 81 : HTTP Authorization failure .. . .. . Total time : 1 second .. . Answer : I have also ran into this problem . The solution was in my case to change the ivy settings in build.properties in plugins SDK root directory like this : .. . .. . I m however not familiar with changes Liferay made in the PATCHET version of ivy so it could possibly lead to some other problem . But it works for portlets apparently .", "Question : I am trying to create an liferay-7 plugin project using Ant and I am always recieving the below error can someone help it seems that the server mirrors.lax.liferay.com is down .. . .. . Console output redirected to file : Users yjradeh foo java workspace .metadata .plugins com.liferay.ide.sdk.core sdk.log Buildfile : Users yjradeh foo java liferay-plugins-sdk-7.0 portlets build.xml get Getting : http : mirrors.lax.liferay.com cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get To : Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get Error getting http : mirrors.lax.liferay.com cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar to Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get Getting : http : cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar get To : Users yjradeh .liferay mirrors cdn.repository.liferay.com nexus content repositories liferay-snapshots-ce com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar .. . .. . BUILD FAILED Users yjradeh foo java liferay-plugins-sdk-7.0 portlets build.xml : 5 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-plugins.xml : 5 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common.xml : 57 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-ivy.xml : 130 : The following error occurred while executing this line : Users yjradeh foo java liferay-plugins-sdk-7.0 build-common-ivy.xml : 81 : HTTP Authorization failure .. . .. . Total time : 1 second .. . Answer : I had the same issue while trying to compile the SDK you can try this url : https : repository.liferay.com nexus content repositories liferay-public-snapshots com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT . Instead of the old one . They apparently change the repository of Liferay you can check it on Date Modification on : https : repository.liferay.com nexus content repositories . Comment : try changing this ivy.jar.url repository.liferay.com nexus content repositories https : repository.liferay.com nexus content repositories liferay-public-snapshots com liferay org.apache.ivy 2.4.0.LIFERAY-PATCHED-1-SNAPSHOT org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar in build.properties then you follow this to put a jar of evy to make it work link http : stackoverflow.com questions 12677816 ant-target-failing-antlib-or-ivy-issue", "Question : null .. . Answer : Trying to match Liferay 7 with AWS Lambda https : aws.amazon.com documentation lambda .. . .. . 1 . Can Liferay 7 in Beta 6 currently be deployed onto AWS Lambda Serverless Cloud Code runner 2 . If yes what are the challenges in achieving this Eg : OSGi Modularity etc . 3 . If no why not 4 . From a scaling perspective which is more preferable Amazon Elastic Beanstalk or AWS Lambda if it s possible .", "Question : Liferay 7 GA1 is just releasead but the documentation is not complete yet . How can i change from the default liferay logo to the company logo I want to have a custom logo for each site of course . .. . Answer : 1 . Go into Control Panel - Configuration - Instance Settings - Miscellaneous tab and make sure Allow site administrators to use their own logo checkbox is checked . 2 . Now you can define a per site logo via : your site in control panel - Navigation - Public Pages - Configuration menu . Hier Logo Tab appears now .", "Question : With Liferay 6.x it is very easy to develop and deploy some Vaadin 7 portlets . Because of all changes in Liferay 7 my Portlets won t work . I didn t even get a single Hello World Vaadin portlet to run . I ve already read the article from Sampsa Sohlman Link https : web.liferay.com de web sampsa.sohlman blog - blogs double-seven-vaadin-7-with-liferay-2 but it won t work with the newest Version of Liferay . My question : Is there any chance to get an example Vaadin 7 Liferay 7 Hello World Portlet I m grateful for every answer .. . Answer : Hi here is a link-to develop a portlet in vaadin 7 link https : web.liferay.com fr web 26526 blog - blogs developing-a-portlet-in-vaadin-7 The author loaded the project into his own github account you can access it from here https : github.com dnebinger vaadin-sample-portlet . Feel free to clone it fork it modify as you d like . If you have the Vaadin 7 Control Panel installed and you ve deployed the LazyPagedContainer Add On you can download and deploy the vaadin-sample-portlet-1.0-SNAPSHOT.war link https : web.liferay.com documents 26528 48600753 vaadin-sample-portlet-1.0-SNAPSHOT.war 70acad3b-c875-4e24-b820-e7507acd58b9 file directly from this blog .", "Question : null .. . Answer : I have created a liferay fragment for the calendar web portlet . For JSP files the fragment is working ok but when I want to modify a javascript file the fragment is not possible . In liferay-6.2 you can modify javascript files with hooks and since fragments are the new way to modify liferay modules jsp I thought this was posible . Any ideas Thanks", "Question : With Liferay 6.x it is very easy to develop and deploy some Vaadin 7 portlets . Because of all changes in Liferay 7 my Portlets won t work . I didn t even get a single Hello World Vaadin portlet to run . I ve already read the article from Sampsa Sohlman Link https : web.liferay.com de web sampsa.sohlman blog - blogs double-seven-vaadin-7-with-liferay-2 but it won t work with the newest Version of Liferay . My question : Is there any chance to get an example Vaadin 7 Liferay 7 Hello World Portlet I m grateful for every answer .. . Answer : Liferay s message board thread has now answer for you : .. . .. . https : web.liferay.com community forums - message boards message 76582064 Comment : From the Help Center http : stackoverflow.com help how-to-answer : Links to external resources are encouraged but please add context around the link so your fellow users will have some idea what it is and why it s there . Always quote the most relevant part of an important link in case the target site is unreachable or goes permanently offline .", "Question : null .. . Answer : I want to display list of items on a page..using Liferay search container. . I am using Liferay 7.0 ge 1 here is my code..ItemFound is the entity i have used. . I am not getting that next page tems per page ..and all .in the screen. . hELP ME .. . .. . Please guide me where i have gone wrong. . Attached is screen shot of the output https : drive.google.com open id 0B9t253zQ5s5eZWNiVGxTRVZYX2M .. . .. . I am not able to add screenshot as i dont have enough reputation. . plz . .", "Question : I tried to overwrite a JSP via Module . The module is deployt but it doesnt take any effect . I try to overwrite the create account.jsp . My bnd.bnd looks like this : .. . .. . Bundle-Version : 1.0.0 Fragment-Host : com.liferay.login.web bundle-version 1.0.5 -sources : true .. . .. . My Module is synchronized with the server . I use the developper-mode and Liferay 7.0.1 GA2 . The create account.jsp is under the following path : .. . .. . test-module src main resources META-INF resources create account.jsp .. . .. . Any ideas why it s not working The state of my portlet is installed . I can do the compileJSP taks and it changes to resolved . I think it should be active like all the other modules . I also can t resolve the variables from the JSP which are in other JSP-files . As example : PropsValues . Can it be that there are wrong missing dependencies in the build.gradle dependencies compile group : com.liferay.portal name : com.liferay.portal.kernel version : 2.0.0 compile group : com.liferay.portal name : com.liferay.util.taglib version : 2.0.0 compile group : javax.portlet name : portlet-api version : 2.0 compile group : javax.servlet name : servlet-api version : 2.5 compile group : jstl name : jstl version : 1.2 compile group : org.osgi name : org.osgi.compendium version : 5.0.0 .. . .. . i builded the hole project again without IDE and i get the same problem . When i try to deploy it a error happens . But it s still deployt on the server with the state installed . When i copy the JAR after the blade deploy into the deploy folder the state changes to resolved . It s the same problem as here : Deploying an osgi-bundle jsp hook in liferay-7 http : stackoverflow.com questions 36157832 deploying-an-osgi-bundle-jsp-hook-in-liferay-7 36180179 36180179 .. . .. . Further Informations : .. . .. . I work on windows . The log says the follwing when i deploy : .. . .. . And it Looks like the following picture : .. . .. . Login Screenshot http : i.stack.imgur.com CiC02.png .. . Answer : A fragment is never activated . It s attached to the host module at the time when the host module is resolved . It sounds like one of the problems you have is solved by manually copying your fragment JAR to Liferay s deploy folder right One thing you could to to make sure the fragment attaches to the host is from the gogo-shell type refresh host bundle id . Not entirely certain but that should make the host pick up the fragment . Additionally check out the blade.hook.jsp sample here : https : github.com liferay liferay-blade-samples tree master gradle blade.hook.jsp .. . .. . The build.gradle file has only the version set to 1.0.0 and the bnd.bnd in addition to what you have in yours includes .. . .. . I d start there . Edit to address comment : I tested the liferay-blade-samples https : github.com liferay liferay-blade-samples fragment project from the command-line by doing the following : .. . .. . 1 . Navigate to the liferay-blade-samplesclone and into gradle blade.hook.jsp and build the project . 2 . Copy the JAR into my running Liferay CE GA2 installation s deploy folder . I see this in the log : .. . .. . 15 : 26 : 51 185 INFO com.liferay.portal.kernel.deploy.auto.AutoDeployScanner AutoDeployDir : 252 Processing blade.hook.jsp-1.0.0.jar 15 : 26 : 59 253 INFO Refresh Thread : Equinox Container : 10c85452-c442-0016-189b-ada8a71b73c4 BundleStartStopLogger : 38 STOPPED com.liferay.login.web 1.0.5 171 15 : 26 : 59 659 INFO Refresh Thread : Equinox Container : 10c85452-c442-0016-189b-ada8a71b73c4 BundleStartStopLogger : 35 STARTED com.liferay.login.web 1.0.5 171 .. . .. . The JSP just does this : .. . .. . p style color : red changed p .. . .. . And I can see the red text changed when I sign out of Liferay and then click Sign In . Does that work for you Comment : Thank you Russ Bohl With the Refresh is a nice way to change the status from installed to resolved . I added the 2 lines but it doesn t change anything . I also tried to build 2 sample project but they didn t work for me either . Any ideas Comment : See my edit : It was too long to put in a comment . Comment : I edited my question . My log looks like yours but the login looks like without hook . On which OS do you work I work on windows Comment : It worked on a Linux server on GA 1 i have to check if the problem is the version or the OS.. . Comment : I found out on a Liferay 7.0.1 GA 2 it doesn t work but it works on a GA 1 . The only thing I changed was the com.liferay.login.web version in the bnd.bnd file", "Question : Created an osgi-bundle jsp hook in liferay . Using the server tab in Liferay Workspace environment added the bundle to configured server . Checked the osgi shell with .. . .. . The state is Installed . Not sure how to proceed further in terms of the deployment . How will the State change to Active .. . Answer : I was able to get it deployed successfully by actually putting it to the deploy folder from which the Liferay s deployer kick s in and does the rest . So basically the deployer doesn t get notified when you do it from the server tab and add you project for deployment .", "Question : Can anyone help me how can i open a popup for selecting a file form documents and media I am using Liferay DXP .. . .. . Thanks .. . Answer : Step 1 : create document library URL in your jsp Comment : stackoverflow.com help how-to-answer http : stackoverflow.com help how-to-answer", "Question : Created an osgi-bundle jsp hook in liferay . Using the server tab in Liferay Workspace environment added the bundle to configured server . Checked the osgi shell with .. . .. . The state is Installed . Not sure how to proceed further in terms of the deployment . How will the State change to Active .. . Answer : Try the following command : .. . .. . start 455 .. . .. . Probably your bundle does not resolve correctly . You should get a an exception that tells you the reason after calling start . Comment : I did and then I get start 455 org.osgi.framework.BundleException : Invalid operation on a fragment . and also for resolve Not all bundles could be resolved . Comment : Ok . . so it is normal that start does not work on a fragment . Do you see any details after the resolve command Maybe in the log Comment : diag 455 mytest.hook 455 Unresolved requirement : Fragment-Host : com.liferay.blogs.web bundle-version 1.0.0 Comment : Is the host bundle installed Comment : yes the host was active . It seems to have something to do with the deployer in liferay . Will update the post indicating the solution", "Question : null .. . Answer : I am coding an application using Liferay 7 and OSGi modules . I need to create a custom taglib available across all modules portlets but I have litteraly no idea where to start . Do you have any idea Should I store the taglib definition classes and JSPs in an OSGi modules And if not where and how can I reference it from a portlet module Thank you very much", "Question : Can anyone help me how can i open a popup for selecting a file form documents and media I am using Liferay DXP .. . .. . Thanks .. . Answer : Step 2 : Create a div or html content documentLibraryInput id documentLibraryInput article-image src style width : 82px height : 83px vspace 0 showImages Select a thumbnail image", "Question : null .. . Answer : I am trying to write integration tests for liferay-7 portlets with gradle arquillian and bnd tool . This is my deployment method in the test class : .. . .. . And this is the bnd-test.bnd file : .. . .. . With functional tests this works fine but the problem comes out when i try to do some Integration tests and try to use external libraries like .. . com.liferay.portal : com.liferay.portal.test version 1.0.0 .. . .. . When I am going to use some classes of this library like this : .. . .. . I get this exception : .. . .. . I think that s because the BndProjectBuilder does not include the dependencies jar or I bad configure the bnd file . Someone has already encountered this problem", "Question : I downloaded Liferay-7 Tomcat bundle and using Oracle 11g database . I tried adding ojdbc6 g.jar ojdbc14.jar and classes12.jar but nothing is working . Every time getting NullPointerException because of incompatible hibernate dialect . .. . Answer : Liferay7 CE does not support oracle and other commercial dbs . Check this article https : web.liferay.com de community forums - message boards message 72611307 and the references for the list of supported dbs and a way to add oracle support again or try Liferay dxp which supports the commercial databases ." ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
activemodel@frameworks@48
activemodel -- a toolkit for building modeling @placeholder like active record .
{ "confidence": [ 28.80643081665039, 28.791744232177734, 26.214088439941406, 25.740314483642578, 25.648727416992188, 25.018566131591797, 24.788867950439453, 23.997791290283203, 23.715194702148438, 23.558639526367188, 23.558639526367188, 23.180849075317383, 23.104467391967773, 23.104467391967773, 23.104467391967773, 22.7860164642334, 22.70254135131836, 22.694419860839844, 22.213029861450195, 22.083690643310547, 21.698974609375, 21.618303298950195, 21.618303298950195, 21.470993041992188, 21.219444274902344, 21.19225311279297, 21.155139923095703, 20.860265731811523, 20.860265731811523, 20.832178115844727, 20.832178115844727, 20.832178115844727, 20.59752655029297, 20.59752655029297, 20.14307403564453, 19.968828201293945, 19.8114013671875, 19.80954360961914, 19.616451263427734, 19.616451263427734, 19.616451263427734, 19.616451263427734, 19.616451263427734, 19.374101638793945, 19.374101638793945, 19.374101638793945, 19.043659210205078, 18.950864791870117, 18.926685333251953, 18.595674514770508, 18.595674514770508, 18.595674514770508, 18.595674514770508, 18.595674514770508, 18.595674514770508, 18.595674514770508, 18.595674514770508, 18.53369140625, 18.53369140625, 18.391273498535156, 18.30720329284668, 17.94335174560547, 17.93896484375, 17.927392959594727, 17.90438461303711, 17.885826110839844, 17.850446701049805, 17.571449279785156, 17.502866744995117, 17.37224769592285, 17.37224769592285, 17.37224769592285, 17.37224769592285, 17.37224769592285, 17.37224769592285, 17.37224769592285, 17.37224769592285, 17.37224769592285, 17.370498657226562, 17.370498657226562, 17.370498657226562, 17.370498657226562, 17.320425033569336, 17.25961685180664, 17.019031524658203, 16.657054901123047, 16.657054901123047, 16.56259536743164, 16.48208999633789, 16.48208999633789, 16.147071838378906, 16.147071838378906, 16.147071838378906, 16.147071838378906, 16.147071838378906, 16.147071838378906, 15.998254776000977, 15.937112808227539, 15.937112808227539, 15.937112808227539 ], "content": [ "It is not active record .", "If you re creating a model that behaves like ActiveModel it should comply with the ActiveModel API .", "I want to use ActiveModel : : Validations in a small Roda app and I really want to keep it small and I would like to avoid loading the entirety of ActiveModel in it .", "Is there a way to require only ActiveModel : : Validations", "via ActiveModel : : Dirty http : api.rubyonrails.org classes ActiveModel Dirty.html", "But ActiveModel doesn t have such functionality .", "@Tilo you probably already figured out but.. . You can use ActiveModel : : Model api.rubyonrails.org classes ActiveModel Model.html http : api.rubyonrails.org classes ActiveModel Model.html", "as provided by ActiveModel Dirty .", "In this case that would be the documentation ActiveModel : : SecurePassword http : api.rubyonrails.org classes ActiveModel SecurePassword ClassMethods.html .", "Mongoid behaves slightly different to Active Record when using valid", "Because Column type should not be used in active record database .", "However I m running into ActiveModel : : ForbiddenAttributesError .", "How do I test ActiveModel properly", "Because you want test the ActiveModel library .", "How to impliment ActiveModel associations tableless nested models", "I thought it might be some rails ActiveModel issue on sharing at record in different threads .", "I managed to load only ActiveModel validations and it s dependencies I ended up requiring .. . .. . just to make this pass : .. . .. . so it seems I ll be requiring the entire active model or find an alternative validations framework .", "Reusing ActiveModel : : Dirty and ActiveModel : : AttributeMethods which are already included into ActiveRecord : : Base WOULD keep it simple if only that were possible .", "I just know that reaching into ActiveModel like that for control-flow is generally not the best practice .", "Does your Gemfile.lock file mention this version of ActiveModel", "My application uses plain Ruby classes with ActiveModel : : Validations without implementing ActiveRecord : .. . .. . I would like Car to check the nested-attributes that are of ActiveModel : : Validations in this case engine .", "I have a module and it includes activemodel and I want to test it using rspec .", "The ActiveModel : : Lint : : Tests are there to make sure your model complies with such API .", "ActiveModel : : Validations .. . .. . It seems I would use : http : api.rubyonrails.org classes ActiveModel Validations ClassMethods.html .. . .. . Any other tips or suggestions", "Your problem is that from Rails 3.1 to 3.2 checking of mass-assignment protection for Active Record models is set to strict by default .", "Yeah something like that is what I ended up doing but I was wondering if there was a way to do it using ActiveModel methods .", "At least with activemodel-4.2.6 . an attempt to require active model validations results with .. . .. . Hmff OK writing this question I found the solution", "There must be a method in ActiveModel : : Errors or somewhere else isn t there", "I m using bcrypt-ruby for passwords in ActiveModel objects .", "ActiveModel spec http : guides.rubyonrails.org active model basics.html securepassword has explicit include ActiveModel : : SecurePassword for model although it s now not needed - it s included by default for each model", "yeah that s probably a cleaner alternative but what i really want is to see if ActiveModel methods will integrate with my class without any failure and that is why ActiveModel : : Lint : : Tests is really important for me .", "You can check ActiveModel documentation and source code at : .. . .. . https : github.com rails rails tree master activemodel .. . .. . I guess you have to do it old fashion way using an array of chapters and a reference to the book in the chapters .", "http : api.rubyonrails.org classes ActiveModel Validations.html method-i-valid-3F .. . .. . valid", "https : github.com rails rails blob master activemodel lib active model model.rb", "In my Rails 3.2.11 and development-environment when I try to have an active model : .. . .. . I have an error : .. . .. . NameError : uninitialized constant ActiveModel : : Model .. . .. . But when I include it manually : .. . .. . Now it works", "I like this because I m a fan of testing validation through the ActiveModel : : Validations module .", "That is a part of ActiveModel : : Dirty You can see it here https : github.com rails rails blob af64ac4e5ce8406137d5520fa88e8f652ab703e9 activemodel lib active model dirty.rb L146 Example .. . .. . Change the name :", "If this is part of a bigger picture relavent to ActiveModel you can make table-less models see railscasts.com episodes 219-active-model http : railscasts.com episodes 219-active-model and could use similar technique for table-less attributes but again would be overkill for such a simple task.. . keeping it simple is best", "I m trying to determine the proper ActiveModel realtionship for the following situation : there are pictures and there are different categories of them : foo bar baz and qux .", "ActiveModel : : SecurePassword is an ActiveSupport : : Concern which extend class and instance of class with some functionalities .", "How do I determine if an associated model attribute has been updated as ActiveModel : : Dirty does not work on associated records", "I have a Rails 3.0.9 app that once it is deployed suffers from a bunch of ActiveModel : : MissingAttributeErrors that crop up causing 500s .", "It should tip off which attribute column in which model is giving the ActiveModel : : MissingAttributeError .", "You could override the ActiveModel handling the errors strings .. . 2 .", "can you paste all references to activemodel from Gemfile.lock please", "You can use the validations http : api.rubyonrails.org classes ActiveModel Validations.html API for it .", "Active Record s valid", "There is an after create callback which is only called if the record is a new record after it is saved .", "It goes something like this : .. . .. . I know I can use something like ActiveModel : : Dirty but I have no idea how to do it do you have any idea aout this", "Calling ActiveModel : : Validations valid on my @item instance is removing my error messages .", "ActiveModel : : Model is new for Rails 4 which is why it shows up on Github master but not in the 3.x gems .", "If you want to use this ActiveModel with SimpleForm you will also have to implement the persisted method .", "It seems that the ActiveModel : : Model module does not exist anymore you have to include manually the modules you want for your model .", "I have tried aliasing define attribute methods before including ActiveModel : : Dirty but with no luck : I get a not defined method error .", "You do have to reimplement some of the methods yourself but at least the behaviour will be mostly consistent with ActiveModel .", "its simple enough to do with basic ruby i think using ActiveModel for this is extreme overkill .", "And I blame ActiveRecord for overriding define attribute methods such that you can t reuse the define attribute methods method from ActiveModel : : AttributeMethods .", "I have a controller that looks like this : .. . .. . And I m using ActiveModel : : Serializer to serialize the data .", "However this is what the JSON looked like : .. . .. . Is what I m trying to do even allowed by ActiveModel : : Serializers", "1 - ActiveRecord base https : github.com rails rails blob a26a3a075637215c9028308436ca89cba8da2ed5 activerecord lib active record base.rb L310 class includes ActiveModel : : SecurePassword by default .", "Context : I have a non persisted Rails 4 model http : blog.isnorcreative.com 2014 05 08 easier-non-activerecord-models-in-rails-4.html using ActiveModel : : Model http : api.rubyonrails.org classes ActiveModel Model.html that according to its documentation includes ActiveModel : : Validations http : api.rubyonrails.org classes ActiveModel Validations.html .. . .. . Code : .. . .. . Problem : When I ll create a new Person as p Person.new first name : Evil should be validate that is an evil person .", "To simplify it was something like : .. . .. . The the aggregator did something like the following to build a table of posts per day : .. . .. . A call to group query results in an ActiveModel : : MissingAttributeError since I think the attempt to includes Wombat fails because wombat id wasn t in the attributes included in the select .", "Both result sets are rendered using ActiveModel : : Serializers in the correct format .", "The problem is that when I try to implement Dirty on this object as described in the docs http : api.rubyonrails.org classes ActiveModel Dirty.html I m getting an error as both ActiveRecord and ActiveModel have defined define attribute methods but with different number of parameters so I m getting an error when trying to invoke define attribute methods : bar .", "I have an active model model that I would like to use form-for with .", "I am assuming here I would need to require some modules for example activemodel which seems to provide ActiveRecord-like capabilities without necessarily having a DB in application.rb but I can seem to find which .", "Is there a way to determine whether the record is a newly created record or an old one from update", "Basically Request.body Whois : : Record .", "function determines if a record has been saved .", "http : api.rubyonrails.org classes ActiveModel Validations.html .. . .. . How would you change the validation message", "The test that gives me the deprecation-warning does not use any Rails except for ActiveModel .", ".. . .. . After run heroku logs I get the following error : .. . .. . Could not find activemodel-3.2.0 in any of the sources .. . .. . Thanks in advance", "I ll pick this apart : I assume all I need to read up on is ActiveModel : : Validations in the API reference", "I have gotten as far as finding that ActiveModel handles the errors rather than ActiveRecord but I can t find the errors themselves .", "Creating variations via ActiveModel : : Serializers will end up putting public-API view concerns in your controllers or models .", "Unfortunately using an ActiveModel : : EachValidator doesn t work for a custom validator that inspects more than one attribute .", "I have a User class which is a plain ruby object with some ActiveModel functionality included .", "Unfortunately the fact that it s ActiveRecord rather than ActiveModel means that I can t include that mixin into my class .", "Im getting load missing constant : Unable to autoload constant ActiveModel : : Errors expected home richardlewis Rails lnf api lib active model errors.rb to define it LoadError", "https : github.com rails rails tree 3-2-stable activemodel lib active model .. . .. . For Rails 3.x you will need to include each of the modules manually .", "Of course I could write the required methods manually but I was wondering if it was possible to do using Rails modules by extending ActiveModel functionality to attributes not handled by ActiveRecord .", "This approach might work in some cases but one thing it doesn t do that ActiveModel : : Dirty would do for you is include this change in the hash returned by the changes method .", "I am building a application in which i have a model user In the first version of the application there will be no mobile number column for the users in the later version it must be present is there any way to add versioning to models so that active record validation can be written to a particular version .", "Here are more details : .. . .. . http : api.rubyonrails.org v3.2.9 classes ActiveModel MassAssignmentSecurity ClassMethods.html .. . .. . The alternative is to set some of the attributes when you first create the record and set others after -- like so : .. . .. . In addition if you re having issues with using the column name type because rails is getting confused and thinks you want to use Single Table Inheritance STI check the answer to this question to see how to get around it : http : guides.rubyonrails.org", "If I m looking into the source of SecurePassword on github - https : github.com rails rails blob 52ce6ece8c8f74064bb64e0a0b1ddd83092718e1 activemodel lib active model secure password.rb I see following lines .. . .. . How include call works here inside the method", "There is also an after update callback for use if this was an existing record which was changed and saved .", "@colllin : When creating a record created at and updated at will be equal in an after save callback .", "I am building a rails app without a database .", "Adding errors to a record does NOT make it invalid .", "It s in the model but you re referring to an instance variable @record", "Something along the lines of : .. . .. . So that values such as 47 weeks simply become 47 but there isn t a Slice method for ActiveRecord ActiveModel and I don t know the equivalent .", "ActiveModel : : Serializer s API has not really been consistent in v0.9 however if you upgrade to v0.10 you could use the instance options method to access the additional params .", "my answer here http : stackoverflow.com questions 12485404 how-to-implement-multiple-different-serializers-for-same-model-using-activemodel 13072386 noredirect 1 comment41328063 13072386", "Since everything in Rails 3 s ActiveModel is a named scope thanks to ARel this must be possible somehow or tests would indeed be very brittle .", "I use an ActiveModel class without data table : .. . .. . By delegate I want to be able to call Dashboard.address and get back Account.find by user id Dashboard.user id .address .", "Instead of hacking deeper and deeper to replicate ActiveRecord functionality you may want to consider actually inheriting from ActiveRecord : : Base instead of including ActiveModel .", "You can see in the rails source https : github.com rails rails blob 4642d68d8021893c69bfd16ed6e926ae03a6d777 activemodel lib active model validations.rb L335 that valid explicitly clears the error messages .", "I am using ActiveModel : : Model so that a custom class can be used with simple-form .", "But this does not include any instructors .. . .. . This gives me an instructors array and a facilities array but activeModel : : Serializers is not used .", "At first I was excited about this one because it gave me two arrays and it used ActiveModel : : Serializers ." ] }
{ "confidence": [ 34.18265914916992, 33.05961227416992, 31.79742431640625, 29.858230590820312, 28.291454315185547, 28.11115264892578, 26.517559051513672, 25.952808380126953, 25.562789916992188, 24.944480895996094, 24.834749221801758, 24.644878387451172, 24.23417854309082, 24.020092010498047, 23.909317016601562, 23.174156188964844, 23.138568878173828, 23.138568878173828, 23.012508392333984, 22.878910064697266 ], "content": [ "Question : I want to use ActiveModel : : Validations in a small Roda app and I really want to keep it small and I would like to avoid loading the entirety of ActiveModel in it . Is there a way to require only ActiveModel : : Validations At least with activemodel-4.2.6 . an attempt to require active model validations results with .. . .. . Hmff OK writing this question I found the solution .. . Answer : I managed to load only ActiveModel validations and it s dependencies I ended up requiring .. . .. . just to make this pass : .. . .. . so it seems I ll be requiring the entire active model or find an alternative validations framework .", "Question : How to impliment ActiveModel associations tableless nested models For example : .. . .. . With ActiveRecord I would create two models and assosiate them with has-many and belongs-to . But ActiveModel doesn t have such functionality . How can I implement this .. . Answer : You simply can t do it that way . It is not active record . You can check ActiveModel documentation and source code at : .. . .. . https : github.com rails rails tree master activemodel .. . .. . I guess you have to do it old fashion way using an array of chapters and a reference to the book in the chapters . Hope this helps Comment : Thank you for your response Dominic . I m new to Ruby language can you explain what you mean by saying a reference to the book in the chapters Comment : Happy I helped So : Your chapter class should have a book member which you would affect to the actual book that the chapter is in . In the book class add an array of all the chapters that the book contains . Comment : Ok i ve got it", "Question : I have an object that inherits from ActiveRecord yet it has an attribute that is not persisted in the DB like : .. . .. . I would like to be able to track changes to bar with methods like bar changed as provided by ActiveModel Dirty . The problem is that when I try to implement Dirty on this object as described in the docs http : api.rubyonrails.org classes ActiveModel Dirty.html I m getting an error as both ActiveRecord and ActiveModel have defined define attribute methods but with different number of parameters so I m getting an error when trying to invoke define attribute methods : bar . I have tried aliasing define attribute methods before including ActiveModel : : Dirty but with no luck : I get a not defined method error . Any ideas on how to deal with this Of course I could write the required methods manually but I was wondering if it was possible to do using Rails modules by extending ActiveModel functionality to attributes not handled by ActiveRecord . .. . Answer : Write the bar method yourself and use an instance variable to track changes . Comment : Yeah something like that is what I ended up doing but I was wondering if there was a way to do it using ActiveModel methods . Comment : its simple enough to do with basic ruby i think using ActiveModel for this is extreme overkill . If this is part of a bigger picture relavent to ActiveModel you can make table-less models see railscasts.com episodes 219-active-model http : railscasts.com episodes 219-active-model and could use similar technique for table-less attributes but again would be overkill for such a simple task.. . keeping it simple is best Comment : Reusing ActiveModel : : Dirty and ActiveModel : : AttributeMethods which are already included into ActiveRecord : : Base WOULD keep it simple if only that were possible . I don t think that reusing methods from a class s ancestors is overkill at all . And I blame ActiveRecord for overriding define attribute methods such that you can t reuse the define attribute methods method from ActiveModel : : AttributeMethods . Why does it have to be so difficult to have a mix of both persisted and non-persisted attributes in a model Comment : This approach might work in some cases but one thing it doesn t do that ActiveModel : : Dirty would do for you is include this change in the hash returned by the changes method .", "Question : In my Rails 3.2.11 and development-environment when I try to have an active model : .. . .. . I have an error : .. . .. . NameError : uninitialized constant ActiveModel : : Model .. . .. . But when I include it manually : .. . .. . Now it works Am I missing something Thanks .. . Answer : ActiveModel : : Model is new for Rails 4 which is why it shows up on Github master but not in the 3.x gems . If you look in the 3.x version branches on Github it is not there either . https : github.com rails rails tree 3-2-stable activemodel lib active model .. . .. . For Rails 3.x you will need to include each of the modules manually . To see what it includes check out the file in the master branch . https : github.com rails rails blob master activemodel lib active model model.rb Comment : If you want to use this ActiveModel with SimpleForm you will also have to implement the persisted method .", "Question : The new record function determines if a record has been saved . But it is always false in the after save hook . Is there a way to determine whether the record is a newly created record or an old one from update I m hoping not to use another callback such as before create to set a flag in the model or require another query into the db . Any advice is appreciated . Edit : Need to determine it in after save hook and for my particular use-case there is no updated at or updated on timestamp Comment : hmm maybe pass a param in a before-save just thinking out loud .. . Answer : I was looking to use this for an after save callback . A simpler solution is to use id changed since it won t change on update or even created at changed if timestamp columns are present . Comment : via ActiveModel : : Dirty http : api.rubyonrails.org classes ActiveModel Dirty.html Comment : It s best to differentiate with an after update and an after create . The callbacks can share a common method that takes an argument to indicate if it s a create or update . Comment : This might has changed . At least in Rails 4 the after save callback runs after the after create or after update callback see guides.rubyonrails.org active record callbacks.html http : guides.rubyonrails.org active record callbacks.html .", "Question : In my Rails 3.2.11 and development-environment when I try to have an active model : .. . .. . I have an error : .. . .. . NameError : uninitialized constant ActiveModel : : Model .. . .. . But when I include it manually : .. . .. . Now it works Am I missing something Thanks .. . Answer : It seems that the ActiveModel : : Model module does not exist anymore you have to include manually the modules you want for your model . Even if the doc states that the module still exists a quick look in the .rvm folder proves that there is no model.rb file anymore : .. . .. . That s funny because this file is still present on github but not in the .gem .", "Question : I have a module and it includes activemodel and I want to test it using rspec . This is my setup so far : .. . .. . inside my class.rb : .. . .. . inside base.rb : .. . .. . inside my module spec.rb : .. . .. . inside spec helper.rb : .. . .. . inside active model.rb : .. . .. . I thought my setup is alright but when I tried to run bundle exec rspec spec I am getting these errors : .. . .. . What am I doing wrong here How do I test ActiveModel properly Thanks in advance Comment : I made it work by changing subject to MyModule : : Base.new . In active model.rb before do @model subject end should be before do @model MyModule : : Base.new .. . Answer : You try to do too much . Because you want test the ActiveModel library . You just need test if your Object include this module Comment : yeah that s probably a cleaner alternative but what i really want is to see if ActiveModel methods will integrate with my class without any failure and that is why ActiveModel : : Lint : : Tests is really important for me . Thanks for the idea though . I really appreciate it . Comment : You can see how dm-rails do this jobs so : like github.com datamapper dm-active model blob master spec https : github.com datamapper dm-active model blob master spec amo validation compliance spec.rb Comment : This is actually a wrong answer . If you re creating a model that behaves like ActiveModel it should comply with the ActiveModel API . The ActiveModel : : Lint : : Tests are there to make sure your model complies with such API .", "Question : How to impliment ActiveModel associations tableless nested models For example : .. . .. . With ActiveRecord I would create two models and assosiate them with has-many and belongs-to . But ActiveModel doesn t have such functionality . How can I implement this .. . Answer : With rails versions 2.3.x you can use the activerecord-tableless http : rubygems.org gems activerecord-tableless gem . With that gem you can have associations and validations without a database . Update .. . .. . I have been added as author to the gem and I have updated the gem to support newer Rails versions . So now we can have tableless models with associations in Rails versions 2.3 Comment : Yes This is exactly what I was looking for . Thanks @Jarl Comment : @Tilo you probably already figured out but.. . You can use ActiveModel : : Model api.rubyonrails.org classes ActiveModel Model.html http : api.rubyonrails.org classes ActiveModel Model.html", "Question : I have an object that inherits from ActiveRecord yet it has an attribute that is not persisted in the DB like : .. . .. . I would like to be able to track changes to bar with methods like bar changed as provided by ActiveModel Dirty . The problem is that when I try to implement Dirty on this object as described in the docs http : api.rubyonrails.org classes ActiveModel Dirty.html I m getting an error as both ActiveRecord and ActiveModel have defined define attribute methods but with different number of parameters so I m getting an error when trying to invoke define attribute methods : bar . I have tried aliasing define attribute methods before including ActiveModel : : Dirty but with no luck : I get a not defined method error . Any ideas on how to deal with this Of course I could write the required methods manually but I was wondering if it was possible to do using Rails modules by extending ActiveModel functionality to attributes not handled by ActiveRecord . .. . Answer : I figured out a solution that worked for me.. . .. . .. . Save this file as lib active record nonpersisted attribute methods.rb : https : gist.github.com 4600209 .. . .. . Then you can do something like this : .. . .. . However it looks like we get a warning when we do it this way : .. . .. . So I don t know if this approach will break or be harder in Rails 4.. . Comment : This is the only answer the really addresses the question but there has to be a way to do this without deprecation warnings . Anyone know what that is", "Question : How to impliment ActiveModel associations tableless nested models For example : .. . .. . With ActiveRecord I would create two models and assosiate them with has-many and belongs-to . But ActiveModel doesn t have such functionality . How can I implement this .. . Answer : You can check out this answer http : stackoverflow.com a 31834543 587959 for another way to do it .", "Question : I have an object that inherits from ActiveRecord yet it has an attribute that is not persisted in the DB like : .. . .. . I would like to be able to track changes to bar with methods like bar changed as provided by ActiveModel Dirty . The problem is that when I try to implement Dirty on this object as described in the docs http : api.rubyonrails.org classes ActiveModel Dirty.html I m getting an error as both ActiveRecord and ActiveModel have defined define attribute methods but with different number of parameters so I m getting an error when trying to invoke define attribute methods : bar . I have tried aliasing define attribute methods before including ActiveModel : : Dirty but with no luck : I get a not defined method error . Any ideas on how to deal with this Of course I could write the required methods manually but I was wondering if it was possible to do using Rails modules by extending ActiveModel functionality to attributes not handled by ActiveRecord . .. . Answer : I m using the attribute will-change method and things seem to be working fine . It s a private method defined in active model dirty.rb but ActiveRecord mixes it in all models . This is what I ended up implementing in my model class : .. . .. . The init bar method is just used to initialise the attribute . You may or may not need it . I didn t need to specify any other method such as define attribute methods or include any modules . You do have to reimplement some of the methods yourself but at least the behaviour will be mostly consistent with ActiveModel . I admit I haven t tested it thoroughly yet but so far I ve encountered no issues . Comment : What is init bar method I can t find it in docs . Comment : As I mentioned in the answer the init bar method is just used to initialise the attribute . If you need some initialisation logic you ll have to define it otherwise you can just ignore it . Comment : Oh it s a method that I have to define.. . it s not a built-in method right Comment : Correct . You have to define it if you need an initialiser .", "Question : null .. . Answer : How do I determine if an associated model attribute has been updated as ActiveModel : : Dirty does not work on associated records Say I have two models RPS and Lawyer with the following association : .. . .. . Lawyers are optionally created through the RPS form as nested-attributes . If a Lawyer is created two relevant values are saved : : email and : rps id . If I then decide to update the lawyer the email attribute how can I determine if the email was changed as active model dirty does not work on associated records rps.lawyers.email changed . Comment : Are you asking from a testing standpoint Comment : @ruby newbie no I m not . Comment : So then what are you trying to accomplish Are you just trying to have some type of callback functionality I just know that reaching into ActiveModel like that for control-flow is generally not the best practice . Can you explain on the high level what you want so I that I can see if there is a more Rails-y way to do it Comment : I am trying to trigger mailers through observers . If a user adds a lawyer after create rps is run in the RPS observer which triggers a mailer . If the user needs to update the lawyer email after update rps is triggered which also has a mailer but this will also be run if any other attribute in the rps model is updated . So the observer needs to check if the lawyer email has changed and if so trigger the mailer . Otherwise the lawyer will receive an email every time an attribute in the rps is changed . Comment : Why not just put the after update on the lawyer instead", "Question : In Rails 4.2.6 I can include gem bcrypt in Gemfile install it and then simply add line has secure password in my model class . I wonder how it works in terms of adding methods to my model class . If I m looking into the source of SecurePassword on github - https : github.com rails rails blob 52ce6ece8c8f74064bb64e0a0b1ddd83092718e1 activemodel lib active model secure password.rb I see following lines .. . .. . How include call works here inside the method How it adds instance methods to my model class How is ClassMethods module gets in my model Is it somehow extending my class because I used has secure password call Or it extending each model by default if corresponding gem is turned on .. . Answer : How include call works here inside the method All ActiveRecord : : Base class has a class-method : has secure password .. . .. . How it adds instance methods to my model class How is ClassMethods module gets in my model With ActiveSupport : : Concern http : api.rubyonrails.org classes ActiveSupport Concern.html magic . Is it somehow extending my class because I used has secure password call No .. . .. . Or it extending each model by default if corresponding gem is turned on No it s just extending your model by default . Comment : Ok so I actually discovered two points here . 1 - ActiveRecord base https : github.com rails rails blob a26a3a075637215c9028308436ca89cba8da2ed5 activerecord lib active record base.rb L310 class includes ActiveModel : : SecurePassword by default . So indeed has secure password call is available to any ActiveRecord model by default no matter if gem is included . 2 . Calling this method has secure password will add instance methods to by model because of include InstanceMethodsOnActivation call . It requires and therefore validates bcrypt gem to be used . Comment : 3 . ActiveModel spec http : guides.rubyonrails.org active model basics.html securepassword has explicit include ActiveModel : : SecurePassword for model although it s now not needed - it s included by default for each model Comment : That s right . ActiveModel : : SecurePassword is an ActiveSupport : : Concern which extend class and instance of class with some functionalities .", "Question : My application uses plain Ruby classes with ActiveModel : : Validations without implementing ActiveRecord : .. . .. . I would like Car to check the nested-attributes that are of ActiveModel : : Validations in this case engine . What s the easiest way to get this behavior .. . Answer : One option is creating your own validation method something like Comment : I was thinking that maybe I wanted to nest the errors from engine into car s errors but it seems like most people think that s an anti-pattern . This seems sufficient for the basic case I m working with .", "Question : My application uses plain Ruby classes with ActiveModel : : Validations without implementing ActiveRecord : .. . .. . I would like Car to check the nested-attributes that are of ActiveModel : : Validations in this case engine . What s the easiest way to get this behavior .. . Answer : I use Gem active type http : github.com makandra active type in almost all my projects for similar requirements . Project statement - Make any Ruby object quack like ActiveRecord . Project github page provides good documentation as well . in your Gemfile add : .. . gem active type .. . .. . Then .. . .. . Now", "Question : I m trying to get Active Model Errors working in a standard ruby class that I m using for stripe . now I m making checking account fail on purpose by not supplying a token and I m just returned an array currently saying : .. . .. . now I ve followed the steps on http : api.rubyonrails.org classes ActiveModel Errors.html so I m not sure why this isn t working does anybody have any idea how to fix this when I m calling : .. . .. . Payment.new user : User.find 1 .managed account it triggers the array above and if I try to call .errors on that I get .. . .. . which is obviously because it s an array and the format isn t correct . Comment : define not working . Comment : payment Payment.new user : User.find 1 and then payment.errors did you try this way Comment : yes that s what I did .. . Answer : The code you have should work to fill errors . The issue is that you can t call .errors on checking account because the return-value from checking account is an Array not a Payment instance . You should be able to make these calls separately on the console to review :", "Question : http : api.rubyonrails.org classes ActiveModel Validations.html .. . .. . How would you change the validation message If I wanted to make it give back a pirate message . Like this : .. . .. . would instead be : .. . .. . Further more if I wanted to run a script on all the error messages to add a funny word to each message without doing each individually How would you suggest doing that I want to do them for all the validations below . ActiveModel : : Validations .. . .. . It seems I would use : http : api.rubyonrails.org classes ActiveModel Validations ClassMethods.html .. . .. . Any other tips or suggestions Comment : add a funny word to each message without doing each individually example .. . Answer : For custom validations I ve been using this with I18n . I believe it should work the same way for normal messages .. . .. . add a funny word to each message without doing each individually .. . .. . 1 . You could override the ActiveModel handling the errors strings .. . 2 . In your views when you show model errors nothing prevents you from playing with the strings .. . .. . @model.errors.full messages.each do msg .. . .. . Funny string +msg .. . .. . end Comment : Thanks . : @Cyril Duchon-Doris", "Question : After have read almost all internet I need you input in this problem . Context : I have a non persisted Rails 4 model http : blog.isnorcreative.com 2014 05 08 easier-non-activerecord-models-in-rails-4.html using ActiveModel : : Model http : api.rubyonrails.org classes ActiveModel Model.html that according to its documentation includes ActiveModel : : Validations http : api.rubyonrails.org classes ActiveModel Validations.html .. . .. . Code : .. . .. . Problem : When I ll create a new Person as p Person.new first name : Evil should be validate that is an evil person . So I expect an error accessor like p.errors which should return me a Hash with all errors . But always is empty p.errors don t returns nothing . Never . .. . Answer : The validations are normally triggered when you save the model . In your case you need to run them manually then check the errors : Comment : And conversely there is also an invalid method which triggers validation too . Comment : Ohhh good point you are right validator is a Class that must be instantiated before and valid do it Comment : Sunil : invalid works too of course : D", "Question : I have a Rails 3.0.9 app that once it is deployed suffers from a bunch of ActiveModel : : MissingAttributeErrors that crop up causing 500s . The errors occur fairly randomly sometimes a page will load other times it won t but the attributes are all existing attributes in the database and should be found . The strange part is that after a while the errors go away . Suddenly they stop causing an issue . I have searched about for a solution to this but this error mostly occurs either when someone has done Model.all : select column x column y and are calling for column z or when they are using cache money . I am doing neither of these things . Can anyone help .. . Answer : I found an interesting take on this that resulted in the same error . In an attempt to reuse code we subclasses a presenters class with a presenters class that performed grouping to use in a graph view . To simplify it was something like : .. . .. . The the aggregator did something like the following to build a table of posts per day : .. . .. . A call to group query results in an ActiveModel : : MissingAttributeError since I think the attempt to includes Wombat fails because wombat id wasn t in the attributes included in the select . This is probably not your answer however since it happens regardless of whether or not cache is enabled .", "Question : In Rails 4.2.6 I can include gem bcrypt in Gemfile install it and then simply add line has secure password in my model class . I wonder how it works in terms of adding methods to my model class . If I m looking into the source of SecurePassword on github - https : github.com rails rails blob 52ce6ece8c8f74064bb64e0a0b1ddd83092718e1 activemodel lib active model secure password.rb I see following lines .. . .. . How include call works here inside the method How it adds instance methods to my model class How is ClassMethods module gets in my model Is it somehow extending my class because I used has secure password call Or it extending each model by default if corresponding gem is turned on .. . Answer : The easiest way of understanding what anything s doing is In this case that would be the documentation ActiveModel : : SecurePassword http : api.rubyonrails.org classes ActiveModel SecurePassword ClassMethods.html . From that you can see that has secure password does this : Comment : Yep I even looked through the sources of SecurePassword module.on github which I provided . I couldn t get how include InstanceMethodsOnActivation works here . I imagine that module ClassMethods inside of module SecurePassword gets embedded extending my model class or each model class . Therefore include call works like a class call on my model . Thus it includes methods inside InstanceMethodsOnActivation into my class . So I only need to now how has secure password appear to by class-method of my module automatically . Comment : This facility provide by ActiveSupport : : Concern" ] }
[ "yes-answer-long", "yes-answer-short" ]
frameworks
UNK_RELATION
arcgis-js-api@web-applications@96
arcgis-js-api -- the arcgis api for javascript is a lightweight way to embed maps and tasks in @placeholder .
{ "confidence": [ 63.56817626953125, 62.085044860839844, 57.585289001464844, 57.178707122802734, 55.20221710205078, 54.67593765258789, 54.19428634643555, 54.19428634643555, 54.19428634643555, 53.44711685180664, 52.80390930175781, 52.80390930175781, 51.259254455566406, 50.86317443847656, 50.86317443847656, 49.9263801574707, 48.5456657409668, 46.89480209350586, 46.36342239379883, 46.36342239379883, 46.36342239379883, 46.36342239379883, 46.36342239379883, 46.36342239379883, 45.428653717041016, 45.337684631347656, 45.14662551879883, 45.01569366455078, 44.497554779052734, 44.30765151977539, 43.48589324951172, 43.2156867980957, 43.2156867980957, 42.98952102661133, 42.4417839050293, 42.4417839050293, 42.42170333862305, 42.42170333862305, 41.854610443115234, 41.82244873046875, 41.76423645019531, 41.667781829833984, 41.37686538696289, 41.34113693237305, 40.77656173706055, 40.597408294677734, 40.2110595703125, 39.54417419433594, 38.97356414794922, 38.935237884521484, 38.7966423034668, 38.70912170410156, 38.44218444824219, 38.44218444824219, 38.44218444824219, 38.44218444824219, 38.44218444824219, 38.433128356933594, 38.006839752197266, 37.758018493652344, 37.758018493652344, 37.758018493652344, 37.719879150390625, 37.708740234375, 37.701412200927734, 37.69730758666992, 37.68111801147461, 36.87235641479492, 36.86823272705078, 36.57534408569336, 36.38641357421875, 36.38641357421875, 36.38641357421875, 36.38641357421875, 36.38641357421875, 36.38641357421875, 36.36375045776367, 36.25608444213867, 36.10223388671875, 36.09236145019531, 35.983638763427734, 35.92646408081055, 35.73637008666992, 35.66667175292969, 35.64599609375, 35.64599609375, 35.444732666015625, 34.72917938232422, 34.04564666748047, 34.04564666748047, 33.933372497558594, 33.933372497558594, 33.933372497558594, 33.933372497558594, 33.933372497558594, 33.933372497558594, 33.933372497558594, 33.933372497558594, 33.933372497558594, 33.901458740234375 ], "content": [ "Is this possible using ArcGIS javascript API", "I m a new ArcGIS Javascript API user .", "I am using Arcgis Javascript API .", "I have used the arcgis-js-api to display vector tiles in an arcgis map .", "I am new to the ArcGIS API for Javscript 4.0 API .", "I m using version 4.0 of the ArcGIS API for my maps .", "Using the ArcGIS JavaScript API 4.0 I want to change ArcGIS webmap view when I clicked a list item .", "I am trying to use a customers ArcGIS system to render a map on a page using the ArcGIS Javascript API .", "I try to add a feature to an ArcGIS feature service through Arcgis JavaScript API and dojo request .", "I am using ArcGIS JS API 4.0 with angular .", "I have a web application using ArcGIS API for Javascript .", "No you cannot use ArcGIS Desktop to run Javascript api app .", "i m trying to arcgis javascript FeatureLayer Eidting.. .", "I couldn t find anything in the ArcGIS JavaScript API site and none of my googles turned up anything .", "I am attempting to merge the closest facility and driving directions examples together on a website using the arcGIS for javascript 3.17 API .", "Are you accessing the data on VM machine from ArcGIS Javascript API", "Our Arcgis-Server10 rest api is configured for CORS .", "As a starting point I want to display any map using ArcGIS js API 4 with AngularJS .", "Has anyone tried to reference the ArcGIS API for JavaScript using StealJS instead of adding .. . .. . to the head tag as in ArcGIS s samples", "So I am using the ArcGIS API javascript in order to get some information from objects in a featurelayer .", "I ve referenced the online ArcGIS Javascript API here but I am not sure it s in the right place .", "I want to add Geo Tagging functionality on esri map using ArcGis API for JavaScript .", "Basically what I am looking for is I want to learn Arcgis javascript api .", "If not suggest me ideas on how to get a Arcgis Server Trial for practicing javascript api .", "I m trying to get a WebMap object as JSON from a JavaScript Map object in the ArcGIS JavaScript API .", "I m using Electron + Arcgis JS API for an application trying to add a KmlLayer to the map returns error i ve tried pointing the file locally however it fails .", "I recommend reading this tutorial for ArcGIS .", "You should explain in your answer that ArcGIS js API relies on the dojo framework thus that your answer is not using Angular JS .", "I m building a react app with webpack and i need to incorporate arcgis maps https : developers.arcgis.com javascript into a react component .", "and query was down.. . .. . .. . 2 . i used the arcgis api s IdentifyParameters .. . .. . my code is follows .", "Unfortunately the ArcGIS API for JavaScript does not provide any methods to export a map object to web map JSON .", "Hi how can I get the Latitude and Longitude using arcgis Javascript", "So is there any possibility to run this javascript code in Arcgis Desktop", "I am running into some issues when switching my application from the Beta 3 version of the 4.0 ArcGIS Javascript API to the new release of the 4.0 Javascript API .", "I have also pulled data from arcgis-server and displayed in Google maps and leaflet .", "Is there anyway to display vector tiles on the fly from arcgis-server in leaflet and Google maps .", "I am using the ArcGIS Javascript API to add some functionality a search widget to an existing web app using AngularJS and JSP .", "EDIT I am seeing now that if I reference the online ArcGIS Javascript API I have a local file that receives the 404 error .", "I am using java to send requests to arcgis-server and get appropriate responses for a given api using the token .", "Is there any way to convert a MySQL table to a ArcGIS shapefile", "At a minimum the FeatureLayer must point to a valid feature service hosted on ArcGIS Server or ArcGIS Online or be constructed with a Feature Collection object .", "My app with ArcGis and Angular works perfectly but when I try to introduce angular-routing and move the ArcGis API code to an other div which would be loaded up with ng-view the Arcgis events don t seem to fire anymore .", "I am new to ARCGIS .", "I am new to ArcGIS javascript and have modified one of the samples at ArcGIS Developers https : developers.arcgis.com javascript 3 to try to show some driving routes on top of a base map .", "I recommend to use dojo esri js API to develop the app if the data is hosted with ArcGIS server .", ".setExtent method didn t work on latest arcgis jsapi .", "Its just a webmap in ArcGIS online and a pretty basic one at that .", "Cross-posted to GIS.SE : gis.stackexchange.com questions 174356 http : gis.stackexchange.com questions 174356 get-json-webmap-from-arcgis-javascript-api-map-object", "I am new to ArcGIS JS so any help would be really appreciated .", "Well Below is the code to add map 3d map using ArcGIS JS API 4.0 .. . .. . for more details related to API and samples Please click here.. . https : developers.arcgis.com javascript beta sample-code get-started-sceneview index.html .. . .. . .. . require .. . esri Map .. . esri views SceneView .. . dojo domReady", "That URL is using the Google Maps Javascript API v3 KmlLayer https : developers.google.com maps documentation javascript kmllayer to render KML .", "Take a look at this post http : gis.stackexchange.com questions 50558 customizing-arcgis-online-application-template-and-uploading-it-back-to-arcgis-o it provides information on how you can customize webmap .", "I have already seen observed that the IrrationalPath exception is defined in the javascript file at http : serverapi.arcgisonline.com jsapi arcgis v 3.3", "I m using the dojo javascript file at http : serverapi.arcgisonline.com jsapi arcgis v 3.3 to display a map on an ASP.NET page .", "I ve tried creating an arcgis directory with an index.js of the built javascript and trying to reference that : .. . .. . That doesn t work .", "I have made an application using the ArcGIS javascript 3.16 version and I m having issues with the french portion of my application .", "I have heard that javascript can be run only in Arcgis Server based web application .", "I am using the ArcGIS Javascrit SDK for a basic user case of placing some markers with text on a map .", "I am trying to figure out how to take lat lon information from a SQL database-table and use that information to create a map layer using the ArcGIS javascript API .", "My client wants to use ARCGIS and they have licensed REST MAP SERVICES .", "In this function I pass in a ArcGIS Point and 50 as my radius .", "And I have Arcgis Desktop 10.3 Trial version installed on my pc .", "I checked only the .ecw from the ArcGIS .", "there ars some issue with scrollbar.. . same issue is happening on arcgis-js-api too... . developers.arcgis.com javascript latest sample-code sandbox https : developers.arcgis.com javascript latest sample-code sandbox sandbox.html sample get-started-mapview Add this in body div style height : 500px div and check.. .", "Take a look at javascript api .", "ArcGIS as WMS : nowcoast.noaa.gov arcgis services nowcoast http : nowcoast.noaa.gov arcgis services nowcoast radar meteo imagery nexrad time MapServer WMSServer request GetCapabilities service WMS", "Try adding it as a dynamic map service instead : .. . .. . The ArcGIS services directory is a very useful thing to play with - I got the above line from the internal Javascript viewer linked from the MapServer page http : gis.srh.noaa.gov arcgis rest services RIDGERadar MapServer .", "Through that way your developer can use google-maps overlay layer to overlay tiles from ArcGIS online .", "Ideally something like : .. . .. . From the Export Web Map Task documentation http : sampleserver6.arcgisonline.com arcgis rest services Utilities PrintingTools GPServer Export 20Web 20Map 20Task in the REST API there s this line that suggests it should exist : .. . .. . The ArcGIS web APIs for JavaScript Flex Silverlight etc .", "Here is a public ArcGIS end-point .", "No errors are being reported and I have used console.log to confirm the data is being pulled correctly form noaa s arcGIS server .", "If you look at the root folder of the NOAA server : .. . .. . http : gis.srh.noaa.gov arcgis rest services .. . .. . You should see RIDGERadar MapServer .", "I have created a simple webmap in ArcGIS online with one tile layer and one feature layer .", "Is it just a webmap in ArcGIS online or you using WebAppBuilder or you have a custom web application .", "In my arcgis map application I am adding legends for featurelayer like this .. . .. . This adds legends for that CityLayer .", "I am really new to dojo and arcGIS so could someone point out where am I going wrong .", "Try to change your URL to http : serverapi.arcgisonline.com jsapi arcgis 3.4 init.js You can download version of esri js API here http : www.esri.com apps products download and look how files are actually stored in the API .", "The following error is also coming up in chrome developer tools : -- XMLHttpRequest cannot load lkm-gis-po.pro.xm.org arcgis rest info f json http : lkm-gis-po.pro.xm.org arcgis rest info f json .", "Look at the API documentation here for a small example : https : developers.arcgis.com javascript latest api-reference esri-Map.html layers .", "My code is as follows : .. . .. . esriConfig.defaults.geometryService new esri.tasks.GeometryService https : utility.arcgisonline.com ArcGIS rest services Geometry GeometryServer .. . .. . map.on layers-add-result initEditing", "I tried to use : .. . .. . but StealJs thinks I am looking for http : serverapi.arcgisonline.com jsapi arcgis 3.4 .js and reports not found 404 .", "require JS is already part of ESRI API .", "Can someone provide a code sample to consume an ArcGIS Map Service into MapBox GL API", "Another possible culprit is the ArcGIS JavaScript API 3.15 in my case - it contains a reference for cacheBust on line 11 in its obfuscated init.js http : js.arcgis.com 3.15 init.js but I didn t manage to track the place where the query-string is placed to the URL .", "See doc.arcgis.com en arcgis-online reference https : doc.arcgis.com en arcgis-online reference vector-tile-layers.htm", "nowcoast.noaa.gov arcgis rest services nowcoast http : nowcoast.noaa.gov arcgis rest services nowcoast radar meteo imagery nexrad time MapServer", "They use part of the ArcGIS JS library that is not part of the public API and therefore this behavior may not work in the next version of the API or they may back-patch a previous version of the API and this could stop working even on something that previously did work .", "enter image description here http : i.stack.imgur.com 2X1Ed.png .. . .. . EDIT When moving the ArcGIS API reference to the top of index.jsp I now have issues resolving dojo fr.js on local server .", "According to the supported functionality http : server.arcgis.com en server latest publish-services windows supported-functionality-in-map-services.htm for ArcGIS Server .", "I have created the JSON file and the webmap but I am really new to all this ArcGIs and dojo and I am really at a loss where to proceed next .", "I had posted this in one of the ArcGIS forums and got to know this is a bug with 4.0 and will be fixed in 4.1 .", "I guess what I am looking for is an equivalent to the Generate Near Table function in ArcGIS .", "I don t know where the reference is being kept in ArcGIS and where-in the build is it establishing that reference .", "http : sampleserver1.arcgisonline.com ArcGIS rest services Locators .. . .. . Details about the Locator task can be found at below location .", "EDIT : the problem is on my IIS server which doesn t trust our arcgis-server .", "I m trying to load qwest.js using the dojo ArcGIS AMD loader but am getting a multipleDefine error .", "I guess I ll try it with vanilla Dojo not the ArcGIS unminified version to be able to debug further .", "The main things is you would need ArcGIS Server Services to display data on the map .", "To learn you dont need to have a server on your local you can use arcgis online services .", "That needs to be present and configured before you load the js api ." ] }
{ "confidence": [ 68.74588012695312, 64.34026336669922, 63.9202880859375, 62.24753189086914, 62.240596771240234, 61.473480224609375, 58.610870361328125, 56.81623077392578, 55.81865310668945, 55.49537658691406, 54.855796813964844, 54.71802520751953, 53.397987365722656, 53.163047790527344, 52.92317199707031, 52.375606536865234, 52.3441276550293, 51.32583999633789, 50.89019012451172, 50.83646011352539 ], "content": [ "Question : null .. . Answer : I have used the arcgis-js-api to display vector tiles in an arcgis map . I have also pulled data from arcgis-server and displayed in Google maps and leaflet . Is there anyway to display vector tiles on the fly from arcgis-server in leaflet and Google maps . I saw the geojson-vt leaflet plugin but it seems to only be for geojson . I know I didn t include code but I need a starting point . Thanks", "Question : Has anyone tried to reference the ArcGIS API for JavaScript using StealJS instead of adding .. . .. . to the head tag as in ArcGIS s samples I tried to use : .. . .. . but StealJs thinks I am looking for http : serverapi.arcgisonline.com jsapi arcgis 3.4 .js and reports not found 404 . thanks .. . Answer : Try to change your URL to http : serverapi.arcgisonline.com jsapi arcgis 3.4 init.js You can download version of esri js API here http : www.esri.com apps products download and look how files are actually stored in the API .", "Question : I am new to ArcGIS JS so any help would be really appreciated . As a starting point I want to display any map using ArcGIS js API 4 with AngularJS . Any pointers or examples would really help . Thanks Comment : Questions asking us to recommend or find a book tool software library tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam . Please read What topics can I ask about here http : stackoverflow.com help on-topic and How do I ask a good question http : stackoverflow.com help how-to-ask .. . Answer : Well Below is the code to add map 3d map using ArcGIS JS API 4.0 .. . .. . for more details related to API and samples Please click here.. . https : developers.arcgis.com javascript beta sample-code get-started-sceneview index.html .. . .. . .. . require .. . esri Map .. . esri views SceneView .. . dojo domReady function Map SceneView .. . .. . var map new Map .. . basemap : streets .. . .. . .. . var view new SceneView .. . container : viewDiv .. . map : map .. . scale : 50000000 .. . center : -101.17 21 78 .. . .. . .. . .. . .. . .. . html .. . body .. . padding : 0 .. . margin : 0 .. . .. . .. . .. . link rel stylesheet href https : js.arcgis.com 4.0beta3 esri css main.css .. . script src https : js.arcgis.com 4.0beta3 script .. . body .. . div id viewDiv div .. . body .. . .. . UPDATED .. . .. . Above example is based on dojo framework because ARCGIS js api is tightly binded with dojo.. . Comment : You should explain in your answer that ArcGIS js API relies on the dojo framework thus that your answer is not using Angular JS . Comment : @Marc Alx Yeah. . its true. . however esri maps is also available with angular. . my another answer explain that. . thats y i added two different answers. . Comment : still thanks i added that too in answer . :", "Question : Basically what I am looking for is I want to learn Arcgis javascript api . And I have Arcgis Desktop 10.3 Trial version installed on my pc . I have heard that javascript can be run only in Arcgis Server based web application . So is there any possibility to run this javascript code in Arcgis Desktop If not suggest me ideas on how to get a Arcgis Server Trial for practicing javascript api . Thank you . .. . Answer : No you cannot use ArcGIS Desktop to run Javascript api app . It is a web based sdk . You can simple run it on any browser . The main things is you would need ArcGIS Server Services to display data on the map . To learn you dont need to have a server on your local you can use arcgis online services . You can find more details on their website . https : developers.arcgis.com javascript 3 jshelp", "Question : I m trying to get a WebMap object as JSON from a JavaScript Map object in the ArcGIS JavaScript API . Is there any way to do this within the API without using ArcGIS.com Ideally something like : .. . .. . From the Export Web Map Task documentation http : sampleserver6.arcgisonline.com arcgis rest services Utilities PrintingTools GPServer Export 20Web 20Map 20Task in the REST API there s this line that suggests it should exist : .. . .. . The ArcGIS web APIs for JavaScript Flex Silverlight etc . allow developers to easily get this JSON string from the map . However I don t see anything in the Map object or elsewhere in the API that would do this . Comment : Cross-posted to GIS.SE : gis.stackexchange.com questions 174356 http : gis.stackexchange.com questions 174356 get-json-webmap-from-arcgis-javascript-api-map-object .. . Answer : If you want to use esri tasks PrintTask to export your map you must use esri tasks PrintParameters for execute the printTask . Just set your map object directly to printParameter .", "Question : I m using version 4.0 of the ArcGIS API for my maps . whenever map is loaded User has to scroll down to see the map . This is the first issue i am facing . .. . .. . My map is somewhere in the middle of the page so the user has to scroll down to view it . Then if a certain point was clicked on the map or if a certain area in dragged to zoom in the pointers the map shows as selection are not the exact points the mouse is pointing at . it points to a location above the mouse pointer . Here is a sample code . Note : - Same issue exist on arcgsi js api sample too.. . https : developers.arcgis.com javascript latest sample-code sandbox sandbox.html sample get-started-mapview .. . .. . If you run this code you ll see if you scroll down and drag an area by holding shift and dragging the mouse it will drag an area above your selection . .. . Answer : I had posted this in one of the ArcGIS forums and got to know this is a bug with 4.0 and will be fixed in 4.1 .", "Question : I m trying to get a WebMap object as JSON from a JavaScript Map object in the ArcGIS JavaScript API . Is there any way to do this within the API without using ArcGIS.com Ideally something like : .. . .. . From the Export Web Map Task documentation http : sampleserver6.arcgisonline.com arcgis rest services Utilities PrintingTools GPServer Export 20Web 20Map 20Task in the REST API there s this line that suggests it should exist : .. . .. . The ArcGIS web APIs for JavaScript Flex Silverlight etc . allow developers to easily get this JSON string from the map . However I don t see anything in the Map object or elsewhere in the API that would do this . Comment : Cross-posted to GIS.SE : gis.stackexchange.com questions 174356 http : gis.stackexchange.com questions 174356 get-json-webmap-from-arcgis-javascript-api-map-object .. . Answer : You can t . At least not officially . The steps outlined below are not recommended . They use part of the ArcGIS JS library that is not part of the public API and therefore this behavior may not work in the next version of the API or they may back-patch a previous version of the API and this could stop working even on something that previously did work . That said sometimes you need some future functionality right now and this is actually a pretty straightforward way of getting what you want using the common proxy-pattern http : addyosmani.com resources essentialjsdesignpatterns book proxypatternjquery .. . .. . Use the undocumented private function getPrintDefinition .. . .. . getPrintDefinition takes the map as the first argument and a PrintParameters object as the second . so you ll have to create a PrintTask https : developers.arcgis.com javascript jsapi printtask-amd.html redefine the getPrintDefinition function on the newly created print task as outlined above create a PrintParameters https : developers.arcgis.com javascript jsapi printparameters-amd.html and then run : .. . .. . myPrintTask . getPrintDefinition myMap myPrintParameters .. . .. . The results of this on my little test are : .. . .. . if you don t need to do any operations on the web map json and just need the output then you don t even need to use the proxy-pattern .", "Question : I m trying to get a WebMap object as JSON from a JavaScript Map object in the ArcGIS JavaScript API . Is there any way to do this within the API without using ArcGIS.com Ideally something like : .. . .. . From the Export Web Map Task documentation http : sampleserver6.arcgisonline.com arcgis rest services Utilities PrintingTools GPServer Export 20Web 20Map 20Task in the REST API there s this line that suggests it should exist : .. . .. . The ArcGIS web APIs for JavaScript Flex Silverlight etc . allow developers to easily get this JSON string from the map . However I don t see anything in the Map object or elsewhere in the API that would do this . Comment : Cross-posted to GIS.SE : gis.stackexchange.com questions 174356 http : gis.stackexchange.com questions 174356 get-json-webmap-from-arcgis-javascript-api-map-object .. . Answer : @Suttikeat Witchayakul s answer above should work if your goal is to print the map using a print service . However if you are trying to export the map to the web map JSON spec http : resources.arcgis.com en help arcgis-web-map-json so that you can save it to ArcGIS Online Portal or re-instantiate a map object from it later https : developers.arcgis.com javascript jshelp intro webmap.html you may have some problems . This is because the web map specification is not the same as the export web map specification which what the print task generates and sends to printing services . Unfortunately the ArcGIS API for JavaScript does not provide any methods to export a map object to web map JSON . This is supposed to be coming in version 4.. . at some point . Until then you can use the all but abandoned cereal https : github.com swingley cereal library . However if your map uses layer types that are not fully supported by cereal it may not work for you as is and you would have to extend it .", "Question : I am using the ArcGIS Javascript API to add some functionality a search widget to an existing web app using AngularJS and JSP . I am having issues resolving a pathname for the esri dijit Search package as it attempts a pathname on our local server instead of the online API and produces a 404 error . EDIT I am seeing now that if I reference the online ArcGIS Javascript API I have a local file that receives the 404 error . Not referencing it of course causes issues for the esri dijit Search file . I am focusing now on configuring this so that I can resolve both pathnames . Updated code is below in edit section . I have an app.js with the require function : .. . .. . The controller for the Search widget adapted from an online ArcGIS sample : .. . .. . I then have an index.jsp with a few map elements including the Search widget on the bottom that I am attempting to add . I ve referenced the online ArcGIS Javascript API here but I am not sure it s in the right place . I am also wondering if there may be another package that is rerouting the esri dijit Search file . This version creates a 404 error that looks for the file in http : ouserver esri dijit Search : .. . .. . There are many other files in the package . I m new to this so I am open to suggestions on where to look . This is the file structure : .. . .. . enter image description here http : i.stack.imgur.com 2X1Ed.png .. . .. . EDIT When moving the ArcGIS API reference to the top of index.jsp I now have issues resolving dojo fr.js on local server . How can I configure this so that both are resolved This version creates a 404 error looking for the file in https : js.arcgis.com 3.17 dojo nls dojo fr.js : .. . Answer : I think what you need is Configuring Dojo with dojoConfig http : dojotoolkit.org documentation tutorials 1.10 dojo config index.html as i don t see it in your code . Basically you need to create the dojoConfig var before including dojo for example : .. . .. . Loading myApp myComponent will fail because the loader will use this url .. . .. . http : ajax.googleapis.com ajax libs dojo 1.10.4 myApp myComponent.js .. . .. . but if before including dojo we initiate the dojoConfig .. . .. . Then the loader will try to get myApp myComponent from my local server . Note that this is an illustrative example of how you can use the dojoContig . Comment : Where is the best place to create the dojoConfig Does it make a difference that this web app uses the angularjs framework Comment : You can place it inline in the html i.e . : index.html where you include all yours script or you can create a single js file for it but you need to ensure that it get loaded before the dojo.js . In both cases the dojoConfig should existe in order to be used by dojo.js . And it does not matter using AngularJS .", "Question : I have a JSON file with data as : .. . .. . where assetID is unique upto 1000 .. . colorCode is a random number between 1 to 4.. . and each colorCode corresponds to any unique color.Like .. . .. . colorCode 1 color Green.. . colorCode 2 color Orange.. . colorCode 3 color Yellow.. . colorCode 4 color Red.. . I have created a simple webmap in ArcGIS online with one tile layer and one feature layer . Now I have to write a code in JS where when the feature s OBJECTID matches the assetID a point should be drawn there in the color corresponding to the colorCode on the map . Like for assetID 1 colorCode is 3 so at feature with OBJECTID 1 on the map a point should be drawn there in green color and so on . I have created the JSON file and the webmap but I am really new to all this ArcGIs and dojo and I am really at a loss where to proceed next . Comment : so you have only features whose the OBJECTID is between 1 -- 4 that are colored Comment : Its the colorCode that can be 1 2 3 or 4...each corresponding to a specific color . The OBJECTID and assetID can be upto 1000 . We just have to match the assetID with the feature s OBJECTID and draw the point in that color Comment : so it s limited to max 1000 I mean not dynamic assetIDs Comment : Yeah...I have assetID till 1000 .. . Answer : How are you hosting the application . Is it just a webmap in ArcGIS online or you using WebAppBuilder or you have a custom web application . All these factor determine whether you can customize your map or not . Also your layer is it a FeatureLayer or a Map Service . or just graphic data . If it is graphic data its lot easier to make the customization . Let me know more details so that I can provide you with specific answer . Take a look at this post http : gis.stackexchange.com questions 50558 customizing-arcgis-online-application-template-and-uploading-it-back-to-arcgis-o it provides information on how you can customize webmap . Hope this was helpful . Comment : Its just a webmap in ArcGIS online and a pretty basic one at that . The Layer is a feature layer . I dont want to customize it.. . I want to know how to access the layers of a webmap and perform a Query Task on it . Comment : I know this must seem quite easy but as I said its all new for me.. . and I am really puzzled Comment : Take a look at javascript api . developers.arcgis.com javascript 3 jshelp intro webmap.html https : developers.arcgis.com javascript 3 jshelp intro webmap.html Comment : I did it myself.Thanks for the link.It helped .", "Question : I have a requirement where the marker points graphics on the esri map should be a dynamic pie-chart with a data set of its own . Is this possible using ArcGIS javascript API Comment : please remove the esri-leaflet tag from this question . .. . Answer : It kind of depends how you want to use it . If you just want to visualize the points as Charts the most simplest way is to create the symbology in ArcMap and host its as a map service . According to the supported functionality http : server.arcgis.com en server latest publish-services windows supported-functionality-in-map-services.htm for ArcGIS Server . Charts are also supported . If you cannot create a service and would want to create charts runtime in Javascript . Then the only option would be to create the charts as images and add the Point on map with PictureMarkerSymbol .", "Question : Is it possible to overlay an Esri Feature service onto a Google Map using the Google Maps API I am using feature services hosted on ArcGIS Online . Keep in mind these are feature services not tiled map services . From all that I ve gathered Google Maps only appears to only support tiled map rest services . Is this correct Has anyone had success overlaying feature services If you ve made it this far I ll give you a little background . Our systems developer has produced numerous applications using the Google Maps API so it would be a burden at this point to rewrite everything in OpenLayers ESRI API Leaflet etc . He wants to be able to consume our ArcGIS Online mapping services which we store as features aka . WFS . We really do not want to go the route of having to upkeep additional versions tiles KML geoJSON etc of the same layers . I ve been experimenting with on-the-fly Esri JSON to GeoJSON conversions but I haven t had success . I m about ready to call it and rebuild everything with the Esri API but I figured I d ask first . Our staff is really in love with Google Maps so it s going to be a hard sell . Thanks .. . Answer : It is viable but it may have performance issue . You can make a call to the feature service endpoint and get all the features back as JSON response . As Esri GeoJSON is different from the common one you need to translate the JSON response to the standard GeoJSON format and then add to the feature collection in google-maps Data Layer and apply styles . This works if you have simple datasets . However if it is complex large polygon datasets it will be causing network traffic when making the call . Also Google maps data-layer always have performance issue when dealing with large dataset . I recommend to use dojo esri js API to develop the app if the data is hosted with ArcGIS server . It just doesn t make sense to buy both licenses for visualization . Another option is to enable your ArcGIS online data to serve WMS layer too . Through that way your developer can use google-maps overlay layer to overlay tiles from ArcGIS online . You can also make standard XMl request to the WMS service to get feature information .", "Question : Hi how can I get the Latitude and Longitude using arcgis Javascript .. . Answer : for the 3.x api would look like this .. . .. . https : developers.arcgis.com javascript 3 jshelp inside events.html .. . .. . For the 2.x api would look like this :", "Question : I m building a react app with webpack and i need to incorporate arcgis maps https : developers.arcgis.com javascript into a react component . I have know idea how to bring this into my project . I ve tried creating an arcgis directory with an index.js of the built javascript and trying to reference that : .. . .. . That doesn t work . I then just tried to include the css js script tags directly into my index.html but when I try to require them like in the example webpack obviously can t find them . Is there some way to tell webpack to ignore require calls in my src file so it gets handled by the browser I m trying and failing at doing the following : Comment : What does webpack do with this inner require Maybe try dojo.require to trick webpack into ignoring it Comment : Do you have any insight yet .. . Answer : I think you can try using bower version of esrijsapi . Doc link https : developers.arcgis.com javascript 3 jshelp inside bower custom builds.html", "Question : I have an HTML file performing a Query Task on the feature layer of a webmap . Now I want to separate the file into 3 different files : html file a main.js file which loads the webmap and a Color-Code.js file which performs the Query task and the rest . Basically the html file should call main.js which in turn should call the Color Code.js.I tried it with require.js.. . but I get a file Color-Code.js not found error every time . I am really new to dojo and arcGIS so could someone point out where am I going wrong . I am referencing them in the html page as .. . Answer : I think you are missing a couple of things . 1 . The Esri JS API comes with a module loader from Dojo which works with AMD modules so you do not need to load requirejs . 2 . You seem to be missing the dojoConfig variable or have not posted it this tells the AMD loader where to find your local modules . I recommend reading this tutorial for ArcGIS . https : developers.arcgis.com javascript latest sample-code get-started-mapview index.html . It still may be good to read a requirejs dojo AMD tutorial if your unsure how modules work . 3 . Looks like Main.js depends on Color-Code.js which depends on Main.js this circular dependency will cause issues . I am trying to include a basic example below but I would definitely recommend looking at the Esri tutorials to help get you started . index.html .. . .. . dojo domReady fires when the dom is ready surprise and Main.js is loaded then we launch our app by calling Main.createMap . You can configure this path to your js folder under the packages property in the dojoConfig variable . That needs to be present and configured before you load the js api . Main.js .. . .. . Color-Code.js .. . .. . NOTE : This example is using modules and files from the 4.0 API not the 3.16 but the setup part is the same . And I would still recommend using @dazlious linked tutorials to make sure you have a good understanding of how modules work and what are some good design-patterns to follow .", "Question : I am new to the ArcGIS API for Javscript 4.0 API . Using the calcite sample on the API website . Where can I add-in a feature Layer to the map view and scene view Essentially I m trying to merge the Feature layer sample here : https : developers.arcgis.com javascript latest sample-code layers-featurelayer index.html .. . .. . with the calcite map sample here : https : developers.arcgis.com javascript latest sample-code frameworks-bootstrap index.html .. . .. . but am not sure what part to add the layers to . I have tried a few times . See below . Thanks .. . Answer : You can add the layers to the map at any stage provided of course that you have created the map object . You can add them before the map s been linked to the view or after . You can add several at once or one at a time in a lazy-loading app . Besides the view object will take care of initializing the map and the layer it contains .", "Question : null .. . Answer : My app with ArcGis and Angular works perfectly but when I try to introduce angular-routing and move the ArcGis API code to an other div which would be loaded up with ng-view the Arcgis events don t seem to fire anymore . Route : .. . .. . MainPage : .. . .. . Html is just a main page with and the side pages contain their representing ngControllers", "Question : I often see many maps created in different API s and want to pick the best of them all to create my own mashup . Easy to do when debugging other API s like ESRI Javascript API I can get a rest end point in view-source and use it in other GIS viewers and API s . But when I come up against a google map like this http : wildfire.alberta.ca wildfire-status wildfire-status-map.aspx .. . .. . I cannot seem to debug and find a service url that I can say plug into another GIS client like ArcGIS Online . Is there such a thing as a underlying web accessible KML that I can snag - out of the above example .. . Answer : That URL is using the Google Maps Javascript API v3 KmlLayer https : developers.google.com maps documentation javascript kmllayer to render KML . code snippet : .. . .. . .. . function initialize .. . var map new google.maps.Map .. . document.getElementById map canvas .. . center : new google.maps.LatLng 37.4419 -122.1419 .. . zoom : 13 .. . mapTypeId : google.maps.MapTypeId.ROADMAP .. . .. . Add static regions KML .. . var regionsLayer new google.maps.KmlLayer .. . url : http : wildfire.alberta.ca apps wildfirestatusmap DataFiles esrd wma.kmz .. . .. . regionsLayer.setZIndex 1 .. . regionsLayer.setMap map .. . .. . Add dynamic markers .. . var wildfiresLayer new google.maps.KmlLayer .. . url : http : wildfire.alberta.ca wildfire-status status-map-handler.ashx type map .. . url : http : wildfire.alberta.ca apps wildfirestatusmap status-map-handler.ashx type map .. . .. . .. . wildfiresLayer.setZIndex 10 .. . wildfiresLayer.setMap map .. . .. . google.maps.event.addDomListener window load initialize .. . .. . .. . html .. . body .. . map canvas .. . height : 100 .. . width : 100 .. . margin : 0px .. . padding : 0px .. . .. . .. . .. . script src https : maps.googleapis.com maps api js script .. . div id map canvas div Comment : This is great I can access that KML in my other clients . However I am still a bit unclear how where specifically you got the path . So this is the link I neded wildfire.alberta.ca apps wildfirestatusmap DataFiles http : wildfire.alberta.ca apps wildfirestatusmap DataFiles esrd wma.kmz and when I view-source on the original page that referenced above it is not there . So I presume it must be in the scripts or other filed residing with that htmls page - which is the page url that lists that .kmz layer", "Question : I am using Arcgis Javascript API . API is built on dojo toolkit . So I need to use dojo features in API . I am preparing dojo config file as following . I created a bootstrapper.js like following . And index.html file is like this . My application is hosted on IIS and has addres like this htp : domain Demo Sample1 index.html .. . .. . when I run application this code giving error like following . NetworkError : 404 Not Found - http : js.arcgis.com 3.6 js dojo application main.js enter image description here http : i.stack.imgur.com xf8Wz.png .. . .. . If I set bootstrapper.js file as following problem is solwing . enter image description here http : i.stack.imgur.com sbvaA.png .. . Answer : Try to change your script order in index.html file . Your config settings should load before CDN .", "Question : null .. . Answer : In a public ip machine the web application is hosted which inturn access the data from another machine which is a VM and does not has public ip . While testing the web application in LAN network everything works fine . But if we testing the same web application in a machine outside the LAN the application fails to retrieve the data from another machine which connection with the public ip machine . Our Arcgis-Server10 rest api is configured for CORS . But still it is not getting access from external source . How to fix this Comment : Are you accessing the data on VM machine from ArcGIS Javascript API you need to understand the javascript api requests the map data directly and not through the hosted server ." ] }
[ "yes-answer-long", "yes-answer-short" ]
web-applications
UNK_RELATION
relocation@toolchain@228
relocation -- relocation is the adaptation of a piece of code assembled on a certain address in memory to another address it is a typical task of dynamic linkers and program loaders and thus last step in a standard development @placeholder .
{ "confidence": [ 47.409488677978516, 43.82038497924805, 41.98622131347656, 40.8133659362793, 40.40223693847656, 40.37389373779297, 40.29228973388672, 39.737735748291016, 39.36208724975586, 39.128692626953125, 38.2884635925293, 38.1656494140625, 38.1656494140625, 37.37710952758789, 36.74628829956055, 36.74628829956055, 36.583065032958984, 36.583065032958984, 36.29877471923828, 36.04169464111328, 36.04169464111328, 35.586124420166016, 35.26483917236328, 34.62721252441406, 34.56058883666992, 34.518001556396484, 34.457637786865234, 33.77705383300781, 33.509620666503906, 33.02203369140625, 32.876956939697266, 32.70345687866211, 31.969844818115234, 31.969844818115234, 31.578632354736328, 30.45502471923828, 30.348339080810547, 30.348339080810547, 30.348339080810547, 30.055740356445312, 30.055740356445312, 29.790264129638672, 29.268001556396484, 29.162769317626953, 29.144023895263672, 29.144023895263672, 29.046558380126953, 27.893949508666992, 27.741472244262695, 27.70062255859375, 27.70062255859375, 27.70062255859375, 27.70062255859375, 27.70062255859375, 27.66918182373047, 27.66918182373047, 27.66918182373047, 27.581960678100586, 27.581960678100586, 27.473426818847656, 26.96070098876953, 26.440078735351562, 26.406021118164062, 26.406021118164062, 26.257568359375, 25.937618255615234, 25.815776824951172, 25.76660919189453, 25.523189544677734, 25.44891357421875, 25.327198028564453, 25.316593170166016, 25.14535140991211, 23.633563995361328, 23.613712310791016, 23.41254234313965, 23.41254234313965, 23.41254234313965, 23.41254234313965, 23.050729751586914, 22.66887855529785, 22.66887855529785, 22.66887855529785, 22.430461883544922, 21.79450225830078, 21.41299819946289, 21.41299819946289, 20.98584747314453, 20.43694305419922, 20.34067726135254, 19.849403381347656, 19.849403381347656, 19.849403381347656, 19.680583953857422, 19.652313232421875, 19.652313232421875, 18.949478149414062, 18.949478149414062, 18.949478149414062, 18.874431610107422 ], "content": [ "Relocation .", "How are virtual-memory logical memory and program relocation related", "What about the connection between program relocation and logical memory then", "Is there a way to solve this relocation error", "The first relocation : .. . .. . Which means : .. . .. . 0 : acts on byte 0 label a .. . R X86 64 : prefix used by all relocation types of the AMD64 system V ABI .. . 32 : the 64-bit address of the label s is truncated to a 32-bit address because we only specified a .long 4 bytes .. . .text : we are on the .text section .. . 0xc : this is the addend which is a field of the relocation entry .. . .. . The address of the relocation is calculated as : .. . .. . Where : .. . .. . A : the addend here 0xC .. . S : the value of the symbol before relocation here 00 00 00 00 0 .. . .. . Therefore after relocation the new address will be 0xC 12 bytes into the .text section .", "Relocation was the norm in the days before virtual logical memory .", "Program relocation is starting to be used as a security measure .", "The Relocation Directives chapter in the DJGPP COFF Specification http : www.delorie.com djgpp doc coff reloc.html clearly states that the value currently stored at the location should be added to the address of the symbol pointed to by the relocation table entry .", "How could I infer the symbol corresponding to a certain relocation entry", "In the MS COFF spec chapter 5.6.2 Base Relocation Types it is said that The base relocation applies all 32 bits of the difference to the 32-bit field at offset which I guess means that the relocation should take into account whatever address is already stored at the specified offset .", "The relocation section used in image files has a slightly different purpose from the relocation information present in object-files .", "What s the upside of copy relocation", "Library relocation is still critical .", "If you look at the features provided by the relocation mechanism you will notice that they are in sync with the C specification of address constant .", "If they are same similar then why do we need program relocation", "It s hard to tell what your instructor means by program relocation .", "The second type of relocation uses the first .", "In the past relocation was mostly used for libraries .", "So now that we have virtual logical memory we don t need program relocation yes", "UPDATE .. . .. . Anyone can explain how the relocation entries work like above", "and HIGHLOW is just a type of relocation This is essentially reserved for future use .", "Does it always add it to the final VA RVA or is it sometimes ignored e.g certain relocation types", "Some is done during the final link coding GOT offsets some is done on startup GOT relocation fixup and some is not done code relocation .", "To do this each PE contains a table called relocation table and this table contains all the offsets in your code refers to to this variable .", "The R X86 64 32S and R X86 64 64 are names of relocation types for code compiled for the amd64 architecture .", "Program relocation does an almost similar thing of making sure that multiple programs does not corrupt each other.Relocation modifies object program so that it can be loaded at a new alternate address .", "There are two types of relocation and it is not clear which you are referring to .", "My doubts .. . .. . 1 My university text book talks about virtual-to-physical address binding using the name relocation .", "If your program makes a frequent access to global-variables and constants it will have a huge relocation table because theres so much places that the loader has to update .", "Relocation section .rela.dyn at offset 0xfc58 contains 2335 entries :", "In a dump of memory from that process it is at address 0x0E3F2781 .", "The dumpbin utility adds a column named Applied To when printing the relocations table which seems to always no matter the relocation type contain the value which is stored at the relocation site .", "The definition you gave doesn t fit how I would interpret what program relocation means .", "Program relocation is the one involved in the assembly process..creating Modification records for absolute programs .", "See also : What does this GCC error .. . relocation truncated to fit.. . mean", "classic MacOS for any code .. . for dynamic libraries even on systems with virtual-memory given that a dynamic library could find itself lodaded on an address that is not its preferred one if other code is already at that space in the address space of the host program .", "More specifically how does the linker treat the value which is already stored at the relocation site", "To support this DLL images contain relocation sections that specify what data needs to be modified when the image is relocated .", "Many intra-dll symbol references will use eip or rip relative addressing so they may not need to be modified on DLL relocation .", "Got the following error when I tried to compile a C application in 64-bit FreeBSD : .. . .. . relocation R X86 64 32S can not be used when making a shared object recompile with -fPIC .. . .. . What is R X86 64 32S relocation and what is R X86 64 64", "R X86 64 32S vs R X86 64 32 .. . .. . The difference between R X86 64 32S vs R X86 64 32 is when the linker will complain with relocation truncated to fit : .. . .. . 32 : complains if the truncated after relocation value does not zero extend the old value i.e .", "Currently there s only one type of relocation HIGHLOW that is being used so you don t have to worry about other types .", "I have symbols that are at one location when I dump the symbol-table from the ELF but at another location when I get their address out-of-memory .", "If a dynamic-link-library wants to load its code section in a certain memory space but when it has already been accupied by another module it must be loaded in a different place .", "I m having some trouble getting the symbol which corresponds the relocation entry in the case of type R AARCH64 RELATIVE .", "My problem is that I don t know how to lookup the symbol from the relocation entry .", "I just started learning System Programming for the new semester and was hence wondering...when I got to know about Program relocation", "What I still do not understand is : 1 Why my text book refers to relocation about logic-to-physical address binding and says that relocatable code is needed .", "That is I have what I believe to be a reasonable understanding of how Virtual memory works and am operating entirely with in that address space .", "I ve looked accros some systems drivers header s data and it seems their is no relocation directory .", "Under 4.4.1 Relocation Types we see the summary table : .. . .. . We will explain this table later .", "The linker must verify that the generated value for the R X86 64 32 R X86 64 32S relocation zero-extends sign-extends to the original 64-bit value .", "32S : complains if the truncated after relocation value does not sign extend https : en.wikipedia.org wiki Sign extension the old value .", "http : stackoverflow.com questions 33318342 when-is-it-better-for-an-assembler-to-use-sign-extended-relocation-like-r-x86-64", "The documentation only provides the way to compute the address in memory that is load address + addend .", "The static local variable have their memory-address offset by 0x8000 which is not good .", "Does it expect to find it an absolute address in memory or is it also a relative location to the PC", "When a debugger starts looking around though it needs to know the relationship between the original link address and the final executing address .", "When a debugger starts looking around though it needs to know the relationship between the original link address and the final executing address .", "Meanwhile a relocation-based approach produces a full illusion of such global variable beginning its life with the proper value without any startup code .", "It appears to be something like Address Space Layout Randomization .", "92 probably means the index of the entry BC0 is the relative address of the code where you access the variable 524BC0 would be the result-of relative address + expected base offset .", "According to it R X86 64 64 is broken down to : .. . .. . R X86 64 - all names are prefixed with this .. . 64 - Direct 64 bit relocation .. . .. . and R X86 64 32S to : .. . .. . R X86 64 - prefix .. . 32S - truncate value to 32 bits and sign-extend .. . .. . which basically means the value of the symbol pointed to by this relocation plus any addend in both cases .", "http : stackoverflow.com questions 10486116 what-does-this-gcc-error-relocation-truncated-to-fit-mean .. . .. . R X86 64 32S can be generated with : .. . .. . Then : .. . .. . Gives : .. . .. . Now we can observe the relocation truncated to fit on 32S with a linker script : .. . .. . Now : .. . .. . Is fine because : 0xFFFFFFFF80000000 gets truncated into 80000000 which is a sign extension .", "Therefore to workaround this problem you must tell the PE loader to add subtract the displacement new base address-expected base address to this value 0x602315 .", "On Linux every process has its own address space http : en.wikipedia.org wiki Address space in virtual-memory http : en.wikipedia.org wiki Virtual memory .", "Rationale for using 32S for memory access but 32 for immediates : When is it better for an assembler to use sign extended relocation like R X86 64 32S instead of zero extension like R X86 64 32", "Object file relocations are specified relative to the address within an image using the images preferred based address of a symbol in a symbol-table .", "Their address is offset by the amount that my executable is offset in memory - ie I compile my code as-if it is loaded at memory location 0 but I actually load it in memory located at 0x8000 .", "In this particular case I have a string which in the linked executable is at address 0x0E984141 .", "BACKGROUND : If an executable file has a external data reference which is defined in a shared object the compiler will use copy relocation and place a copy in its .bss section .", "It should be but section 4.2 doesn t explain what to do if the relocation site has a value different from 0 stored in it which is actually quite common and can be easily seen using dumpbin .", "Instead they are defined relative to a fixed based address .", "Image file relocations are always specified relative to the base address of the executable image .", "What is the final address calculation done", "I know modern OSs such as Linux don t always execute an application at the same address it was originally linked .", "I know modern OSs such as Linux don t always execute an application at the same address it was originally linked .", "The latter points to a linked-list of struct link map s and l addr member of that struct is the offset between linked-at and loaded-at address .", "However by loading it in a different address space it messes up all the absolute reference that the library referred to .", "2 This is true a chunk of code could be loaded at any address though there are certain constraints .", "Copy relocation is detailed in this site : http : www.shrubbery.net solaris9ab SUNWdev LLM p22.html CHAPTER4-84604 .. . .. . However my question is : .. . .. . Is it possible to implement it through GOT just like the external data reference in shared object", "Intuitively a GOT-based mechanism being based on full run-time indirection would be much farther away from that concept than a load-time relocation-based mechanism .", "They are all possible values for the ELF32 R TYPE field of a relocation entry specified in the System V ABI 4.1 1997 http : www.sco.com developers devspecs gabi41.pdf which specifies the architecture neutral parts of the ELF format .", "Now when I run snoop as root I get the following error : .. . .. . ld.so.1 : snoop : fatal : relocation error : file usr sbin snoop : symbol dlpi passive : referenced symbol not found .. . .. . Sounds like a library path error .", "Libraries on the other hand can only know that their data section will be at a specified offset from the base address the value of that base address can only be known at runtime .", "Now in an executable file the code and data segments are given a specified virtual base address .", "The executable code is not shared and each executable gets its own fresh address space .", "R X86 64 64 is analogous but simpler since here there is no need to truncate the address of s .", "Whenever this variable is accessed written the program executes the following opcode assuming that the code is located in 0x524BBE same as the entry that you mentioned : .. . .. . 0x524BBE : MOV EAX DWORD PTR DS : 0x602315 move dummy to eax register to do stuff .. . .. . When the library is loaded in the different space 0x602315 will not point to the variable since the address space 0x602315 has already been taken by some other module .", "3 If yes are PIE and relocatable code needed to adjust a process depending on the VIRTUAL address it has been loaded or - on the contrary - they deal with PHYSICAL address binding", "The executable can indirectly accesses this external code through its GOT entry and this GOT entry can be stuffed with the real address of this symbol in run-time .", "But in a GOT-based implementation an initialization of a global variable with such address constant would require startup code to extract the actual value from GOT and place it into the variable .", "The code itself is position independent because it accesses through the GOT and the position of the GOT relative to the instruction s address is encoded during final linking .", "Now some OS s will load program segments at different places in memory .", "Clarifications : I m not talking about virtual-memory .", "Relocations are needed when there is a base conflict in the memory .", "You need to turn up your warning levels to pedantic levels on your compiler and address all the issues identified .", "the PIE build flag on Mac OS X so that they can be loaded at a randomized address to protect against exploits e.g .", "It is designed to keep malicious cracks that depend upon the application being loaded at a specific address .", "For example it says that if address binding is done at load-time relocatable code is needed to allow the loader to place the right addresses in the code ." ] }
{ "confidence": [ 68.34552764892578, 62.672874450683594, 60.4408073425293, 59.23224639892578, 56.575714111328125, 55.54950714111328, 54.83198547363281, 52.334266662597656, 47.19501495361328, 44.68890380859375, 39.17287063598633, 37.69032287597656, 37.561988830566406, 35.34466552734375, 34.83013153076172, 34.47869873046875, 33.560699462890625, 31.048500061035156, 29.68802261352539, 28.824783325195312 ], "content": [ "Question : Virtual memory along with logical memory helps to make sure programs do not corrupt each others data . Program relocation does an almost similar thing of making sure that multiple programs does not corrupt each other.Relocation modifies object program so that it can be loaded at a new alternate address . How are virtual-memory logical memory and program relocation related Are they similar If they are same similar then why do we need program relocation Comment : Sounds like an exam question to me . Comment : No . I just started learning System Programming for the new semester and was hence wondering...when I got to know about Program relocation Comment : It s hard to tell what your instructor means by program relocation . The definition you gave doesn t fit how I would interpret what program relocation means . I think you ll need to ask your instructor if you want an answer that will be marked correct on the exam . Comment : It s not about an answer for the exam.It s for my understanding of the topic . Comment : Program relocation is the one involved in the assembly process..creating Modification records for absolute programs . .. . Answer : Relocatable programs or said another way position-independent code is traditionally used in two circumstances : .. . .. . systems without virtual-memory or too basic virtual-memory e.g . classic MacOS for any code .. . for dynamic libraries even on systems with virtual-memory given that a dynamic library could find itself lodaded on an address that is not its preferred one if other code is already at that space in the address space of the host program . However today even main executable programs on systems with virtual-memory tend to be position-independent e.g . the PIE build flag on Mac OS X so that they can be loaded at a randomized address to protect against exploits e.g . those using ROP . Position Independent Executable .. . Return-Oriented Programming", "Question : I just used objdump -x .. . to check the sections of a PE file . There s about 90 000 lines of reloc entries : .. . .. . Does it hold true that the majority space of most PE files are composed of the reloc entries like above What are those entries for UPDATE .. . .. . Anyone can explain how the relocation entries work like above Comment : Relocation . No really . Comment : @Ignacio Vazquez-Abrams can you elaborate .. . Answer : Relocations are needed when there is a base conflict in the memory . If a dynamic-link-library wants to load its code section in a certain memory space but when it has already been accupied by another module it must be loaded in a different place . However by loading it in a different address space it messes up all the absolute reference that the library referred to . For example let s say that the executable has a global variable called int dummy and the variable is located in 0x602315 . Whenever this variable is accessed written the program executes the following opcode assuming that the code is located in 0x524BBE same as the entry that you mentioned : .. . .. . 0x524BBE : MOV EAX DWORD PTR DS : 0x602315 move dummy to eax register to do stuff .. . .. . When the library is loaded in the different space 0x602315 will not point to the variable since the address space 0x602315 has already been taken by some other module . Therefore to workaround this problem you must tell the PE loader to add subtract the displacement new base address-expected base address to this value 0x602315 . To do this each PE contains a table called relocation table and this table contains all the offsets in your code refers to to this variable . So let s say instead of 0x524000 expected base offset the library was loaded at 0x700000 . Then what PE loader will do is look up the entries in the table and add the displacement 0x700000-0x524000 0x1DC000 to the offset 0x602315 such that your loaded code will look like this : .. . .. . 0x700BBE : MOV EAX DWORD PTR DS : 0x7DE315 move dummy to eax register to do stuff .. . .. . which will run fine because it s point to the correct location of the variable dummy . Going back to your question the output of objdump is showing each entry of this table . 92 probably means the index of the entry BC0 is the relative address of the code where you access the variable 524BC0 would be the result-of relative address + expected base offset . and HIGHLOW is just a type of relocation This is essentially reserved for future use . Currently there s only one type of relocation HIGHLOW that is being used so you don t have to worry about other types . When the loader reads this entry it will-change the value of 0x524BC0 to reflect this change . With respect to your question about majority space of PE composed of .reloc table the answer is it depends . If your program makes a frequent access to global-variables and constants it will have a huge relocation table because theres so much places that the loader has to update .", "Question : null .. . Answer : I m having some trouble getting the symbol which corresponds the relocation entry in the case of type R AARCH64 RELATIVE . My goal is to find the symbol corresponding to a certain function in the rela.dyn section of the executable . What I noticed is that respect to other kind of entries the symbol part of the info column is always 0 . My problem is that I don t know how to lookup the symbol from the relocation entry . How could I infer the symbol corresponding to a certain relocation entry The documentation only provides the way to compute the address in memory that is load address + addend . Relocation section .rela.dyn at offset 0xfc58 contains 2335 entries :", "Question : Virtual memory along with logical memory helps to make sure programs do not corrupt each others data . Program relocation does an almost similar thing of making sure that multiple programs does not corrupt each other.Relocation modifies object program so that it can be loaded at a new alternate address . How are virtual-memory logical memory and program relocation related Are they similar If they are same similar then why do we need program relocation Comment : Sounds like an exam question to me . Comment : No . I just started learning System Programming for the new semester and was hence wondering...when I got to know about Program relocation Comment : It s hard to tell what your instructor means by program relocation . The definition you gave doesn t fit how I would interpret what program relocation means . I think you ll need to ask your instructor if you want an answer that will be marked correct on the exam . Comment : It s not about an answer for the exam.It s for my understanding of the topic . Comment : Program relocation is the one involved in the assembly process..creating Modification records for absolute programs . .. . Answer : Virtual memory does not prevent programs from interfering with out other . It is logical memory that does so . Unfortunately it is common for the two concepts to be conflated to virtual-memory . There are two types of relocation and it is not clear which you are referring to . However they are connected . On the other hand the concept is not really related to virtual-memory . The first concept of relocatable code . This is critical for shared-libraries that usually have to be mapped to different addresses . Relocatable code uses offsets rather than absolute addresses . When a program results in an instruction sequence something like : .. . .. . The computer or assembler encodes this as .. . .. . rather than .. . .. . By using offsets the code works the same way no matter where the JMP instruction is located . The second type of relocation uses the first . In the past relocation was mostly used for libraries . Now some OS s will load program segments at different places in memory . That is intended for security . It is designed to keep malicious cracks that depend upon the application being loaded at a specific address . Both of these concepts work with or without virtual-memory . Note that generally the program is not modified to relocated it . I generally because an executable file will usually have some addresses that need to be fixed up at run time . Comment : Well I actually thought of the combined work of logical memory and virtual-memory together . Thank you for pointing it out Comment : What about the connection between program relocation and logical memory then Comment : They really are not connected . Relocation was the norm in the days before virtual logical memory . If you want to run two programs at the same time on a multiuser system without logical virtual-memory you have to be able to relocate to fit the available memory . Comment : So now that we have virtual logical memory we don t need program relocation yes Comment : Program relocation is starting to be used as a security measure . Library relocation is still critical .", "Question : What steps exactly are taken by the linker while resolving relocations in an object file before creating the final image More specifically how does the linker treat the value which is already stored at the relocation site Does it always add it to the final VA RVA or is it sometimes ignored e.g certain relocation types I couldn t find a clear explanation in the MS PE COFF Specfication http : msdn.microsoft.com en-us library windows hardware gg463119.aspx and after googling and experimenting for a while all I could find out was this : .. . .. . 1 . In the MS COFF spec chapter 5.6.2 Base Relocation Types it is said that The base relocation applies all 32 bits of the difference to the 32-bit field at offset which I guess means that the relocation should take into account whatever address is already stored at the specified offset . However chapter 5.6 the .reloc section is only relevant to image files and not object-files . 2 . The dumpbin utility adds a column named Applied To when printing the relocations table which seems to always no matter the relocation type contain the value which is stored at the relocation site . 3 . The Relocation Directives chapter in the DJGPP COFF Specification http : www.delorie.com djgpp doc coff reloc.html clearly states that the value currently stored at the location should be added to the address of the symbol pointed to by the relocation table entry . Can you point me to any relevant documentation which explains how relocations are handled by the linker Comment : Isn t the appropriate section for object-files 4.2 COFF Relocations and not section 5.6.2 which is only for image files Comment : It should be but section 4.2 doesn t explain what to do if the relocation site has a value different from 0 stored in it which is actually quite common and can be easily seen using dumpbin . .. . Answer : The relocation section used in image files has a slightly different purpose from the relocation information present in object-files . Unlike Linux Shared Libraries Windows DLLs do not typically use position independent code . Instead they are defined relative to a fixed based address . The Windows loader however has the ability to relocate a DLL in the event of a conflict . To support this DLL images contain relocation sections that specify what data needs to be modified when the image is relocated . Many intra-dll symbol references will use eip or rip relative addressing so they may not need to be modified on DLL relocation . Image file relocations are always specified relative to the base address of the executable image . Object file relocations are specified relative to the address within an image using the images preferred based address of a symbol in a symbol-table . Image files don t have a symbol-table they have an IAT but that s not a symbol-table . The set of supported relocations in object-files is richer then the set supported in image files . The details are covered in the COFF Relocations Object Only section of the PE COFF spec I m looking at version 3 as I type this .", "Question : BACKGROUND : If an executable file has a external data reference which is defined in a shared object the compiler will use copy relocation and place a copy in its .bss section . Copy relocation is detailed in this site : http : www.shrubbery.net solaris9ab SUNWdev LLM p22.html CHAPTER4-84604 .. . .. . However my question is : .. . .. . Is it possible to implement it through GOT just like the external data reference in shared object The executable can indirectly accesses this external code through its GOT entry and this GOT entry can be stuffed with the real address of this symbol in run-time . I don t know why GCC doesn t implement it like this . What s the upside of copy relocation .. . Answer : In languages like C and C++ addresses of objects with static storage duration qualify as address constants . It means that conceptually at language level they are treated as-if their values are known at compile-time . Of course this is not the case in reality when it comes to the matter in question . To counter that the compiler-linker-loader combination has to implement a dynamic mechanism that would provide full support the language-level concept of address constant . Intuitively a GOT-based mechanism being based on full run-time indirection would be much farther away from that concept than a load-time relocation-based mechanism . For one thing C language was designed as a language that requires no dynamic initialization of objects with static storage duration i.e . conceptually there s no initializing startup code and no issues related to the order of initialization . But in a GOT-based implementation an initialization of a global variable with such address constant would require startup code to extract the actual value from GOT and place it into the variable . Meanwhile a relocation-based approach produces a full illusion of such global variable beginning its life with the proper value without any startup code . If you look at the features provided by the relocation mechanism you will notice that they are in sync with the C specification of address constant . E.g . the final value might involve adding a fixed offset which is intended to act as a loader-side implementation of C and - operators permissible in C address constant expressions .", "Question : Got the following error when I tried to compile a C application in 64-bit FreeBSD : .. . .. . relocation R X86 64 32S can not be used when making a shared object recompile with -fPIC .. . .. . What is R X86 64 32S relocation and what is R X86 64 64 I ve googled about the error and it s possible causes - It d be great if anyone could tell what R X86 64 32S really means . .. . Answer : For any of this to make sense you must first : .. . .. . see a minimal example of relocation : http : stackoverflow.com a 30507725 895245 .. . understand the basic structure of an ELF file : http : stackoverflow.com a 30648229 895245 .. . .. . Standards .. . .. . R X86 64 64 R X86 64 32 and R X86 64 32S are all defined by the System V AMD ABI http : refspecs.linuxbase.org elf x86 64-abi-0.98.pdf which contains the AMD64 specifics of the ELF file-format . They are all possible values for the ELF32 R TYPE field of a relocation entry specified in the System V ABI 4.1 1997 http : www.sco.com developers devspecs gabi41.pdf which specifies the architecture neutral parts of the ELF format . That standard only specifies the field but not it s arch dependant values . Under 4.4.1 Relocation Types we see the summary table : .. . .. . We will explain this table later . And the note : .. . .. . The R X86 64 32 and R X86 64 32S relocations truncate the computed value to 32-bits . The linker must verify that the generated value for the R X86 64 32 R X86 64 32S relocation zero-extends sign-extends to the original 64-bit value . Example of R X86 64 64 and R X86 64 32 .. . .. . Let s first look into R X86 64 64 and R X86 64 32 : .. . .. . Then : .. . .. . Contains : .. . .. . Tested on Ubuntu 14.04 Binutils 2.24 . Ignore the disassembly for now which is meaningless since this is data and look only to the labels bytes and relocations . The first relocation : .. . .. . Which means : .. . .. . 0 : acts on byte 0 label a .. . R X86 64 : prefix used by all relocation types of the AMD64 system V ABI .. . 32 : the 64-bit address of the label s is truncated to a 32-bit address because we only specified a .long 4 bytes .. . .text : we are on the .text section .. . 0xc : this is the addend which is a field of the relocation entry .. . .. . The address of the relocation is calculated as : .. . .. . Where : .. . .. . A : the addend here 0xC .. . S : the value of the symbol before relocation here 00 00 00 00 0 .. . .. . Therefore after relocation the new address will be 0xC 12 bytes into the .text section . This is exactly what we expect since s comes after a .long 4 bytes and a .quad 8 bytes . R X86 64 64 is analogous but simpler since here there is no need to truncate the address of s . This is indicated by the standard through word64 instead of word32 on the Field column . R X86 64 32S vs R X86 64 32 .. . .. . The difference between R X86 64 32S vs R X86 64 32 is when the linker will complain with relocation truncated to fit : .. . .. . 32 : complains if the truncated after relocation value does not zero extend the old value i.e . the truncated bytes must be zero : .. . .. . E.g . : FF FF FF FF 80 00 00 00 to 80 00 00 00 generates a complaint because FF FF FF FF is not zero . 32S : complains if the truncated after relocation value does not sign extend https : en.wikipedia.org wiki Sign extension the old value . E.g . : FF FF FF FF 80 00 00 00 to 80 00 00 00 is fine because the last bit of 80 00 00 00 and the truncated bits are all 1 . See also : What does this GCC error .. . relocation truncated to fit.. . mean http : stackoverflow.com questions 10486116 what-does-this-gcc-error-relocation-truncated-to-fit-mean .. . .. . R X86 64 32S can be generated with : .. . .. . Then : .. . .. . Gives : .. . .. . Now we can observe the relocation truncated to fit on 32S with a linker script : .. . .. . Now : .. . .. . Is fine because : 0xFFFFFFFF80000000 gets truncated into 80000000 which is a sign extension . But if we change the linker script to : .. . .. . It now generates the error because that 0 made it not be a sign extension anymore . Rationale for using 32S for memory access but 32 for immediates : When is it better for an assembler to use sign extended relocation like R X86 64 32S instead of zero extension like R X86 64 32 http : stackoverflow.com questions 33318342 when-is-it-better-for-an-assembler-to-use-sign-extended-relocation-like-r-x86-64", "Question : Got the following error when I tried to compile a C application in 64-bit FreeBSD : .. . .. . relocation R X86 64 32S can not be used when making a shared object recompile with -fPIC .. . .. . What is R X86 64 32S relocation and what is R X86 64 64 I ve googled about the error and it s possible causes - It d be great if anyone could tell what R X86 64 32S really means . .. . Answer : The R X86 64 32S and R X86 64 64 are names of relocation types for code compiled for the amd64 architecture . You can look all of them up in the amd64 ABI http : refspecs.linuxbase.org elf x86 64-abi-0.98.pdf . According to it R X86 64 64 is broken down to : .. . .. . R X86 64 - all names are prefixed with this .. . 64 - Direct 64 bit relocation .. . .. . and R X86 64 32S to : .. . .. . R X86 64 - prefix .. . 32S - truncate value to 32 bits and sign-extend .. . .. . which basically means the value of the symbol pointed to by this relocation plus any addend in both cases . For R X86 64 32S the linker then verifies that the generated value sign-extends to the original 64-bit value . Now in an executable file the code and data segments are given a specified virtual base address . The executable code is not shared and each executable gets its own fresh address space . This means that the compiler knows exactly where the data section will be and can reference it directly . Libraries on the other hand can only know that their data section will be at a specified offset from the base address the value of that base address can only be known at runtime . Hence all libraries must be produced with code that can execute no matter where it is put into memory known as position independent code or PIC for short . Now when it comes to resolving your problem the error message speaks for itself .", "Question : What happens when Position Independent Code is placed in a static library In particular on x86-64 .. . .. . That is to say : Several .o files are generated with PIC and placed in a .a file . This .a is statically linked into a final executable as normal . It seems to work but does it ever make sense to do this Why What is the final address calculation done link-time run-time Thank you .. . Answer : IIRC in a PIC system all global-variables will be accessed through PIC . The whole idea of PIC is that only a single table needs adjusting the GOT not every global access in the code . The code itself is position independent because it accesses through the GOT and the position of the GOT relative to the instruction s address is encoded during final linking . So it is a mix . Some is done during the final link coding GOT offsets some is done on startup GOT relocation fixup and some is not done code relocation .", "Question : BACKGROUND : If an executable file has a external data reference which is defined in a shared object the compiler will use copy relocation and place a copy in its .bss section . Copy relocation is detailed in this site : http : www.shrubbery.net solaris9ab SUNWdev LLM p22.html CHAPTER4-84604 .. . .. . However my question is : .. . .. . Is it possible to implement it through GOT just like the external data reference in shared object The executable can indirectly accesses this external code through its GOT entry and this GOT entry can be stuffed with the real address of this symbol in run-time . I don t know why GCC doesn t implement it like this . What s the upside of copy relocation .. . Answer : Is it possible to implement it through GOT just like the external data reference in shared object Yes . For this to work you ll need to build code that is linked into the main executable with -fPIC . Since that is often less efficient extra indirection and usually not done the linker has to do copy relocations instead . More info here https : docs.oracle.com cd E19120-01 open.solaris 819-0690 chapter4-84604 index.html .", "Question : I am trying to dig deeper into executables structure and memory-management . Although I thought I had understood very well some notions such as PIE and Relocatable Code the reading of my old university book about Operating Systems creates lots of confusion in my mind . Now I am completely confused and I am asking help for clarification on many concepts . What I thought .. . .. . I thought that PIE and Relocatable Code was related only to the Virtual Address Space of a process and shared library . Because of a shared library could be inserted in any point of the VAS of a process there must be a mechanism e.g . PIE Relocatable Code in-place to allow it to reference data call functions and other things wherever its virtual starting address is . I thought also that the binding between the virtual addresses a process use and have eventually hardcoded in its text section or in the GOT PLT ecc . and the real physical addresses was done at runtime by the MMU in a completely transparent manner to the process . In other words I thought that ALL the addresses a process see are always logic and then every time memory is accessed the MMU translates that address into the physical one on the fly . Finally my last belief was that all the processes think they have the full memory available for them starting from 0x00000000 until 0xffffffff . I thought - almost certainly incorrectly - that all the processes in their VAS started at the very first addresses and had always the same layout and offsets between a loading and the other because what changed was the physical address behind and the translation was done transparently . But thinking to ASLR this would not make any sense and even to PIE because what would be the sense to compile an executable as PIE if it always has the same virtual addresses My doubts .. . .. . 1 My university text book talks about virtual-to-physical address binding using the name relocation . It also says that in order to perform this binding relocatable code is needed . For example it says that if address binding is done at load-time relocatable code is needed to allow the loader to place the right addresses in the code . So this underlines that the addresses hardcoded into the binary by the loader are already the physical ones . This yet violates my first assumption regard the fact a process only works on virtual address and then it s MMU duty to translate it . 2 Further doubts are those related to the VAS layout of a process . It is clear that my believes were wrong . When a process is loaded into memory although it sees all the memory for it can be loaded at any VIRTUAL location 3 If yes are PIE and relocatable code needed to adjust a process depending on the VIRTUAL address it has been loaded or - on the contrary - they deal with PHYSICAL address binding 4 The addresses I see for example in GDB are virtual ones right Sorry I admit I read so many things that I am now completely confused . I probably just need to reorder my mind . Thanks in advance .. . Answer : My understanding : .. . .. . 1 Relocatable code is setup in the file during compile that setup is then processed on load . It might help your understanding to google PE or ELF file formats Windows and Linux respectively . There are blocks of code and lists of offsets where relocatable addresses are . When the OS loads the code it uses the list of relocations to update the marked address slots in the executable to match the virtual addresses where either shared-objects reside or where the code got loaded . Processes in modern PCs usually do only work on virtual addresses leaving virtual to real mapping up to a combination of OS and hardware function . 2 This is true a chunk of code could be loaded at any address though there are certain constraints . These constraints have to do with shared-objects and reserved addresses . 3 Physical addresses are abstracted away in modern OSes and you the loaded code only deal with virtual addresses . 4 Yes . Comment : Thanks for answering Based on your post everything - including PIE and Reloc - are related to logic addresses while physical addresses should not even be considered because they are beyond what a process sees . This would clarify many things . What I still do not understand is : 1 Why my text book refers to relocation about logic-to-physical address binding and says that relocatable code is needed . 2 Why if a process sees the memory as completely available for it and work on logic addresses which are not real cannot simply be loaded always from 0x000 aside from security reason Comment : @Arbok You might be interested in looking into some DIY barebones OSes . Those will give you a practical understanding of the HW SW interface . 1 How old is your textbook But really it may just be talking about two related but different concepts . While relocatable code is preferred there s no concrete reason to disallow static addressing . There was a time when a programmer was expected to understand the addressing model of a device and follow the documented constraints . 2 Theoretically they can . It s only by convention or practicality that virtual addresses near 0x0 are restricted .", "Question : Got the following error when I tried to compile a C application in 64-bit FreeBSD : .. . .. . relocation R X86 64 32S can not be used when making a shared object recompile with -fPIC .. . .. . What is R X86 64 32S relocation and what is R X86 64 64 I ve googled about the error and it s possible causes - It d be great if anyone could tell what R X86 64 32S really means . .. . Answer : That means that compiled a shared object without using -fPIC flag as you should : .. . .. . You need to call .. . .. . Under ELF platform Linux shared-objects are compiled with position independent code - code that can run from any location in memory if this flag is not given the code that is generated is position dependent so it is not possible to use this shared object . Comment : I have quite the same problem but I still get the error even with the -fPIC added : gcc -std c99 -Wall -pedantic -shared -fopenmp -fPIC -static test.c -o libtest.so . Any ideas why Thanks", "Question : null .. . Answer : I m trying to understand a little bit the loading process of kernel drivers . As far as I know kernel drivers are loaded in the upper memory area 0x80000000 on win32 indeed their base adress is not known at compile-time . I ve looked accros some systems drivers header s data and it seems their is no relocation directory . So how the kernel manage to load them properly Or driver s code is position independant I don t think so because of the presence of various data segment . Thank you", "Question : Got the following error when I tried to compile a C application in 64-bit FreeBSD : .. . .. . relocation R X86 64 32S can not be used when making a shared object recompile with -fPIC .. . .. . What is R X86 64 32S relocation and what is R X86 64 64 I ve googled about the error and it s possible causes - It d be great if anyone could tell what R X86 64 32S really means . .. . Answer : I ran into this problem and found this answer didn t help me . I was trying to link a static library together with a shared library . I also investigated putting the -fPIC switch earlier on the command-line as advised in answers elsewhere . The only thing that fixed the problem for me was changing the static library to shared . I suspect the error message about -fPIC can happen due to a number of causes but fundamentally what you want to look at is how your libraries are being built and be suspicious of libraries that are being built-in different ways .", "Question : I know modern OSs such as Linux don t always execute an application at the same address it was originally linked . When a debugger starts looking around though it needs to know the relationship between the original link address and the final executing address . How does GDB calculate the offset Clarifications : I m not talking about virtual-memory . That is I have what I believe to be a reasonable understanding of how Virtual memory works and am operating entirely with in that address space . I have symbols that are at one location when I dump the symbol-table from the ELF but at another location when I get their address out-of-memory . In this particular case I have a string which in the linked executable is at address 0x0E984141 . In a dump of memory from that process it is at address 0x0E3F2781 . Everything in the .rodata section at least has been shifted by 0x5919C0 . It appears to be something like Address Space Layout Randomization . .. . Answer : On Linux every process has its own address space http : en.wikipedia.org wiki Address space in virtual-memory http : en.wikipedia.org wiki Virtual memory . The ELF http : en.wikipedia.org wiki Executable and Linkable Format executable contains a header describing the segments in memory and their corresponding sections in the executable .", "Question : I know modern OSs such as Linux don t always execute an application at the same address it was originally linked . When a debugger starts looking around though it needs to know the relationship between the original link address and the final executing address . How does GDB calculate the offset Clarifications : I m not talking about virtual-memory . That is I have what I believe to be a reasonable understanding of how Virtual memory works and am operating entirely with in that address space . I have symbols that are at one location when I dump the symbol-table from the ELF but at another location when I get their address out-of-memory . In this particular case I have a string which in the linked executable is at address 0x0E984141 . In a dump of memory from that process it is at address 0x0E3F2781 . Everything in the .rodata section at least has been shifted by 0x5919C0 . It appears to be something like Address Space Layout Randomization . .. . Answer : If i understand what you are getting at I think what you are actually referring to is Virtual Memory addressing This is not handled by GDB it is handled by the operating-system . http : www.cs.utexas.edu users witchel 372 lectures 15.VirtualMemory.pdf", "Question : I know modern OSs such as Linux don t always execute an application at the same address it was originally linked . When a debugger starts looking around though it needs to know the relationship between the original link address and the final executing address . How does GDB calculate the offset Clarifications : I m not talking about virtual-memory . That is I have what I believe to be a reasonable understanding of how Virtual memory works and am operating entirely with in that address space . I have symbols that are at one location when I dump the symbol-table from the ELF but at another location when I get their address out-of-memory . In this particular case I have a string which in the linked executable is at address 0x0E984141 . In a dump of memory from that process it is at address 0x0E3F2781 . Everything in the .rodata section at least has been shifted by 0x5919C0 . It appears to be something like Address Space Layout Randomization . .. . Answer : I know modern OSs such as Linux don t always execute an application at the same address it was originally linked . This is only possible for position-independent executables linked with -pie flag . When a debugger starts looking around though it needs to know the relationship between the original link address and the final executing address . Correct . How does GDB calculate the offset The same way GDB calculates the offset for shared-libraries a PIE executable is really a special case of a shared library . There is a defined interface between ld.so and GDB consisting of dl debug state function on which GDB sets an internal breakpoint and which ld.so calls whenever it maps a new ELF image into the process and struct r debug . The latter points to a linked-list of struct link map s and l addr member of that struct is the offset between linked-at and loaded-at address .", "Question : I am building a project which has relocatable code on bare metal . It is a Cortex M3 embedded application . I do not have a dynamic linker and have implemented all the relocations in my startup code . Mostly it is working but my local static-variables appear to be incorrectly located . Their address is offset by the amount that my executable is offset in memory - ie I compile my code as-if it is loaded at memory location 0 but I actually load it in memory located at 0x8000 . The static local variable have their memory-address offset by 0x8000 which is not good . My global-variables are located properly by the GOT but the static local-variables are not in the GOT at all at least they don t appear when I run readelf -r . I am compiling my code with -fpic and the linker has -fpic and -pie specified . I think I must be missing a compile and or link option to either instruct gcc to use the GOT for the static local-variables or to instruct it to use absolute addressing for them . It seems that currently the code adds the PC to the location of the static local-variables . .. . Answer : This problem is also discussed here : https : answers.launchpad.net gcc-arm-embedded +question 236744 .. . .. . Starting with gcc 4.8 ARM there s a command-line switch called -mpic-data-is-text-relative which causes static-variables being addressed through the GOT as well .", "Question : I m trying to run snoop on a Solaris 10 box . Snoop was not installed by default and I grabbed it from the Solaris 10 cd . The package I installed was SUNWrcmdc as a man snoop shows it relies on this package . Now when I run snoop as root I get the following error : .. . .. . ld.so.1 : snoop : fatal : relocation error : file usr sbin snoop : symbol dlpi passive : referenced symbol not found .. . .. . Sounds like a library path error . So I did a .. . .. . host ldd -r usr sbin snoop .. . .. . I picked up the latest patch for libdlpi.so.1 which is Patch 145923-02 and applied it . Didn t help . Same problem . I don t know what to do about this symbol not found : dlpi passive I m not sure what else I can try . .. . Answer : My first guess would be a release mismatch . What says .. . .. . You probably need to adjust the path to the package on your CD or DVD .", "Question : null .. . Answer : I m building L-GADGET3 cosmological code on a IBM power7 . The compilation works fine but at runtime I get this error message : .. . .. . I don t understand the message and I don t know what to do . I compiled gsl and FFTW3 libraries with : .. . .. . and gadget itself with : .. . .. . I also have these in .bashrc : .. . .. . Another version of gadget P-GADGET3 works just fine with the settings above . Both version P- and L- works if I compile without the -compiler gxlc part i.e . I use xlc native compiler but only in 32-bit except they fail somewhere during execution . If I try to compile in 64 bit I get this error : building fftw 64 bit on a IBM ppc64 with mpi http : stackoverflow.com questions 21559738 building-fftw-64-bit-on-a-ibm-ppc64-with-mpi . I have also compiled both version P-GADGET3 and L-GADGET3 with gcc and openmpi and they works fine but I would like to use the native IBM mpi since it s faster . My simulations should run for a few months so I need to optimize . Both version P- and L- are beta and unstable but the stable and public released version GADGET2 lacks some useful tools added in version 3 . Is there a way to solve this relocation error And what s the cause of it Comment : You may try to add path to ibmmpi lib64 to LD LIBRARY PATH .. . Comment : It s there already.. . LD LIBRARY PATH HOME .local lib : path to ibmmpi lib64" ] }
[ "yes-answer-long", "yes-answer-short" ]
toolchain
UNK_RELATION
coda-format@coda@43
coda-format -- coded statement of account @placeholder this bank standard also called coda specifies the lay-out for the electronic files .
{ "confidence": [ 57.91754913330078, 51.95845031738281, 44.13970184326172, 43.441864013671875, 43.41725158691406, 39.55519485473633, 38.92941665649414, 38.61708068847656, 38.61708068847656, 32.420841217041016, 26.64832305908203, 25.120208740234375, 25.089488983154297, 24.777484893798828, 23.27808380126953, 23.017845153808594, 22.713581085205078, 22.079496383666992, 21.532764434814453, 21.34918785095215, 20.86025619506836, 20.797393798828125, 20.458349227905273, 18.9516544342041, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 17.471336364746094, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027, 15.706259727478027 ], "content": [ "CODA files stands for Coded Statement of Account files and seems to be the Belgian name for textual files that have a line for each bank transaction that occured on a specific bank account .", "they basically all change see febelfin.be sites default files Standard-CODA-2.3-EN.pdf https : www.febelfin.be sites default files Standard-CODA-2.3-EN.pdf for the format", "Coda v2.5 was released in March btw", "This is the official CODA specification in English http : www.febelfin.be sites default files Standard-CODA-2.3-EN 0.pdf from the Belgian Bankers and Stockbroking Firms Association Febelfin .", "Meanwhile the standard has been updated to v2.4 from v2.3 and v2.3a of which you can find the English spec https : www.febelfin.be sites default files files standard-coda-2.4-en.pdf and the Dutch spec https : www.febelfin.be sites default files Payments Standard-CODA-23-NL.pdf .", "Hint to decipher the code : CODA is a line record oriented standard with fixed line length .", "Did you find or write a library class to interpret CODA-statements yet", "I m tasked with writing some code that interprets CODA files that come from different Belgian banks .", ".. . For programmers : Is there any c or .NET assembly I could use to easily interpret these CODA 2.3 files .", "The ODOO code to read coda mentionned above is here https : github.com odoo odoo blob 8.0 addons l10n be coda wizard account coda import.py .", "They include a changelog for v2.4 at the end and this is the changelog for v2.3a : .. . .. . New category codes 435 and 436 and deleted category code 052 .. . .. . I found some existing implementations in Python compatible with CODA up to v2.2 one should be able to port this to C : https : www.odoo.com apps modules author Noviat", "Also the file is provided by a 3rd party who ensures the validity so I don t need to check the format only read it .", "This assumes the format character is an integer but it can easily be generalized to other format designators .", "I m looking for more information as to what would happen if we d try the hook up our code with let s say a French or British bank .. . .. . Is there anyone that can point me to the name of the standard I need to search for", "My problem is how can I structure my code in a way that makes it more flexible and does not make me use hard-coded offsets for the slices", ".. . Is there even an international standard for this", ".. . .. . I found out that there exists such thing as mt940 SWIFT but those files don t look the same as mine .", "I d be surprised if this really was just a Belgium- only standard .", "So I have a file with data in this standardized format : .. . .. . Probably tought up by someone who has done too much cobol .", "SWIFT is the de facto banking wire format for all international transactions .", "You can have a list of widths of the columns describing the format and unfold it like this : .. . .. . Edit : Updated the code to better match what maazza http : stackoverflow.com users 1342402 maazza asked in the edited question .", "I cannot seem to find the english name for these files .", "EDIT : .. . .. . Also the first number 0- 9 always present determines the structure of the line which is of fixed length .", "The first 2 banks we are working with are Belgian Fortis and ING and I received the specification of how these files are encoded from each of them .", "Each field has a fixed lenght and I can read it by slicing the line .", "Should I use a class of constants of something like that", "There are around 11 different line structures .", "Are there 10 different possible line structures depending on the first digit", "Do the different line structures vary radically from one another", "Or do only the first couple of fields vary with all the subsequent fields remaining unchanged as shown in your examples", "I see only one way as suggested below creating multiple record width structures based on the initial 5 digit code of the record .", "Bear in mind that the header record contains a version number so you may have to allow for different structures based on the version of the data or you may find that you are unable to decode an older file when the version changes .", "I was going to ask how difficult it would be to ask for a field separator but asking the banks to change anything is a pointless and b even if they agreed would take years .", "This is starting to look complicated", "I only had a brief look at that PDF but it appears to me that the line type is determined by that leading 5 digit field not just its first digit .", "BTW questions on SO should be self-contained and not require references to eternal documents for important information although links are welcome if they enhance the question .", "We certainly don t want the whole PDF in your question .", "But it would be good if your question mentioned roughly how many different line structures your program needs to handle .", "A solution that s effective for 10 line structures may not be suitable if there are many thousands of potential line structures and vice versa .", "Create a list of widths and a routine that accepts this and an indexed column number as parameters .", "The routine can calculate the start offset for your slice by adding all previous column widths and add the width of the indexed column for the end offset .", "do you think it still applies if the first number determines the structure of the line", "@maaza : I don t see a problem in having different width lists .", "That s why I suggested a generalized routine .", "Of course it s entirely up to you how you select which of several width lists to use but the routine stays the same .", "My suggestion is to use a dictionary keyed on the 5 digit line type code .", "Each value in the dictionary can be a list of field offsets or of offset width tuples indexed by field position .", "If your fields have names it may be convenient to use a class instead of a list to store field offset data .", "However namedtuples https : docs.python.org 3 library collections.html collections.namedtuple may be better here since then you can access your field offset data either via its name or by its field position so you get the best of both worlds .", "namedtuple s are actually implemented as classes but defining a new namedtuple type is much more compact that creating an explicit class definition and namedtuples use the slots https : docs.python.org 3 reference datamodel.html slots protocol so they take up less RAM than a normal class that uses dict for storing its attributes .", ".. . .. . Here s one way to use namedtuples to store field offset data .", "I m not claiming that the following code is the best way to do this but it should give you some ideas .", "output", "can you show me an example with the namedtuple", "@maazza : There are several examples of creating and using namedtuples in the docs I linked .", "I read it but fail to see how it can be applied to my case", "@maazza : Give me some field names and I ll add some example code to my answer .", "If you don t want need named fields then using classes or namedtuples is unnecessary you might as well just use a list .", "amount communication transaction code are valid field names", "This includes SEPA Direct Debit transaction information .", "I would like to avoid having to write this critical library myself .", "Hi Mvision .", "This isn t the right place to ask for programming advice although there are a bunch of coders on this site .", "You should ask this over on stackexchange.com instead .", "Thanks for moving it for me -", "You are unlikely to find a C library to work with this - banks are notorious for having systems from the iron age .", "Maybe if you wanted a Cobol or Fortran implementation you ll find something .. . .. . The document discusses SEPA for local transactions and apparently SWIFT for international .", "SWIFT has several modern implementations in most languages though it s simple enough to implement yourself in any way you want .", "Thanks for the info I keep on hoping for someone to actually have made this class already if not i ll mark your answer as the bounty one and try to provide my class for it later on", "we are living in a sad world", "Mvision I couldn t find your contact details and I don t have enough reputation to comment yet .", "Could you please share it or share some insights on how you ve written it", "It would be much appreciated", "Yup I made my own implementation .", "I m quite sure the company I work for won t let me open-source it but I ll contact you later to share some ideas", "Thanks for the heads up on 2.4" ] }
{ "confidence": [ 77.10153198242188, 73.9462890625, 52.29293441772461, 46.75748062133789, 41.416160583496094 ], "content": [ "Question : I m tasked with writing some code that interprets CODA files that come from different Belgian banks . CODA files stands for Coded Statement of Account files and seems to be the Belgian name for textual files that have a line for each bank transaction that occured on a specific bank account . This includes SEPA Direct Debit transaction information . The first 2 banks we are working with are Belgian Fortis and ING and I received the specification of how these files are encoded from each of them . I cannot seem to find the english name for these files . I d be surprised if this really was just a Belgium- only standard . I m looking for more information as to what would happen if we d try the hook up our code with let s say a French or British bank .. . .. . Is there anyone that can point me to the name of the standard I need to search for .. . Is there even an international standard for this .. . For programmers : Is there any c or .NET assembly I could use to easily interpret these CODA 2.3 files . I would like to avoid having to write this critical library myself . .. . .. . I found out that there exists such thing as mt940 SWIFT but those files don t look the same as mine . Comment : Hi Mvision . This isn t the right place to ask for programming advice although there are a bunch of coders on this site . You should ask this over on stackexchange.com instead . Comment : Thanks for moving it for me - .. . Answer : Mvision I couldn t find your contact details and I don t have enough reputation to comment yet . Did you find or write a library class to interpret CODA-statements yet Could you please share it or share some insights on how you ve written it It would be much appreciated Meanwhile the standard has been updated to v2.4 from v2.3 and v2.3a of which you can find the English spec https : www.febelfin.be sites default files files standard-coda-2.4-en.pdf and the Dutch spec https : www.febelfin.be sites default files Payments Standard-CODA-23-NL.pdf . They include a changelog for v2.4 at the end and this is the changelog for v2.3a : .. . .. . New category codes 435 and 436 and deleted category code 052 .. . .. . I found some existing implementations in Python compatible with CODA up to v2.2 one should be able to port this to C : https : www.odoo.com apps modules author Noviat Comment : Yup I made my own implementation . I m quite sure the company I work for won t let me open-source it but I ll contact you later to share some ideas Thanks for the heads up on 2.4 Comment : The ODOO code to read coda mentionned above is here https : github.com odoo odoo blob 8.0 addons l10n be coda wizard account coda import.py . Hint to decipher the code : CODA is a line record oriented standard with fixed line length . Coda v2.5 was released in March btw", "Question : I m tasked with writing some code that interprets CODA files that come from different Belgian banks . CODA files stands for Coded Statement of Account files and seems to be the Belgian name for textual files that have a line for each bank transaction that occured on a specific bank account . This includes SEPA Direct Debit transaction information . The first 2 banks we are working with are Belgian Fortis and ING and I received the specification of how these files are encoded from each of them . I cannot seem to find the english name for these files . I d be surprised if this really was just a Belgium- only standard . I m looking for more information as to what would happen if we d try the hook up our code with let s say a French or British bank .. . .. . Is there anyone that can point me to the name of the standard I need to search for .. . Is there even an international standard for this .. . For programmers : Is there any c or .NET assembly I could use to easily interpret these CODA 2.3 files . I would like to avoid having to write this critical library myself . .. . .. . I found out that there exists such thing as mt940 SWIFT but those files don t look the same as mine . Comment : Hi Mvision . This isn t the right place to ask for programming advice although there are a bunch of coders on this site . You should ask this over on stackexchange.com instead . Comment : Thanks for moving it for me - .. . Answer : This is the official CODA specification in English http : www.febelfin.be sites default files Standard-CODA-2.3-EN 0.pdf from the Belgian Bankers and Stockbroking Firms Association Febelfin . You are unlikely to find a C library to work with this - banks are notorious for having systems from the iron age . Maybe if you wanted a Cobol or Fortran implementation you ll find something .. . .. . The document discusses SEPA for local transactions and apparently SWIFT for international . SWIFT is the de facto banking wire format for all international transactions . SWIFT has several modern implementations in most languages though it s simple enough to implement yourself in any way you want . Comment : Thanks for the info I keep on hoping for someone to actually have made this class already if not i ll mark your answer as the bounty one and try to provide my class for it later on Comment : we are living in a sad world", "Question : So I have a file with data in this standardized format : .. . .. . Probably tought up by someone who has done too much cobol . Each field has a fixed lenght and I can read it by slicing the line . My problem is how can I structure my code in a way that makes it more flexible and does not make me use hard-coded offsets for the slices Should I use a class of constants of something like that EDIT : .. . .. . Also the first number 0- 9 always present determines the structure of the line which is of fixed length . Also the file is provided by a 3rd party who ensures the validity so I don t need to check the format only read it . There are around 11 different line structures . Comment : Are there 10 different possible line structures depending on the first digit Do the different line structures vary radically from one another Or do only the first couple of fields vary with all the subsequent fields remaining unchanged as shown in your examples Comment : they basically all change see febelfin.be sites default files Standard-CODA-2.3-EN.pdf https : www.febelfin.be sites default files Standard-CODA-2.3-EN.pdf for the format Comment : I see only one way as suggested below creating multiple record width structures based on the initial 5 digit code of the record . Bear in mind that the header record contains a version number so you may have to allow for different structures based on the version of the data or you may find that you are unable to decode an older file when the version changes . I was going to ask how difficult it would be to ask for a field separator but asking the banks to change anything is a pointless and b even if they agreed would take years . Comment : This is starting to look complicated I only had a brief look at that PDF but it appears to me that the line type is determined by that leading 5 digit field not just its first digit . BTW questions on SO should be self-contained and not require references to eternal documents for important information although links are welcome if they enhance the question . Comment : We certainly don t want the whole PDF in your question . But it would be good if your question mentioned roughly how many different line structures your program needs to handle . A solution that s effective for 10 line structures may not be suitable if there are many thousands of potential line structures and vice versa . .. . Answer : You can have a list of widths of the columns describing the format and unfold it like this : .. . .. . Edit : Updated the code to better match what maazza http : stackoverflow.com users 1342402 maazza asked in the edited question . This assumes the format character is an integer but it can easily be generalized to other format designators .", "Question : So I have a file with data in this standardized format : .. . .. . Probably tought up by someone who has done too much cobol . Each field has a fixed lenght and I can read it by slicing the line . My problem is how can I structure my code in a way that makes it more flexible and does not make me use hard-coded offsets for the slices Should I use a class of constants of something like that EDIT : .. . .. . Also the first number 0- 9 always present determines the structure of the line which is of fixed length . Also the file is provided by a 3rd party who ensures the validity so I don t need to check the format only read it . There are around 11 different line structures . Comment : Are there 10 different possible line structures depending on the first digit Do the different line structures vary radically from one another Or do only the first couple of fields vary with all the subsequent fields remaining unchanged as shown in your examples Comment : they basically all change see febelfin.be sites default files Standard-CODA-2.3-EN.pdf https : www.febelfin.be sites default files Standard-CODA-2.3-EN.pdf for the format Comment : I see only one way as suggested below creating multiple record width structures based on the initial 5 digit code of the record . Bear in mind that the header record contains a version number so you may have to allow for different structures based on the version of the data or you may find that you are unable to decode an older file when the version changes . I was going to ask how difficult it would be to ask for a field separator but asking the banks to change anything is a pointless and b even if they agreed would take years . Comment : This is starting to look complicated I only had a brief look at that PDF but it appears to me that the line type is determined by that leading 5 digit field not just its first digit . BTW questions on SO should be self-contained and not require references to eternal documents for important information although links are welcome if they enhance the question . Comment : We certainly don t want the whole PDF in your question . But it would be good if your question mentioned roughly how many different line structures your program needs to handle . A solution that s effective for 10 line structures may not be suitable if there are many thousands of potential line structures and vice versa . .. . Answer : Create a list of widths and a routine that accepts this and an indexed column number as parameters . The routine can calculate the start offset for your slice by adding all previous column widths and add the width of the indexed column for the end offset . Comment : do you think it still applies if the first number determines the structure of the line Comment : @maaza : I don t see a problem in having different width lists . That s why I suggested a generalized routine . Of course it s entirely up to you how you select which of several width lists to use but the routine stays the same .", "Question : So I have a file with data in this standardized format : .. . .. . Probably tought up by someone who has done too much cobol . Each field has a fixed lenght and I can read it by slicing the line . My problem is how can I structure my code in a way that makes it more flexible and does not make me use hard-coded offsets for the slices Should I use a class of constants of something like that EDIT : .. . .. . Also the first number 0- 9 always present determines the structure of the line which is of fixed length . Also the file is provided by a 3rd party who ensures the validity so I don t need to check the format only read it . There are around 11 different line structures . Comment : Are there 10 different possible line structures depending on the first digit Do the different line structures vary radically from one another Or do only the first couple of fields vary with all the subsequent fields remaining unchanged as shown in your examples Comment : they basically all change see febelfin.be sites default files Standard-CODA-2.3-EN.pdf https : www.febelfin.be sites default files Standard-CODA-2.3-EN.pdf for the format Comment : I see only one way as suggested below creating multiple record width structures based on the initial 5 digit code of the record . Bear in mind that the header record contains a version number so you may have to allow for different structures based on the version of the data or you may find that you are unable to decode an older file when the version changes . I was going to ask how difficult it would be to ask for a field separator but asking the banks to change anything is a pointless and b even if they agreed would take years . Comment : This is starting to look complicated I only had a brief look at that PDF but it appears to me that the line type is determined by that leading 5 digit field not just its first digit . BTW questions on SO should be self-contained and not require references to eternal documents for important information although links are welcome if they enhance the question . Comment : We certainly don t want the whole PDF in your question . But it would be good if your question mentioned roughly how many different line structures your program needs to handle . A solution that s effective for 10 line structures may not be suitable if there are many thousands of potential line structures and vice versa . .. . Answer : My suggestion is to use a dictionary keyed on the 5 digit line type code . Each value in the dictionary can be a list of field offsets or of offset width tuples indexed by field position . If your fields have names it may be convenient to use a class instead of a list to store field offset data . However namedtuples https : docs.python.org 3 library collections.html collections.namedtuple may be better here since then you can access your field offset data either via its name or by its field position so you get the best of both worlds . namedtuple s are actually implemented as classes but defining a new namedtuple type is much more compact that creating an explicit class definition and namedtuples use the slots https : docs.python.org 3 reference datamodel.html slots protocol so they take up less RAM than a normal class that uses dict for storing its attributes . .. . .. . Here s one way to use namedtuples to store field offset data . I m not claiming that the following code is the best way to do this but it should give you some ideas . output Comment : can you show me an example with the namedtuple Comment : @maazza : There are several examples of creating and using namedtuples in the docs I linked . Comment : I read it but fail to see how it can be applied to my case Comment : @maazza : Give me some field names and I ll add some example code to my answer . If you don t want need named fields then using classes or namedtuples is unnecessary you might as well just use a list . Comment : amount communication transaction code are valid field names" ] }
[ "yes-answer-long", "yes-answer-short" ]
coda
UNK_RELATION
io.js@s@38
io.js -- a maintained fork of joyent @placeholder node.js on the basis of community development active releases and semver .
{ "confidence": [ 28.153366088867188, 24.327716827392578, 22.402976989746094, 22.402976989746094, 21.604703903198242, 21.03756332397461, 21.03756332397461, 16.621158599853516, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208, 11.8016939163208 ], "content": [ "node.js http : nodejs.org .. . io.js https : iojs.org .. . nvm https : github.com creationix nvm .. . npm https : www.npmjs.com .. . .. . and hopefully supports development for : .. . .. . ionic http : ionicframework.com .. . ngCordova http : ngcordova.com", "From the current brew nvm install : Please note that upstream has asked us to make explicit managing nvm via Homebrew is unsupported by them .. . - So probably the right answer is to not use brew for nvm node.js io.js .", "I agree with noa -- if you need to have multiple versions of node io.js then brew is not the appropriate solution .", "@jfriend00 yes and it behaves differently in Firefox and in io.js which are the two environments I could test it with .", "You can help beta-test io.js support in nvm : https : github.com creationix nvm pull 616 .. . .. . If you just want io.js and are not switching versions then you can install the binary distribution of io.js from https : iojs.org dist v1.0.2 iojs-v1.0.2-darwin-x64.tar.gz that includes npm and you will not need nvm if you are not switching versions .", "I think you may have run into this bug https : github.com giakki uncss issues 142 - it s not a problem with UnCSS it is with io.js .", "nvm soon will support io.js but not at time of posting : https : github.com creationix nvm issues 590 .. . .. . Then install everything else per-project with a package.json and npm-install .", "You should install node.js with nvm because that way you do not have to provide superuser privileges when installing global packages you can simply execute npm-install -g packagename without prepending sudo .", "When I update gulp-uncss there is a strange problem.. .", "It just stop when copying extracted folder.. .", "I tried many times.. . Each time is like this.. .", "I m using iojs-v1.0.4-x64 whether the cause of the problem is this", "Is there any output or are there any errors you can show us", "@Ding I can t attach images when describing my question.. .", "Here is the output http : g.hiphotos.baidu.com image pic item 9345d688d43f8794b229caead11b0ef41ad53a1b.jpg .", "@Ding Or you can check here http : image.baidu.com detail newindex col tag pn 0 pid 16990595862 aid 406421571 user id 663109398 setid -1 sort 0 newsPn star fr from 2.baidu for the output.. .", "There is no error it just stop right there when copying extracted phantomjs.. .", "Thank you so much", "I want to use the UI from Kue https : github.com Automattic kue paralell to my Hapi.js Application .", "The Kui UI is build with Express .", "Hapi and Express are listening on port 80 on my heroku dyno .", "How can I do that", "Can someone give me an example", "The post is lacking a bit of details but I think I understand what you want .", "I will assume that both services run on the same IP@ so you obviously can t have them both on port 80 .", "I think a possible solution is to start kue on another port say 4080 and have hapi.js proxy the kue routes to the kue server .", "The relevant document section is here http : hapijs.com api 7.5.2 route-options look for the proxy option .", "There is a sample here http : tech.opentable.co.uk blog 2014 11 28 proxying-with-hapi .", "Hope I got your question right .", "yes thats the right solution .", "thanks", "I am trying to use homebrew as much as possible .", "What s the suggested way to install the following on OS X", "1 .", "Using homebrew install nvm : .. . .. . brew update .. . brew install nvm .. . source brew --prefix nvm nvm.sh .. . .. . .. . Add the last command to the .profile .bashrc or .zshrc file to not run it again on every terminal start .", "So for example to add it to the .profile run : .. . .. . echo source brew --prefix nvm nvm.sh .profile .. . .. . .. . If you have trouble with installing nvm using brew you can install it manually see here https : github.com creationix nvm install-script .. . .. . 2 .", "Using nvm install node or iojs you can install any version you want : .. . .. . nvm install 0.10 .. . or .. . nvm install iojs-1.2.0 .. . .. . .. . 3 .", "npm is shipping with node or iojs so it will be available after installing node or iojs .", "You may want to upgrade it to the latest version : .. . .. . npm-install -g npm@latest .. . .. . .. . UPD Previous version was s npm update -g npm s .", "Thanks to @Metallica for pointing to the correct way look at the comment bellow .", "4 .", "Using npm-install ionic : .. . .. . npm-install -g ionic .. . .. . .. . 5 .", "What about ngCordova : you can install it using npm or bower .", "I don t know what variant is more fit for you it depends on the package manager you want to use for the client-side .", "So I ll describe them both : .. . .. . 1 .", "Using npm : Go to your project folder and install ng-cordova in it : .. . .. . npm-install --save ng-cordova .. . .. . .. . 2 .", "Using bower : Install bower : .. . .. . npm-install -g bower .. . .. . .. . And then go to your project folder and install ngCordova in it : .. . .. . bower-install --save ngCordova .. . .. . .. . PS .. . .. . 1 .", "Some commands may require superuser privilege .. . 2 .", "Short variant of npm-install some module is npm i some module", "If you update npm itself do NOT use the npm update command .", "The upstream-recommended way to update npm is : npm-install -g npm@latest from brew info node and here http : stackoverflow.com questions 11284634 upgrade-nodejs-to-the-latest-version-on-mac-os", "@Metallica Yeah Thanks for remark", "I updated the answer .", "I did all this but for me the npm command is only available after I do : nvm install iojs .", "If I restart the terminal it is not available anymore .", "And I get : env : node : No such file or directory", "I was receiving the error message nvm is not compatible with the npm config prefix option .", "according to this site github.com creationix nvm issues 855 issue-109279804 https : github.com creationix nvm issues 855 issue-109279804 NVM is not compatible with Homebrew .", "I brew uninstalled nvm and installed nvm via the CURL command and now the error message is gone .", "If you have previously installed node using brew then you will have a bunch of extra files that you should clean up before installing node the right way .", "Plus I had to add a few settings to my startup script to make things work smoothly .", "I wrote a script to make this easy .", "I wrote a short article here http : lexsheehan.blogspot.com 2015 04 cleanly-install-nvm-node-and-npm.html that details why this is the right way .", "If you need to install iojs do so using nvm like this : .. . .. . To install brew just see its home page http : brew.sh .", "See alexpods answer for the rest .", "Awesome to see that all these package-managers and version managers really help to remove custom written scripts hacks and workarounds to get techstack xyz working .", "awesome .", "Worked for me even though I started with npm and brew both broken", "Here s what I do : .. . .. . No Homebrew for this one .", "Remember to update npm after installing : sudo npm-install -g npm@latest", "Brew is fantastic for other things however .", "I tend to be biased towards Bower whenever I have the option to install something with Bower .", "Installing node using nvm is now my preferred approach .", "For the obvious reason of being able to have multiple versions of node on my machine and also I don t have to execute npm with sudo .", "I wrote a blog post garywoodfine.com install-nodejs-nvm-osx http : garywoodfine.com install-nodejs-nvm-osx explaining how to install", "I m using n Node version management .. . .. . You can install it in two ways .. . .. . or .. . .. . You can switch between different version of node and io .", "Here s an example from my current env when I call n without params :", "In JavaScript - var declarations create properties on the global object : .. . .. . ES6 introduces lexical scoping with let https : developer.mozilla.org en-US docs Web JavaScript Reference Statements let declarations that have block scope .", "However do these declarations create properties on the global object", "In node.js s repl - if you do var x 15 it will scope it to the global-scope which you can easily verify by typing global.x in the following line .", "Question : Is there a LexicalEnvironment and associated EnvironmentRecord associated with the global-scope", "To answer my own question : yes and yes .", "8.1 para 4 .", "people.mozilla.org jorendorff https : people.mozilla.org jorendorff es6-draft.html sec-lexical-environments", "I think this is the relevant bug report for Firefox : bugzilla.mozilla.org show bug.cgi id 589199 https : bugzilla.mozilla.org show bug.cgi id 589199", "Do let statements create properties on the global object", "According to the spec https : people.mozilla.org jorendorff es6-draft.html sec-global-environment-records no : .. . .. . A global environment record is logically a single record but it is specified as a composite encapsulating an object environment record https : people.mozilla.org jorendorff es6-draft.html sec-object-environment-records and a declarative environment record https : people.mozilla.org jorendorff es6-draft.html sec-declarative-environment-records .", "The object environment record https : people.mozilla.org jorendorff es6-draft.html sec-object-environment-records has as its base object the global object of the associated Realm https : people.mozilla.org jorendorff es6-draft.html sec-global-object .", "This global object is the value returned by the global environment record s GetThisBinding concrete method .", "The object environment record component of a global environment record contains the bindings for all built-in globals clause 18 https : people.mozilla.org jorendorff es6-draft.html sec-global-object and all bindings introduced by a FunctionDeclaration GeneratorDeclaration or VariableStatement contained in global code .", "The bindings for all other ECMAScript declarations in global code are contained in the declarative environment record https : people.mozilla.org jorendorff es6-draft.html sec-declarative-environment-records component of the global environment record .", ".. . .. . Some more explanation : .. . .. . A declarative environment record stores the bindings in an internal data structure .", "It s impossible to get a hold of that data structure in any way think about function scope .", "An object environment record uses an actual JS object as data structure .", "Every property of the object becomes a binding and vice versa .", "The global environment has an object environment object whose binding object is the global object .", "Another example is with .", "Now as the cited part states only FunctionDeclaration s GeneratorDeclaration s and VariableStatement s create bindings in the global environment s object environment record .", "I.e .", "only this bindings become properties of the global object ." ] }
{ "confidence": [ 40.91913604736328, 39.26456832885742, 35.874698638916016, 33.30299758911133, 31.330177307128906, 28.70022964477539, 22.190086364746094, 20.33084487915039, 16.588436126708984, 11.729336738586426 ], "content": [ "Question : I am trying to use homebrew as much as possible . What s the suggested way to install the following on OS X node.js http : nodejs.org .. . io.js https : iojs.org .. . nvm https : github.com creationix nvm .. . npm https : www.npmjs.com .. . .. . and hopefully supports development for : .. . .. . ionic http : ionicframework.com .. . ngCordova http : ngcordova.com .. . Answer : I agree with noa -- if you need to have multiple versions of node io.js then brew is not the appropriate solution . You can help beta-test io.js support in nvm : https : github.com creationix nvm pull 616 .. . .. . If you just want io.js and are not switching versions then you can install the binary distribution of io.js from https : iojs.org dist v1.0.2 iojs-v1.0.2-darwin-x64.tar.gz that includes npm and you will not need nvm if you are not switching versions . Remember to update npm after installing : sudo npm-install -g npm@latest", "Question : I am trying to use homebrew as much as possible . What s the suggested way to install the following on OS X node.js http : nodejs.org .. . io.js https : iojs.org .. . nvm https : github.com creationix nvm .. . npm https : www.npmjs.com .. . .. . and hopefully supports development for : .. . .. . ionic http : ionicframework.com .. . ngCordova http : ngcordova.com .. . Answer : Here s what I do : .. . .. . No Homebrew for this one . nvm soon will support io.js but not at time of posting : https : github.com creationix nvm issues 590 .. . .. . Then install everything else per-project with a package.json and npm-install .", "Question : I am trying to use homebrew as much as possible . What s the suggested way to install the following on OS X node.js http : nodejs.org .. . io.js https : iojs.org .. . nvm https : github.com creationix nvm .. . npm https : www.npmjs.com .. . .. . and hopefully supports development for : .. . .. . ionic http : ionicframework.com .. . ngCordova http : ngcordova.com .. . Answer : I m using n Node version management .. . .. . You can install it in two ways .. . .. . or .. . .. . You can switch between different version of node and io . Here s an example from my current env when I call n without params :", "Question : I am trying to use homebrew as much as possible . What s the suggested way to install the following on OS X node.js http : nodejs.org .. . io.js https : iojs.org .. . nvm https : github.com creationix nvm .. . npm https : www.npmjs.com .. . .. . and hopefully supports development for : .. . .. . ionic http : ionicframework.com .. . ngCordova http : ngcordova.com .. . Answer : You should install node.js with nvm because that way you do not have to provide superuser privileges when installing global packages you can simply execute npm-install -g packagename without prepending sudo . Brew is fantastic for other things however . I tend to be biased towards Bower whenever I have the option to install something with Bower . Comment : Installing node using nvm is now my preferred approach . For the obvious reason of being able to have multiple versions of node on my machine and also I don t have to execute npm with sudo . I wrote a blog post garywoodfine.com install-nodejs-nvm-osx http : garywoodfine.com install-nodejs-nvm-osx explaining how to install", "Question : I am trying to use homebrew as much as possible . What s the suggested way to install the following on OS X node.js http : nodejs.org .. . io.js https : iojs.org .. . nvm https : github.com creationix nvm .. . npm https : www.npmjs.com .. . .. . and hopefully supports development for : .. . .. . ionic http : ionicframework.com .. . ngCordova http : ngcordova.com .. . Answer : If you have previously installed node using brew then you will have a bunch of extra files that you should clean up before installing node the right way . Plus I had to add a few settings to my startup script to make things work smoothly . I wrote a script to make this easy . I wrote a short article here http : lexsheehan.blogspot.com 2015 04 cleanly-install-nvm-node-and-npm.html that details why this is the right way . If you need to install iojs do so using nvm like this : .. . .. . To install brew just see its home page http : brew.sh . See alexpods answer for the rest . Comment : Awesome to see that all these package-managers and version managers really help to remove custom written scripts hacks and workarounds to get techstack xyz working . awesome . Comment : Worked for me even though I started with npm and brew both broken", "Question : I am trying to use homebrew as much as possible . What s the suggested way to install the following on OS X node.js http : nodejs.org .. . io.js https : iojs.org .. . nvm https : github.com creationix nvm .. . npm https : www.npmjs.com .. . .. . and hopefully supports development for : .. . .. . ionic http : ionicframework.com .. . ngCordova http : ngcordova.com .. . Answer : 1 . Using homebrew install nvm : .. . .. . brew update .. . brew install nvm .. . source brew --prefix nvm nvm.sh .. . .. . .. . Add the last command to the .profile .bashrc or .zshrc file to not run it again on every terminal start . So for example to add it to the .profile run : .. . .. . echo source brew --prefix nvm nvm.sh .profile .. . .. . .. . If you have trouble with installing nvm using brew you can install it manually see here https : github.com creationix nvm install-script .. . .. . 2 . Using nvm install node or iojs you can install any version you want : .. . .. . nvm install 0.10 .. . or .. . nvm install iojs-1.2.0 .. . .. . .. . 3 . npm is shipping with node or iojs so it will be available after installing node or iojs . You may want to upgrade it to the latest version : .. . .. . npm-install -g npm@latest .. . .. . .. . UPD Previous version was s npm update -g npm s . Thanks to @Metallica for pointing to the correct way look at the comment bellow . 4 . Using npm-install ionic : .. . .. . npm-install -g ionic .. . .. . .. . 5 . What about ngCordova : you can install it using npm or bower . I don t know what variant is more fit for you it depends on the package manager you want to use for the client-side . So I ll describe them both : .. . .. . 1 . Using npm : Go to your project folder and install ng-cordova in it : .. . .. . npm-install --save ng-cordova .. . .. . .. . 2 . Using bower : Install bower : .. . .. . npm-install -g bower .. . .. . .. . And then go to your project folder and install ngCordova in it : .. . .. . bower-install --save ngCordova .. . .. . .. . PS .. . .. . 1 . Some commands may require superuser privilege .. . 2 . Short variant of npm-install some module is npm i some module Comment : If you update npm itself do NOT use the npm update command . The upstream-recommended way to update npm is : npm-install -g npm@latest from brew info node and here http : stackoverflow.com questions 11284634 upgrade-nodejs-to-the-latest-version-on-mac-os Comment : @Metallica Yeah Thanks for remark I updated the answer . Comment : I did all this but for me the npm command is only available after I do : nvm install iojs . If I restart the terminal it is not available anymore . And I get : env : node : No such file or directory Comment : From the current brew nvm install : Please note that upstream has asked us to make explicit managing nvm via Homebrew is unsupported by them .. . - So probably the right answer is to not use brew for nvm node.js io.js . Comment : I was receiving the error message nvm is not compatible with the npm config prefix option . according to this site github.com creationix nvm issues 855 issue-109279804 https : github.com creationix nvm issues 855 issue-109279804 NVM is not compatible with Homebrew . I brew uninstalled nvm and installed nvm via the CURL command and now the error message is gone .", "Question : When I update gulp-uncss there is a strange problem.. . It just stop when copying extracted folder.. . I tried many times.. . Each time is like this.. . I m using iojs-v1.0.4-x64 whether the cause of the problem is this Comment : Is there any output or are there any errors you can show us Comment : @Ding I can t attach images when describing my question.. . Here is the output http : g.hiphotos.baidu.com image pic item 9345d688d43f8794b229caead11b0ef41ad53a1b.jpg . Comment : @Ding Or you can check here http : image.baidu.com detail newindex col tag pn 0 pid 16990595862 aid 406421571 user id 663109398 setid -1 sort 0 newsPn star fr from 2.baidu for the output.. . There is no error it just stop right there when copying extracted phantomjs.. . .. . Answer : I think you may have run into this bug https : github.com giakki uncss issues 142 - it s not a problem with UnCSS it is with io.js . Comment : Thank you so much", "Question : In JavaScript - var declarations create properties on the global object : .. . .. . ES6 introduces lexical scoping with let https : developer.mozilla.org en-US docs Web JavaScript Reference Statements let declarations that have block scope . However do these declarations create properties on the global object Comment : @jfriend00 yes and it behaves differently in Firefox and in io.js which are the two environments I could test it with . Comment : In node.js s repl - if you do var x 15 it will scope it to the global-scope which you can easily verify by typing global.x in the following line . Comment : Question : Is there a LexicalEnvironment and associated EnvironmentRecord associated with the global-scope Comment : To answer my own question : yes and yes . 8.1 para 4 . people.mozilla.org jorendorff https : people.mozilla.org jorendorff es6-draft.html sec-lexical-environments Comment : I think this is the relevant bug report for Firefox : bugzilla.mozilla.org show bug.cgi id 589199 https : bugzilla.mozilla.org show bug.cgi id 589199 .. . Answer : Per the specification https : people.mozilla.org jorendorff es6-draft.html sec-let-and-const-declarations : .. . .. . let and const declarations define variables that are scoped to the running execution context s LexicalEnvironment . This means that you should be able to access the variable inside the execution scope but not outside . This expands the execution scope beyond the classic JS closure structure of function-only or global . Defining a let variable globally leaves this open to interpretation as you see in Firefox it binds a global variable where as V8 iojs does not . It s worth mentioning that console.log typeof x will returl number in iojs . In practice you should not define variables outside of modules or functions as much as possible.. . especially with const and let Comment : Defining a let variable globally leaves this open to interpretation As you can see from my answer it does not . What you say is true we really do have more things that create scope modules as well however that alone does not answer the posed question .", "Question : In JavaScript - var declarations create properties on the global object : .. . .. . ES6 introduces lexical scoping with let https : developer.mozilla.org en-US docs Web JavaScript Reference Statements let declarations that have block scope . However do these declarations create properties on the global object Comment : @jfriend00 yes and it behaves differently in Firefox and in io.js which are the two environments I could test it with . Comment : In node.js s repl - if you do var x 15 it will scope it to the global-scope which you can easily verify by typing global.x in the following line . Comment : Question : Is there a LexicalEnvironment and associated EnvironmentRecord associated with the global-scope Comment : To answer my own question : yes and yes . 8.1 para 4 . people.mozilla.org jorendorff https : people.mozilla.org jorendorff es6-draft.html sec-lexical-environments Comment : I think this is the relevant bug report for Firefox : bugzilla.mozilla.org show bug.cgi id 589199 https : bugzilla.mozilla.org show bug.cgi id 589199 .. . Answer : Do let statements create properties on the global object According to the spec https : people.mozilla.org jorendorff es6-draft.html sec-global-environment-records no : .. . .. . A global environment record is logically a single record but it is specified as a composite encapsulating an object environment record https : people.mozilla.org jorendorff es6-draft.html sec-object-environment-records and a declarative environment record https : people.mozilla.org jorendorff es6-draft.html sec-declarative-environment-records . The object environment record https : people.mozilla.org jorendorff es6-draft.html sec-object-environment-records has as its base object the global object of the associated Realm https : people.mozilla.org jorendorff es6-draft.html sec-global-object . This global object is the value returned by the global environment record s GetThisBinding concrete method . The object environment record component of a global environment record contains the bindings for all built-in globals clause 18 https : people.mozilla.org jorendorff es6-draft.html sec-global-object and all bindings introduced by a FunctionDeclaration GeneratorDeclaration or VariableStatement contained in global code . The bindings for all other ECMAScript declarations in global code are contained in the declarative environment record https : people.mozilla.org jorendorff es6-draft.html sec-declarative-environment-records component of the global environment record . .. . .. . Some more explanation : .. . .. . A declarative environment record stores the bindings in an internal data structure . It s impossible to get a hold of that data structure in any way think about function scope . An object environment record uses an actual JS object as data structure . Every property of the object becomes a binding and vice versa . The global environment has an object environment object whose binding object is the global object . Another example is with . Now as the cited part states only FunctionDeclaration s GeneratorDeclaration s and VariableStatement s create bindings in the global environment s object environment record . I.e . only this bindings become properties of the global object . All other declarations e.g . const and let are stored in the global environment s declarative environment record which is not based on the global object . Comment : But 8.1.1.1 people.mozilla.org jorendorff https : people.mozilla.org jorendorff es6-draft.html sec-declarative-environment-records indicates that let and var create environment records of the same type i.e . they both create declarative environment records suggesting that let and var positions on the global object might correspond . I suppose the global case might be special however . Comment : let and var don t create records . let and var bindings are stored in environment records . And there are different types of environment records : declarative what you linked to object function module and global where declarative and object records are the two primary types and all others are derivates . Comment : Please can you clarify the purpose of your making the distinction . If I declare a variable in the global-scope an environment record is created and the variable is stored within it like you say . So we are both correct no Are you saying the type of environment record used depends on whether we are in the global-scope or not Comment : Felix can you confirm that VariableStatement mentioned in your quote means specifically function-scoped declaration or does it include let too I presume the former . Comment : To clarify some things : The big difference between a declarative record and an object record is that a declarative record uses an internal data structure to store the bindings . An object record uses an actual JS object as storage . In ES5 the global environment was defined as object record es5.github.io x10.2.3 http : es5.github.io x10.2.3 and that s why all variable declarations in global-scope become properties of the global object . In ES6 though the global environment consist of two different environment record types and only var declarations are stored in the object record let declarations are not .", "Question : I want to use the UI from Kue https : github.com Automattic kue paralell to my Hapi.js Application . The Kui UI is build with Express . Hapi and Express are listening on port 80 on my heroku dyno . How can I do that Can someone give me an example .. . Answer : The post is lacking a bit of details but I think I understand what you want . I will assume that both services run on the same IP@ so you obviously can t have them both on port 80 . I think a possible solution is to start kue on another port say 4080 and have hapi.js proxy the kue routes to the kue server . The relevant document section is here http : hapijs.com api 7.5.2 route-options look for the proxy option . There is a sample here http : tech.opentable.co.uk blog 2014 11 28 proxying-with-hapi . Hope I got your question right . Comment : yes thats the right solution . thanks" ] }
[ "yes-answer-long", "yes-answer-short" ]
s
UNK_RELATION
r-bigmemory@java@91
r-bigmemory -- r-bigmemory is an r-package not to be confused with bigmemory referring to @placeholder ehcache refers to the suite of bigmemory packages bigmemory bigalgebra bigtabulate that allow for creating storing accessing and manipulating massive matrices .
{ "confidence": [ 107.13702392578125, 100.45256805419922, 98.73220825195312, 98.56720733642578, 95.5789566040039, 94.62816619873047, 94.62816619873047, 94.62816619873047, 94.58143615722656, 94.58143615722656, 94.23197937011719, 93.75072479248047, 93.19681549072266, 93.06748962402344, 91.96277618408203, 90.57054138183594, 90.22801971435547, 89.2889633178711, 87.18981170654297, 87.18981170654297, 85.82424926757812, 84.40703582763672, 84.40703582763672, 84.40703582763672, 84.40703582763672, 83.90898895263672, 82.13577270507812, 82.13577270507812, 80.74307250976562, 80.74307250976562, 79.9124755859375, 79.2020492553711, 79.12112426757812, 78.50830841064453, 77.41462707519531, 77.23758697509766, 77.01033020019531, 76.4710464477539, 76.4710464477539, 76.35081481933594, 76.29214477539062, 75.67520141601562, 75.02672576904297, 74.95709991455078, 74.83686828613281, 73.1426010131836, 72.78679656982422, 72.65886688232422, 72.54925537109375, 72.27369689941406, 72.27369689941406, 72.27369689941406, 72.273193359375, 72.18724060058594, 70.7739028930664, 70.461181640625, 70.461181640625, 69.79591369628906, 69.58168029785156, 68.94474792480469, 68.85879516601562, 67.13273620605469, 66.81625366210938, 66.18970489501953, 65.78131866455078, 65.78131866455078, 65.78131866455078, 65.78131866455078, 65.78131866455078, 65.78131866455078, 65.78131866455078, 65.78131866455078, 65.78131866455078, 64.26737213134766, 63.31608581542969, 63.31608581542969, 62.787696838378906, 62.787696838378906, 62.787696838378906, 62.787696838378906, 62.54151153564453, 62.54151153564453, 62.4528694152832, 62.4528694152832, 62.4528694152832, 61.553348541259766, 61.01940155029297, 57.18927764892578, 55.910526275634766, 55.910526275634766, 54.41631317138672, 53.87532424926758, 53.78203201293945, 51.98487091064453, 51.91130828857422, 51.91130828857422, 51.91130828857422, 48.58285903930664, 48.58285903930664, 48.0148811340332 ], "content": [ "I am working with a large database in R bigmemory .", "Is this possible in bigmemory", "I try to use bigmemory package in R and I m stuck in the very beginning .", "After the upgrade to R 3.0.x it seems like bigmemory support for windows is temporarily suspended see http : cran.r-project.org web packages bigmemory NEWS .", "cran.r-project.org web packages bigmemory bigmemory.pdf http : cran.r-project.org web packages bigmemory bigmemory.pdf", "It s a pain but bigmemory is worth it :", "It isn t in either bigmemory or bigmemoryExtras", "read.big.matrix is in bigmemory and not biganalytics .", "And a bigmemory by design represents things outside of R you re stuck .", "I just installed bigmemory and biganalytics with R 3.2.2 and it worked without a problem .", "I am making use of the bigmemory package along with bigalgebra and biganalytics .", "I ve written some C++ code to do this adapted from the bigmemory Rcpp gallery http : gallery.rcpp.org articles using-bigmemory-with-rcpp : .. . .. . rowSums.cpp .. . .. . In R :", "Did you check bigmemory PDF at https : cran.r-project.org web packages bigmemory bigmemory.pdf", "I have been trying to install bigmemory on my R installation .", "I am one of the current developers of the bigmemory packages .", "I m trying to load in a 689.4 MB csv using read.big.matrix from the R biganalytics package in a similar way to the Vignette for bigmemory https : cran.r-project.org web packages bigmemory vignettes Overview.pdf .", "I am developing an R package called biglasso https : github.com YaohuiZeng biglasso that fits lasso models in R for massive data sets by using memory-mapping techniques implemented in bigmemory C++ library https : github.com kaneplusplus bigmemory tree master inst include bigmemory .", "I tried to use the package bigmemory but with not big success .", "I use R 2.15.3 for bigmemory and switch back to R 3.1.0 when not using it .", "I m not familiar enough with R and bigmemory internals to understand what is and is not inside or outside or R .", "I m trying to import the bigmemory package into R . I downloaded the package from CRAN and saved it in the R package library on my local machine .", "You try to call apply in a bigmemory object .", "So a simple install.packages bigmemory will do a clean install", "I did see that bit in the bigmemory documentation .", "I came across bigmemory and biganalytics with bigkmeans function .", "Since X is very huge it s backed as big.matrix object stored in disk and accessed using methods in R package bigmemory .", "I have stored this data in a big.matrix object from package bigmemory .", "I have a csv file and want to open it with the bigmemory package .", "I am not able to read bigmemory object in igraph in R .. . .. . Is there anyway to read big.matrix datatype in igraph", "Just use devtools : : install github kaneplusplus bigmemory with your most recent R version .", "I m using the bigmemory https : cran.r-project.org web packages bigmemory and biganalytics https : cran.r-project.org web packages biganalytics packages and specifically trying to compute the mean of a big.matrix object .", "Or well this is a more recent version : install.packages c BH biglm library devtools devtools : : install github kaneplusplus bigmemory local T library bigmemory", "I ve found the bigmemory package and friends bigtabulate and biganalytics but was hoping that someone could point me to a worked out example that uses file backing with these packages .", "cran.r-project.org web packages bigmemory index.html http : cran.r-project.org web packages bigmemory index.html points out that a Windows binary is not available and suggests that you compile from source .", "See the source code here https : github.com fcastanedo bigmemory-R blob fc4544fced19891df3d2a1aedad868739833b4ce src bigmemory.cpp L843-L860 .", "For me this works : install.packages c BH biglm install.packages bigmemory repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages bigmemory.sri repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages biganalytics repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages bigalgebra repos R-Forge.R-project.org http : R-Forge.R-project.org 22 library bigmemory", "thanks RHertel I will do that but I don t think that s the problem because bigmemory and bigalgebra got installed successfully", "Nonetheless I downloaded the tarball for bigmemory and attempted to RCMD --build bigmemory 4.4.3.tar.gz .", "@RafaelPereira I m trying to better understand the bigmemory library and its applications .", "I am using large datasets for my research 4.72GB and I discovered bigmemory package in R that supposedly handles large datasets up to the range of 10GB .", "I urge you to read this document explaining how bigmemory manages data particularly page 6 : BM http : cran.r-project.org web packages bigmemory bigmemory.pdf", "On page 5 of this paper on bigmemory http : www.stat.yale.edu mjk56 temp bigmemory-vignette.pdf the authors say the package also supports operations such as prod colmean colsd etc but I cannot locate documentation on this .", "You should avoid trying to use functions and data-structures that are outside those supported by the bigmemory big suite of packages .", "I am actually trying to install bigrf but bigmemory seems to be a dependency .", "My Code : I am using bigmemory and recommenderlab package in R .. . .. . Error in .local x .. . : removeKnownRatings : Number of rows in x and known do not match", "Feel free to submit an issue here https : github.com kaneplusplus bigmemory issues", "I am using the package bigmemory to interact with large matrices in R . This works well for large matrices except that the attach.big.matrix function to reload a binary file created with read.big.matrix is MUCH slower than the original call to read.big.matrix .", "The bigmemory package in R provides a class big.matrix which stores a matrix in memory that can be shared across R sessions as some sort of C++ object returning a pointer to the R language .", "questions 25721884 how-should-i-deal-with-package-xxx-is-not-available-for-r-version-x-y-z-wa 8 answers .. . .. . I am trying to install the bigmemory package in R 64 version 3.0.2 on Windows .", "I like what I ve read about the bigmemory library however when I attempt to install it I get a warning that it s not available on R 2.15.2 .", "I ve read about some other R tools for managing big data but none seem apropros to my task like bigmemory .", "I ve worked with bigmemory on windows before and it seems like the only R version that I can use it on is 2.15.3 it should install easily with a standard call to install.packages .", "You could always modify the code in the Rcpp gallery to do rowSums instead of colSums : gallery.rcpp.org articles using-bigmemory-with-rcpp http : gallery.rcpp.org articles using-bigmemory-with-rcpp", "I need to know whether the R object obj is a regular matrix or big.matrix use R package bigmemory so that I can call different functions for computation .", "If you re open to C++ rather than C then we have two Rcpp Gallery http : gallery.rcpp.org posts for you : .. . .. . BigMemory with Rcpp http : gallery.rcpp.org articles using-bigmemory-with-rcpp .. . BigMemory with RcppArmadillo http : gallery.rcpp.org articles using-bigmemory-with-rcpparmadillo .. . .. . The narrow answer is probably testing for external pointer SEXP in an S4 class.. . but then I don t really do plain C anymore as Rcpp makes things so much easier .", "We have begun quite a few new updates to the bigmemory package to make it more modern and accessible .", "Based on other StackOverflow discussions I m using the bigmemory package and am running on three of my four cores .", "See http : cran.r-project.org web packages bigmemory index.html under Windows Binary .", "I put each vector into a big matrix from the bigmemory package but am unable to run mapply on the big matrices receive this S4 class is not subsettable .", "According to the bigmemory documentation.. . A data frame will have character vectors converted to factors and then all factors converted to numeric factor levels .. . .. . Any suggested workarounds to get randomForest classification to work with bigmemory", "For example : .. . .. . Using more functions from the bigmemory package i can then write out a short description of the matrix to file open up another R session and access the matrix in memory from that new R session .", "br Error in as.data.frame.default data : cannot coerce class structure big.matrix package bigmemory into a data.frame big.response.vec - as.factor big.mat 5", "Then the model fitting algorithm accesses the big.matrix via MatrixAccessor https : github.com kaneplusplus bigmemory blob master inst include bigmemory MatrixAccessor.hpp defined in the C++ library to obtain data for computation .", "Fortunately an easy fix after restarting R and reloading the bigmemory package run : .. . .. . This of course presumes the big.matrix object and its associated backing file were successfully created and saved in the prior session .", "which @agstudy answered above but how do I get row means for a bigmemory object", "If you have the development tools installed google Rtools then install.packages bigmemory type source should work .. .", "I would like to perform a transpose of a very large bigmemory big.matrix B so that I can compute AB T .", "I think I am missing some easier way but couldn t understand much from bigmemory matrix documentation .", "Unsure if this is still an open problem but I don t see you using bigmemory anywhere .", "If you don t pass has.row.names TRUE bigmemory will consider row names a separate column and without header you ll get mismatch .", "I m working with 32 GB of RAM so the file fits in memory but I want to explore the data under the bigmemory framework .", "Perhaps you can file an issue https : github.com kaneplusplus bigmemory issues with the other developers and they may have an idea .", "fread seems to loads the entire file into memory whereas bigmemory will store pointers in memory instead .", "I get the following error : .. . .. . install.packages bigmemory .. . .. . Any help or insight will be much appreciated .", "Now I have a Database up to 35 Gb so the usual read.table command is useless so I found the read.big.matrix function into the bigmemory package .", "I am using the bigmemory package to load a heavy dataset but when I check the size of the object with function object.size it always returns 664 bytes .", "I googled r-bigmemory rowmeans and ended up here : http : www.stat.yale.edu jay HPCwR examples bioinfo bioinfo3.txt .. . .. . Reproducing an interesting snippet : .. . .. . The example goes on to show how to use parallel methods doMC etc .", "It is merely your assumption that the pointed-object should be serialized when its very design is made to make it be outside the reach of R . You simply can t save a bigmemory object this way .", "I have a large dataset with size approximately 5.3 GB and i have stored data using bigmemory in R . Please let me know how to apply XGBOOST to this kind of data", "Software Details : .. . .. . Data : 2008 File http : stat-computing.org dataexpo 2009 the-data.html .. . R : 3.2.3 .. . OS : x86 64-pc-linux-gnu .. . bigmemory : 4.5.19 .. . biganalytics : 1.1.14", "Going to the CRAN page here http : cran.r-project.org web packages bigmemory index.html shows you that you have to compile the sources on windows .", "According to the package s news page http : cran.r-project.org web packages bigmemory NEWS Windows support is temporarily suspended due to issues with the Boost headers .", "has anyone been able to set up a classification not a regressions using randomForest AND the bigmemory library .", "As I know randomForest loads all bigmemory data in RAM when one calls model building .", "Much of this is very similar to the RcppGallery example http : gallery.rcpp.org articles using-bigmemory-with-rcpparmadillo .", "Install the package read the vignettes et enjoy reusing all the example code available on Rcpp Gallery http : gallery.rcpp.org .. . .. . There is even an example of how to use bigmemory in conjunction with Rcpp here http : gallery.rcpp.org articles using-bigmemory-with-rcpp", "See page 8 of the documentation for a description .. . .. . https : cran.r-project.org web packages bigmemory bigmemory.pdf .. . .. . Ref : .. . .. . R High Performance Programming By : Aloysius Lim William Tjhi .. . Data Science in R By : Duncan Temple Lang Deborah Nolan", "The latter don t have an implicit method to convert to a matrix argument needed by apply .. . .. . Forcing the conversion to a matrix correct the problem .. . .. . Edit after OP answer : .. . .. . The package biganalytics extends the bigmemory package with various analytics .", "But I m still pretty sure that using bigmemory with randomForest isn t going to accomplish anything : the values will have to all be loaded into memory to be handed off to the C code .", "I added a link-to example with bigmemory and there is really plainty of example over SO just google Rseek Rcpp there is also a book written on the subject", "I am looking for any tips advice on how to load in merge these files in a manageable way if possible way using R.I have been looking into packages such as ff and bigmemory will these offer me a solution", "I also tested functions in biganalytics https : cran.r-project.org web packages biganalytics index.html package also using bigmemory and found the memory blows up too .", "I assume that memory-mapping technique allows to work on data that larger than available RAM as mentioned in the bigmemory paper http : www.stat.yale.edu jay JSS KEW.pdf .", "class cp.2006 1 data.frame class cp2006.big.matrix 1 big.matrix attr package 1 bigmemory cp2006.big.matrix An object of class big.matrix Slot address : pointer : 0x7fceb865caa0", "EDIT : .. . .. . On the bigmemory website http : sites.google.com site bigmemoryorg research data-expo there s an example of preprocessing data using a python script to change character information to integer .", "At some point in my search someone on a mailing list asked if the user could run something like x - big.matrix nrow 1000 ncol 10 to make sure bigmemory was working in general .", "To determine the size of the bigmemory matrix use : .. . .. . Explanation .. . .. . Data stored in big.matrix objects can be of type double 8 bytes the default integer 4 bytes short 2 bytes or char 1 byte .", "Using bigmemory : : big.matrix for this dataset is a nice solution but providing such a matrix m in the gbm or randomForest algorithms causes the error : .. . .. . class m outputs the folowing : .. . .. . Is there a way to correctly pass a big.matrix instance into these algorithms", "Note - as we are using bigmemory and therefore concerned with RAM usage I have this example returned the N-1 x N-1 matrix of only lower triangular elements .", "I have tried several options .. . .. . 1 . download the current source and run the command in R v3.0.1 .. . install.packages D : Downloads bigmemory 4.4.3.tar.gz repos NULL type source .. . but this gives an error ERROR : Unix-only package .. . 2 . download older sources and run a similar commands in the various installations of R V2 V3 etc .. . This gives me an error ERROR : configuration failed for package bigmemory .. . .. . Any ideas" ] }
{ "confidence": [ 147.89906311035156, 138.9983367919922, 129.67611694335938, 127.92965698242188, 124.8748779296875, 124.40778350830078, 124.15161895751953, 123.36351776123047, 121.18204498291016, 121.01607513427734, 119.94854736328125, 119.81555938720703, 118.45259857177734, 113.71953582763672, 113.49190521240234, 111.78266143798828, 111.41346740722656, 108.2611083984375, 105.24129486083984, 104.044189453125 ], "content": [ "Question : This question already has an answer here : .. . .. . How should I deal with package xxx is not available for R version x.y.z warning questions 25721884 how-should-i-deal-with-package-xxx-is-not-available-for-r-version-x-y-z-wa 8 answers .. . .. . I am trying to install the bigmemory package in R 64 version 3.0.2 on Windows . I get the following error : .. . .. . install.packages bigmemory .. . .. . Any help or insight will be much appreciated . I get the same error with previous R version 2.15 . Comment : For me this works : install.packages c BH biglm install.packages bigmemory repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages bigmemory.sri repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages biganalytics repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages bigalgebra repos R-Forge.R-project.org http : R-Forge.R-project.org 22 library bigmemory Comment : Or well this is a more recent version : install.packages c BH biglm library devtools devtools : : install github kaneplusplus bigmemory local T library bigmemory .. . Answer : See http : cran.r-project.org web packages bigmemory index.html under Windows Binary . There are no windows binarys available . Have a look at the Read-Me file .", "Question : This question already has an answer here : .. . .. . How should I deal with package xxx is not available for R version x.y.z warning questions 25721884 how-should-i-deal-with-package-xxx-is-not-available-for-r-version-x-y-z-wa 8 answers .. . .. . I am trying to install the bigmemory package in R 64 version 3.0.2 on Windows . I get the following error : .. . .. . install.packages bigmemory .. . .. . Any help or insight will be much appreciated . I get the same error with previous R version 2.15 . Comment : For me this works : install.packages c BH biglm install.packages bigmemory repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages bigmemory.sri repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages biganalytics repos R-Forge.R-project.org http : R-Forge.R-project.org 22 install.packages bigalgebra repos R-Forge.R-project.org http : R-Forge.R-project.org 22 library bigmemory Comment : Or well this is a more recent version : install.packages c BH biglm library devtools devtools : : install github kaneplusplus bigmemory local T library bigmemory .. . Answer : According to the package s news page http : cran.r-project.org web packages bigmemory NEWS Windows support is temporarily suspended due to issues with the Boost headers . That s the latest entry on the page dated 2013-03-09 . Comment : You need to change the version of R to 2.15.3", "Question : I would like to perform a transpose of a very large bigmemory big.matrix B so that I can compute AB T . Is this possible in bigmemory And more importantly how can I find documation about this On page 5 of this paper on bigmemory http : www.stat.yale.edu mjk56 temp bigmemory-vignette.pdf the authors say the package also supports operations such as prod colmean colsd etc but I cannot locate documentation on this . .. . Answer : That documentation is rather old at this point and is rapidly becoming more so . I am one of the current developers of the bigmemory packages . We have begun quite a few new updates to the bigmemory package to make it more modern and accessible . We hope to be releasing a new updated version to CRAN shortly . That said the transpose functionality is actually to be part of the bigalgebra package . At the moment it is under heavy development where I have been working on extending the functions to include more simple functions like t . Fair warning there is a good chance you will find a bug or two . So after talking perhaps too much here is a potential solution . Install my current development branch of bigalgebra .. . .. . This will provide you with the t method for big.matrix objects . One follow-up point you seem to be specifically interested in the tcrossprod of two matrices . I will keep this in mind to create the respective binding in the bigalgebra package . Comment : A version of tcrossprod for big.matrix sounds great Comment : Also a related question what is the state of element-wise matrix-multiplication with your current master branch I saw you ve added that to the Arith group generic for big.matrix . Is it safe to try out or still experimental Comment : @andrew element-wise multiplication should be functional . I say everything is experimental because I am working on setting up the backend to rely on RcppArmadillo to improve the interface with alternate BLAS LAPACK libraries . As such much of the backend code is occasionally in flux . You should be safe right now as I haven t had too much time recently to devote to it unfortunately .", "Question : I m doing some analysis that requires me to compute a distance-matrix Euclidean for now likely Mahalanobis later from a 7000x182 array that will result in a 7000x7000 matrix assuming I take the upper part of the matrix too . The problem I m running into is that I keep getting the cannot allocate vector.. . warning . I ve read up enough to know that R can t allocate enough contiguous memory on my PC to perform the action . My PC has 3GB of RAM and despite my best efforts or rm ing objects using gc increasing my memory allocation to R through memory.limit size it doesn t work . I like what I ve read about the bigmemory library however when I attempt to install it I get a warning that it s not available on R 2.15.2 . Am I missing something here Is there a way around this I ve read about some other R tools for managing big data but none seem apropros to my task like bigmemory . Comment : what OS cran.r-project.org web packages bigmemory index.html http : cran.r-project.org web packages bigmemory index.html points out that a Windows binary is not available and suggests that you compile from source . If you have the development tools installed google Rtools then install.packages bigmemory type source should work .. . Comment : I apologize . I thought I typed Windows XP SP3 in my posting . Oops I did see that bit in the bigmemory documentation . I just never had to do that . I use Linux at home so I never ran into the issue . I ll try tomorrow at work . Thanks . Comment : Ok so I tried downloading the latest .exe for RTools . Unfortunately since my work laptop is basically locked down by IT I couldn t edit the path to include my R bin directory . Nonetheless I downloaded the tarball for bigmemory and attempted to RCMD --build bigmemory 4.4.3.tar.gz . I got the error that it s a UNIX-Only package . ANy thoughts Does RCMD work without Rtools Comment : Don t know . Ask maintainers .. . Answer : I ve worked with bigmemory on windows before and it seems like the only R version that I can use it on is 2.15.3 it should install easily with a standard call to install.packages . After the upgrade to R 3.0.x it seems like bigmemory support for windows is temporarily suspended see http : cran.r-project.org web packages bigmemory NEWS . I was also never able to get it to work on R 2.15.2 or earlier either I always ran into errors like the ones you mentioned . My solution has been to have R 2.15.3 and the most recent version of R both installed on my windows machine . I use R 2.15.3 for bigmemory and switch back to R 3.1.0 when not using it . It s a pain but bigmemory is worth it :", "Question : I m trying to load in a 689.4 MB csv using read.big.matrix from the R biganalytics package in a similar way to the Vignette for bigmemory https : cran.r-project.org web packages bigmemory vignettes Overview.pdf . Vignette Code : .. . .. . Per the comment from 42- I removed the factor variables using cut on the command-line cut -d -f9 11 17 18 23 --complement 2008.csv 2008cut.csv .. . .. . I then removed any of the NA values found in the data using sed sed -i s NA 0 g 2008cut.csv Even with those pre-processing steps I receive the same error . My code : .. . .. . I receive the following error when trying to run read.big.matrix : .. . .. . I have found others having this problem but they had mixed data http : stackoverflow.com questions 12725603 reading-big-data-in-r-by-read-big-matrix or a similar problem https : stat.ethz.ch pipermail r-help 2012-May 312404.html but no response . At some point in my search someone on a mailing list asked if the user could run something like x - big.matrix nrow 1000 ncol 10 to make sure bigmemory was working in general . I am able to run that code and generate a big.matrix . Any guidance would be greatly appreciated Software Details : .. . .. . Data : 2008 File http : stat-computing.org dataexpo 2009 the-data.html .. . R : 3.2.3 .. . OS : x86 64-pc-linux-gnu .. . bigmemory : 4.5.19 .. . biganalytics : 1.1.14 Comment : Is your problem a matter of memory limit or are you just trying to improve the speed of reading .csv file Comment : The documentation of the file structure on the linked page suggests that choosing integer for that file would not succeed . Some of the columns are clearly not integers . Comment : @RafaelPereira I m trying to better understand the bigmemory library and its applications . I m working with 32 GB of RAM so the file fits in memory but I want to explore the data under the bigmemory framework . @42- Good point . I originally tried this with an amazon file . Even after removing the factor variables using cut -d -f9 11 17 18 23 --complement 2008.csv 2008cut.csv I received the same error : - Comment : read.big.matrix is in bigmemory and not biganalytics . Unfortunately I cannot reproduce this it works without a problem on my linux Ubuntu 14.04 box . Perhaps you can file an issue https : github.com kaneplusplus bigmemory issues with the other developers and they may have an idea . .. . Answer : For reading large-files I suggest to use the fread from R data.table package . Comment : This does not address the question does it Comment : Looks like the resulting table works with tools like biglm but not bigkmeans . fread seems to loads the entire file into memory whereas bigmemory will store pointers in memory instead .", "Question : I have been trying to install bigmemory on my R installation . My OS is windows-7 64 bit and I have tried it on R V2.15.1 2.15.2 and 3.0.1 64 bit but I cant get it to work . I have tried several options .. . .. . 1 . download the current source and run the command in R v3.0.1 .. . install.packages D : Downloads bigmemory 4.4.3.tar.gz repos NULL type source .. . but this gives an error ERROR : Unix-only package .. . 2 . download older sources and run a similar commands in the various installations of R V2 V3 etc .. . This gives me an error ERROR : configuration failed for package bigmemory .. . .. . Any ideas I am actually trying to install bigrf but bigmemory seems to be a dependency . Is there any workaround for this Many thanks .. . Answer : Going to the CRAN page here http : cran.r-project.org web packages bigmemory index.html shows you that you have to compile the sources on windows . Google how to do it or look at official document : here http : www.cran.r-project.org doc manuals R-admin.html Of course if package A depends on B you have to install B before A yourself . EDIT : actually it says OS type : unix Comment : To compile the sources I run the install.packages command but as I have outlined above this does not work for me . Any ideas Comment : Give up and use ff or go to nix", "Question : Thanks for reading this post Here I have an problem using big.matrix in R.With the code below : .. . .. . if I save the big matrix object into the .RData .And the next time when I reload it the R session will encounter an crash.How can I avoid that Appreciate your help .. . Answer : Your big matrix object in R is a pointer to the backing file stored on the disk it must be re-attached to the file each time after restarting an R session even if the previous session s .RDATA file has been loaded . Fortunately an easy fix after restarting R and reloading the bigmemory package run : .. . .. . This of course presumes the big.matrix object and its associated backing file were successfully created and saved in the prior session . Cheers Comment : Thank you for the answer @Jeff What you mean is that I should attach the matrix every time when I start the R session.So when I am trying to save the objects into the .RDATA I should somehow exclude the big.matrix objects which seems not an very elegant solution.Do you have any other way to handle it I do find another package bigmemoryExtra which seems like the enhancement of the original bigmemroy but every time when I reload the .RDATA the big.matrix objects are not complete anymore though without session crash . Comment : cran.r-project.org web packages bigmemory bigmemory.pdf http : cran.r-project.org web packages bigmemory bigmemory.pdf Comment : You re welcome glad to help . A big.matrix consists of an object in R that does nothing more than point to the data structure that in your case is stored on disk . That is the whole point of the file backed big matrix it allows you create and manipulate data-structures too large to be stored in memory and thus is not actually ever loaded into the R workspace . You don t need to exclude anything when you save your workspace data . I urge you to read this document explaining how bigmemory manages data particularly page 6 : BM http : cran.r-project.org web packages bigmemory bigmemory.pdf", "Question : I m using the bigmemory https : cran.r-project.org web packages bigmemory and biganalytics https : cran.r-project.org web packages biganalytics packages and specifically trying to compute the mean of a big.matrix object . The documentation for biganalytics e.g . biganalytics suggests that mean should be available for big.matrix objects but this fails : .. . .. . Although some things work OK : .. . .. . without mean it seems mean colmean x is the next best thing : .. . .. . Presumably mean could be faster still especially for rectangular matrices with a large number of columns . Any ideas why mean isn t working for me Comment : Can you provide your sessionInfo I just installed bigmemory and biganalytics with R 3.2.2 and it worked without a problem . Comment : OK reinstalling biganalytics solved it . Not sure what was wrong there . .. . Answer : OK - re-installing biganalytics seems to have fixed this . I now have : .. . .. . So all good . My sessionInfo is now :", "Question : I am using large datasets for my research 4.72GB and I discovered bigmemory package in R that supposedly handles large datasets up to the range of 10GB . However when I use read.big.matrix to read a csv file I get the following error : .. . .. . I think the issue is that the csv file is not full i.e . it is missing values in several cells . I tried removing header TRUE but then R aborts and restarts the session . Does anyone have experience with reading large csv files with missing-data using read.big.matrix .. . Answer : Did you check bigmemory PDF at https : cran.r-project.org web packages bigmemory bigmemory.pdf It was clearly described right there . Basically error means there is a column in the CSV file with row names . If you don t pass has.row.names TRUE bigmemory will consider row names a separate column and without header you ll get mismatch . I personally found data.table package more useful for dealing with large-data set cases YMMV Comment : but data.table can t handle datasets larger than memory .", "Question : I m doing some analysis that requires me to compute a distance-matrix Euclidean for now likely Mahalanobis later from a 7000x182 array that will result in a 7000x7000 matrix assuming I take the upper part of the matrix too . The problem I m running into is that I keep getting the cannot allocate vector.. . warning . I ve read up enough to know that R can t allocate enough contiguous memory on my PC to perform the action . My PC has 3GB of RAM and despite my best efforts or rm ing objects using gc increasing my memory allocation to R through memory.limit size it doesn t work . I like what I ve read about the bigmemory library however when I attempt to install it I get a warning that it s not available on R 2.15.2 . Am I missing something here Is there a way around this I ve read about some other R tools for managing big data but none seem apropros to my task like bigmemory . Comment : what OS cran.r-project.org web packages bigmemory index.html http : cran.r-project.org web packages bigmemory index.html points out that a Windows binary is not available and suggests that you compile from source . If you have the development tools installed google Rtools then install.packages bigmemory type source should work .. . Comment : I apologize . I thought I typed Windows XP SP3 in my posting . Oops I did see that bit in the bigmemory documentation . I just never had to do that . I use Linux at home so I never ran into the issue . I ll try tomorrow at work . Thanks . Comment : Ok so I tried downloading the latest .exe for RTools . Unfortunately since my work laptop is basically locked down by IT I couldn t edit the path to include my R bin directory . Nonetheless I downloaded the tarball for bigmemory and attempted to RCMD --build bigmemory 4.4.3.tar.gz . I got the error that it s a UNIX-Only package . ANy thoughts Does RCMD work without Rtools Comment : Don t know . Ask maintainers .. . Answer : For me this works : .. . .. . PS you can also install library Rdsm on Windows using", "Question : I have been trying to install bigmemory on my R installation . My OS is windows-7 64 bit and I have tried it on R V2.15.1 2.15.2 and 3.0.1 64 bit but I cant get it to work . I have tried several options .. . .. . 1 . download the current source and run the command in R v3.0.1 .. . install.packages D : Downloads bigmemory 4.4.3.tar.gz repos NULL type source .. . but this gives an error ERROR : Unix-only package .. . 2 . download older sources and run a similar commands in the various installations of R V2 V3 etc .. . This gives me an error ERROR : configuration failed for package bigmemory .. . .. . Any ideas I am actually trying to install bigrf but bigmemory seems to be a dependency . Is there any workaround for this Many thanks .. . Answer : Seems the github version installs OK on Windows : .. . .. . the package authors told me they are fixing the CRAN one to work on Windows again too .", "Question : I am interested in exploring how R can handle data out-of-memory . I ve found the bigmemory package and friends bigtabulate and biganalytics but was hoping that someone could point me to a worked out example that uses file backing with these packages . Any other out-of-memory tips would also be appreciated . .. . Answer : Take a look at CRAN Task View : High-Performance and Parallel Computing with R http : cran.r-project.org web views HighPerformanceComputing.html . There is a chapter Large memory and out-of-memory data where severel solutions are mentioned . For example package ff . Comment : I had heard of ff but I didn t realize that it was an on-disk solution . Thanks .", "Question : The bigmemory package in R provides a class big.matrix which stores a matrix in memory that can be shared across R sessions as some sort of C++ object returning a pointer to the R language . For example : .. . .. . Using more functions from the bigmemory package i can then write out a short description of the matrix to file open up another R session and access the matrix in memory from that new R session . From R you can also call C C++ code using the .Call or .C . I would like to implement some functions in either C or C++ I am more familiar with C that will run on this matrix in shared-memory but I have no idea how to go about this . Given an address in memory along with known sizes can I access an double in C or am I completely off track .. . Answer : Ok luckiliy for you Dirk Eddelbuettel and Romain Francois wrote an awesome tool called Rcpp http : cran.r-project.org web packages Rcpp index.html that will do all the very hard work for you . Install the package read the vignettes et enjoy reusing all the example code available on Rcpp Gallery http : gallery.rcpp.org .. . .. . There is even an example of how to use bigmemory in conjunction with Rcpp here http : gallery.rcpp.org articles using-bigmemory-with-rcpp Comment : Answer might be improved as am learning myself if you could be a little more specific about an example general use-case particularly regarding use of pointers address location . Comment : I added a link-to example with bigmemory and there is really plainty of example over SO just google Rseek Rcpp there is also a book written on the subject Comment : Thanks and no worries I m waiting for mine to arrive Comment : Thanks this seems to be what I need", "Question : null .. . Answer : Please help I cannot install biganalytics 1.1.3 in my windows-7 32-bit system .. . .. . I even tried the following command in cmd prompt .. . .. . It s showing error .. . .. . Also with the option install.package .. . .. . It is still showing the same error Comment : Your R version is 3.1.0 . The error message states that package biganalytics was built under R version 3.1.1 . I suggest that you update your R version the current version is 3.2.2 . Comment : thanks RHertel I will do that but I don t think that s the problem because bigmemory and bigalgebra got installed successfully", "Question : null .. . Answer : I am working with a large database in R bigmemory . I am trying to group observations by categories .. . .. . The Data has the form : .. . .. . To bring in the data I used : .. . .. . then to make categories I am trying : .. . .. . this returns : Error in bigtabulate x ccols ccols breaks breaks table FALSE : REAL can only be applied to a numeric not a logical .. . .. . I ve tried loading the data with type numeric but this returns an error . Is there a method for transforming the data or using bigsplit differently", "Question : I am developing an R package with low-level C code . Suppose I have following function in my C code . I need to know whether the R object obj is a regular matrix or big.matrix use R package bigmemory so that I can call different functions for computation . Is this possible How could I know the class type of obj .. . Answer : If you re open to C++ rather than C then we have two Rcpp Gallery http : gallery.rcpp.org posts for you : .. . .. . BigMemory with Rcpp http : gallery.rcpp.org articles using-bigmemory-with-rcpp .. . BigMemory with RcppArmadillo http : gallery.rcpp.org articles using-bigmemory-with-rcpparmadillo .. . .. . The narrow answer is probably testing for external pointer SEXP in an S4 class.. . but then I don t really do plain C anymore as Rcpp makes things so much easier . Comment : Thank you very much for developing Rcpp Dirk . I am exactly learning Rcpp and using it to handle computation for big.matrix . My problem is that I am extending an existing R package where the algorithm is already implemented in C . I only need to write code to deal with big.matrix part . Comment : That is not a constraint . You can write as much or little C++ around an inner C core . Remember that R itself is a C and some Fortran program too . So in short use Rcpp here too . It should make your task easier . Comment : Thanks for the guidance Dirk . If I can check the class type of SEXP at C C++ level then I can use Rcpp to handle big.matrix and use existing C code for the rest . But I am still not clear how your suggestion could solve this . If possible could you revise your answer with more details so that I can accept your answer Comment : It s all in the gallery post s and has been done before . Yes you can check SEXP type . Yes you can check attr . And for starters you would NOT use SEXP foo SEXP x but rather use types -- eg Rcpp : : XPtr . Comment : Thanks . That s really helpful", "Question : null .. . Answer : I m trying to import the bigmemory package into R . I downloaded the package from CRAN and saved it in the R package library on my local machine . In R I typed the library command to import the package : .. . .. . But I get the following error : .. . .. . I ve loaded other packages with no problem and am not sure why I d get an error at this point . I haven t found anyone else that seems to have had this problem . Any ideas Comment : Try install.packages bigmemory.sri Comment : You said I downloaded the package from can and saved it in the R package library. . this is not the right way to do it . Just use install.packages function as pointed out by @TylerRinker since it can handle dependencies and save you from this kind trouble . So a simple install.packages bigmemory will do a clean install Comment : Actually it is fine way to do it as long as you look up the dependencies and install them first and also use repos NULL and the proper type argument to match the file that was downloaded and have the right system tools if it is a source package . Comment : @DWin True but I m guessing that s where the problems are occurring .", "Question : I am using the bigmemory package to load a heavy dataset but when I check the size of the object with function object.size it always returns 664 bytes . As far I as understand the weight should be almost the same as a classic R matrix but depending of the class double or integer . Then why do I obtain 664 bytes as an answer . Below reproducible code . The first chunck is really slow so feel free to reduce the number of simulated values . With 10 6 20 will be enough . .. . Answer : To determine the size of the bigmemory matrix use : .. . .. . Explanation .. . .. . Data stored in big.matrix objects can be of type double 8 bytes the default integer 4 bytes short 2 bytes or char 1 byte . The reason for the size disparity is that data stores a pointer to a memory-mapped file . You should be able to find the new file in the temporary directory of your machine . - Paragraph quoted from R High Performance Programming .. . .. . Essentially bigmatrix maintains a binary-data file on the disk called a backing file that holds all of the values in a data set . When values from a bigmatrix object are needed by R a check is performed to see if they are already in RAM cached . If they are then the cached values are returned . If they are not cached then they are retrieved from the backing file . These caching operations reduce the amount of time needed to access and manipulate the data across separate calls and they are transparent to the statistician . See page 8 of the documentation for a description .. . .. . https : cran.r-project.org web packages bigmemory bigmemory.pdf .. . .. . Ref : .. . .. . R High Performance Programming By : Aloysius Lim William Tjhi .. . Data Science in R By : Duncan Temple Lang Deborah Nolan", "Question : null .. . Answer : I have a csv file and want to open it with the bigmemory package . I am using R 2.15.3 . This is the code : .. . .. . After I did this R crashed . I do not know what the data looks like . If anyone has any ideas it would be really helpful . Also I researched that R 2.15.3 is the only version that supports this if that is not true then it would be good to know . Thanks Comment : I just installed both using R 3.2.1 . Not sure where you re getting your data about 2.15.3 but it looks like its a bit out-dated . Also are you on Windows The official website http : www.bigmemory.org mentions upcoming compatibility with Windows but it may not be available yet . Comment : @scribbles Is the code to read the csv correct or do I need to add anything else to it Comment : @scribbles I am on Windows . Comment : @Nick you can download the most recent version from our github repo I am one of the developers . Just use devtools : : install github kaneplusplus bigmemory with your most recent R version . The current windows build is functional . Check that and report back . Comment : @Nick nothing is inherently wrong with your read code though you may need to specify sep header etc . based on your actual file-format .", "Question : I m new in the big.matrix and related packages I try to reproduce the following example .. . .. . from the documentation but the last line gives me the following error : .. . .. . The last line says something like there is no method for transform this S4 class to a vector .. . .. . Could you give me a pointer My R version is Comment : I think it is better to set temporary your environment language to English e.g Sys.setenv LANG en to get more help . Comment : Thanks for yous suggestion but the error still appears in spanish see the edited question above.. . Comment : hum..are you sure see this question stackoverflow.com questions 13575180 http : stackoverflow.com questions 13575180 how-to-change-the-language-of-errors-in-r for more details Comment : Thanks for the link let me find what s wrong with my env.. . .. . Answer : This answer is slightly off-topic from the original question not why doesn t apply .. . work which @agstudy answered above but how do I get row means for a bigmemory object I googled r-bigmemory rowmeans and ended up here : http : www.stat.yale.edu jay HPCwR examples bioinfo bioinfo3.txt .. . .. . Reproducing an interesting snippet : .. . .. . The example goes on to show how to use parallel methods doMC etc . to compute row means ." ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
oodbms@database@72
oodbms -- an object or object-oriented database management system is a @placeholder management system in which data is stored in the form of objects .
{ "confidence": [ 45.51023864746094, 35.528656005859375, 35.496795654296875, 35.131168365478516, 34.750205993652344, 34.750205993652344, 33.199676513671875, 33.05105972290039, 32.750083923339844, 32.67438888549805, 32.67438888549805, 31.92453384399414, 31.678070068359375, 31.39906120300293, 31.256811141967773, 31.256811141967773, 31.250707626342773, 31.059553146362305, 29.547636032104492, 29.028535842895508, 28.84884262084961, 28.800525665283203, 28.800525665283203, 28.686710357666016, 28.4291934967041, 28.398418426513672, 28.351642608642578, 27.729045867919922, 27.652969360351562, 27.643102645874023, 27.39967155456543, 26.839956283569336, 26.81899642944336, 26.773876190185547, 26.773876190185547, 26.751771926879883, 26.603036880493164, 26.535873413085938, 26.439437866210938, 26.377639770507812, 26.353050231933594, 26.321552276611328, 26.23475456237793, 26.06281852722168, 25.904510498046875, 25.898765563964844, 25.513198852539062, 25.461875915527344, 25.408723831176758, 25.38041877746582, 25.352581024169922, 25.32303237915039, 25.25731658935547, 25.25731658935547, 25.25731658935547, 25.14067840576172, 25.00799560546875, 24.99689292907715, 24.994747161865234, 24.994747161865234, 24.994747161865234, 24.926729202270508, 24.6904354095459, 24.652114868164062, 24.652114868164062, 24.546741485595703, 24.50952911376953, 24.50952911376953, 24.502655029296875, 24.418712615966797, 24.257293701171875, 24.257293701171875, 24.207386016845703, 24.044748306274414, 23.925861358642578, 23.903053283691406, 23.873668670654297, 23.772266387939453, 23.639175415039062, 23.61016845703125, 23.558040618896484, 23.558040618896484, 23.558040618896484, 23.558040618896484, 23.50247573852539, 23.247459411621094, 23.114368438720703, 22.94901466369629, 22.94901466369629, 22.94901466369629, 22.87592887878418, 22.851762771606445, 22.81553077697754, 22.81553077697754, 22.686092376708984, 22.686092376708984, 22.599594116210938, 22.50811004638672, 22.30130386352539, 22.29102897644043 ], "content": [ "Otherwise if you are more towards a strict object oriented system OODBMS can be used .", "If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS", "When the object is referenced from the application the OODBMS generates a proxy that wraps the object .", "Here are a couple pages that discuss RDBMS vs . ODBMS however : .. . .. . Whatever Happened to Object-Oriented Databases http : www.leavcom.com db 5F08 5F00.htm .. . .. . Object-Oriented Database vs . Object-Rleational Database SO http : stackoverflow.com questions 757037 object-oriented-database-vs-object-relational-database", "Decision to choose OODBMS or RDBMS does not depend upon particular application like factory management automation .", "so therefore in this trend the OODBMS is best suitable for the Enterprise Applications like factory management etc .", "Object-Oriented data-modeling is just persistence for objects : .. . .. . Greater support for complex objects .", "This is why something like Hibernate exists - to put an object-oriented interface on an efficient RDBMS storage system .", "There is no object oriented query grammar .", "Maybe you mis-understand what an Object Oriented Database is .", "We are looking into using an Object Oriented database something like db4o or NeoDatis .", "Some data management tasks are much easier if you have referential-integrity and relational headers enforced by the data management solution .", "The world of data management is changing .", "Factory management is classic relational-database stuff it s what it was invented to do .", "I wonder how Object Oriented data-modeling is different from Object Relational data-modeling", "Is it something like the pluses of both object oriented and relational data-modeling were clubbed to achieve object relational data-modeling", "My point is that this exact effect should have emerged or should emerge with OODBMS as soon as there s a system good enough to use .", "I m currently working on a project to implement an OODB object oriented database cache where the requirements are to use a db4o database as the cache and store objects in it .", "Can Object DBs be used in real-time system", "The OODBMS are swifter than the RDBMS .", "It is very useful to be able to use the data from a database in other contexts outside of the application and often with object databases the data is stored in a format that can t easily be queried .", "Trying to use Lucene as an effective OODB Object Oriented Database is going to be like trying to fit a square peg into a round hole .", "I m trying to learn how to create an object oriented model database using a tool called : Eyedb on linux .", "If you use object database you don t need to care how relations are stored in database .", "While my area of concern is in Database Management Systems graph-databases object databases etc the more widely applicable the answer the better .", "Then I stored those objects into the database .", "You are describing an Object Database .", "You can check out the definition at Wikipedia : .. . .. . Object Databases http : en.wikipedia.org wiki Object 5Fdatabase .. . .. . Object Oriented Databases have their place .", "Why are relation databases more common than object-oriented databases", "MongoDB is not an OODBMS .", "I ve been using ODBMS for many years and have been dreading the project which requires me to return to purely relational data management .", "I searched a bit for the differences between OODBMS and RDBMS .", "Most if not all of database application developers are capable of using SQL and designing relational-database while only few knows how to work with OODBMS .", "The closest thing for an OODBMS is perhaps OQL which has been an utter failure .", "The wide and solid foundation still lacks which hinders the use of OODBMS to be implemented .", "this might be helpful comparison of RDM and OOM http : www.freetutes.com systemanalysis sa8-relational-object-oriented-data-modeling.html", "So are there DBMS that support both object-oriented and relational records", "Each object may be referenced by several other objects .", "For one they tend to lack support for central database management though this is rapidly being rectified in various products .", "2 Application Specific - For an factory automation management responsiveness and fast access is important .", "I m using an object database ZODB in order to store complex relationships between many objects but am running into performance issues .", "OODBMS does not imply being bound to a specific language any more than RDBMS are bound to implementation-specific stored-procedures .", "3 Trend - Now there is paradigm swift from Legacy Structural to Object Component Oriented programming .", "It retains pymongo s query and update API and provides a number of additional features including a simple document-oriented interface connection-pooling index management and collection database naming helpers .", "If you re looking for an object oriented or domain-driven-design approach then a third object to handle the join is entirely the wrong way to go about this .", "In your script you would modify the object stored in ZODB to match the new format of the object as your code requires .", "My backend database is in MySQL and I am using Hibernate to get the data from it and form objects .", "What OODBMS tool are you using", "In OODBMs world at least as I understood objects may have methods as for example C objects do .", "Hence the system will also be doing insert into the database at the rate of roughly 350 inserts per second where each object varies from 64KB to 128KB .. . .. . 3 .", "But do you store the keys to objects A1 A2 A3.. . on object B or do you store the key to object B on A", "That said your individual production lines might benefit greatly from an ODBMS which are great at storing oft-changing complex object models and schemas while the orchestrator system could follow my previous line of thinking .", "I wonder if RDBMS or OODBMS will be suppressed in near future", "The OODBMS does not necessarily need a link entity .", "These features are absent in the OODBMS model at least so far .", "Even if it s stupid I can t stop comparing OODBMS to netbooks .", "Here s one : .. . .. . db4o C Database .. . .. . Native to .NET 2 and 3.5 including the Compact Framework .. . 100 Object Oriented Database no object-relational mapping .. . Designed for embedded use in zero-admin environments .. . Open source and free under the GPL .. . .. . http : www.db4o.com s csharpdb.aspx", "It is the easiest object database to get started with and to develop with .", "Initially when I would add an object to the database I would insert it in a branch dedicated to that object-type .", "First as an assumption when updating or inserting an object into the database the programmer only has one option to call objectContainer.store object .", "If I pulled the object from the database then saved true if I created the object in Java saved false .", "Object-Relational data-modeling supports some object-oriented concepts while still supporting some relational concepts : .. . .. . Inheritance -- one table can have an IS-A relationship with another table .", "The schema for this is just the persisted object and its collection of references to the objects it refers to .", "As I understood the DB design was an imitation of an object oriented db approach I was a bit stunned .", "I have to compare relational databases 2 of them one in sql-server and one in phpmyadmin and one object oriented .", "Facebook s own Cassandra now an Apache Project is basically a NoSQL database system which guarantees no single point of failure .", "Now I am aware that there are object-oriented databases out there but for one thing they lack support and also the relational model works for most of the data - just not all of it .", "...I am aware that there are object-oriented databases out there but for one thing they lack support and also the relational model works for most of the data - just not all of it .", "Back then we went with a native .net oodbms system basically because what it allowed us to do was to take our object-model and simply add a few persistence related methods -calls here and there and we were ready to go .", "OODBMS are like that but worse since it s not just your code but your code and your data .", "Looks like EyeDB http : www.eyedb.org is an object database that I ve never heard of .", "Your object database queries will NOT be SQL because that s the language of relational databases .", "@Pedro why you are saying : MongoDB is not an OODBMS", "From my understanding all of the Object DBs I have listed here use cache for storing database objects .", "or an open-source OODBMS which you trust your team to maintain when things go bad .", "Instead any significant data store needs to declare a unique identifier for each object being stored a key usually a surrogate-key in RDBMS terms .", "What I meant for factory management is : there are production lines to manufacture bottled frozen and other food stuff .", "the result is that I would have each object contain a collection of references to the other object-type as well as having an independent collection of the other objects .", "The types of data that I would like to store into the database are all modeled as objects and they make use of std : : list and std : : vector so naturally Object Database seems to make sense .", "I used a pretty nice commercial OODBMS a couple years ago but as of 2007 or so and it was on major version 8 or 9 it didn t even support querying for an object by its name .", "Does that mean that RDBMS will be suppressed by not yet well developed OODBMS", "By contrast there is no clear model for OODBMS nor is there a standard language nor is there a standard API .", "The OODBMS concept might perform better than RDBMS+ORM .", "If they were to use OODBMS they would still need access to RDBMS for certain functions .", "There s a lot of noise on blogs that relational databases are obsolete but RDBMS are nevertheless the best general-purpose solution for a great majority of data management tasks .", "It can fill your database with all kinds of duplicates and junk objects because it replaces the object and doesn t update its values therefore breaking any references to it .", "It is depends on many criteria like .. . .. . 1 Programming Paradigm - If you programmer choose to visualize implement in the OO programming language then the OODBMS is suitable to store the objects as directly into the database but Most widely the type of DBMS Relational because it is well established commercially and have a good mathematical background .", "Did you ever use any OODBMS or MMBDBMS", "Well all OODBMS bring a API with them .", "So do we really need OODBMS", "Use ids possibly defy the purpose of using a OODBMS and link each artist with all the movies in which he has worked in .", "I think it is because SQL and RDBMS has become de-facto standard long before OODBMS emerged .", "I d propalby use anothere one not eyedb but someone above me decided that this one is the closest to object oriented doctrine sorry for my english .", "While pure object-oriented databases are now in a state where they overcome much of the drawbacks of the relational model there are some key pieces missing .", "I ve got nothing against an object database but SQL is very very good at expressing queries in a functional manner which allow them to optomised and parallelised .", "LINQ to SQL is an O RM object relational mapping implementation that ships in the .NET Framework and which allows you to model a relational-database using .NET classes .", "Each other object that references it saves the object-type and key it does not save the whole object repeatedly .", "It might be possible that an OODBMS - RDBMS migration tool exists but I m not aware of any .", "No such thing exists with an OODBMS : if the one you re using goes belly-up or they take it in a direction that s not useful to you or you find it lacks a key feature you need you can t just dump your data into a competing OODBMS and port your queries .", "But I ve been there and from a project-management perspective I d hesitate to go back even though the programming environment can be wonderful ." ] }
{ "confidence": [ 68.16674041748047, 59.38296890258789, 58.88421630859375, 54.800540924072266, 53.64823913574219, 47.22044372558594, 46.664764404296875, 46.086151123046875, 45.44548034667969, 44.96036911010742, 44.92802047729492, 44.506629943847656, 43.797000885009766, 40.91204833984375, 40.87605285644531, 39.415496826171875, 38.787845611572266, 38.70219421386719, 36.969242095947266, 36.74516677856445 ], "content": [ "Question : I searched a bit for the differences between OODBMS and RDBMS . I pretty much know what they are . However how I will decide which one is better for which applications . Can anyone kindly help me please What I meant for factory management is : there are production lines to manufacture bottled frozen and other food stuff . The application manages from assigning staff onto the lines to keep the production records in the system . Which dbms is better for such systems Thanks in advance . .. . Answer : Decision to choose OODBMS or RDBMS does not depend upon particular application like factory management automation . It is depends on many criteria like .. . .. . 1 Programming Paradigm - If you programmer choose to visualize implement in the OO programming language then the OODBMS is suitable to store the objects as directly into the database but Most widely the type of DBMS Relational because it is well established commercially and have a good mathematical background . 2 Application Specific - For an factory automation management responsiveness and fast access is important . The OODBMS are swifter than the RDBMS . If you considered for web-development then a light-weight tool like MySQL will fit a lot . 3 Trend - Now there is paradigm swift from Legacy Structural to Object Component Oriented programming . so therefore in this trend the OODBMS is best suitable for the Enterprise Applications like factory management etc .", "Question : Why are relation databases more common than object-oriented databases If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS Wouldn t they perform better than the RDBMS+OR M .. . Answer : One reason that RDBMS has retained popularity is that it s established technology well understood and has a standard language SQL that multiple vendors support . It also has a few good interfaces like ODBC and JDBC that make it connect with different languages pretty well . A stable API is a strong factor in keeping a technology dominant . By contrast there is no clear model for OODBMS nor is there a standard language nor is there a standard API . There s not even a de facto standard by having a leading vendor implementation . The OODBMS concept might perform better than RDBMS+ORM . It depends entirely on the implementation . But it s also true that OODBMS don t solve the same set of problems that RDBMS are good at solving . Some data management tasks are much easier if you have referential-integrity and relational headers enforced by the data management solution . These features are absent in the OODBMS model at least so far . There s a lot of noise on blogs that relational databases are obsolete but RDBMS are nevertheless the best general-purpose solution for a great majority of data management tasks .", "Question : I searched a bit for the differences between OODBMS and RDBMS . I pretty much know what they are . However how I will decide which one is better for which applications . Can anyone kindly help me please What I meant for factory management is : there are production lines to manufacture bottled frozen and other food stuff . The application manages from assigning staff onto the lines to keep the production records in the system . Which dbms is better for such systems Thanks in advance . .. . Answer : It depends on the application layer using . If it is a simple approach more towards procedural way which can have classes too RDBMS is more suitable . Otherwise if you are more towards a strict object oriented system OODBMS can be used .", "Question : I am considering doing a project which would provide unified API and tools import export etc . for object databases e.g . Cach Objectivity for .NET . It would provide : .. . .. . schema generation from CLR classes .. . generation of C classes from given OODBMs schema .. . API for deleting creating and updating objects .. . Linq provider .. . API for calling database object s methods from .NET using .NET objects .. . some of OODBMs provide some kind of SQL support so API for this .. . providers for Cach and Objectivity in first phase . Does any project which implements any of above exist Can this be achieved with NHibernate dialects or are OODBMs so different than RDBMs that it worth doing separate framework for them EDIT : I mean invoking DB method stored procedure in RDBMs world from application . In OODBMs world at least as I understood objects may have methods as for example C objects do . My idea is that you would mark a method with an attribute DbCall or so and leave body empty and when you invoke it from .NET the framework would actually call the database method on given object . NHibernate was designed for RDBMs so I am wondering whether there are any differences features in OODBMs usage that one might not take advantage of while using NHibernate . .. . Answer : xcuse my initial misunderstanding The world of data management is changing . The linkage to service platforms operation within scalable cloud platforms object databases object-relational bindings NoSQL databases and new approaches to concurrency control are all becoming hot topics both in academia and industry . So to create common API-layer is will be very useful but definitely isn t easily to create APIs compound which can work with OODBMS STSdb http : stsdb.com DB4O Perst .. . with have different features.. . Comment : Well all OODBMS bring a API with them . I think the question was about a common API-layer for different OODBMS . Just like EF is an API for all kinds of RDMBS .", "Question : Why are relation databases more common than object-oriented databases If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS Wouldn t they perform better than the RDBMS+OR M .. . Answer : The biggest problem I ve seen is lack of standardization . In the RDBMS world you can get pretty far with any random database if you know SQL . They basically all implement it with minor variations . I don t know a single existing RDBMS that doesn t do SQL : you can almost use RDBMS and SQL interchangeably . The closest thing for an OODBMS is perhaps OQL which has been an utter failure . No database has ever implemented very much of it . I used a pretty nice commercial OODBMS a couple years ago but as of 2007 or so and it was on major version 8 or 9 it didn t even support querying for an object by its name . The manual said simply that this part of OQL they hadn t gotten around to yet . I m not sure but you might have been able to drop down into a native call to do that . Most object databases I ve seen recently have native language interfaces rather than a query language like OQL . The system I used for example supported only Perl and VB IIRC . Limiting your audience to only a couple languages or forcing them to write wrappers as we did is not the way to win friends . Because of this there s no competition and therefore no easy backup plan . If you put your data in MS-SQL and Microsoft stopped supporting it you can probably dump your data into Postgres and port your queries without too much trouble . It might be a lot of work if you have a lot of queries but I don t doubt you could do it . It s a pain but not technically challenging . Or Oracle or MySQL or many others both commercial and free . No such thing exists with an OODBMS : if the one you re using goes belly-up or they take it in a direction that s not useful to you or you find it lacks a key feature you need you can t just dump your data into a competing OODBMS and port your queries . Instead you re talking about changing a core library and making massive architecture changes . So realistically you re limited to a commercial OODBMS who you really trust can you name even one or an open-source OODBMS which you trust your team to maintain when things go bad . If this sounds like FUD sorry I didn t intend that . But I ve been there and from a project-management perspective I d hesitate to go back even though the programming environment can be wonderful . Another way to think of it is : look at how popular functional-programming is today despite what a good idea it is . OODBMS are like that but worse since it s not just your code but your code and your data . I d gladly start a major project in Erlang today but I d still hesitate to use an OODBMS . OODBMS vendors : to change this you need to make it easy to leave you for your competitors http : www.joelonsoftware.com articles fog0000000052.html . You could dig up OQL and actually implement that or do it at the API level like ODBC or whatever . Even a standard dump format using JSON and tools for import export to from that for several OODBMSs would be a great start .", "Question : I searched a bit for the differences between OODBMS and RDBMS . I pretty much know what they are . However how I will decide which one is better for which applications . Can anyone kindly help me please What I meant for factory management is : there are production lines to manufacture bottled frozen and other food stuff . The application manages from assigning staff onto the lines to keep the production records in the system . Which dbms is better for such systems Thanks in advance . .. . Answer : Disclaimer : this is an old curmudgeon answer from a guy who wrote plenty of perfectly functional accounting manufacturing and other code before OOP came into the mainstream . With that being said.. . Factory management is classic relational-database stuff it s what it was invented to do . The code for classic relational apps tends to follow very predictable patterns lots of loops over retrieved rows from tables or straight pass-through stuff : passing data up to the UI or down to the database . If your DB is well-designed the biz logic you code will be details in those loops or pass-throughs but those two patterns will dominate . An OODMS on the other hand from the point of view of this old curmudgeon attempts to recast the perfectly and efficiently functional RDBMS into something that will work with classes objects for no discernible gain over a system that has proven itself for decades to work extremely well . Classes have little or nothing to do with the classic code patterns that sit on top of relational databases . In fact they tend to complicate things and can easily get in the way . I m not saying don t use OOP code to deal with the database just that OOP was invented for a different kind of problem a problem that database apps don t happen to have .", "Question : Why are relation databases more common than object-oriented databases If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS Wouldn t they perform better than the RDBMS+OR M .. . Answer : In a word Interoperability big word on a Friday night G .. . .. . Most businesses have to work with legacy systems running on RDBMS . If they were to use OODBMS they would still need access to RDBMS for certain functions . It s easier to maintain one way of accessing data than two . When you have big names like Oracle and SQL Server in the OODBMS world and proven performance in a variety of environments THEN you ll see more projects using them .", "Question : can anyone tell me and describe what oodbms implementation can be used for productive web application that stores all persistent data on it . .. . Answer : After some research and benchmark . i found the MongoDB http : www.mongodb.org productive because : .. . .. . MongoDB from humongous is a scalable high-performance open-source NoSQL database . Written in C++ MongoDB features : .. . .. . 1 . Document-oriented storage JSON-style documents with dynamic schemas offer simplicity and power . 2 . Full Index Support Index on any attribute just like you re used to . 3 . Replication High Availability Mirror across LANs and WANs for scale and peace of mind . 4 . Auto-Sharding Scale horizontally without compromising functionality . 5 . Querying Rich document-based queries . 6 . Fast In-Place Updates Atomic modifiers for contention-free performance . 7 . Map Reduce Flexible aggregation and data-processing . 8 . GridFS Store files of any size without complicating your stack . 9 . Commercial Support Enterprise class support training and consulting available . EDIT 1 : .. . .. . Packages that provides mongodb in python : .. . .. . Humongolus Humongolus is a lightweight ORM framework for Python and MongoDB . The name comes from the combination of MongoDB and Homunculus the concept of a miniature though fully formed human body . Humongolus allows you to create models schemas with robust validation . It attempts to be as pythonic as possible and exposes the pymongo cursor objects whenever possible . The code is available for download at github . Tutorials and usage examples are also available at GitHub . MongoKit The MongoKit framework is an ORM-like layer on top of PyMongo . There is also a MongoKit google group . Ming Ming the Merciless is a library that allows you to enforce schemas on a MongoDB database in your Python application . It was developed by SourceForge in the course of their migration to MongoDB . See the introductory blog post for more details . MongoAlchemy MongoAlchemy is another ORM-like layer on top of PyMongo . Its API is inspired by SQLAlchemy . The code is available on github for more information see the tutorial . MongoEngine MongoEngine is another ORM-like layer on top of PyMongo . It allows you to define schemas for documents and query collections using syntax inspired by the Django ORM . The code is available on github for more information see the tutorial . Minimongo minimongo is a lightweight pythonic interface to MongoDB . It retains pymongo s query and update API and provides a number of additional features including a simple document-oriented interface connection-pooling index management and collection database naming helpers . The source is on github . Comment : So you re serializing your objects to from JSON Comment : My objects are python dictionaries that may be serialize deserialize so fast to and from json.but is supports everything see : mongodb.org display DOCS SQL+to+Mongo+Mapping+Chart http : www.mongodb.org display DOCS SQL+to+Mongo+Mapping+Chart Comment : MongoDB is not an OODBMS . Comment : @Pedro why you are saying : MongoDB is not an OODBMS Comment : @pylover Because MongoDB is a document storage system . It does not persist objects in the way ZODB and db4o do . It is capable of storing semi-structured data but it s actually closer to a RDBMS than an OODBMS in terms of schema : it s got collections and it doesn t support inheritance .", "Question : I searched a bit for the differences between OODBMS and RDBMS . I pretty much know what they are . However how I will decide which one is better for which applications . Can anyone kindly help me please What I meant for factory management is : there are production lines to manufacture bottled frozen and other food stuff . The application manages from assigning staff onto the lines to keep the production records in the system . Which dbms is better for such systems Thanks in advance . .. . Answer : I usually draw the line of usefulness at the point in which they need to be integrated into enterprise systems . If your project does not necessarily need to integrate ODBMS is usually easier or technically superior . If you can integrate via web-services or push pull into an enterprise system DB then you can still use an ODBMS but there might be political pressure against it . newer ODBMS RDBMS replication like dRS for db4o may be a good fit But if you need tight integration with legacy or enterprise datastores then you re usually forced to use the RDBMS for one reason or another . That said your individual production lines might benefit greatly from an ODBMS which are great at storing oft-changing complex object models and schemas while the orchestrator system could follow my previous line of thinking . I ve been using ODBMS for many years and have been dreading the project which requires me to return to purely relational data management . Although recent improvements in ORM tooling have made relational much more pleasant to work with the ORM+RDBMS solution still can t keep up with ODBMS systems in a few key areas see the previously mentioned article http : www.odbms.org Introduction whenODBMS.aspx on odbms.org .", "Question : I am considering doing a project which would provide unified API and tools import export etc . for object databases e.g . Cach Objectivity for .NET . It would provide : .. . .. . schema generation from CLR classes .. . generation of C classes from given OODBMs schema .. . API for deleting creating and updating objects .. . Linq provider .. . API for calling database object s methods from .NET using .NET objects .. . some of OODBMs provide some kind of SQL support so API for this .. . providers for Cach and Objectivity in first phase . Does any project which implements any of above exist Can this be achieved with NHibernate dialects or are OODBMs so different than RDBMs that it worth doing separate framework for them EDIT : I mean invoking DB method stored procedure in RDBMs world from application . In OODBMs world at least as I understood objects may have methods as for example C objects do . My idea is that you would mark a method with an attribute DbCall or so and leave body empty and when you invoke it from .NET the framework would actually call the database method on given object . NHibernate was designed for RDBMs so I am wondering whether there are any differences features in OODBMs usage that one might not take advantage of while using NHibernate . .. . Answer : NHibernate does all of this except : .. . .. . API for calling object s methods on DB server .. . .. . Which I don t quite understand . If you mean the database being able to invoke application functionality from within stored-procedures then that is a database level thing not really an DAL ORM thing . Comment : Question body updated with explanation . Thanks .", "Question : Why are relation databases more common than object-oriented databases If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS Wouldn t they perform better than the RDBMS+OR M .. . Answer : Data often lives longer and is more important than program . So even if you start a greenfield development today you have to consider the overall picture . There are more tools processes and experienced people working with RDBM systems . Think beyond the program how about capacity-planning data-mining reporting ETL integration with other data sources etc . How about your company acquiring another company and thus bringing all their relational data in your program . RDBMS and associated tools are so entrenched proven and powerful that I don t there is any strategic sense in using anything else . In some small niche maybe but not in general . Comment : Data often lives longer and is more important than program . - amen . Middle tiers come and go but data lives for ever . Comment : OODBMS does not imply being bound to a specific language any more than RDBMS are bound to implementation-specific stored-procedures . Comment : In theory you are correct but in practise there are few well known RDBMS implementations and that are well supported by tools a vast knowledge base and experienced people . My company just went thorugh a corporate merger and we imported data from the other company s database to our database with lots of transformation data massging and cleaning . Both company used Oracle and that made things easier certainly than if the other company used a little known database .", "Question : I searched a bit for the differences between OODBMS and RDBMS . I pretty much know what they are . However how I will decide which one is better for which applications . Can anyone kindly help me please What I meant for factory management is : there are production lines to manufacture bottled frozen and other food stuff . The application manages from assigning staff onto the lines to keep the production records in the system . Which dbms is better for such systems Thanks in advance . .. . Answer : Here is a nice article by Rick Grehan that describes cases where ODBMS are useful : http : www.odbms.org wp-content uploads 2013 11 006.04-Grehan-When-to-Use-an-ODBMS-2005.pdf", "Question : Why are relation databases more common than object-oriented databases If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS Wouldn t they perform better than the RDBMS+OR M .. . Answer : For trival examples OODBs and RDBs may be very different . Especially if you are working with a small enough amount of data that you can trivially read it all into memory at once and write it out all at once . But ultimately OODB s need to save data in a very RDB-like format - they are not so different . Consider an arbitrary graph of objects as might be used in an application . Each object may be referenced by several other objects . When you save a graph of objects you don t want to save objects repeatedly each time they are referenced . For one thing if you had any kind of loop or self-reference your save-object method would go into an infinite-loop . But in the general case it s a waste of space . Instead any significant data store needs to declare a unique identifier for each object being stored a key usually a surrogate-key in RDBMS terms . Each other object that references it saves the object-type and key it does not save the whole object repeatedly . So here we have recreated foreign-keys in our non RDB object-store . Next pretend that we want to store a list of objects A1 A2 A3.. . that are related to another object B . We already established that we will store keys instead of saving the objects themselves twice . But do you store the keys to objects A1 A2 A3.. . on object B or do you store the key to object B on A If you store them the first way and you have all the A s you want you can quickly grab the relevant B s . The second way the reverse is true . But either way is a one-way deal . If you want to query the reverse of what you stored and your objects are stored as XML or JSON that s a lot of inefficient parsing through most irrelevant information to find the key in each file . Wouldn t it be better to store them in a format where each field was separated like columns in a table In a many-to-many relationship or a case where you need to find a large number of objects in both directions this strategy becomes very inefficient . The only performant solution is to make a helper object to store the relationship with one file for each relationship such that the file consists of the key of A and the key of B so that they can be looked up quickly . We have just reinvented the cross-reference table . Tables with columns unique identifiers keys cross-reference tables.. . These are the basic needs for storing objects in a way that they can be retrieved efficiently . Hmm.. . Does that sound like anything familiar A Relational Database provides exactly this functionality . Plus multiple vendors have competed for decades to provide the fastest data-storage and retrieval with the best tools for backup replication clustering querying etc . That s a lot for a new technology to compete with . And ultimately I m saying that RDBMS are basically a really good solution to the problem of efficient object storage . This is why something like Hibernate exists - to put an object-oriented interface on an efficient RDBMS storage system . Where you see other kinds of storage really shine are different problem areas : .. . .. . For any kind of unstructured document storage blogs source control or anything that can t map to rows and columns various NoSQL databases are ideal .. . Keeping an easy-to-query yet meaningful history of changes like diffs in source control is not really pretty in RDBs . Something like Datomic may be forging new territory here . Any time your object graph is simple or small the overhead of a database may not be necessary . OODBs cannot perform better than RDBs because they are not fundamentally different . RDBs are here to stay because saving large graphs of objects in a way that is space-efficient and time-efficient for both saving and retrieval and also fault tolerant and has some guarantee of data integrity is the problem that RDBs were designed to solve in the first place . This is why JPA and Hibernate are here to stay as well - because they bridge the gap between the object and relational models of data . Object model for ease of manipulation in memory and relational for persistence .", "Question : Why are relation databases more common than object-oriented databases If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS Wouldn t they perform better than the RDBMS+OR M .. . Answer : Object databases have a very nice niche for problems like representing geometry e.g . CAD systems where object graphs can be very deep indeed . JOIN performance degrades rapidly for around 7 tables in most relational systems so deeply self-referential structures in CAD perform better in object databases . But important applications like financial data lend themselves to a relational representation . The relational model has a firm mathematical basis and SQL is a successful and popular language . There is little incentive for financial institutions like banks brokerages and insurance companies to switch away from RDBMS .", "Question : I mean with EJB LINQ2SQL EF etc we re trying to at least in my perspective map the rdb in a way so we can use the entities as objects . How come there hasn t been a surge of OODBMS since they should remove many barriers we face today or at least lessen the burden I m probably overlooking something but the main reason I can see as a cause for the lack of OODBMS would be that the DBmafia clings hard to what they do best . Maybe they re even trying to halt some efforts . Someone should be able to answer this in a way that will convince most of us . .. . Answer : I think it is because SQL and RDBMS has become de-facto standard long before OODBMS emerged . Most if not all of database application developers are capable of using SQL and designing relational-database while only few knows how to work with OODBMS . When something has been popular for a long time we will need more than technical advantages to fight with it . The real reason that OODBMS is not more popular though is that it has not become popular yet because lacks of support from influential company e.g . Microsoft or Google . C and Android is the example of the technology that become popular not only because its technial aspect . Comment : Even if it s stupid I can t stop comparing OODBMS to netbooks . They weren t pushed out by enormous marketing machines like the iPad but a lot of people saw a utilitarian product that was somehow totally missing before . My point is that this exact effect should have emerged or should emerge with OODBMS as soon as there s a system good enough to use . But yes you ve got many valid points I think .", "Question : Why are relation databases more common than object-oriented databases If the Object Oriented Programming paradigm is so widespread shouldn t we see lots of OODBMS Wouldn t they perform better than the RDBMS+OR M .. . Answer : I think it is a case of .. . .. . If it ain t broke don t change it . Relational databases are extremely ingrained . Comment : If it ain t broke don t change it is so stupid.. . why is making something better or developing software faster a bad thing . My last computer wasn t broke when I changed it is was just SLOW Striving to better more efficient solutions is my goal as a developer .", "Question : I thought it was about time to have a look at OO databases and decided to use db4o for my next little project - a small library . Consider the following objects : Book Category . A Book can be in 0-n categories and a Category can be applied to 0-m Books . My first thought is to have a joining object such as BookCatecory but after a bit of Googling I see that this is not appropriate for Real OO . So another approach recommended by many is to have a list in both objects : Book.categories and Category.books . One side handles the relationship : Book.addCategory adds Category to Book.categories and Book to Category.books . How to handle commits and rollbacks when 2 objects are been altered within one method call What are your thoughts The second approach has obvious advantages but for me at least the first feels right better normed . .. . Answer : In a pure OO database such as GemStone the objects themselves have collections of references to other objects . When the object is referenced from the application the OODBMS generates a proxy that wraps the object . The schema for this is just the persisted object and its collection of references to the objects it refers to . The OODBMS does not necessarily need a link entity . With an O R mapping layer assuming it is clever enough to do M : M relationships the M : M relationship is manifested as a collection of subsidiary references on the object itself which the O R mapper resolves to the link entity behind the scenes . Not all O R mappers do this so you may have a separate link object .", "Question : A while ago we started developing a new project which internally has about 25-30 different classes types models that are heavily related to each other either via 1 : n n : m or n : 1 relationships . Back then we went with a native .net oodbms system basically because what it allowed us to do was to take our object-model and simply add a few persistence related methods -calls here and there and we were ready to go . However over time we ran into more and more caveats really bad non-fixable within a reasonable timeframe limitations that forced us to implement slow workarounds resulting in mediocre performance and scalability issues on the horizon and license fees have almost increased by a factor of 5 for us with no change on our end they got bought by big inc . . Therefore we re currently starting to look for a long-term solution in terms of scalability performance as well as maintenance . We had a look at other real oodbms es and always came across major breakers for us and therefore we started to look a little further and basically are thinking about ORMs now which hopefully let us keep most of the focus on our objects instead of wrangling with SQL . So basically here s my Question : does anyone have any real-world experience with Microsoft s Entity Framework or any other .NET ORM that keeps configuration as maintainable as possible as well as performs well in closely heavily related entities The amount of data we store is not amazing or extensive in any sort we expect a total of 100k instances across all entities within the next 3 years . Does anyone have any ideas suggestions for an ORM and or experience migrating from an oodbms to rdbms .. . Answer : I don t have any experience with OODBMSes but my experience with NHibernate + MS SQL Server has been very positive in terms of enforcing and cascading changes down one-to-many many-to-one and many-to-many relationships . What OODBMS tool are you using It might be possible that an OODBMS - RDBMS migration tool exists but I m not aware of any .", "Question : I thought it was about time to have a look at OO databases and decided to use db4o for my next little project - a small library . Consider the following objects : Book Category . A Book can be in 0-n categories and a Category can be applied to 0-m Books . My first thought is to have a joining object such as BookCatecory but after a bit of Googling I see that this is not appropriate for Real OO . So another approach recommended by many is to have a list in both objects : Book.categories and Category.books . One side handles the relationship : Book.addCategory adds Category to Book.categories and Book to Category.books . How to handle commits and rollbacks when 2 objects are been altered within one method call What are your thoughts The second approach has obvious advantages but for me at least the first feels right better normed . .. . Answer : Do you have any particular reason you wanted to use an ODBMS For simple data-structures such as categorizing books you generally won t find any advantage in ODBMS over RDBMS and in fact will have an easier time working in the much-more-standardized world of RDBMS . ODBMS has very tangible advantages when you are working with complex data types or literal persistence storage of dynamic objects . ODBMS also is cited as being much faster and more scalable than RDBMS though I can offer little insight into this myself . Here are a couple pages that discuss RDBMS vs . ODBMS however : .. . .. . Whatever Happened to Object-Oriented Databases http : www.leavcom.com db 5F08 5F00.htm .. . .. . Object-Oriented Database vs . Object-Rleational Database SO http : stackoverflow.com questions 757037 object-oriented-database-vs-object-relational-database Comment : I wanted to see if I could avoid creating a dbschema creating tables creating objects mapping tables to objects etc etc etc . It seems that an odbms could cut out a lot of the donkey work.. . Comment : It might cut out some of that work but so would a decent ORM layer . I m not saying that ODBMS is the wrong choice but there are alternatives that may serve you as well or better .", "Question : I m currently trying to pick a database vendor . I m just seeking some personal opinions from fellow database developers out there . My question is especially targeted towards people who : .. . .. . 1 have used Main Memory DB MMDB that supports replicating to disk hybrid before i.e . ExtremeDB http : www.mcobject.com standardedition.shtml .. . .. . or .. . .. . 2 have used Versant Object Database http : www.versant.com en 5FUS products objectdatabase and or Objectivity Database http : www.objectivity.com pages objectivity technical-information.asp and or Progress ObjectStore http : www.progress.com objectstore index.ssp .. . .. . and the question is really : if you could recommend a database vendor based on your experience that would suit my application . My application is a commercial real-time read : high-performance object-oriented C++ GIS kind of app where we need to do a lot of lat lon search i.e . given an area find all matching targets within the area...R-Tree index . The types of data that I would like to store into the database are all modeled as objects and they make use of std : : list and std : : vector so naturally Object Database seems to make sense . I have read through enough articles to convince myself that a traditional RDBMS probably isnt what I m really looking for in terms of .. . .. . 1 . performance joins or multiple tables for dynamic-length data like list vector .. . 2 . ease of programming impedance mismatch .. . .. . However in terms of performance .. . .. . 1 . Input data is being fed into the system at about 40 MB s . 2 . Hence the system will also be doing insert into the database at the rate of roughly 350 inserts per second where each object varies from 64KB to 128KB .. . .. . 3 . Database will consistently be searched and updated via multiple threads . From my understanding all of the Object DBs I have listed here use cache for storing database objects . ExtremeDB claims that since it s designed especially for memory it can avoid overhead of caching logic etc . See more by googling : Main Memory vs . RAM-Disk Databases : A Linux-based Benchmark .. . .. . So..I m just a bit confused . Can Object DBs be used in real-time system Is it as fast as MMDB .. . Answer : Fundamentally I difference between a MMDB and a OODB is that the MMDB has the expectation that all of its data is based in RAM but persisted to disk at some point . Whereas an OODB is more conventional in that there s no expectation of the entire DB fitting in to RAM . The MMDB can leverage this by giving up on the concept that the persisted data doesn t necessarily have to match the in RAM data . The way anything with persistence is going to work is that it has to write the data to disk on update in some fashion . Almost all DBs use some kind of log for this . These logs are basically raw pages of data or perhaps individual transactions appended to a file . When the file gets too big a new file is started . Once the logs are properly consolidated in to the main store the logs are discarded or reused . Now a crude in RAM DB can exist simply by appending transactions to a log file and when it s restarted it just loads the log in to RAM . So in essence the log file IS the database . The downside of this technique is the longer and more transactions you have the bigger your log DB is and thus the longer the DB startup time . But ideally you can also snapshot the current state which eliminates all of the logs up to-date and effectively compresses them . In this manner all the routine operations of the DB have to manage is appending pages to logs rather than updating other disk pages index pages etc . Since ideally most systems don t need to Start up that often perhaps start up time is less of an issue . So in this way a MMDB can be faster than an OODB who has a different contract with the disk maintaining logs and disk pages . In this way an OODB can be slower even if the entire DB fits in to RAM and is properly cached simply because you incur disk operations outside of the log operations during normal operations vs a MMDB where these operations happen as a maintenance task which can be scheduled during down time and or quiet time . As to whether either of these systems can meet you actual performance needs I can t say . Comment : thanks for a very good explanation for 2 different technologies Will . Did you ever use any OODBMS or MMBDBMS If so which ones How did you like them compared to a traditional RDBMS Comment : No I ve not used either in any legitimate way and even then none of my projects have had your bandwdith requirements so even if I had the experience may not have been valid ." ] }
[ "yes-answer-long", "yes-answer-short" ]
database
UNK_RELATION
msbi@business-intelligence@90
msbi -- msbi microsoft business-intelligence is a suite of tools providing solutions for @placeholder queries .
{ "confidence": [ 42.42404556274414, 36.99644088745117, 35.86439514160156, 35.86439514160156, 35.732112884521484, 32.9160270690918, 26.516616821289062, 20.643901824951172, 19.473243713378906, 16.783939361572266, 16.692224502563477, 16.068567276000977, 15.973442077636719, 14.800477981567383, 14.711776733398438, 14.518590927124023, 13.074756622314453, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.91181468963623, 12.227401733398438, 11.57022476196289, 11.205395698547363, 11.205395698547363, 11.205395698547363, 11.205395698547363, 11.205395698547363, 11.205395698547363, 11.205395698547363, 11.205395698547363, 11.205395698547363, 11.205395698547363 ], "content": [ "Is there any tool available which converts the Cognos XML to .rdl format in MSBI .", "we are using GIT for source control for our MSBI project SSAS SSIS SSRS 2008 .", "I want to convert .RPD file generated from Oracle BI admin tool to MSBI .", "In msbi ssas when I try to get the xmla code it is too large and complex .", "I would like to know which edition of the SQL Server can I install at my home desktop which is bundled with complete MSBI Suite features .", "I am a MSBI developer working with the SQL Server Enterprise edition but newbie to SQL Server editions.. .", "That is why a data-warehouse is a very common business-intelligence tool .", "In other words you would have to rebuild your Oracle BI solution using the proper Microsoft tools .", "Gather business requirements .. . 2 .", "Also I d say that a BI Developer should ensure BI tools be available and can scale through the entire enterprise and business stakeholders that requires complex strategies and approaches in OLTP .", "There is no way to simply convert an .RPD file to a Microsoft BI solution .", "After applying the business logic my SQL code will approve or reject the requests and post it back to sharepoint with updated status of the request .", "A BI developer s role is to extract meaning from the data and answer questions for the business .", "I can find solutions to a previous month a rolling number of months and getting a YTD cumulative value but this is a straight up point in time to point in time comparison .", "However commonly the business does want to know about history how records change over time and trending .", "An RPD file is somewhat analogous to Microsofts BI Semantic Model which you can design using SQL Server Data Tools .", "But even if there is no data-warehouse you may want to replicate certain tables from the production system to a reporting mirror overnight to avoid putting load on the system during business hours .", "To improve performance in transformations implemented using SSIS there is a note in internet to adjust the DefaultBufferSize value .", "Where can I find this option settings in the SSIS tool am unable to locate it .. . .. . Thanks", "I found it I need to select the transformation and on right side Properties window appears with this option we can alter it here Thanks", "Error 10 OLE DB error : OLE DB or ODBC error : Login failed for user NT Service MSSQLServerOLAPService .", "28000 .", "I have done settings like congfigation manager sql-server logon advanced addeduser restarted .. . .. . but it s saying it again .", "Can someone help me", "Someone else posted the same question and has received a couple unaccepted answers that may be useful for you .", "stackoverflow.com questions 15238559 http : stackoverflow.com questions 15238559 sql-server-2012-login-failed-for-user-nt-service-mssqlserverolapservice-280", "1 .", "Open SQL Server Management Studio and login to Database Engine .", "2 .", "Go to Security Logins click on New Login.. . and give NT Service MSSQLServerOLAPService .", "3 .", "Restart servers .. . .. . Should be able to deploy now .", "I created a package which is used to transfer data from oracle instance to SQL instance I got following errors .. . .. . 1 .", "SRC WKF LOG HISTORY 63 Error : Either Table Name or SqlCommand property should be set .", "SSIS.Pipeline Error : SSIS Error Code DTS E PRIMEOUTPUTFAILED .", "The PrimeOutput method on SRC WKF LOG HISTORY returned error-code 0x80004005 .", "The component returned a failure code when the pipeline engine called PrimeOutput .", "The meaning of the failure code is defined by the component but the error is fatal and the pipeline stopped executing .", "There may be error messages posted before this with more information about the failure .", "3.Task DFT Copy Data failed could any one please help to get out from these .", "thank you", "Either TableName or SqlCommand property should be set So .", "On your Oracle Source connection is either the table name or SQL command set", "yes sql command .", "Has it ever worked", "nope this is the first", "Post a screenshot of the properties of SRC WKF LOG HISTORY .", "I have checked the web looking for a solution but haven t been able to get the error resolved .", "A couple of date fields in the source : .. . .. . EFFDT .. . END DT .. . CREATE DT .. . UPDATE DT .. . .. . Source data : .. . .. . EFFDT - dd-mon-yyyy .. . END DT - dd-mm-yyyy .. . CREATE DT - 11-Mrz-2009 08 : 20 : 26 AM 22 10 1999 17 : 03 : 09 .. . UPDATE DT - 12-Aug-2000 11 : 33 : 16 AM .. . .. . Target populating without any transformation straight move : .. . .. . EFFDT - yyyy-mm-dd .. . END DT - yyyy-mm-dd .. . CREATE DT - 2009-03-11 08 : 20 : 26.000 2000-11-12 10 : 19 : 46.000 .. . UPDATE DT - 2000-08-12 11 : 33 : 16.000 .. . .. . Do I need the exact replica of the source data in target", "I have tried using derived column to transform but am not able to succeed .", "How can I achieve this", "correction to my previous comment - I need the exact replica of the source data in target", "correction - I need the exact replica of the source data in target", "i have tried to use Derived column for the date columns i have used the below logic SUBSTRING DT WSTR 5 EFFDT 1 5 i have got the below error Derived Column 37 Error : The Derived Column failed because truncation occurred and the truncation row disposition on Derived Column.Inputs Derived Column Input .Columns EFFDT specifies failure on truncation .", "A truncation error occurred on the specified object of the", "I have a SSIS package where excel files are uploading to the target SQL Server db .", "The DFT executes inside a for each loop container as files are coming in random basis .", "The successful files processed and moved to Success folder and unprocessed files moved to Failed folder .", "But in such cases even the files processed and moved to success folder but the data actually has not been uploaded into target table .", "How to resolve such issues please do reply me with a fruitful solution .", "You need to find a file where this has happened and you need to reproduce the issue and inspect the logs .", "Work out if it is file specific or some other reason .", "You should also try and find the logs for an already failed file", "Yes this question is too general with none of the details needed to solve it .", "Look at it in the debugger and tell us what s happening .", "I am New to SSIS Integration services .", "I am bit in dilemma when to use Lookup Merge join Transformations in SSIS .", "Please don t tell me differences between them I know them already .", "I want to know in which scenarios I have to use Lookup merge join .", "The only reason I can think of with the MERGE JOIN is when you have 2 huge unsorted datasources and you cannot pull them all in memory to sort them in the pipeline .", "Please explore internet world you will find something for sure. . .. . .. . EDIT .. . .. . Using Merge Join instead of Lookup .. . .. . If you need to do a one-time join in your data flow as opposed to multiple lookups consider using a Merge Join transform instead of a Lookup transform .", "Jamie Thomson has a great post which compares the two approaches and demonstrates that using Merge Join can be a lot more efficient than using a Lookup .", "The main reason for this is that Merge Join takes a streaming approach rather than taking time to pre-cache its values .", "The streaming logic was further improved in SSIS 2012 as well the Merge Join now prevents one input from getting too many buffers when one source is a lot faster than the other .", "Keep the following things in mind when considering this approach : .. . .. . Both inputs must be sorted .", "Ideally this sort can be pushed into the source query .", "If the data isn t already sorted i.e .", "no indexes the cost of the sort might outweigh the benefits of this approach .", "A source component doesn t end until it has read all of its data so if your incoming data has a small number of rows and you re joining with a much larger data set which is the case in this particular customer s scenario the Merge Join approach isn t going to be ideal .", "A Partial Cache lookup tends to work best in these types of scenarios .", "Courtesy : .. . .. . 1 .", "MSDN WEBSITE http : social.msdn.microsoft.com Forums sqlserver en-US a633c300-73da-4988-9381-90d292b96b8a what-is-the-sinariao-where-you-can-use-only-lookup-not-merge-join forum sqlintegrationservices .. . 2 .", "MattMasson http : www.mattmasson.com 2012 09 lookups-with-really-big-reference-tables", "I dint get any so asked here .", "I have shared a few links and description for the same please refer .", "Hope this helps you", ":", "In fact if you don t have Visual Studio 2015 installed on your machine then the installer for the BI tools will install VS2015 for you .", "The BI tools for VS 2015 are available for at no cost and work with any SKU of Visual Studio 2015 -- Express Community Enterprise all of em .", "Our SSAS cube are in development stage .", "We have around 40 million records in couple of fact table in data-warehouse .", "If I create new calculate measure or if I do some changes in the dimension Should I process the hole cube", "I am concern about this because as we have high volumes of data-processing of cubes is taking time .", "And also Which type of process suits when I made such changes .", "Please guide me .", "And also When I make some changes in dimensions and process it I am not able to browse cube from ssms .", "Should I have to wait till cube is processed .", "Possible duplicate of What cube deployment changes will force a reprocess", "http : stackoverflow.com questions 30705462 what-cube-deployment-changes-will-force-a-reprocess" ] }
{ "confidence": [ 55.71461486816406, 49.46744155883789, 49.46744155883789, 44.16576385498047, 25.461509704589844, 15.852730751037598, 13.907857894897461, 13.634529113769531, 12.88237476348877, 12.88237476348877, 12.88237476348877, 12.88237476348877, 12.88237476348877, 12.88237476348877, 11.148402214050293, 11.148402214050293, 11.148402214050293, 11.148402214050293, 11.148402214050293, 11.148402214050293 ], "content": [ "Question : I want to convert .RPD file generated from Oracle BI admin tool to MSBI . Comment : post code you tried Comment : I haven t tried it . I m not getting the Idea of how it can be done . .. . Answer : There is no way to simply convert an .RPD file to a Microsoft BI solution . An RPD file is somewhat analogous to Microsofts BI Semantic Model which you can design using SQL Server Data Tools . In other words you would have to rebuild your Oracle BI solution using the proper Microsoft tools . Comment : Is there a way that AMO can be used in order to convert it . Can a utility be created in order to get the output . Comment : Sure anything is possible if you re willing to write code but the AMO API is not going to understand how to parse and read the RPD file . It s probably going to be a lot of work . What s your use-case for this Comment : I got the .RPD file in XML format i.e the simplest form . In msbi ssas when I try to get the xmla code it is too large and complex . I thought of mapping it through in order to get the output but was not successful .", "Question : null .. . Answer : Is there any tool available which converts the Cognos XML to .rdl format in MSBI . If no then can someone please tell me how that can be achieved via vb.net", "Question : null .. . Answer : we are using GIT for source control for our MSBI project SSAS SSIS SSRS 2008 . Is it possible to have continuous-integration using Bamboo", "Question : I don t know whether this questions stands correctly or not for Stack . I am a MSBI developer working with the SQL Server Enterprise edition but newbie to SQL Server editions.. . I would like to know which edition of the SQL Server can I install at my home desktop which is bundled with complete MSBI Suite features . Thanks Comment : Developer edition + SSDT Comment : @Devart seems it have some compatibility issues . social.msdn.microsoft.com Forums sqlserver en-US https : social.msdn.microsoft.com Forums sqlserver en-US a9da27b3-714a-463e-a9b0-7617a4ec2f36 ssdt-or-bids-not-available-with-sql-server-2014-developer-edition forum ssdt Comment : Reading information under link you provided it looks like it s compatibility issue with VS Express . As far as I remember VS Express wasn t capable of using plugins . I m using MSSQL 2012 dev edition + SSDT + SSDTBI + BIDS Helper with Visual Studio Premium 2012 without any issues . Comment : Look here it s from 2014 but I couldn t find that they changed anything : visualstudiomagazine.com articles 2014 05 21 https : visualstudiomagazine.com articles 2014 05 21 no-extensions-for-visual-studio-express.aspx Comment : if we buy developer edition and install visual-studio-2015 community edition do we still need to buy BI tools ssdt or do we get full features of ssrs and ssis .. . Answer : The BI tools for VS 2015 are available for at no cost and work with any SKU of Visual Studio 2015 -- Express Community Enterprise all of em . In fact if you don t have Visual Studio 2015 installed on your machine then the installer for the BI tools will install VS2015 for you . You can download the SSDT tools for BI development here by clicking on the Latest SSDT Preview for Visual Studio 2015 : https : msdn.microsoft.com en-us library mt204009.aspx Comment : let me try it : I hope it is bundled with SQL Server database .. . Comment : it seems the SQL Server has been installed on my machine along with the SSDT Visual Studio but I found SSMS is not there . Could you please advise Thanks a lot +1 Comment : SSMS can be downloaded from here : msdn.microsoft.com en-us library mt238290.aspx https : msdn.microsoft.com en-us library mt238290.aspx", "Question : I am SQL developer and recently learnt SSIS and SSRS from youtube . I want to know what is the role of BI developer in OLTP system . An example of the same would be very helpful . There is no interaction with the dataware house . Regards Bunti .. . Answer : You can still create reports directly from operational systems . If all you want to show is current state and you don t care about history or trending then building an entire data-warehouse is probably overkill anyway . A BI developer s role is to extract meaning from the data and answer questions for the business . This includes data warehousing but it isn t absolutely necessary . SSIS is not going to be all that useful if you re not doing any ETL at all . But even if there is no data-warehouse you may want to replicate certain tables from the production system to a reporting mirror overnight to avoid putting load on the system during business hours . Then you may want to do some pre-calculation of certain oft-used measures . However commonly the business does want to know about history how records change over time and trending . That is why a data-warehouse is a very common business-intelligence tool . Comment : I agree with your answer . Also I d say that a BI Developer should ensure BI tools be available and can scale through the entire enterprise and business stakeholders that requires complex strategies and approaches in OLTP .", "Question : null .. . Answer : I have to automate the process of request approval in which i will be transferring all the list items Approval Requests from sharepoint to database using SSIS . After applying the business logic my SQL code will approve or reject the requests and post it back to sharepoint with updated status of the request . After that the actual approver must submit approve all the requests on one click which will insert the data to the final table . As I am new to sharepoint i need some help to enable the button which will insert the requests to the database .", "Question : I am trying to build a data-warehouse using the OLTP database and was wondering if I need to define the Fact Tables first or the Dimensions Please help Regards Yogi Comment : Are you asking what should be created first using DML or what you should designed first Comment : yes what should I designed first and if possible what should be created first too. . .. . Answer : It s very iterative process usually you go this way : .. . .. . 1 . Gather business requirements .. . 2 . Identify facts and dimensions .. . 3 . Design .. . 4 . Implement .. . .. . It s of course very simplified . Steps 1-3 usually consume about 80 of whole project and consist of many sub steps . I recommend you do a reading of Kimball s book on subject : http : www.amazon.com The-Data-Warehouse-Toolkit-Dimensional dp 0471200247 http : rads.stackoverflow.com amzn click 0471200247 .. . .. . -- UPDATE .. . .. . I found another guideline which might lead you through creating successful BI solution : .. . .. . 1 . Create a data source .. . 2 . Create a data source view .. . 3 . Create one or more dimensions .. . 4 . Create a cube .. . 5 . Deploy the database .. . .. . This will lead you to conclusion that you need to have dimensions and facts already in-place . This is right and wrong . You might find that it is impossible to gather all the requirements at once so what you should start with is and create tables accordingly : .. . .. . 1 . Identify create dimensions .. . 2 . Identify create facts .. . 3 . Connect those add cube calculations KPIs whatever required .. . .. . Source https : www.simple-talk.com sql reporting-services five-basic-steps-for-implementing-an-analysis-services-database .. . .. . Repeat steps 1-3 as you learn more from your customer . This repetitive nature comes from various factors . Customers are not always aware of all their requirements sometimes those might not even be functional ones so how could they know . We as DEVs are not domain experts usually we learn as we go . Comment : Thanks Rafal.. .", "Question : I have a snapshot fact table with a time grain of monthly and so the measure values are only point in time not cumulative over time . I need to derive a Previous Year-End value to compare any given month s values to the end of the previous year like so : .. . .. . Month Val1 PrevYEVal .. . .. . 2014-10 101 100 .. . .. . 2014-11 103 100 .. . .. . 2014-12 105 100 .. . .. . 2015-01 110 105 .. . .. . 2015-02 115 105 .. . .. . 2015-03 113 105 .. . .. . .. . .. . .. . 2015-12 120 105 .. . .. . 2016-01 130 120 .. . .. . etc.. . I m using SSAS and the time dimension table is set up as such with a Year- Quarter- Month- Day hierarchy . I can find solutions to a previous month a rolling number of months and getting a YTD cumulative value but this is a straight up point in time to point in time comparison . I m trying to use Lag Ancestor and or ParallelPeriod but I can t seem to get the above result set . .. . Answer : Try : Comment : ...off topic but I was wondering if you have ever encountered this challenge Greg stackoverflow.com questions 33485982 http : stackoverflow.com questions 33485982 top-x-of-top-y-with-restof-member-where-x-and-y-are-unrelated-hierarchies", "Question : To improve performance in transformations implemented using SSIS there is a note in internet to adjust the DefaultBufferSize value . Where can I find this option settings in the SSIS tool am unable to locate it .. . .. . Thanks .. . Answer : I found it I need to select the transformation and on right side Properties window appears with this option we can alter it here Thanks", "Question : Error 10 OLE DB error : OLE DB or ODBC error : Login failed for user NT Service MSSQLServerOLAPService . 28000 . I have done settings like congfigation manager sql-server logon advanced addeduser restarted .. . .. . but it s saying it again . Can someone help me Comment : Someone else posted the same question and has received a couple unaccepted answers that may be useful for you . stackoverflow.com questions 15238559 http : stackoverflow.com questions 15238559 sql-server-2012-login-failed-for-user-nt-service-mssqlserverolapservice-280 .. . Answer : 1 . Open SQL Server Management Studio and login to Database Engine . 2 . Go to Security Logins click on New Login.. . and give NT Service MSSQLServerOLAPService . 3 . Restart servers .. . .. . Should be able to deploy now .", "Question : null .. . Answer : I created a package which is used to transfer data from oracle instance to SQL instance I got following errors .. . .. . 1 . SRC WKF LOG HISTORY 63 Error : Either Table Name or SqlCommand property should be set . 2 . SSIS.Pipeline Error : SSIS Error Code DTS E PRIMEOUTPUTFAILED . The PrimeOutput method on SRC WKF LOG HISTORY returned error-code 0x80004005 . The component returned a failure code when the pipeline engine called PrimeOutput . The meaning of the failure code is defined by the component but the error is fatal and the pipeline stopped executing . There may be error messages posted before this with more information about the failure . 3.Task DFT Copy Data failed could any one please help to get out from these . thank you Comment : Either TableName or SqlCommand property should be set So . On your Oracle Source connection is either the table name or SQL command set Comment : yes sql command . Comment : Has it ever worked Comment : nope this is the first Comment : Post a screenshot of the properties of SRC WKF LOG HISTORY .", "Question : null .. . Answer : I have checked the web looking for a solution but haven t been able to get the error resolved . A couple of date fields in the source : .. . .. . EFFDT .. . END DT .. . CREATE DT .. . UPDATE DT .. . .. . Source data : .. . .. . EFFDT - dd-mon-yyyy .. . END DT - dd-mm-yyyy .. . CREATE DT - 11-Mrz-2009 08 : 20 : 26 AM 22 10 1999 17 : 03 : 09 .. . UPDATE DT - 12-Aug-2000 11 : 33 : 16 AM .. . .. . Target populating without any transformation straight move : .. . .. . EFFDT - yyyy-mm-dd .. . END DT - yyyy-mm-dd .. . CREATE DT - 2009-03-11 08 : 20 : 26.000 2000-11-12 10 : 19 : 46.000 .. . UPDATE DT - 2000-08-12 11 : 33 : 16.000 .. . .. . Do I need the exact replica of the source data in target I have tried using derived column to transform but am not able to succeed . How can I achieve this Comment : correction to my previous comment - I need the exact replica of the source data in target Comment : correction - I need the exact replica of the source data in target Comment : i have tried to use Derived column for the date columns i have used the below logic SUBSTRING DT WSTR 5 EFFDT 1 5 i have got the below error Derived Column 37 Error : The Derived Column failed because truncation occurred and the truncation row disposition on Derived Column.Inputs Derived Column Input .Columns EFFDT specifies failure on truncation . A truncation error occurred on the specified object of the", "Question : null .. . Answer : I have a SSIS package where excel files are uploading to the target SQL Server db . The DFT executes inside a for each loop container as files are coming in random basis . The successful files processed and moved to Success folder and unprocessed files moved to Failed folder . But in such cases even the files processed and moved to success folder but the data actually has not been uploaded into target table . How to resolve such issues please do reply me with a fruitful solution . Comment : You need to find a file where this has happened and you need to reproduce the issue and inspect the logs . Work out if it is file specific or some other reason . You should also try and find the logs for an already failed file Comment : Yes this question is too general with none of the details needed to solve it . Look at it in the debugger and tell us what s happening .", "Question : I am New to SSIS Integration services . I am bit in dilemma when to use Lookup Merge join Transformations in SSIS . Please don t tell me differences between them I know them already . I want to know in which scenarios I have to use Lookup merge join . .. . Answer : The only reason I can think of with the MERGE JOIN is when you have 2 huge unsorted datasources and you cannot pull them all in memory to sort them in the pipeline . Please explore internet world you will find something for sure. . .. . .. . EDIT .. . .. . Using Merge Join instead of Lookup .. . .. . If you need to do a one-time join in your data flow as opposed to multiple lookups consider using a Merge Join transform instead of a Lookup transform . Jamie Thomson has a great post which compares the two approaches and demonstrates that using Merge Join can be a lot more efficient than using a Lookup . The main reason for this is that Merge Join takes a streaming approach rather than taking time to pre-cache its values . The streaming logic was further improved in SSIS 2012 as well the Merge Join now prevents one input from getting too many buffers when one source is a lot faster than the other . Keep the following things in mind when considering this approach : .. . .. . Both inputs must be sorted . Ideally this sort can be pushed into the source query . If the data isn t already sorted i.e . no indexes the cost of the sort might outweigh the benefits of this approach . A source component doesn t end until it has read all of its data so if your incoming data has a small number of rows and you re joining with a much larger data set which is the case in this particular customer s scenario the Merge Join approach isn t going to be ideal . A Partial Cache lookup tends to work best in these types of scenarios . Courtesy : .. . .. . 1 . MSDN WEBSITE http : social.msdn.microsoft.com Forums sqlserver en-US a633c300-73da-4988-9381-90d292b96b8a what-is-the-sinariao-where-you-can-use-only-lookup-not-merge-join forum sqlintegrationservices .. . 2 . MattMasson http : www.mattmasson.com 2012 09 lookups-with-really-big-reference-tables Comment : I dint get any so asked here . Comment : I have shared a few links and description for the same please refer . Hope this helps you :", "Question : Here is the situation I have number with total numbers and i put all in Cube . Just want to see what is showing up in DB rather than sum or count . I tried Aggregated function none but it s not bring up anything . Pleas suggest .. . Answer : Aggregation function none shows numbers only if all of the following conditions are met : .. . .. . You are slicing by dimension ID hierarchy . For example for Dim Customer - slicing by CustomerID . All dimensions which are regular dimensions of your measure group have to be present in your query . You should not use All member of the dimensions . As you see none aggregation is quite restrictive . For your task - see what is in DB or on leaf level - try DRILLTHROUGH function .", "Question : null .. . Answer : Our SSAS cube are in development stage . We have around 40 million records in couple of fact table in data-warehouse . If I create new calculate measure or if I do some changes in the dimension Should I process the hole cube I am concern about this because as we have high volumes of data-processing of cubes is taking time . And also Which type of process suits when I made such changes . Please guide me . Comment : And also When I make some changes in dimensions and process it I am not able to browse cube from ssms . Should I have to wait till cube is processed . Comment : Possible duplicate of What cube deployment changes will force a reprocess http : stackoverflow.com questions 30705462 what-cube-deployment-changes-will-force-a-reprocess", "Question : I am trying to create a calculated member which should returns the averages orders per week per person . Below is the screen shot where the client will be looking to forecast the work load . Staff may not work all the days in a week . The calculation will be : No of Orders No of scheduled days in that week . It would not be very hard to calculate this if the week name is in the same hierarchy of the date but in this case it is not in hierarchy but just member of the dimension . enter image description here http : i.stack.imgur.com a4b9L.jpg .. . .. . Required Output http : i.stack.imgur.com dKL0P.jpg .. . .. . This is the MDX I ve tried : Comment : Share the script you have tried so far in order to help you . Comment : I know this is wrong because there is no Date specified on the rows . Avg Descendants Date Planned . Date Planned .CurrentMember Date Planned . Date Planned . Date Planned Measures . Orders Qty Comment : Do you need the avg per week If so edit the title of your question . Why didn t you use the week attribute Comment : @Murty Did any of our answer s help you find a solution .. . Answer : It would be much easier when you have week and day added into the hierarchy but if you don t have possibility to have this added there is different non elegant solution . If you would assume that this member will always be used with Week on rows your member calculation would be as follow : enter image description here http : i.stack.imgur.com 4mFKj.png .. . .. . This will work correctly only with weeks on rows - so I would recommend to extend your Calendar hierarchy by week and day and then we can have a chat about much more elegant solution . Comment : Thanks for your reply . This may not work for me in this scenario as no of days are not fixed . It could be any thing between 1 to 7 based on the individual . However if I will consider your suggestion to add it in hierarchy if I don t find any solution . Thanks again for your suggestion Comment : When you will have week and day added into the hierarchy then I can help you to finish this - of course if you would need my help .", "Question : I am trying to create a calculated member which should returns the averages orders per week per person . Below is the screen shot where the client will be looking to forecast the work load . Staff may not work all the days in a week . The calculation will be : No of Orders No of scheduled days in that week . It would not be very hard to calculate this if the week name is in the same hierarchy of the date but in this case it is not in hierarchy but just member of the dimension . enter image description here http : i.stack.imgur.com a4b9L.jpg .. . .. . Required Output http : i.stack.imgur.com dKL0P.jpg .. . .. . This is the MDX I ve tried : Comment : Share the script you have tried so far in order to help you . Comment : I know this is wrong because there is no Date specified on the rows . Avg Descendants Date Planned . Date Planned .CurrentMember Date Planned . Date Planned . Date Planned Measures . Orders Qty Comment : Do you need the avg per week If so edit the title of your question . Why didn t you use the week attribute Comment : @Murty Did any of our answer s help you find a solution .. . Answer : Try using this : .. . .. . Let me know if this can help you .", "Question : I am trying to create a calculated member which should returns the averages orders per week per person . Below is the screen shot where the client will be looking to forecast the work load . Staff may not work all the days in a week . The calculation will be : No of Orders No of scheduled days in that week . It would not be very hard to calculate this if the week name is in the same hierarchy of the date but in this case it is not in hierarchy but just member of the dimension . enter image description here http : i.stack.imgur.com a4b9L.jpg .. . .. . Required Output http : i.stack.imgur.com dKL0P.jpg .. . .. . This is the MDX I ve tried : Comment : Share the script you have tried so far in order to help you . Comment : I know this is wrong because there is no Date specified on the rows . Avg Descendants Date Planned . Date Planned .CurrentMember Date Planned . Date Planned . Date Planned Measures . Orders Qty Comment : Do you need the avg per week If so edit the title of your question . Why didn t you use the week attribute Comment : @Murty Did any of our answer s help you find a solution .. . Answer : Maybe something like the following : .. . .. . I d like to test but unsure how to model your scenario in the AdvWrks cube .", "Question : I am trying to create a calculated member which should returns the averages orders per week per person . Below is the screen shot where the client will be looking to forecast the work load . Staff may not work all the days in a week . The calculation will be : No of Orders No of scheduled days in that week . It would not be very hard to calculate this if the week name is in the same hierarchy of the date but in this case it is not in hierarchy but just member of the dimension . enter image description here http : i.stack.imgur.com a4b9L.jpg .. . .. . Required Output http : i.stack.imgur.com dKL0P.jpg .. . .. . This is the MDX I ve tried : Comment : Share the script you have tried so far in order to help you . Comment : I know this is wrong because there is no Date specified on the rows . Avg Descendants Date Planned . Date Planned .CurrentMember Date Planned . Date Planned . Date Planned Measures . Orders Qty Comment : Do you need the avg per week If so edit the title of your question . Why didn t you use the week attribute Comment : @Murty Did any of our answer s help you find a solution .. . Answer : I would first want to see how many dates belong to the week . That would be easy as it would be those days when Orders were placed for that person that week . Now that you have the requisite dates for the current week and the current person you would need to calculate the average order quantity for these set of dates . It would look like this : .. . .. . Your final construct would need to be :" ] }
[ "yes-answer-long", "yes-answer-short" ]
business-intelligence
UNK_RELATION
koala-gem@connectivity@59
koala-gem -- koala is a ruby gem for integrating facebook @placeholder into ruby and ruby-on-rails applications .
{ "confidence": [ 82.58720397949219, 77.41453552246094, 73.8162612915039, 71.54349517822266, 65.9500503540039, 65.92478942871094, 63.02016830444336, 61.901729583740234, 60.0215950012207, 60.0215950012207, 59.19507598876953, 58.88274002075195, 58.06220626831055, 57.549842834472656, 55.910621643066406, 55.4845085144043, 55.455623626708984, 51.774635314941406, 51.278499603271484, 50.283843994140625, 50.19121170043945, 49.46330642700195, 49.46330642700195, 49.402671813964844, 47.560935974121094, 47.537628173828125, 46.893653869628906, 46.26078796386719, 46.066986083984375, 44.575950622558594, 44.08720016479492, 43.84459686279297, 43.6880989074707, 43.66572570800781, 43.66572570800781, 43.110145568847656, 42.904293060302734, 42.80692672729492, 42.66397476196289, 42.645225524902344, 42.269142150878906, 42.269142150878906, 42.11725997924805, 42.11725997924805, 41.36396026611328, 41.180694580078125, 40.8166618347168, 40.795108795166016, 40.53745651245117, 40.064144134521484, 39.821537017822266, 39.737281799316406, 39.610538482666016, 39.560176849365234, 39.5499382019043, 39.13347244262695, 38.7912712097168, 38.7912712097168, 38.790016174316406, 38.700538635253906, 38.24608612060547, 38.24608612060547, 38.06938552856445, 36.827877044677734, 36.30350112915039, 35.673397064208984, 35.499046325683594, 34.837486267089844, 34.67919921875, 34.58423614501953, 34.15797424316406, 34.046329498291016, 34.046329498291016, 34.046329498291016, 34.046329498291016, 34.046329498291016, 33.669158935546875, 33.669158935546875, 33.5973014831543, 32.788333892822266, 32.19184112548828, 32.0794677734375, 32.0244140625, 31.47598648071289, 31.47364044189453, 31.47364044189453, 31.47364044189453, 30.790283203125, 29.004310607910156, 28.903297424316406, 28.903297424316406, 28.576244354248047, 27.664695739746094, 27.56821060180664, 27.403766632080078, 26.304258346557617, 26.302043914794922, 25.471525192260742, 25.181900024414062, 25.10343360900879 ], "content": [ "Compare the output of gem contents koala where koala files are and ruby -e puts : where Ruby searches for requires .", "I am using Ruby 2.1.1 rails 4 and Koala gem to post pictures and comment on facebook using feed method of Koala gem .", "I m using Ruby on Rails and Koala .", "I am working on collaborative web platform by ruby-on-rails and it s connected with facebook app v2 by Koala gem. .", "I m using the gem Koala to get facebook friends .", "I have installed Ruby not Rails on a machine and am trying to run some code based off the koala-framework for Facebook .", "I am using koala-gem in rails 3 .", "I m putting together a website which displays Facebook events using Ruby on Rails and Koala .", "I have 616 Facebook friends and Koala gem returns only 601 .", "Is there a way to get all the available Facebook pages via the koala-gem", "I am using the Koala gem .", "gem contents koala returns a list of koala 2.0.0 files in var lib gems 1.8 gems .", "Hi I am using Koala gem https : github.com arsduo koala and graph API for getting the Facebook information .", "I am using the koala-gem in my rails app to use the Facebook Open Graph API .", "I m trying to using Koala gem to search for facebook-page like this .. . .. . but I got this Users luizeduardo .rbenv versions 2.2.3 lib ruby 2.2.0 uri generic.rb : 1100 : in rescue in merge : bad URI is not URI", "I did not upgrade the Koala gem though .", "I m using rails4 and koala-gem Following is my code .. . .. . Koala : : Facebook : : API.new user.oauth token .get object facebook post id but I m keep on getting this error .", "I m working on rails 4 with the Koala gem to retrieve users pictures from Graph API .", "Facebook API supports choosing nested object s selected fields in the response in following manner : .. . .. . Reference : https : developers.facebook.com docs graph-api using-graph-api reading - Section : Making Nested Requests .. . .. . When using Koala Ruby Gem to send request to Facebook API what is the syntax for specifying nested fields", "How do I use the koala-gem to get information from an app page", "After installing Ruby 1.9 you now have a mismatch and it won t work unless you use new gem and new ruby .", "Hi I am wondering how to get user posts insights from Facebook API Koala Gem .", "I m using the Koala gem to get metrics likes comments and shares on Facebook posts .", "Is this possible using koala", "Did anyone have used call to action-button with koala-gem", "But on the server it returns this exception .. . .. . NoMethodError Exception : undefined method synchronize for nil : NilClass .. . .. . .. . .. . Does anyone know what could be wrong .. . .. . Full Trace of Server bellow .. . .. . Already thanks .. . .. . .. . .. . Full Trace of Server .. . .. . home nonato .rvm rubies ruby-2.0.0-p643 lib ruby 2.0.0 singleton.rb : 139 : in instance multi json 1.11.2 lib multi json adapter.rb : 21 : in load multi json 1.11.2 lib multi json.rb : 119 : in load koala 2.3.0 lib koala api.rb : 89 : in api koala 2.3.0 lib koala api graph api.rb : 527 : in graph call koala 2.3.0 lib koala api graph api.rb : 116 : in get connection app controllers facebook integrations controller.rb : 86 : in load facebook pages", "You might have a version mismatch using gem from one ruby version but executing with another .", "I am running into an issue gathering the friends list from users using my app through the Koala Gem .", "Same for name first name and last name : .. . .. . I have no clue about Ruby and Koala but i assume you can add the fields parameter as object - this is what it looks like in the docs : .. . .. . Source : https : github.com arsduo koala", "How to get the page fan s comments from facebook-api graph using koala-gem .. . .. . but i want to get the all comments of the page fan s comments .", "ruby -v returns 1.8.7", "Before Koala facebook would let me do this : .. . .. . graph.search Ted : type user .. . .. . Now it returns an empty array .", "After the user node is created the koala-gem is used to access the FB Graph API .. . 4 .", "It shouldn t produce a 500 in Koala though .", "Check for the most recent Koala version .", "I m using koala version 2.3.0 + omniauth-facebook 3.0.0 .. . .. . I m trying to do this : .. . .. . user facebook api Koala : : Facebook : : API.new user facebook token user facebook api.get object me .. . .. . When I try this in the console it returns my profile correctly .", "I have setup everything everything seems ok but when i try to post the activity on facebook using Koala i get the following error .. . .. . .. . .. . i am using koala-gem and i am doing like this .. . .. . Any Solution", "Koala handles it transparently .", "I user Devise + Omniauth-facebook + Koala for make my integrations .", "The syntax documentation for graph API and koala are sparse simplistic or cover the url string syntax and not the koala syntax .", "How can I search by first name using Koala", "Still get the same error on the first line which contains require koala .", "yea but how do I pass the page access token to the @updates.subscribe as shown in the koala-gem like so : @updates.subscribe user first name last name YOUR CALLBACK URL YOUR VERIFY TOKEN", "I can receive the gem to receive the pictures : .. . .. . but I would like to save the url the Koala is using I preffer the user will call the url instead of me .", "This is where documentation is lacking even in the koala wiki and readme .", "According to github.com arsduo koala blob master lib koala api https : github.com arsduo koala blob master lib koala api graph api.rb L40 you should be able to pass locale de DE as argument to the get object call .", "Also this is plain ruby program without any rails integration .", "So make sure your Facebook Graph API access token is set up properly and up to-date as described here : github.com arsduo koala https : github.com arsduo koala", "As suggested in this post http : stackoverflow.com questions 11007616 put-connections-to-facebook-graph-in-koala-fails-after-a-very-long-delay I have placed the @FBGraph Koala : : Facebook : : API.new in a new Thread but nothing changes .", "I m not a Ruby expert.. .", "I am trying to get all the posts on my facebook profile using Koala .", "Im new with all this about Koala and Facebook Im having a problem with facebook-access-token .", "I m using the Koala gem and everything seems fine but I can t seem to figure out how to specify which page I want to subscribe to : .. . .. . the above is the code Koala says to implement but it doesn t say anywhere about how to choose which page we are subscribing to or where to insert the page access token .", "I ve got the Koala 2.2.0 on a Rails 4.0.2 app and I m trying to pull in some metrics for a post that was posted by a page not a user .", "Second command points to usr lib ruby-1.8 usr local lib site ruby-1.8 usr lib ruby vendor ruby etc .", "So suppose Koala s asking for 100 users and the first 100 users that Facebook finds all have privacy set up to keep themselves hidden the result will be Facebook returning an empty list and Koala giving you nothing .", "https : github.com arsduo koala wiki Acting-as-a-Page", "I am using Koala to handle FB calls .", "https : github.com arsduo koala blob master lib koala api graph api.rb .. . .. . You should be able to use the graph call method and pass in whatever api call you d like to make as single parameter in a string .", "see similar question and answer here http : stackoverflow.com questions 27679956 facebook-graph-api-and-koala-how-to-find-places-in-a-city 36696332", "But i didnt find any configuration of Koala to set the locale as described :", "nothing in koala realtime updates asks for a token...i m so confused", "When I run .. . .. . koala is mentioned but when I run the file I get this error .", "I am using graph api and koala-gem to retrieve the pages of user and omniauth : facebook gem to retrieve token of user and store it in session : token .. . .. . If I access page using get object page name it shows all the data related to page but when I try to fetch pages using get connections it was returning null 0 .", "I am trying to post from an Rails Application via Koala-Gem : .. . .. . My metadata from the object look like : .. . .. . Even if I post the story through the Graph API Explorer the post only appears in the activity log but not in the Facebook Timeline .", "I am using Koala v2.0.0 and Graph API v2.3 .", "I found out that the koala takes the fields as an array of strings and then make query-string out of it.So for nested properties we can directly write as", "However we have been using Graph API v2.2 for serveral months now by specifying api version in koala config we always use koala to call GraphAPI : .. . .. . Since we need the subscribed apps endpoint we are using v2.2 .", "@Amadan : Additional edit I installed ruby-1.9.3 and now the output for the first has 1.9.1 second has 1.8 still .", "I m trying to get user s info via Gem Koala Facebook API with below code .. . .. . @graph Koala : : Facebook : : API.new auth hash.credentials.token profile @graph.get object me user.update url : auth hash.extra.raw info.id email : auth hash.extra.raw info.email friends : @graph.get connections me friends birthday : @graph.get object me birthday .. . .. . friends : @graph.get connections me friends works perfectly fine I will get a list of friends .", "I also upgraded from Ruby 2.0.0 to 2.3.0 .", "I added the most recent Koala version and checked the documentation but though me friends is what I should use .", "yes but that is for url strings whereas koala api methodsare different syntax from the fb url api .", "Here is how I have Koala implemented in my app and I ve been getting a page s conversation not through RealtimeUpdates successfully .", "Graph API Explorer lets me query 2.3 - style and get results but I can t do the same using koala", "I ve gone through the Koala docs but I m just not finding the answers I m looking for .", "I know that not specyfing a version at all results in choosing the oldest available one but we have specified the version in koala so it s not the point in our case .", "For a more detailed understanding of what API calls Koala will make have a look at the code which has good comments describing how each method works .", "I learned Ruby Rails and Neo4j at the same time because it fit my project too", "On this wiki page https : github.com arsduo koala wiki Graph-API getting-public-data following example is given : .. . .. . So to add the fields supported by a Facebook API end-point we pass in a hash containing fields as the key and an array of supported fields name like message id from .", "Is there a way extracting the url from the gem", "So I m not sure if there have been some changes to the gem or the facebook API I am unaware of .", "I want to like a facebook post in my rails application but I get the error : .. . .. . Koala : : Facebook : : ClientError : type : OAuthException code : 200 message : 200 Permissions error HTTP 403 .. . .. . my omniauth file includes : .. . .. . provider : facebook writer ENV facebook writer key ENV facebook writer secret info fields : friends scope : publish actions manage pages pages show list publish stream Items in my facebook application are not approved yet .", "I only use koala to query the Graph API explorer and I do not have an app so I do not have an app secret .", "config initializers omniauth.rb .. . .. . Also you can get post insights for a page via koala .", "I literally have not touched the Koala code in months yet is suddenly stopped working .", "The equivalente REST call would be to : .. . .. . The Koala wiki indicates all REST calls are supported via : .. . .. . but this doesn t tell me much .", "I too have this problem and FB even sent a screenshot of the app failing while using 2.0 so perhaps there s a koala issue here after all .", "Since Facebook s Graph API changed to version 2.4 I find that any query attempting to retrieve posts made returns an error : .. . .. . My request code uses Facebook s koala ruby api to make requests : .. . .. . I added the version count now based on koala s recommendation but the result for this is still the same error that I got without specifying the version .", "I referred following links .. . .. . https : github.com arsduo koala wiki Graph-API getting-public-data .. . .. . but getting the same issue .", "I would prefer to use Koala as I have app secret security enabled and generating app secret proof for plain FB REST calls is a major hassle .", "What are the advantages or disadvantages of fb-graph versus koala when trying to interact with the facebook s graph API v2.0 .", "Have a look at .. . .. . https : github.com arsduo koala wiki Graph-API getting-private-data .. . .. . You can also search for users pages events groups for the keyword of your choice : .. . .. . In your case this would mean .. . .. . IMHO.. . .. . .. . See .. . .. . https : developers.facebook.com docs graph-api using-graph-api v2.4 search", "I want to see if it s finding the node properly friend node User.find by uid : friend id What are good ways to check if something is empty in rails ruby in my model and print it in my view", "I have a Facebook app and I can get both its User Token and App Token from this url : https : developers.facebook.com tools access token In my Ruby on Rails application I am getting event information using the following code : .. . .. . The issue here is that the app User Token expires .", "I assumes that the gem calls : https : graph.facebook.com facebook id picture .. . .. . but I don t want it to be hard-coded .", "Not sure if it s my code or the gem or a change to Facebook s API .", "In the example you linked there IS some code to specify the Page Access Token : .. . .. . https : developers.facebook.com ads blog post 2014 12 11 real-time-updates-for-page-conversions .. . .. . Look at the bottom PHP script example : .. . .. . For setting Page Access Tokens have a look at .. . .. . https : github.com arsduo koala wiki Acting-as-a-Page", "I have an application in rails which is heavily based on facebook oauth2 .", "It s possible this is due to the way Facebook handles search results ." ] }
{ "confidence": [ 98.27698516845703, 84.91331481933594, 81.04689025878906, 79.5112533569336, 78.5761489868164, 78.09495544433594, 76.54643249511719, 74.39472961425781, 72.0300521850586, 66.38910675048828, 65.72213745117188, 65.06409454345703, 64.64293670654297, 63.14136505126953, 62.749725341796875, 61.161861419677734, 60.788063049316406, 60.54997253417969, 59.417667388916016, 59.24065399169922 ], "content": [ "Question : null .. . Answer : I have installed Ruby not Rails on a machine and am trying to run some code based off the koala-framework for Facebook . When I run .. . .. . koala is mentioned but when I run the file I get this error . Rubygems is already installed I m not sure what else to do . Any ideas Edit : Comment : Show your file Comment : Compare the output of gem contents koala where koala files are and ruby -e puts : where Ruby searches for requires . You might have a version mismatch using gem from one ruby version but executing with another . Comment : @Amadan : What am I looking for gem contents koala returns a list of koala 2.0.0 files in var lib gems 1.8 gems . Second command points to usr lib ruby-1.8 usr local lib site ruby-1.8 usr lib ruby vendor ruby etc . among others . Comment : @Amadan : Additional edit I installed ruby-1.9.3 and now the output for the first has 1.9.1 second has 1.8 still . Still get the same error on the first line which contains require koala . ruby -v returns 1.8.7 Comment : After installing Ruby 1.9 you now have a mismatch and it won t work unless you use new gem and new ruby . Before.. . no idea everything seems to have been okay .", "Question : I am using Ruby 2.1.1 rails 4 and Koala gem to post pictures and comment on facebook using feed method of Koala gem . So I get response from FB API with post id . Now I want to fetch statistics corresponding to post which was posted previously . I am able to fetch likes and comments for that post but unable to get shared count . So can anyone suggest me that how can I get number of shared count for that post .. . Answer : Did you have a look at the endpoint .. . .. . at https : developers.facebook.com docs graph-api reference v2.1 object sharedposts", "Question : I am using the koala-gem in my rails app to use the Facebook Open Graph API . The primary language of the app is German . Is there a way to set a locale to get e.g . the user s current city in German Or is there another reliable wa to translate locations .. . Answer : The Graph API supports the passing of the locale parameter . For Germany this would be de DE . You can test this via .. . .. . compared to .. . .. . Have a look at .. . .. . https : developers.facebook.com docs internationalization .. . https : developers.facebook.com docs graph-api using-graph-api v2.0 readmodifiers .. . https : developers.facebook.com docs opengraph guides internationalization .. . .. . Keep in mind that the translations are not always available especially for OpenGraph objects . Comment : Good start Thanks But i didnt find any configuration of Koala to set the locale as described : Comment : According to github.com arsduo koala blob master lib koala api https : github.com arsduo koala blob master lib koala api graph api.rb L40 you should be able to pass locale de DE as argument to the get object call . I m not a Ruby expert.. .", "Question : I m trying to using Koala gem to search for facebook-page like this .. . .. . but I got this Users luizeduardo .rbenv versions 2.2.3 lib ruby 2.2.0 uri generic.rb : 1100 : in rescue in merge : bad URI is not URI : search Jurassic World URI : : InvalidURIError .. . .. . Seems like I m using the wrong method OR this is not possible .. . Answer : You re use of get connection seems like the incorrect method for doing a general search of public page data . get connection has more to do with FB friends network . For a more detailed understanding of what API calls Koala will make have a look at the code which has good comments describing how each method works . For general API graph calls you can simply use the graph call method . https : github.com arsduo koala blob master lib koala api graph api.rb .. . .. . You should be able to use the graph call method and pass in whatever api call you d like to make as single parameter in a string . see similar question and answer here http : stackoverflow.com questions 27679956 facebook-graph-api-and-koala-how-to-find-places-in-a-city 36696332", "Question : Facebook API supports choosing nested object s selected fields in the response in following manner : .. . .. . Reference : https : developers.facebook.com docs graph-api using-graph-api reading - Section : Making Nested Requests .. . .. . When using Koala Ruby Gem to send request to Facebook API what is the syntax for specifying nested fields On this wiki page https : github.com arsduo koala wiki Graph-API getting-public-data following example is given : .. . .. . So to add the fields supported by a Facebook API end-point we pass in a hash containing fields as the key and an array of supported fields name like message id from . If any of the field represents a object which has its own properties like in case of a Page s Rating endpoint which returns a list of OpenGraphRating https : developers.facebook.com docs graph-api reference open-graph-rating nodes and an OpenGraphRating object has following property open graph story which is an object then how do we specify nested properties when using Koala s fields syntax When using the endpoint directly it goes like : .. . Answer : I also got stuck at the same thing . I found out that the koala takes the fields as an array of strings and then make query-string out of it.So for nested properties we can directly write as", "Question : I m trying to using Koala gem to search for facebook-page like this .. . .. . but I got this Users luizeduardo .rbenv versions 2.2.3 lib ruby 2.2.0 uri generic.rb : 1100 : in rescue in merge : bad URI is not URI : search Jurassic World URI : : InvalidURIError .. . .. . Seems like I m using the wrong method OR this is not possible .. . Answer : get connection throws the same error for me as well maybe because v2.6 . anyway i found that solution works :", "Question : I m trying to using Koala gem to search for facebook-page like this .. . .. . but I got this Users luizeduardo .rbenv versions 2.2.3 lib ruby 2.2.0 uri generic.rb : 1100 : in rescue in merge : bad URI is not URI : search Jurassic World URI : : InvalidURIError .. . .. . Seems like I m using the wrong method OR this is not possible .. . Answer : Have a look at .. . .. . https : github.com arsduo koala wiki Graph-API getting-private-data .. . .. . You can also search for users pages events groups for the keyword of your choice : .. . .. . In your case this would mean .. . .. . IMHO.. . .. . .. . See .. . .. . https : developers.facebook.com docs graph-api using-graph-api v2.4 search Comment : worked with graph.search movie name type : page actually but thanks anyway", "Question : null .. . Answer : I m using koala version 2.3.0 + omniauth-facebook 3.0.0 .. . .. . I m trying to do this : .. . .. . user facebook api Koala : : Facebook : : API.new user facebook token user facebook api.get object me .. . .. . When I try this in the console it returns my profile correctly . But on the server it returns this exception .. . .. . NoMethodError Exception : undefined method synchronize for nil : NilClass .. . .. . .. . .. . Does anyone know what could be wrong .. . .. . Full Trace of Server bellow .. . .. . Already thanks .. . .. . .. . .. . Full Trace of Server .. . .. . home nonato .rvm rubies ruby-2.0.0-p643 lib ruby 2.0.0 singleton.rb : 139 : in instance multi json 1.11.2 lib multi json adapter.rb : 21 : in load multi json 1.11.2 lib multi json.rb : 119 : in load koala 2.3.0 lib koala api.rb : 89 : in api koala 2.3.0 lib koala api graph api.rb : 527 : in graph call koala 2.3.0 lib koala api graph api.rb : 116 : in get connection app controllers facebook integrations controller.rb : 86 : in load facebook pages Comment : What does the statement Mutex.ancestors return on both your development and production environments Comment : Hello thanks for your attention Mutext.ancestors return this on production and development : Mutex Object PP : : ObjectMixin Socket : : Constants ActiveSupport : : Dependencies : : Loadable JSON : : Ext : : Generator : : GeneratorMethods : : Object Kernel BasicObject Comment : this problem seems to be intermittent . Sometimes gives this error at other times works as it should work .", "Question : null .. . Answer : I m using the Koala gem to get metrics likes comments and shares on Facebook posts . I literally have not touched the Koala code in months yet is suddenly stopped working . I m able to get likes and comments but not shares . I checked the docs for the gem as well as the issues on GitHub and didn t see anything related to my issue . Not sure if it s my code or the gem or a change to Facebook s API . I have the following method which is called by another method which is responsible for updating all metrics on the post . Here are some sample values for the method arguments : .. . .. . When I run the method above with these inputs it returns this error : .. . .. . I ve also tried the following combinations unsuccessfully : .. . .. . Referencing the Graph API docs hasn t given me any new insights into the problem . As I said before I haven t touched the above code in months yet it only recently stopped working . I did recently upgrade my Rails app from 4.06 to 4.2.5.1 . I also upgraded from Ruby 2.0.0 to 2.3.0 . I did not upgrade the Koala gem though . I was already running 2.2.0 latest . Comment : Unsupported GET request means that either the object you are trying to read doesn t exist or you do not have the right to see it with the access token you are using and the permissions it includes . Comment : My access token is valid and has the correct permissions and I can confirm that the object does exist by visiting the post url which includes the post id . Comment : Which permissions are those and who owns the post Comment : I own the post . It s public . The permissions are public profile manage pages publish pages and read insights .", "Question : null .. . Answer : i have an app on which users post their shows . I want to add rsvp events so that users can post their activity on facebook whenever they click on going button . I have setup everything everything seems ok but when i try to post the activity on facebook using Koala i get the following error .. . .. . .. . .. . i am using koala-gem and i am doing like this .. . .. . Any Solution", "Question : I m trying to get user s info via Gem Koala Facebook API with below code .. . .. . @graph Koala : : Facebook : : API.new auth hash.credentials.token profile @graph.get object me user.update url : auth hash.extra.raw info.id email : auth hash.extra.raw info.email friends : @graph.get connections me friends birthday : @graph.get object me birthday .. . .. . friends : @graph.get connections me friends works perfectly fine I will get a list of friends . However birthday : @graph.get object me birthday will give me type : OAuthException code : 2500 message : Unknown path components : birthday HTTP 400 .. . .. . Things that returns arrays such as likes photos works fine . But strings such as last name name first name will give me the same error . What can I do to fix this Is there something else I can enter instead of just birthday .. . Answer : birthday is not an endpoint like friends it s just a field in the user table . Same for name first name and last name : .. . .. . I have no clue about Ruby and Koala but i assume you can add the fields parameter as object - this is what it looks like in the docs : .. . .. . Source : https : github.com arsduo koala Comment : Do you mean try like this - friends : @graph.get connections me fields birthday For some reason it is returning me with id birthday first name last name etc etc Comment : If I remove the from me it will give me type : OAuthException code : 2500 message : Unknown path components : fields birthday HTTP 400 Comment : well then use the solution that works and not the one that does not work Comment : What I meant was if I were to do just birthday @graph.get connections me fields birthday it gives me birthday PLUS id first name etc . I changed it to @graph.get connections me fields birthday and it returns birthday PLUS the user ID . lol Comment : ok that is weird . in general you always need to define every field you want to get returned by default you only get id and name .", "Question : I m working on rails 4 with the Koala gem to retrieve users pictures from Graph API . I can receive the gem to receive the pictures : .. . .. . but I would like to save the url the Koala is using I preffer the user will call the url instead of me . I assumes that the gem calls : https : graph.facebook.com facebook id picture .. . .. . but I don t want it to be hard-coded . Is there a way extracting the url from the gem thanks Comment : Hi and welcome to stack-overflow What have you tried to do to find this out yourself so we don t duplicate any efforts you have gone to.. . and to show us that you have actually put in an effort yourself before asking us to do it for you : .. . Answer : Change this .. . .. . to this .. . .. . And then the pics in your views without saving them to the db", "Question : I am running into an issue gathering the friends list from users using my app through the Koala Gem . This also seems to be an issue that has popped up just recently . So I m not sure if there have been some changes to the gem or the facebook API I am unaware of . I used to use the following line of code to store my users friends list into an array : .. . .. . However instead of listing all of the friends in an array as it once did this now returns the following error : .. . .. . type : OAuthException code : 1 message : An unknown error has occurred . HTTP 500 .. . .. . In my scope I have listed : basic info and user friends . Any suggestions on this bug .. . Answer : If your app is v2.0 then me friends only returns the friends which also use the app . It shouldn t produce a 500 in Koala though . Check for the most recent Koala version . Comment : I added the most recent Koala version and checked the documentation but though me friends is what I should use . Do you know of a different piece of syntax", "Question : Hi I am wondering how to get user posts insights from Facebook API Koala Gem . I only found solutions that works for facebook-page posts but not user posts . I used the code below for user posts but it just returns empty array . UPDATE .. . .. . The code above works fine but when I try to get post insights it returns empty array . Comment : Do you want to show us a bit of the code you ve tried Comment : I have just added the code that works . Thanks . Comment : I don t know anything about RoR or the facebook API sorry . But having a clear question will help you get the attention of others who do . Good luck : Comment : Thanks for the help Anubian . Will see what I can do to rephrase . .. . Answer : If your using omniauth-facebook gem you just have to make sure you have the right permissions in your scope and you can use the original query . config initializers omniauth.rb .. . .. . Also you can get post insights for a page via koala . This worked for me . https : github.com arsduo koala wiki Acting-as-a-Page Comment : Thanks for the tip I did not put read insights in scope . Will do so and see if I can get the post insights .", "Question : Hi I am using Koala gem https : github.com arsduo koala and graph API for getting the Facebook information . Here is sample implementation .. . .. . and when I tried this I am getting following result .. . .. . But didn t get any feed or post . I referred following links .. . .. . https : github.com arsduo koala wiki Graph-API getting-public-data .. . .. . but getting the same issue . Also checked the permissions on the facebook but getting the same issue . So how can I get the feeds from the facebook or is there anything that I am missing . .. . Answer : Usually you have to get permissions from the user before reading his information . According to documentation https : developers.facebook.com docs graph-api reference v2.5 user feed you need to obtain user posts permission", "Question : I am using graph api and koala-gem to retrieve the pages of user and omniauth : facebook gem to retrieve token of user and store it in session : token .. . .. . If I access page using get object page name it shows all the data related to page but when I try to fetch pages using get connections it was returning null 0 . .. . Answer : I am using Facebook api version 2.4 and this work for me @current graph.get object id accounts where id indicate user facebook graph id . You can test it on Graph API Explorer https : developers.facebook.com tools-and-support", "Question : null .. . Answer : I have a problem with posting a custom OpenGraph story to the Facebook Timeline . I am trying to post from an Rails Application via Koala-Gem : .. . .. . My metadata from the object look like : .. . .. . Even if I post the story through the Graph API Explorer the post only appears in the activity log but not in the Facebook Timeline . I have set the Explicitly Shared option to true and have requested the publish actions permission from the user . Do i have to wait for the review of the app or is there a way to post it while developing", "Question : How do I use the koala-gem to get information from an app page For example if I want to get information about candy crush saga s liked pages I type @graph.get object candycrushsaga+ likes . How can I get other features such as comments likes and shares Is this possible using koala .. . Answer : you can use feed node using get connections i.e . More info https : developers.facebook.com docs graph-api reference v2.3 page feed and https : developers.facebook.com docs graph-api reference v2.3 post fields .", "Question : I m trying to figure out how to subscribe to realtime updates to a page I have an access token for but not my app s page . I m using the Koala gem and everything seems fine but I can t seem to figure out how to specify which page I want to subscribe to : .. . .. . the above is the code Koala says to implement but it doesn t say anywhere about how to choose which page we are subscribing to or where to insert the page access token . Even when looking at the facebook example https : developers.facebook.com ads blog post 2014 12 11 real-time-updates-for-page-conversions it doesn t have anywhere to enter the page access token . Where do I specify which facebook-page I want so subscribe to EDIT : When you subscribe to a page conversations which page are you subscribing to All of them associated with a app access token How do I know which pages are associated with the app access token .. . Answer : In the example you linked there IS some code to specify the Page Access Token : .. . .. . https : developers.facebook.com ads blog post 2014 12 11 real-time-updates-for-page-conversions .. . .. . Look at the bottom PHP script example : .. . .. . For setting Page Access Tokens have a look at .. . .. . https : github.com arsduo koala wiki Acting-as-a-Page Comment : yea but how do I pass the page access token to the @updates.subscribe as shown in the koala-gem like so : @updates.subscribe user first name last name YOUR CALLBACK URL YOUR VERIFY TOKEN Comment : nothing in koala realtime updates asks for a token...i m so confused Comment : what I m trying to do is subscribe to another page s conversations not my own app s page and I do have that page s access token Comment : Do you know if you have read page mailboxes permissions for that page Comment : You can only subscribe to a Page s conversations if the Page respectively it s owner added your app via page-id subscribed apps developers.facebook.com docs graph-api reference v2.2 page https : developers.facebook.com docs graph-api reference v2.2 page subscribed apps publish . Concerning permissions yes you have to have read page mailboxes if you want to access the conversations developers.facebook.com docs graph-api reference v2.2 page https : developers.facebook.com docs graph-api reference v2.2 page conversations", "Question : null .. . Answer : What are the advantages or disadvantages of fb-graph versus koala when trying to interact with the facebook s graph API v2.0 . My app is rails 3 and I use omniauth to authenticate a user with facebook but I m looking for a solution to post to a user s wall and interact with facebook s API v2.0 . I don t know which gem I should integrate right now . Can someone please explain the pros and cons of each solution Thank you very much" ] }
[ "yes-answer-long", "yes-answer-short" ]
connectivity
UNK_RELATION