uid
stringlengths
6
55
question
stringlengths
34
465
context_short
sequence
context_long
sequence
tags
sequence
answer
stringlengths
1
25
relation
stringclasses
1 value
data-extraction@structured-data@115
data-extraction -- data-extraction is the act or process of retrieving data out of usually unstructured or poorly @placeholder sources for further data-processing or data-storage data-migration .
{ "confidence": [ 56.36466598510742, 54.47660827636719, 47.16094207763672, 44.60910415649414, 44.54331588745117, 43.10789489746094, 42.02754211425781, 42.026878356933594, 40.77499771118164, 40.52566909790039, 40.52566909790039, 40.50123977661133, 40.31867980957031, 39.438255310058594, 39.27378845214844, 39.27378845214844, 39.27378845214844, 39.27378845214844, 39.15205383300781, 38.224979400634766, 38.224979400634766, 38.224979400634766, 38.224979400634766, 38.18571090698242, 38.18571090698242, 38.168853759765625, 37.73344421386719, 37.65084457397461, 37.65084457397461, 37.51279830932617, 37.160614013671875, 36.972434997558594, 36.851806640625, 36.82923889160156, 36.79889678955078, 36.68450164794922, 36.68450164794922, 36.20262908935547, 35.615299224853516, 35.59925842285156, 35.59925842285156, 35.59925842285156, 35.47122573852539, 35.47122573852539, 35.47122573852539, 35.47122573852539, 35.47122573852539, 35.47122573852539, 35.47122573852539, 35.47122573852539, 35.47122573852539, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 35.27255630493164, 34.92351150512695, 34.92351150512695, 34.92351150512695, 34.9150505065918, 34.09804916381836, 34.09804916381836, 34.02001190185547, 34.02001190185547, 34.02001190185547, 34.02001190185547, 34.02001190185547, 34.02001190185547, 34.02001190185547, 33.71083450317383, 33.71083450317383, 33.710235595703125, 33.710235595703125, 33.710235595703125, 33.710235595703125, 33.61943817138672, 33.40011215209961, 33.40011215209961, 33.40011215209961, 33.38788986206055, 33.38788986206055, 33.32524871826172, 33.32524871826172, 32.624996185302734, 32.518802642822266, 32.518802642822266, 32.518802642822266, 32.518802642822266, 32.518802642822266, 32.518802642822266, 32.518802642822266, 32.518802642822266 ], "content": [ "https : www.w3.org TR data-extraction .. . .. . Is that completely obsolete", "How could I get this data-extraction to work on that page", "Anyone have some idea regarding above mentioned div class data-extraction", "I wanted to extract the data and create a data frame .", "I am using this VBA code for data-extraction from Amazon : .. . .. . This code is working fine for specific data-extraction but I am facing extraction issues while extracting data from following div class on this Amazon page https : www.amazon.co.uk gp aag main ie UTF8 asin isAmazonFulfilled isCBA marketplaceID A1F83G8C2ARO7P orderID protocol current seller A23YESN4HOKWSK sshmPath .", "Data that is newly extracted replaces the old data for the timespan .", "As there is no data in this class due to wrapper .", "The example data behaves similarly to my original working data .", "Update .. . .. . If this is not a single column .. . .. . Or .. . .. . data", "You tagged MP4 video data and M4A audio data .", "Is it possible to get data from a website and then store it in some sort of data structure", "Yes you are right that the process that I used to export data is the issue .", "I removed the tag data-mining http : stackoverflow.com questions tagged data-mining as I don t see any data-mining here .", "I tried to extract the date corresponding to each data file and create a data frame for all the three files .", "Data could look like this :", "But rest of data not in db file .", "The data is in JSON format .", "Always entering in silly data .", "I downloaded data from the internet .", "The data you expect to retrieve from that page e.g .", "I was able to download the data and validate it also .", "No I export the data from MySQL into a JSON file .", "It looks like you are going to parse the JSON data .", "This is web-scraping information-retrieval data joins whatever but not the kind of large-scale statistic-like analysis that data-mining is .", "This has the advantage that NaNs won t be missread as 0 data values and still the reshape would work for any data-set .", "Can anyone explain me what are the key points of doing this data-extraction so I may have an idea what I missed", "The downloaded data is in individual zip files per company and when you unzip it following files are present : .. . .. . But now I am having difficulty in processing that data to extract some useful information .", "So this is about the Weather Underground data .", "I plotted some data in matlab .", "How much data", "The frequency would be about once every hour .. . Collate this data in a spreadsheet .", "Please note that the data is only there to provide an example .", "Possible duplicate of Extracting accelerometer data from Microsoft Band http : stackoverflow.com questions 36166241 extracting-accelerometer-data-from-microsoft-band", "I am working on processing SEC XBRL data and I am following this method https : github.com altova sec-xbrl .", "You can find the data in the following filtered data set link : http : www.esrl.noaa.gov gmd dv data index.php category Ozone type Balloon http : www.esrl.noaa.gov gmd dv data index.php category Ozone type Balloon .", "Do you have a downstream data mart or are you pulling data from an online system", "The sample-data is in rows 2 to 6 with the formulas being below the sample-data in G10 : G14 .", "I m working on a mashup that deals with airports and uses various online data sources including Travel Stack Exchange .", "Then the error is clearly in the tool code script process you use to export data from MySQL into a JSON file .", "Every word has a page i can extract data from page but data is spread trough urls dct a 1 ..dct b 2 .", "Say Suva Fiji SUV : .. . .. . I have written the following code to create a data frame that has Launch date as part of the data frame for each file .", "In case passing data between activities you should keep in mind that you always should pass as little data as you can .", "How many zipcodes do you need data for", "I want to create a data frame from a files .", "Does this library have function that decodes the data", "Bringing your string data into a list .. . .. . 3 .", "This is a good start to learn about the data time manipulations", "No need to merge or diff the data it is just replaced .", "I have an SQL data connection in Excel .", "It is correct there are lots of libraries for parsing html data .", "Use ASP to fill the table with data from the database .", "The exact HTML of a small sample page with the data you are trying to extract 2 .", "I have a data file .88 extension but don t know how to open it .", "Here are three sample-data files text-files from my folder .", "The final data frame will be will have 9 rows and 5 columns .", "I am really having trouble with my actual data .", "With the above edit you are able to get the data frame of one files .", "I export the data from MySQL using the highlighted button : .. .", "If I use your query I might lose some of the required data .", "I have attached an image to show how I export the data .", "My goal is to extract data from a website that has several hundred pages .", "but when i change the loop to about month 25 it retrieves incomplete data .", "as for description i am trying to extract data from a baseball website .", "We can do this by leaving the 3rd dimension blank .. . .. . data", "The data is statistical health data here are links to some samples http : www.cbssyr.org yearbook 2011 chapter12-AR.htm .", "Im new to the forum and i want to read data from a site in .aspx and send the data to a database in SQL .", "It s more of data-analysis work where we have data and we want include social media features .", "I would ideally want the data-extraction to provide an output in this format : .. . .. . columns Individual ID clustering group label 1-3 with all the results below for my 310 individuals .. . .. . Any help or advice would be fantastic", "I want to create a data frame with date taken from the Launch date line of each file on one column and data on other columns as well .", "The data provider would have a set of URL parameters which you can call and returns the stock price data in xml or JSON format", "I have a dataset that includes all data in 1 column .", "In other words it will not pad with zeros or truncate your data if the sizes do not match .", "You could do it with if mod numel data n 0.. . .", "Does it have to do anything with the amount of data fetched by the API", "This is actually quite simple since there is only one type of data .", "How can I get the values only from the data .", "The data being read in is from a csv of the form described above .", "It is still bugging me how to include all the 48 files in the folder and create a data frame as one data set which you did in your first answer .", "Due to the nature of the logs we re getting its not possible to define exactly how many forward slashes are going to be available and I need to select a specific piece of data as there are multiple occurances of similar formatted data .", "The data we will get from this is the non-decoded right", "All of the data I store will be posted publicly of course .", "Obviously the important thing is that the clients data should be migrated .", "You can t randomly download data from Facebook .", "Data further out can be updated less frequently to the point where the last 40 weeks+ could even just be extracted once every two weeks .", "All data-migration to 1.5 1.6 CSV import export Module .. . .. . This module can help you .", "It help you to save your time from routine work of manual data-migration .", "http : addons.prestashop.com en export-modules 8934-all-data-migration-to-15-16-csv-import-export.html", "Additionally the new data frame should contain a row for each row in the input data frame such that a column will have the value 1 if the column s name was present in that row in the input data frame or 0 if the column s name was not present in that input row .", "Using VBA I need to extract data from webpage http : emops.tse.com.tw t21 sii t21sc03 2011 9 e.htm .. . .. . I am able to fetch all the data using following code : .. . .. . But the problem is I don t want data from whole page .", "Similarly you can replace num rows with and have MATLAB figure out the number of rows needed to fit the data into num cols columns .", "I m trying out your example but the output using View is very different from the desired data frame", "But if you are able to select the ingredients block as a whole you can easily post-process the data you receive to get the required output .", "Now I don t quite know how to extract the data from the table .", "The data looks like this : .. . .. . I have many files like this .", "I was wondering about reshaping it in to a data frame with only 27 variables .", "I found some of needed data from db file .", "Try Paradox file repair see link below with a copy of your data .", "As was stated the DB and MB files were the only files that contained data .", "PX and the XG YG pairs were simply indexes with no new data .", "def extract ipv4 like self : .. . Extract IP-like strings from input data ." ] }
{ "confidence": [ 56.44970703125, 50.73633575439453, 42.21159362792969, 40.98591232299805, 40.555728912353516, 36.30794143676758, 36.24680709838867, 35.180233001708984, 34.308570861816406, 33.77983093261719, 32.00761032104492, 31.520462036132812, 31.495786666870117, 30.949260711669922, 30.857666015625, 30.406818389892578, 30.04872703552246, 29.970947265625, 29.939640045166016, 29.801578521728516 ], "content": [ "Question : null .. . Answer : I am using this VBA code for data-extraction from Amazon : .. . .. . This code is working fine for specific data-extraction but I am facing extraction issues while extracting data from following div class on this Amazon page https : www.amazon.co.uk gp aag main ie UTF8 asin isAmazonFulfilled isCBA marketplaceID A1F83G8C2ARO7P orderID protocol current seller A23YESN4HOKWSK sshmPath . As there is no data in this class due to wrapper . How could I get this data-extraction to work on that page Comment : Anyone have some idea regarding above mentioned div class data-extraction Comment : Please edit your question add details . What are the issues you are facing What is an expected result and actual Which line the error is on What is the wrapper", "Question : null .. . Answer : I found a standard from w3 but no real world application . https : www.w3.org TR data-extraction .. . .. . Is that completely obsolete", "Question : null .. . Answer : goodnight all I have a little problem here yesterday I tried to extract the data in the form of text paragraphs yes the macros is working but when I opened the results of extraction in csv file the text is seen a different format different from the on the website you can look at pictures that I attach can someone teach me what is wrong with the script thanks : .. . .. . this is the snapshop of the text while i trying to extract them http : i.stack.imgur.com IsA1y.png .. . .. . this is my script .. . .. . thanks for your attention and sorry for my english :", "Question : Background : .. . .. . I have a PostgreSQL v8.3 database that is heavily optimized for OLTP . I need to extract data from it on a semi real-time basis some-one is bound to ask what semi real-time means and the answer is as frequently as I reasonably can but I will be pragmatic as a benchmark lets say we are hoping for every 15min and feed it into a data-warehouse . How much data At peak times we are talking approx 80-100k rows per min hitting the OLTP side off-peak this will drop significantly to 15-20k . The most frequently updated rows are 64 bytes each but there are various tables etc so the data is quite diverse and can range up to 4000 bytes per row . The OLTP is active 24x5.5 . Best Solution .. . .. . From what I can piece together the most practical solution is as follows : .. . .. . Create a TRIGGER to write all DML activity to a rotating CSV log file .. . Perform whatever transformations are required .. . Use the native DW data pump tool to efficiently pump the transformed CSV into the DW .. . .. . Why this approach .. . .. . TRIGGERS allow selective tables to be targeted rather than being system wide + output is configurable i.e . into a CSV and are relatively easy to write and deploy . SLONY uses similar approach and overhead is acceptable .. . CSV easy and fast to transform .. . Easy to pump CSV into the DW .. . .. . Alternatives considered ... . .. . .. . Using native logging http : www.postgresql.org docs 8.3 static runtime-config-logging.html . Problem with this is it looked very verbose relative to what I needed and was a little trickier to parse and transform . However it could be faster as I presume there is less overhead compared to a TRIGGER . Certainly it would make the admin easier as it is system wide but again I don t need some of the tables some are used for persistent-storage of JMS messages which I do not want to log .. . Querying the data directly via an ETL tool such as Talend and pumping it into the DW .. . problem is the OLTP schema would need tweaked to support this and that has-many negative side-effects .. . Using a tweaked hacked SLONY - SLONY does a good job of logging and migrating changes to a slave so the conceptual framework is there but the proposed solution just seems easier and cleaner .. . Using the WAL .. . .. . Has anyone done this before Want to share your thoughts .. . Answer : Assuming that your tables of interest have or can be augmented with a unique indexed sequential key then you will get much much better value out of simply issuing SELECT .. . FROM table .. . WHERE key : last max key with output to a file where last max key is the last key-value from the last extraction 0 if first extraction . This incremental decoupled approach avoids introducing trigger latency in the insertion datapath be it custom triggers or modified Slony and depending on your setup could scale better with number of CPUs etc . However if you also have to track UPDATE s and the sequential key was added by you then your UPDATE statements should SET the key column to NULL so it gets a new value and gets picked by the next extraction . You would not be able to track DELETE s without a trigger . Is this what you had in mind when you mentioned Talend I would not use the logging facility unless you cannot implement the solution above logging most likely involves locking overhead to ensure log lines are written sequentially and do not overlap overwrite each other when multiple backends write to the log check the Postgres source . The locking overhead may not be catastrophic but you can do without it if you can use the incremental SELECT alternative . Moreover statement logging would drown out any useful WARNING or ERROR messages and the parsing itself will not be instantaneous . Unless you are willing to parse WALs including transaction state tracking and being ready to rewrite the code everytime you upgrade Postgres I would not necessarily use the WALs either -- that is unless you have the extra hardware available in which case you could ship WALs to another machine for extraction on the second machine you can use triggers shamelessly -- or even statement logging -- since whatever happens there does not affect INSERT UPDATE DELETE performance on the primary machine . Note that performance-wise on the primary machine unless you can write the logs to a SAN you d get a comparable performance hit in terms of thrashing filesystem cache mostly from shipping WALs to a different machine as from running the incremental SELECT . Comment : The Talend option was going to adopt the approach you suggested .. . maybe I should revisit . But you highlighted the key issue tracking the INSERTs and UPDATEs and DELETEs . So no matter what I do there is some work to be done to get it to work cleanly and efficiently .. . surprised this is not a very common issue with lots of examples on web . Thanks for your well thought through response . Comment : A potential issue with the primary-key-threshold idea is that postgres sequences are non-transactional . That is a transaction that inserted with a lower PK may commit after a transaction that inserted with a higher PK . Your ETL strategy could therefore miss inserts assuming a read committed isolation-level . This would rarely be an issue unless you have huge insert volume or long transactions but it is something to consider if you cannot tolerate data loss during ETL .", "Question : I know ICR is basically used for handwritten hand printed data recognition but can we leverage ICR to extract distorted bad quality machine printed text by any chance if not what is best way to solve the following problem .. . .. . I have a unstructured document which may run into 2 or more pages with in the document there are few date field which will be handwritten.now I want to convert this to text file . I have tried some fullpage ocr omnipage and abbyy etc tools which have ICR modules to convert into text file . they are good at full page OCR but when it encounter handwritten date it puts junk character instead of using ICR module there . I don t want go with form processing tools like parascript and A2ia which are position based and they work only with structured document . or can we use ICR to convert machine printed text and handwritten anyway it will work for hand return date in this case .. . .. . here my aim is to get the text file output from unstructured document with few hand written text like dates numbers .. . Answer : I have tried some fullpage ocr omnipage and abbyy etc tools which have ICR modules .. . .. . That is incorrect which explains the poor result . If you tried retail versions of OmniPage and ABBYY FineReader these software packages are OCR only without ICR support . I don t want go with form processing tools .. . .. . You may have to in some way but there are a few variations of the approach . This will have to be a marriage of two technologies either out-of-box or self-created but it will take more effort than just install and run it . Today it is assumed that there is no unstructured text ICR software that can deliver high quality result . Full-page OCR or unstructured text OCR machine text produces high quality result on machine text and garbage on hand-writing . You are right that ICR implies zonal recognition which allows to provide data types and backend dictionaries for improved recognition of hand-writing . For the simplest and fastest approach which may may also be most economical and least labor intensive I would use an unstructured form-processing package such as ABBYY FlexiCapture http : www.wisetrend.com abbyy flexicapture.shtml . It requires some non-programming setup to locate zones . Zones may change position and this software still finds them and then uses appropriate algorithm OCR ICR to read zones content . Supports OCR ICR OMR checkmarks BCR barcode . Also has built-in full page OCR . I use this software in-house resell it and have over 14 years of experience fine-tuning it . For a potentially more economical way but one that may require manual marriage of at least two technologies two purchases instead of one plus labor - may not be most economical at end of day I would use some kind of OCR SDK for machine text and some kind of ICR-capable SDK for hand-written zones . Depending on consistency in location of those zones you may be able just to supply coordinates . If they shift then need to do deeper analysis of zones location to pass them to ICR . ICR-recognized text will need to be returned to be inserted into appropriate places among OCRed text . In my opinion with a number of tools that can do that out of box now I would use something out of box instead of writing it myself because there are several major challenges that need to be solved : zone identification two technologies integration workflow . We have done such integration some years ago when current tools were not available .", "Question : null .. . Answer : I am working on processing SEC XBRL data and I am following this method https : github.com altova sec-xbrl . I was able to download the data and validate it also . The downloaded data is in individual zip files per company and when you unzip it following files are present : .. . .. . But now I am having difficulty in processing that data to extract some useful information . When I tried to execute the extractRatio.py script like it has been mentioned in the page I get error as : .. . .. . The line in which this error comes is this in the extractRatio.py : .. . .. . My major issue is how to resolve the above error Also is there any good source which shows what informations financial parameters like total cash available total revenue etc . can be extracted from these SEC fillings and how to do that", "Question : null .. . Answer : I have produced a dendrogram in R through hierarchical-clustering analysis . I have 310 individuals that have been classified into 1 of 3 groups my cut off k looks to be 3 based on 4 criteria . I have plotted the dendrogram with the labels I want . But I am hoping to extract the results into a table which will be easier for me to use for further statistical work . I have manually gone through the small text on my dendrogram but have found an error in my work so I would like R to create the table for me to verify my work . I have tried a few options from other websites and from one entry on stackflow but have not been successful . I would ideally want the data-extraction to provide an output in this format : .. . .. . columns Individual ID clustering group label 1-3 with all the results below for my 310 individuals .. . .. . Any help or advice would be fantastic Thanks so much Comment : Can you share some code of what you have tried Comment : I was using this link : stackoverflow.com questions 10088117 http : stackoverflow.com questions 10088117 exporting-dendrogram-as-table-in-r Comment : But i get an error after the 2nd line of code : Comment : Sorry I keep pressing enter . leaf.order - matrix data NA ncol 2 nrow nrow residency2 + dimnames list c c row.num row.name leaf.order 2 - hc.complete2 labels hc.complete2 order Error in leaf.order 2 - hc.complete2 labels hc.complete2 order : number of items to replace is not a multiple of replacement length Comment : see here http : stackoverflow.com questions 12826552 exporting-hclust-cluster-membership", "Question : I m using scrapely to extract data from some HTML but I m having difficulties extracting a list of items . The scrapely github project https : github.com scrapy scrapely describes only a simple example : .. . .. . This is nice if for example you are trying to extract data as described : .. . .. . Usage API .. . .. . Scrapely has a powerful API including a template format that can be edited externally that you can use to build very capable scrapers . What follows that section is a quick example of the simplest possible usage that you can run in a Python shell . However I m not sure how to extract data if you found something like .. . .. . I know I can t extract this by using xpath or css selector but I m more interested in using parsers that can extract data for similar pages . Comment : isn t this a bit too broad Can you post the link-to the page for example and explain what is it exactly that you want from there Then someone answering can generalize Comment : As e4c5 says this is too broad to answer right now.. . If you can t link the sample page could you explain why your list isn t suitable for normal xpath css-selectors - e.g . is this list inside a block of preformatted text Comment : I ve tidied up the grammar of your question but you really need to add : 1 . The exact HTML of a small sample page with the data you are trying to extract 2 . The data you expect to retrieve from that page e.g . quantity name of ingredient maybe 3 . What Python code you ve tried so far . As it stands the question can t be answered without a lot of quesswork . See how to ask http : stackoverflow.com help how-to-ask and how to construct a Minimal complete and verifiable example http : stackoverflow.com help mcve for help to ask the question in a way that gets the best help . Good luck .. . Answer : Scrapely can extract lists of items from structures lists e.g . ul or ol see the other answer http : stackoverflow.com a 37654688 754456 . However because it extracts content using HTML document fragments it is not able to extract text-formatted data contained within a single tag with no delimiting tags li li which seems to be what you re trying to do here . But if you are able to select the ingredients block as a whole you can easily post-process the data you receive to get the required output . For example in your example case .split n 3 : -2 would give you the ingredients as the following list : .. . .. . If you want to do this regularly or need to add post-processing to multiple fields you could subclass the Scraper class as follows to add a custom method : .. . .. . This new method scrape page postprocess accepts a dictionary of postprocessors to run across the returned data keyed by field . For example :", "Question : null .. . Answer : I am looking for an algorithm to extract data from one system in to another but on a sliding scale . Here are the details : .. . .. . 1 . Every two weeks 80 weeks of data needs to be extracted . 2 . Extracts take a long time and are resource intensive so we would like to distribute the load of the extract over time . 3 . The first 8-12 weeks are the most important and need be updated more often over the two week window . Data further out can be updated less frequently to the point where the last 40 weeks+ could even just be extracted once every two weeks . 4 . Every two weeks the start date shifts two weeks ahead and so two new weeks are extracted . 5 . Extract procedure takes a start and end date this is already made and should be treated like a black-box . The procedure could be run for multiple date spans in a day if required but contiguous dates are faster than multiple blocks of dates . 6 . Extracts blocks should be no smaller than 2 weeks and probably no greater than 16 weeks . Longer blocks are possible but at 16 weeks are already a significant load to the system . 7 . 4 contiguous weeks of data takes about 1 hour approximately . It takes a long time because the data needs to be generated calculated . 8 . Data that is newly extracted replaces the old data for the timespan . No need to merge or diff the data it is just replaced . 9 . This algorithm needs to be built into a SQL job which will handle the daily process triggered once a day only . My initial thought was to create a sliding schedule pretty much . Rotate the first 4 week block every second day and then the second 4 week block every 3 to 4 days . The rest of the data would be extracted in blocks in smaller chunks over the two week period . What I am going to do will work but I wanted to spend some time seeing if there might be a better way to approach the problem . Mainly looking for an algorithm to do the start end date schedule for the daily extract . Comment : Do you have a downstream data mart or are you pulling data from an online system Comment : @dfb It s all internal . 4 contiguous weeks of data takes about 1 hour approximately . It takes a long time because the data needs to be generated calculated and part of the reason we don t want to put to much load on the system doing work . Comment : @dfb 4 weeks of data is about 1 million rows which isn t that much . It s generating the rows that takes a long time .", "Question : I have a client website that is running on Prestashop v1.4 .. . .. . Because it has been maintained by a previous developer who modified core files and generally made a big mess the upgrade module no longer works properly . Given that the client is handing over the project to me and wants a new theme implemented I am moving straight to Prestashop 1.6 and using the Compass Boostrap 3 default theme as a base . Obviously the important thing is that the clients data should be migrated . So my question is is it possible to make a clean export from Prestashop 1.4 of only the actual sales and website access data skipping anything like module configs etc in order to reimport it all to Prestashop 1.6 This way my client can keep his order data-access data products payments etc and I can build a new theme without having to fight with an old installation or theme that have hardcoded rubbish in it . Comment : Have you compared the db schema differences between the two versions A manual or command-line export import could work for data in some tables if their schema is not so different . Comment : Plus there seem to be some free import export modules XML CSV . prestashop.com forums topic http : www.prestashop.com forums topic 266121-module-from-prestashop-to-prestashop-products-import-products-export-in-xml-or-csv-free Comment : Yup but that one only exports products . I simply need to know how to massage the data back in . There seem to be a lot of differences in the DB formats . There is an export all module but it is very expensive . Comment : What about my first question You can use the free MySQL Workbench to see differences or synchronise schemas on different servers . Comment : Using mysqldiff gives me a lot of differences . .. . Answer : All data-migration to 1.5 1.6 CSV import export Module .. . .. . This module can help you . Export Import all favorite data from prestashop from 1.4 to 1.5 1.6 1.5 to 1.6 .. . .. . This module allows you to export any size all data Categories Products Combinations Customers Addresses Manufacturers Suppliers from PrestaShop 1.4.X to PrestaShop 1.5.X and 1.6.X . Also from 1.5.X to 1.6.X without data lose . Usage of this module doesn t require any special technical skills it is easy to use . It help you to save your time from routine work of manual data-migration . http : addons.prestashop.com en export-modules 8934-all-data-migration-to-15-16-csv-import-export.html", "Question : I found paradox database files with different extension . There are db file mb file dat file px file XG0 file XG1 file XG2 file XG3 file XG4 file YG0 file YG1 file YG2 file YG3 file and YG4 file . I already found way to open db file and px file using gnumeric spreadsheet . I found some of needed data from db file . But rest of data not in db file . So i have to open rest of files . I cant find software that can read those files . Comment : Able to read the content of YGO YG1 YG2 YG3 YG4 and PX file using Direct Paradox table shareware software . But I still find way to read the rest of the file . anyone cn help me thank you .. . Answer : Unfortunately Borland has never documented the Paradox file-format so there s no definitive information available . Anyway : .. . .. . the actual data are in the .db files tables and .mb files memo blob info at least Paradox level 4 .. . .px files contain primary index information . .xg .yg are for secondary index es . Those are auxiliary files which Paradox uses to store the indexes .. . the .dat file is more than likely the program s configuration data try to open it with a text-editor it should contain ASCII text .. . .val files are for formatting constraint handling .. . .sc files are script .qbe queries .. . .. . So your data are in .db .mb files . If something is missing you could have corrupted files . Try Paradox file repair see link below with a copy of your data . Further details : .. . .. . Paradox Specifications http : www.randybeck.com paradoxformat.shtml .. . Paradox file repair http : matthieu.benoit.free.fr 172.htm .. . pxlib http : pxlib.sourceforge.net . Library to read and write Paradox databases .. . How to open the .db paradox file http : stackoverflow.com q 15948333 3235496 .. . BB s Database Desktop http : sourceforge.net projects bbdbd . Replaces and extends Borland Database Desktop which is not free . The goal of this project is to implement the functions of the original Database Desktop and add some useful features . Comment : Thank you manlio . How to install knoda-0.8.3.tar.bz2 Is the knoda run on ubuntu Thank you . Comment : Sorry I don t know knoda . From the project homepage it seems you have to compile the sources . Anyway try with a new question on askubuntu.com Comment : Thank you manlio .", "Question : I export data from MySQL into a JSON file but there is an error due to null value . How do I handle this SQL query : .. . .. . where some of the industry gives null value : .. . enter image description here http : i.stack.imgur.com 3ICeO.png .. . .. . JSON format .. . .. . .. . The error is due to the 3rd object value in the array i.e . NULL enter image description here http : i.stack.imgur.com kgsQG.png .. . .. . I tried : .. . .. . Unfortunately it still gives the same error . Because in the MySQL cell it shows NULL value . Thanks Update : .. . As there will be other variables in each object I would like to change the NULL value in SQL either to or NULL . I export the data from MySQL using the highlighted button : .. . enter image description here http : i.stack.imgur.com cbmDm.png Comment : Do you need NULL values May be select industry from table1 where industry is not null Comment : @2kai hi I need the NULL value I hope to change it either to or NULL . Reason being I will have other variables in each object . If I use your query I might lose some of the required data . I have updated my questions . Thanks Comment : How are you generating that invalid JSON We can t help you fix a process we don t know anything about . A string with the word NULL is completely different from an null value in SQL JSON and most other languages . Comment : Works for now and how will you tell if the value was empty string or NULL in the original database Comment : That last screenshot does not belong to MySQL . MySQL doesn t have buttons or windows it doesn t have any kind of user-interface . .. . Answer : According to the JSON specification http : www.ietf.org rfc rfc4627.txt the correct value is null lowercase : .. . .. . JSON can represent four primitive-types strings numbers booleans and null and two structured types objects and arrays . .. . and : .. . .. . A JSON value MUST be an object array number or string or one of the following three literal names : .. . .. . .. . false null true .. . .. . .. . If you re getting uppercase NULL you re either composing JSON manually or your JSON library has a serious bug . Comment : Hi I did not compose JSON manually the value NULL comes from MySQL cell . I have added a new screenshot . Comment : Do you mean that you have a MySQL column of type JSON https : dev.mysql.com doc refman 5.7 en json.html Comment : No I export the data from MySQL into a JSON file . But in some of the cells they give a null value shown in the screenshot . Hence after export it gives .. . .. . industry : NULL Comment : Then the error is clearly in the tool code script process you use to export data from MySQL into a JSON file . But I have the impression that you don t really want to fix that am I correct Comment : Yes you are right that the process that I used to export data is the issue . I have attached an image to show how I export the data . Not sure how I can fix that when I simply click the button and don t write any code .", "Question : I m working on a mashup that deals with airports and uses various online data sources including Travel Stack Exchange . I thought it would be nice to anagrammatically include some free images for each aiport when possible . I know DBpedia can be used to query Wikipedia infoboxes . I know Wikipedia airline articles include their own kind of infobox http : en.wikipedia.org wiki Template 3aInfobox airport . I know these infoboxes can optionally include up to two airport images which could be exterior photos exterior photos or logos and also a map image is optional . My project is based on IATA airport codes which are 3-letter ASCII codes . While I ve used DBpedia several times it seems to require deep knowledge to achieve any totally new goal so I m at a total loss where to start . I m not sure how to get at the infobox data just for airports keyed on the IATA code . And I m not sure how to extract the image URLs from those infoboxes . Preferably resolved to their original version at largest size on WikiMedia Commons . I m using JavaScript with Jquery but I can work with just a SPARQL query . Comment : I removed the tag data-mining http : stackoverflow.com questions tagged data-mining as I don t see any data-mining here . This is web-scraping information-retrieval data joins whatever but not the kind of large-scale statistic-like analysis that data-mining is . .. . Answer : UPDATED : here is the query for the CDG airport : .. . .. . Yes one could run the following SPARQL http : dbpedia.org sparql query : .. . .. . The picture is http : en.wikipedia.org wiki File : Aeroport de Roissy.JPG You ll have to use the mediawiki-api to retrieve the correct URL for the image itself . http : en.wikipedia.org w api.php Comment : This is looking good Pierre but I have two concerns : 1 . It seems to retrieve a full list of all airports whereas I want to pass in a single IATA code or preferably a short list of codes . 2 . Is this returning the images in the infobox or all images on each page I d prefer just the ones from the infobox since others tend to be pretty random and not representative of the airports . Comment : Also I just tried opening a few of the URLs in my browser Istanbul Seoul Incheon and Guangzhou and all failed with 404 errors . Comment : Aha better But no luck getting the other image s from the infobox For instance the map image at http : upload.wikimedia.org wikipedia commons thumb a a3 Ile-de-France jms.png 220px-Ile-de-France jms.png", "Question : I have a dataset that includes all data in 1 column . However a new sub-dataset occurs every n rows . Using MATLAB I need to grab each of these sub-datasets and place in a separate sequential column . For example this : .. . .. . Column 1 .. . .. . into this : .. . .. . Column 1 Column 2 Column 3 .. . .. . Answer : You can use the reshape http : www.mathworks.com help matlab ref reshape.html command like so : .. . .. . You can also replace num cols in the above with to have MATLAB automatically figure out how many columns are needed to fit the data into num rows rows . Similarly you can replace num rows with and have MATLAB figure out the number of rows needed to fit the data into num cols columns . Note that MATLAB will throw an error if my vector does not contain exactly num rows num cols elements . In other words it will not pad with zeros or truncate your data if the sizes do not match . Comment : @user3743235 OP if you have in your last subdata-set less elements you could should add a if-case or logical indexing to pad your data with NaNs . This has the advantage that NaNs won t be missread as 0 data values and still the reshape would work for any data-set . You could do it with if mod numel data n 0.. . . I wrote it as a comment because its just a little addition to @Engineero s solution . Comment : @TheMinion Excellent point . Comment : Ah brilliant just the tool I was looking for . Thanks for the additional point too .", "Question : Here are three sample-data files text-files from my folder . I tried to extract the date corresponding to each data file and create a data frame for all the three files . Following are the files : .. . .. . File1 : .. . .. . File2 : .. . .. . File3 : .. . .. . Below is the code I wrote for the extracting the date . and for extracting values : .. . .. . I want to join this two codes and make a complete data frame where the date is on the left side of the table corresponding to the 250 value in each file . The final data frame will be will have 9 rows and 5 columns . Here is the desired result : .. . .. . Thank you in advance for the help . Edit : Here is one sample of the file . I have 53 similar files : .. . .. . @alistaire Thank you for the link.Here is the code that I tried to execute . I assigned a file name and gave a path . When I wrote the variable name test.sample in to console I got a matrix : see image for the result http : i.stack.imgur.com ClfVr.png I think I am missing something NB . Here I am using a folder with 44 files . .. . Answer : These cases are mostly a matter of hacking through the mess though some patterns make life easier . Since the files are at least regular you don t need too much here to get something useful : .. . .. . Edit as you see fit . .. . .. . Edit .. . .. . For the new file structure now more independent of line numbers : Comment : Thank you @alistaire . This is a coincise solution . I am really having trouble with my actual data . My folder has 48 files and the file name starts something like xxx456-45-2010453.dat . The date in line 13 and the data values has 18 lines unlike 3 lines in the question which starts at line 44 . There is data set jargon between line 1 and 13 and line 13 and line 44 . I tried scan paste to get the files but I don t know where I am missing something . Comment : How far did you get You can make a list of files with list.files which can take a pattern argument if there are other files in the folder e.g . list.files pattern .dat . As far as parsing changing the indices will do it if they re organized consistently . If not you can pick out the lines you need by subsetting with grep . Comment : I have added one sample file to the above question . Can you please tweak your code with respect to the file updated above . Comment : With the above edit you are able to get the data frame of one files . It is still bugging me how to include all the 48 files in the folder and create a data frame as one data set which you did in your first answer . Can you please include the number of files i.e . 48 in the code . Thanks . Comment : That part hasn t changed adjust the code from the original to match the files you have integrating what I told you in my last comment files - lapply list.files pattern .dat readLines", "Question : I need to scrape the data from this page http : fantasy.premierleague.com web-api elements 2 into a table format . To give you an idea Here is what it looks like : .. . .. . Final Table result http : i.stack.imgur.com JAXWK.jpg .. . .. . I want to see there is a way to bring this data into a table format using VBA script in excel . I can write a VBA code to do this by trimming the information into small pieces and placing it in particular cells . I believe that s not the most efficient way and something tells me there is probably a better method out there that I just don t know off yet . Hence I am reaching out here . I wanted to see if you guys know of a method to do this better than trimming and pasting . Comment : What have you tried can we see the code Comment : @litelite - I dont have a code yet because I am trying to figure out the most efficient method to do this . I am not really looking for a code either just the method that I should look into to do this . Comment : The fasted way is to process everything in memory before pasting it to a sheet . So you want to grab the entire text you got there and place it into a string variable . Then you start building an array and split the string into this two-dimensional array . Finally you place the array on a sheet.. . Happy coding Comment : you may want to take a look at this http : stackoverflow.com questions 36098397 extract-data-from-a-web-page-that-may-not-be-formatted-as-a-table to give you some ideas but this article http : stackoverflow.com questions 8798260 html-parsing-of-cricinfo-scorecards lq 1 is better Comment : @mhyst - Excellent response . Exactly what I was looking for . .. . Answer : The data is in JSON format . You have to parse it and then decide in what way you want to present the data in Excel . Here http : stackoverflow.com questions 6627652 parsing-json-in-excel-vba it is informacion about that :", "Question : null .. . Answer : I was searching for an entire weekend to find my answer and now I started to write a question first in my life . I m not engilsh so don t bother me if somethings wrong in grammar . Thanks . My question is that I want to extract a table of information from a secure webpage with an android application . I want to do it in the background and with the smallest resource consuption like not using a big api for the purpose . To get to that page I have to submit a form and click a button then select a dropdown list item and then it shows . I was trying to see the network usage in firefox and found that the true process is like this : .. . .. . send a get to the main page with https : example-page.com .. . send a post with the username and password and other invisible information to the url https : example-page.com user.php cmd login .. . send a get to the main page again to extract the next url from the Location header because it has a generated parameter like naplo.php q AY8INxgGmiw A .. . send a get to the extracted url .. . extract another genrated url jegy.php q D0QOHi5jqvMjXvmbVvTRLUm 205NKE5YJ3Y .. . send a get to that url .. . send a post to the same url with the selection form filled .. . extract the table I need .. . .. . So I started to write the code I took care of the cookies fro the session and I couldn t log in . I messed up the code so I can t post anything valuable here . Can anyone explain me what are the key points of doing this data-extraction so I may have an idea what I missed For example the things that can identify a browser interaction to mimic for result And if someone could write me a sample code for a similar task to show how this thing works because I have no idea . Thank you for your answer", "Question : I m reading in data from a csv file where each row contains some number of individual strings : .. . .. . e.g . I want to transform this input into a data frame where the columns are the set of unique strings present in the input . In this case the columns would be the set of strings x f t h b g d a s q w e r y u i o . Additionally the new data frame should contain a row for each row in the input data frame such that a column will have the value 1 if the column s name was present in that row in the input data frame or 0 if the column s name was not present in that input row . In this example the desired output would be the following : .. . .. . The code below is what I currently have . However the output df ends up being a data frame with what appear to be the correct columns but 0 rows . I m very inexperienced at R and this was my attempt at putting together something that works . It seems to work as expected up until the call to apply which unexpectedly doesn t add anything to df . After the script finishes it tells me there were many warnings of the following two forms : Comment : Please use dput to show the dataset . It is confusing from your input . Comment : I m just showing that the input is a standard comma-separated csv file which gets converted by read.csv Comment : Okay anyway I updated the post if all of these are single character strings . .. . Answer : We can use mtabulate after split ting the column by .. . .. . .. . .. . Or with base R methods by split ting the column by set the names of the list output as the sequence of rows convert the list to data.frame stack change the values column to factor with levels specified and then get the frequency with table . Update .. . .. . If this is not a single column .. . .. . Or .. . .. . data Comment : @fvgs Here I am assuming that you have a single column that have these strings . Comment : Where are you assuming a single column The data being read in is from a csv of the form described above . Neither the input nor the output are single columns . I m trying out your example but the output using View is very different from the desired data frame Comment : @fvgs Okay if it is not a single column you must be having blanks in other columns right as the number of elements in each row is different and I haven t seen you using fill TRUE in read.csv Comment : I tried to address the blank issue by checking if eventName in the last for-loop . But using fill TRUE seems like a much cleaner solution Comment : Yes indeed thanks for all your help Now I just need to understand exactly what each transformation is doing.. .", "Question : null .. . Answer : So I have a Jawbone Up band and i am trying to analyse the accelerometer data from the band . The CVS that i can download from the website does not give me that . Is there a way to extract the exact accelerometer values that the band is recording Comment : Please see my answer http : stackoverflow.com a 37305316 1541997 posted on your other question . Comment : Possible duplicate of Extracting accelerometer data from Microsoft Band http : stackoverflow.com questions 36166241 extracting-accelerometer-data-from-microsoft-band", "Question : I downloaded data from the internet . I wanted to extract the data and create a data frame . You can find the data in the following filtered data set link : http : www.esrl.noaa.gov gmd dv data index.php category Ozone type Balloon http : www.esrl.noaa.gov gmd dv data index.php category Ozone type Balloon . At the bottom of the site page from the 9 filtered data sets you can choose any station . Say Suva Fiji SUV : .. . .. . I have written the following code to create a data frame that has Launch date as part of the data frame for each file . The files are from FTP server . The pattern of the file doesn t look familiar to me even though I tried it with .txt it didn t work . Can you please tweak the above code or any other code to get a data frame . Thank you in advance . Comment : Your approach looks OK but I don t understand what isn t working . Is it simply that the format for the date isn t exactly what asPOSIXct is expecting . Try lubridate : : dmy Comment : @Richard Telford . Thank you for the hint . I tried with POSITXlt and lubridate but it doesn t seem to work for me . Can you please check from the site It is giving me a hard time . Comment : At least in the file I opened there is more than one space between Launch Date and the : . grep isn t recognising the search string and not would sub . You can use a regular expression to cope with any number of spaces . The code is very concise - not always a good thing .. . Answer : I think the problem is that the search string does not match Launch Date : does not match what is in the files at least the one I checked . This should work .. . .. . Code would probably be easier to debug if you broke the problem down into steps rather than as one sentence Comment : Your expression looks good . How can I get the values only from the data . I mean the table part of the file . I chose grep Sonde Total lines +1 but I got : Error in grep Sonde Total lines +1 : length lines : argument of length 0 . Does this makes sense to you . And what can you say about the file-type I guess it is .txt what shall I put in the pattern of the file Comment : Any suggestion" ] }
[ "yes-answer-long", "yes-answer-short" ]
structured-data
UNK_RELATION
bitarray@bitset@46
bitarray -- a bit array also known as bitmap @placeholder bit string or bit vector is an array data structure that compactly stores bits .
{ "confidence": [ 47.495967864990234, 46.896202087402344, 45.73885726928711, 44.896514892578125, 42.48869323730469, 41.28511047363281, 41.083412170410156, 40.91803741455078, 40.91803741455078, 40.6760368347168, 40.50379943847656, 40.45668029785156, 39.87605285644531, 39.811546325683594, 39.811546325683594, 39.06089401245117, 38.775814056396484, 38.60874938964844, 38.27479553222656, 37.85619354248047, 37.18044662475586, 37.18044662475586, 36.610130310058594, 36.388893127441406, 36.033203125, 36.012847900390625, 35.741943359375, 35.60979080200195, 35.60979080200195, 35.503448486328125, 35.428184509277344, 35.23826599121094, 35.17025375366211, 34.629920959472656, 34.535980224609375, 34.47493362426758, 34.41684341430664, 34.41202163696289, 34.319305419921875, 34.30841827392578, 34.10055923461914, 34.080078125, 34.001861572265625, 33.98612976074219, 33.85031509399414, 33.493865966796875, 33.02436065673828, 32.78255844116211, 32.54947280883789, 32.52741241455078, 32.451881408691406, 32.389007568359375, 32.35905075073242, 32.357666015625, 32.344482421875, 32.283233642578125, 32.0590934753418, 32.0590934753418, 31.968698501586914, 31.740581512451172, 31.506038665771484, 31.211902618408203, 31.211902618408203, 31.211902618408203, 31.203041076660156, 31.12933349609375, 30.97509002685547, 30.579130172729492, 30.45732879638672, 30.451770782470703, 30.451770782470703, 30.431312561035156, 30.30252456665039, 30.20505142211914, 30.20505142211914, 30.169921875, 30.169921875, 30.169921875, 30.10234832763672, 30.090957641601562, 30.090957641601562, 29.957061767578125, 29.957061767578125, 29.880491256713867, 29.811119079589844, 29.668548583984375, 29.668548583984375, 29.65563201904297, 29.637042999267578, 29.416597366333008, 29.196075439453125, 29.006763458251953, 29.006763458251953, 28.973407745361328, 28.951854705810547, 28.95053482055664, 28.95053482055664, 28.921079635620117, 28.921079635620117, 28.915081024169922 ], "content": [ "So Can I create an bit array of 10000 bits in Cuda where each bit represents corresponding array record", "I think the issue is that if there are 57 bits in the bit array the bit number 0 needs to swap with bit number 56 .", "1 bit in memory per 1 bit in the bitarray .", "Maybe this can helps you : Bit Array to String and back to Bit Array http : stackoverflow.com questions 14670645 bit-array-to-string-and-back-to-bit-array or this : Converting byte array to string and back again in C http : stackoverflow.com questions 1422314 converting-byte-array-to-string-and-back-again-in-c-sharp", "For a read-only array I would store one bit per bit .", "What is your container for the bit array", "Normally a boolean variable needs at least one byte storage but in a bit array vector only one bit is needed .", "I have integers 1 .. . n and a n-bit bit array .", "Finding the highest set bit on a bit array of length n is O n .", "The first bit of the bitarray has correct alignment for simd .", "Output is an array of the indices of set bits of the bitarray .", "You could this way store into a bit vector of 16-bit a number which consists of 4 bit one that is 2 bit and one that is 10 bits in size .", "Bit Arrays or Bit Vectors can be though as an array of boolean values .", "So the first user encounters would corresponding to the first bit of the bitarray second user would be the second bit in the bitarray etc .", "Input is a bitarray stored in contiguous memory with 1 bit of the bitarray per 1 bit of memory .", "While vector bool can t seem to make up its mind about whether to act as a bit-array or a generic vector dynamic bitset has the functionality you d typically expect from a bit-array .", "you can use Set method to set special bit in the BitArray .", "produces the desired result but is a bit inelegant.. . See the following : .. . .. . Anyone know why a BitArray can t be used to mask an array", "I am using this to convert a file into a BitArray : .. . .. . How do I replace a pattern of Bit in a BitArray", "A BitArray stores each true false value as a single bit with conceptually 8 of them packed into a single UInt8 .", "Set method have 2 inputs the first one is the index in the bit array .", "Note : if your bit array is not being modified by the GPU code then this isn t a problem .", "To keep a subset of the integers I use the integer itself as the key in the bit array and set the bit to 1 if it is in the subset or 0 if it is not .", "T he first bit in the input array can end up at any position within the unsigned long in the output array", "How are Array Bool and BitArray related", "to express a bit vector of size 20", "Can some one help me to get bit array of 5 bits converted into byte .. . .. . both functions work only when it have bit array in multiple of 8 .", "EDIT : A simpler way is to iterate over the bit array in python .", "Should I store each line s output as a bit array", "you cannot use bit shift operator like that on bit array cause bitarray is not exact replacement of bitset .. . .. . here are some info What is the C equivalent of std : : bitset of C++ http : stackoverflow.com questions 8144349 what-is-the-c-sharp-equivalent-of-stdbitset-of-c .. . .. . BitArray - Shift bits http : stackoverflow.com questions 3684002 bitarray-shift-bits", "Consider 8 tables - one for each 4-bit fields of the 32-bit word - of 16 entries each where each entry is an array or vector of the indices for that 4-bit pattern of the uint32 .", "8 bits packed as an unsigned 8 bit integer .", "The same is true for the other ways of representing 10 000 bits that I tried including using numpy packed bit arrays numpy int arrays and bit array string types from other libraries .", "I have already wrote a program to this bits working only if bit array length is multiples of 8 .", "Try this : .. . .. . Then for any array of unsigned-integer elements no larger than size-t the BITOP macro can access the array as a bit array .", "A BitArray also has methods defined that handle all the required bit-twiddling operations for you .", "The documentation isn t clear admittedly but it does work the way I d expect it to : bitArray 0 represents the least significant value just as it usually is when discussing binary so bit 0 is 0 1 bit 1 is 0 2 bit 2 is 0 4 bit 3 is 0 8 etc .", "However before we can do anything we need to know whether bit 0 of the array is stored in the MSB or LSB of element 0 of the array or if element 0 isn t where bit 0 is we need to understand where bit 0 is stored .", "An N-bit integer value contains the same information as an N-bit array of bools .", "To set an individual bit : .. . .. . To clear a bit : .. . .. . To see if a bit is set : .. . .. . If you have more than 64 bits then you ll need to create an array byte probably and do the division to determine which byte bit you want to modify .", "value is a bool which will translate to 0 and 1 in your bitarray .. . .. . i.e : To set the 10th bit to 1 use", "Or iterate over the bitarray in steps of 1 copying the bits to a boolean array in reverse order .", "an array of bits .", "You can pass to the BitArray constructor either an array of bools an array of bytes or an array of integers .", "I am looking for an efficient in both space and time data type which can hold a 384 bit vector and supports efficient XOR and bit count number of bits set to 1 operations .", "there are 30 False bits in init bit so the main array should be filtered where the bit is 0 and become an array of 70 elements maintaining sequence .", "I am thinking of perhaps making a 24 bit 3 byte vector and ignoring the 4 bits .", "You might assume that bit n is corresponds to array x 1 n but this needs to be specified .", "Lookup in a data structure that at best is in the highest-level cache compared to bit operations in a register .", "The set is stored as an array of uint32 t so each element of the set is an unsigned 32-bit integer in the array .", "If you need an integer as an array of bits it s great if you need to do C-style bit-munging on an integer that s not what it s best at .", "Bit magic .. . .. . Swapping bits around can be a lot of fun .", "The binary-data is compactly stored as a byte array and can be easily created modified and analysed .", "-- anything better than bruteforce bit by bit approach is welcome .", "See : stackoverflow.com questions 3684002 bitarray-shift-bits http : stackoverflow.com questions 3684002 bitarray-shift-bits", "What is the fastest way to determine whether a vector holding boolean values which is typically optimized as a bit array only holds true values", "The built-in array http : docs.python.org library array.html module is sufficient for a bit-array too and more portable across Python impls than NumPy .", "I m wondering if there s a way using the bit array alone without extra variables pointers or manipulating the start end of the array in some scenarios .", "In my situation i can just use that piece of code from this http : stackoverflow.com questions 2548018 convert-byte-array-to-bit-array post : .. . .. . Now in bits i have what i want .", "Properties are used to give different interpretations of the bit data .", "An array that holds each bit as a byte or larger type like an np.ndarray dtype np.bool should be a lot faster than bitarray but page or cache misses could easily cancel out the benefits .", "Example 1 : .. . .. . Example 2 : .. . .. . The set is an array of usigned 32-bit integers uint32 t .", "For example for integers 1 2 3 4 and subset 1 3 the bit array would look like 1 0 1 0 .", "Read 1 byte and covert it to 8-element bool array using bit masks", "I came across this question as I am writing a bit array framework that is intent to manage large amounts of bits similar to Java BitSet .", "if you use an array of int then your BitArray size should be a multiple of 32 .", "I ve posted an answer for an efficient library stackoverflow.com questions 2633400 c-c-efficient-bit-array http : stackoverflow.com questions 2633400 c-c-efficient-bit-array 10442966 10442966 5D 5B1 5D Alf 1 : stackoverflow.com questions 2633400 c-c-efficient-bit-array http : stackoverflow.com questions 2633400 c-c-efficient-bit-array 10442966 10442966", "for each of 8 4-bit fields : grab the field use it as an index into an 8-element array of a 16-element array of variable-length vectors append all items in that vector to your set of indexes being accumulated .", "Is your wep-key 128 bits You ve got a key for 128 bit wep-protocoll which is using 104 bit keys .", "Don t you mean the last bit", "This can result in a lot of bit shifting .", "not necessarily a multiple of 8 or 32 etc so the first bit in the input array can end up at any position within the unsigned long in the output array .. . the algorithm should be platform-independent i.e .", "Also : For my program to generally solve the problem the length of the bit vector is not restricted to 384 : .", "Bit Arrays of Bit Vectors are used as a mapping from position to some bit value .", "In d it s converted as bit 0 ...bit 7 from least to most sugnifficant bit .", "I m designing a bloom-filter and I m wondering what the most performant bit array implementation is in Python .", "Turns out that in the nitty-gritty details the author of BitVector is using an array of 8 bit bytes just like I was pondering .", "Could you give me an example of creating a 3 byte array and setting a bit", "I have a long sequence of bits stored in an array of unsigned long integers like this .. . .. . I am trying to design an algorithm to reverse the order of bits in array .", "and as normal C so you can implement your bit array essentially normally almost see thread synchronisation issues below .", "At least on Fermi there is no point in storing more than one byte per bit for a read-write array -- it just requires more memory transactions .", "Try a bit of debugging .", "But that seems a bit cumbersome .", "Each pattern is the significant portion of a BitArray extracted and cast into a bool array .", "If it is memory bound there can be a tremendous benefit in storing one bit per bit at least for reads .", "Check This question and answers http : stackoverflow.com questions 16471759 is-bitarray-faster-in-c-sharp-for-getting-a-bit-value-than-a-simple-conjuction-w .", "I needed to build bitarray for myself I needed bit shift so I couldn t use your pre-built binaries .", "It seems like there s no way to do this without somehow moving the bits around which leads me to believe the O 1 dream is dead and perhaps the bit array won t work .", "You can however copy it to an array that can be serialized : .. . .. . Going the other way involves deserializing the array and calling the BitArray constructor : .. . .. . If you do this you ll want your BitArray size to be a multiple of the word size i.e .", "regarding the usage the bits array : .. . .. . if you know there are only 1 million numbers - you use an array of 1 million bits .", "For example the literal 0x00000000FFFFFFFF is a 32-bit unsigned int not a 64 bit signed int as you might have assumed because adding lots of zeroes in the beginning of a literal will not make it a 64 bit type .", "Wouldn t the first bit be at the first position in the first long", "I thought it was just inverting each bit .", "You can achieve it without storing this incremental ID in database and you can build your bit-array without retrieving data to client", "Update : .. . .. . this so question does the reverse http : stackoverflow.com questions 23664015 packing-10-bit-values-into-a-byte-stream-with-simd .. . .. . loop through bits in c http : stackoverflow.com questions 33005271 looping-through-bits-c .. . .. . How to define and work with an array of bits in C", "If your max val is not divisible by 32 your bitArray is going to be missing some bits .", "My solution for setting a whole range of bits in a BitArray to true or false :", "If I want a compile-time-sized bit-array on stack what are my alternatives", "As an assignment I have to create a template bit array class and part of it is overloading the index operator .", "What s this concept of Bit-Masking" ] }
{ "confidence": [ 63.641624450683594, 61.87165069580078, 54.053260803222656, 53.35839080810547, 52.98438262939453, 52.84508514404297, 52.57770538330078, 52.48080062866211, 51.73372268676758, 51.54290008544922, 51.42882537841797, 51.39347839355469, 51.33969497680664, 51.09251403808594, 50.55687713623047, 50.377811431884766, 50.063865661621094, 49.12841796875, 49.016212463378906, 48.769317626953125 ], "content": [ "Question : How to convert bitarray to set quickly with c++ Each of the actual bitarrays has 750 000 bits . Example 1 : .. . .. . Example 2 : .. . .. . The set is an array of usigned 32-bit integers uint32 t . Both kinds of set are acceptable . The bitarray is contiguous in memory . The first bit of the bitarray has correct alignment for simd . For now I am using a custom memory allocator with std : : vector to hold the bitarray . 1 bit in memory per 1 bit in the bitarray . Thanks . Update : .. . .. . this so question does the reverse http : stackoverflow.com questions 23664015 packing-10-bit-values-into-a-byte-stream-with-simd .. . .. . loop through bits in c http : stackoverflow.com questions 33005271 looping-through-bits-c .. . .. . How to define and work with an array of bits in C http : stackoverflow.com questions 2525310 how-to-define-and-work-with-an-array-of-bits-in-c .. . .. . gmpy uses the scan1 function of the gmp library https : gmplib.org . scan1 seems find first set as in wikipedia here https : en.wikipedia.org wiki Find first set Comment : What is your container for the bit array Comment : so far it is a std : : vector Comment : std : : vector bool Or are you storing the bits in a numeric type Comment : Where are you stuck and what have you tried 750 000 bits is only about 91.1 KB . What s the expected output format Are you asking for bracketed comma separated ascii values like those shown or perhaps something else Comment : numeric type now . 8 bits packed as an unsigned 8 bit integer . .. . Answer : If I understand your question : .. . .. . I don t believe walking bitarray will be particularly slow but the push-back can be made faster if you know how many elements will be created . Then you can use reserve to pre-allocate the memory . Comment : will try that . hopefully that is fast enough Comment : Thanks for the suggestion about reserve i am doing that right now.. . and also use raw pointer and answer . Comment : what is that bitarray has Comment : It is the function that you write to determine if the integer is represented by your bitarray .", "Question : How to convert bitarray to set quickly with c++ Each of the actual bitarrays has 750 000 bits . Example 1 : .. . .. . Example 2 : .. . .. . The set is an array of usigned 32-bit integers uint32 t . Both kinds of set are acceptable . The bitarray is contiguous in memory . The first bit of the bitarray has correct alignment for simd . For now I am using a custom memory allocator with std : : vector to hold the bitarray . 1 bit in memory per 1 bit in the bitarray . Thanks . Update : .. . .. . this so question does the reverse http : stackoverflow.com questions 23664015 packing-10-bit-values-into-a-byte-stream-with-simd .. . .. . loop through bits in c http : stackoverflow.com questions 33005271 looping-through-bits-c .. . .. . How to define and work with an array of bits in C http : stackoverflow.com questions 2525310 how-to-define-and-work-with-an-array-of-bits-in-c .. . .. . gmpy uses the scan1 function of the gmp library https : gmplib.org . scan1 seems find first set as in wikipedia here https : en.wikipedia.org wiki Find first set Comment : What is your container for the bit array Comment : so far it is a std : : vector Comment : std : : vector bool Or are you storing the bits in a numeric type Comment : Where are you stuck and what have you tried 750 000 bits is only about 91.1 KB . What s the expected output format Are you asking for bracketed comma separated ascii values like those shown or perhaps something else Comment : numeric type now . 8 bits packed as an unsigned 8 bit integer . .. . Answer : code : .. . .. . result compiled with icc -O3 code.cpp -lrt .. . .. . 0.0008 seconds to convert 768000 bits to set . But there are at least 10 000 arrays of 768 000 bits in each cycle . That is 8 seconds per cycle . That is slow .", "Question : I need a compact representation of an array of booleans does Python have a builtin bitfield type or will I need to find an alternate solution Comment : For cases in which the term is ambiguous I take it that you want the sorts of features available in C bit-fields or as described here en.wikipedia.org wiki Bit field http : en.wikipedia.org wiki Bit field .. . Answer : You should take a look at the bitstring http : python-bitstring.googlecode.com module which has recently reached version 2.0 . The binary-data is compactly stored as a byte array and can be easily created modified and analysed . You can create BitString objects from binary octal hex integers big or little endian strings bytes floats files and more . You can then analyse and modify them with simple functions or slice notation - no need to worry about bit masks etc . There is also a concept of a bit position so that you can treat it like a file or stream if that s useful to you . Properties are used to give different interpretations of the bit data . Plus there s support for the standard bit-wise binary operators packing unpacking endianness and more . The latest version is for Python 2.6 to 3.1 and although it s pure Python it is reasonably well optimised in terms of memory and speed . Comment : I like that one A little more intuitive than bitarray for me . Thanks", "Question : I expected to find a existing question here on SO about this but i didn t . What is the advantage of using a Bitarray when you can store your bool values in a bool The bool seems a little more handy to me because there exist more extension-methods to work with a array instead of a BitArray Comment : Presumably the value lies in the bitwise methods .Or .Xor etc . contained in BitArray . Comment : Check This question and answers http : stackoverflow.com questions 16471759 is-bitarray-faster-in-c-sharp-for-getting-a-bit-value-than-a-simple-conjuction-w . Could be useful . .. . Answer : BitArray is compact and allows you to perform bitwise operations . From the MSDN forum https : social.msdn.microsoft.com Forums vstudio en-us ecdc9965-fce7-4791-9c66-12f960aa10c4 boolean-or-bool-vs-bitarray forum netfxbcl : .. . .. . A BitArray uses one bit for each value while a bool uses one byte for each value . You can pass to the BitArray constructor either an array of bools an array of bytes or an array of integers . You can also pass an integer value specifying the desired length and optionally a boolean argument that specifies if the individual bits should be set or not .", "Question : I am using this to convert a file into a BitArray : .. . .. . How do I replace a pattern of Bit in a BitArray Comment : Could you give an example Comment : let s suppose I have this pattern : 010101 and I want to change it with X Comment : Do you mean replace this pattern anywhere it appears in the array Comment : Yes would be great Comment : E.g I start reading and creating chunks of 10 bits then if this pattern is in these chunks replace with X .. . Answer : you can use Set method to set special bit in the BitArray . value is a bool which will translate to 0 and 1 in your bitarray .. . .. . i.e : To set the 10th bit to 1 use Comment : @DavidE sorry I don t understand what you are asking . I didn t write for using a replace method . Set method have 2 inputs the first one is the index in the bit array . So if he wants to change the 10th bit to 1 he has to write bits.Set 9 true", "Question : Input is a bitarray stored in contiguous memory with 1 bit of the bitarray per 1 bit of memory . Output is an array of the indices of set bits of the bitarray . Example : .. . .. . Getting either set A or set B is fine . The set is stored as an array of uint32 t so each element of the set is an unsigned 32-bit integer in the array . How to do this about 5 times faster on a single cpu core current code : .. . .. . result compiled with icc -O3 code.cpp -lrt .. . .. . 0.0008 seconds to convert 768000 bits to set . But there are at least 10 000 arrays of 768 000 bits in each cycle . That is 8 seconds per cycle . That is slow . The cpu has popcnt instruction and sse4.2 instruction-set . Thanks . Update .. . .. . .. . .. . This updated version uses the inner loop provided by rhashimoto . I don t know if the inlining actually makes the function slower i never thought that can happen . The new timing is 1.14E-5 compiled by icc -O3 code.cpp -lrt and benchmarked on random vector . Warning : .. . .. . I just found that reserving instead of resizing a std : : vector and then write directly to the vector s data through raw pointing is a bad idea . Resizing first and then use raw pointer is fine though . See Rob s answer at Resizing a C++ std : : vector char without initializing data http : stackoverflow.com questions 7689406 resizing-a-c-stdvectorchar-without-initializing-data I am going to just use resize instead of reserve and stop worrying about the time that resize wastes by calling constructor of each element of the vector.. . at least vectors actually uses contiguous memory like a plain array Are std : : vector elements guaranteed to be contiguous http : stackoverflow.com questions 849168 are-stdvector-elements-guaranteed-to-be-contiguous Comment : Would you be able to trade off space for time Table lookup could do it . Consider 8 tables - one for each 4-bit fields of the 32-bit word - of 16 entries each where each entry is an array or vector of the indices for that 4-bit pattern of the uint32 . Comment : I think so . That is a good idea . How to use that table do you mean to do bitwise between the 32bit word from the input and the key of the tables Comment : for each of 8 4-bit fields : grab the field use it as an index into an 8-element array of a 16-element array of variable-length vectors append all items in that vector to your set of indexes being accumulated . Or you could use 1 256-entry vector for all 4 bytes but you d have to add 0 8 16 24 to the indexes as you added them to your result vector . Given your hint that you can use SSE4 I m hoping someone answers with a cool SIMD approach . Why not add sse as a tag Comment : @davidbak : I don t think SSE4 helps just SSE2 for vector integer add and shift but popcnt does to solve the variable-length store problem . Comment : re : resizing : reserve space and use emplace back to construct new elements in-place as they are created . .. . Answer : As suggested by @davidbak you could use a table lookup to process 4 elements of the bitmap at once . Each lookup produces a variable-sized chunk of set members which we can handle by using popcnt . @rhashimoto s scalar ctz-based suggestion will probably do better with sparse bitsets that have lots of zeros but this should be better when there are a lot of set bits . I m thinking something like .. . .. . When a nibble isn t 1111 the next store will overlap but that s fine . Using popcnt to figure out how much to increment a pointer is a useful technique in general for left-packing variable-length data into a destination array . http : stackoverflow.com questions 36932240 avx2-what-is-the-most-efficient-way-to-pack-left-based-on-a-mask Comment : Thank you for this answer . I will try this one after finishing writing other parts of the program .", "Question : Input is a bitarray stored in contiguous memory with 1 bit of the bitarray per 1 bit of memory . Output is an array of the indices of set bits of the bitarray . Example : .. . .. . Getting either set A or set B is fine . The set is stored as an array of uint32 t so each element of the set is an unsigned 32-bit integer in the array . How to do this about 5 times faster on a single cpu core current code : .. . .. . result compiled with icc -O3 code.cpp -lrt .. . .. . 0.0008 seconds to convert 768000 bits to set . But there are at least 10 000 arrays of 768 000 bits in each cycle . That is 8 seconds per cycle . That is slow . The cpu has popcnt instruction and sse4.2 instruction-set . Thanks . Update .. . .. . .. . .. . This updated version uses the inner loop provided by rhashimoto . I don t know if the inlining actually makes the function slower i never thought that can happen . The new timing is 1.14E-5 compiled by icc -O3 code.cpp -lrt and benchmarked on random vector . Warning : .. . .. . I just found that reserving instead of resizing a std : : vector and then write directly to the vector s data through raw pointing is a bad idea . Resizing first and then use raw pointer is fine though . See Rob s answer at Resizing a C++ std : : vector char without initializing data http : stackoverflow.com questions 7689406 resizing-a-c-stdvectorchar-without-initializing-data I am going to just use resize instead of reserve and stop worrying about the time that resize wastes by calling constructor of each element of the vector.. . at least vectors actually uses contiguous memory like a plain array Are std : : vector elements guaranteed to be contiguous http : stackoverflow.com questions 849168 are-stdvector-elements-guaranteed-to-be-contiguous Comment : Would you be able to trade off space for time Table lookup could do it . Consider 8 tables - one for each 4-bit fields of the 32-bit word - of 16 entries each where each entry is an array or vector of the indices for that 4-bit pattern of the uint32 . Comment : I think so . That is a good idea . How to use that table do you mean to do bitwise between the 32bit word from the input and the key of the tables Comment : for each of 8 4-bit fields : grab the field use it as an index into an 8-element array of a 16-element array of variable-length vectors append all items in that vector to your set of indexes being accumulated . Or you could use 1 256-entry vector for all 4 bytes but you d have to add 0 8 16 24 to the indexes as you added them to your result vector . Given your hint that you can use SSE4 I m hoping someone answers with a cool SIMD approach . Why not add sse as a tag Comment : @davidbak : I don t think SSE4 helps just SSE2 for vector integer add and shift but popcnt does to solve the variable-length store problem . Comment : re : resizing : reserve space and use emplace back to construct new elements in-place as they are created . .. . Answer : I notice that you use .capacity when you probably mean to use .size . That could make you do extra unnecessary work as well as giving you the wrong answer . Your loop in find set bit iterates over all 32 bits in the word . You can instead iterate only over each set bit and use the BSF instruction to determine the index of the lowest bit . GCC has an intrinsic function builtin ctz https : gcc.gnu.org onlinedocs gcc Other-Builtins.html to generate BSF or the equivalent - I think that the Intel compiler also supports it you can inline-assembly if not . The modified function would look like this : .. . .. . On my Linux machine compiling with g++ -O3 replacing that function drops the reported time from 0.000531434 to 0.000101352 . There are quite a few ways to find a bit index in the answers to this question http : stackoverflow.com questions 757059 position-of-least-significant-bit-that-is-set . I do think that builtin ctz is going to be the best choice for you though . I don t believe that there is a reasonable SIMD approach to your problem as each input word produces a variable amount of output . Comment : Thank you for this answer . It helped a lot . The program becomes 3x faster on the machine after using your inner loop . I also found the outer loop is kind of slow and improved that in the updated version . Comment : Variable-size output per chunk isn t a problem for SIMD with the help of popcnt . See my answer . Comment : I just found that reserving instead of resizing a std : : vector and then write directly to the vector s data through raw pointing is a bad idea . Resizing first and then use raw pointer is fine though . See Rob s answer at stackoverflow.com questions 7689406 http : stackoverflow.com questions 7689406 resizing-a-c-stdvectorchar-without-initializing-data I am going to just use resize instead of reserve and stop worrying about the time that resize wastes by calling constructor of each member .", "Question : In an assignment I am currently working on we need to work with bit vectors but I am very unsure of how to do this in Python . They should be able to be from 4 bits to 20 bits . I have never worked with bit vector before but I guess that one would one create arrays of unsigned bytes that you manipulated using the usual AND OR XOR operations . The important restriction here is : I cannot rely on any libraries other than those supplied with standard Python . I think I know how I would do this in C using arrays of 8 bit unsigned bytes : e.g . to turn the 18th bit of a zeroed array into a one I would do something like my bit array 3 1 2 .. . .. . But since Python is dynamically typed and does not have a built-in array type how would I go about doing this in a pythonic way And is it possible how to express a bit vector of size 20 I am thinking of perhaps making a 24 bit 3 byte vector and ignoring the 4 bits . Comment : What is the issue with relying on external libraries Comment : @ezod : Probably because this is homework . Comment : @S.Lott : yes this is in relation to that but this part has very little to do with that . as you see I could have done this in C but I would like to know how to do it in Python using the built-ins of the language . That is a general question of relevance to others . Comment : @oligofren : In that case suggestions of external libraries would seem to be just as useful to you assuming they are free -- you can look at the source and see how they ve done it using the built-ins of the language for your academic interest . .. . Answer : The bitarray http : pypi.python.org pypi bitarray module does this efficiently with booleans .", "Question : Consider the following BitArray : .. . .. . and in binary equals : .. . .. . Now I want to convert this to an int and have tried to use the methods described on this page : How i can convert BitArray to single int http : stackoverflow.com questions 5283180 how-i-can-convert-bitarray-to-single-int .. . .. . However both these methods converts 1100 to 3 instead of 12 . So it seems as-if it ignores the last two bits and considers it of size 2 bit for which of course the answer is 3 . One of the methods on the linked page above in action : .. . .. . After executing the above bitArray has the value 3 . How can I express in the code that I want it to consider all 4 bits .. . Answer : The constructor for BitArray bool accepts the values in index order - and then CopyTo uses them in the traditional significance so bitArray 0 is the least significant bit - so your true true false false ends up meaning 0011 in binary not 1100 . It s not ignoring the last two bits - it s just treating your initial array in the opposite order to the one you expected . If you want it to make the first-specified value as the most significant value when converting the bits to integers you ll need to reverse your input array . Comment : Ah..that makes sense then . Thanks", "Question : I am working on a Python library that performs a lot of bitwise operations on long bit strings and I want to find a bit string type that will maximize its speed . I have tried the built-in Python int type numpy bitstring https : pypi.python.org pypi bitstring and bitarray https : pypi.python.org pypi bitarray and suprisingly the Python ints seem to win hands down when it comes to bitwise operations . Everything I have googled says numpy should be much faster for vectorized operations like this . Am I using numpy wrong somehow Is there another Python library I can use that actually improves on Python s built-in int type Results : .. . .. . EDIT : .. . .. . There seems to be a lot of confusion about how single operations on Python ints longs are comparable to vector operations on entire numpy bit arrays . A 10 000-bit Python int long value when treated as a bit mask using the operator just like we can do with ints or longs in C C++ is directly comparable to a numpy bool array of length 10 000 because they both contain the same number of bits albeit represented in 2 different ways . The same is true for the other ways of representing 10 000 bits that I tried including using numpy packed bit arrays numpy int arrays and bit array string types from other libraries . They are all comparable because they are all computing the same function on the same sequences of bits . All that matters here is that I can represent all 10 000 bits and that I can perform bitwise operations on them . If anyone can suggest a more efficient way to represent long fixed-length sequences of bits that allows bitwise-operators and to be used that is what I am looking for . If you re still confused as to how a Python int long value can store the same information as a numpy bool array or a numpy binary-valued int array please refer to the int to bits function in the code above it demonstrates how to extract the bits out of a Python int long which shows that performing the operation on two 10 000-bit ints is fundamentally the same as performing it element-by-element on a list or array of 10 000 Boolean values . Comment : While it s no surprise Python ints do this fast some of your timings don t seem right . For example the bool array definitely shouldn t be faster than the packed array . Comment : Indeed - these are not vector comparison - these are just comparisons of single integers of a very high bit length . Comment : oh and one more thing 2 10000 is not going to fit in uint64 Comment : @user2357112 When the array length is in the 100 000 ballpark the packed array starts to be slightly faster than the bool array . I m not sure why it s slower for 10 000 it seems strange to me too but the numbers don t lie . Comment : @hosford42 : When I test it the bool array is substantially slower . .. . Answer : What you are trying to test - are these vector operations at all You are simply trying to compare speeds of 1 operation and there plain python is going to win cos it doesn t have to setup numpy arrays or bitarrays . How about trying out following Interestingly if .. . .. . and then .. . .. . pure python lists iterating over them is faster than iterating over numpy arrays. . a bit counter intuitive . Not sure why . Similarly you can try for bitstrings and bitarrays .. . .. . Is this what you are looking at Comment : The timeit function counts only the stmt not the setup . By the way the OP s size is 10000 not 1000 . Comment : That doesn t matter still - you are comparing - bitwise-and of a single integer in all cases . Also - running the same operation 10000 times is not same as running the operation on Vector of 10000 elements . btw that 10000 is common for both pure python and numpy arrays There s no vector operation there . Also - for simple integers might still be optimized than single element numpy arrays need to look that up . Comment : @gabhijit Please check out the additional information I added to the question . An N-bit integer value contains the same information as an N-bit array of bools . I don t care about the representation I care about the speed at which I can perform bit-wise operation on N bits in whatever form . That s why I m comparing single ints to bool arrays .", "Question : I need a compact representation of an array of booleans does Python have a builtin bitfield type or will I need to find an alternate solution Comment : For cases in which the term is ambiguous I take it that you want the sorts of features available in C bit-fields or as described here en.wikipedia.org wiki Bit field http : en.wikipedia.org wiki Bit field .. . Answer : Bitarray http : pypi.python.org pypi bitarray was the best answer I found when I recently had a similar need . It s a C extension so much faster than BitVector which is pure python and stores its data in an actual bitfield so it s eight times more memory efficient than a numpy boolean array which appears to use a byte per element . Comment : Is BitArray available for install on Windows Comment : It looks like BitArray is readily available for installation on Linux but nothing on the page suggests a PIP installation for Windows . Bummer.. .", "Question : Is there some reasonably fast code out there which can help me quickly search a large bitmap a few megabytes for runs of contiguous zero or one bits By reasonably fast I mean something that can take advantage of the machine word size and compare entire words at once instead of doing bit-by-bit analysis which is horrifically slow such as one does with vector bool . It s very useful for e.g . searching the bitmap of a volume for free space for defragmentation etc . . Comment : can t you treat your array as a array of integers and compare integer to zero Comment : @Andrew : It kind of depends on what you re trying to achieve.. . the bits might not be aligned 8 bits at a time . Comment : you can compare 6 bytes if the bmp is a color image file : 6 byte is two contigouous pixels with an array of 6 zeros . Comment : @eharvest : I m not talking about pictures This is completely unrelated to raster images . I m talking about bit arrays i.e . an array of bits . Comment : sorry I read your question too fast.. . .. . Answer : Windows has an RTL BITMAP http : msdn.microsoft.com en-us library windows hardware ff563614.aspx data structure one can use along with its APIs . But I needed the code for this sometime ago and so I wrote it here warning it s a little ugly : .. . https : gist.github.com 3206128 .. . .. . I have only partially tested it so it might still have bugs especially on reverse . But a recent version only slightly different from this one seemed to be usable for me so it s worth a try . The fundamental operation for the entire thing is being able to -- quickly -- find the length of a run of bits : .. . .. . Everything else should be easy to build upon this given its versatility . I tried to include some SSE code but it didn t noticeably improve the performance . However in general the code is many times faster than doing bit-by-bit analysis so I think it might be useful . It should be easy to test if you can get a hold of vector bool s buffer somehow -- and if you re on Visual C++ then there s a function I included which does that for you . If you find bugs feel free to let me know .", "Question : I was writing a function for boolean 2d arrays : .. . .. . Evaluating and testing it with .. . .. . returns .. . .. . Obviously randbool generates a BitArray whereas I assumed randbool would yield an Array Bool . How are Array Bool and BitArray related Why do they both exist Can I write foo in such a way that it accept both input types using a single method since I can t see a difference Comment : Your assumption about the behavior of randbool isn t unreasonable it s a pretty bad name It s been deprecated in 0.4 and renamed to bitrand which sounds more like it d create a BitArray . And there is a new method rand Bool to explicitly create an array of Bool . You can start using these new definitions in 0.3 with the Compat https : github.com JuliaLang Compat.jl package . .. . Answer : An Array Bool stores each true false value as a Bool which is represented internally as a UInt8 . So if your array has N elements it will take N bytes to store it . A BitArray stores each true false value as a single bit with conceptually 8 of them packed into a single UInt8 . Consequently it takes only N 8 bytes to store the array . A BitArray also has methods defined that handle all the required bit-twiddling operations for you . Depending on the operation BitArray s are sometimes slower than the corresponding Array Bool and sometimes faster . But by and large the performance differences are quite small so it makes sense to use BitArray s unless you have a specific reason not to . But overall they are fairly interchangeable . Note that both are subtypes of AbstractArray Bool : .. . .. . This makes it easy to write generic methods that take either one . Comment : AbstractArray Bool is exactly the type I was looking for .", "Question : I have the following code in C .. . .. . And I want to do the following in C .. . .. . and I get the following error error CS0019 : Operator cannot be applied to operands of type BitArray and int I want to be able to shift the value to the left and set it as it does in c++ . I have search the web for hours without any luck anyone can help me Comment : Looks like you want to left shift the BitArray right See : stackoverflow.com questions 3684002 bitarray-shift-bits http : stackoverflow.com questions 3684002 bitarray-shift-bits Comment : I think you might not be searching well enough . My first search turned up a solution . .. . Answer : you cannot use bit shift operator like that on bit array cause bitarray is not exact replacement of bitset .. . .. . here are some info What is the C equivalent of std : : bitset of C++ http : stackoverflow.com questions 8144349 what-is-the-c-sharp-equivalent-of-stdbitset-of-c .. . .. . BitArray - Shift bits http : stackoverflow.com questions 3684002 bitarray-shift-bits", "Question : So bit arrays and hash tables don t seem to inherently allow for a find-max type operation but there are ways around it . I m wondering if there s a way using the bit array alone without extra variables pointers or manipulating the start end of the array in some scenarios . For example.. . I have integers 1 .. . n and a n-bit bit array . To keep a subset of the integers I use the integer itself as the key in the bit array and set the bit to 1 if it is in the subset or 0 if it is not . For example for integers 1 2 3 4 and subset 1 3 the bit array would look like 1 0 1 0 . It seems like there s no way to do this without somehow moving the bits around which leads me to believe the O 1 dream is dead and perhaps the bit array won t work . Is something like this possible in O log n Thanks .. . Answer : Finding the highest set bit on a bit array of length n is O n . If you need better then you ll need to choose another data structure or keep a high-water mark along with your bitmap .", "Question : Is there a BitArray alternative for the .NET Micro Framework I was thinking about simply using a bool but how can you convert it back into a byte In the full framework considering bits is a BitArray the following works : .. . .. . But I cannot seem to find the BitArray class in the micro framework Comment : What exactly do you need Maybe a byte which you can manipulate is enough Comment : BitArray is implemented using integers and bitwise-operators Comment : @Bobby nope really needed to operate at the bit level : - .. . Answer : It s not terribly difficult to duplicate the functionality of BitArray . First if you need fewer than 65 bits then you can do it with a long or smaller . To set an individual bit : .. . .. . To clear a bit : .. . .. . To see if a bit is set : .. . .. . If you have more than 64 bits then you ll need to create an array byte probably and do the division to determine which byte bit you want to modify . The methods above will work provided you change the long to byte . For example if you have : .. . .. . You have 1024 bits . To set a bit : .. . .. . The other methods use the same math to get the byte and bit index and setting clearing and testing a bit is the same as with the long example above . Comment : Awesome Thank you Comment : If Interlocked.CompareExchange is available on the micro framework one could use that to make any desired types of bit operations atomic . Within a loop read the old value of the word compute a new value and CompareExchange the old value to the new one reloop until the CompareExchange succeeds . I personally like having an atomic method to compute Thebits TheBits Mask NewBits . Bits which are clear in Mask and NewBits are left alone those that are clear in Mask and set in NewBits are toggled . Bits that are set in Mask will be copied from NewBits .", "Question : null .. . Answer : How to convert a binary string to BitArray which has 256 characters to be able to enter the Huffman decoding method Comment : my answer was bad hope this will help you : snipd.net huffman-coding-in-c http : snipd.net huffman-coding-in-c Comment : Maybe this can helps you : Bit Array to String and back to Bit Array http : stackoverflow.com questions 14670645 bit-array-to-string-and-back-to-bit-array or this : Converting byte array to string and back again in C http : stackoverflow.com questions 1422314 converting-byte-array-to-string-and-back-again-in-c-sharp Comment : What do you call a binary string Binary data encoded in hexadecimal base64", "Question : I m writing a time-critical piece of code in C that requires me to convert two unsigned integers that define an inclusive range into a bit field . Ex : .. . .. . It may help to visualize the bits in reverse order .. . .. . The maximum value for this range is a parameter given at run-time which we ll call max val . Therefore the bit field variable ought to be defined as a UInt32 array with size equal to max val 32 : .. . .. . Given a range defined by the variables x1 and x2 what is the fastest way to perform this conversion Comment : Do most cases have max val 32 Otherwise it wouldn t make sense to use an array . If yes then I assume you want to be able to say I need 200 bits set to 1 with a padding of 100 bits set to 0 on the right . Comment : If your max val is not divisible by 32 your bitArray is going to be missing some bits . Comment : Samuel - not sure what you re getting at . Jim - Yep I know and that s perfectly fine . Comment : The mods are gone .. . you will have to benchmark . I daubt a table lookup will gain significant any speed . Comment : Looks beautiful . And I just discovered that the code I offered with table lookups is erroneous anyway . Thanks for the great answer .. . Answer : My solution for setting a whole range of bits in a BitArray to true or false :", "Question : I have a long sequence of bits stored in an array of unsigned long integers like this .. . .. . I am trying to design an algorithm to reverse the order of bits in array . Problems : .. . .. . size can be anything i.e . not necessarily a multiple of 8 or 32 etc so the first bit in the input array can end up at any position within the unsigned long in the output array .. . the algorithm should be platform-independent i.e . work for any sizeof unsigned long . Code pseudocode algo description etc . -- anything better than bruteforce bit by bit approach is welcome . Comment : T he first bit in the input array can end up at any position within the unsigned long in the output array I m not sure I understand . Wouldn t the first bit be at the first position in the first long Don t you mean the last bit Comment : I think the issue is that if there are 57 bits in the bit array the bit number 0 needs to swap with bit number 56 . However before we can do anything we need to know whether bit 0 of the array is stored in the MSB or LSB of element 0 of the array or if element 0 isn t where bit 0 is we need to understand where bit 0 is stored . Comment : @Jonathan and Eques : Aha it s about reversing the order I thought it was just inverting each bit . Sorry for the misunderstanding . Comment : Why not just add an extra two fields to the structure to define the direction and number of bits to skip Then create the procedures to access it to depend on the direction Comment : Do you have control over the definition of this structure And if you do why store bits in unsigned long not in uint8 t . That would factor out the platform-dependent issues . .. . Answer : The fact that the size is not multiple of sizeof long is the hardest part of the problem . This can result in a lot of bit shifting . But you don t have to do that if you can introduce new struct member : .. . .. . Offset would tell you how many bits to ignore at the beginning of the array . Then you only only have to do following steps : .. . .. . 1 . Reverse array elements . 2 . Swap bits of each element . There are many hacks for in the other answers but your compiler might also provide intrisic functions to do it in fewer instructions like RBIT instruction on some ARM cores . 3 . Calculate new starting offset . This is equal to unused bits the last element had . Comment : Why not use an uint8 t for the array instead Comment : @Lundin OP stated that size is not multiples of 8 either so I don t think that helps . In fact I think the best data type for array element should be chosen depending on the size of the CPU register on target architecture . Comment : You can still access the data by chunks of CPU register size even if the type is uint8 t . You can t do the opposite though so on small CPUs the unsigned long will be very burdensome . Comment : @Lundin True I don t think that unsigned long is an optimal data type . But with uint8 t on 32-bit CPU for example you d have to take care of the alignment manually and treat last element specially if array size is not divisible by four if you wanted to work on 4 byte chunks .", "Question : I m creating a software package that takes 16 boolean values at a time puts them into an array of bits then sends them off to a PLC to be unpacked and used by the PLC . My question is two-fold : .. . .. . 1 If I make a BitArray 16 will it only occupy 16 bits of data or does the BitArray object automatically include extra data in there as part of the object I assume it s only 16 bits but can t find much real good confirmation on it so far and .. . .. . 2 The PLCs are expecting a 16-bit integer short for the communication coupler to work as necessary therefor I figured I could simply cast the BitArray into a short but I need a list of 1 s and 0 s not true and false - so what would be the best way to do this Some sample code of what I have in mind below : .. . .. . I assumed I could do something to the booleans before going into bitContainer to cast them to 1 or 0 and found out that didn t seem to work so I wanted to see what any all my options may be while avoiding lots of if true var 1 else var 0 type scenarios since I m rather unfamiliar with this type of task . As these communications will be in charge of machine behaviors reducing overhead and time to package these send them is vital . Comment : You can always use an enum and mark it as flags : stackoverflow.com questions 8447 http : stackoverflow.com questions 8447 what-does-the-flags-enum-attribute-mean-in-c Comment : For 2 . stackoverflow.com questions 5283180 http : stackoverflow.com questions 5283180 how-can-i-convert-bitarray-to-single-int Comment : A colleague of mine is always oozing over enums and I never even thought to use them haha . These both look like some good ground to go on - I ll try it out and update the post when I find out what works best thanks .. . Answer : 1 BitArry 16 takes up more space than 16 bits . Try a ushort for something that takes exactly 16 bits . 2 If you want speed I would recommend you used a ushort and performed bitwise operations on it . You could set it like this : .. . .. . then you can set or reset each bit as you required . Edit : The bitwise OR operator is used here to chain each entry bit together into the final ushort variable . The operator shifts a value n number of bits to the left so this is bringing in each 1 or 0 in result.xxxx to it s correct place in bitContainer . Comment : I m a bit inexperienced with bitwise operations but does this solution not just compare values more so than actually copy them into a solid data type I can send I basically want to end up with a string not String necessarily of 1100101101111010 inside of my in this case ushort . That way the PLC-side can parse it and take it apart and know which bit belongs-to what mapping scheme is setup outside of my questions posted here Comment : The bitwise OR operator is used to chain each of those bit values together . The operator shifts the bit to it s correct place in the ushort . So this will actually give you 2 bytes of bits as you want . Assuming result.Spare 7 etc is 1 or 0 . Comment : OK . Was doing some looking up on bitwise operations and the way MSDN words their explanations is sometimes.. . misleading . Thanks" ] }
[ "yes-answer-long", "yes-answer-short" ]
bitset
UNK_RELATION
ile-c++@c++@70
ile-c + + -- ile for c++ is an integrated language environment ile for @placeholder code compiler for ibm i series .
{ "confidence": [ 64.60990142822266, 61.67558288574219, 56.16132354736328, 53.39032745361328, 50.841453552246094, 47.987796783447266, 47.987796783447266, 39.57129669189453, 26.686809539794922, 24.898786544799805, 24.67222023010254, 24.536436080932617, 22.89508819580078, 21.417659759521484, 19.9937801361084, 19.548328399658203, 16.174304962158203, 16.015132904052734, 16.015132904052734, 16.015132904052734, 16.015132904052734, 16.015132904052734, 16.015132904052734, 16.015132904052734, 16.015132904052734, 16.015132904052734, 15.953256607055664, 15.883435249328613, 15.623659133911133, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445, 14.397172927856445 ], "content": [ "I d like to know if i can do the same in a ile C++ program .", "As Scott answered there s no single PSDS equivalent in ILE C++ .", "So before doing that i d like to know if i can do something equivalent to rpg inrt on in a ile C++ program .", "They wouldn t know what ILE is what RPG is what IBM midrange is what PSDS is .", "With the ILE compiler in RPG you can use the PSDS http : publib.boulder.ibm.com iseries v5r2 ic2924 books c092508381.htm to get information about the current user job name etc. . .. . .. . How do you get the same information in a C++ program using ILE", "The RT indicator return or INRT has no good use in ILE programs and is only useful in some Cycle programs .", "All that s needed for any ILE program in a non- NEW activation group that won t be reclaimed is to issue a RETURN statement .", "I ve tried and when i call a function of an ended ile C++ program i have a mch3402 message tried to refer to all or part of an object that no longer exists .. . .. . Of course i can write a service program instead of a program but that will make me change a lot of things .", "The majority of people who see this because of the C++ and not because of ibm-midrange would have had to google things to make any sense of the question .", "There is no direct equivalent to RPG s PSDS in C++ .", "I can t imagine the OP expecting to use this on any but the IBM i .", "You can get the program name and program library from the first parameter passed to a C or C++ program .", "It s a very clear question if you are at all familiar with the IBM midrange .", "I ve attempted an edit but as I m not familiar with IBM Midrange I m sure you could do better .", "For those who are not aware in the RPG programming language you can declare a data structure called the Program Status Data Structure and it ll be automatically filled in with lots of information about the runtime environment including the job identifier like a process id user name last error that occurred and lots of other information .", "To add to Scott s reply a data structure in RPG is like a struct in C++ - it would be possible to construct a struct that would contain that data and one could probably populate some of it with various calls to system APIs .", "I didn t edit because I truly felt it didn t need it .", "In a rpg program if you set the inRT indicator the program stays in memory as long as the active group is alive .", "So you can call callbacks functions in the program even when it has returned .", "Sorry my bad my problem came from something else .", "When compiling with crtpgm option actgrp is entmod by default and it results on a new active group program when the main module is cpp .", "I ve changed to caller and it works fine now .", "Just a minor comment.. .", "That s true whether LR is on or off though global files and variables may need special attention if a callback proc needs them .", "INRT is just a way to tell RPG internal logic to drop out of the Cycle back to the caller without ending and without an explicit RETRN or RETURN .", "If the Cycle isn t used it does nothing .", "@James : I understand your point and I could have been less negative .", "I could have been more negative too .", "I m interested in job number current user and program library but i asked for a general question cause i guess i ll need other kind of information in the future .", "Why the close votes for unclear what you re asking", "Please refrain from voting on questions you know nothing about .", "@JohnY Why the negative comment and not an attempt to clarify what s being asked or a suggested edit", "Folks who would need any explanation at all would need to research the whole question from scratch .", "They don t need clarification .", "They need a tutorial .", "On the other hand if you don t need a tutorial then you don t need clarification either because the OP phrased things in a very clear way even including examples of what s in the PSDS .", "If you be more specific in the info you want we can point you to the right combination of APIs .", "If you can tell us specifically which information you re looking for and what platform you need it on or whether you need it to be cross-platform then perhaps we can help .", "But with specifics of what PSDS info he wants we could better direct him to the right API s .", "The QUSRJOBI api will get you the info you mentioned .", "The returned struct jobInfo is defined in header QUSRJOBI.h QSYSINC.H file and will return the current job name user name and job number plus more if called like this : .. . .. . Qwc JOBI0600 t jobInfo .. . QUSRJOBI jobInfo sizeof Qwc JOBI0600 t JOBI0600 errCode", "Some things however are just not readily available .", "argv 0 is a string in the form MYLIB MYPGM .", "If you ever need the module name probably the easiest way would be to send yourself a message using QMHSNDPM and then receive it using QMHRCVPM with format RCVM0300 which has sender information the sender information has the sending module name and receiving module name .", "You could also get the program name and library this way ." ] }
{ "confidence": [ 79.82366180419922, 74.76895904541016, 74.3735580444336, 73.81858825683594, 70.70292663574219 ], "content": [ "Question : With the ILE compiler in RPG you can use the PSDS http : publib.boulder.ibm.com iseries v5r2 ic2924 books c092508381.htm to get information about the current user job name etc. . .. . .. . How do you get the same information in a C++ program using ILE Comment : Why the close votes for unclear what you re asking It s a very clear question if you are at all familiar with the IBM midrange . Please refrain from voting on questions you know nothing about . Comment : @JohnY Why the negative comment and not an attempt to clarify what s being asked or a suggested edit The majority of people who see this because of the C++ and not because of ibm-midrange would have had to google things to make any sense of the question . I ve attempted an edit but as I m not familiar with IBM Midrange I m sure you could do better . Comment : @James : I understand your point and I could have been less negative . I could have been more negative too . I didn t edit because I truly felt it didn t need it . Folks who would need any explanation at all would need to research the whole question from scratch . They wouldn t know what ILE is what RPG is what IBM midrange is what PSDS is . They don t need clarification . They need a tutorial . On the other hand if you don t need a tutorial then you don t need clarification either because the OP phrased things in a very clear way even including examples of what s in the PSDS . Comment : As Scott answered there s no single PSDS equivalent in ILE C++ . If you be more specific in the info you want we can point you to the right combination of APIs . Comment : I m interested in job number current user and program library but i asked for a general question cause i guess i ll need other kind of information in the future . .. . Answer : There is no direct equivalent to RPG s PSDS in C++ . For those who are not aware in the RPG programming language you can declare a data structure called the Program Status Data Structure and it ll be automatically filled in with lots of information about the runtime environment including the job identifier like a process id user name last error that occurred and lots of other information . If you can tell us specifically which information you re looking for and what platform you need it on or whether you need it to be cross-platform then perhaps we can help . Comment : I can t imagine the OP expecting to use this on any but the IBM i . But with specifics of what PSDS info he wants we could better direct him to the right API s .", "Question : With the ILE compiler in RPG you can use the PSDS http : publib.boulder.ibm.com iseries v5r2 ic2924 books c092508381.htm to get information about the current user job name etc. . .. . .. . How do you get the same information in a C++ program using ILE Comment : Why the close votes for unclear what you re asking It s a very clear question if you are at all familiar with the IBM midrange . Please refrain from voting on questions you know nothing about . Comment : @JohnY Why the negative comment and not an attempt to clarify what s being asked or a suggested edit The majority of people who see this because of the C++ and not because of ibm-midrange would have had to google things to make any sense of the question . I ve attempted an edit but as I m not familiar with IBM Midrange I m sure you could do better . Comment : @James : I understand your point and I could have been less negative . I could have been more negative too . I didn t edit because I truly felt it didn t need it . Folks who would need any explanation at all would need to research the whole question from scratch . They wouldn t know what ILE is what RPG is what IBM midrange is what PSDS is . They don t need clarification . They need a tutorial . On the other hand if you don t need a tutorial then you don t need clarification either because the OP phrased things in a very clear way even including examples of what s in the PSDS . Comment : As Scott answered there s no single PSDS equivalent in ILE C++ . If you be more specific in the info you want we can point you to the right combination of APIs . Comment : I m interested in job number current user and program library but i asked for a general question cause i guess i ll need other kind of information in the future . .. . Answer : You can get the program name and program library from the first parameter passed to a C or C++ program . argv 0 is a string in the form MYLIB MYPGM . If you ever need the module name probably the easiest way would be to send yourself a message using QMHSNDPM and then receive it using QMHRCVPM with format RCVM0300 which has sender information the sender information has the sending module name and receiving module name . You could also get the program name and library this way .", "Question : With the ILE compiler in RPG you can use the PSDS http : publib.boulder.ibm.com iseries v5r2 ic2924 books c092508381.htm to get information about the current user job name etc. . .. . .. . How do you get the same information in a C++ program using ILE Comment : Why the close votes for unclear what you re asking It s a very clear question if you are at all familiar with the IBM midrange . Please refrain from voting on questions you know nothing about . Comment : @JohnY Why the negative comment and not an attempt to clarify what s being asked or a suggested edit The majority of people who see this because of the C++ and not because of ibm-midrange would have had to google things to make any sense of the question . I ve attempted an edit but as I m not familiar with IBM Midrange I m sure you could do better . Comment : @James : I understand your point and I could have been less negative . I could have been more negative too . I didn t edit because I truly felt it didn t need it . Folks who would need any explanation at all would need to research the whole question from scratch . They wouldn t know what ILE is what RPG is what IBM midrange is what PSDS is . They don t need clarification . They need a tutorial . On the other hand if you don t need a tutorial then you don t need clarification either because the OP phrased things in a very clear way even including examples of what s in the PSDS . Comment : As Scott answered there s no single PSDS equivalent in ILE C++ . If you be more specific in the info you want we can point you to the right combination of APIs . Comment : I m interested in job number current user and program library but i asked for a general question cause i guess i ll need other kind of information in the future . .. . Answer : To add to Scott s reply a data structure in RPG is like a struct in C++ - it would be possible to construct a struct that would contain that data and one could probably populate some of it with various calls to system APIs . Some things however are just not readily available .", "Question : With the ILE compiler in RPG you can use the PSDS http : publib.boulder.ibm.com iseries v5r2 ic2924 books c092508381.htm to get information about the current user job name etc. . .. . .. . How do you get the same information in a C++ program using ILE Comment : Why the close votes for unclear what you re asking It s a very clear question if you are at all familiar with the IBM midrange . Please refrain from voting on questions you know nothing about . Comment : @JohnY Why the negative comment and not an attempt to clarify what s being asked or a suggested edit The majority of people who see this because of the C++ and not because of ibm-midrange would have had to google things to make any sense of the question . I ve attempted an edit but as I m not familiar with IBM Midrange I m sure you could do better . Comment : @James : I understand your point and I could have been less negative . I could have been more negative too . I didn t edit because I truly felt it didn t need it . Folks who would need any explanation at all would need to research the whole question from scratch . They wouldn t know what ILE is what RPG is what IBM midrange is what PSDS is . They don t need clarification . They need a tutorial . On the other hand if you don t need a tutorial then you don t need clarification either because the OP phrased things in a very clear way even including examples of what s in the PSDS . Comment : As Scott answered there s no single PSDS equivalent in ILE C++ . If you be more specific in the info you want we can point you to the right combination of APIs . Comment : I m interested in job number current user and program library but i asked for a general question cause i guess i ll need other kind of information in the future . .. . Answer : The QUSRJOBI api will get you the info you mentioned . The returned struct jobInfo is defined in header QUSRJOBI.h QSYSINC.H file and will return the current job name user name and job number plus more if called like this : .. . .. . Qwc JOBI0600 t jobInfo .. . QUSRJOBI jobInfo sizeof Qwc JOBI0600 t JOBI0600 errCode", "Question : null .. . Answer : In a rpg program if you set the inRT indicator the program stays in memory as long as the active group is alive . So you can call callbacks functions in the program even when it has returned . I d like to know if i can do the same in a ile C++ program . I ve tried and when i call a function of an ended ile C++ program i have a mch3402 message tried to refer to all or part of an object that no longer exists .. . .. . Of course i can write a service program instead of a program but that will make me change a lot of things . So before doing that i d like to know if i can do something equivalent to rpg inrt on in a ile C++ program . Comment : Sorry my bad my problem came from something else . When compiling with crtpgm option actgrp is entmod by default and it results on a new active group program when the main module is cpp . I ve changed to caller and it works fine now . Comment : Just a minor comment.. . The RT indicator return or INRT has no good use in ILE programs and is only useful in some Cycle programs . All that s needed for any ILE program in a non- NEW activation group that won t be reclaimed is to issue a RETURN statement . That s true whether LR is on or off though global files and variables may need special attention if a callback proc needs them . INRT is just a way to tell RPG internal logic to drop out of the Cycle back to the caller without ending and without an explicit RETRN or RETURN . If the Cycle isn t used it does nothing ." ] }
[ "yes-answer-long", "yes-answer-short" ]
c++
UNK_RELATION
zentyal@windows-server@142
zentyal -- zentyal formerly ebox platform is a program for a linux server for small and medium enterprises smbs considered an alternative to @placeholder and other microsoft infrastructure products for smbs .
{ "confidence": [ 60.13819122314453, 55.07618713378906, 51.521148681640625, 50.236000061035156, 48.07532501220703, 45.08482360839844, 43.7288818359375, 40.597774505615234, 40.597774505615234, 40.597774505615234, 36.259830474853516, 23.5731201171875, 20.3333797454834, 19.14742660522461, 15.246545791625977, 15.246545791625977, 15.246545791625977 ], "content": [ "Zentyal to Zentyal connections don t work for normal clients .", "In brief : .. . .. . Zentyal-to-Zentyal VPN tunnels use RIP and exchange the static routes accessible to each server .", "You could configure the OpenVPN client manually in the Zentyal box unmanaged by Zentyal unless you use hooks .", "Zentyal allows you to define more than one VPN server .", "I have a zentyal in a vps in the internet that I use to connect some companies with their external offices so far with windows this is not a problem I connect the windows-server to zentyal via openvpn client and configure as many openvpn clients as external offices that they have and they work perfectly but when I try to connect same way using zentyal in a company it fails I mean I can check the option that states allow zentyal to zentyal tunnel .", "Alternatively you could use a Zentyal-to-Zentyal tunnel for all clients but configure Windows clients manually based on the certificates present on the bundle and the Windows OpenVPN configuration-files you already have this way you d be missing RIP route exchange funcionality between Windows and Zentyal but it shall work .", "To achieved that i use one server as client S2 download a Linux bundle from the other zentyal S1 server then configure the S2 to act as the others clients to connect to the S1 .", "If I try to use a normal client bundle in zentyal it doesnt let me connect .", "If I guess correctly you d like to use Zentyal as a normal VPN client using a normal client bundle .", "For your use-case i think there is not way inside zentyal to manage S2S connection .", "ok the server of the company can connect to the zentyal vps but I cannot download a bundle for normal clients to connect to the same network is there a work arrout to connect both zentyals and normal hosts on a same netork via openvpn", "here is a link for client-side configuration openpvn linux client https : www.linux.com learn tutorials 459675-configure-linux-clients-to-connect-to-openvpn-server .. . .. . Hope that help", "In addition it s better practice to use a separate VPN network for road warriors another VPN for server-to-server communications .", "You should use a separate VPN server for other clients .", "Note that the two modes have different semantics in regard to how routing works for each of the VPN models .", "For normal road-warrior clients networks that needs to be accessed by clients have to be published using the Advertised networks section .", "It s a requested feature but I believe it s not available ." ] }
{ "confidence": [ 77.873291015625, 73.70225524902344 ], "content": [ "Question : I have a zentyal in a vps in the internet that I use to connect some companies with their external offices so far with windows this is not a problem I connect the windows-server to zentyal via openvpn client and configure as many openvpn clients as external offices that they have and they work perfectly but when I try to connect same way using zentyal in a company it fails I mean I can check the option that states allow zentyal to zentyal tunnel . ok the server of the company can connect to the zentyal vps but I cannot download a bundle for normal clients to connect to the same network is there a work arrout to connect both zentyals and normal hosts on a same netork via openvpn If I try to use a normal client bundle in zentyal it doesnt let me connect . .. . Answer : For your use-case i think there is not way inside zentyal to manage S2S connection . To achieved that i use one server as client S2 download a Linux bundle from the other zentyal S1 server then configure the S2 to act as the others clients to connect to the S1 . here is a link for client-side configuration openpvn linux client https : www.linux.com learn tutorials 459675-configure-linux-clients-to-connect-to-openvpn-server .. . .. . Hope that help", "Question : I have a zentyal in a vps in the internet that I use to connect some companies with their external offices so far with windows this is not a problem I connect the windows-server to zentyal via openvpn client and configure as many openvpn clients as external offices that they have and they work perfectly but when I try to connect same way using zentyal in a company it fails I mean I can check the option that states allow zentyal to zentyal tunnel . ok the server of the company can connect to the zentyal vps but I cannot download a bundle for normal clients to connect to the same network is there a work arrout to connect both zentyals and normal hosts on a same netork via openvpn If I try to use a normal client bundle in zentyal it doesnt let me connect . .. . Answer : Zentyal to Zentyal connections don t work for normal clients . Zentyal allows you to define more than one VPN server . You should use a separate VPN server for other clients . Note that the two modes have different semantics in regard to how routing works for each of the VPN models . In brief : .. . .. . Zentyal-to-Zentyal VPN tunnels use RIP and exchange the static routes accessible to each server . For normal road-warrior clients networks that needs to be accessed by clients have to be published using the Advertised networks section . In addition it s better practice to use a separate VPN network for road warriors another VPN for server-to-server communications . If I guess correctly you d like to use Zentyal as a normal VPN client using a normal client bundle . It s a requested feature but I believe it s not available . You could configure the OpenVPN client manually in the Zentyal box unmanaged by Zentyal unless you use hooks . Alternatively you could use a Zentyal-to-Zentyal tunnel for all clients but configure Windows clients manually based on the certificates present on the bundle and the Windows OpenVPN configuration-files you already have this way you d be missing RIP route exchange funcionality between Windows and Zentyal but it shall work ." ] }
[ "yes-answer-long", "yes-answer-short" ]
windows-server
UNK_RELATION
pseudo-class@dom@153
pseudo-class -- the pseudo-class of css allows for more specific selection of elements within a document based upon an element s status location in the @placeholder tree structure user action or other factors .
{ "confidence": [ 56.55817794799805, 53.395660400390625, 52.056663513183594, 50.24882125854492, 50.24882125854492, 50.11830139160156, 50.053043365478516, 49.68799591064453, 49.2614631652832, 48.344913482666016, 48.08974838256836, 47.29828643798828, 47.030975341796875, 46.99087142944336, 46.78694534301758, 46.613983154296875, 45.7519645690918, 45.59981918334961, 45.188133239746094, 44.523712158203125, 44.42245864868164, 44.281978607177734, 44.18869400024414, 44.1363525390625, 43.99104309082031, 43.72066116333008, 43.118408203125, 43.10502624511719, 43.011837005615234, 42.70695877075195, 42.70695877075195, 42.68687438964844, 42.68687438964844, 42.4384765625, 42.374977111816406, 42.299983978271484, 41.83246612548828, 41.8143424987793, 41.52769088745117, 41.52769088745117, 41.49933624267578, 41.29631042480469, 41.204673767089844, 40.97137451171875, 40.97137451171875, 40.59293746948242, 40.35597229003906, 40.256141662597656, 40.184959411621094, 40.15463638305664, 39.979270935058594, 39.937957763671875, 39.937957763671875, 39.86524200439453, 39.78282165527344, 39.749786376953125, 39.74271774291992, 39.46942138671875, 39.46942138671875, 39.46427536010742, 39.42949295043945, 39.35312271118164, 39.27591323852539, 39.24612045288086, 39.24612045288086, 39.24612045288086, 39.21875762939453, 39.05534362792969, 38.965274810791016, 38.95901107788086, 38.793148040771484, 38.70137023925781, 38.640472412109375, 38.640472412109375, 38.63630294799805, 38.63630294799805, 38.23124694824219, 37.814781188964844, 37.73936462402344 ], "content": [ "Pseudo-element pseudo-class http : stackoverflow.com questions 8069973 what-is-the-difference-between-a-pseudo-class-and-a-pseudo-element-in-css", ": active is a pseudo-class but : : before creates a pseudo-element .", "There is no : blur pseudo-class in CSS .", ": nth-of-type is a pseudo-class not a pseudo-element .", "1 : first-child is a pseudo-class not a pseudo-element .", "Example pseudo-class code : .. . .. . A page that demonstrates a rendering of the above pseudo-class code .. . .. . Pseudo-elements .. . .. . PSEUDO-ELEMENTS are used to address sub-parts of elements .", "Pseudo-classes may be dynamic in the sense that an element may acquire or lose a pseudo-class while a user interacts with the document .", "Related : CSS negation pseudo-class : not for parent ancestor elements http : stackoverflow.com questions 7084112 css-negation-pseudo-class-not-for-parent-ancestor-elements", "Pseudo-elements .. . .. . Official description .. . .. . Pseudo-elements create abstractions about the document tree beyond those specified by the document language .", "Pseudo-classes .. . .. . Official description .. . .. . The pseudo-class concept is introduced to permit selection based on information that lies outside of the document tree or that cannot be expressed using the other simple selectors .", "A pseudo-class filters existing elements .", ".. . Pseudo-elements match virtual elements that don t exist explicitly in the document tree .", "The : active pseudo-class applies while an element is being activated by the user .", "Pseudo-Class .. . .. . A pseudo-class is way of selecting certain parts of a HTML document based in principle not on the HTML document tree itself and its elements or on characteristics like name attributes or contents but on other phantom conditions like language encoding or the dynamic state of an element .", "From the W3C wiki http : www.w3.org wiki CSS Selectors pseudo-classes 3aroot : .. . .. . The : root pseudo-class represents an element that is the root of the document .", ": : selection is another example of a pseudo-element .", "Technically it doesn t work like that this is just to help you understand why the attribute doesn t support pseudo-class or pseudo-element styles it has more to do with how pseudo-classes and pseudo-elements provide abstractions of the document tree that can t be expressed in the document language .", "However you could style an svg document with css and now your : root pseudo-class referd to the svg element .", "setting-css-pseudo-class-rules-from-javascript http : stackoverflow.com questions 311052 setting-css-pseudo-class-rules-from-javascript .. . 2 .", "I would create an effect with CSS using pseudo-class : : before : active .", "This is the : active pseudo-class .", "You can t style a pseudo-class on a particular element alone in the same way that you can t have a pseudo-class in an inline style .. . attribute as there is no selector .", "Your question is confusing because you appear to be using the terms pseudo-class and pseudo-element interchangeably and you have both of these things in your CSS .", "First letter pseudo-class works perfect for p element but not for anchor links .", "Is there a CSS pseudo-class for elements with no text nodes like so : .. . .. . I know that there is the : empty pseudo-class but the thing I want should ignore tags.. . .. . .. . For example : .. . .. . Any solution for this", "Extracted from Setting CSS Pseudo Class Rules From Javascript http : stackoverflow.com questions 311052 setting-css-pseudo-class-rules-from-javascript .. . .. . You actually can change the value of a class on hover or with : after or whatever pseudo-class you want with javascript : .. . .. . I hope this helps anyone .", "Namespaces as part of the document language do not apply directly to pseudo-classes or pseudo-elements as they re defined in CSS and not the document language e.g .", "The important nature of pseudo-classes is stated in the very first sentence : the pseudo-class concept .. . permit selection .", "That is a pseudo-class .", "A pseudo-class is a simple selector .", "is there a proposal for such a pseudo-class", ": .. . .. . .. . .. . You don t need pseudo-class .", "Similarly this applies to the : hover pseudo-class .", "In CSS it is possible to style placeholder text within an input using a combination of vendor-specific pseudo-classes and pseudo-elements to get the best cross-browser coverage .", "In CSS when you hover your mouse over an element you can specify views for it using the : hover pseudo-class : .. . .. . How can you use jquery to add or turn on this pseudo-class", "Selectors 4 https : drafts.csswg.org selectors-4 pseudo-element-states says that whether a pseudo-element can have user action pseudo-classes depends on the pseudo-element .", "Pseudo-Elements 4 which defines the : : placeholder pseudo-element https : drafts.csswg.org css-pseudo-4 placeholder-pseudo does not comment on whether or not it can have pseudo-classes .", "To wit : the : focus pseudo-class represents an element that is in focus it does not represent an element that has just received focus nor does there exist a : blur pseudo-class to represent an element that has just lost-focus .", "Notice the pseudo-element comes after the pseudo-class and in fact at the very end of the entire selector .", "It seems IE doesn t care for text-decoration : none defined for a : before pseudo-element or pseudo-class .", "This has nothing to do with : required : : before though given that most form elements are replaced elements it s unlikely you ll find that pseudo-class and that pseudo-element together .", "Example .. . .. . The following example will add a language-tag to every quote on a given page using the pseudo-class : lang and the pseudo-element : : after : .. . .. . TL DR .. . .. . Pseudo-classes act as simple selectors in a sequence of selectors and thereby classify elements on non-presentational characteristics pseudo-elements create new virtual elements .", "However for user-action pseudo-classes such as : hover 1 if you need this effect to apply only when the user interacts with the pseudo-element itself but not the a element then this is not possible other than through some obscure layout-dependent workaround .", "Pseudo-class names are case-insensitive .", "A pseudo-class is state of something in the DOM .", "Related question : Manipulating CSS pseudo-elements using jQuery e.g .", "There was going to be a : contains pseudo-class but it was cut for reasons unknown .", ".. . A pseudo-element is made of two colons : : followed by the name of the pseudo-element .", "5.10 Pseudo-elements and pseudo-classes http : www.w3.org TR CSS21 selector.html pseudo-elements", "If you simply wish to apply styles to a : before pseudo-element when the a element matches a pseudo-class you need to write a : hover : before or a : visited : before instead .", "And exactly how does this method gets to change the CSS attributes of the .class special : after pseudo-element like the background-color or anything else", ".. . A pseudo-class always consists of a colon : followed by the name of the pseudo-class and optionally by a value between parentheses .", "I know there is an official CSS3 : checked pseudo-class but is there an : unchecked pseudo-class and do they have the same browser support", ".. . This : : notation is introduced by the current document in order to establish a discrimination between pseudo-classes and pseudo-elements .", "As implied by the text standard CSS pseudo-elements cannot currently have pseudo-classes .", "Pseudo-elements match virtual elements .", "A slightly more widely-supported selector requires knowledge of the document language since the link pseudo-classes themselves match different elements based on document semantics .", "Pseudo-elements are rather limited .", "There is no mention of pseudo-elements here .", "The : disabled pseudo-class decouples the selector from the document you re working with .", "This specific order of pseudo-classes and pseudo-elements is stated in the spec http : www.w3.org TR selectors selector-syntax : .. . .. . One pseudo-element may be appended to the last sequence of simple selectors in a selector .", "The original pseudo-class defined dynamic states of an element that are entered and exited over time or through user intervention .", "A pseudo-element is a new fake element .", "I m trying to use this pseudo-class : .. . .. . And here the jquery .. . .. . 1- is there a way to make this css work", "However there s another way : .. . .. . http : www.4pmp.com 2009 11 dynamic-css-pseudo-class-styles-with-jquery", "I m looking for a way to change the CSS rules for pseudo-class selectors such as : link : hover etc .", "This question already has an answer here : .. . .. . Selecting and manipulating CSS pseudo-elements such as : : before and : : after using jQuery questions 5041494 selecting-and-manipulating-css-pseudo-elements-such-as-before-and-after-usin 14 answers .. . .. . I have a pseudoclass element : after to be specific and I want to scroll to top when I click on it .", "There aren t major or minor CSS pseudo-classes .", "@jbyrd : before : after are pseudo elements not classes .", "Only for the : hover pseudo-class of course :", "css-pseudo-classes-with-jquery http : stackoverflow.com questions 486159 css-pseudo-classes-with-jquery", "To address multiple pseudo-elements on a single element structure multiple style selector declaration statements must be made .", ": visited would then be how you select for that pseudo-class .", "There s a proposal in my head for such a pseudo-class .", "Sinlge colon : designates pseudo-classes and double colon : : designates pseudo-elements .", "Please do not confuse pseudo-classes and pseudo-elements - they are two different things .", "Of course it s worth clarifying that the issue itself has no connection with pseudo-class pseudo-element selectors but is as you point out a layout issue .", "And if not why does CSS even have a language pseudo-class when the attribute selector does the exact same thing", "I have a pseudo-class element defined : .. . .. . With this I am getting placeholder like functionality on DIV element ." ] }
{ "confidence": [ 67.30712127685547, 67.17970275878906, 62.218536376953125, 59.98365020751953, 59.594181060791016, 58.03125762939453, 57.54753112792969, 57.18377685546875, 56.10025405883789, 56.07395935058594, 54.886783599853516, 54.21143341064453, 54.14768981933594, 53.35141372680664, 53.1540641784668, 53.03584289550781, 52.09326171875 ], "content": [ "Question : Things like a : link or div : : after .. . .. . .. . Information on the difference seems scarce . Comment : @ imeVidas to what post link Comment : I think the spec http : www.w3.org TR CSS2 selector.html is pretty clear.. . Comment : @tybro0103 I didn t find any . I guess this indeed has never been asked here.. . I found this though : stackoverflow.com questions 7757943 what-is-a-pseudo-element http : stackoverflow.com questions 7757943 what-is-a-pseudo-element Comment : @zzzzBov I feel like I need a translator to understand that : Comment : Thank you for posting this question . I m not sure why I hadn t thought of posting it myself after my recent blitzkrieg on questions with the pseudo-selector tag http : meta.stackexchange.com questions 111323 retagging-questions-with-the-pseudo-selector-tag .. . .. . Answer : The CSS 3 selector recommendation http : www.w3.org TR 2011 REC-css3-selectors-20110929 is pretty clear about both but I ll try to show the differences anyway . Pseudo-classes .. . .. . Official description .. . .. . The pseudo-class concept is introduced to permit selection based on information that lies outside of the document tree or that cannot be expressed using the other simple selectors . .. . A pseudo-class always consists of a colon : followed by the name of the pseudo-class and optionally by a value between parentheses . .. . Pseudo-classes are allowed in all sequences of simple selectors contained in a selector . Pseudo-classes are allowed anywhere in sequences of simple selectors after the leading type selector or universal selector possibly omitted . Pseudo-class names are case-insensitive . Some pseudo-classes are mutually exclusive while others can be applied simultaneously to the same element . Pseudo-classes may be dynamic in the sense that an element may acquire or lose a pseudo-class while a user interacts with the document . Source http : www.w3.org TR 2011 REC-css3-selectors-20110929 pseudo-classes .. . .. . What does this mean The important nature of pseudo-classes is stated in the very first sentence : the pseudo-class concept .. . permit selection . It enables the author of an stylesheet to differ between elements based on information that lies outside of the document tree for example the current status of a link : active : visited . Those aren t saved anywhere in the DOM and there exists no DOM interface to access these options . On the other hand : target could be accessed via DOM manipulation you could use window.location.hash in order to find the object with JavaScript but this cannot be expressed using the other simple selectors . So basically a pseudo-class will refine the set of selected elements as any other simple selector http : www.w3.org TR 2011 REC-css3-selectors-20110929 selector-syntax in a sequence of simple selectors http : www.w3.org TR 2011 REC-css3-selectors-20110929 selector-syntax . Note that all simple selectors in a sequence of simple selectors will be evaluated at the same time . For a complete list of pseudo-class check the CSS3 selector recommendation . Example .. . .. . The following example will color all even rows gray ccc all uneven rows which aren t dividable by 5 white and every other row magenta . Pseudo-elements .. . .. . Official description .. . .. . Pseudo-elements create abstractions about the document tree beyond those specified by the document language . For instance document languages do not offer mechanisms to access the first letter or first line of an element s content . Pseudo-elements allow authors to refer to this otherwise inaccessible information . Pseudo-elements may also provide authors a way to refer to content that does not exist in the source document e.g . the : : before and : : after pseudo-elements give access to generated content . .. . A pseudo-element is made of two colons : : followed by the name of the pseudo-element . .. . This : : notation is introduced by the current document in order to establish a discrimination between pseudo-classes and pseudo-elements . For compatibility with existing style sheets user agents must also accept the previous one-colon notation for pseudo-elements introduced in CSS levels 1 and 2 namely : first-line : first-letter : before and : after . This compatibility is not allowed for the new pseudo-elements introduced in this specification . .. . Only one pseudo-element may appear per selector and if present it must appear after the sequence of simple selectors that represents the subjects of the selector . .. . Note : A future version of this specification may allow multiple pseudo-elements per selector . Source http : www.w3.org TR 2011 REC-css3-selectors-20110929 pseudo-elements .. . .. . What does this mean The most important part here is that pseudo-elements allow authors to refer to . . otherwise inaccessible information and that they may also provide authors a way to refer to content that does not exist in the source document e.g . the : : before and : : after pseudo-elements give access to generated content . . The biggest difference is that they actually create a new virtual element on which rules and even pseudo-class selectors can be applied to . They don t filter elements they basically filter content : : first-line : : first-letter and wrap it in a virtual container which the author can style however he want well almost . For example the : : first-line pseudo-element cannot be reconstructed with JavaScript as it heavily depends on the current used font the fonts size the elements width floating elements and probably the time of the day . Well that s not entirely true : one could still calculate all those values and extract the first line however doing so is a very cumbersome activity . I guess the biggest difference is that only one pseudo-element may appear per selector . The note says that this could be subject to change but as of 2012 I don t believe we see any different behavior in the future it s still in CSS4 http : dev.w3.org csswg selectors4 pseudo-elements . Example .. . .. . The following example will add a language-tag to every quote on a given page using the pseudo-class : lang and the pseudo-element : : after : .. . .. . TL DR .. . .. . Pseudo-classes act as simple selectors in a sequence of selectors and thereby classify elements on non-presentational characteristics pseudo-elements create new virtual elements . References .. . .. . W3C .. . .. . Selectors Level 3 http : www.w3.org TR 2011 REC-css3-selectors-20110929 .. . 4 . Selector syntax http : www.w3.org TR 2011 REC-css3-selectors-20110929 selector-syntax .. . 6.6 Pseudo-classes http : www.w3.org TR 2011 REC-css3-selectors-20110929 pseudo-classes .. . 7 . Pseudo-elements http : www.w3.org TR 2011 REC-css3-selectors-20110929 pseudo-elements .. . CSS 2.1 Specification http : www.w3.org TR CSS21 outdated but still informative .. . 5.2 Selector syntax http : www.w3.org TR CSS21 selector.html selector-syntax : .. . .. . A simple selector is either a type selector or universal selector followed immediately by zero or more attribute selectors ID selectors or pseudo-classes in any order . The simple selector matches if all of its components match . 5.10 Pseudo-elements and pseudo-classes http : www.w3.org TR CSS21 selector.html pseudo-elements Comment : Thanks for writing this now I can scrap the draft that I last touched 8 months ago . Comment : I agree with DanMan s comment on SLaks answer in that pseudo-classes don t really act as filters but more as descriptors . For example : not .someclass : nth-child even doesn t mean to filter out elements that don t have .someclass and among the remaining elements filter out the even occurrences . Instead it represents any element that is both : not .someclass and : nth-child even of its parent at the same time . More in-depth explanations can be found in this answer http : stackoverflow.com a 11692585 and this answer http : stackoverflow.com a 10835694 . Comment : @BoltClock : I believe I like the term characteristic-classifier most since that s what they were somewhat originally described as in CSS2 : Pseudo-classes classify elements on characteristics other than their name http : www.w3.org TR CSS2 selector.html pseudo-elements . However I still haven t found the exact wording I m happy with . Comment : @zeta this is a really great response - thank you for clarifying the difference", "Question : Things like a : link or div : : after .. . .. . .. . Information on the difference seems scarce . Comment : @ imeVidas to what post link Comment : I think the spec http : www.w3.org TR CSS2 selector.html is pretty clear.. . Comment : @tybro0103 I didn t find any . I guess this indeed has never been asked here.. . I found this though : stackoverflow.com questions 7757943 what-is-a-pseudo-element http : stackoverflow.com questions 7757943 what-is-a-pseudo-element Comment : @zzzzBov I feel like I need a translator to understand that : Comment : Thank you for posting this question . I m not sure why I hadn t thought of posting it myself after my recent blitzkrieg on questions with the pseudo-selector tag http : meta.stackexchange.com questions 111323 retagging-questions-with-the-pseudo-selector-tag .. . .. . Answer : Pseudo-Class .. . .. . A pseudo-class is way of selecting certain parts of a HTML document based in principle not on the HTML document tree itself and its elements or on characteristics like name attributes or contents but on other phantom conditions like language encoding or the dynamic state of an element . The original pseudo-class defined dynamic states of an element that are entered and exited over time or through user intervention . CSS2 expanded on this concept to include virtual conceptual document components or inferred portions of the document tree e.g . first-child . Pseudo-classes operate as-if phantom classes were added to various elements . RESTRICTIONS : Unlike pseudo-elements pseudo-classes can appear anywhere in selector chain . Example pseudo-class code : .. . .. . A page that demonstrates a rendering of the above pseudo-class code .. . .. . Pseudo-elements .. . .. . PSEUDO-ELEMENTS are used to address sub-parts of elements . They allow you to set style on a part of an element s content beyond what is specified in the documents . In other words they allow logical elements to be defined which are not actually in the document element tree . Logical elements allow implied semantic structure to be addressed in CSS selectors . RESTRICTIONS : Pseudo-elements may only be applied to external and document-level contexts - not to in-line styles . Pseudo-elements are restricted in where they can appear in a rule . They may only appear at the end of a selector chain after the subject of the selector . They should come after any class or ID names found in the selector . Only one pseudo-element can be specified per selector . To address multiple pseudo-elements on a single element structure multiple style selector declaration statements must be made . Pseudo-elements can be used for common typographic effects such as initial caps and drop caps . They can also address generated content that is not in the source document with the before and after An example style sheet of some pseudo-elements with properties and values added follows . The following rule selects the first letter of a heading 1 and sets the font to 2em cursive with a green background . First-letter selects the first rendered letter character for a block-level element . .. . .. . Sources : Link http : www.d.umn.edu lcarlson csswork selectors pseudo dif.html", "Question : I know there is a : focus selector . I can t seem to find use of or documentation of a : blur selector . Is there one .. . Answer : There is no : blur pseudo-class in CSS . The dynamic pseudo-classes http : www.w3.org TR selectors dynamic-pseudos like other pseudo-classes and in fact all other selectors represent states they do not represent events or transitions between states in terms of the document tree . To wit : the : focus pseudo-class represents an element that is in focus it does not represent an element that has just received focus nor does there exist a : blur pseudo-class to represent an element that has just lost-focus . Similarly this applies to the : hover pseudo-class . While it represents an element which has a pointing device over it there is neither a : mouseover pseudo-class for an element that has just been pointed to nor a : mouseout pseudo-class for an element that has just been pointed away from . If you need to apply styles to an element that is not in focus you have two choices : .. . .. . 1 . Use : not : focus with less browser support : .. . .. . input : not : focus button : not : focus .. . Styles for only form inputs and buttons that do not have focus .. . .. . .. . .. . 2 . Declare a rule that applies to any element regardless of its focus state and override for elements that have focus : .. . .. . input button .. . Styles for all form inputs and buttons .. . .. . .. . input : focus button : focus .. . Styles for only form inputs and buttons that have focus .. . Comment : would .button : not : focus equal .button They elect the same but the latter has a specificity of 10 and the first a specificity of 20 . Comment : @Torsten Walter : No they re different .button will match all elements with that class whether or not they are in focus while .button : not : focus will never match the elements that are matched by .button : focus . The reason why you use .button and .button : focus together is to take advantage of the cascade . But yes the latter is less specific . Comment : Right . I didn t think about it from that perspective . Comment : What if you want to style something only after a user focused on it the left For example you wouldn t want to shout at someone for not entering a password when they load the page only after they left the input . Comment : @Marcel : Then you will need to use a JavaScript event handler for example to update the element with a class corresponding to your desired styles . CSS only works with states and not events which means as far as CSS is concerned an element is either in focus or not in focus . In particular it doesn t know whether or not the element has been focused since the page was loaded unless you tell it by updating the DOM after the fact something only a script can do .", "Question : The CSS language pseudo-class to allow us specify different styles for different languages like so : .. . .. . However this doesn t work in IE7 so I ve been using an attribute selector : .. . .. . They seem to do the same thing but are there any subtle differences And if not why does CSS even have a language pseudo-class when the attribute selector does the exact same thing .. . Answer : According to the spec http : www.w3.org TR CSS2 selector.html lang .. . .. . If the document language specifies how the human-language of an element is determined it is possible to write selectors in CSS that match an element based on its language . For example in HTML HTML4 the language is determined by a combination of the lang attribute the META element and possibly by information from the protocol such as HTTP headers . XML uses an attribute called xml : lang and there may be other document language-specific methods for determining the language . .. . The pseudo-class : lang C matches if the element is in language C . Whether there is a match is based solely on the identifier C being either equal to or a hyphen-separated substring of the element s language value in the same way as-if performed by the operator . The matching of C against the element s language value is performed case-insensitively for characters within the ASCII range . The identifier C does not have to be a valid language name . That is : .. . .. . 1 . It works for the many other ways of specifying a language besides the simple lang attribute . Most importantly as detailed in @BoltClock s answer it will use the language specified in whatever manner on a container element not just on the element itself since language is inherited by child elements . 2 . It uses semantics i.e . : lang en and : lang us will both match span lang en-us . 3 . It is guaranteed to be case-insensitive whereas .. . .. . The case-sensitivity of attribute names and values in selectors depends on the document language . Comment : Thank you for your answer", "Question : Is it possible to have pseudo-classes using inline styles .. . .. . Example : .. . .. . I know the above HTML won t work but is there something similar that will P.S . I know I should use an external style sheet and I do . I was just curious if this could be done using inline styles . Comment : Good question . It isn t possible afaik but that s not a limitation I ve ever thought about before . Comment : possible duplicate of Is is possible to create inline pseudo styles http : stackoverflow.com questions 986618 is-is-possible-to-create-inline-pseudo-styles .. . Answer : No this is not possible . In documents that make use of CSS an inline style attribute can only contain property declarations the same set of statements that appears in each ruleset in a stylesheet . From the Style Attributes spec http : www.w3.org TR css-style-attr : .. . .. . The value of the style attribute must match the syntax of the contents of a CSS declaration block http : www.w3.org TR CSS21 syndata.html rule-sets excluding the delimiting braces whose formal grammar is given below in the terms and conventions of the CSS core grammar http : www.w3.org TR CSS21 syndata.html syntax : .. . .. . .. . declaration-list .. . : S declaration S declaration .. . .. . .. . .. . Neither selectors including pseudo-elements nor at-rules nor any other CSS construct are allowed . Think of inline styles as the styles applied to some anonymous super-specific ID selector : those styles only apply to that one very element with the style attribute . They take precedence over an ID selector in a stylesheet too if that element has that ID . Technically it doesn t work like that this is just to help you understand why the attribute doesn t support pseudo-class or pseudo-element styles it has more to do with how pseudo-classes and pseudo-elements provide abstractions of the document tree that can t be expressed in the document language . Note that inline styles participate in the same cascade as selectors in rule sets and take highest precedence in the cascade important notwithstanding . So they take precedence even over pseudo-class states . Allowing pseudo-classes or any other selectors in inline styles would possibly introduce a new cascade level and with it a new set of complications . Note also that very old revisions of the Style Attributes spec did originally propose allowing this http : stackoverflow.com questions 18133155 inline-css-pseudo-classes however it was scrapped presumably for the reason given above or because implementing it was not a viable option .", "Question : When using namespaces in CSS you can select for example any div element in any or no namespace by using a namespaced type selector : .. . .. . Is it valid CSS to namespace a pseudo-class For example : .. . .. . It seems to work in WebKit based browsers and it seems to not work in IE9 below IE9 does not support namespaces at all and Firefox . I don t care what browsers it does doesn t work in I just need to know whether it is a valid construct . Here s a fiddle http : jsfiddle.net Nt29Z . From what I can make out in the CSS grammar http : www.w3.org TR selectors w3cselgrammar it is not valid . But I may be misreading the grammar . Comment : Please do not confuse pseudo-classes and pseudo-elements - they are two different things . Comment : Oh yeah sorry I do understand the difference notice that the question does say pseudo-class I just got the title wrong Comment : I just came across your bug report : bugs.webkit.org show bug.cgi id 89748 https : bugs.webkit.org show bug.cgi id 89748 .. . Answer : Namespaces as part of the document language do not apply directly to pseudo-classes or pseudo-elements as they re defined in CSS and not the document language e.g . XML . Element types and attributes however are defined in the document language as opposed to CSS which is why they can be namespaced . Consequently in a sequence of simple selectors the universal selector specifically means any type . The universal selector is only implied for other simple selectors and pseudo-elements when used without a namespace this is why selectors like .foo target type text : first-child and : : before are valid and generally used with languages like HTML where CSS is most commonly used for styling . From the spec http : www.w3.org TR selectors universal-selector : .. . .. . If a universal selector represented by i.e . without a namespace prefix is not the only component of a sequence of simple selectors http : www.w3.org TR selectors sequence selectors or is immediately followed by a pseudo-element http : www.w3.org TR selectors pseudo-elements then the may be omitted and the universal selector s presence implied . Therefore in your example the selector is invalid because there s neither a universal selector or a type selector between the and the : : .. . .. . If you specify a namespace you must specify the universal selector if you don t select a specific type instead : .. . .. . The same goes when selecting elements in an ns namespace : .. . .. . Or when selecting elements that are not in a namespace : Comment : So WebKit has got it wrong That is what I thought so thanks for the clarification : Comment : Could you link-to the source : - Comment : @Matsemann : Just in the nick of time - I always forget . Comment : @James Allardice : Yes I d say WebKit has got it wrong .", "Question : Things like a : link or div : : after .. . .. . .. . Information on the difference seems scarce . Comment : @ imeVidas to what post link Comment : I think the spec http : www.w3.org TR CSS2 selector.html is pretty clear.. . Comment : @tybro0103 I didn t find any . I guess this indeed has never been asked here.. . I found this though : stackoverflow.com questions 7757943 what-is-a-pseudo-element http : stackoverflow.com questions 7757943 what-is-a-pseudo-element Comment : @zzzzBov I feel like I need a translator to understand that : Comment : Thank you for posting this question . I m not sure why I hadn t thought of posting it myself after my recent blitzkrieg on questions with the pseudo-selector tag http : meta.stackexchange.com questions 111323 retagging-questions-with-the-pseudo-selector-tag .. . .. . Answer : From the Sitepoint docs : .. . .. . A pseudo-class is similar to a class in HTML but it s not specified explicitly in the markup . Some pseudo-classes are dynamic they re applied as a result-of user interaction with the document . - http : reference.sitepoint.com css pseudoclasses . These would be things like : hover : active : visited . .. . Pseudo-elements match virtual elements that don t exist explicitly in the document tree . Pseudo-elements can be dynamic inasmuch as the virtual elements they represent can change for example when the width of the browser window is altered . They can also represent content that s generated by CSS rules . - http : reference.sitepoint.com css pseudoelements . These would be things like before : after : first-letter .", "Question : How to write : hover and : visited condition for a : before I m trying a : before : hover but it s not working .. . Answer : This depends on what you re actually trying to do . If you simply wish to apply styles to a : before pseudo-element when the a element matches a pseudo-class you need to write a : hover : before or a : visited : before instead . Notice the pseudo-element comes after the pseudo-class and in fact at the very end of the entire selector . Notice also that they are two different things calling them both pseudo-selectors is going to confuse you once you run into syntax problems such as this one . If you re writing CSS3 you can denote a pseudo-element with double colons to make this distinction clearer . Hence a : hover : : before and a : visited : : before . But if you re developing for legacy browsers such as IE8 and older then you can get away with using single colons just fine . This specific order of pseudo-classes and pseudo-elements is stated in the spec http : www.w3.org TR selectors selector-syntax : .. . .. . One pseudo-element may be appended to the last sequence of simple selectors in a selector . .. . A sequence of simple selectors is a chain of simple selectors that are not separated by a combinator . It always begins with a type selector or a universal selector . No other type selector or universal selector is allowed in the sequence . .. . A simple selector is either a type selector universal selector attribute selector class selector ID selector or pseudo-class . A pseudo-class is a simple selector . A pseudo-element however is not even though it resembles a simple selector . However for user-action pseudo-classes such as : hover 1 if you need this effect to apply only when the user interacts with the pseudo-element itself but not the a element then this is not possible other than through some obscure layout-dependent workaround . As implied by the text standard CSS pseudo-elements cannot currently have pseudo-classes . In that case you will need to apply : hover to an actual child element instead of a pseudo-element . .. . .. . 1Of course this does not apply to link pseudo-classes such as : visited as in the question since pseudo-elements aren t links . Comment : It should be pointed out that that puts the hover on the parent element - which causes the decoration to be applied even if the : : after pseudoelement is not under the mouse as long as its parent is . Comment : It should also be noted that there are a number of things that don t respond to this because of the way the layout rules are specified e.g . text-decoration . Comment : @Chris Krycho : Indeed - I actually happen to have an explanation for this specific issue with regard to pseudo-elements here http : stackoverflow.com questions 11474780 hoverbefore-text-decoration-none-has-no-effects 11481121 11481121 . Of course it s worth clarifying that the issue itself has no connection with pseudo-class pseudo-element selectors but is as you point out a layout issue . Comment : @BoltClock I upvoted that answer very shortly after I left this comment . Huzzah . Comment : Sinlge colon : designates pseudo-classes and double colon : : designates pseudo-elements . So it should be a : hover : : before", "Question : This question already has an answer here : .. . .. . Selecting and manipulating CSS pseudo-elements such as : : before and : : after using jQuery questions 5041494 selecting-and-manipulating-css-pseudo-elements-such-as-before-and-after-usin 14 answers .. . .. . I have a pseudoclass element : after to be specific and I want to scroll to top when I click on it . Somehow this does not work.. . I tried this : .. . .. . And it does not work . When I use just the normal class it works perfectly : .. . .. . So I assume the code works jquery works but somehow not with a pseudoclass selector . How can I fix this To use a normal class is not an option it has to be my : after class selector . Thank you .. . Answer : As far as I ve heard you can t select or attach events to pseudo elements because they don t actually exist in the DOM . As linked in a comment above you can change the attribute that the pseudo-element displays using Javascript since you target the parent but not the psuedo .", "Question : In CSS when you hover your mouse over an element you can specify views for it using the : hover pseudo-class : .. . .. . How can you use jquery to add or turn on this pseudo-class Typically in jQuery if you want to add a class you would do : .. . .. . I have tried hover but this literally adds a class named hover to the element . If anyone knows what to write please let me know Thanks Comment : You want to use jQuery to add a class to an element when the mouse hovers it Comment : This may help : forum.jquery.com topic http : forum.jquery.com topic jquery-triggering-css-pseudo-selectors-like-hover Comment : Related question : Manipulating CSS pseudo-elements using jQuery e.g . : before and : after http : stackoverflow.com questions 5041494 manipulating-css-pseudo-elements-using-jquery-e-g-before-and-after 21709814 21709814 .. . Answer : I think there is no way to do that with jQuery or javascript . You can find the same answer in these two questions : .. . .. . 1 . setting-css-pseudo-class-rules-from-javascript http : stackoverflow.com questions 311052 setting-css-pseudo-class-rules-from-javascript .. . 2 . css-pseudo-classes-with-jquery http : stackoverflow.com questions 486159 css-pseudo-classes-with-jquery", "Question : In CSS when you hover your mouse over an element you can specify views for it using the : hover pseudo-class : .. . .. . How can you use jquery to add or turn on this pseudo-class Typically in jQuery if you want to add a class you would do : .. . .. . I have tried hover but this literally adds a class named hover to the element . If anyone knows what to write please let me know Thanks Comment : You want to use jQuery to add a class to an element when the mouse hovers it Comment : This may help : forum.jquery.com topic http : forum.jquery.com topic jquery-triggering-css-pseudo-selectors-like-hover Comment : Related question : Manipulating CSS pseudo-elements using jQuery e.g . : before and : after http : stackoverflow.com questions 5041494 manipulating-css-pseudo-elements-using-jquery-e-g-before-and-after 21709814 21709814 .. . Answer : You can t force a certain pseudo-class to apply using jQuery . That s not how pseudo-classes especially dynamic pseudo-classes work since they re designed to select based on information that cannot be expressed via the DOM spec http : www.w3.org TR selectors pseudo-classes . You have to specify another class to use then add that class using jQuery instead . Something like this : .. . .. . Alternatively you could hunt for the .element class name : hover rule and add that class using jQuery itself without hardcoding it into your stylesheet . It s the same principle though .", "Question : It seems IE doesn t care for text-decoration : none defined for a : before pseudo-element or pseudo-class . Here is a JS Fiddle : http : jsfiddle.net 9N35f .. . I d expect the to lose the underline . It does in FF Chrome and Safari but not in IE . Tested with IE10 and IE9 . The question : .. . .. . Any workarounds that I could try to make the : before element lose the underline Ideally in IE9+ .. . .. . Is there a bug report for this somewhere Or is it actually by the standards Comment : Pseudo-element pseudo-class http : stackoverflow.com questions 8069973 what-is-the-difference-between-a-pseudo-class-and-a-pseudo-element-in-css .. . Answer : This works for me : .. . .. . html : .. . .. . css : .. . .. . In this the before tag is still part of the anchor . Comment : We all can make rocket ships by adding new HTML elements : The trick is to do so without changing HTML structure . Why Oh I d love to change the HTML structure but unfortunately in this case It s out of my hands . It s generated by a third party JavaScript library blah blah.. .", "Question : Can t seem to find much information about this . Smashing Magazine http : coding.smashingmagazine.com 2011 03 30 how-to-use-css3-pseudo-classes seems to essentially say html and : root are the same thing but surely there must be a difference .. . Answer : From the W3C wiki http : www.w3.org wiki CSS Selectors pseudo-classes 3aroot : .. . .. . The : root pseudo-class represents an element that is the root of the document . In HTML this is always the HTML element . CSS is a general purpose styling language that it can be used with other document-types not only with HTML such as SVG . From the specification http : www.w3.org TR CSS21 emphasis mine : .. . .. . This specification defines Cascading Style Sheets level 2 revision 1 CSS 2.1 . CSS 2.1 is a style sheet language that allows authors and users to attach style e.g . fonts and spacing to structured documents e.g . HTML documents and XML applications . Comment : Thanks wasn t aware that you could style SVGs with CSS like that . Accepted answer for citing source . : Comment : Not only SVG but anything that s based on XML . Including XHTML .", "Question : The CSS language pseudo-class to allow us specify different styles for different languages like so : .. . .. . However this doesn t work in IE7 so I ve been using an attribute selector : .. . .. . They seem to do the same thing but are there any subtle differences And if not why does CSS even have a language pseudo-class when the attribute selector does the exact same thing .. . Answer : In HTML both the : lang pseudo-class and the attribute selector will match an element with the corresponding lang attribute . The difference is that a browser may have other ways of determining the language of a given element when testing against the : lang pseudo-class which may be defined by the document language and or the implementation whereas an attribute selector will only check an element for that given attribute without any accompanying document-based semantics . For example in HTML the pseudo-class will also match any of the element s descendants for which there isn t a different lang depending on how a browser determines the language for those descendants . Usually the descendants will inherit the language attribute from their ancestor if it is not explicitly set . From the spec http : www.w3.org TR selectors lang-pseudo : .. . .. . The difference between : lang C and the operator is that the operator only performs a comparison against a given attribute on the element while the : lang C pseudo-class uses the UAs knowledge of the document s semantics to perform the comparison . .. . In this HTML example only the BODY matches lang fr because it has a LANG attribute but both the BODY and the P match : lang fr because both are in French . The P does not match the lang fr because it does not have a LANG attribute . .. . .. . body lang fr .. . p Je suis fran ais . p .. . body .. . .. . .. . In your example the following selector will also match your .foo element : .. . .. . But the following selectors won t if it doesn t have its own lang attribute set : .. . .. . As for browser support the : lang pseudo-class is supported starting from IE8 so IE7 really is the only browser you will be unable to support by using the pseudo-class over the attribute selector . Comment : Excellent explanation thank you Comment : Is the xml : lang attribute invisible to web browser since a web browser is an HTML parser and not an XML parser I ve been trying to use the selectors listed in this w3 article http : www.w3.org International questions qa-css-lang via user CSS but they don t work on this webpage http : www7a.biglobe.ne.jp nifongo av t23 1.htm . The html element on that Japanese webpage only specifies xml : lang attribute and not the lang attribute . Comment : @3to5businessdays : Yes although I should point out that modern browsers actually have both HTML and XML parsers - which one is used is determined by the content-type given by the server . Regardless if the html element only contains an xml : lang attribute and not a lang attribute then it is invalid . This is because in HTML only the lang attribute applies and that is the reason why the : lang pseudo isn t matching .", "Question : How can I select a certain element in a list of elements I have the following : .. . .. . I have the CSS class div.myclass doing things that applies to all obviously but I also wanted to be able to select the first second or third div of class .myclass like this regardless of where they are in the markup : .. . .. . Almost like the jQuery index selection .eq index which is what I am using currently but I need a no-script alternative . To be specific I am looking for pseudo selectors not things like adding another class or using IDs to make things work . Comment : How about the CSS s nth-child http : reference.sitepoint.com css pseudoclass-nthchild did you try that... . Note : This works in modern browsers only Comment : That note seems to be synonymous to No IE . Comment : @extraneon : Yup you got it right : Comment : This would not work since there are no uniform parent containers which is why i wanted to select based on class name occurrence rather . I would have to look at each and every instance and find out the parent tag id or class in order to select the child . Doing which does not give me uniformity and is difficult to read and would also need to be updated if parent objects attributes change . Comment : nth-child is now supported by IE 9+ . .. . Answer : Yes you can do this . For example to style the td tags that make up the different columns of a table you could do something like this : Comment : maybe nth child would be a better solution : w3.org TR selectors nth-child-pseudo http : www.w3.org TR selectors nth-child-pseudo Comment : -1 The question asks about picking the nth of a set of unrelated elements with class names not the nth child .", "Question : I m looking for a way to change the CSS rules for pseudo-class selectors such as : link : hover etc . from JavaScript . So an analogue of the CSS code : a : hover color : red in JS . I couldn t find the answer anywhere else if anyone knows that this is something browsers do not support that would be a helpful result as well . .. . Answer : You can t style a pseudo-class on a particular element alone in the same way that you can t have a pseudo-class in an inline style .. . attribute as there is no selector . You can do it by altering the stylesheet for example by adding the rule : .. . .. . assuming each element you want to affect has a unique ID to allow it to be selected . In theory the document you want is http : www.w3.org TR DOM-Level-2-Style Overview.html which means you can given a pre-existing embedded or linked stylesheet using syntax like : .. . .. . IE of course requires its own syntax : .. . .. . Older and minor browsers are likely not to support either syntax . Dynamic stylesheet-fiddling is rarely done because it s quite annoying to get right rarely needed and historically troublesome . Comment : +1 very useful stuff Comment : Why wasn t this chosen as answer Comment : More specific reference URLs : - w3.org TR DOM-Level-2-Style css.html CSS-CSSStyleSheet http : www.w3.org TR DOM-Level-2-Style css.html CSS-CSSStyleSheet - developer.mozilla.org en DOM CSSStyleSheet insertRule https : developer.mozilla.org en DOM CSSStyleSheet insertRule - developer.apple.com library safari documentation http : developer.apple.com library safari documentation AppleApplications Reference WebKitDOMRef CSSStyleSheet idl Classes CSSStyleSheet index.html apple ref js instm CSSStyleSheet insertRule unsignedlong 28inDOMString inunsignedlong 29 Comment : Firefox : Error : The operation is insecure . Comment : Manipulating the stylesheet just to apply styles to a specific element is not recommended since it causes the browser to reflow the whole document everytime the stylesheet is changed . stubbornella.org content 2009 03 27 http : www.stubbornella.org content 2009 03 27 reflows-repaints-css-performance-making-your-javascript-slow", "Question : I ve just learnt a bit jQuery and am trying to use it for a simple color-changing effect . Let s say I have two div s foo and bar . foo has a lot of URLs and has the following CSS defined : .. . .. . now I would like to change the color of the links a : link in foo when the user clicks bar but keep the a : hover color untouched so I write my function like this : .. . .. . The problem is while this function does change all the links into red the a : hover color is lost i.e . when a user moves the cursor on to the links they will stay red not turn black as I expected . Since I see what jQuery does is put an inline style to a s within foo makes them into a style color : red href .. . I guess this will overwrite the : hover pseudo-class . As the inline style attr for pseudo-class has not been implemented by anyone afaik I doubt if I can get my intended effect at all.. . .. . .. . still is there any solutions that do not require me to write something like .. . .. . thanks . Comment : This question should really deserve a better answer as the title and accepted answer do not match . .. . Answer : AFAIK jQuery can t set pseudo classes . However there s another way : .. . .. . http : www.4pmp.com 2009 11 dynamic-css-pseudo-class-styles-with-jquery" ] }
[ "yes-answer-long", "yes-answer-short" ]
dom
UNK_RELATION
amzi-prolog@implementation@56
amzi-prolog -- amzi-prolog is an embeddable extendable @placeholder of iso standard prolog .
{ "confidence": [ 82.3223648071289, 82.3223648071289, 75.83135223388672, 75.213134765625, 65.63703918457031, 64.47787475585938, 63.603057861328125, 63.36632537841797, 61.96863555908203, 60.86940002441406, 59.941131591796875, 59.941131591796875, 58.27092742919922, 57.248374938964844, 57.228294372558594, 57.228294372558594, 56.88823699951172, 55.19641876220703, 53.52172088623047, 52.46759033203125, 52.219642639160156, 51.390342712402344, 51.390342712402344, 50.7484130859375, 50.724647521972656, 49.98784637451172, 49.1511344909668, 48.771236419677734, 47.953861236572266, 46.641143798828125, 46.57496643066406, 45.516075134277344, 44.367347717285156, 41.97783660888672, 41.97783660888672, 41.97783660888672, 40.745033264160156, 40.443172454833984, 40.096153259277344, 39.16429901123047, 36.013031005859375, 36.013031005859375, 35.29804229736328, 31.541263580322266, 24.79637336730957, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543, 20.13306999206543 ], "content": [ "Could the reason be that I m using Amzi Prolog", "Just wondering why are you using Amzi Prolog", "Amzi Prolog 5.0.31 Windows Oct 20 2001 21 : 25 : 35 Copyright c 1987-2000 Amzi", "I am student and I have a problem with amzi-prolog .", "Are you just typing that in exactly at an Amzi prolog interpreter prompt not forgetting the terminating period . .", "FYI : ISO Prolog is here since 1995 .. . see iso-prolog http : stackoverflow.com questions tagged iso-prolog for more information .", "Out of curiosity : did you get a syntax-error with or is that an AMZI Prolog operator predicate with another meaning than arithmetic comparison", "Amzi", "http : www.amzi.com manuals amzi libs list.htm However Prolog is mostly written in Prolog so you can easily roll your own member 2 having to import the list library :", "Prolog use an own implementation of Prolog", "Does Amzi", "In the case of Amzi", "member 2 is defined by the Prolog prologue http : www.complang.tuwien.ac.at ulrich iso-prolog prologue member", "Prolog has a built-in predicate http : www.amzi.com manuals amzi pro ref text.htm ismember is member 2 which is semi deterministic does not backtrack and it has the standard member 2 that must be loaded via the list.pro http : www.amzi.com manuals amzi libs list.htm library .", "It would appear that Amzi", "The Listener starts in Amzi", "Prolog : .. . .. . And the answer is no .", "I ll ask Amzi support thx .", "The predicate member 2 is not specified in the official ISO standard although is often provided by Prolog implementations .", "I m trying out next example in Amzi", "The predicate statistics 2 is not a standard predicate although found in some Prolog implementations .", "Prolog with member 2 undefined and undefined predicates simply return False unlike with SWI-Prolog reporting undefined predicates as errors .", "There are several implementations that should be preferred in almost any context : SWI-Prolog YAP GNU-Prolog SICSTus... .", "Amzi seems to have http : www.amzi.com manuals amzi pro ref text.htm a predicate atom codes Atom CharList which would probably work in both ways .", "I installed Eclipse Neon + Amzi", "Prolog standardization is not unfortunately one of its shiny points .", "I m trying to call amzi-prolog program from cmd and i get this error after i tip run app : .. . .. . app is an xpl file .. . .. . Exception : 319 A latent expression failed during loading possible unresolved calls", ".. . .. . As @hardmath noted in another answer the classic member 2 is part of Amzi", "With SWI-Prolog I got - 1 2 .", "For example using SWI-Prolog you get for member 2 : .. . .. . But sadly not all systems provide the standard predicate property 2 predicate .", "Prolog doesn t have its own member 2 predicate .", "Prolog win64+10.0.4 a few days ago .", "Every version of Prolog I ever used was slightly different from the others.. . Nice to see there s now another one to consider ISO Prolog : - .. . .. . I think this link has good information : http : osprey.unisa.ac.za phorum read.php 674 173265 173265", "Prolog it seems that the member 2 predicate is not built-in but you can easily define it yourself .", "For my class assignment I have to write a Prolog program that takes in a verb and converts it to a noun by adding ion and its variations .", "And then people hate Prolog.. . Could you convince your teacher to use more alive and less broken implementation and version", "Prolog s built-in predicate is member 2 per its documentation http : www.amzi.com manuals amzi pro ref text.htm ismember is deterministic and simply tests membership .", "It seems that the moment I add statistics I m getting a no answer from Prolog or in some cases it ends up in an endless loop.. . .. . .. . For instance this questions gives me a clear answer of the Schedule : .. . .. . But if I add statistics like this : .. . .. . Prolog answers no .", "Doesn t seem like it should be any more complex than .. . .. . Arithmetic comparison predicates are covered here : http : www.amzi.com manuals amzi pro ref math.htm MathematicalComparisons .. . .. . Use @ 2 or compare 3 to check the ordering of things in the standard order of terms : http : www.amzi.com manuals amzi pro ref manipulating terms.htm StandardOrder", "My code so far for the assignment is : .. . .. . Type 1 Verbs .. . .. . Type 2 Verbs .. . .. . Type 3 Verbs .. . .. . My first time working on PROLOG .", "In the specific case of SWI-Prolog and assuming the default configuration the member 2 predicate is defined in the module library lists which is auto-loaded when one of its exported predicates is called .", "What do you get if you try the goal : .. . .. . Or : .. . .. . If both goals fail you may want to look at any libraries provided by your Prolog system to check if similar functionality is available .", "I m using Amzi .. . .. . I gave a few attempts but nothing works.. . : .. . .. . Both return no if this list is entered : .. . .. . I understand that I need to compare the head with the head of the tail .", "But when I tries to debug my prolog program the IDE cries This feature is not available in the edition you are running .. . with a Yes button to redirect to a webpage seems out of date .", "In order to check if a given predicate is a built-in predicate you can usually use the standard predicate property 2 predicate .", "Is there a problem with my version", "If I try the same in swipl then it does work.. .", "Their information on lists hints at it by describing how you can write your own : amzi.com AdventureInProlog a11lists.php http : www.amzi.com AdventureInProlog a11lists.php", "But the implementation differs from system to system .", "Some provide it as a built-in predicate .", "Others as a library predicate .", "Auto-loading is by default silent which often leads users to think that they are calling a built-in predicate .", "Yes but that day I really needed to vent about standards : D xkcd.com 927 http : xkcd.com 927", "I m trying out exercise 4.3 of Bratko with the addition of statistics .", "Both are no indeed.. .", "Rather than take in a list of characters in the word I want to take in the complete word convert it into a list and work with that .", "Since it is a class assignment we all need to use the same version of the software given by the teacher .", "inc . .. . .. . And in this version the built-in predicate atom chars doesn t work .", "The only solution I see so far is : 1 .", "take in atom abc 2 .", "use name 2 predicate to get a unicode list 0w0061 0w0062 0w0063 3 .", "take the unicode list element by element use name predicate to convert each element to character and create a new list with the elements .", "c b a 4 .", "reverse the list a b c .. . .. . If you think of a simpler way to do this please help me out .", "So please forgive any small mistakes .", "name 2 is obsolete since about 1987 for good reason .", "Otherwise it is not clear what you want : a conversion of an atom to a list of characters requires some built-in predicate .", "However I couldn t find information if it works in your version .", "Thanks a lot everyone for your help .", "I managed to write the code without the built-in predicate in the method I had mentioned above .", ":", "We learned at class that there is a predicate that returns true if an item is a member in a list : .. . .. . member 1 1 2 3 should return true .", "Yet I get false .", "Am I doing something wrong", "please help .", "regards Id", "Do you expect a detail answer on this Am I doing something wrong", "@Idob it s very unlikely that member 2 doesn t work .", "It would be like saying 1 + 2 3 wasn t working in C . Perhaps you could provide more context describing where you are actually querying member 1 1 2 3 .", "Is it inside another predicate you ve written", "You have really provided very little information .", "This is a trap for the unwary .", "See more details in my Answer .", "I am familiar with eclipse and I find amzi s debugger the closet there is to Java debugger - so it is easier for me .", "Is there an easy way to debug with SWI", "I couldn t find it .", "Since the definition is a two-liner I usually just put the definition of member 2 in my source for a project as needed .", "It won t return all members of the list on backtracking : .. . .. . is member 2 is a restricted version of the classic member 2 predicate in the LIST.PLM library than sic can be used for fast testing if Term is a member of List .", "It uses a strong unify for testing the element .", "It cannot be used to backtrack through the various members of a list .", "The definition is equivalent to : .. . .. . .. . is member X Y : - X Y .", "is member X Z : - is member X Z .", "Prolog s list library .", "When I run my project in release-mode it works but when I run in debug mode I get message : .. . .. . I have tried to compile the project in debug-mode and increase the parameters control heap local trail and heapbumper by adding up to 6 zeros after their default-value without success .", "Ironically I need the debugger to make the code more efficient so that the stack doesn t get full .", "How should I precede to solve this issue", "Edit : for some reason the stack gets full in release-mode also now .", "Why doesn t changing the parameters solve the problem" ] }
{ "confidence": [ 105.32632446289062, 105.03787231445312, 99.87014770507812, 96.04368591308594, 95.65138244628906, 87.29008483886719, 85.44601440429688, 85.10508728027344, 83.36245727539062, 76.87144470214844, 20.048709869384766, 17.989681243896484 ], "content": [ "Question : I m trying out next example in Amzi Prolog : .. . .. . And the answer is no . Is there a problem with my version If I try the same in swipl then it does work.. . Does Amzi Prolog use an own implementation of Prolog Comment : It would appear that Amzi Prolog doesn t have its own member 2 predicate . Their information on lists hints at it by describing how you can write your own : amzi.com AdventureInProlog a11lists.php http : www.amzi.com AdventureInProlog a11lists.php .. . Answer : The predicate member 2 is not specified in the official ISO standard although is often provided by Prolog implementations . But the implementation differs from system to system . Some provide it as a built-in predicate . Others as a library predicate . In the specific case of SWI-Prolog and assuming the default configuration the member 2 predicate is defined in the module library lists which is auto-loaded when one of its exported predicates is called . Auto-loading is by default silent which often leads users to think that they are calling a built-in predicate . In the case of Amzi Prolog it seems that the member 2 predicate is not built-in but you can easily define it yourself . In order to check if a given predicate is a built-in predicate you can usually use the standard predicate property 2 predicate . For example using SWI-Prolog you get for member 2 : .. . .. . But sadly not all systems provide the standard predicate property 2 predicate . Prolog standardization is not unfortunately one of its shiny points . Comment : member 2 is defined by the Prolog prologue http : www.complang.tuwien.ac.at ulrich iso-prolog prologue member", "Question : I m trying out next example in Amzi Prolog : .. . .. . And the answer is no . Is there a problem with my version If I try the same in swipl then it does work.. . Does Amzi Prolog use an own implementation of Prolog Comment : It would appear that Amzi Prolog doesn t have its own member 2 predicate . Their information on lists hints at it by describing how you can write your own : amzi.com AdventureInProlog a11lists.php http : www.amzi.com AdventureInProlog a11lists.php .. . Answer : Every version of Prolog I ever used was slightly different from the others.. . Nice to see there s now another one to consider ISO Prolog : - .. . .. . I think this link has good information : http : osprey.unisa.ac.za phorum read.php 674 173265 173265 Comment : FYI : ISO Prolog is here since 1995 .. . see iso-prolog http : stackoverflow.com questions tagged iso-prolog for more information . Comment : Yes but that day I really needed to vent about standards : D xkcd.com 927 http : xkcd.com 927", "Question : I am student and I have a problem with amzi-prolog . We learned at class that there is a predicate that returns true if an item is a member in a list : .. . .. . member 1 1 2 3 should return true . Yet I get false . Am I doing something wrong please help . regards Id Comment : Do you expect a detail answer on this Am I doing something wrong Comment : @Idob it s very unlikely that member 2 doesn t work . It would be like saying 1 + 2 3 wasn t working in C . Perhaps you could provide more context describing where you are actually querying member 1 1 2 3 . Is it inside another predicate you ve written Are you just typing that in exactly at an Amzi prolog interpreter prompt not forgetting the terminating period . . You have really provided very little information . Comment : This is a trap for the unwary . The Listener starts in Amzi Prolog with member 2 undefined and undefined predicates simply return False unlike with SWI-Prolog reporting undefined predicates as errors . See more details in my Answer . Comment : Just wondering why are you using Amzi Prolog There are several implementations that should be preferred in almost any context : SWI-Prolog YAP GNU-Prolog SICSTus... . Comment : I am familiar with eclipse and I find amzi s debugger the closet there is to Java debugger - so it is easier for me . Is there an easy way to debug with SWI I couldn t find it . .. . Answer : Amzi Prolog has a built-in predicate http : www.amzi.com manuals amzi pro ref text.htm ismember is member 2 which is semi deterministic does not backtrack and it has the standard member 2 that must be loaded via the list.pro http : www.amzi.com manuals amzi libs list.htm library . Since the definition is a two-liner I usually just put the definition of member 2 in my source for a project as needed .", "Question : I am student and I have a problem with amzi-prolog . We learned at class that there is a predicate that returns true if an item is a member in a list : .. . .. . member 1 1 2 3 should return true . Yet I get false . Am I doing something wrong please help . regards Id Comment : Do you expect a detail answer on this Am I doing something wrong Comment : @Idob it s very unlikely that member 2 doesn t work . It would be like saying 1 + 2 3 wasn t working in C . Perhaps you could provide more context describing where you are actually querying member 1 1 2 3 . Is it inside another predicate you ve written Are you just typing that in exactly at an Amzi prolog interpreter prompt not forgetting the terminating period . . You have really provided very little information . Comment : This is a trap for the unwary . The Listener starts in Amzi Prolog with member 2 undefined and undefined predicates simply return False unlike with SWI-Prolog reporting undefined predicates as errors . See more details in my Answer . Comment : Just wondering why are you using Amzi Prolog There are several implementations that should be preferred in almost any context : SWI-Prolog YAP GNU-Prolog SICSTus... . Comment : I am familiar with eclipse and I find amzi s debugger the closet there is to Java debugger - so it is easier for me . Is there an easy way to debug with SWI I couldn t find it . .. . Answer : Amzi Prolog s built-in predicate is member 2 per its documentation http : www.amzi.com manuals amzi pro ref text.htm ismember is deterministic and simply tests membership . It won t return all members of the list on backtracking : .. . .. . is member 2 is a restricted version of the classic member 2 predicate in the LIST.PLM library than sic can be used for fast testing if Term is a member of List . It uses a strong unify for testing the element . It cannot be used to backtrack through the various members of a list . The definition is equivalent to : .. . .. . .. . is member X Y : - X Y . is member X Z : - is member X Z . .. . .. . As @hardmath noted in another answer the classic member 2 is part of Amzi Prolog s list library . http : www.amzi.com manuals amzi libs list.htm However Prolog is mostly written in Prolog so you can easily roll your own member 2 having to import the list library :", "Question : I m trying out exercise 4.3 of Bratko with the addition of statistics . It seems that the moment I add statistics I m getting a no answer from Prolog or in some cases it ends up in an endless loop.. . .. . .. . For instance this questions gives me a clear answer of the Schedule : .. . .. . But if I add statistics like this : .. . .. . Prolog answers no . Could the reason be that I m using Amzi Prolog .. . Answer : The predicate statistics 2 is not a standard predicate although found in some Prolog implementations . What do you get if you try the goal : .. . .. . Or : .. . .. . If both goals fail you may want to look at any libraries provided by your Prolog system to check if similar functionality is available . Comment : Both are no indeed.. . Comment : I ll ask Amzi support thx .", "Question : null .. . Answer : For my class assignment I have to write a Prolog program that takes in a verb and converts it to a noun by adding ion and its variations . Rather than take in a list of characters in the word I want to take in the complete word convert it into a list and work with that . Since it is a class assignment we all need to use the same version of the software given by the teacher . Amzi Prolog 5.0.31 Windows Oct 20 2001 21 : 25 : 35 Copyright c 1987-2000 Amzi inc . .. . .. . And in this version the built-in predicate atom chars doesn t work . The only solution I see so far is : 1 . take in atom abc 2 . use name 2 predicate to get a unicode list 0w0061 0w0062 0w0063 3 . take the unicode list element by element use name predicate to convert each element to character and create a new list with the elements . c b a 4 . reverse the list a b c .. . .. . If you think of a simpler way to do this please help me out . My code so far for the assignment is : .. . .. . Type 1 Verbs .. . .. . Type 2 Verbs .. . .. . Type 3 Verbs .. . .. . My first time working on PROLOG . So please forgive any small mistakes . Comment : And then people hate Prolog.. . Could you convince your teacher to use more alive and less broken implementation and version Comment : name 2 is obsolete since about 1987 for good reason . Otherwise it is not clear what you want : a conversion of an atom to a list of characters requires some built-in predicate . Comment : Amzi seems to have http : www.amzi.com manuals amzi pro ref text.htm a predicate atom codes Atom CharList which would probably work in both ways . However I couldn t find information if it works in your version . Comment : Thanks a lot everyone for your help . I managed to write the code without the built-in predicate in the method I had mentioned above . :", "Question : null .. . Answer : I m trying to call amzi-prolog program from cmd and i get this error after i tip run app : .. . .. . app is an xpl file .. . .. . Exception : 319 A latent expression failed during loading possible unresolved calls", "Question : I m trying to compare the elements of a list of integer to see if they are ordered or not . I m using Amzi .. . .. . I gave a few attempts but nothing works.. . : .. . .. . Both return no if this list is entered : .. . .. . I understand that I need to compare the head with the head of the tail . Comment : a typo : should be Comment : Check out if is a defined operator With SWI-Prolog I got - 1 2 . ERROR : Syntax error : Operator expected ERROR : 1 ERROR : here ERROR : 2 . Comment : @CapelliC and @repeat you guys are right I was testing with but changed to to see if that was the problem . I forgot to return to the correct one . Comment : @NickeManarin . Alright Out of curiosity : did you get a syntax-error with or is that an AMZI Prolog operator predicate with another meaning than arithmetic comparison Perhaps something like boolean implication Comment : No it was a simple mistake.. . I should save and reconsult the listener after changing to . : .. . Answer : Doesn t seem like it should be any more complex than .. . .. . Arithmetic comparison predicates are covered here : http : www.amzi.com manuals amzi pro ref math.htm MathematicalComparisons .. . .. . Use @ 2 or compare 3 to check the ordering of things in the standard order of terms : http : www.amzi.com manuals amzi pro ref manipulating terms.htm StandardOrder", "Question : I m trying to compare the elements of a list of integer to see if they are ordered or not . I m using Amzi .. . .. . I gave a few attempts but nothing works.. . : .. . .. . Both return no if this list is entered : .. . .. . I understand that I need to compare the head with the head of the tail . Comment : a typo : should be Comment : Check out if is a defined operator With SWI-Prolog I got - 1 2 . ERROR : Syntax error : Operator expected ERROR : 1 ERROR : here ERROR : 2 . Comment : @CapelliC and @repeat you guys are right I was testing with but changed to to see if that was the problem . I forgot to return to the correct one . Comment : @NickeManarin . Alright Out of curiosity : did you get a syntax-error with or is that an AMZI Prolog operator predicate with another meaning than arithmetic comparison Perhaps something like boolean implication Comment : No it was a simple mistake.. . I should save and reconsult the listener after changing to . : .. . Answer : a compact alternative :", "Question : I installed Eclipse Neon + Amzi Prolog win64+10.0.4 a few days ago . But when I tries to debug my prolog program the IDE cries This feature is not available in the edition you are running .. . with a Yes button to redirect to a webpage seems out of date . Since debugging is a basic feature of a programming language I doubt the real reason that I can not use the debug feature is my configuration but not the version . Can anyone tell me how to solve this problem .. . Answer : I have reported the problem to Amzi s prolog s official site and they published a new version of that to solve it .", "Question : null .. . Answer : When I run my project in release-mode it works but when I run in debug mode I get message : .. . .. . I have tried to compile the project in debug-mode and increase the parameters control heap local trail and heapbumper by adding up to 6 zeros after their default-value without success . Ironically I need the debugger to make the code more efficient so that the stack doesn t get full . How should I precede to solve this issue Edit : for some reason the stack gets full in release-mode also now . Why doesn t changing the parameters solve the problem", "Question : null .. . Answer : when loading xpl file in netbeans presented this error Error 302 : Load module compiled with earlier version recompile .I did not know what is solution for this error please help me . my code is :" ] }
[ "yes-answer-long", "yes-answer-short" ]
implementation
UNK_RELATION
tomee@java@30
tomee -- apache tomee is the @placeholder enterprise edition of apache tomcat that combines several java enterprise projects .
{ "confidence": [ 72.86833190917969, 69.14929962158203, 52.134925842285156, 50.6252555847168, 50.41924285888672, 49.67979049682617, 49.493038177490234, 48.70647430419922, 47.74891662597656, 46.348365783691406, 46.160133361816406, 45.426002502441406, 45.25499725341797, 45.05600357055664, 45.05600357055664, 44.37315368652344, 43.89278793334961, 43.78982925415039, 43.767513275146484, 43.62542724609375, 43.47517395019531, 43.39935302734375, 42.28714370727539, 42.28714370727539, 42.116844177246094, 41.900604248046875, 41.02275085449219, 41.02275085449219, 40.99369812011719, 40.91190719604492, 40.91190719604492, 40.77058410644531, 40.77058410644531, 40.585872650146484, 40.557838439941406, 40.2181396484375, 39.979957580566406, 39.979957580566406, 39.84027862548828, 39.753883361816406, 39.51164627075195, 39.51164627075195, 39.34051513671875, 38.90833282470703, 38.68225860595703, 38.68225860595703, 38.64740753173828, 38.62406921386719, 38.53656005859375, 38.53656005859375, 38.44663619995117, 38.43752670288086, 38.18157958984375, 38.18157958984375, 38.18157958984375, 38.18157958984375, 38.18157958984375, 38.18157958984375, 38.18157958984375, 38.18157958984375, 37.907615661621094, 37.689849853515625, 37.689849853515625, 37.580665588378906, 37.517555236816406, 37.46493148803711, 37.46493148803711, 37.46493148803711, 37.39454650878906, 37.375370025634766, 37.19096755981445, 37.149295806884766, 37.149295806884766, 37.14410400390625, 37.033912658691406, 36.755828857421875, 36.54218673706055, 36.54218673706055, 36.54218673706055, 36.54168701171875, 36.43134307861328, 36.248538970947266, 36.23652648925781, 36.23652648925781, 36.23652648925781, 36.076358795166016, 36.076358795166016, 36.076358795166016, 36.076358795166016, 36.076358795166016, 35.95698547363281, 35.93197250366211, 35.93197250366211, 35.93197250366211, 35.93197250366211, 35.926780700683594, 35.859893798828125, 35.83449172973633, 35.3797721862793 ], "content": [ "It is now org.apache.tomee http : repo1.maven.org maven2 org apache tomee apache-tomee 7.0.0-M1", "I am trying to port a web-application to Tomee Apache TomEE 1.5.2 but I have hit a major hurdle .", "It hosts both an Apache HTTPD and an Apache Tomee .", "I recently installed apache-tomee-webprofile-1.7.2 on to a Red Hat Enterprise Linux Server 6.6 .", "I download TOMEE plus from apache.org dyn closer.cgi tomee tomee-1.7.3 http : www.apache.org dyn closer.cgi tomee tomee-1.7.3 apache-tomee-1.7.3-plus.zip .", "I want to make this run on a TomEE server apache-tomee-plume-1.7.4 .", "that s Tomcat not TomEE", "I need the same opportunity for Apache Tomee .", "The issue you encountered may be specified to Apache TomEE", "I am deploying an enterprise app ear in tomee as Proof of Concept .", "TomEE is definitely not comparable to Tomcat .", "The correct artifactId being visible in : http : mvnrepository.com artifact org.apache.openejb apache-tomee 1.7.4 is apache-tomee and not tomee so replace the last depency by the following one and the problem will be solved :", "I m using apache tomee webprofile 1.7.4 .", "There is TomEE 1.5.x and Tomcat 7.0 .", "Are you deploying to TomEE or Tomcat 7", "Which TomEE edition and version are you using", "I m using the TomEE-Plume edition .", "Windows 7 TomEE-plume 1.7.4 local Fedora 23 TomEE-Plume 1.7.4 remote Firefox 46 .. . .. . http : localhost : 8080 http : 192.168.0.100 remote on Fedora 23 .. . .. . The Apache Tomcat TomEE 7.0.68 1.7.4 page comes up fine on both local and remote instances .", "Note : .. . .. . I do not want to use Tomee JAX-RS with Apache CXF and I cannot upgrade to Tomee 1.6 .", "Timeouts are essentially for transactions it s baked fairly deeply into the Java EE spec and into Apache TomEE .", ". apache-tomee-webprofile-1.7.4 conf web.xml as following .. . .. . However when I start Tomee it would rewrite this web.xml with all it s default values .", "Currently Apache TomEE is Java EE 6 compatible and provides only JAX-RS 1.1 specification .", "What s the advantage in use TomEE if a use JSF in tomcat", "Tomcat then TomEE is not designed to change JNDI at runtime like it .", "I recently came to know about Apache TomEE which supports CDI .", "Apache tomee-1.7.x EE6 is using Apache OpenWebBeans-1.2.x which is a CDI-1.0 specification implementation .", "it either runs as the sole additional application within a TomEE or has a TomEE embedded .", "In case of TomEE that would be the fictive future TomEE 8 version .", "I m a fan of Tomcat and would really like to use TomEE but having a hard time configuring TomEE why isn t there a simple tutorial explaining step by step setup of a simple JSF and JPA CRUD web app on TomEE .", "On Tomcat TomEE Plus 1.7.1 this can be achieved by Adding Custom Resource Factories .", "Is there a way to use Tomcat 8.5 and TomEE 7.x in Eclipse", "I d like to run a WebApp on Apache TomEE using Mojarra and Weld .", "The pendant in Apache OpenWebBeans is WebBeansConfigurationListener .. . .. . But TomEE IS a full JavaEE6 server", "here is the bunch of TomEE Arquillian examples svn.apache.org repos asf tomee tomee tags tomee-1.5.2 http : svn.apache.org repos asf tomee tomee tags tomee-1.5.2 arquillian", "In contrast to GlassFish TomEE is a Java EE WebProfile server .", "I am running on TomEE because the whole environment is on tomcat and TomEE delivers the JMS API .", "Well i m starting now with tomee my pom.xml was configured to use with tomcat .", "This is requiring me to change my configuration on tomcat Tomee-Plume .", "what version of TomEE is this", "I ve installed TomEE 7.0.1 which uses Tomcat 8.5.3 .", "Tomee 1.7.2 .", "but it is not working in Tomee .", "TomEE is a full stack Java EE server .", "TomEE version 1.7.4", "Questions .. . .. . Is this CXF or TomEE behaviour", "But that s not the case with TomEE .", "TomEE has MyFaces as JSF implementation in tomee lib folder .", "You might still try workarounds but if this is something that you are trying to implement as enterprise-tomEE as in this case .", "While this was necessary on Tomcat it is -not- necessary in TomEE since it s a full stack container .", "You have Application Servers like Tomcat TomEE or Websphere .", "TomEE doesnt support it yet see https : issues.apache.org jira browse TOMEE-1668 but DeltaSpike does and keeps the CDI integration : https : github.com apache deltaspike blob 1572c07eb8d5f892308e1060a9fa1ccdbf18435e deltaspike core-api src main java org apache deltaspike core-api jmx MBean.java L57", "When I start Tomcat TomEE with sh startup.sh the Linux console says : .. . .. . so everything seems okay but instead Tomcat TomEE does not start .", "http : tomee.apache.org examples-trunk index.html .. . .. . http : tomee.apache.org documentation.html .. . .. . Finally another great resource is the Apache TomEE users list .", "I had resolved this issue by removing the apache-tomee-plus-1.7.1 conf conf.d folder and it worked for me .", "I m experiencing a quite aggressive memory leak using Tomee Apache Open Web Beans and JSF .", "I have developed SOAP based web service using Apache CXF 3 and Spring 3 and deployed on Tomee .", "My configuration : Apache TomEE - WebProfile 1.6.0.2 JSF 2.2.7 com.sun.faces Mojarra lib 2.2.0 -- This may be a problem", "The fix for me was to uncheck the Use IDE Proxy Settings checkbox on the Platform tab of the Server properties of Apache TomEE+ 1.7.2 .", "Now I have a apache tomee running on the host with an ejb that needs to send out an email .", "I have need to set prefered libs from my project for Apache Tomee .", "For the needs of the server I want to create I wish to install Apache TomEE as a web application server .", "I d blame the Eclipse plugin for TomEE or at least TomEE itself .", "In TomEE 1.7.2 the webapps tomee folder is missing this is why 404 error occurs .", "Whats the difference between service tomcat start stop and . catalina.sh run stop in Tomcat or TomEE", "Remote TomEE Configuration : Tomcat Version Apache Tomcat TomEE 7.0.53 1.6.0.2 JVM Version 1.7.0 55-mockbuild 2014 04 16 07 52-b00 JVM Vendor Oracle Corporation OS Name Linux OS Version 2.6.18-371.8.1.el5 OS Architecture amd64 .. . .. . Local Tomee Configuration : Tomcat Version Apache Tomcat TomEE 7.0.53 1.6.0.2 JVM Version 1.7.0 67-b01 JVM Vendor Oracle Corporation OS Name Mac OS X OS Version 10.9.5 OS Architecture x86-64 .. . .. . BalusC mentioned memory which is a good thought .", "TomEE already provided it to me", "An aside there is no such thing as TomEE 7 .", "This code is not working in TomEE .", "Option 2 : Use the TomEE-Maven-Plugin to build a zip which contains tomee as well as our webapp .", "Platform : TomEE Web profile 1.5.0 .", "the tomee-maven-plugin .", "What version of TomEE are you using", "I am running a tomee instance .", "I am using TomEE 7.0.0-M2 so with Java-EE7 support .", "The problem was that the base directory for ActiveMQ inside TomEE is the TomEE s bin folder and it was not writeable by TomEE so TomEE could not create folders for KahaDB .", "Apparently this not working with TomEE i know its working for my other Tomcat applications .", "Find the Tomee system.properties file tomee conf system.properties by default .", "I was able to get this to work with TomEE 1.5.2 using the tomee-maven-plugin .", "I am trying to setup Jaas and TomEE http : tomee.apache.org tomee-jaas.html .", "See here http : tomee-openejb.979440.n4.nabble.com ClassNotFoundException-on-TomEE-1-6-0-2-for-org-apache-commons-collections4-classes-td4671656.html .", "We are using TomEE Tomcat with OpenEJB to connect to a SQL Server database .", "How do you setup tomee and RESOURCE LOCAL", "Problem .. . .. . We just switched from TomEE 1.7.2 JAX-RS to TomEE 7.0.0-SNAPSHOT webprofile .", "It s TomEE and current latest MyFaces version is 2.2.9 TomEE originally bundles MyFaces and current latest Mojarra version is 2.2.12 .", "The following error appears on TomEE startup : .. . .. . NoClassDefFoundError : javax faces component UIViewAction .. . .. . But JSF2 library is provided by TomEE on classpath .", "I m trying to implement the authentication for the EJBs deployed in Apache Tomee web profile 1.7.4 using PropertiesLogin .", "I m trying use apache-tomee-1.0.0 with my JSF 2.0 web app.. . but I can t do it : .", "I am upgrading a code that uses Jersey JAX-RS to run on an Apache TomEE server .", "I am using JSF 2.2 apache-tomee-7.0.0-M3-plume and Primefaces latest version .", "The first one is up with Apache Tomee running and i can access it through my browser .", "By disabling library configuration user takes on responsibility of configuring classpath appropriately via alternate means .. . .. . So I go ahead and add all the bundled jars that come with TomEE .. . apache-tomee-webprofile-1.7.4 lib this includes myfaces-api-2.1.17.jar and myfaces-impl-2.1.17.jar .. . .. . .. . .. . Then I Run on Server the following test xhtml .", "I m using OpenJPA at TomEE server .", "Or it has to be in tomee conf tomee.xml file", "while TomEE is stuck with JDK proxying .", "I m deploying to TomEE 1.5.2 Webprofile", "We are planning to migrate our Java WebApplications from OC4J to TomEE .", "The same error appears when trying TomEE 7.x which is internally based on Tomcat 8.5 .", "When I restart tomcat7 tomee works I can open the tomee page but tomcat can t deploy the THREDDS war anymore .", "As you already said yourself TomEE is a Java EE 6 container and not a barebones JSP Servlet container like Tomcat ." ] }
{ "confidence": [ 78.81239318847656, 78.08354187011719, 64.71539306640625, 64.16629028320312, 63.51177215576172, 63.46046447753906, 62.87010192871094, 62.27219772338867, 61.02279281616211, 60.9989013671875, 59.89813232421875, 59.86528015136719, 59.386478424072266, 58.03303527832031, 56.15436935424805, 55.61164855957031, 55.005340576171875, 54.826026916503906, 54.7750129699707, 54.75597381591797 ], "content": [ "Question : I m using the Tomee Maven plugin to develop an app that uses CDI event passing . I am currently not able to fire events that have generic type parameters and as far as I can tell this is because the Tomee instance wants to use openwebbeans 1.2.7 which does not support this . I seems that openwebbeans 1.5.0 and upwards do support this but I m not sure how or if I can get the plugin to use this version . I have tried to use the plugin config to replace the libraries with the new versions but this leads to further exceptions no class def etc . The plugin version is : .. . Answer : Apache tomee-1.7.x EE6 is using Apache OpenWebBeans-1.2.x which is a CDI-1.0 specification implementation . If you are up to using Java EE7 then simply switch to TomEE-7.0.0-M1 which uses the latest openwebbeans-1.6.x version . Attention : the groupId in maven has changed It is now org.apache.tomee http : repo1.maven.org maven2 org apache tomee apache-tomee 7.0.0-M1 Comment : Thanks . I ll give feedback when I get a chance to try this out", "Question : I am trying to port a web-application to Tomee Apache TomEE 1.5.2 but I have hit a major hurdle . The version of quartz our application uses clashes with the bundled version of quartz . Tomee comes with quartz-2.1.6.jar which is loaded as part of the container set-up as far as I can tell But our application relies on a very old version of Quartz and we are unable to update at this point in time . From research I had assumed it would be enough to place the older quarts jar in the WEB-INF lib of my web-app and as per the Tomcat class loading information here http : tomcat.apache.org tomcat-6.0-doc class-loader-howto.html it would be looked up before the quartz-2.1.6.jar in the catalina.home lib directory this doesn t seem to be the case . Is it possible for Tomee to use the bundled version of Quartz and my web-app to use a different version of Quartz .. . Answer : Thanks to Romain Manni-Bucau . The solution was to add .. . .. . please see Tomee Users Mailing List http : openejb.markmail.org thread rfixcqxo7aq7kpea", "Question : I am using TomEE Plus 1.7.2 Server and try to start a webapp with OmniFaces included but I get a Nullpointer exception : .. . .. . WARNUNG : Could not instantiate eager request scoped beans for request index.xhtml . Possibly the CDI request scope is not active . If this is indeed the case see JavaDoc on org.omnifaces.cdi.Eager on how to remedy this . .. . java.lang.NullPointerException at org.omnifaces.cdi.eager.EagerBeansWebListener.requestInitialized EagerBeansWebListener.java : 78 .. . .. . When I use the EagerBeansFilter as shown at OmniFaces docs http : showcase.omnifaces.org cdi Eager I get a slight variation : .. . .. . WARNUNG : Could not instantiate eager application scoped beans . Possibly the CDI application scope is not active . This is known to be the case in certain Tomcat and Jetty based configurations . .. . java.lang.NullPointerException at org.omnifaces.cdi.eager.EagerBeansRepository.instantiateApplicationScopedAndRegisterListener EagerBeansRepository.java : 69 .. . .. . Is this server not combinable with omnifaces Comment : Which OmniFaces version exactly You can find compatibility matrix here : github.com omnifaces omnifaces wiki Compatibility-Matrix https : github.com omnifaces omnifaces wiki Compatibility-Matrix TomEE is one of most tested servers . Is the webapp designed for Tomcat or Java EE TomEE is definitely not comparable to Tomcat . Any Tomcat or Jetty or any other custom stack targeted webapp will fail in some way when deployed to a standard Java EE server . Comment : Problem at least suggests a misconfigured CDI environment . Perhaps webapp is indeed Tomcat targeted and bundles some CDI libraries along while that s completely unnecessary when deployed on a standard Java EE server which already provides several Java EE API implementations such as CDI and JSF out the box . Comment : ok problem seemed to be omnifaces-version related : I was using 2.2-RC2 now updated to 2.3 and no exception anymore Comment : I d rather suspect a dirty build . Or does it also fail with 2.2 and 2.1 non-RC Comment : Technically 2.2 or newer shouldn t deploy on a stock TomEE 1.x because it uses JSF 2.1 instead of JSF 2.2 . So likely your TomEE instance has been modified to use JSF 2.2 . .. . Answer : TomEE is after WildFly one of most tested servers for OmniFaces particularly because it uses almost everywhere in Java EE a different implementation as compared to WildFly Apache vs Oracle . In the OmniFaces compatibility matrix https : github.com omnifaces omnifaces wiki Compatibility-Matrix you can find TomEE versions which successfully ran through all pages in OmniFaces showcase http : showcase.omnifaces.org . Those exceptions mentioned in your question will be thrown when CDI BeanManager http : docs.oracle.com javaee 7 api javax enterprise inject spi BeanManager.html couldn t find the OmniFaces EagerBeansRepository https : github.com omnifaces omnifaces blob master src main java org omnifaces cdi eager EagerBeansRepository.java which is an @ApplicationScoped bean . This in turn indicates a misconfigured CDI environment e.g . wrong beans.xml or missing JNDI listener configuration or a dirty build e.g . duplicate libraries . Verifying the CDI configuration and performing a full clean rebuild should solve the problem . At least OmniFaces 2.2 or newer is technically incompatible with TomEE 1.x because TomEE 1.x ships with JSF 2.1 and OmniFaces 2.2 or newer has a hard dependency on JSF 2.2 due to new o : viewAction tag . So unless you modify TomEE to provide JSF 2.2 OmniFaces 2.2 or newer won t deploy and should fail deployment with below exception : .. . .. . java.lang.NoClassDefFoundError : javax faces component UIViewAction .. . .. . The latest OmniFaces version which successfully deploys on a stock TomEE 1.7.x server is OmniFaces 2.1 . If you want to use OmniFaces 2.2 or newer on a stock TomEE then you need to upgrade to TomEE 7.x .", "Question : I recently installed apache-tomee-webprofile-1.7.2 on to a Red Hat Enterprise Linux Server 6.6 . I am able to access the Tomcat home page by accessing x.x.x.x : 8080 and via this I am able to access the Server Status Manager App and Host Manager pages . However when I go to access the TomEE GUI page I receive an Error 404 : description The requested resource is not available . page . From what I can see Tomee is running as when I access the Manage App page tomee is there and it s running state is true . I m new to TomEE so there may be a step which I have missed completed incorrectly . So any help on how I can get this working would be great . I m not sure what code is relevant to this issue so please tell me what configuration would be helpful and I ll post it . Comment : Question : Do I need to have anything deployed before I can access this page Is there not a default page that is accessed when first installed As I don t currently have anything deployed so I wondered if this could be it . .. . Answer : In TomEE 1.7.2 the webapps tomee folder is missing this is why 404 error occurs . I don t know if it is a bug or it is intentional . In 1.7.1 webapps tomee folder is still there . But it is actually not so important . This page only says that Your server is fully installed . I think that it is useful only when you install a drop-in WAR TomEE in a Tomcat and so you can check if it is installed successfully . But when you download and use a native TomEE this check does not count . Just deploy your applicaton and enjoy it However if you still want TomEE GUI download version 1.7.1 and copy the tomee folder in the webapps folder into the webapps folder of 1.7.2 .", "Question : My OS is win 7 ultimate 32-bit .. . After installing JDK 7u9 eclipse Juno 4.2 SR1 for Java EE .. . and finally adding into it the new server .. . Apache TomEE 1.5.0 October 2nd 2012 apache-tomee-1.5.0-webprofile.zip .. . using eclipse wizard to add new servers and choosing tomcat 7 profile and then the directory where it s installed .. . .. . i m getting the following console error .. . .. . the server eventually seems to start but then you get the 404 error on every page under http : localhost : 8080 .. . .. . tomEE installation directory is C : apache-tomee-webprofile-1.5.0 .. . eclipse installation directory is C : eclipse .. . and java jre under C : Program Files Java jre7 Comment : I am having the same problem.. . .. . Answer : Yes should have been fixed and included in the next release 1.5.1 . FYI it should be available next week . Jean-Louis", "Question : My OS is win 7 ultimate 32-bit .. . After installing JDK 7u9 eclipse Juno 4.2 SR1 for Java EE .. . and finally adding into it the new server .. . Apache TomEE 1.5.0 October 2nd 2012 apache-tomee-1.5.0-webprofile.zip .. . using eclipse wizard to add new servers and choosing tomcat 7 profile and then the directory where it s installed .. . .. . i m getting the following console error .. . .. . the server eventually seems to start but then you get the 404 error on every page under http : localhost : 8080 .. . .. . tomEE installation directory is C : apache-tomee-webprofile-1.5.0 .. . eclipse installation directory is C : eclipse .. . and java jre under C : Program Files Java jre7 Comment : I am having the same problem.. . .. . Answer : It looks like the current Windows release is broken . You ll have to download a fixed version as suggested in the bug report found here : https : issues.apache.org jira browse TOMEE-436 .. . .. . The 1.5.1 snapshots are available for download here : 1.5.1-SNAPSHOT http : openejb.apache.org cgi-bin builds.cgi apache-tomee 1.5.1-SNAPSHOT Comment : Thank you so much 11101101b it starts and works perfect now", "Question : Wanted to make use of openejb on top of tomcat v7 using maven instead of installing tomee . Referring to Apache documentation 3 dependencies have to be added to the maven project . but the last depency generates following error : Missing artifact org.apache.openejb : tomee : jar : 1.7.4 Comment : could somebody explains the downvote .. . Answer : The correct artifactId being visible in : http : mvnrepository.com artifact org.apache.openejb apache-tomee 1.7.4 is apache-tomee and not tomee so replace the last depency by the following one and the problem will be solved :", "Question : This question already has an answer here : .. . .. . JSF returns blank unparsed page with plain raw XHTML XML EL source instead of rendered HTML output questions 3112946 jsf-returns-blank-unparsed-page-with-plain-raw-xhtml-xml-el-source-instead-of-re 1 answer .. . .. . I m using TomEE . I was under impression that TomEE already has the JSF IMplementation Libraries . So when create an Eclipse project I follow the documentation and choose Library Provided By Target Runtime http : help.eclipse.org mars index.jsp topic 2Forg.eclipse.jst.jsf.doc.user 2Fhtml 2Freference 2Fjsf library management.html .. . .. . enter image description here http : i.stack.imgur.com NUU9Y.png .. . .. . It reads this facet requires jsf implementation library to be present on project classpath . By disabling library configuration user takes on responsibility of configuring classpath appropriately via alternate means .. . .. . So I go ahead and add all the bundled jars that come with TomEE .. . apache-tomee-webprofile-1.7.4 lib this includes myfaces-api-2.1.17.jar and myfaces-impl-2.1.17.jar .. . .. . .. . .. . Then I Run on Server the following test xhtml . But it renders a blank page . Obviously the xhtml was not compiled . So the bundled TomEE jars did NOT kick in . How can I make those bundled TomEE jars compile my test xhtml Comment : You said yourself TomEE already provides JSF libraries why exactly are you still selecting User Library instead of Library provided by Target Runtime Comment : @BalusC Because Eclipse does NOT compile xhtml unless I download JSF libraries Comment : I added the detailed explanation . I understand that the test xhtml was simply not compiled . The JSF tags were not interpreted correctly . This can only happen if the JSF libraries did not kick in to interpret the tags Comment : Is your blank page problem answered here stackoverflow.com q 3112946 http : stackoverflow.com q 3112946 If JSF libraries were not found you d get ClassNotFoundException on FacesServlet instead and the webapp deployment would block altogether . Comment : @BalusC Thank you very much . Just as you said the answer is there change the url-pattern from faces to .xhtml .. . Answer : TomEE has MyFaces as JSF implementation in tomee lib folder . Worse case add it referencing myfaces-api there but ensure to not put it in the war during packaging . Comment : Thank you . I tried doing exactly as you recommend . I provided more details .", "Question : I am facing issue in using hibernate 3.x with TomEE . Previously we were using Hibernate with tomcat 1.6 and when we changed the container to TomEE hibernate fails . TomEE by default uses Openejb.JPA as persistance provider . Tried searching in google but nothing helps. . .. . .. . http : tomee.apache.org tomee-and-hibernate.html .. . .. . Can anyone please help on this issue . .. . Answer : I had resolved this issue by removing the apache-tomee-plus-1.7.1 conf conf.d folder and it worked for me .", "Question : I recently installed apache-tomee-webprofile-1.7.2 on to a Red Hat Enterprise Linux Server 6.6 . I am able to access the Tomcat home page by accessing x.x.x.x : 8080 and via this I am able to access the Server Status Manager App and Host Manager pages . However when I go to access the TomEE GUI page I receive an Error 404 : description The requested resource is not available . page . From what I can see Tomee is running as when I access the Manage App page tomee is there and it s running state is true . I m new to TomEE so there may be a step which I have missed completed incorrectly . So any help on how I can get this working would be great . I m not sure what code is relevant to this issue so please tell me what configuration would be helpful and I ll post it . Comment : Question : Do I need to have anything deployed before I can access this page Is there not a default page that is accessed when first installed As I don t currently have anything deployed so I wondered if this could be it . .. . Answer : Apparently GUI part of TomEE has been moved to a new project TomEE WebAccess which can be downloaded separately on the download page http : tomee.apache.org downloads.html and dropped into the webapps folder . Source : http : tomee-openejb.979440.n4.nabble.com TomEE-GUI-doesnt-come-up-tt4673008.html a4673466 .. . .. . It s missing a fancy UI and documentation but does let you run Groovy or Javascript on the admin to get some interesting info . On the list Thiago posted this Groovy example to get the REST endpoints :", "Question : Windows 7 TomEE-plume 1.7.4 local Fedora 23 TomEE-Plume 1.7.4 remote Firefox 46 .. . .. . http : localhost : 8080 http : 192.168.0.100 remote on Fedora 23 .. . .. . The Apache Tomcat TomEE 7.0.68 1.7.4 page comes up fine on both local and remote instances . I have done my due diligence reading TomEE documentation and internet searches . On the local Windows instance when any of the following buttons are clicked the browser goes directly to the page . But on the remote instance of TomEE pressing the same buttons causes a small sign-on dialog to popup . There is only one user id in the tomcat-users.xml file . When the userid and password are used access is denied . It was my understanding the Fedora id used to run TomEE-plume should be configured as nologin . Question 1 Am I correct in saying that the Fedora id used to run TomEE-plume should be configured as nologin . Question 2 Why won t the id in tomcat-users.xml work Comment : It seems the tomcat-users.xml file is only loaded on startup . Once recycled all worked . .. . Answer : Just repeating the answer here that you already know that way this question doesn t come up as having no answer . No need to select this as the correct answer . tomcat-users.xml is indeed only read at startup you must bounce the JVM in order to pickup changes . If you want to be able to add remove users on the fly or change their roles without restarting the JVM consider using an LDAP backed security repository . You can do this via the directions here : https : tomcat.apache.org tomcat-7.0-doc realm-howto.html JNDIRealm", "Question : As a newbie to Enterprise Applications I m trying to get it done . I developed an Enterprise application in Netbeans 7.1.2 . It runs successfully using the default Glassfish server . With the need to change the server I downloaded and installed Tomee+ server and made some changes to make Tomee Manager Interface work on my system . I deployed the .ear file Glassfish server output into Tomee+ by placing it in the Tomee webapps folder with the server in the running state . It gets automatically deployed and appears in the Tomcat Web Application Manager interface . Then by providing the suitable path in the address-bar like http : localhost : 8080 app-war faces app.xhtml it provides the frontend screen but the backend process is not working if I click the submit button . Instead it simply provides a status page like HTTP Status 500 - javax.el.ELException : javax.ejb.EJBTransactionRolledbackException : Transaction was rolled back presumably because setRollbackOnly was called during a synchronization . My question is : what went wrong with the steps I took for deploying it in Tomee+ server .. . Answer : no more verbose stack btw can you try to : 1 check you have in tomee.xml the line 2 put your ear in apps instead of webapps .. . .. . The point is by default can be configured with the snapshot next release tomee extracts the ear in a folder simply removing the extension webapps your-ear for instance and then tomcat takes this folder as a webapp so your deployment is no more the one expected . That s why moving it over a folder not managed by tomcat apps is often enough . That s said Glassfish transaction management is sometimes too tolerant why i ask the full stack you got .", "Question : I need to setup a Tomcat 8.5.x server version in Eclipse . When I try to create a server using Eclipse GUI I get in Eclipse Luna as choice the latest version Apache Tomcat v8.0 . When I select it and I browse to my Tomcat 8.5.x server I get this blocking error message : .. . .. . The Apache Tomcat installation at this directory is version 8.5.0 . A Tomcat 8.0 installation is expected . The same error appears when trying TomEE 7.x which is internally based on Tomcat 8.5 . In Eclipse Neon the latest version as choice is Apache Tomcat v9.0 and it gives the same error . There isn t even a Apache Tomcat v8.5 option . Is there a way to use Tomcat 8.5 and TomEE 7.x in Eclipse How .. . Answer : You have to patch catalina.jar as this is version number the WTP adapter looks at . It s a quite useless check and the adapter should allow you to start the server anyway but nobody has though of that yet . For years and with every version of Tomcat this is always a problem . To patch you can do the following : .. . .. . cd tomcat or tomee home lib .. . mkdir catalina .. . cd catalina .. . unzip . . catalina.jar .. . vim org apache catalina util ServerInfo.properties .. . .. . Make sure it looks like the following the version numbers all need to start with 8.0 : .. . .. . Then : .. . .. . jar uf . . catalina.jar org apache catalina util ServerInfo.properties .. . cd . . .. . rm -rf catalina Comment : In Tomcat 8.5.3 catalina.jar is in the lib folder . Comment : +1 . For those using Windows OS you can make the required changes right in the JAR file . Just open the catalina.jar with your file archive utility WinRar WinZip 7zip etc navigate to the org apache catalina util ServerInfo.properties file make changes and save them confirm that you want to update the archive . Comment : Amazing answer thanks very much .", "Question : I d like to run a WebApp on Apache TomEE using Mojarra and Weld . I put javax.faces-2.1.21.jar and weld-servlet.jar in my WEB-INF lib directory . I also added an empty beans.xml to my WEB-INF folder . My web.xml looks like this : .. . .. . .. . WEB-INF web.xml .. . .. . .. . .. . Deploying the application on Tomcat works properly but with TomEE I get the following error on server startup : .. . .. . .. . .. . .. . .. . .. . Is there a problem because TomEE already uses another CDI-Framework OpenWebB Is there a possibility to get TomEE running with Weld Comment : I am curious to why you would want to do this .. . Answer : The fundamental issue in the code you posted is that org.jboss.weld.environment.servlet.Listener is just needed for plain ServletContainers . E.g . integrating Weld into jetty or Tomcat if you DO NOT have a full Java EE server . The pendant in Apache OpenWebBeans is WebBeansConfigurationListener .. . .. . But TomEE IS a full JavaEE6 server Thus it comes with CDI enabled by default . You will not need to add anything yourself .", "Question : I have SAR archive for JBoss and there is one MBean registered in jboss-service.xml . Now I want to migrate to TomEE and use standard javax.management annotation @MBean but I can t find out how to specify name of it and it creates with default name . Can anyone help me .. . Answer : TomEE doesnt support it yet see https : issues.apache.org jira browse TOMEE-1668 but DeltaSpike does and keeps the CDI integration : https : github.com apache deltaspike blob 1572c07eb8d5f892308e1060a9fa1ccdbf18435e deltaspike core-api src main java org apache deltaspike core-api jmx MBean.java L57", "Question : null .. . Answer : My TomEE jsf project renders as expected when running locally but renders extremely slowly when deployed remotely . My remotely deployed jsf pages render slowly when a relatively large number of components relative to just displaying the template page with are the result-of a call to data sources . Rendering times measure in minutes when there are more than just a few rows in the table . Any ideas of where to look to isolate this problem Edit 2 : I have deployed on multiple remote-server environments . Rendering time of query results in dataTable seems to depend on bandwidth availability . Traveling to the physical location of the remote-server directly logging onto the remote-server and accessing the application via localhost in any browser yields the result-of nearly instantaneous rendering of the query results in the dataTable tag . Can it be that jsf is generating a huge html file size such that bandwidth becomes a constraint Edit 1 : The first thing that I thought was that the remote-server was doing a memory swaps from RAM to disk . It may be but that led me to make sure of checking the memory allocated to the JVM by TomEE in catalina.sh . See catalina.sh CATALINA OPTS below . I have found StackOverflow posts about logging being turned on off for JSF but no reference of where this setting is . My logging.properties files seem to be identical remote and local for tomee s and the jvm s . I also found posts about Mojarra s version of the API having an exponential time-complexity but this project uses Apache MyFaces . The problem seems to be some type of TomEE or JVM configuration issue . When I run the application on the locally installed version of TomEE the same pages render in milliseconds . I am using Apache MyFaces 2.1.13 . From pom.xml .. . .. . I ll gladly post the entire pom.xml but logic tells me that if the project renders pages at a different rate depending on the TomEE container that it is deployed in then the issue is elsewhere . Remote TomEE Configuration : Tomcat Version Apache Tomcat TomEE 7.0.53 1.6.0.2 JVM Version 1.7.0 55-mockbuild 2014 04 16 07 52-b00 JVM Vendor Oracle Corporation OS Name Linux OS Version 2.6.18-371.8.1.el5 OS Architecture amd64 .. . .. . Local Tomee Configuration : Tomcat Version Apache Tomcat TomEE 7.0.53 1.6.0.2 JVM Version 1.7.0 67-b01 JVM Vendor Oracle Corporation OS Name Mac OS X OS Version 10.9.5 OS Architecture x86-64 .. . .. . BalusC mentioned memory which is a good thought . From catalina.sh .. . .. . And from system info : Comment : How about memory Mojarra s problem was fixed in 2.1.22 already by the way . Comment : Ah excellent thought Balus . Thank you . I ll edit the post with CATALINA OPTS system info . Comment : Can it be that jsf is generating a huge html file size such that bandwidth becomes a constraint Try it analyze it check it know it.. . And please if you edit put the info at the end and emphasize things", "Question : I m attempting to use Tomcat TomEE to run a REST service that will return some data from some SQL queries Oracle . I ve installed TomEE 7.0.1 which uses Tomcat 8.5.3 . The JDBC driver is available from a private enterprise maven repo . I d prefer to get it from there as opposed to storing it locally . I noticed at http : tomee.apache.org configuring-datasources.html there is the possible notation of mvn : g : a : v for the classpath attribute . However I don t see any way to configure the Maven repositories this will reference . How do I tell it to look in a particular repo for this My Resource definition in conf tomee.xml looks something like this : .. . .. . Does this look correct except for the fact that I m not getting it from maven yet I find the Tomcat docs confusing with respect to the required syntax for this . It s not clear whether a pure XML syntax is required or a mixed XML property syntax . I haven t written the code to reference this datasource yet but if I start the instance should I see any default output that will show Tomcat connecting to this datasource If it doesn t show this by default is there a way to turn this on Comment : I m still having issues with the JNDI lookup but I m going to post my current related issue separately . .. . Answer : For reference this thread got started on tomee list as well and got more answers : http : tomee-openejb.979440.n4.nabble.com Define-datasource-reference-JDBC-driver-and-see-init-in-console-td4679582.html", "Question : I m attempting to use Tomcat TomEE to run a REST service that will return some data from some SQL queries Oracle . I ve installed TomEE 7.0.1 which uses Tomcat 8.5.3 . The JDBC driver is available from a private enterprise maven repo . I d prefer to get it from there as opposed to storing it locally . I noticed at http : tomee.apache.org configuring-datasources.html there is the possible notation of mvn : g : a : v for the classpath attribute . However I don t see any way to configure the Maven repositories this will reference . How do I tell it to look in a particular repo for this My Resource definition in conf tomee.xml looks something like this : .. . .. . Does this look correct except for the fact that I m not getting it from maven yet I find the Tomcat docs confusing with respect to the required syntax for this . It s not clear whether a pure XML syntax is required or a mixed XML property syntax . I haven t written the code to reference this datasource yet but if I start the instance should I see any default output that will show Tomcat connecting to this datasource If it doesn t show this by default is there a way to turn this on Comment : I m still having issues with the JNDI lookup but I m going to post my current related issue separately . .. . Answer : Refer to the sample below for using JDBC driver as a database resource .", "Question : I am upgrading a code that uses Jersey JAX-RS to run on an Apache TomEE server . Unfortunately it throws errors when I try to use Jersey with TomEE . I am using eclipse and have the JAX-RS project facet turned on . It points to the Jersey library . I have also moved the Jersey libraries into the lib directory to try to solve the problem to no avail . The server throws the following error : .. . .. . web.xml : .. . .. . Does anyone know how I might make this work I d also consider using the tomEE+ Jax-rs server but it doesn t seem to recognize the Jackson annotations . EDIT : I think the issue is that the openEJB CDI is conflicting with the CDI that comes with Jersey . I have no idea how to fix this . Comment : could you post your web.xml file content Comment : web.xml posted . Comment : Greg - Did you ever solve this problem I appear to be having the exact same issue . Comment : Nope I decided not to use TomEE .. . Answer : Just came across with this problem : TomEE + Jersey.. . the problem was that I was using TomEE in Eclipse Use workspace metadata .. . and somehow when configured like this the server configurations misses several details of the TomEE configs namely the conf system.properties - where we declare : com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager true . When I changed it to Use Tomcat installation the problem went away . You can configure this by double-clicking the TomEE server in Eclipse and select Use Tomcat installation as seen in the following image : .. . .. . enter image description here http : i.stack.imgur.com N6K0k.png", "Question : I need to setup a Tomcat 8.5.x server version in Eclipse . When I try to create a server using Eclipse GUI I get in Eclipse Luna as choice the latest version Apache Tomcat v8.0 . When I select it and I browse to my Tomcat 8.5.x server I get this blocking error message : .. . .. . The Apache Tomcat installation at this directory is version 8.5.0 . A Tomcat 8.0 installation is expected . The same error appears when trying TomEE 7.x which is internally based on Tomcat 8.5 . In Eclipse Neon the latest version as choice is Apache Tomcat v9.0 and it gives the same error . There isn t even a Apache Tomcat v8.5 option . Is there a way to use Tomcat 8.5 and TomEE 7.x in Eclipse How .. . Answer : There is a patch for Eclipse : .. . https : bugs.eclipse.org bugs attachment.cgi id 262418 action edit https : bugs.eclipse.org bugs attachment.cgi id 262418 action edit .. . .. . Download this patch and put it to the plugins directory of your Eclipse installation . It will replace the default org.eclipse.jst.server.tomcat.core 1.1.800.v201602282129.jar . NOTE .. . After you add this patch you must choose Apache Tomcat v9.0 when adding a server runtime environment in the Eclipse Preferences Server Runtime Environments . I.e . this patch allows you to select either Tomcat version 9.x or Tomcat version 8.5.x when adding Apache Tomcat v.9.0 runtime environment . .. . .. . More details on can be found on the related bug report page : https : bugs.eclipse.org bugs show bug.cgi id 494936" ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
django-filer@django@59
django-filer -- file and image management application for @placeholder .
{ "confidence": [ 46.66084671020508, 40.6179313659668, 40.524078369140625, 40.48664093017578, 40.184600830078125, 40.122344970703125, 38.499595642089844, 38.382591247558594, 38.382591247558594, 37.693504333496094, 36.681427001953125, 36.63285827636719, 36.46070861816406, 35.71958541870117, 34.674102783203125, 34.642539978027344, 33.126792907714844, 32.602386474609375, 32.602386474609375, 32.602386474609375, 32.602386474609375, 32.602386474609375, 32.602386474609375, 32.602386474609375, 32.32420349121094, 32.179725646972656, 32.179725646972656, 32.179725646972656, 32.179725646972656, 32.179725646972656, 32.179725646972656, 31.3174991607666, 30.595256805419922, 30.595256805419922, 30.572072982788086, 30.572072982788086, 29.022663116455078, 29.022663116455078, 29.022663116455078, 28.87091064453125, 28.862335205078125, 28.862335205078125, 28.862335205078125, 28.862335205078125, 28.862335205078125, 28.862335205078125, 28.862335205078125, 28.519393920898438, 28.01616859436035, 27.97606086730957, 27.914329528808594, 27.74579620361328, 27.501449584960938, 26.937210083007812, 26.937210083007812, 26.904386520385742, 26.904386520385742, 26.904386520385742, 26.904386520385742, 26.855201721191406, 26.842082977294922, 26.184497833251953, 26.150060653686523, 25.607955932617188, 25.461130142211914, 25.282608032226562, 25.282608032226562, 25.203224182128906, 24.991867065429688, 24.952571868896484, 24.658119201660156, 24.626039505004883, 24.626039505004883, 24.60841941833496, 24.56945037841797, 24.557992935180664, 24.486780166625977, 24.448898315429688, 24.415672302246094, 24.137069702148438, 24.071430206298828, 24.071430206298828, 23.995830535888672, 23.835206985473633, 23.735822677612305, 23.735822677612305, 23.5360050201416, 23.5360050201416, 23.535625457763672, 23.264930725097656, 23.16433334350586, 23.16433334350586, 23.16433334350586, 22.924877166748047, 22.89089584350586, 22.89089584350586, 22.579421997070312, 22.579421997070312, 22.536705017089844, 22.51083755493164 ], "content": [ "I m trying to use django-filer in my admin interface for file-management .", "I m using django-filer https : github.com stefanfoulis django-filer for file handling .", "Here is myapp.model .. . .. . I d like to hack in the middle of the django-filer uploading process and autocreate instances of Item for every image django-filer receives .", "We use django-filer 0.9.8 for our image uploads .", "https : github.com divio django-filer blob develop filer models foldermodels.py", "Here s a snippet that combines django-filer and django-image-cropping https : github.com jonasundderwolf django-image-cropping .", "What s wrong with django-filer-svg", "Files in django-filer are just regular models .", "https : github.com divio django-filer issues 887", "I use django-filer https : github.com stefanfoulis django-filer to manage images .", "i have problem in new django with filer .", "Does anyone tried something with django django-cms filer", "The images that are generated by django-filer or easy-thumbnails", "Is it possible to get the absolute URL of a file just uploaded with Django Filer", "I want to allow the users of a django-CMS to edit the background-image in one of my CMS TEMPLATES using the filer admin .", "I am trying to extend the Django Filer Plugin in .", "I also tried this : .. . .. . djangocms-filer-svg https : github.com agcooke django-filer-svg .. . .. . But it seems quite old and impossible to migrate it properly .", "django-filer doesn t have traditional urls.py for me to just override single url pattern pointing to a custom view .", "django-filer contains a module mixins which is more of a stump for Icon-loading at the moment rather than anything of genuine importance .", "Better yet pip install django-filer 0.9.1 to make sure you bypass the metaclass error .", "Let s say I am selecting 10 files to be uploaded using django-filer .", "I don t have my own views handling uploads I m using django-filer .", "The django-filer documentation makes no mention of how to correctly create folder and save the images savely inside .", "I m using django-filer for the first time and it looks great and work pretty well .", "I set up djangocms 3.1.0 with django-filer 0.9.11 and I created two custom djangocms plug-ins extending django-filer as explained in documentation http : django-filer.readthedocs.org en latest extending filer.html .", "I have just installed Django-filer following the instructions on the Github page .", "The folders is something that is added when you install django-filer .", "I haven t set any it is the admin page to add folders in django-filer : -", "My problem is this : .. . .. . I m using Django Filer to upload music .", "Django Filer sets the uploaded at datetime field model attribute on upload .", "How can i configure django-filer properly to run with Amazon S3", "I am using the Django Filer to be able to upload multiple images in the Django Admin panel .", "Also are you sure filer is installed correctly", "How can I check if filer is installed correctly", "First remove http : stackoverflow.com questions 1231688 how-do-i-remove-packages-installed-with-pythons-easy-install the newer django-filer package though .", "I ve just started using Django-Filer and I m a bit lost as to how I can actually reference the images uploaded in the admin system .", "I cant seem to get inline-images working with filer .", "Or maybe should I subclass and override something from filer package", "I believe the issue lies somewhere in the polymorphic filer grey area .", "Normally easy-thumbnails has THUMBNAIL MEDIA URL setting which allows thumbnail s storage to build absolute urls but it does not work with django-filer .", "The real reason of having Django-filer although I think it would be useful anyway .", "Try creating your own CompanyLogo form field subclassing the django-filer field .", "I am trying to use django-filer however I can t upload any images .", "But I have no idea how I am able to grap the images I have uploaded using Django Filer .", "From within the ckeditor modal I can browse django-filer files and integrate them .", "I am using the default settings for django-filer and I am now wondering if this permissions error is caused by this", "I am trying to use django-filer and its Secure Downloads feature while saving my Media on Amazon S3 .", "I was curious how I copy over site-packages stuff like for instance in django-filer I used a pip install for it installed it to : .. . .. . usr local lib python2.7 site-packages filer .. . .. . Which is fine but the stuff inside that filer folder like under static filer css are things I would like to change on a specific to my project basis .", "The filer documentation is a bit tricky in this respect .", "You are running Django version 1.4.1 or lower which you can check by any of these methods : .. . .. . 1 . on the bash .. . .. . pip freeze grep Django awk BEGIN FS print 2 .. . .. . 2 . on the bash if django has been properly set to the Linux path .. . .. . django-admin --version .. . .. . 3 . on the django.shell .. . .. . import django .. . django.VERSION or .. . django.get version .. . .. . Although not specifically asserted it seems that django-filer 0.9.x is incompatible with django versions below 1.4.1 .. . .. . Fixing the mixin problem won t help : .. . .. . First off django-mixins is a different project and its namespace not used nor conflicting .", "So i have django 1.8.9 and django-filer and i started running into this problem .. . .. . I realizes it had something to do with a new Custom User i added but looking at filer source code i saw that is should deal with it as well .. . .. . i have AUTH USER MODEL authtools.User so it still didn t make sense so i had a look at the database and i found that my old constraint was still in-place it didn t update to my new user .. . .. . Any ideas on how i can fix this", "here is the code https : github.com stefanfoulis django-filer blob bb0bfa4bd9dccd18c05f01f4da2ef9e7ed1a8858 filer models imagemodels.py L24 .. . .. . So customizing is easy -- I inherited my model CustomImage from BaseImage and specified necessary setting -- all works fine .", "It seems to me that cmsplugin-filer https : github.com stefanfoulis cmsplugin-filer provides what you are looking for .", "But now filer have small bug with auto crop scale image in content THUMBNAIL PROCESSORS", "I have a script that creates a new filer image in a specified folder and links it to a model of mine .", "I m try to install filer but when I syncdb or runserver I keep having this error .", "In my setting.py I have : .. . .. . .. . .. . If I remove filer and all its plugins my site works fine .", "But I added filer easy-thumbnails mptt to my installed apps and it shows up in the admin interface .", "A click on the magnifier does not open a pop-up but moves directly to the filer folder window .", "The template that is throwing the error is the default template in filer .", "I m using django-filer http : django-filer.readthedocs.org en 0.9.4 on a project and have a model that looks like this : .. . .. . For company admin.py I d like to override the logo field so that I m able to list the files in the folder .", "ValueError : Cannot assign File : file : Course.icon must be a Image instance .", "I have a django-1.4 installation and I have django-cms running .", "For further context I have 50 files total comprising 40 jpegs and 10 pdfs - this is represented correctly in the filer table : filer file .", "Creating directories with django requires the type of access to the file system that is probably better to avoid .", "You are hinting that the error appeared after you added filer to INSTALLED APS .", "Uh ok I thought you removed it while adding filer or easy-thumbnails .", "So I wanted to manipulate directly filer but whatever I do it won t allow me to upload SVG files .", "Indeed this version works well on Django version 1.4.1 .. . .. . Note : If you installed django-mixins by mistake remove it as well .", "You could change the foldermodels.py and filemodels.py : .. . .. . from filer.models import mixins .. . to .. . import filer.models.mixins .. . .. . Yet after resolving the mixins issue you will still struggle with import difficulties of django.utils.six .. . .. . Part of the reason is that utils.six https : docs.djangoproject.com en dev topics python3 a Python 2 3 compatibility layer has only recently been added to Django 1.4.2 .. . .. . Solution .. . .. . You can see from https : github.com stefanfoulis django-filer blob develop HISTORY that installing version 0.8.7 could work .", "I got the same error when using d the library django-mptt https : github.com django-mptt django-mptt .", "After installing django-polymorphic everything worked fine .", "I had to pin it at django-polymorphic 0.5.5 0.8 .", "I ve made an extra image field as shown by @Timmy O Mahony on How to add some extra fields to the page in django-cms", "I managed to get the creation and saving of a FilerImage working but when I check the admin all the images end up in an uncategorised folder in the file-management overview .", "I need a way to use upload and browse abilities of django-filer in the djangocms-text-ckeditor for example to upload images in the articles of my site as I m typing them in the ckeditor .", "I ve noticed in Django filer that we are using not sure if it s just us or a wider issue that the file path in filer renders as : .. . .. . Currently : filer public rest-of-the-file-path.pdf .. . .. . Whereas the actual path of hyperlink itself points to : .. . .. . uploads filer public rest-of-the-file-path.pdf .. . .. . So the uploads bit is missing from the visible URL .. . .. . I m pretty new to Django and I m struggling to find what to change and where .", "I am using django-cms 2.4.3 and django 1.5.5 .. . .. . EDIT : .. . .. . models.py", "I created my own storage class as follows : .. . .. . I think the settings-file is configured properly as follows : .. . .. . I set the filer urls and the FILER ENABLE PERMISSIONS True .", "The answer to your question lies within the documentation of django-filer : http : django-filer.readthedocs.org en latest usage.html filerfilefield-and-filerimagefield .. . .. . You need to create a model with a FilerImageField instead of django s ImageField : .. . .. . And you can use easy thumbnail to render it : .. . .. . or just regularly :", "One of them was the django-mptt .", "I think it s not django .", "in django-admin panel http : stackoverflow.com questions 10293641 how-to-add-some-extra-fields-to-the-page-in-django-cms-in-django-admin-panel .. . .. . I d like to call this image field from another page using its reverse id much like .. . .. . Do I need a custom template tag", "The rough structure I m hoping to use in Django-Filer s admin system is : .. . .. . Root .. . Image Gallery .. . Album 1 .. . Image 1 .. . Image 2 .. . Image 3 .. . Album 2 .. . Another Gallery .. . .. . So my question is using a loop in the Template how would I go about displaying each image using the Album folder as a new heading", "It is good practice to not keep unused and non-dependent django-modules around .", "This is much better then writing sql manually since django does it for you .", "So you can listen to the post save signal of the File or Image model and create your instance there .", "How to programmatically create or fill an icon field if I have a local path to an image file", "I then want to submit this file to Django Celery to upload to Mixcloud using their API .", "Edit : added generated code from django above .. . .. . Javascript Error : Uncaught ReferenceError : django is not defined .. . .. . Could it be that I need to know what css to include and what javascript files to load", "So you are saying that if you remove filer from INSTALLED APPS an error thumbnail is not a valid tag library goes away", "Well if I removed filer from the installed apps would I still be able to click to add a folder in the admin of the site", "If filer is taken out the error goes away because you can no longer add folders in the admin .", "So I reverted Django to 1.7.9 and mptt to 0.6.1 .", "I was implemented the jQuery filer http : filer.grandesign.md on bootstrap-modal .", "looking as we have to reset the filer before open the modal .", "setting db constraint False in all user foreign-keys in filer code base applying the migration and then removing it again or setting it to db constraint True since there are implications https : docs.djangoproject.com en 1.8 ref models fields django.db.models.ForeignKey.db constraint automatically creates the new constraint that i need .", "I m using the following command to dump all the page data titles plugins and presumably the filer images .. . .. . However when i try to run loaddata in my staging environment I get an foreignkey integrity error - specifically around the table filer file .", "I m having an issue trying to migrate content from my local development django-cms with sqlite3 backend to AWS with postgres .", "Suggest reading this thread : groups.google.com forum msg django-updates vN 7YHqBcK0 https : groups.google.com forum msg django-updates vN 7YHqBcK0 79odlhBgBgAJ" ] }
{ "confidence": [ 46.958229064941406, 45.289161682128906, 45.20302963256836, 44.330406188964844, 43.58110046386719, 42.42286682128906, 41.35845947265625, 41.23439407348633, 41.14569091796875, 40.40061950683594, 40.39636993408203, 39.92539978027344, 39.75371551513672, 39.068199157714844, 38.98223114013672, 38.83707809448242, 38.598663330078125, 37.95097732543945, 36.57746887207031, 36.548301696777344 ], "content": [ "Question : Here is myapp.model .. . .. . I d like to hack in the middle of the django-filer uploading process and autocreate instances of Item for every image django-filer receives . django-filer doesn t have traditional urls.py for me to just override single url pattern pointing to a custom view . How can I approach this EDIT : .. . .. . Thanks to a hint from stefanfoulis I eventually end up with this code : .. . Answer : Files in django-filer are just regular models . FilerImageField is a ForeignKey to filer.models.Image under the hood . So you can listen to the post save signal of the File or Image model and create your instance there . Signal docs : https : docs.djangoproject.com en dev ref signals post-save Comment : Never used signals before but I eventually figured it out thanks And well thanks for a great utility : I am updating the question with my signal receiver for anyone looking for clues in the future .", "Question : I use django-filer https : github.com stefanfoulis django-filer to manage images . How can I crop and image after selecting one for a FilerImageField .. . Answer : Here s a snippet that combines django-filer and django-image-cropping https : github.com jonasundderwolf django-image-cropping . Just use CroppableFilerImageField instead of FilerImageField your models . Note that you still have to press Save and continue editing after selecting the image to be able to crop .", "Question : I m using django-filer https : github.com stefanfoulis django-filer for file handling . It has abstract model BaseImage and also there is default model for images called Image which inherits from BaseImage and not abstract . Also this package allows to specify custom model for images : it hooks import of Image model checks FILER IMAGE MODEL setting and return custom model if it s specified instead of Image . here is the code https : github.com stefanfoulis django-filer blob bb0bfa4bd9dccd18c05f01f4da2ef9e7ed1a8858 filer models imagemodels.py L24 .. . .. . So customizing is easy -- I inherited my model CustomImage from BaseImage and specified necessary setting -- all works fine . But here comes trouble : how to properly migrate existing data from old models to new ones .. . Answer : You need to run a data-migration https : docs.djangoproject.com en 1.8 topics migrations data-migrations the details of which will depend on your models .", "Question : We use django-filer 0.9.8 for our image uploads . Now we d like to programatically add some images to the catalog and move them to filter category . I managed to get the creation and saving of a FilerImage working but when I check the admin all the images end up in an uncategorised folder in the file-management overview . So I guess I ll have to move the file the virtual file but I cannot find any documentation about it . I d assume I could pass something when I create the image or move it after saving . Any ideas I m looking at the docs and the source code but I cannot find anything . .. . Answer : FilerImage is just a ForeignKey to File when you create it you can create also a filer.models.foldermodels.Folder and specify where the File is created .", "Question : null .. . Answer : I also tried this : .. . .. . djangocms-filer-svg https : github.com agcooke django-filer-svg .. . .. . But it seems quite old and impossible to migrate it properly . So I wanted to manipulate directly filer but whatever I do it won t allow me to upload SVG files . Does anyone tried something with django django-cms filer Comment : What s wrong with django-filer-svg It looks as though you could create a local version and create your own migration file without issue Comment : Suggest reading this thread : groups.google.com forum msg django-updates vN 7YHqBcK0 https : groups.google.com forum msg django-updates vN 7YHqBcK0 79odlhBgBgAJ", "Question : I have a django-1.4 installation and I have django-cms running . I m try to install filer but when I syncdb or runserver I keep having this error . In my setting.py I have : .. . .. . .. . .. . If I remove filer and all its plugins my site works fine . What could possibly cause the problem thanks .. . .. . Traceback : .. . .. . ImportError : cannot import name mixins .. . .. . This my pip freeze : Comment : Could you post a full traceback Also are you sure filer is installed correctly Comment : How can I check if filer is installed correctly Also do I need to put mixins in the list of my INSTALLED APPS Comment : Hmm that s a bit odd . pip freeze shows that it is installed . Go to where manage.py is and run . manage.py shell from there try the same import that s failing .. . Answer : You are running Django version 1.4.1 or lower which you can check by any of these methods : .. . .. . 1 . on the bash .. . .. . pip freeze grep Django awk BEGIN FS print 2 .. . .. . 2 . on the bash if django has been properly set to the Linux path .. . .. . django-admin --version .. . .. . 3 . on the django.shell .. . .. . import django .. . django.VERSION or .. . django.get version .. . .. . Although not specifically asserted it seems that django-filer 0.9.x is incompatible with django versions below 1.4.1 .. . .. . Fixing the mixin problem won t help : .. . .. . First off django-mixins is a different project and its namespace not used nor conflicting . django-filer contains a module mixins which is more of a stump for Icon-loading at the moment rather than anything of genuine importance . You could change the foldermodels.py and filemodels.py : .. . .. . from filer.models import mixins .. . to .. . import filer.models.mixins .. . .. . Yet after resolving the mixins issue you will still struggle with import difficulties of django.utils.six .. . .. . Part of the reason is that utils.six https : docs.djangoproject.com en dev topics python3 a Python 2 3 compatibility layer has only recently been added to Django 1.4.2 .. . .. . Solution .. . .. . You can see from https : github.com stefanfoulis django-filer blob develop HISTORY that installing version 0.8.7 could work . First remove http : stackoverflow.com questions 1231688 how-do-i-remove-packages-installed-with-pythons-easy-install the newer django-filer package though . Indeed this version works well on Django version 1.4.1 .. . .. . Note : If you installed django-mixins by mistake remove it as well . It is good practice to not keep unused and non-dependent django-modules around . Comment : Better yet pip install django-filer 0.9.1 to make sure you bypass the metaclass error .", "Question : The django-filer documentation makes no mention of how to correctly create folder and save the images savely inside . My scenario : I have different users that can upload images through the frontend . Right now every FilerImage I create gets saved in the unspecified folder . How do I create a folder for every user programmatically And how do I move the uploaded FilerImage instance in code without violating the private public settings of the file Comment : Creating directories with django requires the type of access to the file system that is probably better to avoid . To customize what django does with the files you have the file complete event which you can use in a custom upload handler docs.djangoproject.com en 1.9 ref files uploads https : docs.djangoproject.com en 1.9 ref files uploads custom-upload-handlers .. . Answer : Here is a solution I found out through fiddling around . It is very possible that this is not the prgmatic way to handle this .. . .. . More onfo can be gained by looking inside the Source-Code of the Folder Model here . https : github.com divio django-filer blob develop filer models foldermodels.py", "Question : Let s say I am selecting 10 files to be uploaded using django-filer . They initially have very random names . I d like to have a set of rules according to which they ought to be renamed and only then passed for further processing thumbnails etc . . I need to actually rename everything especially filename not just Image model name . I tried catching pre save signal for Image model and altering instance.original filename but that s not renaming a filename . Or maybe should I subclass and override something from filer package I d be grateful for code example cause this is a little bit to hard for me . .. . Answer : I used form valid self form in views.py to process and manipulate my images . The complete code is a bit long and very specific but I ll post a few snipplets which should show the idea of how to generate filenames : .. . .. . profilbild path is a function according to https : docs.djangoproject.com en 1.3 ref models fields django.db.models.FileField.upload to : .. . .. . I hope this gives you some clues . Comment : did this answer help Do you need more info Comment : I m afraid it didn t help me . I don t have my own views handling uploads I m using django-filer . Where should I put this form valid method exactly", "Question : I need a way to use upload and browse abilities of django-filer in the djangocms-text-ckeditor for example to upload images in the articles of my site as I m typing them in the ckeditor . Are there any settings that help me with that Or should I write a compatible browser myself .. . Answer : It seems to me that cmsplugin-filer https : github.com stefanfoulis cmsplugin-filer provides what you are looking for . Take a look at the screenshot . From within the ckeditor modal I can browse django-filer files and integrate them . Is that what you were looking for Screenshot http : i.stack.imgur.com I3ake.png Comment : But now filer have small bug with auto crop scale image in content THUMBNAIL PROCESSORS", "Question : I have a django-1.4 installation and I have django-cms running . I m try to install filer but when I syncdb or runserver I keep having this error . In my setting.py I have : .. . .. . .. . .. . If I remove filer and all its plugins my site works fine . What could possibly cause the problem thanks .. . .. . Traceback : .. . .. . ImportError : cannot import name mixins .. . .. . This my pip freeze : Comment : Could you post a full traceback Also are you sure filer is installed correctly Comment : How can I check if filer is installed correctly Also do I need to put mixins in the list of my INSTALLED APPS Comment : Hmm that s a bit odd . pip freeze shows that it is installed . Go to where manage.py is and run . manage.py shell from there try the same import that s failing .. . Answer : I ran into the same problem . The problem was hard to find but simple to solve . After installing django-polymorphic everything worked fine . Comment : I had to pin it at django-polymorphic 0.5.5 0.8 . Any higher and I had the same issue .", "Question : null .. . Answer : I m trying to use django-filer in my admin interface for file-management . But I added filer easy-thumbnails mptt to my installed apps and it shows up in the admin interface . But whenever I click the folder button I get this error : .. . .. . each context takes exactly 2 arguments 1 given .. . .. . It mentions that filer.css and filer.js are served from staticfiles from within the package and to enable these but I don t see how to do this . I ve tried a few approaches but I can t find any documentation that explains exactly what they mean . I tried making it so static files would be served I tried adding it to the installed apps none of these work . So how can I correctly set this up and avoid this error Why am I even getting this error what did I miss The documentation is somewhat sparse when it comes to installation so if anyone is familiar with this please give me some advice as to how to get it working . Any advice would be a huge help . Thanks .", "Question : I set up djangocms 3.1.0 with django-filer 0.9.11 and I created two custom djangocms plug-ins extending django-filer as explained in documentation http : django-filer.readthedocs.org en latest extending filer.html . Everything works fine but now I need to set just for one of those plug-ins a specific folder in which I want to save uploaded file . At the moment files are saved using DEFAULT FILER STORAGES settings . There is a way to set within a plug-in a specific storage folder Comment : Not sure but isn t upload to what you re looking for image models.ImageField upload to uploads images .. . Answer : Without seeing your code I can t say for sure you re taking the same approach but let me explain how I ve achieved uploads to a specific folder and perhaps you can make it work for yourself . Alternatively if you provide more details I may be able to help more . I have a script that creates a new filer image in a specified folder and links it to a model of mine . I ve done this as follows : .. . .. . I hope this helps", "Question : null .. . Answer : i have problem in new django with filer . A can upload an image from disk but i cant select this image to choose it . There is no arrow to pick up the image . This is my screen .. . .. . enter image description here http : i.stack.imgur.com iFuB2.png", "Question : null .. . Answer : I am trying to use django-filer and its Secure Downloads feature while saving my Media on Amazon S3 . I created my own storage class as follows : .. . .. . I think the settings-file is configured properly as follows : .. . .. . I set the filer urls and the FILER ENABLE PERMISSIONS True . Now I upload a private file with a user copy the url and can access it with other users or while logged out . I am surely missing something . How can i configure django-filer properly to run with Amazon S3", "Question : null .. . Answer : I ve just started using Django-Filer and I m a bit lost as to how I can actually reference the images uploaded in the admin system . I need to display a simple dynamic gallery on a single page that can handle multiple albums . Each album is a new heading on the page and all the images in that album are displayed under that heading . The rough structure I m hoping to use in Django-Filer s admin system is : .. . .. . Root .. . Image Gallery .. . Album 1 .. . Image 1 .. . Image 2 .. . Image 3 .. . Album 2 .. . Another Gallery .. . .. . So my question is using a loop in the Template how would I go about displaying each image using the Album folder as a new heading A second related question is : how would I go about extending the Folder model to include a description field without breaking any of its functionality", "Question : I m having an issue trying to migrate content from my local development django-cms with sqlite3 backend to AWS with postgres . I m using the following command to dump all the page data titles plugins and presumably the filer images .. . .. . However when i try to run loaddata in my staging environment I get an foreignkey integrity error - specifically around the table filer file . Looking at the table structure for every image I have in filer image I should have a foreignkey reference in filer file- which doesn t reflect what is in the JSON dumpfile . Strangely for documents eg pdfs the dumpdata command works fine it is just related to images . Furthermore if I manually generate the missing json data it works just fine . Has anyone encountered this issue before I ve just upgraded to the following versions and still seeing the error . Comment : It pays to have the same database locally as you have in production . Then this would have been just a matter of pg dump and restore . If you are having trouble with FK dumpdata the offending tables individually and load them one by one Comment : @e4c5 thanks I probably am going to go down this route regardless but I wouldn t have thought this would matter in this particular case . For further context I have 50 files total comprising 40 jpegs and 10 pdfs - this is represented correctly in the filer table : filer file . Filer image also shows the 40 images correctly . doing a dumpdata filer.file results in only the pdf entries being output .. . Answer : This is a workaround not quite the answer . I believe the issue lies somewhere in the polymorphic filer grey area . Writing your own serializer to mimic what dumpdata does solved my issue . Logged a bug request regardless . https : github.com divio django-filer issues 887", "Question : I am running django-1.6 django-storages and s3 . All of these seem to be working fine . When I upload an image it goes to s3 as expected . I am trying to use django-filer however I can t upload any images . When I click upload nothing happens at all in Firefox although in Chrome and Opera a file-upload dialog opens and I am able to upload an image . I tried safe-mode as well . Here is the HTML and JS for the button : .. . Answer : I deleted everything in my S3 buck static folder and ran collectstatic once again . There was some unknown conflict i guess .", "Question : I am using the Django Filer to be able to upload multiple images in the Django Admin panel . However I can t find out how I can fetch these images so that I can render them in a template HTML-file . I know how to fetch images when I am uploading the normal way as I can reference the model in the template . But I have no idea how I am able to grap the images I have uploaded using Django Filer . I am Django noob so sorry if the question seems weird . If anybody have any other suggestions on how to upload multiple images in the Django Admin panel please come with suggestions . .. . Answer : The answer to your question lies within the documentation of django-filer : http : django-filer.readthedocs.org en latest usage.html filerfilefield-and-filerimagefield .. . .. . You need to create a model with a FilerImageField instead of django s ImageField : .. . .. . And you can use easy thumbnail to render it : .. . .. . or just regularly :", "Question : null .. . Answer : The images that are generated by django-filer or easy-thumbnails are so little that it is hard for me to recognize the preview images . How can I increase the preview thumbnail size in the admin overview enter image description here http : i.stack.imgur.com dhjcw.png", "Question : So i have django 1.8.9 and django-filer and i started running into this problem .. . .. . I realizes it had something to do with a new Custom User i added but looking at filer source code i saw that is should deal with it as well .. . .. . i have AUTH USER MODEL authtools.User so it still didn t make sense so i had a look at the database and i found that my old constraint was still in-place it didn t update to my new user .. . .. . Any ideas on how i can fix this Resorting to SQL to remove the constraints and add the new one doesn t seem like the best approach . Comment : Did you try to migrate your db Comment : yes i did makemigrations and migrate .. . Answer : setting db constraint False in all user foreign-keys in filer code base applying the migration and then removing it again or setting it to db constraint True since there are implications https : docs.djangoproject.com en 1.8 ref models fields django.db.models.ForeignKey.db constraint automatically creates the new constraint that i need . This is much better then writing sql manually since django does it for you . I am still testing but so far its working no more error .. . .. . UPDATE : .. . .. . i add to write a datamigration with RUNSQL because of django-admin log entries that were pointing to the wrong user still : .. . .. . After applying this to the affected db and fixing it delete this code so that it can run on a fresh database without throwing a does not exist exception ." ] }
[ "yes-answer-long", "yes-answer-short" ]
django
UNK_RELATION
zoomcharts@html5@74
zoomcharts -- zoomcharts is javascript chart and graph library utilising @placeholder features to bring highly interactive charts and graphs to web-applications .
{ "confidence": [ 15.900856018066406, 15.900856018066406, 15.900856018066406, 15.900856018066406, 15.900856018066406, 15.900856018066406, 15.900856018066406, 15.900856018066406, 15.900856018066406 ], "content": [ "I m implementing functionality to create a link between two nodes on Shift+Alt+Click .", "Like this .. . .. . The altKey seems not to be detected .", "According to this http : jsfiddle.net Rw4km it is the alt option button on a keyboard .", "Any clue", "Use click event it also has selection attribute .", "Selection event does not have altKey property .", "There are other selection changes like selected nodes disappearing that do not have associated mouse clicks an you probably do not want a link added in such case .", "ok . done and implemented .", "Thanks" ] }
{ "confidence": [ 15.133660316467285 ], "content": [ "Question : I m implementing functionality to create a link between two nodes on Shift+Alt+Click . Like this .. . .. . The altKey seems not to be detected . According to this http : jsfiddle.net Rw4km it is the alt option button on a keyboard . Any clue .. . Answer : Use click event it also has selection attribute . Selection event does not have altKey property . There are other selection changes like selected nodes disappearing that do not have associated mouse clicks an you probably do not want a link added in such case . Comment : ok . done and implemented . Thanks" ] }
[ "yes-answer-long", "yes-answer-short" ]
html5
UNK_RELATION
gluon-desktop@gluon@82
gluon-desktop -- use this tags for questions about the gluon-desktop library and @placeholder ignite .
{ "confidence": [ 70.38800048828125, 65.67047119140625, 65.5291748046875, 62.73048400878906, 56.220130920410156, 56.000343322753906, 54.65333557128906, 51.800270080566406, 51.601661682128906, 40.675987243652344, 38.4993896484375, 37.63092803955078, 36.60944366455078, 36.41368103027344, 36.41368103027344, 36.41368103027344, 35.621116638183594, 34.99079132080078, 34.944252014160156, 34.237083435058594, 34.17943572998047, 33.942020416259766, 33.805057525634766, 33.805057525634766, 33.31006622314453, 32.699363708496094, 29.317340850830078, 27.711166381835938, 25.76593780517578, 23.55167579650879, 22.75623321533203, 22.628196716308594, 21.576385498046875, 21.503995895385742, 20.741947174072266, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.713470458984375, 20.320749282836914, 19.945327758789062, 19.634906768798828, 18.504690170288086, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.975988388061523, 17.497207641601562, 17.321624755859375, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695, 16.159929275512695 ], "content": [ "Gluon Ignite is an open-source project and you can find an example in the test directory on the repository website : https : bitbucket.org gluon-oss ignite src c85197b33852 src test java com gluonhq ignite at default", "I set up a JavaFX Gluon Project using the Eclipse Gluon plugin and tried to get Gluon Ignite Gluon Ignite http : gluonhq.com open-source ignite basically a wrapper framework to be able to use CDI in JavaFX with Dagger going .", "You can use Gluon Ignite http : gluonhq.com open-source ignite which supports dependency-injection with Dagger Guice and Spring .", ".. . .. . EDIT : An answer suggested to use Gluon Ignite but I m still having trouble figuring it out .", "How can I change the icon of a Gluon Desktop app", "Since Java 8 is not yet supported for Gluon Mobile applications I wouldn t use Ignite which is built on it .", "Does anyone know if there is any easy way to use dependency-injection within the FXML controllers of a Gluon Desktop ParticleApplication app", "The problem is that I m not able to inject it into the controllers like the PrimaryController class created by the IntelliJ Gluon plugin when you make a Gluon Desktop - Multiple View Project with FXML .", "Some Questions to Orientations with Gluon : .. . .. . Can you detect an Orientation switch with Gluon", "Gluon Mobile doesn t support Stream API hence the NoSuchMethodError .", "I d like to build my Gluon Project as a SINGLE executable-jar file .", "In Ignite there is a way to emulate that behavior if you cannot do it for some reason : create an instance of TestClassToInject your self and than call context.injectMembers instance", "In an tutorial http : www.javacodegeeks.com 2016 01 dependency-injection-javafx-gluon-ignite-dagger.html I found the following Java 8 Lambda expression to create a DaggerContext object : .. . .. . This confuses me a bit as I m quite new to Lambda expressions .", "Just create a new multiple view project with the Gluon Plugin run it and you ll see views are created just once .", "Hello I am having problem building or creating an apk file on this gluon project .", "The problem is when I try to run the app it says Unfortunately Gluon has stopped .", "Also you can check a more recent version of the sample here https : bitbucket.org gluon-oss samples src abf0eb0af2354c0bc966856a876d6ec774527ae4 GluonSQLite at master .", "If you check any of the Gluon mobile samples http : gluonhq.com support samples or if you create a new project with the Gluon plugin you will notice that the addViewFactory calls are done just once on the init method which is called once before the Application.start method .", "This question already has an answer here : .. . .. . JavaFX and external JARs questions 9075966 javafx-and-external-jars 4 answers .. . .. . I am having the following exception when launching a Gluon application via webstart.. . i understand this is not GLUON particle directly related.. . it seems more a problem with the jar sign .", "The best way would be if Gluon supported View switching dependant on orientation on their own just implement it in the switchView method .", "For instance based on the default single desktop project created with the Gluon Plugin we could modify the exit action under MenuActions : .. . .. . Also you will need to process close request events in the main class consuming those events and calling your exit action :", "It was design for desktop only .", "I am creating a Gluon ParticleApplication and i need to change the exit message and or exit procedure where is it or what should i override", "Once you have your app working you may want to have a look at this contest http : gluonhq.com enter-gluon-app-contest .. .", "Gluon app http : i.stack.imgur.com VjRtR.png .. . .. . If for any reason the app crashes you can run adb logcat as well to find out about any possible exception .", "I can get it to run through IDE IntelliJ but when I build a jar file and try to execute the jar I get this error : .. . .. . I am using the Gluon Plugin 2.2.0 .. . .. . Here is my gradle file :", "I am trying to build a jar file to be run on the desktop using the GluonSqlite sample app .", "You will see the exception when launching the Gluon application : .. . .. . This error : UnsatisfiedLinkError : dlopen failed : data app com.gluonhq.fiftystates-1 lib arm libactivity.so has unexpected e machine : 40 has been reported several times as a bug in the arm translation .", "For that if you have a look at the PoiLayer class https : bitbucket.org gluon-oss gluon-maps src tip src main java com gluonhq maps demo PoiLayer.java you can see that for any MapPoint defined by latitude and longitude you can get a 2D point defined by x and y and you can draw a node at that position : .. . .. . So if you want to create for instance a Polygon based on a set of points you have to add a Polygon object to the layer : .. . .. . Now on the demo class create a set of mapPoints and add them to the map : .. . .. . And you will have a map with your geo-located polygon on top of it .", "ParticleApplication doesn t have the start method should I use postInit for context.init", "However the System.out.println From within controller s postInit method : + testClassToInject.testDependancy.testString doesn t work from within the controller because the testClassToInject is null at time of use .", "I m using Afterburner btw but that shouldn t be the Issue This happens on every device Desktop and Mobile .. . .. . The following code is in the init method .. . .. . The above example produces multiple instances of the same view which breaks some presenters of mine .. . .. . A quick fix can be seen below but shouldn t be necessary .", "yes sure the android-support-library is an obsolete library I think so just click on obsolete and that will display all that stuff", "stackoverflow.com questions 38538903 http : stackoverflow.com questions 38538903 couldnt-run-javafx-port-application-on-genymotion-with-flash-arm-trnaslation", "But I couldn t see the Android support library on SDK Manager", "There is already @Inject used for things like .. . .. . as part of the framework but I would like to be able to @Inject my own objects .", "Here is some of my attempted code : .. . .. . My ParticleApplication class : .. . .. . My controller class : .. . .. . And then my two classes created as the dependancies : .. . .. . And finally my Gradle file : .. . .. . The From within GluonApplication Constructor : + context.getInstance TestClassToInject.class .testDependancy.testString prints out just fine so I think I have the dependancy classes and Guice configured OK .", "That seems like what I was looking for but I still can t get it to work .", "Inside my controller I m still getting null for my injected classes .", "Do you know if it makes any difference that I am extending ParticleApplication instead of Application like in the example", "I will try to post some of my code in my question soon .", "Usually to be injected TestClassToInject should be defined in one of your modules .", "Only than it becomes injectable .", "That means that class has to be created by Guice .", "Thanks your patience I m still learning DI so I might be missing something .", "I am already able to create the TestClassToInject class using context.getInstance TestClassToInject.class inside of my main application class GluonApplication which extends ParticleApplication so I think the Guice stuff is working OK since TestClassToInject has a noarg public constructor .", "Once you get the scene you can get the stage from it and than use normal JavaFX way to set the icon .", "While in your case it seems Genymotion manages to initially load the libactivity.so library then it crashes with a sigsegv .", "Use an old for-nested loop instead .", "@YvesGonzaga Just wanted to note that if you consider to give streamsupport a try you ll have to use release 1.4.2 for now .", "I changed the icon.png file but that seems to only be used in the about dialog .", "I m using IntelliJ IDEA 16 .", "Application class has a postInit method you can override .", "Scene is passed into it .", "When I try to get the stage inside of postInit I m getting stage as null .", "Any idea why", "That means the window is not created yet .", "You can attach a change listener to scene.windowProperty to determine when window stage changes", "Please update the Charm Down version to 2.0.0 .", "I have the following code : .. . .. . And the controller relevant code is : .. . .. . The menubar is not visible but the space is still there but the toolbar is still visible .", "Any sugestions", "If you run this short test with a regular JavaFX Application you will notice the same behavior : .. . .. .", "toolbar http : i.stack.imgur.com rNtYB.png .. . .. . According to JavaDoc for a node s managed property : .. . .. . Defines whether or not this node s layout will be managed by it s parent .", "If the node is managed it s parent will factor the node s geometry into its own preferred size and layoutBounds calculations and will lay it out during the scene s layout pass .", "If a managed node s layoutBounds changes it will automatically trigger relayout up the scene-graph to the nearest layout root which is typically the scene s root node .", "This means the borderpane s top region keeps the preferred size given by the toolbar which by default is managed regardless its visibility .", "When you set the visibility of a ToolBar to false you need as well to release its space by setting managed to false : .. . .. . EDIT .. . .. . In your case you have also a MenuBar and the ToolBar managed property is already bound to its visibility so you only need to set : .. . .. . Note : I ve added Platform.runLater : The postInit method is called before the stage is shown so that s a way to delay it a bit and let the controls be rendered properly before dealing with their visibility .", "In case you want to restore their visibility this should work as well :", "That did it BUT.. . making that will not allow me to set it visible when a proper login to the app is created because the toolbar will not be bounded to the scene stage application whatever it was bounded at .", "I ve edited my answer so you can set visible again both controls .", "that will throw an exception seems like the managed property is initialized After postinit.. . : Can not load view inventario.views.LoginView java.lang.RuntimeException : ToolBar.managed : A bound value cannot be set .", "at javafx.beans.property.BooleanPropertyBase.set BooleanPropertyBase.java : 140 at javafx.scene.Node.setManaged Node.java : 2389 at mx.gob.scjn.inventario.controllers.LoginController.postInit LoginController.java : 79 at mx.gob.scjn.inventario.views.LoginView.start LoginView.java : 16 at com.gluonhq.particle.view.ViewManager 1.invalidated ViewManager.java : 105", "Can you post how and when do you get toolBar and menuBar", "spaces after @ on annotations are left to prevent the post notifying warning of stackoverflow public class LoginController @ Inject ParticleApplication app @ Inject private ViewManager viewManager @ Inject private StateManager stateManager @Inject private ToolBar toolBar @ Inject private MenuBar menuBar @ Inject private StatusBar statusBar @ FXML private TextField txfUsuario @ FXML private PasswordField txfPassword", "If you set on Genymotion- Settings- ADB use custom Android SDK tools and provide the path to your android sdk then you can open a console window go to Android sdk platform-tools and when the emulator running type : adb logcat -v threadtime .", ".. . Normal switching when the orientation-changes easy .. . BUT .. . .. . what about switching to the correct view when switchView is called e.g .", "Thanks for the answer .", "The current implementation uses an Alert dialog to display a message whenever there s an exit event from toolbar or menu actions or from a close request event .", "While this dialog is not customizable there is a showCloseConfirmation http : docs.gluonhq.com particle javadoc 1.1.0 com gluonhq particle application ParticleApplication.html showCloseConfirmationProperty property that allows you cancelling that dialog so you can silently quit the application or you can provide your own dialog .", "If you change the View multiple times sometimes a new View is getting created in the Viewfactory .", "EDIT : .. . The View-Changing happens still with switchView String", "Under the hood when you call addViewFactory the view instance is cached in a map of views .", "This guarantee that you can t add more than once the same view and you can get the instance of a given view at any time .", "So you don t need to create a View every time you switch from a previous one just call :", "I still switch the view via this method and the addViewFactory call is in the init method .", "What I was saying is that when I switch Views with switchView String then the supplier gets called multiple times even though I only registered it once .", "I can t reproduce your issue .", "Otherwise post relevant code so we can reproduce the issue .", "I follow the step in building the project on this site http : docs.gluonhq.com charm 3.0.0 android 2 .", "I am a total newbie on this framework .", "Please help .. . .. . Executing : gradle : android .. . .. . Gradle build file", "Can you post your build.gradle file", "Have you set ANDROID HOME", "What android sdk do you have installed platforms 21 22 23", "You don t need to set the sdk version parameter on your build file unless you want to specifically set it to that level .", "In that case you need to install it sure .", "I ve totally solved it it was funny i had the same problem but take a look : .. . .. . You should install those packages http : i.stack.imgur.com bU1Ew.png .. . .. . Go to android-studio I did it this way but I think theres no need for android-studio Create a project go to preferences then appearance and behaviour after that system settings next to that Android SDK then Launch Standalone SDK manager then be sure since the question is from today that you select on obsolete packages then install what I put in the image and try again I found this info from a spanish written web", "I am installing what you have in the picture .", "Thanks I have successfully build my app ." ] }
{ "confidence": [ 96.78582763671875, 80.07159423828125, 60.03533935546875, 55.693565368652344, 54.30778884887695, 51.217403411865234, 48.07286834716797, 47.89521026611328, 47.58575439453125, 41.421329498291016, 41.26739501953125, 40.23139190673828, 39.13109588623047, 37.671974182128906, 36.751346588134766, 17.97246551513672 ], "content": [ "Question : Does anyone know if there is any easy way to use dependency-injection within the FXML controllers of a Gluon Desktop ParticleApplication app There is already @Inject used for things like .. . .. . as part of the framework but I would like to be able to @Inject my own objects . .. . .. . EDIT : An answer suggested to use Gluon Ignite but I m still having trouble figuring it out . Here is some of my attempted code : .. . .. . My ParticleApplication class : .. . .. . My controller class : .. . .. . And then my two classes created as the dependancies : .. . .. . And finally my Gradle file : .. . .. . The From within GluonApplication Constructor : + context.getInstance TestClassToInject.class .testDependancy.testString prints out just fine so I think I have the dependancy classes and Guice configured OK . However the System.out.println From within controller s postInit method : + testClassToInject.testDependancy.testString doesn t work from within the controller because the testClassToInject is null at time of use . .. . Answer : You can use Gluon Ignite http : gluonhq.com open-source ignite which supports dependency-injection with Dagger Guice and Spring . Gluon Ignite is an open-source project and you can find an example in the test directory on the repository website : https : bitbucket.org gluon-oss ignite src c85197b33852 src test java com gluonhq ignite at default Comment : That seems like what I was looking for but I still can t get it to work . Inside my controller I m still getting null for my injected classes . Do you know if it makes any difference that I am extending ParticleApplication instead of Application like in the example ParticleApplication doesn t have the start method should I use postInit for context.init I will try to post some of my code in my question soon . Comment : Usually to be injected TestClassToInject should be defined in one of your modules . Only than it becomes injectable . That means that class has to be created by Guice . In Ignite there is a way to emulate that behavior if you cannot do it for some reason : create an instance of TestClassToInject your self and than call context.injectMembers instance Comment : Thanks your patience I m still learning DI so I might be missing something . I am already able to create the TestClassToInject class using context.getInstance TestClassToInject.class inside of my main application class GluonApplication which extends ParticleApplication so I think the Guice stuff is working OK since TestClassToInject has a noarg public constructor . The problem is that I m not able to inject it into the controllers like the PrimaryController class created by the IntelliJ Gluon plugin when you make a Gluon Desktop - Multiple View Project with FXML .", "Question : null .. . Answer : I set up a JavaFX Gluon Project using the Eclipse Gluon plugin and tried to get Gluon Ignite Gluon Ignite http : gluonhq.com open-source ignite basically a wrapper framework to be able to use CDI in JavaFX with Dagger going . In an tutorial http : www.javacodegeeks.com 2016 01 dependency-injection-javafx-gluon-ignite-dagger.html I found the following Java 8 Lambda expression to create a DaggerContext object : .. . .. . This confuses me a bit as I m quite new to Lambda expressions . Though if it had worked flawlessly I probably wouldn t ask this question - but it doesn t Eclipse reports .. . .. . The constructor DaggerContext GluonApplication - is undefined .. . .. . So could someone tell me step by step what s going on there Maybe the conservative version of code would help to understand it a bit better . I know lambda expressions like this are used as a short form to create objects of anonymous classes . So when looking at the constructor of DaggerContext I see that the expression - Arrays.asList new DaggerModule should create an object with type Supplier Collection Object but this obviously doesn t work . --- UPDATE --- .. . .. . The problem was just a simple import problem . I had to add import java.util.Arrays to resolve the error . Sill It would be nice if someone could provide some further explanation of the lambda expression . Comment : Since Java 8 is not yet supported for Gluon Mobile applications I wouldn t use Ignite which is built on it . Comment : Well although this has nothing to do with my question . Could you provide some proof for that Nevertheless I m not really dependent on mobile.. .", "Question : null .. . Answer : I am trying to build a jar file to be run on the desktop using the GluonSqlite sample app . I can get it to run through IDE IntelliJ but when I build a jar file and try to execute the jar I get this error : .. . .. . I am using the Gluon Plugin 2.2.0 .. . .. . Here is my gradle file : Comment : Please update the Charm Down version to 2.0.0 . Also you can check a more recent version of the sample here https : bitbucket.org gluon-oss samples src abf0eb0af2354c0bc966856a876d6ec774527ae4 GluonSQLite at master .", "Question : I am creating a Gluon ParticleApplication and i need to change the exit message and or exit procedure where is it or what should i override Thanks for the answer . .. . Answer : The current implementation uses an Alert dialog to display a message whenever there s an exit event from toolbar or menu actions or from a close request event . While this dialog is not customizable there is a showCloseConfirmation http : docs.gluonhq.com particle javadoc 1.1.0 com gluonhq particle application ParticleApplication.html showCloseConfirmationProperty property that allows you cancelling that dialog so you can silently quit the application or you can provide your own dialog . For instance based on the default single desktop project created with the Gluon Plugin we could modify the exit action under MenuActions : .. . .. . Also you will need to process close request events in the main class consuming those events and calling your exit action :", "Question : How can I change the icon of a Gluon Desktop app I changed the icon.png file but that seems to only be used in the about dialog . I m using IntelliJ IDEA 16 . .. . Answer : Application class has a postInit method you can override . Scene is passed into it . Once you get the scene you can get the stage from it and than use normal JavaFX way to set the icon . Comment : When I try to get the stage inside of postInit I m getting stage as null . Any idea why Comment : That means the window is not created yet . You can attach a change listener to scene.windowProperty to determine when window stage changes", "Question : If you change the View multiple times sometimes a new View is getting created in the Viewfactory . I m using Afterburner btw but that shouldn t be the Issue This happens on every device Desktop and Mobile .. . .. . The following code is in the init method .. . .. . The above example produces multiple instances of the same view which breaks some presenters of mine .. . .. . A quick fix can be seen below but shouldn t be necessary . EDIT : .. . The View-Changing happens still with switchView String .. . Answer : If you check any of the Gluon mobile samples http : gluonhq.com support samples or if you create a new project with the Gluon plugin you will notice that the addViewFactory calls are done just once on the init method which is called once before the Application.start method . Under the hood when you call addViewFactory the view instance is cached in a map of views . This guarantee that you can t add more than once the same view and you can get the instance of a given view at any time . So you don t need to create a View every time you switch from a previous one just call : Comment : I still switch the view via this method and the addViewFactory call is in the init method . What I was saying is that when I switch Views with switchView String then the supplier gets called multiple times even though I only registered it once . Comment : I can t reproduce your issue . Just create a new multiple view project with the Gluon Plugin run it and you ll see views are created just once . Otherwise post relevant code so we can reproduce the issue .", "Question : null .. . Answer : Some Questions to Orientations with Gluon : .. . .. . Can you detect an Orientation switch with Gluon .. . My current way of detecting is a size listener on the GlassPane which is not ideal . .. . .. . Can have two different FXML Views per Orientation .. . Normal switching when the orientation-changes easy .. . BUT .. . .. . what about switching to the correct view when switchView is called e.g . from NavigationDrawer switchView cannot be overriden since it is final.. . .. . starting the app in landscape mode cannot be handled in any nice way can it The best way would be if Gluon supported View switching dependant on orientation on their own just implement it in the switchView method . Comment : Definitely Orientation improvements are on the roadmap : Providing an orientationProperty so you can listen to changes in orientation and react properly either changing the view or just modifying its layout and also coercing portrait or landscape mode should be possible . Comment : @Jos Pereda Thank you for your answer . I ll look forward to it :", "Question : I am using a mouse event handler on my java fx solitaire application . It was design for desktop only . Then I discover JavaFx Port . So I tried to test if my application will work on mobile device . It display good like the image below . enter image description here http : i.stack.imgur.com trbuw.png .. . .. . My problem is when I try to drag-and-drop the card . It crashes the app . Is it maybe because of my event-handling I tried it on real device Kindle Fire and VM Blue Stacks Below is the error-log of Blue Stacks VM . Here is my SolitaireEvent.Java code . I commented where the line 142 that the error-log is telling Comment : Gluon Mobile doesn t support Stream API hence the NoSuchMethodError . Remove the call to ArrayList.stream in dragDropped and see if it works .. . Answer : The error has nothing to do with events . If you check the code you have commented out : .. . .. . it contains stream and since JavaFXPorts is running on Android iOS with Java 7 versions Java 8 streams are not supported yet . Lambda expressions are supported though thanks to the retrolambda project https : github.com orfjackal retrolambda . Use an old for-nested loop instead . If you really need full support for Streams you may have a look at the streamsupport project https : sourceforge.net projects streamsupport . Also Android N will support streams and other Java 8 features as well but it is still in preview . Comment : Wow you are awesome thanks for helping us on this forum . I noticed that error . But I ignored it because I was focusing more on event handler on mobile device . May God bless you.. . Comment : My pleasure Once you have your app working you may want to have a look at this contest http : gluonhq.com enter-gluon-app-contest .. . Comment : @YvesGonzaga Just wanted to note that if you consider to give streamsupport a try you ll have to use release 1.4.2 for now . The two more current versions 1.4.3 and 1.5 have a bug that prevents it from running when JavaFXPorts is present . This will be fixed in release 1.5.1", "Question : I am having problem running my JavaFX Port Application on Genymotion . When I try to install it on the emulator . It says Failure INSTALL FAILED CPU ABI INCOMPATIBLE . So I go into flashing it with ARM Trnaslation . Finally I successfully installed my application on genymotion . The problem is when I try to run the app it says Unfortunately Gluon has stopped . The error-log below . Can you help me with this I am a total newbie in JavaFX Port . .. . Answer : I ve installed Genymotion and the ARM translation and I can reproduce the error . If you set on Genymotion- Settings- ADB use custom Android SDK tools and provide the path to your android sdk then you can open a console window go to Android sdk platform-tools and when the emulator running type : adb logcat -v threadtime . You will see the exception when launching the Gluon application : .. . .. . This error : UnsatisfiedLinkError : dlopen failed : data app com.gluonhq.fiftystates-1 lib arm libactivity.so has unexpected e machine : 40 has been reported several times as a bug in the arm translation . Basically it means there are no x86 libraries and the translation from arm libraries has failed . If you want to run the app in an emulator you may try BlueStacks . Once you have installed it you can double click on your apk and it will be available on BlueStacks . Then you can run it . Gluon app http : i.stack.imgur.com VjRtR.png .. . .. . If for any reason the app crashes you can run adb logcat as well to find out about any possible exception . I ve noticed that apps that work fine on mobile fail easily on the emulator . So the best solution is running and testing your apps in a real device . Comment : Hello I have updated my post . I ve added the error-log . Comment : While in your case it seems Genymotion manages to initially load the libactivity.so library then it crashes with a sigsegv . Either way JavaFXPorts projects don t include x86 libraries . I suggest trying Bluestacks Comment : Ok thank you so much for your help", "Question : Hello I am having problem building or creating an apk file on this gluon project . I follow the step in building the project on this site http : docs.gluonhq.com charm 3.0.0 android 2 . I am a total newbie on this framework . Please help .. . .. . Executing : gradle : android .. . .. . Gradle build file Comment : Can you post your build.gradle file Have you set ANDROID HOME What android sdk do you have installed platforms 21 22 23 Comment : You don t need to set the sdk version parameter on your build file unless you want to specifically set it to that level . In that case you need to install it sure . .. . Answer : You need to install the android support libraries which is a requirement to this as well as the build tools and the sdk Comment : I am installing the packages . But I couldn t see the Android support library on SDK Manager", "Question : Google maps API makes it possible to create a layer on the map containing a polyline linking points together . I have searched where I could to find an example or an implementation for this for gluon s mapLayer . Please advice .. . Answer : While there s no explicit API for drawing lines polylines or polygons on top of a MapView the MapLayer is a layer where you can draw any JavaFX Shape providing you take care of scaling it to the map coordinates . For that if you have a look at the PoiLayer class https : bitbucket.org gluon-oss gluon-maps src tip src main java com gluonhq maps demo PoiLayer.java you can see that for any MapPoint defined by latitude and longitude you can get a 2D point defined by x and y and you can draw a node at that position : .. . .. . So if you want to create for instance a Polygon based on a set of points you have to add a Polygon object to the layer : .. . .. . Now on the demo class create a set of mapPoints and add them to the map : .. . .. . And you will have a map with your geo-located polygon on top of it . poi http : i.stack.imgur.com KzPwX.jpg Comment : Thank you excellent answer and workable example :", "Question : I d like to build my Gluon Project as a SINGLE executable-jar file . Currently there is a startup script included with a bin folder and so on . Is it possible to build a single jar Or can I include an own gradle task that accomplishes this .. . Answer : Since I had to build the jar with javapackager I used this plugin : javafx-gradle-plugin https : github.com FibreFoX javafx-gradle-plugin .. . .. . I am relatively new to Gradle so adding the dependencies is just a temporary solution but it works", "Question : This question already has an answer here : .. . .. . JavaFX and external JARs questions 9075966 javafx-and-external-jars 4 answers .. . .. . I am having the following exception when launching a Gluon application via webstart.. . i understand this is not GLUON particle directly related.. . it seems more a problem with the jar sign . The Exception : .. . .. . I already create my certificates using : .. . .. . then exporting it : .. . .. . I imported into the java control panel and sign the jar using : .. . .. . Obviously I am missing something.. . Any clue Greetings After getting the answer i got a duplicate question mark.. . but the right answer is not as i thought JUST the security signing part.. . as a matter of fact the real and important part of the answer has to do with the fact that the Application class can not be cast as an applet and that requiers another change on the JNLP file . Comment : Check this link https : bugs.openjdk.java.net browse JDK-8153350 and see if it is of any help Comment : Thanks Jose.. . that gave me a light . Comment : @JarrodRoberson I did update the question hopefully you will see is not the same trouble . .. . Answer : That s right Java 8 introduces some changes on JavaFX i really think this changes were in a later update but that s not the point . . somehow today the JavaFX Application can t behave like an Applet so the JNLP file has to look something like : .. . .. . So the applet-desc tag was removed and replaced by the application-desc tag and the security tag should be in-place to allow the application to have access to the file system as well as the network communications . If that s the case all permissions needed then all jars must be signed . Greetings", "Question : Hello I am having problem building or creating an apk file on this gluon project . I follow the step in building the project on this site http : docs.gluonhq.com charm 3.0.0 android 2 . I am a total newbie on this framework . Please help .. . .. . Executing : gradle : android .. . .. . Gradle build file Comment : Can you post your build.gradle file Have you set ANDROID HOME What android sdk do you have installed platforms 21 22 23 Comment : You don t need to set the sdk version parameter on your build file unless you want to specifically set it to that level . In that case you need to install it sure . .. . Answer : I ve totally solved it it was funny i had the same problem but take a look : .. . .. . You should install those packages http : i.stack.imgur.com bU1Ew.png .. . .. . Go to android-studio I did it this way but I think theres no need for android-studio Create a project go to preferences then appearance and behaviour after that system settings next to that Android SDK then Launch Standalone SDK manager then be sure since the question is from today that you select on obsolete packages then install what I put in the image and try again I found this info from a spanish written web Comment : I am installing what you have in the picture . But I couldn t see the Android support library on SDK Manager Comment : Thanks I have successfully build my app . Can you help me with another problem I have stackoverflow.com questions 38538903 http : stackoverflow.com questions 38538903 couldnt-run-javafx-port-application-on-genymotion-with-flash-arm-trnaslation Comment : yes sure the android-support-library is an obsolete library I think so just click on obsolete and that will display all that stuff", "Question : I d like to build my Gluon Project as a SINGLE executable-jar file . Currently there is a startup script included with a bin folder and so on . Is it possible to build a single jar Or can I include an own gradle task that accomplishes this .. . Answer : The current tasks like installApp or distZip will not bundle the jars in one . If you want to create a fat-jar you can add this plugin https : github.com johnrengelman shadow to your build.gradle script : .. . .. . And then run gradlew shadowJar . It will create under libs an executable-jar . Note : if you are using desktopCompile or desktopRuntime dependencies those won t be included so you need to change those to compile or runtime . Comment : Thank you for your Answer I fixed it myself . I had Problems building it like a normal jar because of Javafx . But now works : D", "Question : I have the following code : .. . .. . And the controller relevant code is : .. . .. . The menubar is not visible but the space is still there but the toolbar is still visible . Any sugestions .. . Answer : If you run this short test with a regular JavaFX Application you will notice the same behavior : .. . .. . toolbar http : i.stack.imgur.com rNtYB.png .. . .. . According to JavaDoc for a node s managed property : .. . .. . Defines whether or not this node s layout will be managed by it s parent . If the node is managed it s parent will factor the node s geometry into its own preferred size and layoutBounds calculations and will lay it out during the scene s layout pass . If a managed node s layoutBounds changes it will automatically trigger relayout up the scene-graph to the nearest layout root which is typically the scene s root node . This means the borderpane s top region keeps the preferred size given by the toolbar which by default is managed regardless its visibility . When you set the visibility of a ToolBar to false you need as well to release its space by setting managed to false : .. . .. . EDIT .. . .. . In your case you have also a MenuBar and the ToolBar managed property is already bound to its visibility so you only need to set : .. . .. . Note : I ve added Platform.runLater : The postInit method is called before the stage is shown so that s a way to delay it a bit and let the controls be rendered properly before dealing with their visibility . In case you want to restore their visibility this should work as well : Comment : That did it BUT.. . making that will not allow me to set it visible when a proper login to the app is created because the toolbar will not be bounded to the scene stage application whatever it was bounded at . Comment : I ve edited my answer so you can set visible again both controls . Comment : that will throw an exception seems like the managed property is initialized After postinit.. . : Can not load view inventario.views.LoginView java.lang.RuntimeException : ToolBar.managed : A bound value cannot be set . at javafx.beans.property.BooleanPropertyBase.set BooleanPropertyBase.java : 140 at javafx.scene.Node.setManaged Node.java : 2389 at mx.gob.scjn.inventario.controllers.LoginController.postInit LoginController.java : 79 at mx.gob.scjn.inventario.views.LoginView.start LoginView.java : 16 at com.gluonhq.particle.view.ViewManager 1.invalidated ViewManager.java : 105 Comment : Can you post how and when do you get toolBar and menuBar Comment : spaces after @ on annotations are left to prevent the post notifying warning of stackoverflow public class LoginController @ Inject ParticleApplication app @ Inject private ViewManager viewManager @ Inject private StateManager stateManager @Inject private ToolBar toolBar @ Inject private MenuBar menuBar @ Inject private StatusBar statusBar @ FXML private TextField txfUsuario @ FXML private PasswordField txfPassword" ] }
[ "yes-answer-long", "yes-answer-short" ]
gluon
UNK_RELATION
wp-editor@wysiwyg@45
wp-editor -- wp-editor refers to the visual @placeholder editor of wordpress .
{ "confidence": [ 59.480491638183594, 59.480491638183594, 54.58671188354492, 52.9024658203125, 51.2957763671875, 50.49034118652344, 49.509613037109375, 49.509613037109375, 46.310569763183594, 45.1595458984375, 44.11412811279297, 41.45668029785156, 40.25757598876953, 39.72993469238281, 39.42206573486328, 39.42206573486328, 38.29713439941406, 37.97307586669922, 37.11030578613281, 37.09395980834961, 37.09395980834961, 36.84427261352539, 36.84427261352539, 36.81969451904297, 35.71992492675781, 35.40971374511719, 34.73757553100586, 34.02912139892578, 33.54331588745117, 33.54331588745117, 33.54331588745117, 33.39109420776367, 33.39109420776367, 33.39109420776367, 33.39109420776367, 33.39109420776367, 33.39109420776367, 33.39109420776367, 33.38231658935547, 31.996761322021484, 31.859067916870117, 31.859067916870117, 31.37024688720703, 31.37024688720703, 29.840450286865234, 29.840450286865234, 29.840450286865234, 29.840450286865234, 29.438518524169922, 29.438518524169922, 28.31978988647461, 27.667381286621094, 27.667381286621094, 27.667381286621094, 27.47252082824707, 27.452774047851562, 27.17672348022461, 26.786344528198242, 26.293832778930664, 25.777881622314453, 25.777881622314453, 25.75971221923828, 25.23346519470215, 25.23346519470215, 24.86217498779297, 24.521438598632812, 24.0936336517334, 23.91266441345215, 23.41581153869629, 23.334585189819336, 23.334585189819336, 23.334585189819336, 23.052600860595703, 23.052600860595703, 23.052600860595703, 22.501934051513672, 21.65033721923828, 20.79212188720703, 20.79212188720703, 20.79212188720703, 19.97222137451172, 19.97222137451172, 19.858285903930664, 19.830888748168945, 19.63172149658203, 19.330142974853516, 18.787281036376953, 17.83020782470703, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375, 16.6712646484375 ], "content": [ "Wp editor works only 1st time in loop .", "yes i am using WP Editor plugin .", "you would need to update WP Editor plugin or contact with the author .", "that whrn i am using a .. . .. . in wp code editor it turns into a horizontal ruler .", "If you go to wp-admin- users- edit user you will see the setting : Disable the visual editor when writing with a checkbox .", "If I m using the WP Editor post editor and highlight some text then click the link button and fill in a URL when I m done the link always looks like this : .. . .. . With the built-in editor the URL is filled in .", "I want to highlight shortcodes in the WordPress visual editor in a specific color .", "When we use wp-editor it loads WordPress default visual editor .", "https : github.com anteprimorac js-wp-editor .. . .. . you can use simple like below", "How to make the wordpress editor readonly like readonly inputs .", "I have found some solutions to syntax-highlighting the HTML Editor but no one for the visual editor itself .", "I am looking out to add a table tool in the wordpress editor .", "Obviously wp-editor won t show up as you re making ajax call which only returns ajax response but not wp-editor which is built by javascript on that page .", "You need to add unique id for each editor .", "Just the editor that is not working .", "The editor appears normally .", "I want to add WordPress editor dynamically using jquery in my custom plugin as follow : .. . .. . I am getting error : .. . .. . SyntaxError : missing after argument list .. . .. . .. . ...-active link rel stylesheet id editor-buttons-css href http : localhost .. . .. . .. . I have also tried bellow code here I have replaced single quotes to double quotes : .. . .. . I am getting error : .. . .. . .. . SyntaxError : missing after argument list .. . .. . .. . container .append div id wp-mycustomeditor-wrap class wp-core-ui wp-ed.. . .. . .. . .. . If you have any solution please let me know .", "Not editor itself and it should look like this .", "It has a functionality to show the editor when adding a product through AJAX but the the editor is not showing properly .", "Now with that I have got a wysiwyg editor on my settings page .", "What do you mean you re using some editor plugin", "The function wp-editor calls a class which checks the user setting for Disable the visual editor when writing with the function user can richedit .", "I d like this color to be applied to the visual editor as they are editing so they will see what it looks like .", "When I use that code in my init the body of the editor turns yellow as I expect but the default page template has one single TinyMCE editor .", "So my question : How can i use the wp-editor function in a plugin to display the wordpress WYSIWYG editor with buttons for visual and text mode regardless of the current user setting .", "This displays a WYSIWYG editor like the ones for creating posts and pages .", "Got issue in wp-editor in creating custom wp plugin. .", "However i am searching for a way to show the buttons even when the user has the disabled visual editor setting set to true .", "i am using following code for to display the editor in the page .. . .. . any option available in its settings or any other method", "I was asked to fix a problem with adding an url while adding a new content via built-in editor .", "Even I tried to drag-and-drop in second or third wp-editor but it again displaying in the first editor .", "I edited the question and added the code that i use to create the editor .", "The custom editor is a normal wp-editor loaded in a meta box in the posts .", "This is how I am inserting the content to the editor from the ajax response .", "It is also escaping quotes and single quotes when inserting into the editor .", "So thinking I need to do something with this content before sending it to the editor .", "Following can be suedo example of what can be done to make editor working .", "My guess is there is a conflict or something because it was working and I did not change the editor .", "correct settings http : i.stack.imgur.com GlZSx.png .. . .. . complete reference http : www.wpbeginner.com wp-tutorials how-to-fix-wordpress-keeps-logging-out-problem", "1 . just below add product button from where ajax call is being made print a editor using php code and set its display to none so editor doesn t appear on page .", "You need to download this file to your Desktop and open it in a text-editor like Notepad .", "Then in the content.css file you can do something like this : .. . .. . Now the background-color of the editor itself will be gray based on the above example .", "My guess is that the answerer wanted to show how you can use a conditional block to specify when a readonly content editor would be necessary .", "To change the setting just click check box for Stop removing the p and a tags when saving and show them in HTML editor and save .", "Here is what the ajax response looks like in console .. . .. . Gets inserted into the editor like", "Can anyone plz tell me the best possible way to add any table tool in the editor without plugin", "Are there known conflicts or something else that would keep the information typed in the editor from being added to the form element", "Console Output of Form Element .. . .. . HTML Elements on Page Actual Editor from Source Code of Served Page .. . .. . This is super odd .", "If you can t access the admin area then you can update these fields by editing the wp-config.php file .", "Connect to your website using an FTP client and locate the wp-config.php file in your site s root directory .", "wordpress wp-editor visual mode http : i.stack.imgur.com hkiDh.png .. . .. . but after publishing showing as normal text inside page with math tags .. . .. .", "But the next time I go to edit that item it then inserts into the editor without the line-breaks so I have to manually add the line-breaks again .", "The problem with the activeEditor approach is that if you have like in my case more than one editor in the post you don t know which is the dirty one .", "In short ajax call can get server-side text response but not javascript editor which is built on client-side and needs javascript processor to process .", "The whole idea is to make regular textarea like rich-text-editor .. . .. . Thanks for your help ... . anyone :", "I create a custom plugin that has a wp-editor on the admin now when I put some html tags in the editor in Text view tab like br and click on the Visual tab. . the br converts into p nbsp p when I back to Text tab .", "Try using the wp.media.featuredImage https : core.trac.wordpress.org browser tags 4.2.2 src wp-includes js media-editor.js L627 object and more specifically its frame and get methods :", "I am using the wordpress function wp-editor in wordpress .", "This piece of code initiates the editor : .. . .. . .. . div class tinymce-holder .. . php wp-editor stripcslashes POST article content article content .. . array .. . media buttons false .. . teeny false .. . wpautop false .. . quicktags false .. . textarea rows 30 .. . tinymce true .. . .. . .. . div .. . .. . Has anyone seen anything like it and could help me out here", "Does the plugin and Wordpress are both up to-date", "Yes plugin and Wordpress are both up to-date .", "public function add product .. . .. . Get product id .. . prod id filter input INPUT POST pid .. . .. . if prod id is used here use it to get content .. . echo Test Content .. . wp die .. . .. . .. . .. . .. . 3 . when response is received of text content using jQuery create a clone of wp-editor-wrapper div and add it in-place of textarea and set its content from ajax response .", "Yes i know thanks Try to find in your database option table the right associated key for p123553 custom editor ID please With that info it will be easy to make a conditional inside your function", "I am using the Page Builder of the Unyson plugin and trying to fix a bug in the plugin where the Insert Link in the WYSIWYG editor doesn t work until the Add Media button is pressed and the gallery pop-up is closed .", "Why WordPress Keeps Logging Out", "If you are accessing from a URL that does not match the one in your WordPress settings then WordPress will not be able to authenticate your session .", "Login to your WordPress dashboard and go to Settings General .", "Just insert some code at the beginning of the method : .. . .. . In the same directory you find css visualblocks.css You should add some css according to your customization like this : .. . .. . You can toggle the highlighting within the Visual editor in top menu bar View- Show Blocks . .. . .. . If I have time I will work on a better solution but this fulfill all requirements I have at the moment .", "I m creating a WordPress plugin .", "Im busy writing a store description for my multi store woocommerse site on wordpress .", "Am using Wiris Plugin for my wordpress site it is working fine inside wp-editor", "You need to include WIRISplugins.js script as described on step 5 at http : www.wiris.com en plugins docs wordpress", "WordPress thinks that you are using this markup for formatting leaving it untouched .", ".. . .. . WordPress sets a cookie in your browser to authenticate a login session .", "This cookie is set for the WordPress URL stored in your settings section .", "Fixing The Login Issue .. . .. . A simple fix for this login issue is to make sure that you have the same URL in your Site Address and WordPress Address fields in your WordPress settings .", "Turns out all I needed to do was this : .. . .. . I m using WordPress built-in Iris Color Picker http : automattic.github.io Iris .", "From the docs http : codex.wordpress.org Writing Code in Your Posts Code Within Paragraphs : .. . .. . Using the code tag doesn t tell WordPress to encode HTML markup within the tag or strip it from the post .", "To disable this function add the following to lines to your functions.php file located in your themes directory : .. . .. . Reference : https : codex.wordpress.org Function Reference wpautop Wordpress Codex", "I used the input user custom text .. . .. . all I needed was POST user custom text .. . .. . also to get the media to work need wordpress Sanitize : .. . .. . http : codex.wordpress.org Function Reference wp kses post", "enter image description here http : i.stack.imgur.com LvXw6.png .. . .. . I click Visual to display the result .", "But when I tried to drag-and-drop the div the visual view of the wp-editor got blank but the text view value is present .", "It gets inserted into the editor like this example Here is a link a href quot example.com http : www.example.com quot example.com a gt http : www.example.com a gt this is a new line this is a new line this is a new line this is a new line this is a new line this is a new line this is a new line this is a new line this is a new line this is a new line this is a new line this is a new line.. .", "I m building a WordPress plugin which will allow front-end users to submit their answers via WYSIWYG initialized with wp-editor meanwhile on the back-end there will be a tutor who will be able to access WYSIWYG submitted content and edit it .", "How do I detect in JavaScript if the content of a wp-editor tinyMCE instance has changed in WordPress 4.2.2", "When i first used it it didn t show the two buttons to switch between visual mode and text mode but only text mode .", "I m not sure about the code u using but I had the same problem when using wp-editor the data of the media was presented : img674589 and did not show the image in the site what I used to fix it was wordpress Sanitize : .. . .. . http : codex.wordpress.org Function Reference wp kses post", "What you need : .. . .. . TinyMCE Advanced plugin .. . .. . What you should do : .. . .. . Customize the Visual Blocks Plugin that comes with the TinyMCE plugin and add css classes for each element you would to highlight just loop through all p elements and parse the innerHTML and check if it contains your specific pattern .", "i m add code in functions create more field in category as : .. . .. . and add code in index print wp-editor : cat id Category ID cat data get option category cat id echo do shortcode cat data extra3 .. . .. . when i m add text to textarea with wp-editor is ok but i m add media or shortcode in page view echo code as : a href url or width 300 or height 225 ... . .. . .. . Any code as value when i m save value .", "if i ve save 5 have code value .. . .. . this is picture code when i m add media", "enter image description here http : i.stack.imgur.com NA6UX.png .. . .. . And when i m save wp editer :", "enter image description here http : i.stack.imgur.com 75GzQ.png .. . .. . How to fix it s .", "Thanks", "This will not execute the next statements because this will close the php tag", "this is not error you don t understand my questions", "textarea readony textarea", "if yes just read the manual to see how to send attributes .", "pass readonly true", "use can use tiny mce before init to modify the tiny mce arguments to set it as readonly", "may I ask why is the 1 1 if-condition necessary" ] }
{ "confidence": [ 68.92540740966797, 64.2934341430664, 63.84412384033203, 60.501277923583984, 60.501277923583984, 55.61834716796875, 54.69915008544922, 53.408233642578125, 45.80149841308594, 44.28031921386719, 43.916404724121094, 41.9110107421875, 40.91956329345703, 39.71438217163086, 38.02653884887695, 36.92839813232422, 35.45168685913086, 35.05760192871094, 34.865631103515625, 34.40574645996094 ], "content": [ "Question : null .. . Answer : If I m using the WP Editor post editor and highlight some text then click the link button and fill in a URL when I m done the link always looks like this : .. . .. . With the built-in editor the URL is filled in . Any idea how to fix this Comment : What do you mean you re using some editor plugin Comment : yes i am using WP Editor plugin . If i deactivate the plugin then link button is working fine . But when i activate the plugin then click the link button and fill in a URL the link always looks like this : a href undefined title undefined Comment : you would need to update WP Editor plugin or contact with the author . Comment : Does the plugin and Wordpress are both up to-date Comment : Yes plugin and Wordpress are both up to-date .", "Question : I am using the wordpress function wp-editor in wordpress . This displays a WYSIWYG editor like the ones for creating posts and pages . I am using this function in a custom plugin . When i first used it it didn t show the two buttons to switch between visual mode and text mode but only text mode . After some searching i found out that it was a user setting . If you go to wp-admin- users- edit user you will see the setting : Disable the visual editor when writing with a checkbox . Once i unchecked that it worked for that user . However i am searching for a way to show the buttons even when the user has the disabled visual editor setting set to true . So my question : How can i use the wp-editor function in a plugin to display the wordpress WYSIWYG editor with buttons for visual and text mode regardless of the current user setting . .. . Answer : I have found a solution to this . The function wp-editor calls a class which checks the user setting for Disable the visual editor when writing with the function user can richedit . So adding a temporary filter can overwrite this :", "Question : I want to add WordPress editor dynamically using jquery in my custom plugin as follow : .. . .. . I am getting error : .. . .. . SyntaxError : missing after argument list .. . .. . .. . ...-active link rel stylesheet id editor-buttons-css href http : localhost .. . .. . .. . I have also tried bellow code here I have replaced single quotes to double quotes : .. . .. . I am getting error : .. . .. . .. . SyntaxError : missing after argument list .. . .. . .. . container .append div id wp-mycustomeditor-wrap class wp-core-ui wp-ed.. . .. . .. . .. . If you have any solution please let me know . Thanks in advance .. . Answer : I know late answer . but it will help others . Try this jQuery plugin . https : github.com anteprimorac js-wp-editor .. . .. . you can use simple like below", "Question : I want to add WordPress editor dynamically using jquery in my custom plugin as follow : .. . .. . I am getting error : .. . .. . SyntaxError : missing after argument list .. . .. . .. . ...-active link rel stylesheet id editor-buttons-css href http : localhost .. . .. . .. . I have also tried bellow code here I have replaced single quotes to double quotes : .. . .. . I am getting error : .. . .. . .. . SyntaxError : missing after argument list .. . .. . .. . container .append div id wp-mycustomeditor-wrap class wp-core-ui wp-ed.. . .. . .. . .. . If you have any solution please let me know . Thanks in advance .. . Answer : I think the problem is you are using single inverted comma here : .. . .. . php wp-editor content editor id .. . .. . and here : .. . .. . Try with double inverted commas and see if that helps .", "Question : I want to add WordPress editor dynamically using jquery in my custom plugin as follow : .. . .. . I am getting error : .. . .. . SyntaxError : missing after argument list .. . .. . .. . ...-active link rel stylesheet id editor-buttons-css href http : localhost .. . .. . .. . I have also tried bellow code here I have replaced single quotes to double quotes : .. . .. . I am getting error : .. . .. . .. . SyntaxError : missing after argument list .. . .. . .. . container .append div id wp-mycustomeditor-wrap class wp-core-ui wp-ed.. . .. . .. . .. . If you have any solution please let me know . Thanks in advance .. . Answer : you nee comment internal char and change wp by the to get string . in php : .. . .. . in script replace :", "Question : I m creating a WordPress plugin . It has a functionality to show the editor when adding a product through AJAX but the the editor is not showing properly . User can add as many products as he want so keep in mind that there will be more than one wp-editor .. . .. . Please refer to the attached screenshot : .. . .. . enter image description here http : i.stack.imgur.com OEUXz.png .. . .. . I have used the following code : .. . .. . PHP .. . .. . JQUERY .. . .. . I have used a solution from the internet but its partially working not fully . Used the following code : .. . .. . PHP .. . .. . JQUERY .. . .. . And the code above does this : .. . .. . enter image description here http : i.stack.imgur.com 6oEfh.png Comment : Everything is working fine with the code right now I have . Just the editor that is not working . .. . Answer : Obviously wp-editor won t show up as you re making ajax call which only returns ajax response but not wp-editor which is built by javascript on that page . In short ajax call can get server-side text response but not javascript editor which is built on client-side and needs javascript processor to process . Following can be suedo example of what can be done to make editor working . 1 . just below add product button from where ajax call is being made print a editor using php code and set its display to none so editor doesn t appear on page . e.g . 2 . php function for ajax response should only return text content only . Not editor itself and it should look like this . public function add product .. . .. . Get product id .. . prod id filter input INPUT POST pid .. . .. . if prod id is used here use it to get content .. . echo Test Content .. . wp die .. . .. . .. . .. . .. . 3 . when response is received of text content using jQuery create a clone of wp-editor-wrapper div and add it in-place of textarea and set its content from ajax response . Comment : Seems like a good solution.. . But how to set its content from ajax response Comment : CKEDITOR.instance . name used in CKEDITOR .setData ajaxResponse Can be used in ANY js file as long as it comes after ckeditor.js is loaded .", "Question : i am facing this problem . that whrn i am using a .. . .. . in wp code editor it turns into a horizontal ruler . more over is not showing when i using code code .. . Answer : From the docs http : codex.wordpress.org Writing Code in Your Posts Code Within Paragraphs : .. . .. . Using the code tag doesn t tell WordPress to encode HTML markup within the tag or strip it from the post . WordPress thinks that you are using this markup for formatting leaving it untouched . To avoid this behavior use character entities or extended characters to represent the left and right arrow characters in a way that is not recognized as the beginning and end of an HTML tag by a web browser like this : .. . .. . code lt hr gt code", "Question : null .. . Answer : Wp editor works only 1st time in loop . Its not working all time . Where can I use i number value in wp-editor", "Question : My theme have a submit post page and I configure user capabilities for everyone to upload . But no one can able to upload . And when i clicked add media button and select any file for upload my current account is logging out automatically . Where at after user try upload Visitors to the position falls . What do you think Why logout Comment : Please explain clearly what you are trying to say . I m unable to understand it properly. . Comment : You should edit http : stackoverflow.com posts 37062945 edit your question to include the code that you re using . It ll make it much easier for people to identify the cause of the problem . Without seeing your code the only thing we can do is guess at what might be causing it . .. . Answer : Why WordPress Keeps Logging Out .. . .. . WordPress sets a cookie in your browser to authenticate a login session . This cookie is set for the WordPress URL stored in your settings section . If you are accessing from a URL that does not match the one in your WordPress settings then WordPress will not be able to authenticate your session . Fixing The Login Issue .. . .. . A simple fix for this login issue is to make sure that you have the same URL in your Site Address and WordPress Address fields in your WordPress settings . This means that you need to choose either www or a non-www URL in the both fields . Login to your WordPress dashboard and go to Settings General . If you can t access the admin area then you can update these fields by editing the wp-config.php file . Connect to your website using an FTP client and locate the wp-config.php file in your site s root directory . You need to download this file to your Desktop and open it in a text-editor like Notepad . Add this code just above the line That s all stop editing Happy blogging . If you prefer to use www in URL then use this code instead .. . .. . correct settings http : i.stack.imgur.com GlZSx.png .. . .. . complete reference http : www.wpbeginner.com wp-tutorials how-to-fix-wordpress-keeps-logging-out-problem Comment : my website don t have problem with normally . but i added new post submit page . my problem is in this page while uploading any file . Comment : what you are trying to upload on the new post . featured image Comment : no any media object to post content . i use wp-editor with add media button . try upload with this button user auto-logout suddenly . because of upload not success . Comment : what type of error you getting Comment : See it may be session problem I will post the answer below kind suggestion your question not clear try to frame a clear question and check it once with anyone they can understand or not . Because it may cause some waste of time while we are referring correct solution for you .", "Question : I want to highlight shortcodes in the WordPress visual editor in a specific color . E.g . I Have the following Shortcodes .. . .. . and want to give each of them a unique color so the user could easily see what he should change . I have found some solutions to syntax-highlighting the HTML Editor but no one for the visual editor itself . Do you know a plugin to achieve this .. . Answer : Managed to get a working solution . What you need : .. . .. . TinyMCE Advanced plugin .. . .. . What you should do : .. . .. . Customize the Visual Blocks Plugin that comes with the TinyMCE plugin and add css classes for each element you would to highlight just loop through all p elements and parse the innerHTML and check if it contains your specific pattern . Finally it looks something like this : enter image description here http : i.stack.imgur.com odNcm.png .. . .. . EDIT .. . .. . The class you need to customize : .. . plugins tinymce-advanced mce visualblocks plugin.min.js .. . .. . The window.NodeList a.addCommand mceVisualBlocks function method is the place that you need to customize . Just insert some code at the beginning of the method : .. . .. . In the same directory you find css visualblocks.css You should add some css according to your customization like this : .. . .. . You can toggle the highlighting within the Visual editor in top menu bar View- Show Blocks . .. . .. . If I have time I will work on a better solution but this fulfill all requirements I have at the moment .", "Question : How to make the wordpress editor readonly like readonly inputs . i am using following code for to display the editor in the page .. . .. . any option available in its settings or any other method Comment : textarea readony textarea if yes just read the manual to see how to send attributes . Comment : pass readonly true .. . Answer : use can use tiny mce before init to modify the tiny mce arguments to set it as readonly Comment : may I ask why is the 1 1 if-condition necessary Comment : @OrelBiton It s not . My guess is that the answerer wanted to show how you can use a conditional block to specify when a readonly content editor would be necessary . It s up to you to decide what those conditions actually are .", "Question : I d like my user to be able to dynamically set the background-color of the wp-editor on the Edit Page screen . For example I m using the Iris color-picker to let the user set a background-color for their page . I d like this color to be applied to the visual editor as they are editing so they will see what it looks like . As a test I tried modifying the editor s background-color by calling : .. . .. . It didn t work . .. . Answer : Turns out all I needed to do was this : .. . .. . I m using WordPress built-in Iris Color Picker http : automattic.github.io Iris . Here s the full call :", "Question : null .. . Answer : I am looking out to add a table tool in the wordpress editor . But cannot find any way to do this . Can anyone plz tell me the best possible way to add any table tool in the editor without plugin Comment : if you are looking for a best way but without any plugin get ready to write some php html css and javascript to do it yourself . Comment : But how can i help you", "Question : I am trying to load wp-editor on demand using jquery javascript . Somehow I got success using following code but it does not save changed data in the element . I ll really appreicate any contribution . .. . Answer : When we use wp-editor it loads WordPress default visual editor . You must load : .. . .. . Working example : http : jsfiddle.net rupomkhondaker j7brgyL2 .. . .. . And the code is .. . .. . Simply use .. . .. . Here is another example example : .. . .. . script : .. . .. . and the most simple way is Comment : why did you use category and action why do we need that I just need to convert textarea into wp-editor Comment : that is an example bro Comment : but how can I implement this in my case Comment : tinymce.execCommand mceAddEditor true textarea Comment : put your full code that will help you to get good answer", "Question : I create a custom plugin that has a wp-editor on the admin now when I put some html tags in the editor in Text view tab like br and click on the Visual tab. . the br converts into p nbsp p when I back to Text tab . this is my php code : .. . .. . this is what happening : I put br tag by Text tab . enter image description here http : i.stack.imgur.com LvXw6.png .. . .. . I click Visual to display the result . enter image description here http : i.stack.imgur.com BzFfl.png .. . .. . I click back the Text tab and the br is gone and replaced by p nbsp p enter image description here http : i.stack.imgur.com vUHTG.png .. . .. . is there a way the when putting a br it remains br .. . Answer : The problem you are running into is the result-of the wpautop filter function in your Themes functions.php file . To disable this function add the following to lines to your functions.php file located in your themes directory : .. . .. . Reference : https : codex.wordpress.org Function Reference wpautop Wordpress Codex Comment : thanks mike I tried it but it s not working", "Question : How do I detect in JavaScript if the content of a wp-editor tinyMCE instance has changed in WordPress 4.2.2 I ve tried with tinyMCE.editors content .isDirty but the result is always false . .. . Answer : is working for me . More : activeEditor http : www.tinymce.com wiki.php API3 : property.tinymce.activeEditor isDirty http : www.tinymce.com wiki.php API3 : method.tinymce.Editor.isDirty Comment : The problem with the activeEditor approach is that if you have like in my case more than one editor in the post you don t know which is the dirty one .", "Question : I d like my user to be able to dynamically set the background-color of the wp-editor on the Edit Page screen . For example I m using the Iris color-picker to let the user set a background-color for their page . I d like this color to be applied to the visual editor as they are editing so they will see what it looks like . As a test I tried modifying the editor s background-color by calling : .. . .. . It didn t work . .. . Answer : The content style setting works on elements inside the body of the HTML document in TinyMCE - what you really want to do is make the background of the body a different color . To do this look at the content css setting for the init : .. . .. . This allows you to load an external CSS file for use inside TinyMCE . Then in the content.css file you can do something like this : .. . .. . Now the background-color of the editor itself will be gray based on the above example . If you use content css you really don t need content style as you can put all of your CSS in the external CSS file . EDIT : .. . .. . If content css does not work you could try using the onInit event and update the CSS : .. . .. . ...which results in this : .. . .. . enter image description here http : i.stack.imgur.com 9QkMe.png .. . .. . note that I just added this via the console to show that it can be done .. . .. . You would need a way to pass that color into the configuration object a JS variable would work but this should also get the job done . Comment : The background-color needs to be dynamic so relying on a predefined style sheet won t work . Since the user selects from a color-picker the background would need to be any number of colors . Comment : @HWD - please see my edit . Perhaps that would work for your use-case Comment : This seems to change the background-color of the excerpt textarea not the primary text area . How do I target that instead Comment : So do you have a custom page template What is the excerpt textarea vs the primary textarea If you have multiple TinyMCE instances on the page how are you defining the configuration for each one When I use that code in my init the body of the editor turns yellow as I expect but the default page template has one single TinyMCE editor . see screenshot above Comment : I m using the standard Edit Page like you are in the example except for that I have excerpts enabled so there is a textarea for excerpts as well . When I use your script it initiates TinyMCE on that text box instead of updating the one that is already there .", "Question : null .. . Answer : For some reason wp-editor on a page stopped adding the text to the form element . Why would this happen Again it was working fine.. . now it isn t . Are there known conflicts or something else that would keep the information typed in the editor from being added to the form element The editor appears normally . It functions and seems to work fine . Just when I go to save the data there is nothing in the form element . The form element exists but nothing is being added to it . Console Output of Form Element .. . .. . HTML Elements on Page Actual Editor from Source Code of Served Page .. . .. . This is super odd . My guess is there is a conflict or something because it was working and I did not change the editor . Any and all help is really appreciated Thanks", "Question : Im busy writing a store description for my multi store woocommerse site on wordpress . Im using the wp-editor . But I cant get it to save the styling parts . Bold Itallic linebreaks nothing saves it just saves nbsp where the strong strong br should be . Also links is saved as text .. . .. . my code to call wp-editor : .. . .. . my code to echo : .. . .. . I ve tried echo in a p with stripslashes .. . .. . I m at a loss here spent almost 3 days on it with too many variants to mention and cant seem to crack it . Any help will be greatly appreciated . .. . Answer : It s not difficult to do this . To display the p and a tag we just need to install plugin which is tinymce-advanced and do some setting change . To change the setting just click check box for Stop removing the p and a tags when saving and show them in HTML editor and save . Now we can see the p and a tags in HTML mode . Comment : Thank you for the advice but unfortunately The plugin crashes my server . so not an exact fix", "Question : null .. . Answer : I have added a wp-editor on a plugin options page with the following codes .. . .. . I added the above codes in the plugin functions.php file . Now with that I have got a wysiwyg editor on my settings page . Now I wish echo the content saved show the results on my footer.php . Thanks in advance ." ] }
[ "yes-answer-long", "yes-answer-short" ]
wysiwyg
UNK_RELATION
swagger-editor@real-time@138
swagger-editor -- swagger-editor allows users to create api specifications using yaml inside the browser and to preview documentation in @placeholder .
{ "confidence": [ 66.87115478515625, 64.64602661132812, 63.28866958618164, 61.5554084777832, 57.18486404418945, 54.944969177246094, 52.863983154296875, 50.79587936401367, 48.76382064819336, 48.76382064819336, 48.16307067871094, 47.85386276245117, 47.268218994140625, 47.18241882324219, 46.838836669921875, 46.40068817138672, 45.946475982666016, 45.365455627441406, 45.342308044433594, 45.28706359863281, 45.28706359863281, 44.93953323364258, 44.38721466064453, 44.377105712890625, 43.986289978027344, 43.77925491333008, 43.007293701171875, 43.007293701171875, 43.007293701171875, 42.91482925415039, 42.24147415161133, 41.98585510253906, 41.96174621582031, 41.906394958496094, 41.49646759033203, 41.034393310546875, 40.41016387939453, 40.09988784790039, 40.045448303222656, 39.52262878417969, 39.478572845458984, 39.457923889160156, 39.391597747802734, 39.30086135864258, 39.244712829589844, 39.182891845703125, 38.73619079589844, 38.699031829833984, 38.699031829833984, 38.68711853027344, 38.68711853027344, 38.666114807128906, 38.553653717041016, 38.443267822265625, 38.370155334472656, 38.17519760131836, 38.1207160949707, 37.66497802734375, 37.543853759765625, 37.543853759765625, 37.53245544433594, 37.429073333740234, 37.377777099609375, 37.377777099609375, 37.23458480834961, 37.11763000488281, 36.51640701293945, 36.46604537963867, 36.08357620239258, 36.08357620239258, 36.08357620239258, 36.04587173461914, 36.007423400878906, 35.889198303222656, 35.824893951416016, 35.81500244140625, 35.81364440917969, 35.71995544433594, 35.719879150390625, 35.53815841674805, 35.454254150390625, 35.414451599121094, 35.27444076538086, 35.22227478027344, 35.22227478027344, 35.20573425292969, 35.14868927001953, 35.14868927001953, 35.14868927001953, 35.14868927001953, 35.08740997314453, 35.08740997314453, 34.855064392089844, 34.814064025878906, 34.18822479248047, 34.18822479248047, 34.18822479248047, 34.18822479248047, 33.567283630371094, 33.567283630371094 ], "content": [ "I know that the Swagger-editor saves api documentation into the local browser-cache Download Yaml Json and Export Yaml Json .", "Use swagger-editor to create a backend storage for swagger-editor .", "Using the Swagger Editor I created the following yaml api : .. . .. . I used the swagger-editor to generate a node.js server and created a hello world.js controller .", "i m working on a RESTful API using swagger-api and swagger-editor for routes .", "I found a solution which is using the building from source way in swagger-editor https : github.com swagger-api swagger-editor", "I have read the question What are the options for swagger-editor to save json or yaml into remote backend http : stackoverflow.com questions 34124472 what-are-the-options-for-swagger-editor-to-save-json-or-yaml-into-remote-backend but i still have a question where to find the interface document that implements backend storage by swagger-editor .", "I have created a swagger file out of the swagger Parser https : github.com swagger-api swagger-parser object.I tried to validate the content in the swagger file with the Swagger Editor http : editor.swagger.io .But it is showing a lot of errors in the swagger Editor .Is the swagger object is created as for the format of editor validation or not What should be done to validate the swagger object with swagger Editor .", "As a result I then considered converting to swagger due to being impressed with the documentation output of swagger-ui editor .", "Why are you as a client-side trying to send data to swagger hi or editor", "Are there already known Backends for Swagger-editor which I can use", "I tried to do that but it gives a duplication error when checking with Swagger Editor http : editor.swagger.io as my API is built on the Swagger definition .", "Does any one know how to use Swagger Editor tool in Intellij Idea and not the online editor format", "- YAML based format .. . - Not suited for hypermedia API .. . - There is no Design tooling for Swagger .. . - Responses are in XML or JSON .. . - Swagger JS -- JavaScript library to connect to swagger-enabled APIs via browser or nodejs .. . - Swagger Node Express -- Swagger module for node.js express module .. . - It has swagger UI framework .. . - Demo http : petstore.swagger.io", "Why can t you just validate it in swagger-editor once you modify it", "I am actually using swagger-editor to build yaml file and when I send whole method to my server POST PUT GET DELETE the server catch request and response but swagger-editor page cannot catch server response .", "The main library is swagger-node in which you create a swagger yaml file and then add your controllers to it .", "You can easily reproduce this by generating server project for uber API in swagger-editor and building it using maven .", "So I m creating a user endpoint with nodejs to add a user to the database and for the api documentation I m using swagger-editor and I m completely new to it .", "I ve tried doing this by using swagger-codegen to generate some static documentation but 1 it s not catching errors that swagger-editor catches and 2 the output isn t great but that s beside the point - .", "Putting the yml in a git while having the nice features of the swagger-editor", "A package or extension or method of some kind to enable saving functionality on Swagger-Editor", "Swagger editor is giving an error everytime I try to define the type : array part of the yaml .", "The server would tell you what it needs via the swagger ui or yaml... .", "However I discovered that there is no ability to save documents in swagger-editor -which is one of the most basic functions of an editor", "You need to be using the latest version of Swagger Swagger Core 1.5 https : github.com swagger-api swagger-core tree v1.5.6 at least to have these neat features in your own Swagger project .", "I have only just discovered Swagger and have been using the Generate Node.js Server feature from Swagger-Editor to get the server built and running locally .", "I then generate the angular typescript boilerplate files for calling into my service from the Swagger Editor tool .", "EDIT : The spec shows up just fine in Swagger-UI -- is this a bug in the editor or does the UI just ignore my error", "I saw ERROR Server not found or an error occurred at swagger-editor and 401 Unauthorized on fiddler .", "I am generating the client scala code for an API using the Swagger Edtior .", "I defined this json into swagger yaml like this but it is giving an error : .. . .. . Can anyone suggest me how would I define this json in yaml following swagger specifications", "I get below error when build the generated server project in swagger-editor using maven 3.0.5 version .", "what I want to do is add a user with login password avatar but that user has multiple roles I want to add to the database what I have done in the yaml document in the swagger-editor is this .. . .. . and it s kind of displaying what I want in the swagger-editor", "I have the swagger definition below .", "Working on writing an API spec for my service with swagger .", "You can use intellij-swagger https : github.com zalando intellij-swagger by zalando https : github.com zalando to easily edit Swagger specification files inside IntelliJ IDEA .", "Also looking at the swagger-jaxrs implementation you can see that @MatrixParam is ignored in the class https : github.com swagger-api swagger-core blob master modules swagger-jaxrs src main java-io swagger jaxrs DefaultParameterExtension.java L39 responsible for scanning JAX-RS parameter annotations .", "Swagger is a description language while slate is just for documentation .", "In all implementations of swagger API documentation I have seen the only query example format seems to be curl as in this screenshot : .. . .. .", "Saves the swagger file as you type .", "The api-docs endpoint is what Swagger calls to serve the documentation .", "One can only imagine how many hundreds of hours of API development work have been lost due to the lack of a save button on Swagger-Editor .", "Is there a tool that lets me generate a Swagger yaml definition model from sample JSON", "The editor validates it and both the PUT and the PATCH show up in the preview window .", "I am using a node server and swagger-tool with swagger 2.0 .", "SwaggerUI doesn t support nullable types please see here https : github.com swagger-api swagger-ui issues 1920 .", "When I look up the petstore API specifications being rendered by Swagger-UI http : petstore.swagger.io v2 swagger.json I am not able to figure out how are they plugging in the section below the Swagger Petstore description .", "I am experimenting with Swagger and receive CORS errors when trying to browse the server with Swagger-UI .", "For your specific requirement you should make changes to the javascript files swagger-ui and swagger-ui-min", "I am having a problem in defining the array of objects in swagger yaml .", "Following is the json I am trying to define in swagger yaml .", "AWS provides API Gateway Extensions to Swagger http : docs.aws.amazon.com apigateway latest developerguide api-gateway-swagger-extensions.html .", "Swagger is an attempt at a standardized way of describing a RESTful API similar for example to ApiBlueprint https : apiblueprint.org .. . .. . Swagger is a JSON based API definition format which allows for the description of REST APIs .", "It s because you have two x-swagger-router-controller values inside messages messageId : .", "i have a question about how to define an array of refs in swagger using the yaml syntax .", "Here is the scenario : .. . .. . Using Swagger I have created an api spec for my REST service .", "And supply config.json as input to swagger-codegen using -c option .", "I am quite new to Swagger tool .", "What version of Swagger UI are you using", "I have already started documenting using Swagger .", "I removed the x-swagger-router-controller entirely and left the operationId .", "Is there a way to collaborate on swagger documents", "Please post the whole Swagger json for that API .", "I was tasked to install Swagger into Web API project .", "I need the swagger-editor to have the functionality to change the model in the body and the user should be able to enter the value manually to test the API .", "I created a sample Maven project that validates the swagger JSON documents under src main resources swagger .", "I ve used swagger to create a descriptionn from which i can autogenerate different clients for my API even autogenerate documentation .", "I m trying to use swagger for my RESTful api .net and c .", "Is that hand-written Swagger document going to change a lot", "I want to derive swagger for matrix parameters .", "Does Swagger 2.0 support matrix parameters", "However swagger ui is up and running .", "When I use the Swagger editor it interprets the specification in a different way - most significantly showcasing the terms of use and license information appropriately .", "See this answer http : stackoverflow.com questions 31300756 can-swagger-autogenerate-its-yaml-based-on-existing-express-routes 31332524 31332524 for help in deciding how to generate Swagger docs for a project .", "This issue https : github.com swagger-api swagger-editor issues 174 was reported in 2014 but it doesn t look like there is any resolution and despite what common sense would suggest it appears the developers don t think this functionality is even necessary and instead advocate periodically downloading the file and then saving it locally .", "I was not aware you could not have multiple x-swagger-router-controller declarations inside the same path even if they are for different verbs .", "API Design Tooling From Swagger http : apievangelist.com 2014 02 25 api-design-tooling-from-swagger .. . .. . Slate on the other hand is a pretty theme for writing nice API docs .", "See for example : Swagger Tooling http : swagger.io tools .. . .. . More to your question : Some Slate tooling for swagger : .. . .. . Here is a link-to a Slate themed swagger UI https : github.com jensoleg swagger-ui .. . Here is a project that generates Slate docs based on your Swagger definition https : github.com E96 swagger2slate .. . .. . So the two are not mutually exclusive but to your direct question : Implementing Swagger will give you more options and greater flexibility was well as the ability to also generate Slate documentation .", "I think the controller is getting used when I try out the Swagger API .", "My idea was to document it like this : .. . .. . When I do that swagger-editor claims that .. . .. . Equivalent path already exists : MemberURI .. . .. . Those are different types of URIs that return different things when queried .", "I ve created swagger docs in json format using swagger-maven-plugin I use Java .", "You can either manually create the docs for your API and have Swagger UI serve them or you can use a node package like swagger-node-express https : www.npmjs.com package swagger-node-express which will do most of the documenting automatically .", "swagger curl query http : i.stack.imgur.com 3ZGq5.png .. . .. . Is it possible to specify other language formats as per API docs using readme.io etc . in this screenshot : .. . .. .", "swagger specification document is not being generated from swagger integration into node.js project as a sub project .", "swagger array parameter http : i.stack.imgur.com XwL4Z.png .. . .. . Try upgrading to the newest version of Swagger UI .", "Sorry the swagger json is big .", "Swagger will help you define them but implementing is your job .", "Thanks for your response I want to deploy swagger-edit on my severs .", "Since swagger is open-source you can modify it as per your requirement .", "User Name and Pwd : odata and qtkr47PTM3pmzLyEHNrW4DXhhgyjMfM3CKUZfXdn0tk .. . .. . Here is my swagger json .. . .. . .. . .. .", "The Swagger website lists a lot of tools http : swagger.io open-source-integrations for generating client-server stubs from Swagger definitions or for generating Swagger definitions from API code .", "Please refer to https : github.com swagger-api swagger-codegen blob master modules swagger-codegen src test resources 2 0 petstore.yaml L646 as an example and look at how Pet and Category are defined .", "Ideally one should generate your slate documentation from your Swagger API description .. . .. . The goal of Swagger is to provide a standard upon which others can build extensive tooling for example : documentation API explorers mock servers code generation testing utilities etc . .", "You can create an extra step in your Maven build-system to validate the Swagger document against the Swagger 2.0 Schema https : github.com OAI OpenAPI-Specification blob master schemas v2.0 schema.json .", "Does Swagger-UI not support those properties", "Recently swagger is start behaving very strange .", "That s not a valid Swagger type definition by the way .", "Swagger and Slate serve two different purposes .", "I wanted to suggest assertj-swagger but saw it is already mentioned in your article .", "Additionally I ve contributed to assertj-swagger to address some issues I was having ." ] }
{ "confidence": [ 78.76656341552734, 76.17596435546875, 74.13794708251953, 73.5333023071289, 71.37478637695312, 71.09957885742188, 69.70527648925781, 68.33171844482422, 65.2806396484375, 63.569091796875, 63.22023010253906, 63.098392486572266, 62.74540710449219, 61.565208435058594, 61.44303512573242, 58.829856872558594, 57.97334289550781, 57.072513580322266, 56.560264587402344, 54.655426025390625 ], "content": [ "Question : I know that the Swagger-editor saves api documentation into the local browser-cache Download Yaml Json and Export Yaml Json . But what if I want to save it into a remote-server then latter I can continue editing it from another browser . Are there already known Backends for Swagger-editor which I can use Thanks in advance . Comment : Parse is nice . You can easily use it for a simple BaaS : parse.com docs js api http : www.parse.com docs js api . Totally free as well .. . Answer : Little late to the game but maybe helps others : .. . .. . There is a very simple backend here written in go : https : github.com zgiber sweb .. . .. . It runs as a http server on your localhost and opens the editor in a browser . Saves the swagger file as you type .", "Question : I have the swagger definition below . The editor validates it and both the PUT and the PATCH show up in the preview window . However if I subsquently stop the editor and attempt to restart it I get : .. . ERROR : .. . YAMLException : duplicated mapping key at line 128 column 53 : .. . -controller : messagesPatchOrSend .. . .. . Line 128 is the line directly above patch : .. . .. . YAML : .. . Answer : It s because you have two x-swagger-router-controller values inside messages messageId : . Comment : Thanks . I was not aware you could not have multiple x-swagger-router-controller declarations inside the same path even if they are for different verbs . I removed the x-swagger-router-controller entirely and left the operationId . Seems happy now .", "Question : I know that the Swagger-editor saves api documentation into the local browser-cache Download Yaml Json and Export Yaml Json . But what if I want to save it into a remote-server then latter I can continue editing it from another browser . Are there already known Backends for Swagger-editor which I can use Thanks in advance . Comment : Parse is nice . You can easily use it for a simple BaaS : parse.com docs js api http : www.parse.com docs js api . Totally free as well .. . Answer : There is an option to useBackendForStorage : true which does a HTTP put to a backend server . Comment : I just wanted to know if I enable this option what a backend server I can use from some of the existing ones . Comment : You ll have to write your own .", "Question : I have read the question What are the options for swagger-editor to save json or yaml into remote backend http : stackoverflow.com questions 34124472 what-are-the-options-for-swagger-editor-to-save-json-or-yaml-into-remote-backend but i still have a question where to find the interface document that implements backend storage by swagger-editor . .. . Answer : Use swagger-editor to create a backend storage for swagger-editor . It will simply do a POST to the server when configured . Or use an existing service like https : swaggerhub.com Comment : Thanks for your response I want to deploy swagger-edit on my severs . If i modify default.confg my chrome will request editor spec and get 404 error . Could you help me to complete this And my question is what reponse should return from my server", "Question : I am having a problem in defining the array of objects in swagger yaml . Swagger editor is giving an error everytime I try to define the type : array part of the yaml . I defined it but it is not right as it is giving an error . Following is the json I am trying to define in swagger yaml . I defined this json into swagger yaml like this but it is giving an error : .. . .. . Can anyone suggest me how would I define this json in yaml following swagger specifications .. . Answer : The above answer is also right but I already implemented this in my yaml . I found that I can also define array by creating another definition .", "Question : I am having a problem in defining the array of objects in swagger yaml . Swagger editor is giving an error everytime I try to define the type : array part of the yaml . I defined it but it is not right as it is giving an error . Following is the json I am trying to define in swagger yaml . I defined this json into swagger yaml like this but it is giving an error : .. . .. . Can anyone suggest me how would I define this json in yaml following swagger specifications .. . Answer : In a schema you don t want to have the values only the description of the values . Comment : Thanks @Mohsen for the answer.Great help .", "Question : null .. . Answer : I used old version of iodocs and now I am trying to use swagger however I have some problem with it . I am actually using swagger-editor to build yaml file and when I send whole method to my server POST PUT GET DELETE the server catch request and response but swagger-editor page cannot catch server response . response picture http : i.stack.imgur.com k2l4S.png .. . .. . Would give me an information or suggestion to fix this problem . Thanks Comment : Why are you as a client-side trying to send data to swagger hi or editor The server would tell you what it needs via the swagger ui or yaml... .", "Question : null .. . Answer : I have been using API workbench to edit a RAML 1.0 document as I like the ability to view a preview of what the docs will look like in the side pane . However I recently discovered that absolutely none of the documentation generators work with RAML 1.0 at the moment . Therefore you can write a RAML 1.0 spec but there are no tools for the creation of automatic documentation -which mostly negates the need to write a RAML document in the first place I considered dropping back to 0.8 but without the ability to define types RAML loses most of its luster . I realize the existing tools will eventually support RAML 1.0 but I am at a loss for a stopgap solution and there appears to be no time frame on when support will be enabled for 1.0 . As a result I then considered converting to swagger due to being impressed with the documentation output of swagger-ui editor . However I discovered that there is no ability to save documents in swagger-editor -which is one of the most basic functions of an editor This issue https : github.com swagger-api swagger-editor issues 174 was reported in 2014 but it doesn t look like there is any resolution and despite what common sense would suggest it appears the developers don t think this functionality is even necessary and instead advocate periodically downloading the file and then saving it locally . This is extremely unsafe as a browser crash accidental tab closure or authoritarian forced Windows restart policy will wipeout a good portion of your work One can only imagine how many hundreds of hours of API development work have been lost due to the lack of a save button on Swagger-Editor . There are various online services that add this functionality of course but it is outrageous for those who live outside of San Francisco to pay exorbitant sums of money it s often the cost of a Netflix subscription or more just to have the ability to save a swagger document As a result-of these issues both Swagger and RAML 1.0 seem unsuitable for a sensible development - instant documentation workflow at the time of this writing based on my research . However because I cannot possibly be the only person who has found this situation unsatisfactory in the past two years I hold out hope that one of the 3 solutions ranked in order of desirability exists out there somewhere : .. . .. . 1 . A local or locally hostable documentation tool that supports RAML 1.0 or a method for enabling RAML 1.0 in an existing tool . 2 . An alternative IDE for Swagger preferably in the mold of API Workbench http : apiworkbench.com docs which doesn t require setting up docker-container and running configuring an entire node.js stack just to edit and compile single file . 3 . A package or extension or method of some kind to enable saving functionality on Swagger-Editor Comment : Have you looked at this answer http : stackoverflow.com a 35494459 2355510", "Question : I am trying to create a simple hello world application using Swagger and Node.js that prints out Hello when I call GET but I am getting the error : TypeError : res.json is not a function . Using the Swagger Editor I created the following yaml api : .. . .. . I used the swagger-editor to generate a node.js server and created a hello world.js controller . When I try to test the code using the Swagger UI by calling http : localhost : 8081 hello name victory I m seeing the error : TypeError : res.json is not a function . Here is my node.js code : .. . .. . I m new to Swagger and Node.js so I m not sure why I m getting an error or the best way to go about troubleshooting it . Any help you can give me would be appreciated . UPDATE : It turns out that res.end greeting works . Can anyone explain why res.json and res.send don t Comment : Is res.send ok Comment : I get TypeError : res.send is not a function when I change res.json greeting to res.send greeting Comment : can you show how you use the hello controller Comment : I think the controller is getting used when I try out the Swagger API . The UI says that it is calling curl -X GET --header Accept : text html localhost : 8081 hello name bob http : localhost : 8081 hello name bob . Is there some other place it should be called or specified .. . Answer : The json function is added to the response object by express.js but the swagger generator generates code which uses connect.js not express . Express is built on top of connect and if you want features from express you can easily use express in-place of connect in the code generated by the swagger generator . Find the line in index.js which says const app require connect and replace connect with express .", "Question : I have to document my API s . I have to use any one of them Slate https : github.com tripit slate Or Swagger http : swagger.io . I want to know which one have more options pros and cons which one is better . .. . Answer : About Slate : .. . - API documentation Template Framework .. . - looks good .. . - ease of use .. . - Syntax highlighting .. . - Language Specific Tabbed .. . - Page Search .. . - 3 columned customizable layout .. . - We can create-table .. . - Scrollable links to each and every blocks methods headings .. . - Alert Facility 3 types warning success notice .. . - Tables for http-error codes .. . - Markdown syntax .. . - We can use Site logo .. . - Demo http : docs.travis-ci.com api .. . .. . .. . .. . About Swagger : .. . - It gives us API access inside the docs itself where we can check the response for any particular request . - It gives a clear picture of API responds with their parameters and options . - YAML based format .. . - Not suited for hypermedia API .. . - There is no Design tooling for Swagger .. . - Responses are in XML or JSON .. . - Swagger JS -- JavaScript library to connect to swagger-enabled APIs via browser or nodejs .. . - Swagger Node Express -- Swagger module for node.js express module .. . - It has swagger UI framework .. . - Demo http : petstore.swagger.io", "Question : null .. . Answer : I have created a swagger file out of the swagger Parser https : github.com swagger-api swagger-parser object.I tried to validate the content in the swagger file with the Swagger Editor http : editor.swagger.io .But it is showing a lot of errors in the swagger Editor .Is the swagger object is created as for the format of editor validation or not What should be done to validate the swagger object with swagger Editor .", "Question : I am quite new to Swagger tool . Does any one know how to use Swagger Editor tool in Intellij Idea and not the online editor format .. . Answer : You can use intellij-swagger https : github.com zalando intellij-swagger by zalando https : github.com zalando to easily edit Swagger specification files inside IntelliJ IDEA .", "Question : So I m creating a user endpoint with nodejs to add a user to the database and for the api documentation I m using swagger-editor and I m completely new to it . what I want to do is add a user with login password avatar but that user has multiple roles I want to add to the database what I have done in the yaml document in the swagger-editor is this .. . .. . and it s kind of displaying what I want in the swagger-editor enter image description here http : i.stack.imgur.com nTG83.png .. . .. . but what i m getting in the UI is just an input field enter image description here http : i.stack.imgur.com lpA08.png .. . .. . In conclusion what I want to get is an inputted array which contains the user-roles and input them in the database . Thank you .. . Answer : What version of Swagger UI are you using I am on version 2.1.1 and when I put the same definition as you I get the following input box for an array field . swagger array parameter http : i.stack.imgur.com XwL4Z.png .. . .. . Try upgrading to the newest version of Swagger UI . Also if you update the in field to be query the resulting URL will look like this : .. . .. . http : localhost : 8080 accounts roles admin 2Cguest 2Cuser .. . .. . You can then access the array values in the URL parameters rather than in formData . Comment : Thank you it works fine now it was actually the Swagger UI version I was using it was 2.0.0 .", "Question : Hi I have a swagger file written for my API and I could not test the paths of my API since I am getting : ERROR Server not found or an error occurred because my paths are all localhost so how can i use swagger locally thank you .. . Answer : I found a solution which is using the building from source way in swagger-editor https : github.com swagger-api swagger-editor", "Question : I am following a design-first approach to building a REST API on a Java Spring MVC stack . I have a hand-written Swagger schema that I want to validate in my Maven build and I want that build to fail if the schema doesn t conform to the Swagger schema specification . I ve tried doing this by using swagger-codegen to generate some static documentation but 1 it s not catching errors that swagger-editor catches and 2 the output isn t great but that s beside the point - . Has anybody solved this problem satisfactorily themselves Comment : Is that hand-written Swagger document going to change a lot Why can t you just validate it in swagger-editor once you modify it Comment : The thought had crossed my mind but yes it will-change so I want a guarantee that it cannot break by enforcing checks in the build . Here s my general approach : bjf-codebrown.blogspot.co.uk 2016 03 http : bjf-codebrown.blogspot.co.uk 2016 03 contract-first-restful-api-development.html Comment : Nice article I wanted to suggest assertj-swagger but saw it is already mentioned in your article . Comment : @NavidShakibapour : thanks Additionally I ve contributed to assertj-swagger to address some issues I was having . .. . Answer : You can create an extra step in your Maven build-system to validate the Swagger document against the Swagger 2.0 Schema https : github.com OAI OpenAPI-Specification blob master schemas v2.0 schema.json . I created a sample Maven project that validates the swagger JSON documents under src main resources swagger . You can clone the project here : https : github.com navidsh maven.swagger.validator", "Question : swagger specification document is not being generated from swagger integration into node.js project as a sub project . However swagger ui is up and running . If we provide say swagger.json or api-docs.json file then it is rendering specified REST API calls . My requirement is to generate the API document for existing project . .. . Answer : See this answer http : stackoverflow.com questions 31300756 can-swagger-autogenerate-its-yaml-based-on-existing-express-routes 31332524 31332524 for help in deciding how to generate Swagger docs for a project . You can either manually create the docs for your API and have Swagger UI serve them or you can use a node package like swagger-node-express https : www.npmjs.com package swagger-node-express which will do most of the documenting automatically . See the link above for pros and cons of each of these options . Comment : I have tried swagger-node-express that before but I am not able to get the documentation also it doesn t through any meaningful error . I am looking for some utility that will read all my routes and create the API doc automatically .", "Question : I have downloaded and browsed to the Swagger-UI dist index.html file and it has loaded the sample Petstore APIs . However I am not able to figure out how some features are functioning and hence not able to bring that to my own definition . 1 . The sample Petstore shows a VALID .. . button at the bottom right hand side . However I don t see that when I navigate to my own API definitions . How do I enable it 2 . When I look up the petstore API specifications being rendered by Swagger-UI http : petstore.swagger.io v2 swagger.json I am not able to figure out how are they plugging in the section below the Swagger Petstore description . Contact the developer This is a mailto link with an email-address and subject line .. . .. . Find out more about Swagger http : swagger.io doesn t show up either in the petstore json definition or the one that I am using . Where is the sample picking this up from 3 . When I use the Swagger editor it interprets the specification in a different way - most significantly showcasing the terms of use and license information appropriately . Does Swagger-UI not support those properties Do I need to enable something in Swagger-UI to make them appear .. . Answer : You need to be using the latest version of Swagger Swagger Core 1.5 https : github.com swagger-api swagger-core tree v1.5.6 at least to have these neat features in your own Swagger project . 1 . The UI at version 2.0 comes with the schema validation the VALID button on the bottom of the page built-in . 2+3 . The Info object https : github.com OAI OpenAPI-Specification blob master versions 2.0.md info-object contains all the information needed for rendering Contact the developer license and More Info links by the UI . Comment : MrMister I am not sure why I need Swagger Core 1.5 . I have downloaded Swagger-UI 2.1.4 and am using it simply to generate the UI from my definition . The issue here is 1 2 and 3 are appearing for the sample petstore api definition but not for the API definitions that I am writing . If you download Swagger UI 2.1.4 and run it you will be able to see it for yourself . Comment : Ritwik running SwaggerUI 2.1.4 locally with the Petstore API definition yields me the VALID .. . button as expected . Are you experiencing something else Also pay attention that Swagger Core and UI are two different beings and you need to point at the latest OpenAPI specification as I linked in my answer in order to enjoy 2+ 3 in the locally-running UI .", "Question : null .. . Answer : I am experimenting with Swagger and receive CORS errors when trying to browse the server with Swagger-UI . I have only just discovered Swagger and have been using the Generate Node.js Server feature from Swagger-Editor to get the server built and running locally . Is there a way to generate the server with CORS enabled", "Question : null .. . Answer : i m working on a RESTful API using swagger-api and swagger-editor for routes . I can t figure out why the JSON i am sending through body never reach my controller . here is my YAML .. . .. . an exemple of the post request i m sending . and the response .. . .. . If i set the parameter name as not required i just received an empty response like this .. . .. . I have no clue why since other format such as header path or formdata works fine . I alway receive an empty object . req.swagger.params as no value . I tried several schema but even the simplest is not woking . i can tell from the header that content-type : application json . So the content-type is set the schema validate a simple string argument named name . Everything should be ok. . but still not . Comment : It might be completely unrelated but for me I had to downgrade the swagger-express-mw node package back to 0.1.0 to temporarily resolve this issue . Comment : I did downgrade the package but for other reasons and still the same. . I opened an issue on github . Comment : can you post the link-to the github issue Comment : you can find the opened issue here https : github.com OAI OpenAPI-Specification issues 526 but i m afraid the answer is not very helpful", "Question : I get below error when build the generated server project in swagger-editor using maven 3.0.5 version . I used maven 3.3.9 also . still failing with the same error . java version is 1.8.0 40 . what is the reason for this build failure You can easily reproduce this by generating server project for uber API in swagger-editor and building it using maven . Comment : You re talking about the jaxrs generated server Comment : yes.it is.............. . .. . Answer : I could built the server by commenting jetty-maven-plugin in pom file . Seems like it tries to start a jetty server and deploy the generated server jar file ." ] }
[ "yes-answer-long", "yes-answer-short" ]
real-time
UNK_RELATION
ctrl@modifier-key@55
ctrl -- similar to the shift key the control key is a @placeholder that performs an advanced operation when pressed in conjunction with another key .
{ "confidence": [ 49.998741149902344, 48.686073303222656, 46.72599411010742, 43.98434829711914, 43.5694580078125, 42.87352752685547, 42.08266830444336, 41.29582977294922, 40.73673629760742, 38.96563720703125, 38.94008255004883, 38.50406265258789, 38.06370162963867, 37.34243392944336, 37.2783203125, 37.2783203125, 36.99272155761719, 36.8952522277832, 36.8952522277832, 36.8952522277832, 36.16798400878906, 35.965423583984375, 35.7222785949707, 35.59104919433594, 35.571739196777344, 35.474491119384766, 35.43876266479492, 35.143463134765625, 35.037353515625, 34.66238784790039, 34.56505584716797, 34.56505584716797, 34.56505584716797, 34.36478805541992, 34.24687957763672, 34.09282684326172, 34.00145721435547, 33.8768424987793, 33.8768424987793, 33.8768424987793, 33.8768424987793, 32.80213928222656, 32.551631927490234, 32.551631927490234, 32.551631927490234, 32.40800857543945, 31.942707061767578, 31.735910415649414, 31.655120849609375, 31.546646118164062, 31.546646118164062, 31.491741180419922, 31.384830474853516, 31.060710906982422, 30.810359954833984, 30.63233184814453, 30.57668685913086, 30.221435546875, 30.036128997802734, 29.825542449951172, 29.814529418945312, 29.811058044433594, 29.80029296875, 29.73059844970703, 29.697383880615234, 29.619747161865234, 29.493812561035156, 29.403732299804688, 29.39719009399414, 29.16986083984375, 29.034683227539062, 28.952068328857422, 28.952068328857422, 28.76565170288086, 28.75116729736328, 28.637493133544922, 28.637493133544922, 28.52889633178711, 28.266517639160156, 28.246490478515625, 28.20264434814453, 27.975601196289062, 27.975601196289062, 27.916244506835938, 27.808067321777344, 27.775585174560547, 27.48086166381836, 27.48086166381836, 27.48086166381836, 27.377979278564453, 27.04174041748047, 26.836273193359375, 26.547882080078125, 26.301986694335938, 26.262821197509766, 26.262821197509766, 26.262821197509766, 26.184738159179688, 26.177936553955078, 26.177936553955078 ], "content": [ "So I call : - .. . .. . This works perfectly EXCEPT when the last key pressed was either a CTRL ALT or SHIFT key .", "in java key-bindings in windows how can I recognize when the CTRL key itself is pressed and not when the AltGr is pressed", "shiftKey -- The Shift key was also pressed .", "They are : .. . .. . ctrlKey -- The Control key was also pressed .", "ofcourse it will pick up just CTRL because its the first key to be pressed .", "I ve been wondering if I can detect CTRL and SHIFT key being pressed WITHOUT using keydown event .", "the problem is how to determine that CTRL key is pressed alone without any other key .", "keypress .. . A character key is pressed .", "my process treatment must be started by the CTRL key itself and I also need to know when the CTRL key is released .", "Meta : + .. . zEvent.code + + .. . key was pressed .", "You can check this to look if the key was pressed or not .", "Or you want to use ctrl in combination with another key e.which 49 e.ctrlKey", "Where is the ctrl+key mapped on system", ".. . There are following keyboard-events : .. . .. . keydown .. . A key is pressed down .", "altKey -- The Alt key was also pressed .", "metaKey -- The Meta key was also pressed .", "Maybe the code only looks at the location of the key I remember reading something to that respect in combination with the Ctrl-key .", "But I need to also send Ctrl or Alt + Key .", "i want to monitor the behavior of CTRL key .", "Can event be triggered with only CTRL key", "but when i press CTRL nothing happen but when i press any other key like K it starts reading key from keyboard", "When I press it and Save dialog is displayed Ctrl key will left in buffer .", "KeyData that comes with the key-events contains information about what modifier keys that were pressed together with the key that caused the event .", "Several boolean attributes are provided to determine if modifier keys were pressed in conjunction with whatever target key you are interested in .", "I am trying to capture ctrl+z key combination in javascript with this code : .. . .. . Commented line test1 generates the alert if I hold down the ctrl key and press any other key .", "The right ctrl key is to switch between the host and the guest environment .", "You could theoretically make your global CTRL boolean toggle each time that key is pressed but that d be weird .", "I don t know why but it seems because keyDown event happens directly after you press any key even if that was ctrl key so if you pressed ctrl+Up you will press ctrl key before the UP key and thus the event will occur before you can press the other also pressing the second key will triggers the event again .", "Is your key located just left of the Enter key", "you want to repeat action bound to they key as long as it s pressed without the need of tapping they key repeatedly .", "Why Ctrl key does not work in emulator", "But what about hardware keyboards with CTRL key", "Why CTRL key does not work in emulator", "Yes please keypress just so you know is a more processed version of key down and key up and it includes things that the others don t such as the shift and ctrl being part of the same event .", "If you are trying to identify whether a the keypress was a letter or a digit you could do something like .. . .. . But if you want which key was pressed you could handle the KeyDown event whose KeyEventArgs will have which key was pressed .", "The root of this code is that you cannot Ctrl+Click the rows in a Datagrid in WPF when you use the Ctrl key of the on-screen-keyboard .", "In the KeyEventArgs there are properties Ctrl Alt and Shift that shows if these buttons are pressed .", "Can someone please tell me what s going on with Ctrl key", "So what I did was to find how it used the ctrl key :", "I would like to implement multiple selection while CTRL key is down .", "You can test typing Ctrl+V + key sequence .", "Put them together as per the line after test 1 2 and holding down the ctrl key then pressing the z key does not generate the alert as expected .", "Everything works fine but in several times the Ctrl key starts acting as Ctrl and not as Caps lock and viceversa .", "It treats Ctrl+ as Ctrl+S as other X applications do S and share same key on my keyboard .", "etc . but it is impossible to do so for key combinations like Ctrl+O open page Ctrl+S Save page etc .", "Not just a specific key .", "The keypress event is fired as soon as a key has been pressed .", "To detect only whether the user has pressed a key use the onkeydown event instead because it works for all keys .", "Given this the control key can t be captured by keypress because it doesn t generate a character .", "How can Tampermonkey fire on a simultaneous ctrl alt and e key", "there is no CTRL key on most devices at least not on most soft keyboards", "Such as : .. . .. . However if I want to use enter Ctrl+E to print A Ctrl was held with a key .", "I currently have this code : .. . .. . The code checks for the Ctrl button when the selection in a data grid changes which works fine for detecting the Ctrl key for normal physical keys but when I use the on-screen-keyboard and press down the Ctrl key it doesn t register in my program .", "You don t need any key-events at all to detect Shift Ctrl and Alt when mouse is clicked MDN https : developer.mozilla.org en-US docs Web Reference Events click .", "keyup .. . A key is released .", "Then if you cannot find where your key was rebound bind yourCtrl- key by the original one then retry : .. . .. . For more info :", "The ctrlkey property of your event will evaluate to true if the control key is down when it s called .", "There are two key combinations which raise SIGINT : Ctrl-C is processed by the shell and Ctrl+Break is processed by the terminal .", "I see some similar questions here like JavaScript : Check if CTRL button was pressed http : stackoverflow.com questions 6806271 javascript-check-if-ctrl-button-was-pressed but my problem is actually the event triggering .", "Went to Window - Preferences - General - Keys and looked for key combinations that used Shift + 8 .", "On the keydown event if the current key matches a key in the object you set the state to true for that key .", "what must i do i need to monitor CTRL key behavior in Console application", "the line with numbers under the uppermost EscF1 key row .", "While using KeyUp will not trigger the event until you release the key so you can press ctrl and the press the second key which will trigger one event .", "Key codes map to keys on a keyboard .", "I recently discovered that different browsers handle the onclick event differently when the Control or Shift keys are pressed .", "ALT CTRL SHIFT ESC in all browsers .", "I want to know if CTRL +A or CTRL +5 or CTRL +B is pressed or any combinations .", "The problem is that after the program runs the computer continues to act as-if the ctrl key is pressed down and then - if I type a it selects the whole document if I roll the mouse wheel it changes the text side etc .", "The reason is that I am creating some sort of Grid Viewer in JavaScript and I implemented selecting different items by holding CTRL or SHIFT key as it functions in most common viewers editors and so on .", "Like I specifically said I know you can capture it with key down but I want to do it with key press", "TL DR : You can use event.key.charCodeAt 0 to detect the strange character codes returned by CTRL+Z and other CTRL+key combinations .", "There is no way to suppress a Ctrl + Click on a link with no child elements in Internet Explorer -- the onclick event doesn t fire at all for link clicks if the Ctrl key is held down .", ".. . .. . Solution 2 .. . .. . Keep a global variable for the detecting if the shift key is down and use that in your keydown handler .", "That is the case on nix systems for Windows system the EOF signal is sent using the CTRL+Z key combination", "because it doesn t change the value of key .", "Each key is represented as a unique number .", "Pretty clumsy UI of course not getting the Ctrl key released when you click is very ugly maybe that s part of the problem .", "Send a posix signal to your parent process when the key is captured .. . 3 .", "Is thee any way to disable this functionality so even when the control key is down the arrows change the selected item", "90 is the Z key and this will do the necessary capture.. .", "Add ALT key handling to input action map and within the handler keep a flag that can be checked in the control handler .", "I ve updated my answer to include why the control key alone can t be captured alone with keypress .", "It is no longer able to detect the ctrl key so I can t use anymore shortcuts like C to stop a running task because when I press ctrl+C the terminal echoes only the c character .", "I guess I often pressed this key-combo and did t know what was happening .", "But if i use KeyDown i get the last key how was down .", "We have a TreeView which we want to manually process CTRL-Arrow key combinations on .", "Many devices such as Asus Transformer have external keyboard which has Ctrl key available on API Level 11 .", "Every time I hit the key combination Ctrl+Space VS 2010 would change the keyboard layout .", "EDIT : .. . .. . Another interesting thing is when i sending code instead of a simple key it works without releasing the caps lock : .. . .. . The log says :", "I have a new problem I came across : I want to create a shell for Linux but I don t know how to read special input keys like arrow key CTRL-key or F11 key without using ncurses .", "change keyboard layout from Shift+Ctrl+A .", "You d prefer to use Up if you want to prevent from action firing more then once by mistake the key is pressed for too long by mistake .", "However I want to add another condition : if CTRL + D is pressed by the user the program exits .", "I do have other working binds with CTRL E.G bind-key -n C-l next-window so I don t get this.. .", "The problem is I don t know how to send key modifiers like adding ctrl to z to perform an undo command with the way it currently is .", "Given a list of signals kill -l can give you I want to know all the ctrl + key that can raise one of them .", "To detect this special character I modfiied the diagnostic handler.. . .. . .. . .. . and tested the same keyboard combinations as before : .. . .. . This means that the special CTRL key combinations can be detected using an event handler like this : .. . .. . It should be noted that this approach will not work for detecting the control key on its own since 99 is NOT the character for CTRL but rather for c the first character in the string control returned by event.key .", "play with Send options or try to send Virtual key or Scan code data .", "this way you can track more than one key ." ] }
{ "confidence": [ 54.19703674316406, 53.033241271972656, 51.63981246948242, 51.13600540161133, 49.33081817626953, 49.2871208190918, 48.7083854675293, 47.8948974609375, 47.385459899902344, 46.590824127197266, 45.8472900390625, 45.3985710144043, 44.783164978027344, 43.950653076171875, 43.94350051879883, 41.40155792236328, 41.011558532714844, 39.96820068359375, 39.832359313964844, 39.62234878540039 ], "content": [ "Question : I am trying to make a script run when Ctrl + Alt + e is pressed . How can Tampermonkey fire on a simultaneous ctrl alt and e key I have tried ctrlKey and altKey . I ve found nothing that works . How can I edit the script below to fire on Ctrl + Alt + e instead of just e .. . Answer : Refer to the W3C spec for keyboard-events https : www.w3.org TR DOM-Level-3-Events interface-KeyboardEvent . Several boolean attributes are provided to determine if modifier keys were pressed in conjunction with whatever target key you are interested in . They are : .. . .. . ctrlKey -- The Control key was also pressed . shiftKey -- The Shift key was also pressed . altKey -- The Alt key was also pressed . metaKey -- The Meta key was also pressed . Other important notes : .. . .. . 1 . The which property is deprecated https : developer.mozilla.org en-US docs Web Events keydown . 2 . Use keydown because Chrome does not fire the keypress event for known keyboard-shortcuts . https : bugs.chromium.org p chromium issues detail id 13891 c50 .. . 3 . Some spec d properties such as key are only partly functional in Firefox https : bugzilla.mozilla.org show bug.cgi id 680830 . 4 . You do not need to wrap your code in an anonymous function like that for Tampermonkey or Greasemonkey or most userscript engines . Scope protection is automatically provided . So your code would become : .. . .. . .. . .. . Run this handy demo : .. . .. . .. . var targArea document.getElementById keyPrssInp .. . targArea.addEventListener keydown reportKeyEvent .. . .. . function reportKeyEvent zEvent .. . var reportStr .. . The + .. . zEvent.ctrlKey Control : + .. . zEvent.shiftKey Shift : + .. . zEvent.altKey Alt : + .. . zEvent.metaKey Meta : + .. . zEvent.code + + .. . key was pressed . .. . statusReport .text reportStr .. . .. . --- Was a Ctrl-Alt-E combo pressed if zEvent.ctrlKey zEvent.altKey zEvent.code KeyE .. . this.hitCnt this.hitCnt 0 + 1 .. . statusReport .after .. . p Bingo cnt : + this.hitCnt + p .. . .. . .. . zEvent.stopPropagation .. . zEvent.preventDefault .. . .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.0 jquery.min.js script .. . p label Press keys in here : input type text value id keyPrssInp label .. . p .. . p id statusReport p Comment : Very insightful . Looks like a simpler solution for the case of using modifiers and just one target key code . For multiple keys you d have to keep track of what s selected with keydown and keyup . Comment : @Gideon true but the use-case for that is pretty rare in my experience .", "Question : in java key-bindings in windows how can I recognize when the CTRL key itself is pressed and not when the AltGr is pressed my process treatment must be started by the CTRL key itself and I also need to know when the CTRL key is released . A problem occurs with swiss german french users : to type @ they have to press simultaneously AltGr + 2 . In this case windows transforms AltGr to ALT + CTRL and my process is wrongly launched . I point out that I want to use key-bindigs . .. . .. . .. . Answer : I can think of two solutions : .. . .. . 1 . Instead of using panel s input action map - handle the operation in KeyListener . This seems to be a direct solution . 2 . Add ALT key handling to input action map and within the handler keep a flag that can be checked in the control handler . I prefer 1 though .", "Question : How can I determine in KeyDown that CtrlUp was pressed . can t work because never both keys are pressed exactly in the same second . You always to at first the Ctrl and then the other one.. . .. . Answer : You can use the ModifierKeys property : .. . .. . Note that the ModifierKeys value can be a combination of values so if you want to detect that CTRL was pressed regardless of the state of the SHIFT or ALT keys you will need to perform a bitwise comparison as in my sample above . If you want to ensure that no other modifiers were pressed you should instead check for equality : Comment : Over HERE http : stackoverflow.com a 7078186 153923 you said that data is in the KeyData field . No one here has mentioned KeyData https : msdn.microsoft.com en-us library system.windows.forms.keyeventargs.keydata.aspx . Are these answers incorrect Comment : Good catch @jp2code ModifierKeys is a property on Control such as a windows forms form that will give you information on what modifier keys that are currently being pressed . KeyData that comes with the key-events contains information about what modifier keys that were pressed together with the key that caused the event . In retrospect I d say that ModifierKeys is more interesting together with button click or similar events and that it would be more accurate to use KeyData during key-events .", "Question : I ve looked around a lot and I know you can detect the ctrl keys ctrl+c ctrl+v etc with the keydown event in javascript and it s often used so that the event isn t captured by other processes however I want to handle it through the keypress event the purpose being handling through one event rather than 2 and hopefully allowing for consistency when using other keyboard-shortcuts for the same function now it seems like it should be possible after all the keypress event object has Boolean properties for alt ctrl shift etc . and the character code for keypress events that do go through are different then the key itself for example z keypress event is charCode 122 where ctrl+z keypress event is charCode 26 . So the question is is there a way to prevent the default from intercepting the ctrl keys so that the keypress event can handle them for my particular instance I m using chrome but I also want general answers . UPDATE .. . .. . ive found that all of the default of the ctrl keys can be prevented for example ctrl+s attempting to save the page using the from inside the keydown event like this .. . .. . note : this only prevents the defaults that are preventable things like ctrl+t for a new tab in chrome can not be prevented .. . .. . however the problem here is that this also stops the keypress event from occurring is there a way to then pass the event to the keypress event in a way that will have the keypress properties meaning things like the charCode will now be defined .. . Answer : Reading this from another site it states - .. . .. . Keyboard events is one of wilder parts of frontend development . There are inconsistencies and cross-browser problems . .. . But still there are recipes which help to cope with ordinary situations easily . .. . There are following keyboard-events : .. . .. . keydown .. . A key is pressed down . keypress .. . A character key is pressed . keyup .. . A key is released . .. . There is a fundamental difference between keypress and keydown . .. . Keydown triggers on any key press and gives scan-code . Keypress triggers after keydown and gives char-code but it is guaranteed for character keys only . Given this the control key can t be captured by keypress because it doesn t generate a character . More information can be found here on even more specific information . http : javascript.info tutorial keyboard-events .. . .. . Hope this helps Comment : I think you missed the whole point I wanted to capture it with the key press event that was the whole purpose of the question Comment : Like I specifically said I know you can capture it with key down but I want to do it with key press Comment : I see your issue . Mind if I change my answer . It seems you won t be able to do this since keydown and keyup are different than key press . Comment : Yes please keypress just so you know is a more processed version of key down and key up and it includes things that the others don t such as the shift and ctrl being part of the same event . With keydown shift+a gives you two events the shift and the a with keypress it gives you one event for the A Comment : I ve updated my answer to include why the control key alone can t be captured alone with keypress . I ve quoted the site and given you the sites URL in case you wanted a deeper knowledge of it .", "Question : I see some similar questions here like JavaScript : Check if CTRL button was pressed http : stackoverflow.com questions 6806271 javascript-check-if-ctrl-button-was-pressed but my problem is actually the event triggering . My js code : .. . .. . The event triggers for any other keys except the ctrl . I need to also trigger it for ctrl . I can t use jQuery prototype whatever so those solutions are not acceptable . So.. . how can I detect the ctrl Ty for your help . Comment : doesn t this : if e.ctrlKey ... . work. . .. . Answer : Using onkeydown rather than onkeypress may help . From http : www.w3schools.com jsref event onkeypress.asp .. . .. . Note : The onkeypress event is not fired for all keys e.g . ALT CTRL SHIFT ESC in all browsers . To detect only whether the user has pressed a key use the onkeydown event instead because it works for all keys .", "Question : I m trying to enable editing commands in my paper.js application such as CTRL+z for undo . Detecting individual letter keys works great and I can detect modifier keys that are held during mouse events but I m having trouble writing an event handler that detects combinations of CTRL and letter keys . Based on the examples given by fabric.js http : paperjs.org tutorials interaction keyboard-interaction what I would expect is a key handler that looks something like this : .. . .. . However this doesn t work Weirdly enough the conditional block never fires . To investigate this I wrote the following diagnostic handler.. . .. . .. . .. . and tried it out with various keyboard inputs with some interesting results : .. . .. . These results suggest that the string returned by event.key is different depending on whether the control modifier is held down when another key is typed . Something weird is happening here Based on this how can I detect both of these keys being pressed at the same time .. . Answer : Here are a couple of vanilla Javascript solutions that should help you : .. . .. . Solution 1 .. . .. . Check which keycode was pressed down and if the shiftkey is down using native the event object . .. . .. . Solution 2 .. . .. . Keep a global variable for the detecting if the shift key is down and use that in your keydown handler . You ll also need to reset it with a keyup event handler . Comment : The trouble here is that the string returned by event.key is actually different depending on whether or not CTRL is held . Shift is a lot easier and was the first thing I implemented because it doesn t change the value of key . Even if you create a global boolean for CTRL and map it to keyUp keyDown events you still won t be able to detect the CTRL+Z character by looking for event.key z because z will never be returned by event.key so long as CTRL is held . You could theoretically make your global CTRL boolean toggle each time that key is pressed but that d be weird . : Comment : That s why I d recommend using which or keyCode rather than key as in my example . Each key is represented as a unique number . These attributes are considered deprecated now but based on what browsers you may need to support they will be the most universally useful and all future browsers will support them for legacy purposes . Comment : If I were writing a plain JavaScript handler I d be inclined to agree with you In this case I m trying to stick to the event handlers that are provided by the paper.js library which don t give you direct access to the keyCodes that are spawned by the event handler . But you re right what you really want in this case is event.keyCode if it s available", "Question : What would be some sample code that will trap the Ctrl+Tab and Ctrl+Shift+Tab for a WPF application We have created KeyDown events and also tried adding command bindings with input gestures but we were never able to trap these two shortcuts . .. . Answer : You have to use KeyUp event not KeyDown .. . Comment : Interesting . Haven t tried this but can you please explain why Comment : Sure Siz . When you are trying to capture 2 or more key strokes at the same time you cannot use KeyDown checking for e.Key because it captures one key at a time . If KeyDown is necessary like doing something when the user is holding down a key combination for example you should use KeyDown and the Keyboard class specifically IsKeyDown testing for specific keys . Comment : Sorry I don t understand what you re trying to say here . The KeyUp event also only passes a single Key value in e.Key . Can you give a specific example where handling KeyUp instead of KeyDown would be better for capturing 2 or more keystrokes at the same time Thanks . Comment : @RayBurns The idea behind capturing KeyUp is that at the moment of KeyUp all modifier keys are already pressed . You only need checking them to figure out the whole key combination within the same handler . If you work with KeyDown instead you have hard time telling Shift+Ctrl e.g . change keyboard layout from Shift+Ctrl+A . Comment : Both Up and Down events are exposed for a reason . All depends on the use-case . In some cases using Down is much better eg . you want to repeat action bound to they key as long as it s pressed without the need of tapping they key repeatedly . You d prefer to use Up if you want to prevent from action firing more then once by mistake the key is pressed for too long by mistake .", "Question : I ve been wondering if I can detect CTRL and SHIFT key being pressed WITHOUT using keydown event . The reason is that I am creating some sort of Grid Viewer in JavaScript and I implemented selecting different items by holding CTRL or SHIFT key as it functions in most common viewers editors and so on . The problem is that when the focus is not anywhere on the page . For example I m adding page to the bookmarks . Then I hold CTRL or SHIFT and click on the item but it acts normally as keydown hasn t been triggered . Any way of omitting this Perhaps not but it can be confusing for customers who will treat it as my own obvious Bug . Comment : If they treat it as a bug of yours that s their fault . If they don t want to focus your page they don t get your features Comment : You can detect those keys also in onclick handler.. . Comment : @Teemu Good point . I m not sure why the keydown event is being used . Everything should be checked at the clicking point .. . Answer : You don t need any key-events at all to detect Shift Ctrl and Alt when mouse is clicked MDN https : developer.mozilla.org en-US docs Web Reference Events click . The Event object contains this information : .. . .. . A demo at jsFiddle http : jsfiddle.net W3LqN . These properties can be read also in keyboard event handlers .", "Question : I try to get the non-ModifierKeys from the pressKey event . To get the ModifierKey i use : .. . .. . But how do i get the non-ModifierKeys Not just a specific key . But all combination a-z 0-9 . I want to know if CTRL +A or CTRL +5 or CTRL +B is pressed or any combinations . .. . Answer : If you are trying to identify whether a the keypress was a letter or a digit you could do something like .. . .. . But if you want which key was pressed you could handle the KeyDown event whose KeyEventArgs will have which key was pressed . Comment : Thank you . When i move the code to KeyDown it works . Always been using Keypess before.In this case that was not a good idea . ofcourse it will pick up just CTRL because its the first key to be pressed . But if i use KeyDown i get the last key how was down . Witch will be the non-ModifierKey .", "Question : I see some similar questions here like JavaScript : Check if CTRL button was pressed http : stackoverflow.com questions 6806271 javascript-check-if-ctrl-button-was-pressed but my problem is actually the event triggering . My js code : .. . .. . The event triggers for any other keys except the ctrl . I need to also trigger it for ctrl . I can t use jQuery prototype whatever so those solutions are not acceptable . So.. . how can I detect the ctrl Ty for your help . Comment : doesn t this : if e.ctrlKey ... . work. . .. . Answer : Your event has a property named ctrlKey . You can check this to look if the key was pressed or not . See snippet below for more control like keys .", "Question : I am trying to make a script run when Ctrl + Alt + e is pressed . How can Tampermonkey fire on a simultaneous ctrl alt and e key I have tried ctrlKey and altKey . I ve found nothing that works . How can I edit the script below to fire on Ctrl + Alt + e instead of just e .. . Answer : The keypress event is fired as soon as a key has been pressed . If you are pressing multiple keys it will fire the event for each press so they are considered independent key presses . Instead you can use both the keydown and keyup events to detect multiple key presses . You can have an object that contains the 3 keys and a boolean state . On the keydown event if the current key matches a key in the object you set the state to true for that key . On the keyup event you reset the state for the current key to false . If all 3 states are true at the time of the last key press then fire the event . See this example https : therelentlessfrontend.com 2012 11 13 detect-multiple-key-press-in-javascript-for-your-website that achieves this logic using jQuery . Update Brock s answer is a better solution for you using modifier keys in combination with a single key code target as the ctrlKey and altKey modifiers are detected in combination not handled independently . If you want to detect multiple key codes like E and F together for example you d need to keep track of them using keydown and keyup as per above . Comment : This is not a good approach for modifier keys like Control Shift Alt etc .", "Question : How can I determine in KeyDown that CtrlUp was pressed . can t work because never both keys are pressed exactly in the same second . You always to at first the Ctrl and then the other one.. . .. . Answer : this will work for sure . Be careful to handle KeyUp event and not keyDown . For me keyDown didn t work keyU p worked instead for the same code . I don t know why but it seems because keyDown event happens directly after you press any key even if that was ctrl key so if you pressed ctrl+Up you will press ctrl key before the UP key and thus the event will occur before you can press the other also pressing the second key will triggers the event again . While using KeyUp will not trigger the event until you release the key so you can press ctrl and the press the second key which will trigger one event .", "Question : I m trying to enable editing commands in my paper.js application such as CTRL+z for undo . Detecting individual letter keys works great and I can detect modifier keys that are held during mouse events but I m having trouble writing an event handler that detects combinations of CTRL and letter keys . Based on the examples given by fabric.js http : paperjs.org tutorials interaction keyboard-interaction what I would expect is a key handler that looks something like this : .. . .. . However this doesn t work Weirdly enough the conditional block never fires . To investigate this I wrote the following diagnostic handler.. . .. . .. . .. . and tried it out with various keyboard inputs with some interesting results : .. . .. . These results suggest that the string returned by event.key is different depending on whether the control modifier is held down when another key is typed . Something weird is happening here Based on this how can I detect both of these keys being pressed at the same time .. . Answer : TL DR : You can use event.key.charCodeAt 0 to detect the strange character codes returned by CTRL+Z and other CTRL+key combinations . .. . .. . As it turns out the CTRL-z combination is special https : en.wikipedia.org wiki Control-Z . The key being returned in this case.. . .. . .. . .. . looks like an empty string because the keycode being passed to the event handler corresponds to the special CTRL+z combination which results in an unprintable character . To detect this special character I modfiied the diagnostic handler.. . .. . .. . .. . and tested the same keyboard combinations as before : .. . .. . This means that the special CTRL key combinations can be detected using an event handler like this : .. . .. . It should be noted that this approach will not work for detecting the control key on its own since 99 is NOT the character for CTRL but rather for c the first character in the string control returned by event.key . For that you ll still want to use event.modifiers.control . Comment : The String.prototype.charCodeAt 0 trick is great", "Question : I try to get the non-ModifierKeys from the pressKey event . To get the ModifierKey i use : .. . .. . But how do i get the non-ModifierKeys Not just a specific key . But all combination a-z 0-9 . I want to know if CTRL +A or CTRL +5 or CTRL +B is pressed or any combinations . .. . Answer : Control does not provide a property that lists all the pressed keys . You need to pick it up in a event like KeyPress https : msdn.microsoft.com en-us library system.windows.forms.control.keypress v vs.110 .aspx . Comment : the code are in the KeyPress even . if Control.ModifierKeys Keys.Control", "Question : in java key-bindings in windows how can I recognize when the CTRL key itself is pressed and not when the AltGr is pressed my process treatment must be started by the CTRL key itself and I also need to know when the CTRL key is released . A problem occurs with swiss german french users : to type @ they have to press simultaneously AltGr + 2 . In this case windows transforms AltGr to ALT + CTRL and my process is wrongly launched . I point out that I want to use key-bindigs . .. . .. . .. . Answer : Thank you KDM . As I axplained I wanted to use keybindings so I tried your 2nd idea first . But I could not catch the ALT modifier launched by window when pressing AltGr . So I went for the 1st solution assuming testing ALT CTRL modifiers is a special case not easy to treat using keybindings . See also here http : stackoverflow.com questions 8795298 java-does-not-produce-proper-altgr-key-event . Improvements advices are very welcome .", "Question : I m Going to start a console-application . the problem is how to determine that CTRL key is pressed alone without any other key . i want to monitor the behavior of CTRL key . after trace this code i put a checkpoint on readkey line . but when i press CTRL nothing happen but when i press any other key like K it starts reading key from keyboard Comment : Console applications rely on an input stream so unless some actual characters are inserted into the stream you can t detect keypresses . Comment : what must i do i need to monitor CTRL key behavior in Console application Comment : Unfortunately I don t think there s a way to do it without having to P Invoke to Windows API and using that to monitor keypresses . Like I said a Console application s primary source of input is the input stream and unless a keypress puts characters into that input stream I don t know how you would go about detecting it . Comment : and what about low-level keyborad hook .. . Answer : Yes it is possible by using ConsoleKeyInfo . Example : .. . .. . Although applies only to .NET Framework 4.6 and 4.5", "Question : Hi I m new to vim and I m stuck . In : help tag-it says that one can go to a tag definition using the CTRL- keystroke . But I can t get this to work . I thought I messed some mappings with my plugins so I cleaned .vimrc . But I still get cursor to a tag word in help for example . I strike Ctrl and simultaneously and nothing happens . Does anybody know how to fix it Or maybe I m reading : help wrong Comment : Are you using the English US keyboard layout Is your key located just left of the Enter key Do you have to press Shift to get a Comment : Yes yes and no . Thanks at least i m reading it right . Comment : That s strange . Have you tried : tag quickref just a random tag or double clicking on a tag in gvim Do these at least work Comment : Did you generate a tags file with ctags Comment : : tag tag name is working and double click too . I fooled around with this script bundle : link https : github.com akitaonrails vimfiles and made everything according to its README including call pathogen helptags . Does it changes keymapping .. . Answer : A somewhat late entry but I had the same problem . Thought I d share a possible solution so others wont have to go through the agony . The solution in my case was : Press Ctrl and while keeping it pressed down press twice Whatever key combination you use to produce the right square-bracket do it twice I do not know why this works in my case . There s nothing in the help files that mentions this . Spent probably an hour or two trying to figure out the Ctrl- combination until I came upon the solution by accident . Comment : This one solved my problems on console but not on GUI .", "Question : How can I determine in KeyDown that CtrlUp was pressed . can t work because never both keys are pressed exactly in the same second . You always to at first the Ctrl and then the other one.. . .. . Answer : you have to remember the pressed keys ie in a bool array . and set the position to 1 when its pressed keydown and 0 when up . this way you can track more than one key . I suggest doing an array for special keys only .. . .. . so you can do :", "Question : Below is a section of my Reverse Polish Calculator . If an integer is entered push it to the stack and if is pressed peek the result . However I want to add another condition : if CTRL + D is pressed by the user the program exits . I ve had a look online but can t seem to find any solutions . Any ideas Thanks . Comment : use keybindings . you wont be able to do it with scanner . Comment : wait : do you want the user to WRITE CTRL-D or press the buttons Comment : @PhilippSander press the buttons Comment : in that case scanner wont help . use keybindings Comment : Ok I will have to look that up . What about using bufferedreader Is there a way using that .. . Answer : Try this : .. . .. . In this case the loop will stop when you press CTRL+D that is because CTRL+D sends an EOF signal to the System.in InputStream which is -1 . That is the case on nix systems for Windows system the EOF signal is sent using the CTRL+Z key combination", "Question : Hi I m new to vim and I m stuck . In : help tag-it says that one can go to a tag definition using the CTRL- keystroke . But I can t get this to work . I thought I messed some mappings with my plugins so I cleaned .vimrc . But I still get cursor to a tag word in help for example . I strike Ctrl and simultaneously and nothing happens . Does anybody know how to fix it Or maybe I m reading : help wrong Comment : Are you using the English US keyboard layout Is your key located just left of the Enter key Do you have to press Shift to get a Comment : Yes yes and no . Thanks at least i m reading it right . Comment : That s strange . Have you tried : tag quickref just a random tag or double clicking on a tag in gvim Do these at least work Comment : Did you generate a tags file with ctags Comment : : tag tag name is working and double click too . I fooled around with this script bundle : link https : github.com akitaonrails vimfiles and made everything according to its README including call pathogen helptags . Does it changes keymapping .. . Answer : I was facing same problem on virtual box VM . The right ctrl key is to switch between the host and the guest environment . Try using left ctrl + ." ] }
[ "yes-answer-long", "yes-answer-short" ]
modifier-key
UNK_RELATION
tfs2014@server@58
tfs2014 -- for questions specific to the team foundation @placeholder release of 2014 .
{ "confidence": [], "content": [] }
{ "confidence": [], "content": [] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
kqueue@openbsd@114
kqueue -- kqueue is a scalable event notification interface introduced in freebsd 4.1 1 also supported in netbsd @placeholder dragonflybsd and mac os x .
{ "confidence": [ 62.164249420166016, 57.408790588378906, 47.43486785888672, 45.849910736083984, 45.35214614868164, 42.840858459472656, 42.701393127441406, 42.68377685546875, 41.53966522216797, 41.53966522216797, 40.039161682128906, 40.025535583496094, 39.889835357666016, 39.8527946472168, 38.76744842529297, 37.884117126464844, 37.804412841796875, 37.763038635253906, 37.763038635253906, 37.639373779296875, 37.58731460571289, 37.58731460571289, 36.50196838378906, 36.50196838378906, 36.50196838378906, 36.50196838378906, 36.198997497558594, 36.15461730957031, 36.15461730957031, 36.15461730957031, 35.264556884765625, 35.232723236083984, 35.07470703125, 35.07470703125, 35.07470703125, 35.07470703125, 34.821998596191406, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.51859664916992, 34.190887451171875, 33.73665237426758, 33.73665237426758, 33.73665237426758, 33.433250427246094, 33.433250427246094, 33.433250427246094, 33.433250427246094, 33.433250427246094, 33.433250427246094, 32.895355224609375, 32.895355224609375, 32.82680130004883, 32.511356353759766, 32.1324348449707, 32.02106857299805, 30.635364532470703, 30.606515884399414, 30.585304260253906, 30.518001556396484, 30.45751953125, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 30.385047912597656, 29.726295471191406, 29.299701690673828, 29.299701690673828, 29.299701690673828, 29.299701690673828, 29.299701690673828, 29.299701690673828, 29.299701690673828, 29.299701690673828, 29.299701690673828 ], "content": [ "kqueue http : en.wikipedia.org wiki Kqueue is only present in BSD FreeBSD OpenBSD and Darwin Mac OS X iOS kernels .", "http : docs.python.org library select.html kqueue-objects .. . .. . kqueue is the FreeBSD OS version of inotify file change-notification service .", "And from the FreeBSD kqueue manual page http : www.freebsd.org cgi man.cgi query kqueue sektion 2 : .. . .. . Value used to identify this event .", "Mac OS X doesn t support epoll but it does support kqueue http : developer.apple.com library mac documentation Darwin Reference ManPages man2 kqueue.2.html which is very similar .", "poll and kqueue .. . .. . 1 .", "When you create a kqueue with kqueue you get back a file-descriptor .", "Here is a document that discusses kqueue http : doc.geoffgarside.co.uk kqueue and it makes reference to http : doc.geoffgarside.co.uk kqueue files kqerror.c to see the possible errors .", "I m on OS X but this question is meant for every POSIX that has kevent kqueue that should be OS X and the BSDs I think .", "Kqueue will be the subject for another day .", "kqueue is a BSD feature .", "On mac I am using kqueue it states that udata is unchanged .", "From the Kqueue Wikipedia Page http : en.wikipedia.org wiki Kqueue : .. . .. . Kqueue provides efficient input and output event pipelines between the kernel and userland .", "As you rightly guessed kqueue is not scalable because you have to hold a handle to the file directory in question even if in O RDONLY mode .", "But poll says the kqueue is readable", "Have you tried KQueue events", "As suggested I was available to use kqueue http : www.freebsd.org cgi man.cgi kqueue : .. . .. . Works fine but wondering how to implement achieve the same on linux since I think kqueue not available on it any ideas", "Are there in AIX mechanisms EPOLL Linux2.6 KQUEUE FreeBSD IO Completion Port Windows or their equivalents", ": .. . .. . .. . .. . Listening Thread without kqueue .. . Accepts new connections and adds FD to a worker kqueue .", "I was taught there should be only one thread pulling from the kqueue or a mix of a thread pool and kqueue .", "According to the kqueue man page http : www.freebsd.org cgi man.cgi query kqueue sektion 2 kevent should create an event when the socket has shutdown .", "But I want to give macosx support using kqueue .", "Can the same thing be done with BSD s kqueue however", "In kqueue there is just an EVFILT READ filter that may be triggered .", "Is this how a TCP server is done with a kqueue implementation", "Normally you use kqueue as an alternative to threads .", "I was thinking along the lines of : .. . .. . Monitor with kqueue .", "When kqueue notifies you with a EVFILT WRITE event that space is available the event also tells you exactly how many bytes can be written without blocking .", "I have trouble to understand how to use kqueue for user space events .", "using kqueue I can know about the changes in the document directory .", "I was using kqueue in Python 2.7 to build a file monitor .", "The application may select poll close or even create a kevent referencing a kqueue .. . .. . This is indeed the case for FreeBSD i ve checked this with following code :", "Let us assume we have no problem finding a new event id which is not colliding with other event ids for that kqueue instance named eventId .", "I got kqueue tutorial from here : http : www.davidhamrick.com 2011 10 09 kqueue-in-cocoa.html .. . .. . Any experiences guide or suggestions would be appreciated .", "When you accept a socket you add it to the kqueue and when a socket handler finishes it works it could remove the socket from the kqueue .", "If I used what you said about the accept call adding the file-descriptor to the kqueue then that logic will have to be added to the kqueue module", "On BSD OSX with kqueue .. . .. . Add to kqueue : EV SET ...EV ADD EV ONESHOT.. . .. . .. . Re-arm : EV SET ...EV ADD EV ONESHOT.. . .. . .. . On Solaris .. . .. . just use port associate to add and re-arm .", "I heard that libevent is a abstraction-layer on top of these event based libraries epoll kqueue .", "You have the POSIX AIO and kqueue support for AIO events .", "Does any one know what is the function in Kqueue which is similar this .", "For kqueue I could only find how to delete events .", "Do I need to remove the kevent from the kqueue and re add it", "I m trying to understand the use-case for EV DISABLE and EV ENABLE in kqueue .", "Is there a way to obtain siginfo t struct when handling signals with kqueue", "I m trying to watch for size change on directory using kqueue is this possible", "There is no way to monitor the cumulative size of everything within a directory hierarchy using kqueue .", "kqueue can inform you when the file has been moved a.k.a .", "But on OSX kqueue seems to be broken and we get a race-condition here .", "The comment in that code says : Create the kqueue and set it up to watch for SIGCHLD .", "Yes because each kevent call waits only on one kqueue .", "I ve got a kqueue watching a single item : an empty Mach port set .", "kevent64 says there are no events available and select indicates the kqueue is not ready for reading .", "The kqueue mechanism https : www.freebsd.org cgi man.cgi query kqueue apropos 0 sektion 0 manpath FreeBSD 2010.3-RELEASE 20and 20Ports arch default format html has an event flag EV RECEIPT which according to the linked man page : .. . .. . .. . is useful for making bulk changes to a kqueue without draining any pending events .", "In an event-driven framework you would put both the listening socket and all the accepted sockets into the kqueue and then handle events as they occur .", "However kqueue does not have a separate function to declare interest in getting event feedback for a descriptor .", "With kqueue you may declare interest without getting event feedback by passing 0 as nevents parameter .", "For example according to the Benchmarks the mechanisms KQUEUE EPOLL much faster than SELECT .", "I do not want to create a circular dependance with the kqueue module and the TCP logic .", "epoll is bad at multithreading indeed as compared to kqueue Solaris ports or IOCP .", "But people often refer the kqueue and epoll as being used for the same functionality .", "Does anybody know how kqueue can be used in a similar manner as epoll", "I m writing the basic TCP server with kqueue kevent and encountered a problem .", "The paper https : people.freebsd.org jlemon papers kqueue.pdf describing kqueue kevent says sect 6.5 : .. . .. . Since an ordinary file-descriptor references the kqueue it can take part in any operations that normally can per - formed on a descriptor .", "We are currently using kqueue in the following situation : .. . .. . If a socket returns EWOULDBLOCK or EAGAIN on some platforms we use epoll on Linux and kqueue on OSX to wait for the socket to be able to write again yes write not read .", "That is : .. . .. . evport Solaris 10 .. . epoll Linux .. . kqueue OS X FreeBSD .. . select usually installed on all platforms as a fallback .. . .. . Evport Epoll and KQueue have O 1 descriptor selection algorithm complexity and they all use internal kernel space memory structures .", "Note that every event registered with a kqueue has a void userdata which can be used to identify the desired action when the event fires .", "Edit : that answer misses the question because it s not about using kqueue .", "I found in apple codebase a kqueue test program but I doubt it is doing it right .", "Once you finish processing the event you need to add it back to epoll kqueue as Linux doc puts it re-arm the fd .", "The idea is that the kqueue will use the file-descriptor to watch for changes to the file .", "Use case 1 : Manual Reset event .. . Use case 2 : Auto Reset event .. . .. . .. . I think I understand how to use kqueue and kevent yet I am unclear on how the events passed to kevent look for the related operations : .. . Let there be a struct kevent variable named event .", "So My question is : Is there a way to get the according socketid inside a Signalhandle and parse it back to the Process to remove it from the event kqueue or would i have jsut to SIG IGN the SIGPIPE and handle the remove by returning of -1 from send", "An example : .. . .. . You could also check the test case http : hg.python.org cpython file tip Lib test test kqueue.py for kqueue to see how it s used .", "However in order to use kqueue on a given file one has to open the file to obtain a file-descriptor .", "However when I add the pipe kevent to the kqueue the program spits out pipe events nonstop .", "I am actually using kqueue to be notified when there is space available in the STDIN pipe .", "But kqueue 2 manual says : .. . .. . EVFILT SIGNAL .. . Only signals sent to the process not to a particular thread will trigger the filter .", "I ve already read about kqueue but it seems that it works only for folder itself not for its subfolders .", "Because of that kqueue won t report that the file that you have open has been written to .", "Signal delivery notifications via kqueue occurs after the process itself has already reacted to the signal i.e .", ".. . .. . There is an obvious race-condition here : if a file is moved or deleted between the readdir and adding it to the kqueue you ll get an error .", "I think that claiming that kqueue is designed to handle switching on tens of thousands of file descriptors is an exaggeration .", "Either require a wrapper or gamin-style server or kqueue up the whole directory himself .", "The size of a directory changes in a subset of the situations where kqueue would detect modifications to the directory .", "FYI : This command-line utility does what you want and can be built to use kqueue : https : github.com emcrisostomo fswatch", "However the BSDs obviously support poll and it seems weird that kqueue couldn t do something that poll can do .", "kqueue is supposed to be edge-triggered but can be put into level triggered mode which we do .", "Just to clarify - I ll have a kevent for each of my fds thousands and one kqueue for the whole set of them", "Still you can add kqueue s descriptor into another kqueue by filling kev.ident with kq .", "My end goal is to see libwebsockets working - using kqueue internally and check if it reduces CPU utilization .", "The output I d expect would be something like this indicating that kevent64 select and poll all agree that the kqueue is empty .", "I m using the freeBSD OS .", ".. . .. . Worker thread with kqueue .. . .. . Waits on reads on file descriptors added from the listening thread .", "The latter is not normally necessary because closing a fd automatically removes any associated events from any kqueue .", "But the question that I think your answer addressed is - can multiple threads add file descriptors to the kqueue are kqueues thread safe", "I see worker threads pool with own kqueue as possible solution then no connection lag would occur .", "You probably need to use your favourite search-engine to find a kqueue tutorial .", "NOTE : a friend of mine suggested to remove the file-descriptor from the epoll kqueue queue BEFORE calling close 2 on it .", "But this function that handles incoming connection blocks my kqueue loop so i can t accept any new connections anymore .", "Thus I need to monitor the directory for changes presumably via an efficient mechanism like a kqueue .", "The kqueue mechanism indeed does work as a means to be notified when an app s Documents directory is modified ." ] }
{ "confidence": [ 65.06698608398438, 61.076316833496094, 59.43657302856445, 58.652183532714844, 57.670997619628906, 57.33048629760742, 53.08212661743164, 52.5848503112793, 51.333229064941406, 50.795692443847656, 50.75096893310547, 50.469234466552734, 50.363765716552734, 50.12507629394531, 48.791473388671875, 48.78950500488281, 48.06349563598633, 48.00171661376953, 47.89248275756836, 47.63103485107422 ], "content": [ "Question : I am Trying to use kqueue for doing an event oriented server in c when i compile my code it give me this error .. . .. . fatal-error : sys event.h : No such file or directory .. . .. . according to a tutorial that I am following to create the kqueue events that file have to be include I am new to events programming in C Comment : Hi you should provide more info.. . code what have you tried etc . .. . Answer : kqueue http : en.wikipedia.org wiki Kqueue is only present in BSD FreeBSD OpenBSD and Darwin Mac OS X iOS kernels . It does not exist in the Linux kernel . The closest equivalents available on Linux are epoll http : en.wikipedia.org wiki Epoll for asynchronous I O and inotify http : en.wikipedia.org wiki Inotify for file system watches . Comment : Thanks do you happen to know a link-to a good tutorial of epoll Comment : Avoid using epoll directly . Use libevent http : libevent.org it s OS-independent .", "Question : I m writing two Python scripts that both parse files . One is a standard unix logfile and the other is a binary file . I m trying to figure out the best way to monitor these so I can read data as soon as they re updated . Most of the solutions I ve found thus far are linux specific but I need this to work in FreeBSD . Obviously one approach would be to just run my script every X amount of time but this seems gross and inefficient . If I want my Python app running continuously in the background monitoring a file and acting on it once it s changed updated what s my best bet Comment : Can you not use tail -f Comment : Doesn t exactly play nice with binary files : .. . Answer : Have you tried KQueue events http : docs.python.org library select.html kqueue-objects .. . .. . kqueue is the FreeBSD OS version of inotify file change-notification service . I haven t used this but I think it s what you want .", "Question : I m learning to use epoll function . But my OS X Mountain Lion doesn t have a header file sys epoll.h . I d like to use epoll function on OS X . How Can I use epoll function .. . Answer : Mac OS X doesn t support epoll but it does support kqueue http : developer.apple.com library mac documentation Darwin Reference ManPages man2 kqueue.2.html which is very similar .", "Question : When you create a kqueue with kqueue you get back a file-descriptor . But it appears that this file-descriptor cannot be meaningfully polled with select . I understand that the standard way to poll read from a kqueue is with kevent .. . but I m trying to integrate with some legacy code that polls file descriptors using select . The goal here was to be able to fire a user event that can be detected by this select -based polling mechanism even if the event eventually needs to be consumed using kevent later . This looked like the kind of thing EVFILT USER was born to do but a quick experiment indicates that select doesn t report the kqueue s fd as being ready to read when an event is added and triggered in the kqueue it just times out or blocks forever . But an equivalent kevent call does see return the event . Am I doing something wrong Or is it just not possible to poll a kqueue s fd with select .. . Answer : The paper https : people.freebsd.org jlemon papers kqueue.pdf describing kqueue kevent says sect 6.5 : .. . .. . Since an ordinary file-descriptor references the kqueue it can take part in any operations that normally can per - formed on a descriptor . The application may select poll close or even create a kevent referencing a kqueue .. . .. . This is indeed the case for FreeBSD i ve checked this with following code : Comment : would it be for linux.. .", "Question : The kqueue mechanism https : www.freebsd.org cgi man.cgi query kqueue apropos 0 sektion 0 manpath FreeBSD 2010.3-RELEASE 20and 20Ports arch default format html has an event flag EV RECEIPT which according to the linked man page : .. . .. . .. . is useful for making bulk changes to a kqueue without draining any pending events . When passed as input it forces EV ERROR to always be returned . When a filter is successfully added the data field will be zero . My understanding however is that it is trivial to make bulk changes to a kqueue without draining any pending events simply by passing 0 for the nevents parameter to kevent and thus drawing no events from the queue . With that in mind why is EV RECEIPT necesary Some sample code https : developer.apple.com library mac technotes tn2050 index.html in Apple documentation for OS X actually uses EV RECEIPT : .. . .. . But seeing as the changes array is never examined after the kevent call it s totally unclear to me why EV RECEIPT was used in this case . Is EV RECEIPT actually necessary In what situation would it really be useful .. . Answer : If you are making bulk changes and one of them causes an error then the event will be placed in the eventlist with EV ERROR set in flags and the system error in data . Therefore it is possible to identify which changelist element caused the error . If you set nevents to zero you get the error-code but no indication of which event caused the error . So EV RECEIPT allows you to set nevents to a non-zero value without draining any pending events . Comment : Ok this makes sense but it doesn t correlate with the code in the Apple example that I linked . The comment in that code says : Create the kqueue and set it up to watch for SIGCHLD . Use the new-in-10.5 EV RECEIPT flag to ensure that we get what we expect - however it calls kevent with just a single event uses EV RECEIPT and checks neither the return from kevent nor the values in the return events . Any clue as to what the comment means by we get what we expect - or is the use of EV RECEIPT in this case bogus Comment : I think in this case setting nevents to zero would achieve identical behaviour as the return-value is not checked . But this may be a pattern that is replicated in other code where the return-value is checked . The expectation being that the new filter is returned and not a pending event .", "Question : From the Kqueue Wikipedia Page http : en.wikipedia.org wiki Kqueue : .. . .. . Kqueue provides efficient input and output event pipelines between the kernel and userland . Thus it is possible to modify event filters as well as receive pending events while using only a single system call to kevent 2 per main event-loop iteration . This contrasts with older traditional polling system calls such as poll 2 and select 2 which are less efficient especially when polling for events on a large number of file descriptors .. . .. . That sounds great . I target FreeBSD for my server and I m handling a significant amount of network socket fd s - using a select on them all and figuring out who to read data from . I d rather use kevent calls to get higher performance since that s what it s there for I ve read the man page for kevent on FreeBSD here http : www.gsp.com cgi-bin man.cgi section 2 topic kevent but it s cryptic to me and I m not finding good resources that explain it . An example of using kevent to replace select would solve my problem and would also help me get a better idea of how kevent is used . .. . Answer : First create new kqueue : .. . .. . Now register your fd in kq : .. . .. . Finally wait for data to arrive into your socket : .. . .. . After return res kevs i .ident will contain your socket s descriptor res kevs i .data - number of bytes ready to be read . See man kevent for more details and features . Comment : thank you for being the first to actually answer my question . Just to clarify - I ll have a kevent for each of my fds thousands and one kqueue for the whole set of them Is that how this is normally done Comment : Yes because each kevent call waits only on one kqueue . Still you can add kqueue s descriptor into another kqueue by filling kev.ident with kq . I m not sure how it exactly works because it s not documented for some reason .", "Question : As the Title already says im looking for a way to get notified when a client closes his Session unnormal . I m using the freeBSD OS . The server is running with Xamount threads depending on CPUcore amount . So I m not forking and there isn t a own process for each client . That s why sending an deathpackage all time t seconds to recive a SIGPIPE isn t an option for me . But i need to remove left clients from the kqueue because otherwise after too many accept s my code will obviously run into memory troubles . Is there a way I can check without high performance loose per client they are connected or not Or any event-notification that would trigger if this happens Or maybe is there a way of letting a programm send any signal to a port even in abnormal termination case before the Client process will exite .. . Answer : According to the kqueue man page http : www.freebsd.org cgi man.cgi query kqueue sektion 2 kevent should create an event when the socket has shutdown . From the description of th filter EVFILT READ : .. . .. . EVFILT READ .. . .. . Takes a descriptor as the identifier and returns whenever there is data available to read . The behavior of the filter is slightly different depending on the descriptor type . .. . Sockets .. . .. . Sockets which have previously been passed to listen return when there is an incoming connection pending . data contains the size of the listen backlog . .. . Other socket descriptors return when there is data to be read subject to the SO RCVLOWAT value of the socket buffer . This may be overridden with a per-filter low water mark at the time the filter is added by setting the NOTE LOWAT flag in fflags and specifying the new low water mark in data . On return data contains the number of bytes of protocol data available to read . .. . If the read direction of the socket has shutdown then the filter also sets EV EOF in flags and returns the socket error if any in fflags . It is possible for EOF to be returned indicating the connection is gone while there is still data pending in the socket buffer .", "Question : I am reading Redis recently . Redis implements a simple event-driven library based on I O multiplexing . Redis says it would choose the best multiplexing supported by the system and gives the following code : .. . .. . I wanna know whether they have fundamental performance differences If so why Best regards .. . Answer : In general all Async I O subsystems have different internals but in current specific case these concrete async I O libs are used to support as much platforms as possible . That is : .. . .. . evport Solaris 10 .. . epoll Linux .. . kqueue OS X FreeBSD .. . select usually installed on all platforms as a fallback .. . .. . Evport Epoll and KQueue have O 1 descriptor selection algorithm complexity and they all use internal kernel space memory structures . Also they can serve lots hundreds of thousands file descriptors . Apart the others select can only serve up to 1024 descriptors and does full scan of descriptors so every time it iterates all descriptors to chose one to work with so the complexity is O n . Comment : Thanks . I found this article helps . eecs.berkeley.edu sangjin 2012 12 21 epoll-vs-kqueue.html http : www.eecs.berkeley.edu sangjin 2012 12 21 epoll-vs-kqueue.html", "Question : OK : I m implementing File Sharing in an iPhone OS app and of course this means filesystem monitoring . Yay Basically the OS copies and or deletes from and to a directory I can access when the user manipulates files into my app s section in iTunes . Thus I need to monitor the directory for changes presumably via an efficient mechanism like a kqueue . How do I implement this so that I know that the files have finished copying I was thinking along the lines of : .. . .. . Monitor with kqueue . At event start or reset existing timeout . When timeout elapses do work . but is there a better way of doing it that ensures I m not stepping over the OS s toes .. . Answer : This is only a partial answer but might be somewhat useful . 1 . The kqueue mechanism indeed does work as a means to be notified when an app s Documents directory is modified . 2 . The notification comes as soon as the directory is modified and before copying a file is complete . I have observed this in testing . Unfortunately there is no form of notification when the copy is done . At least none that I have found . What I hope Apple will realize is there needs to be a notification for iTunes synch is done because this seems to be a general problem . A loop checking if the new file s modification time is not changing might work but only most of the time . In some extreme circumstances iOS can pause to do all kinds of time consuming work of its own in the background . If there is a way to check if a particular file is open by another process then this would be enough . Geoff", "Question : I have trouble to understand how to use kqueue for user space events . I look for 2 use cases . Use case 1 : Manual Reset event .. . Use case 2 : Auto Reset event .. . .. . .. . I think I understand how to use kqueue and kevent yet I am unclear on how the events passed to kevent look for the related operations : .. . Let there be a struct kevent variable named event . Let us assume we have no problem finding a new event id which is not colliding with other event ids for that kqueue instance named eventId . 1 . Create user event : EV SET event eventId EVFILT USER EV ADD NOTE FFNOP 0 NULL .. . 2 . Destroy user event : EV SET event eventId EVFILT USER EV DESTROY NOTE FFNOP 0 NULL .. . 3 . Set the user event : EV SET event eventId EVFILT USER NOTE FFNOP 0 NULL .. . 4 . Reset user event : EV SET event eventId EVFILT USER EV CLEAR NOTE FFNOP 0 NULL .. . 5 . Pulse user event : EV SET event eventId EVFILT USER 0 NOTE TRIGGER 0 NULL .. . 6 . In the wait loop I think the snipped would be along : if event.filter EVFILT USER event.ident eventId this is my event Do something See the in the above EV SET calls to see where I need help . For use-case 1 Manual reset event operation 1 Create might look different compared to use-case 2 auto reset event . Operations 3 and 4 I am completely in the dark . Might I need EV ENABLE EV DISABLE for those Where is EV CLEAR fitting in So far I assume that I do not need to do anything in operation 6 beyond the dispatching . I am pretty positive that operation 5 could work as I gave it above . I spent now the better of a day trying to find documentation or samples showing how it is done . I found in apple codebase a kqueue test program but I doubt it is doing it right . Also it only sends 1 event in the test and that event terminates the loop of the receiving thread . So it is not helping me to understand the details for my 2 use cases . I plan to use it under FreeBsd 9.1 on a x86 machine...for now . .. . Answer : After some experimenting I found : .. . .. . 1 . Create user event : EV SET ev identifier EVFILT USER EV ADD NOTE FFCOPY 0 NULL .. . 2 . Destroy user event : EV SET ev identifier EVFILT USER EV DELETE 0 0 0 .. . 3 . Set user event : EV SET event m eventId EVFILT USER EV ENABLE NOTE FFCOPY NOTE TRIGGER 0x1 0 NULL .. . 4 . Reset user event : EV SET event m eventId EVFILT USER EV DISABLE EV CLEAR NOTE FFCOPY 0 NULL .. . 5 . Pulse user event : Not tested...did use-case 1 for now . 6 . Wait code snippet : As given in original post . Test works like a charm . In my test I did the NOTE FFCOPY thing but I don t think it is necessary . The user events have 2 states - signalled not signalled . EV ENABLE and EV DISABLE set those states it seems . The test verified that the events in signalled state actually are reported by kevent repeatedly .", "Question : As the Title already says im looking for a way to get notified when a client closes his Session unnormal . I m using the freeBSD OS . The server is running with Xamount threads depending on CPUcore amount . So I m not forking and there isn t a own process for each client . That s why sending an deathpackage all time t seconds to recive a SIGPIPE isn t an option for me . But i need to remove left clients from the kqueue because otherwise after too many accept s my code will obviously run into memory troubles . Is there a way I can check without high performance loose per client they are connected or not Or any event-notification that would trigger if this happens Or maybe is there a way of letting a programm send any signal to a port even in abnormal termination case before the Client process will exite .. . Answer : Edit : that answer misses the question because it s not about using kqueue . But if someone else finds the question by the title it may be helpful anyway .. . .. . .. . I ve often seen the following behaviour : if a client dies and the server does a select on the client s socket descriptor select returns with return code 0 and FD ISSET fd will be true for that descriptor . But when you now try to read form the socket read or recv return ERROR . For a normal connection using that to detect a client s death works fine for us but there seems to be a different behaviour when the socket connection is tunneled but we haven t yet managed to figure that out completely . Comment : yeah but the point is kqueue has the behaviour of replacing select so im not using a select in any case Comment : ok sorry and let me guess kevent doesn t behave like select in that case Comment : yip kevent is kind of eventlistener which returns me a list of all sockets that trigger a special event i.e . something is ready to write or read . so if there is a socket that got closed by client kevent just won t threw any events of that socket anymore . Thats also why i guess handling a timer for each socket would be a way with big loose of performance . Because i had for each socket to increment a own time value what absolutly would miss the behaviour of kqueue in my view Comment : I ve read the manuel http : www.freebsd.org cgi man.cgi query kqueue sektion 2 and the description for EVFILT READ sounds a bit like there is an event when the socket has shutdown . But i guess you have already tried that . Comment : Yeah i read that man page like 20 times before i was able to write my own kqueue server but the 2 sentence about the EOF flag i never noticed . I m gonna check it in the evening it about it works or not . You should wirte a new answer because your probbably right but the above is absolutly not whats answering my question .", "Question : I have a kevent ev and a int sock socket .. . . When I did ev.ident sock the g++47 warned me that warning : comparison between signed and unsigned-integer expressions -Wsign-compare . What s wrong in my approach Comment : After checking both the FreeBSD manual page and some example it seems that s how you re supposed to do . So there s nothing wrong with your approach . You might want to cast one or the other though I suggest the socket to get rid of the warning . Comment : Is the kevent designed so on purpose or just careless minor mistake I thought ev.ident is expected to be used as a file-descriptor how could it have different type than a file descripor .. . Answer : If you check the type it s of type uintptr t which is a standard type big enough to hold both the largest integer or a pointer . This is so it can be used on any kind of type which can easily be casted as an integer . And from the FreeBSD kqueue manual page http : www.freebsd.org cgi man.cgi query kqueue sektion 2 : .. . .. . Value used to identify this event . The exact interpretation is determined by the attached filter but often is a file-descriptor . So I would definitely say it s by design . If you want to get rid of the warning I suggest yo cast the socket :", "Question : Is there a way to obtain siginfo t struct when handling signals with kqueue On Linux when handling signal with epoll similar struct signalfd siginfo is obtained by simply reading from signalfd .. . Answer : It s unfortunately not possible . Signal delivery notifications via kqueue occurs after the process itself has already reacted to the signal i.e . they are a post-delivery notification rather than an in-delivery notification . If the process receives multiple signals between calls to kevent then all the system does is aggregate the number of times the signal has been delivered in the data field of the kevent structure . This means that there s no way to obtain the signal information as by the time you ve called the kevent data the signal has already been delivered to the process and the signal details have been discarded . There is no internal mechanism that keeps a record of the underlying signal information which could be delivered by the kevent . I was reading some of the big nerd ranch book which seems to indicate that the kqueue handling for signals would not occur if there was a handler registered for the process . This does not appear to be the behaviour on Yosemite you receive the event for signals even if there is a handler registered using either sigaction or signal .", "Question : null .. . Answer : I ve got a kqueue watching a single item : an empty Mach port set . kevent64 says there are no events available and select indicates the kqueue is not ready for reading . But poll says the kqueue is readable - though this doesn t appear to be the case-when subsequently calling kevent64 to read the supposedly ready event s . The code I m using is below . You can build it with something like gcc -Wall -std c99 -o test test.c and then run it with . test or whatever . It prints out return values from kevent64 count of events actually retrieved after an attempt was made to read 1 without waiting select count of file descriptors ready for reading after polling and poll count of file descriptors ready for reading after polling . The output I d expect would be something like this indicating that kevent64 select and poll all agree that the kqueue is empty . But what I actually get is this showing that kevent64 and select say one thing and poll another - and furthermore that even after poll has indicated the kqueue is readable kevent64 still says there is no event to be read this being the reason for the second kevent64 call . The 1 value for revents is POLLIN indicating supposedly that data may be read without blocking . The result is the same if I specify POLLRDNORM and POLLRDBAND independently . Why the discrepancy My test code :", "Question : I have FreeBSD and a very large directory structure with 10TiB of small files . I want to monitor and if a new file is created or modified react to this event somehow . I have tried to monitor it using by kqueue but it is require to open every directory and file so it makes impossible to watch my data . It s even doesn t start to watch actually after a few hours . What another ways does exist to watch large directory structures on FreeBSD Does Linux handle such amount of data using inotify Thanks for any suggestions Comment : Could this question answers http : apple.stackexchange.com questions 40705 monitor-a-folder-for-changes-and-run-a-command-when-a-change-is-detected be a solution for your situation Launchd is ported to FreeBSD . .. . Answer : Please have a look at usr ports devel fam the File Alteration Monitor which provides an API which applications can use to be notified when specific files or directories are changed .", "Question : Python Epoll has function called epoll.unregister which removes a registered file-descriptor from the epoll object . Does any one know what is the function in Kqueue which is similar this . For kqueue I could only find how to delete events . .. . Answer : You use kqueue.control to register or unregister an event . An example : .. . .. . You could also check the test case http : hg.python.org cpython file tip Lib test test kqueue.py for kqueue to see how it s used . And like select the file-descriptor could be any Python objects with a fileno method as well . Comment : Wow thats exactly what I was looking for . Thank you kenny", "Question : I have used kquque to monitor desktop with : .. . .. . flags - EV ADD EV CLEAR .. . fflags - NOTE DELETE NOTE WRITE NOTE EXTEND NOTE ATTRIB NOTE LINK NOTE RENAME NOTE REVOKE .. . filter - EVFILT VNODE .. . .. . However when I edit a .js file on desktop with sublime2 software it doesnt trigger a notification : .. . .. . Please advise .. . .. . Here is my js-ctypes code : Comment : Well that should work probably you did something wrong in the code you haven t shown us . So show us the code . Comment : Yeah I ve had similar problems with using bridge FFI libraries first you figure out how to write your code from documentation and sample code written for C or C++ or ObjC or whatever and then when you have a problem you have to translate it all back before a relevant expert can understand it . If you can create an MCVE http : stackoverflow.com help mcve in C it would help if you can t just post one in JS . Comment : No never mind The point I was going to make is that most editors don t actually overwrite your file they instead write a temp file and then rename it over your original so you re not going to get a contents-modified notification . But you should still get an unlink notification NOTE DELETE which you don t seem to have missed and you re not getting that either . Comment : You may want to test doing similar things outside of Sublime e.g . cp myfile tmpfile mv myfile thefile and make sure that triggers NOTE DELETE on myfile . Comment : What gets written to the console both the JavaScript console and the system-console log In what context is this running e.g . a browser Could there be a sandboxing issue .. . Answer : I just realized that you re not monitoring the .js file you re monitoring its directory . That makes everything a lot less mysterious . The short version is : If you open a file and write it that doesn t change anything on the directory . If you atomically save a file that does change the directory but Sublime 2 doesn t atomically save by default . So to watch for any changes to any file in the directory you need to enumerate all files in the directory and add them all to the kqueue as well as the directory . Watching the directory will catch atomic saves and new files being created watching the files will catch overwrites . Files being unlinked will trigger both . If you re worried about performance well kqueue is designed to handle switching on 10000 file descriptors and neither UFS nor HFS+ is a good filesystem for hundreds of thousands of directory entries in the same directory so you re probably OK but you may want to add some code that warns or aborts if the directory turns out to be massively huge . .. . .. . If you want to understand why this is necessary you have to think about how the two different kinds of saves work . A write just writes to a file-descriptor . That file-descriptor could have one directory entry link on the filesystem but it could just as easily have none e.g . it was created in a temporary namespace or you just unlinked the file after creating it or many e.g . you ve created hard links to it . So it can t actually update the directory entry for the file because there is no such thing . An atomic save on the other hand works by creating a new temporary file writing to that and then rename -ing the temporary over the original file . That rename has to update the directory replacing the entry pointing at the old file with an entry pointing at the new file . Of course it also sends a DELETE notification for the file itself because the file is losing a link . And you ll also usually sends an ATTRIB because most apps want the new file to have the same extended attributes extra forks etc . .. . .. . There is an obvious race-condition here : if a file is moved or deleted between the readdir and adding it to the kqueue you ll get an error . You may want to handle that error by generating an immediate notification or maybe you just want to ignore it after all from the user perspective it s not much different from the case where someone deletes a file between the time your program starts and the time you do the readdir . Comment : I think that claiming that kqueue is designed to handle switching on tens of thousands of file descriptors is an exaggeration . There s a limit on the number of file descriptors a process can have open and it s probably not multiple tens of thousands . On OS X it s 10240 . Also if you re watching a whole hierarchy of files you need to start and stop watching as files are added to and removed from the hierarchy which is non-trivial to do efficiently . Comment : @KenThomases OK you re right it was designed for 10000 not 10s of thousands edited . Anyway I m betting he s interested in watching directories of around 100 files and he can just raise a warning if the directory is bigger than expected as I said . Comment : @KenThomases For the rest : I don t think he wants to watch a whole hierarchy just a flat directory . And it s non-trivial to do in the first place but the obvious way to do it is efficient enough . At any rate what other option does he have if he wants to write code that works on FreeBSD and OS X Either require a wrapper or gamin-style server or kqueue up the whole directory himself . Comment : Thank you for such an awesome reply Yep diretory is less than 100 files typically but it s API other users might have more so thanks very much for this . I think I ll just tell users of the API if they want to watch a file for overwriting they should specifically add a watch for it . Comment : @Noitidart : If you re building something for general-purpose use you may want to look at one of the existing wrappers which give you an FSEvents -like interface on top of whatever the OS provides on everything from FreeBSD to pre- inotify linux to Windows in the most efficient way possible which includes doing things like using a daemon process and subprocesses to manage all the kqueue fd s instead of making each client do it . I don t know the current state of the art for such wrappers but it s worth looking into rather than reinventing the wheel .", "Question : I am running into an issue spawning a large number of processes 200 under MacOS X Mountain Lion though I m sure this issue is not version specific . What I am doing is launching processes in my test it is bin cat which have their STDIN STDOUT and STDERR connected to pipes -- the other end of which is the spawning parent process . The parent process writes data into the STDIN of the processes which is piped to the bin cat child processes which in turn spit the data back out of STDOUT and is read by the parent process . bin cat is just used for testing . I am actually using kqueue to be notified when there is space available in the STDIN pipe . When kqueue notifies you with a EVFILT WRITE event that space is available the event also tells you exactly how many bytes can be written without blocking . This all works well and I can easily spawn 100 child bin cat processes and everything flows through the pipes without blocking all day long . However when I crank up the number of processes to 200 everything grinds to a halt when the single kqueue service thread blocks on a write call to one of the STDIN pipes . The event says that there is 16384 bytes available basically an empty pipe but when the program tries to write exactly 16384 bytes into the pipe the write blocks anyway . Initially I thought I was running into a max . open files issue but I ve jacked up the ulimit for open files to 8192 so that is not the issue . What I have discovered from some googling is that on OS X STDIN STDOUT STDERR are not in fact files or pipes but are actually devices . When the process is hung running lsof on the command-line also hangs with a warning about not being able to stat the file system : .. . .. . As soon as I kill the process lsof completes . This reinforces the notion that STDIN OUT ERR are in fact devices and I m running into some kind of limit . Does anyone have an idea of what limit I am running into for example is there a limit on the number of device that can be created Can this be increased somehow .. . Answer : Just to answer my own question here . This appears to be related to how MacOS X will dynamically expand a pipe from 16K to 32K to 64K and so on . My basic workaround was to prevent the pipe from expanding . It appears that whenever you fill the pipe completely the OS will expand it . So when the kqueue triggers that I can write into the pipe and indicates that I have 16384 bytes available to write I simply write 16384 - 1 bytes . Basically whatever it tells me I have available I write at most available - 1 bytes . This prevents the pipe from expanding and is preventing my code from encountering the condition where a write to the pipe would block even though the pipe is non-blocking .", "Question : I recently did some testing with kernel events and I came up with the following : .. . .. . Does it make sense to use a kernel event for accepting sockets My testing showed that I was only able to handle one accept at once even if the eventlist array is bigger Makes sense to me cause .ident sockfd is only true for one socket . I thought the use of kevent is mainly to read from multiple sockets at once . Is that true Is this how a TCP server is done with a kqueue implementation : .. . .. . .. . .. . Listening Thread without kqueue .. . Accepts new connections and adds FD to a worker kqueue . QUESTION : Is this even possible My testing showed yes but is it guaranteed that the worker thread will be aware of the changes and is kevent really thread safe .. . .. . Worker thread with kqueue .. . .. . Waits on reads on file descriptors added from the listening thread . QUESTION : How many sockets at once would make sense to check for updates .. . .. . Thanks .. . Answer : Normally you use kqueue as an alternative to threads . If you re going to use threads you can just set up a listening thread and a worker threadpool with one thread per accepted connection . That s a much simpler programming model . In an event-driven framework you would put both the listening socket and all the accepted sockets into the kqueue and then handle events as they occur . When you accept a socket you add it to the kqueue and when a socket handler finishes it works it could remove the socket from the kqueue . The latter is not normally necessary because closing a fd automatically removes any associated events from any kqueue . Note that every event registered with a kqueue has a void userdata which can be used to identify the desired action when the event fires . So it s not necessary that every event queue have a unique event handler in fact it is common to have a variety of handlers . For example you might also want to handle a control channel set up through a named pipe . Hybrid event thread models are certainly possible otherwise you cannot take advantage of multicore CPUs . One possible strategy is to use the event queue as a dispatcher in a producer-consumer model . The queue handler would directly handle events on the listening socket accepting the connection and adding the accepted fd into the event queue . When a client connection event occurs the event would be posted into the workqueue for later handling . It s also possible to have multiple workqueues one per thread and have the accepter guess which workqueue a new connection should be placed in presumably on the basis of that thread s current load . Comment : First of all thank you for your explanation . I understand but my testing showed that the server then cannot accept multiple connections at once : and I m quite unsure if reading writing and listening in the same thread makes much sense . For example on a client read I need to parse the packet then do some mysql queries and then create a response in this time no client could connect to my server.. . so is it really done this way Comment : @d3l : Then you are doing something wrong : Perhaps you need to ask a different question with a minimal compilable example . Comment : I made a little example explaining the problem . Greetings Comment : @rici I liked the question I have asked a similar question just now myself . But the question that I think your answer addressed is - can multiple threads add file descriptors to the kqueue are kqueues thread safe If so how would one go about doing this Also if OP was able to find a way to do this could he she share it with me Comment : @rici A clarification to the above comment . I do not want to create a circular dependance with the kqueue module and the TCP logic . I wanted to do this in a manner that would have them both be separate entities . If I used what you said about the accept call adding the file-descriptor to the kqueue then that logic will have to be added to the kqueue module", "Question : From the Kqueue Wikipedia Page http : en.wikipedia.org wiki Kqueue : .. . .. . Kqueue provides efficient input and output event pipelines between the kernel and userland . Thus it is possible to modify event filters as well as receive pending events while using only a single system call to kevent 2 per main event-loop iteration . This contrasts with older traditional polling system calls such as poll 2 and select 2 which are less efficient especially when polling for events on a large number of file descriptors .. . .. . That sounds great . I target FreeBSD for my server and I m handling a significant amount of network socket fd s - using a select on them all and figuring out who to read data from . I d rather use kevent calls to get higher performance since that s what it s there for I ve read the man page for kevent on FreeBSD here http : www.gsp.com cgi-bin man.cgi section 2 topic kevent but it s cryptic to me and I m not finding good resources that explain it . An example of using kevent to replace select would solve my problem and would also help me get a better idea of how kevent is used . .. . Answer : What you do normally is use libevent http : www.monkey.org provos libevent which takes care of all the details for you and also means that you can move your program on to another OS which has a different scheme e.g . Linux and epoll for doing something similar . Comment : But I already do all the things this lib does that I care about other than using kevent for checking whether I read from fds or not . I wouldn t want to rewrite my codebase to use this lib just for that although if I was starting maybe I would . Also I cringe at something hosted at monkey.org Comment : Then perhaps libev is better for you freshmeat.net projects libev http : freshmeat.net projects libev Comment : Definitely wouldn t want a superset either Although I can look at these pieces of software and pull the answer together I guess but this is really not addressing the original question Comment : @Nektarios : Sure it does answer it . If you use one of those libraries on a BSD system it ll use kevent and not select ." ] }
[ "yes-answer-long", "yes-answer-short" ]
openbsd
UNK_RELATION
signalr-hub@rpc@44
signalr-hub -- hubs provide a higher level @placeholder framework over a persistentconnection .
{ "confidence": [ 45.744380950927734, 45.6493034362793, 44.24150466918945, 42.597068786621094, 41.48138427734375, 41.351531982421875, 41.294410705566406, 40.78236770629883, 40.620750427246094, 40.59889602661133, 40.54478454589844, 40.503990173339844, 40.26615905761719, 40.221858978271484, 39.52882385253906, 39.25775909423828, 39.13978576660156, 39.13317108154297, 38.863059997558594, 38.773311614990234, 38.6424560546875, 38.6424560546875, 37.79151153564453, 37.79151153564453, 37.5471076965332, 37.52959442138672, 37.11753845214844, 36.97583770751953, 36.832096099853516, 36.81169891357422, 36.81169891357422, 36.80387878417969, 36.78253936767578, 36.78253936767578, 36.264625549316406, 36.20798110961914, 35.543365478515625, 35.244224548339844, 35.187992095947266, 35.12554931640625, 35.12554931640625, 35.12554931640625, 35.111427307128906, 35.063411712646484, 35.006404876708984, 34.82151794433594, 34.82151794433594, 34.79765319824219, 34.62821960449219, 34.5936393737793, 34.48533248901367, 34.48533248901367, 34.48533248901367, 34.30387878417969, 34.12522888183594, 34.09258270263672, 33.907814025878906, 33.49851989746094, 33.49851989746094, 33.49851989746094, 33.49851989746094, 33.49851989746094, 33.49851989746094, 33.49851989746094, 33.49851989746094, 33.38904571533203, 33.38904571533203, 33.32807540893555, 33.32807540893555, 33.26350402832031, 33.089012145996094, 32.893043518066406, 32.884742736816406, 32.85208511352539, 32.85208511352539, 32.85208511352539, 32.85208511352539, 32.85208511352539, 32.85208511352539, 32.778846740722656, 32.60737609863281, 32.541568756103516, 32.423545837402344, 32.4138069152832, 32.39908218383789, 32.29439926147461, 32.29210662841797, 32.10110092163086, 32.089569091796875, 31.938261032104492, 31.897499084472656, 31.808837890625, 31.701045989990234, 31.701045989990234, 31.701045989990234, 31.701045989990234, 31.475566864013672, 31.173755645751953, 31.173755645751953, 31.173755645751953 ], "content": [ "github.com SignalR SignalR wiki Hubs https : github.com SignalR SignalR wiki Hubs", "Take a look at this example https : github.com SignalR SignalR wiki PersistentConnection .", "My Hub URl is like this http : localhost signalr signalr hubs .. . .. . Steps to add signalr in client .. . .. . 1 .", "Certainly this is the approach recommended in the documentation here : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs", "Do not include the signalr hubs in your BundleConfig.cs .", "Try enabling detailed errors : asp.net signalr overview signalr-20 hubs-api http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-javascript-client handleerrors", "All hubs are in signalr hubs without reference to folders .", "github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs- 28No-Proxy 29", "SignalR Hub C .. . .. . In Android", "The path it is generating is HostingCenterStatus signalr hubs which sends the request to subdomain.domain.com HostingCenterStatus signalr hubs http : subdomain.domain.com HostingCenterStatus signalr hubs and it returns a 404 error .", "I was looking at this one github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs- 28No-Proxy 29", "SignalR Server using Owin Self Host .. . .. . Signalr Client Console Application consuming Signalr Hubs .", "The only way to interact with a SignalR hub from the outside is to actually get an instance of an IHubContext that represents the hub from the SignalR runtime .", "You need to use GetHubContext : .. . .. . This is described in more detail at http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server callfromoutsidehub .", ".connection.hub is created in the signalr hubs inclusion .", "Today I was writing a test hub and client with SignalR .", "The dynamically generated hubs js file was actually not created until I properly referenced signalr hubs", "Instead you can override OnConnection on your Hub class : .. . .. . Docs on Hub Object Lifetime http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server transience : .. . .. . You don t instantiate the Hub class or call its methods from your own code on the server all that is done for you by the SignalR Hubs pipeline .", "Typically SignalR hubs are ephemeral meaning that they get created and destroyed for each Hub method invocation .", "SignalR subscribes to the hubs you have event handlers for when the hubConnection starts .", "Follow http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server for changes .", "I was facing a similar issue I just changed the signalr hubs to virtualDirectoryName signalr hubs and it worked .", "When using SignalR hubs http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server you can use the HubCallerContext.User property to : .. . .. . Gets the user that was part of the initial http-request .", "I would suggest adding it to the ASP.NET SignalR Hubs API Guide - JavaScript Client http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-javascript-client", "The documentation on calling client methods from outside the hub asp.net signalr overview signalr-20 hubs-api http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server callfromoutsidehub says nothing about that .", "I have 2 SignalR Hubs : .. . .. . 1 .", "I use SignalR Hub for chat .", "The problem is not with SignalR but with your database polling living inside your hubs .", "Hubs .. . .. . You should do authentication as you normally would and then use the Authorize attribute provided by SignalR to enforce the results of the authentication on the Hubs .", "I m hosting my signalr-hub on a separate domain and making cross-domain connection to hub from my main application .", "So I want to send data to my cloud db server via signalR which is using a hub and the hub methods .", "In our SignalR Hub we need to access the database on Disconnect .", "SignalR creates the JavaScript code for the proxy on the fly and serves it to the client in response to the signalr hubs URL .", "This is what I have : .. . .. . Is there a way I can create a shim here to establish the dependency between signalr hubs and the signalr script", "My hub is declared like so : .. . .. . and then in my Startup.cs file for my Web API I initialize SignalR like this : .. . .. . For my client-side code I use an Angular SignalR API called angular-signalr-hub Angular-signalr-hub https : github.com JustMaier angular-signalr-hub .", "I m having trouble getting SignalR server-side Hub code to invoke JS client methods .", "signalr hubs is not a physical file it s a dynamically generated JavaScript code http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-javascript-client dynamicproxy .", "There is very clear guidance in SignalR documentation http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-server asyncmethods about it : Making a Hub method asynchronous avoids blocking the connection when it uses the WebSocket transport .", "There s an example in the documentation http : www.asp.net signalr overview hubs-api hubs-api-guide-server callfromoutsidehub .", "Note this only affects the use of session from within your SignalR classes Hubs etc .", "You can try with script type text javascript src @Url.Content signalr hubs script", "You can have the JQuery.SignalR in the bundle : .. . .. . But you will need to add signalr hubs it in your view : .. . .. . I hope this helps .", "A signal can be a connection id group name user name PersistentConnection name for when you call Connection.Broadcast and Hub name for when you call Clients.All .", "SignalR does not provide any additional features for authentication .", "Note : - It is not mandatory to 2 Mac will be always connected to SignalR Hub .", "Just small note regarding using async on server in SignalR hubs .", "Instead it uses an IAssemblyLocator to find available assemblies that might contain SignalR Hubs .", "I have created hub proxy for all hubs at one places and using when required in future .", "From the wiki https : github.com SignalR SignalR wiki Hubs you can now use :", "You ll notice that if you run signalr ghp path : myassembly.dll against the dll containing the hub with the generic SendDataToClient method you ll get the following error : .. . .. . It s easier to see this error when using the signalr ghp http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-javascript-client manualproxy command to generate a JavaScript hub proxy file but this is the same error that is occurring on the server when you try to invoke SendDataToClient .", "An excellent and official explanation is also here http : www.asp.net signalr overview signalr-20 hubs-api handling-connection-lifetime-events .", "In javascript it is done like so : .. . .. . This is the recommended approach in the documentation : .. . .. . http : www.asp.net signalr overview signalr-20 hubs-api handling-connection-lifetime-events clientdisconnect", "Code : .. . .. . I m using the In-memory http : www.asp.net signalr overview signalr-20 hubs-api mapping-users-to-connections inmemory approach to groupings .", "I noticed that my pages that reference signalr hubs were GETting localhost : 1234 signalr hubs and generated content was initializing path to signalr instead of MyWeb signalr .", "github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs- 28No-Proxy 29 provides more documentation on creating your own hubConnection s", "I ve read the documentation http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-net-client and several articles about the lifetime of SignalR connections but I m still unclear on how to handle the client reconnect .", ".. . - from ASP.NET SignalR Hubs API Guide - JavaScript Client http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-javascript-client clientsetup .. . .. . Your problem is that somehow the order in what you are loading the references is wrong .", "Currently i do not have access to the SignalR Server i am just connecting to a hub provided by my customer .", "This issue definitely seems to be because of many connections conversing at the same time to the Signalr core code via Hub .", "is it possible to directly send data back into SignalR Hub from the front end JS JQ im working with lists and monitoring .", "Problem : The connection between my client UWP cannot connect to the hub which is published on the internet signalR .", "I am using the angular-signalr-hub package and am having some issues .", "Hi had a similar problem as I needed to identify non-authenticated visitors to my application to personalise their requests to the SignalR hub .", "There is much plumbing provided around a Hub class by the SignalR runtime that you are bypassing by using it as a plain-old class like that .", "I would need some guidelines from SignalR developers what is the best way to tweak HUB method s parameters serialization .", "I replaced script src signalr hubs script with script src signalr hubs script I removed the leading slash to make it a relative-path instead of a rooted path .", "As per the documentation here http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server groupsfromhub I can join it client-side via : .. . .. . Is there a way to assign the group from the controller", "I have a web app that uses SignalR with Redis scale-out allegedly and hubs and that works fine .", "I m having a little trouble making sure signalr hubs is called after jquery.signalR-1.1.2 loads .", "github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-with-Redis-Running-on-a-Windows-Azure-Virtual-Machine", "I get that SignalR doesn t provide built-in authentication which is fine .", "I m getting error 404 when I access signalr hubs url on a web app deployed on IIS 6 winSrv 2003 r2 .", "What s the best way to have a top level exception handler for my Hub", "is there any way to get current signalR request user outside the hub", "How do you connect to a signalR Hub from a web role", "I ve set up a SignalR hub to communicate between the server and client .", "Is there a recommended approach to sharing a SignalR hub across two applications", "By default SignalR does not register each hub with the dependency resolver .", "But how do you register a dependency for a signalr-hub like below", "Context.User.Identity.GetUserId and Context.User.Identity.Name are returning null in AppHub.cs Hub in signalR .", "One reason for this is that there can be many Hubs in an application but you wouldn t want to trigger the OnConnected event on every Hub if you are only going to use to one of them .", ".. . .. . script src Scripts jquery-1.10.2.min.js script .. . script src Scripts jquery.signalR-2.1.0.min.js script .. . script src signalr hubs script .. . .. . .. . These references must be included in this order : jQuery first SignalR core after that and SignalR proxies last .", "We are facing a similar issue like this https : github.com SignalR SignalR issues 3353 .. . .. . When we start our application after a while all the users connected to the hub start getting reconnecting issues .", "https : github.com SignalR SignalR issues 548 .. . .. . https : github.com SignalR SignalR commit 83fdbfd9baa1f1cc3399d7f210cb062597c8084c .. . .. . Example implementation :", "Having multiple hubs is not suggested .", "One way for my MVC controllers and another way for my SignalR Hubs", "You can still use the on method to add events for JS client hub method calls in the latest version of SignalR but if you do not add any event-listeners to a hubProxy before calling hubConnection.start you will not be subscribed to the hub .", "BUT when I enter localhost : 1234 MyWeb signalr hubs - generated content connection URL is MyWeb signalr .", "github.com SignalR SignalR wiki Configuring-SignalR https : github.com SignalR SignalR wiki Configuring-SignalR", "This does not mean that they should be down-voted as they were correct at the time of writing .. . .. . There is another updated answer for this as seen in the SignalR Wiki http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server .. . .. . c .. . .. . vb.net .. . .. . Update .. . .. . This code has been updated .", "In your hub you re sending to clients via the hubs context .", "I m hoping for a solution to the in-memory problem though instead of re-architect away from a recommended approach http : www.asp.net signalr overview signalr-20 hubs-api mapping-users-to-connections inmemory that s already implemented .", "I ve started working with SignalR and was trying to figure out when a Hub Reconnect occurs .", "16 : 37 : 25 GMT-0600 Central Standard Time SignalR : Client subscribed to hub myhub .", "Error from subscribing to errors on the hub SignalR error : Error : No transport could be initialized successfully .", "I checked the signalR documentation it says we need to have at least one method for hub before connection start .", "After the commandSent function is called from the server-side the Client calls server s onCommandReceived function which sends a receipt straight away to the SignalR Hub .", "Do you get a 404 error when you navigate to the signalr hubs url", "Yes i installed using Nuget and i get 404 error while navigating to signalr hubs .", "@PCasagrande I assume your application is hosted in a virtual-directory so the correct path would be appname signalr hubs ." ] }
{ "confidence": [ 55.27248764038086, 54.491722106933594, 54.365570068359375, 53.898956298828125, 53.854610443115234, 53.77833557128906, 53.47383499145508, 53.282257080078125, 52.839508056640625, 52.629058837890625, 52.54207992553711, 52.14142990112305, 52.06718444824219, 51.67720413208008, 51.58030700683594, 51.01599884033203, 50.89902114868164, 50.89902114868164, 50.86823272705078, 50.29518127441406 ], "content": [ "Question : I am using SignalR to broadcast messages to all my clients . I need to trigger the broadcasting outside of my hub class i.e . something like below : .. . .. . var broadcast new chatHub broadcast.Send Admin stop the chat .. . .. . I am getting error message as : .. . .. . Using a Hub instance not created by the HubPipeline is unsupported . .. . Answer : You need to use GetHubContext : .. . .. . This is described in more detail at http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server callfromoutsidehub . Comment : context.Clients.All.Send does not broadcast back to the caller only to the others . any ideas Comment : If you are using GetHubContext there is no caller as this is meant to be used outside of a Hub . Clients.All should address every client that is currently connected to the Hub . Comment : Are you sure this works for self-hosted SignalR instances as well Comment : GetHubContext works when SignalR is self-hosted . Comment : I have the same code but the method Send or any other method would not be called .", "Question : I have a Web Forms application and testing to see how SignalR works for one of my requirement . My hub code : .. . .. . My Client call : .. . .. . But for some reason when examined the Context on the server code in hub it is null so I cannot retrieve the querystring value . Any ideas .. . Answer : I don t believe the Context is available at the point the Hub is created . Instead you can override OnConnection on your Hub class : .. . .. . Docs on Hub Object Lifetime http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server transience : .. . .. . You don t instantiate the Hub class or call its methods from your own code on the server all that is done for you by the SignalR Hubs pipeline . SignalR creates a new instance of your Hub class each time it needs to handle a Hub operation such as when a client connects disconnects or makes a method call to the server . .. . Because instances of the Hub class are transient you can t use them to maintain state from one method call to the next . Each time the server receives a method call from a client a new instance of your Hub class processes the message . To maintain state through multiple connections and method calls use some other method such as a database or a static variable on the Hub class or a different class that does not derive from Hub . If you persist data in memory using a method such as a static variable on the Hub class the data will be lost when the app domain recycles . Comment : notificationsHub.server.setValue 12345 on client this gives me an error . notificationsHub is undefined Comment : You ve called your hub notificationHub not notificationsHub that s probably why . I ve updated my answer with how you can retrieve the querystring value . Comment : You are correct . The Context will be null by the time it exits OnConnected . I was able to retrieve the Query String value in the override .", "Question : I m looking for some guidance on how to implement authorization security for SignalR on a back end service running in a self-hosted non-IIS environment that is called from a Web application . The backend app is basically a monitor that fires SignalR events back to the HTML based client . This all works fine amazingly well actually . However we need to restrict access to the server for authenticated users from the Web site . So basically if a user is authenticated on the Web site we need to somehow pick up the crendentials user name is enough and validation state in the backend app to decide whether to allow the connection as to avoid unauthorized access . Can anybody point at some strategies or patterns on how to accomplish this sort of auth forwarding Comment : I ve implemented token based security by passing a generated user token with each SignalR request via query-string ie . .connection.hub.qs . The client gens the key that cross-refs a user and on the server I pick up the token and then load up the user from the cross ref . It works but it s pretty ugly plus I can t figure out how to cleanly enforce the security short of calling a ValidateToken method that throws on error . Comment : Any update on this Have you found a better way to do it yet I m encountering the exact same situation . .. . Answer : SignalR does not provide any additional features for authentication . Instead it is designed to work with the authentication mechanism of your application . Hubs .. . .. . You should do authentication as you normally would and then use the Authorize attribute provided by SignalR to enforce the results of the authentication on the Hubs . The Authorize attribute can be applied to an entire Hub or particular methods in the Hub . Some examples : .. . .. . Authorize only authenticated users .. . Authorize Roles Admin Manager only authenticated users in the specified .NET roles .. . Authorize Users user1 user2 only authenticated users with the specified user names .. . .. . You can also require all Hubs to require authentication by adding the following method in the Application Start method : .. . .. . GlobalHost.HubPipeline.RequireAuthentication .. . .. . Persistent Connections .. . .. . You can use the user object in the request to see if the user is authenticated : .. . .. . request.User.IsAuthenticated Comment : I m not using ASP.NET to host this SignalR service so I don t think this works since there s no ASP.NET security or Identity to check . I get that SignalR doesn t provide built-in authentication which is fine . What I m asking for ideas on how to pass the security context across apps and then how to generically handle the authentication without having to pepper calls to validate security in each hub method .", "Question : I m creating a Hub class for my SignalR server and wanted to use a generic method which will save me from tons of lines-of-code . But SignalR is giving me errors when I try to Invoke the server code below from a Xamarin.iOS client which also in C . Server Code .. . .. . Client Code .. . .. . Am I doing something wrong here or is it just impossible to use generic methods in SignalR Hubs .. . Answer : You cannot invoke generic methods from SignalR clients . You ll notice that if you run signalr ghp path : myassembly.dll against the dll containing the hub with the generic SendDataToClient method you ll get the following error : .. . .. . It s easier to see this error when using the signalr ghp http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-javascript-client manualproxy command to generate a JavaScript hub proxy file but this is the same error that is occurring on the server when you try to invoke SendDataToClient . Comment : Thank you for clearance . So now I have to ask what would you recommend instead of this Writing a function to hub for each different type of data Comment : That s the most straightforward approach .", "Question : By default there are a default of 1 000 messages stored in the ring buffer on the server . It doesn t make sense for me to send a lagging client 1 000 updates but rather just the most recent update . In WCF I can do this by using volatile data . I suppose I can emulate a volatile approach by reducing the buffer to 1 but not sure if this can be configured on a per hub basis or ideally on a per method basis . Does it matter if I use hubs or persistent connections with this .. . Answer : Even if you set the DefaultMessageBufferSize https : www.google.com webhp sourceid chrome-instant rlz 1C1CHFX enUS563US563 ion 1 espv 2 ie UTF-8 q defaultmessagebuffersize to 1 SignalR ensures each buffer will hold at least 32 messages . The primary purpose of this minimum buffer size is to ensure that SignalR s long-polling transport works somewhat reliably . If the buffer size was actually 1 a client connected via long-polling would be very likely to miss messages between polls . I understand that there are some applications where only the last message matters . Unfortantely as of now SignalR does not have a volitile messaging configuration . Setting the buffer size to 32 is about as good as it gets . At least the client shouldn t lag too far behind with that small of a buffer size . You are correct in assuming that there are multiple buffers but buffer sizes cannot be configured individually . SignalR creates one ring buffer per signal . A signal can be a connection id group name user name PersistentConnection name for when you call Connection.Broadcast and Hub name for when you call Clients.All . If you use Clients.All inside of multiple methods in a single hub all those calls will end up in a single buffer . EDIT : If you want to configure another SignalR endpoint with different settings inside of the same application you can do the following : Comment : How do I configure this on a per signal basis Comment : You cannot configure buffer sizes per signal . At best you could map two SignalR endpoints with different DefaultMessageBufferSize s but that would require an extra concurrent connection per client . Comment : OK I ll try to configure two endpoints . I m assuming I can do this on the same machine . Is GlobalHost.Configuration.DefaultMessageBufferSize a singleton How can I configure other endpoints on the same machine Comment : GlobalHost.Configuration is implemented as return GlobalHost.DependencyResolver.Resolve IConfigurationManager . If you pass your own resolver in via the HubConfiguration GlobalHost will not be used .", "Question : I m just starting out with SignalR and have created a custom resolver for SignalR so I can use Castle Windsor to inject dependencies via hub constructors . I kind of assumed that I would only need to register the dependencies but I found that it was also necessary to register the hubs themselves before my app would work . Is this expected If so what lifetime should I use for hubs Comment : I had a similar question here : stackoverflow.com q 21967542 1053381 http : stackoverflow.com q 21967542 1053381 .. . Answer : By default SignalR does not register each hub with the dependency resolver . Instead it uses an IAssemblyLocator to find available assemblies that might contain SignalR Hubs . Then the IHubDescriptorProvider searches through all the available assemblies for Hubs and creates HubDescriptor s . Lastly the IHubActivator takes a HubDescriptor and returns a newly instantiated SignalR hub using Activator.CreateInstance unless the Hub type associated with the HubDescriptor has been registered with the dependency resolver . In the latter case the Hub returned from the IHubActivator will be taken directly from the dependency resolver . Typically SignalR hubs are ephemeral meaning that they get created and destroyed for each Hub method invocation . This means that if you register your Hub with SignalR s dependency resolver you should make sure that a new Hub instance is returned each time SignalR resolves the Hub type . I strongly advise against registering a singleton Hub for several reasons : .. . .. . 1 . Hub methods can be called in parallel . When this happens Hub.Context can be overridden as part of the setup for another method call . This can lead to really subtle bugs . For example with a singleton Hub the following code might add a connection other than the caller to a group which could obviously be a big security issue : .. . .. . Authorize Roles Admin .. . public async Task JoinAdminGroup .. . .. . await Groups.Add Context.ConnectionId admin .. . .. . .. . .. . 2 . Hub.Dispose will be called after each activation . If you keep returning the same Hub it s Dispose method will be repeatedly called . This probably won t affect you unless you implement Dispose on your Hubs since the default Dispose implementation currently no-ops . 3 . IIS recycles AppDomains . When this happens you will be forced to reinstantiate your Hub anyway . Remember SignalR will automatically reestablish active connections after your app becomes unavailable for a short period of time as is the case with an AppDomain recycle so you can very well have a newly instantiated Hub dealing with pre-existing connections even if you register your Hub as a Singleton with the dependency resolver . https : github.com SignalR SignalR blob 2.0.1 src Microsoft.AspNet.SignalR.Core DefaultDependencyResolver.cs L79 Comment : Useful answer thanks . I guess Transient would be a better choice then I suppose I shouldn t be surprised that hubs are created destroyed for each method call as the web is stateless by nature . My service is self-hosted rather than IIS btw but I don t suppose that shouldn t make a difference .", "Question : I seem to have an issue with SignalR s JS Client Hub . The problem is that the on handler does not seem to work - it generates no error but doesn t receive any signals sent by the server . The code below shows an extract where I call the server using the invoke which works fine - then on the server I call back to acceptHubData which should be picked up on the client but isn t . My objective is when navigating to pages that each page will open a connection to a specific hub and releases this connection when the user moves to another page EDIT : using the following code snippet works but I wonder why the code further below using the on event doesn t work Any help would be much appreciated This is the client code in js .. . .. . This is the Server code : .. . Answer : Not sure which version of SignalR you are using but I have had more success using the following syntax on my server : .. . .. . and on my clients : Comment : thanks for the response - that is working indeed - I would like to understand why the on event principle isn t working - see my edit Comment : potentially you might be looking at documentation for an older version of signalr . Certainly this is the approach recommended in the documentation here : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs Comment : I was looking at this one github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs- 28No-Proxy 29", "Question : I have a Hub class which has a long running method I need to display a progress-bar while it s working . I read this article http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-server progress and I think it is possible to use IProgress interface in async methods to send long running operation status . I write a method like this : .. . .. . And I try to invoke the method like this : .. . .. . But I don t know how can I get the progress reports . Comment : Hi You have to create the instance on the IProgress on the client and give it to the getServerTime function . Then you register to the event on the IProgress on the client to do your stuff Comment : Thanks how can I create an instance on the client .. . Answer : You can use progress http : api.jquery.com deferred.progress as such : .. . .. . On a side note there s no point in using Task.Run over CPU-bound code on the server-side . Your server-side code could just as easily be : .. . .. . Your server-side methods should only be async if they have true asynchronous work to do usually I O-bound operations . As a general rule avoid Task.Run on the server-side . Comment : At first I got an error saying progress method is an undefined type then I replaced jquery 1.6.4 which I was using with jquery 1.11.1 so now it works thanks @Stephen Cleary : Comment : Same idea as @Stephen Cleary recommended in a sample by DamianEdwards SignalR-2.x-demo github.com DamianEdwards SignalR-2.x-demo blob master SignalR2x https : github.com DamianEdwards SignalR-2.x-demo blob master SignalR2x Web HubProgress index.cshtml Comment : Just small note regarding using async on server in SignalR hubs . There is very clear guidance in SignalR documentation http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-server asyncmethods about it : Making a Hub method asynchronous avoids blocking the connection when it uses the WebSocket transport . When a Hub method executes synchronously and the transport is WebSocket subsequent invocations of methods on the Hub from the same client are blocked until the Hub method completes .", "Question : I am using the hub- feature of SignalR https : github.com SignalR SignalR to publish messages to all subscribed clients : .. . .. . This works fine when calling Send via Javascript but I would also like the web application to publish messages from within an ASP.NET MVC action method . I already tried instantiating a new object ob NewsFeedHub and calling the Send method but this results in an error as the underlying Connection of the Hub is not set . Is there a way to use the Hub without a connection Comment : did you find the answer this i m in the same predicament . Signalr dll seems to initialise the hub object so i was wondering if i needed to get access to that . .. . Answer : Please note that the SignalR API has changed multiple times since this question was asked . There is a chance that some answers will become out of date . This does not mean that they should be down-voted as they were correct at the time of writing .. . .. . There is another updated answer for this as seen in the SignalR Wiki http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server .. . .. . c .. . .. . vb.net .. . .. . Update .. . .. . This code has been updated . Follow http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server for changes . Comment : Works great : Solved my problem . I was having serious problems with a piece of code I got here : xhroot.com blog 2012 07 12 live-updates-using-signalr http : www.xhroot.com blog 2012 07 12 live-updates-using-signalr", "Question : null .. . Answer : I am working on application which has mutiple hubs . I have created hub proxy for all hubs at one places and using when required in future . From doc : .. . .. . Note : Normally you register event handlers before calling the start method to establish the connection . If you want to register some event handlers after establishing the connection you can do that but you must register at least one of your event handler s before calling the start method . One reason for this is that there can be many Hubs in an application but you wouldn t want to trigger the OnConnected event on every Hub if you are only going to use to one of them . When the connection is established the presence of a client method on a Hub s proxy is what tells SignalR to trigger the OnConnected event . If you don t register any event handlers before calling the start method you will be able to invoke methods on the Hub but the Hub s OnConnected method won t be called and no client methods will be invoked from the server . OnConnected event for all hub is triggered when there is atleast one event handlers . In my case if I have 20+ hubs then OnConnected method for all 20+ hubs will called which I don t think is a nice way . I am not able to think if this will really cause some performance issue if yes then is there any workaround by which I can delay onConnected call . Comment : Having multiple hubs is not suggested . You should try to solve the issue at your code architectural level . It is like having multiple internet connections at home :", "Question : I m trying to add SignalR to my project ASPNET MVC 4 . But I can t make it work . In the below image you can see the error I m receiving . image http : i.stack.imgur.com AmM4j.jpg I ve read a lot of stackoverflow posts but none of them is resolving my issue . This is what I did so far : .. . .. . This is my Index.cshtml .. . .. . This is my IServerHub.cs file located inside Hubs folder .. . .. . And this is map.js .. . .. . The DLL s I see references for SignalR are : .. . .. . 1 . Microsoft.AspNet.SignalR.Core .. . 2 . Microsoft.AspNet.SignalR.Owin .. . 3 . Microsoft.AspNet.SignalR.SystemWeb .. . .. . Any ideas how to get it work Should I make any change because the scripts are in Script lib folder NOTE I m following the instruction found here http : blog.mirajavora.com signalr-dependency-injection on how to set up Windsor Castle to make it work with SignalR and again seems that the proxy cannot be created and I m getting the same error : .. . .. . meaning that the proxy to the hub was not created .. . .. . This is how I have it in the server .. . .. . and like this in the client .. . .. . Again I can see the dynamically created file here : .. . .. . So Why the proxy is not created Thanks in advance Guillermo . Comment : You can try with script type text javascript src @Url.Content signalr hubs script Comment : Same happens anyways I see the file content when a browse it from the browser . Should I make any change because the scripts are in Script lib folder .. . Answer : For those who tried to add the generated proxy file path in the bundle . Do not include the signalr hubs in your BundleConfig.cs . You can have the JQuery.SignalR in the bundle : .. . .. . But you will need to add signalr hubs it in your view : .. . .. . I hope this helps . Comment : I struggled a lot with this . You saved my day . Thanks Comment : The dynamically generated hubs js file was actually not created until I properly referenced signalr hubs", "Question : I have a 5.3.0 version of signalr self-hosting that is being upgraded to a newer version of signalr . Using https : github.com SignalR SignalR wiki Self-host example i have created a simple example but i can t get it to work . I can get a connection to the hub on the server and call methods on the hub but i can t get the hub to call the javascript client . When looking at it in fiddler I never see a response come back from the hub . Here is the code .. . .. . .. . .. . And here is the client-side .. . .. . Any ideas would be appreciated since i am fairly stuck . .. . Answer : Few things in your code : .. . .. . Change this : .. . .. . To : .. . .. . Also in your hub : .. . .. . This function is trying too hard : .. . .. . I m not even sure why you re passing the connection id maybe it was meant to be static You don t need to serialize twice we already do it for you . Remove : .. . .. . Never set that . Also : .. . .. . These aren t mapping anything client-side . You can t map connected and disconnected from the server to the client . The client has its own events . Other things : .. . .. . This should be inside of the start callback so that you don t hit it before it s ready : Comment : Thanks David that did it . The problem i have now is that i am connecting to two hubs on different url s and when i do this : - code var cfgBrokerHubConnection .hubConnection cfgBrokerSignalRHubServer var cfgBroker cfgBrokerHubConnection.createHubProxy cfgBrokerHub i am getting an error on this line cfgBroker.client.receiveMessage processCfgMessage m saying the client is undefined . Comment : github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs- 28No-Proxy 29", "Question : I have multiple SignalR services running and only one UI to access them . How can I make the client js to talk to multiple connections with different Url Because it seems I can only specify one url per .connection.hub and I can t use multiple signalr hubs client scripts . Any help Thanks . .. . Answer : .connection.hub is created in the signalr hubs inclusion . At the end of the file it essentially does : .. . .. . To create the hub proxy you do : .. . .. . Simple example for multiple connections : Comment : Thanks . It works . Comment : Beware that browsers have a limited number of concurrent connections per domain . So if you open a few tabs your page might stop loading . Comment : github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-JS-Client-Hubs- 28No-Proxy 29 provides more documentation on creating your own hubConnection s Comment : This is important information that should be included as part of the SignalR documentation . I would suggest adding it to the ASP.NET SignalR Hubs API Guide - JavaScript Client http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-javascript-client Comment : Is this solution also possible with auto generated proxies", "Question : I would need some guidelines from SignalR developers what is the best way to tweak HUB method s parameters serialization . I started migrating my project from WCF polling duplex Silverlight 5 - ASP.NET 4.5 to SignalR 1.1.2 . The message data contract is polymorphic based on interfaces . Like IMessage MessageA : IMessage etc . - there is actually hierarchy of interfaces implemented by classes but it is not of much significancy for the question . I know polymorphic objects are not good for clients but client will handle it as JSON and mapping to objects is done only on server-side or client if it is .NET Silverlight .. . .. . On the hub I defined method like this : .. . .. . I created custom JsonConverters and verified the messages could be serialized deserialized using Json.NET . Then I replaced JsonNetSerializer in DependencyResolver with proper settings . Similarly on the Silverlight client-side . So far so good . But when I sent the message from client to server message got serialized to JSON correctly - verified in Fiddler server returned error that the parameter cannot be deserialized . With a help of debugger I found a bug in SignalR JRawValue class responsible for deserialization of parameter creates internally its own instance of JsonSerializer ignoring the provided one . Seemed to be quite easy fix by replacing .. . .. . with .. . .. . but I also found that the interface IJsonSerializer is going to be removed in future version of SignalR . What I need basically is to get either raw JSON or byte stream from HUB method so I could deserialize it by myself or a possibility to tweak the serializer by specifying converters etc . For now I ended up with defining the method with JObject parameter type : .. . .. . followed by manual deserialization of data using .. . .. . method . But I would prefer to customize the serializer and having the type interface on the hub method . What is the right way to do it regarding to design of next SignalR I also found useful to have possibility to send back to clients raw JSON from my code i.e . so that the object is not serialized again by SignalR again . How could I achieve this Comment : Good question . Sad to see no answers . I am also interested in implementing polymorphic message contracts . .. . Answer : If you use connection API instead of Hub API you can handle OnReceive event and get request as raw JSON string . Take a look at this example https : github.com SignalR SignalR wiki PersistentConnection . Ability to send pre-serialised data to clients using Hub API was added in 2.x version and i don t know about any way to do that in 1.x see github issue https : github.com SignalR SignalR issues 1546", "Question : I understand why SignalR doesn t give you access to the HttpContext http : stackoverflow.com questions 7854663 signalr-doesnt-use-session-on-server . However this is quite problematic for us . Let me explain : .. . .. . Our application is a Multi-Tenant application where the user chooses the environment while logging in . This basically registers the ConnectionStringName in the HttpSession . In our SignalR Hub we need to access the database on Disconnect . But this is not possible because we have no HttpContext at this point and cannot determine the environment to write to . Can anyone provide us with a suggestion how to solve this problem We re a bit stuck on this one . EDIT : Bonus point if your solution works in a Load-Balanced environment . Comment : Are you still looking for a solution here Comment : We implemented the feature in a completely different way . Comment : @Lodewijk Could you share your different way I m at the same situation . Comment : Lodewijk and @MarioLevrero can you workaround the problem Same issue here . .. . Answer : You can use something like a Dictionary to keep track of the ConnectionId of the user when they connect . Also using SQL Server to store the Session State may also help : http : support.microsoft.com kb 317604 .. . .. . SignalR does give you access to User.Identity.Name which you can use to track when the disoconnect is fired . Comment : Sadly the User info is not available : ..as well as the HubContext s User and Cookies will not be populated . github.com SignalR SignalR wiki Hubs https : github.com SignalR SignalR wiki Hubs Comment : Also we re in a load-balanced environment so the disconnect could end up on the other server where the dictionary is not populated . Comment : I have looked at some previous code and Context.User.Identity.Name does show the current logged in user . If the environment is load balanced you should maybe look at redis for SignalR . github.com SignalR SignalR wiki https : github.com SignalR SignalR wiki SignalR-with-Redis-Running-on-a-Windows-Azure-Virtual-Machine Comment : I meant that the User info will not be populated on Disconnect . I m relying on the docs for this . Haven t actually spiked it .", "Question : I am using SignalR with an ASP.NET Web Api server . I would like to be able to disconnect my hub on the client manually . But every time I call : .. . .. . my connection seems to be resumed automatically Comment : can you pls share server-side code for overridden connect disconnect methods if any .. . Answer : You should enable the logging on your signalr client it ll log everything in the browser console .. . .. . You can take a look here for more infos : http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-javascript-client logging", "Question : I m trying to add SignalR to my project ASPNET MVC 4 . But I can t make it work . In the below image you can see the error I m receiving . image http : i.stack.imgur.com AmM4j.jpg I ve read a lot of stackoverflow posts but none of them is resolving my issue . This is what I did so far : .. . .. . This is my Index.cshtml .. . .. . This is my IServerHub.cs file located inside Hubs folder .. . .. . And this is map.js .. . .. . The DLL s I see references for SignalR are : .. . .. . 1 . Microsoft.AspNet.SignalR.Core .. . 2 . Microsoft.AspNet.SignalR.Owin .. . 3 . Microsoft.AspNet.SignalR.SystemWeb .. . .. . Any ideas how to get it work Should I make any change because the scripts are in Script lib folder NOTE I m following the instruction found here http : blog.mirajavora.com signalr-dependency-injection on how to set up Windsor Castle to make it work with SignalR and again seems that the proxy cannot be created and I m getting the same error : .. . .. . meaning that the proxy to the hub was not created .. . .. . This is how I have it in the server .. . .. . and like this in the client .. . .. . Again I can see the dynamically created file here : .. . .. . So Why the proxy is not created Thanks in advance Guillermo . Comment : You can try with script type text javascript src @Url.Content signalr hubs script Comment : Same happens anyways I see the file content when a browse it from the browser . Should I make any change because the scripts are in Script lib folder .. . Answer : If fixed that problem by changing my js code from : var myHub .connection.SentimentsHub to var myHub .connection.sentimentsHub .. . .. . So if you have some hub with class name TestHub you must use testHub first letter is lowercase name in js Comment : Its works . Thks Comment : Thanks this helped me realise my hub names did not quite match . Comment : Just the first letter : tricky", "Question : I m trying to add SignalR to my project ASPNET MVC 4 . But I can t make it work . In the below image you can see the error I m receiving . image http : i.stack.imgur.com AmM4j.jpg I ve read a lot of stackoverflow posts but none of them is resolving my issue . This is what I did so far : .. . .. . This is my Index.cshtml .. . .. . This is my IServerHub.cs file located inside Hubs folder .. . .. . And this is map.js .. . .. . The DLL s I see references for SignalR are : .. . .. . 1 . Microsoft.AspNet.SignalR.Core .. . 2 . Microsoft.AspNet.SignalR.Owin .. . 3 . Microsoft.AspNet.SignalR.SystemWeb .. . .. . Any ideas how to get it work Should I make any change because the scripts are in Script lib folder NOTE I m following the instruction found here http : blog.mirajavora.com signalr-dependency-injection on how to set up Windsor Castle to make it work with SignalR and again seems that the proxy cannot be created and I m getting the same error : .. . .. . meaning that the proxy to the hub was not created .. . .. . This is how I have it in the server .. . .. . and like this in the client .. . .. . Again I can see the dynamically created file here : .. . .. . So Why the proxy is not created Thanks in advance Guillermo . Comment : You can try with script type text javascript src @Url.Content signalr hubs script Comment : Same happens anyways I see the file content when a browse it from the browser . Should I make any change because the scripts are in Script lib folder .. . Answer : I had the same error message and resolved the issue by fixing a typo I had in the HubName attribute on the hub class - it was not exactly matching the property in the client-side javascript . C hub class : .. . .. . client-side javascript : .. . .. . gameHub must be the same . hth", "Question : I am using signalr and asp.net MVC3 to build a sample chat application . Here is what my signalr-hub looks like .. . .. . My problem is that my app crashed when the page loads . on stepping through with the debugger I found that HttpContext.Current.User.Identity.Name is null even though the user has already been authenticated . How can I get the username in my Task Join method Comment : Which authentication mode do you use forms windows etc . Are you sure that the user is authenticated Because in a new intranet mvc3 app both the HttpContext.Current.User and Context.User aren t null and containing the current user . Comment : @nemesv - My application uses forms-authentication and is a internet application . The page that uses signalr can be accessed only if the user is authenticated Comment : Hello @user1 can you provide me a demo for multiple chat rooms using signalR . I want to implement chat server like chat.stackoverflow.com Comment : my email id is : [email protected] . if u have any demo please send me . .. . Answer : When using SignalR hubs http : www.asp.net signalr overview signalr-20 hubs-api hubs-api-guide-server you can use the HubCallerContext.User property to : .. . .. . Gets the user that was part of the initial http-request . So try it with : Comment : when I type HubCallerContext . the intellisense only shows 2 methods - Equals and ReferenceEquals . I am using the signalr version 0.5.3 Comment : No you don t need to type HubCallerContext instead of use the Context property of the Hub as in my sample : string username this.Context.User.Identity.Name like you already do with Context.ConnectionId . I ve updated my answer to make it more clear . Comment : I tried your code snippet but Context.User.Identity.Name is still null when I step through the debugger . Any thoughts Comment : Are you in ASP.NET Comment : @dfowler - yes I am building a ASP.Net MVC3 application and installed signal R 0.5.3 through nuget", "Question : I had taken the code below form this tutorial initially : SignalR Getting Started Application https : code.msdn.microsoft.com SignalR-Getting-Started-b9d18aa9 that will create a chat room . I ve cleaned the html code a little bit to get only the part that I am going to need . I verified chat is still working : .. . .. . As you can there are 3 javascripts files and 1 script block : .. . .. . Now I need to join all these scripts into one single file and send that to my remote mobile clients . I m still at the web side so I started joining the files script top down . Joining the top 2 worked OK but once trying to add the 3rd signalr hubs I get a 404 error in my chrome console : .. . .. . http : localhost : 52528 HubSample signalr negotiate connectionData 5B 7B 22name 22 3A 22chathub 22 7D 5D clientProtocol 1.3 1464332439400 http : localhost : 52528 HubSample signalr negotiate connectionData 5B 7B 22name 22 3A 22chathub 22 7D 5D clientProtocol 1.3 1464332439400 .. . .. . It is imperative for me to join them all . How can I go around this error Comment : Try and update your jquery to 2 version . I use jquery-2.2.2.min.js with jquery.signalR-2.0.3.min.js . Works great Comment : maybe my question wasn t too clear . I went and changed the title to make it more descriptive of my need . .. . Answer : signalr hubs is not a physical file it s a dynamically generated JavaScript code http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-javascript-client dynamicproxy . SignalR creates the JavaScript code for the proxy on the fly and serves it to the client in response to the signalr hubs URL . What you want to do is to create a physical file for the SignalR generated proxy http : www.asp.net signalr overview guide-to-the-api hubs-api-guide-javascript-client manualproxy that you can add to your single file : .. . .. . 1 . Install the Microsoft.AspNet.SignalR.Utils NuGet package . 2 . Open a command-prompt and browse to the tools folder that contains the SignalR.exe file . The tools folder is at the following location : .. . your solution folder packages Microsoft.AspNet.SignalR.Utils.2.1.0 tools .. . .. . 3 . Enter the following command : .. . signalr ghp path : path to the .dll that contains your Hub class .. . The path to your .dll is typically the bin folder in your project folder . .. . 4 . This command creates a file named server.js in the same folder as signalr.exe . .. . 5 . Put the server.js file in an appropriate folder in your project rename it as appropriate for your application and add a reference to it in-place of the signalr hubs reference . The problem is that you ll have to do this for every change in your hubs . Every . Single . time ." ] }
[ "yes-answer-long", "yes-answer-short" ]
rpc
UNK_RELATION
dwmapi@desktop@49
dwmapi -- desktop window manager dwm previously @placeholder compositing engine or dce is the window manager in windows-vista windows-7 and windows-8 that enables the use of hardware-acceleration to render the graphical user-interface of windows .
{ "confidence": [ 55.693199157714844, 49.564064025878906, 46.227027893066406, 44.267913818359375, 43.04295349121094, 42.92841339111328, 42.679901123046875, 41.78187561035156, 41.37370681762695, 40.813568115234375, 40.79271697998047, 40.00321960449219, 39.90608596801758, 39.44542694091797, 38.79511260986328, 38.77531051635742, 38.6194953918457, 38.42108154296875, 37.78778076171875, 37.22626876831055, 37.19391632080078, 37.00922393798828, 36.79926300048828, 36.62369918823242, 35.619651794433594, 35.596595764160156, 35.31132507324219, 34.787567138671875, 34.70787811279297, 34.6926383972168, 34.670127868652344, 34.62411117553711, 33.88641357421875, 33.601593017578125, 33.470428466796875, 33.32245635986328, 33.09888458251953, 32.63352966308594, 32.28799057006836, 32.14671325683594, 31.957624435424805, 31.359012603759766, 31.212867736816406, 31.198108673095703, 31.07156753540039, 30.984386444091797, 30.923738479614258, 30.923738479614258, 30.923738479614258, 30.923738479614258, 30.576026916503906, 30.334211349487305, 30.09420394897461, 29.79991912841797, 29.79991912841797, 29.7929630279541, 29.278451919555664, 29.278451919555664, 29.134449005126953, 29.127716064453125, 28.44021987915039, 27.523845672607422, 27.493364334106445, 27.493364334106445, 27.164701461791992, 27.010337829589844, 26.74310302734375, 26.56045913696289, 26.36258888244629, 26.112716674804688, 25.612327575683594, 25.569202423095703, 25.569202423095703, 25.393901824951172, 25.393901824951172, 25.271522521972656, 25.16210174560547, 25.028549194335938, 25.00732421875, 25.00732421875, 25.00732421875, 25.00732421875, 25.00732421875, 25.00732421875, 25.00732421875, 25.00732421875, 24.98194122314453, 24.95062255859375, 24.808879852294922, 24.552749633789062, 24.45035171508789, 24.4332218170166, 24.263126373291016, 24.197935104370117, 24.197935104370117, 24.164709091186523, 23.916255950927734, 23.72357177734375, 23.716182708740234, 23.678104400634766 ], "content": [ "you have taught me that one way to invoke the undocumented Desktop Window Manager DWM dwmapi flip3d function from a program http : stackoverflow.com questions 4810580 how-to-programmatically-trigger-flip-3d-on-windows is : .. . .. . my question is : is there any way to filter the list of application windows upon which the flip3d function operates", "Windows Vista .", "Instead the DWM composition engine will render the thumbnail directly over the contents of your window when the desktop is presented .", "The OS is Windows 7 64bit .", "Here is a piece of code : .. . .. . My code is supposed to work on Windows OS that support Aero themes 7 Vista 8 .", "So the question is : How to get glass color in Windows Vista 7", ".. . .. . Background .. . .. . With Windows Desktop Composition running applications draw their window client-area s onto their own private buffer .", "Windows 7 Flip 3D .. . .. .", "DWM sets the color for all windows that s why you can modify it with the DWM APIs albeit an undocumented unsupported one .", "I have a simple Windows application here : .. . .. . http : www.bengoodger.com software chrome dwm app.cc .. . .. . My app provides a customized glass frame for when DWM compositing is active and a fully custom frame when it is inactive or not available .", "The key above is present on Windows Vista and above .", "Custom Window Frame Using DWM https : msdn.microsoft.com en-us library windows desktop bb688195.aspx After removing the standard frame non client area is not exist in the frame .", "Works in windows-8 too source code is in C .", "I have an owner-drawing window caption which I create using C Windows Forms P Invoking dwmapi.dll and several other windows libs .", "When I tested my code it worked perfectly on any themes on Windows Vista 7 8 including classic ones and high contrast .", "Is it possible that visual styles got disabled on Windows 8", "This is in the Windows SDK .", "I am trying to figure out how to use DWM to render a copy of a Window into my own desired location .", "composited onto the desktop - along with all the other windows that are open : .. . .. .", "The system sends a WM DWMCOLORIZATIONCOLORCHANGED http : msdn.microsoft.com en-us library windows desktop dd388198.aspx to all top-level windows in response to a change in colorization color .", "It s sole purpose is to notify Windows that you re starting or finishing an operation that is incompatible with DWM .", "This allows the live thumbnail api - where Windows will draw a thumbnail size copy of a window where you tell it to .", "Currently I m trying to have a top-level window in Windows Forms with a custom frame using DevExpress SkinManager.EnableFormSkins function http : documentation.devexpress.com WindowsForms DevExpressSkinsSkinManager EnableFormSkinstopic and still have a shadow around the window when running on Windows 7 Aero .", "Again from MSDN : .. . .. . Note This function is deprecated as of Windows 8 Consumer Preview .", "I have two windows .", "There s a Windows 7 API SDK that you can download from Microsoft. .", "by using the Appearance Settings control panel to switch to Vista Basic or Windows Standard or when an app that requires the system to disable DWM is launched my app switches to fully custom rendering mode by handling WM NCPAINT etc .", "I m making progress however I am now getting hung up on this error message.. . .. . .. . ld.exe cannot find -ldwmapi .. . .. . Now DWMAPI is a DLL only available on Windows Vista and above .", "I m currently attempting to write a small application that s built around the features available through the Windows DWM API e.g .", "http : stackoverflow.com questions 1870139 windows-aero-what-color-to-paint-to-make-glass-appear .. . Vista 7 : How to get glass color", "So what API can be used to create applications like the Windows Vista Flip3D", "I have been trying to incorporate the Windows 7 taskbar APIs in a regular MFC MDI multiple document interface application .", "Currently I take the print of the entire window including the frame and position the live-preview exactly on top of the existing window so that when the live-preview is on the user is deceived to see the bitmaps instead of actual child windows .", "But MSDN s DWM Thumbnail Overview http : msdn.microsoft.com en-us library aa969541 28v VS.85 29.aspx they specifically warn me off : .. . .. . Note DWM thumbnails do not enable developers to create applications like the Windows Vista Flip3D WINKEY-TAB feature .", "This is already a setting in Windows set the theme to High Contrast : .. . .. .", "I paint window caption only when DWM is enabled .", "I have found the API to tell the Desktop Window Monitor to draw me a thumbnail of an application here : .. . .. . But I cannot find the API to tell the DWM to draw me the full-size version of a window .", "To detect if the DWM is enabled I use the next code : .. . .. . To paint window caption I use visual style renderer .", "Some more details about this at WikiHow http : www.wikihow.com Invert-Colors-on-Windows-7 .", "I am using Visual Studio 2008 where I have redirected the SDK path to use the Windows 7 SDK .", "It s as-if the DWM is caching the pixels behind the window and sizing the window larger causes it not to be able to paint anything there because its cache isn t large enough .", "I also indicated in the post the registry location in which all the color information is stored HKEY CURRENT USER Software Microsoft Windows DWM for retrieval purposes .", "Without source code I will guess that you are not passing the proper windows handle to the DwmRegisterThumbnail http : msdn.microsoft.com en-us library windows desktop aa969521 28v vs.85 29.aspx function .", "Ok .. . .. . 1 . so we need a proxy window which I have as the live-preview APIs work only on top level windows this is a disappointment .", "Recently I got the next exception in the VisualStyleRender c tor : .. . .. . The thing happened on Windows 8 OS 6.2.9200.0 .", "The .. . thumbnail images are individual representations of the child windows .", "This contrasts with previous versions of Windows where every application drew directly on the screen .", "This is the kind of stuff that causes Windows Update to brick your system .", "I hit this problem on one of our Windows 2003 servers .", "So my question is is it even possible to write an application that would do this in Windows", "enter image description here http : i.stack.imgur.com vTX8Z.jpg .. . .. . The question is how my form can stay on top of all the others windows even if the Windows 7 Flip 3D is activated", "DwmEnableComposition http : msdn.microsoft.com en-us library windows desktop aa969510 28v vs.85 29.aspx has no effect when it is disabled system wide .", "It changes the color for entire UI of Windows .. . .. . I am able to disable the transparency by finding the taskbar s hWnd FindWindow Shell TrayWnd null and setting the transparency by DWM API function DwmEnableBlurBehindWindow but I don t know how to change the color .", "While DW2 exception-handling is significantly more efficient that SJLJ it is foreign to Windows and will fail if an exception must propagate through a Windows library not built-in the same way .", "1 In principle yes but MinGW stopped building a Windows 32-bit-host- 64-bit-target toolchain in 2011 as 32-bit Windows petered out .", "I am starting to believe that you can do nothing with Windows API .", "I mean if DWM renders thumbnails directly onto the DC of the registered window then my approach should work .", "That s not how DWM works : the contents of the thumbnail are never blitted onto the DC of your window .", "I do this some time ago using the DwmSetWindowAttribute http : msdn.microsoft.com en-us library windows desktop aa969524 28v vs.85 29.aspx function modyfing the DWMWA FLIP3D POLICY http : msdn.microsoft.com en-us library windows desktop aa969530 28v vs.85 29.aspx attribute with the DWMFLIP3D EXCLUDEABOVE value .", "I use this PInvoke signature : .. . .. . and this usage : .. . .. . In my 64-bit system Windows 7 Professional it s work only if I run 64-bit application .", "Ive been using the class Glass full from here : http : www.dreamincode.net forums topic 146813-glass-form-dwmapidll-api .. . .. . It works fine on Windows 7 .", "Basically use a transparent window dynamically use alpha blending PNGs as simulated shadow and draw that around the sides and corners of the window move the transparent window when the real window moves etc .", "I m not about to uninstall IE7 since there must be a better solution that s not the equivalent of reinstall windows .", "http : i.imgur.com SKqsD.png .. . .. . I went looking and it seems that there is currently no way of doing this for Windows .", "If you want to extend Aero Glass into your client area look at DwmExtendFrameIntoClientArea http : msdn.microsoft.com en-us library windows desktop aa969512 28v vs.85 29.aspx and family .", "This question s answer http : stackoverflow.com a 24600956 1730559 seems to be the only correct one which gives the proper blended titlebar color at least for Windows 8 8.1 .", "However when the window is maximized and then restored the window returns to being transparent .", "The only thing I can find to tell DWM to render somewhere is with the thumbnail APIs .", "The carret is managed by windows API itself you cannot force it to appear in the way you want .", "The taskbar is just a window .", "AdjustWindowRect calculates the required window rectangle based on the client rectangle of the window .", "When the system DWM is toggled e.g .", "DWM can no longer be programmatically disabled .", "I have an application that uses the windows glass brush to set its controls background to the same color at start up using SystemParameters.WindowGlassBrush in WPF .", "I have a windows form application and I have extended the window s frame into the client area using DwmExtendFrameIntoClientArea to get the glass effect .", "One has a DWM thumbnail in it .", "So that this tall title bar area portion of my window is transparent I fill it with transparent black BLACK BRUSH in the simple example above which causes it to be drawn as glass by the DWM .", "DWM Thumbnails .", "Everything about the Windows API always excites me screenshots or not but of course a well-written question like this is always much nicer .", "I think that a new Windows OS release should always be an indicator to revisit your code anyway .", "The fourth fTransitionOnMaximized allows you to specify whether or not the form s colorization should transition to match the maximized windows .", "I have a project that I m been fighting to build for Windows XP for a month solid now .", "Lazy linking -z lazy is the GNU linker s default on unix-like systems and is not supported in the MinGW Windows ports .", "The fact that you are doing all this in a Windows VM suggests you re more at home in Linux .", "The idea is to provide custom live-preview bitmaps for each of the childframe windows that gets created inside the application .", "Interesting that you say the live-preview only works with top level Windows it must be possible as IE9+ does it.. . Good luck", "The window currently looks like this : .. . .. .", "you can use the FmxHandleToHWND http : docwiki.embarcadero.com Libraries XE3 en FMX.Platform.Win.FmxHandleToHWND function to convert the FMX Form handle to the Windows Handle .", "When I subsequently drag size the window smaller the top portion window remains transparent .", "http : stackoverflow.com questions 3560890 vista-7-how-to-get-glass-color", "Just requires some DWM reverse-engineering .", "I m building an app which needs display a particular form always-on-top this is a customer request so far I m using the SetWindowPos http : msdn.microsoft.com en-us library windows desktop ms633545 28v vs.85 29.aspx function with the HWND TOPMOST value and that works fine but when the Windows 7 Flip 3D feature is activated my app doesn t stay in top .", "http : stackoverflow.com questions 4258330 aero-how-to-draw-cleartype-text-on-glass .. . Windows Aero : What color to paint to make glass appear", "Thumbnails are rendered directly to the destination window in 2-D .", "The compositor can perform 3d positioning of a window .", "have a soft shadow around the window .", "DWM works fine in a DLL .", "Unless you want to do custom drawing of controls and theme interfaces all you need to do to support the visual themes is to add the appropriate manifest http : msdn.microsoft.com en-us library windows desktop bb773175 28v vs.85 29.aspx .", "If Delay Loading is impossible how do I get around the dwmapi dependency .", "It seems like as soon as I handle WM NCPAINT for a glass window rather than deferring to DefWindowProc my window is forever broken ." ] }
{ "confidence": [ 78.62522888183594, 73.79691314697266, 73.44351196289062, 71.26911163330078, 63.16874694824219, 58.77360153198242, 57.96381378173828, 52.47925567626953, 52.03732681274414, 49.79798889160156, 48.48833084106445, 47.36625671386719, 47.29169464111328, 46.76679229736328, 44.182708740234375, 43.61244583129883, 42.62084197998047, 42.25783157348633, 42.09005355834961, 40.91494369506836 ], "content": [ "Question : null .. . Answer : greetings stackoverflow community you have taught me that one way to invoke the undocumented Desktop Window Manager DWM dwmapi flip3d function from a program http : stackoverflow.com questions 4810580 how-to-programmatically-trigger-flip-3d-on-windows is : .. . .. . my question is : is there any way to filter the list of application windows upon which the flip3d function operates what I want to do is filter perhaps by window name or executable name or other attributes and invoke this function from a program so that only the filtered results make it into the flip3d list . or do I get to write my own program http : stackoverflow.com questions 3848558 what-is-the-api-to-create-applications-like-flip3d that mimics the flip3d function thanks", "Question : I am starting to believe that you can do nothing with Windows API . I have two windows . One has a DWM thumbnail in it . What I want to do is I want to be able to capture the screen of the window with the thumbnail into the other one . When I do this using bitblt everything is copied except the thumbnail . It just isn t there in the bitmap . So how does the DWM rendering work I mean if DWM renders thumbnails directly onto the DC of the registered window then my approach should work . I m confused . Thanks a bunch . Comment : There s a Windows 7 API SDK that you can download from Microsoft. . Comment : And how is it different than the libraries that already come with Win 7 .. . Answer : That s not how DWM works : the contents of the thumbnail are never blitted onto the DC of your window . Instead the DWM composition engine will render the thumbnail directly over the contents of your window when the desktop is presented . There s no official way to access the image data of a DWM thumbnail unfortunately there is however a hack http : www.youtube.com watch v hRTgFTMnT U on the net that tries to access the underlying vertex data and render it in DirectX 9 .", "Question : I am trying to figure out how to use DWM to render a copy of a Window into my own desired location . The only thing I can find to tell DWM to render somewhere is with the thumbnail APIs . But MSDN s DWM Thumbnail Overview http : msdn.microsoft.com en-us library aa969541 28v VS.85 29.aspx they specifically warn me off : .. . .. . Note DWM thumbnails do not enable developers to create applications like the Windows Vista Flip3D WINKEY-TAB feature . Thumbnails are rendered directly to the destination window in 2-D . I am told that the thumbnailing api cannot be used to create applications like Flip3D but they don t say which api can be used to create applications like the Windows Flip3D . So what API can be used to create applications like the Windows Vista Flip3D .. . .. . Background .. . .. . With Windows Desktop Composition running applications draw their window client-area s onto their own private buffer . This contrasts with previous versions of Windows where every application drew directly on the screen . This client area image is then placed in a frame the title bar minimize maximize restore buttons etc and then drawn i.e . composited onto the desktop - along with all the other windows that are open : .. . .. . alt text http : i.stack.imgur.com xKjhZ.png .. . .. . Because this buffer is private and because graphics cards in the last few years have become powerful at performing 3D tasks Windows can then start to perform some neat tricks . One of them is to be able to manipulate the client window performing scaling and perspective changes to it . This allows the live thumbnail api - where Windows will draw a thumbnail size copy of a window where you tell it to . Since this is all happening in the hardware it is very fast . The other ability is the Flip3D Win+Tab . The compositor can perform 3d positioning of a window . Again because this is all done in hardware it is very fast . I have found the API to tell the Desktop Window Monitor to draw me a thumbnail of an application here : .. . .. . But I cannot find the API to tell the DWM to draw me the full-size version of a window . .. . .. . Edit : You can t blame Microsoft for copy-protection in Windows http : www.digital-cp.com files static page files D6724AFD-9B02-A253-D8D2FE5B1A10F7F7 HDCP License Agreement 082207.pdf : .. . .. . Licensed Products as shipped shall comply with the Compliance Rules and shall be designed and manufactured in a manner that is clearly designed to effectively frustrate attempts to modify such Licensed Products to defeat the content protection requirements of the HDCP Specification and the Compliance Rules . .. . Licensed Products shall be designed and manufactured in a manner that is clearly intended to effectively frustrate attempts to discover or reveal Device Keys or other Highly Confidential Information .. . .. . Licensed Products shall use at least the following techniques in a manner that is clearly designed to effectively frustrate attempts to defeat the content protection requirements of the HDCP Specification and the Compliance Rules .. . .. . You have to blame Sony . Comment : I too am looking for a solution somehow I doubt that one exists this being Microsoft . Comment : i doubt a solution exists in order to frustrate Microsoft s users as required by license agreement en.wikipedia.org wiki High-bandwidth Digital Content Protection http : en.wikipedia.org wiki High-bandwidth Digital Content Protection Comment : If this is a side effect of HDCP then why does OS X have CGWindowListCreateImage I don t see how it s related in any way . Maybe they simply don t want people messing with the windowing system . In either case there is always a way . Just requires some DWM reverse-engineering . .. . Answer : Take a look at this project : https : github.com gratianlup SmartFlip . It uses WPF and the Thumbnail API .", "Question : null .. . Answer : I have an owner-drawing window caption which I create using C Windows Forms P Invoking dwmapi.dll and several other windows libs . To detect if the DWM is enabled I use the next code : .. . .. . To paint window caption I use visual style renderer . I paint window caption only when DWM is enabled . Here is a piece of code : .. . .. . My code is supposed to work on Windows OS that support Aero themes 7 Vista 8 . Recently I got the next exception in the VisualStyleRender c tor : .. . .. . The thing happened on Windows 8 OS 6.2.9200.0 . When I tested my code it worked perfectly on any themes on Windows Vista 7 8 including classic ones and high contrast . So my question is why is this happening Is it possible that visual styles got disabled on Windows 8 And how should I resolve it Is there any event that notifies that visual styles got turned off I know that I can check if visual styles are enabled by using the property VisualStyleRenderer.IsSupported but I want at least to test my solution . And I don t know how to reproduce the situation . Comment : Invalid test use VisualStyleRenderer.IsSupported instead .", "Question : I have a simple Windows application here : .. . .. . http : www.bengoodger.com software chrome dwm app.cc .. . .. . My app provides a customized glass frame for when DWM compositing is active and a fully custom frame when it is inactive or not available . The customized glass frame consists of a enlarged title bar area which is reported by my implementation of WM NCCALCSIZE to be part of the client area since I would like to render transparent controls into it . So that this tall title bar area portion of my window is transparent I fill it with transparent black BLACK BRUSH in the simple example above which causes it to be drawn as glass by the DWM . When the system DWM is toggled e.g . by using the Appearance Settings control panel to switch to Vista Basic or Windows Standard or when an app that requires the system to disable DWM is launched my app switches to fully custom rendering mode by handling WM NCPAINT etc . When I switch back I would expect the reverse which mostly happens except my tall title bar area is now solid black . I ve found I can work around this issue by getting the window s placement hiding the window then setting the window s placement again in my WM DWMCOMPOSITIONCHANGED handling but this causes other horrible bugs least of which is window z-order munging . My question is - what am I doing wrong here It seems like the window is being put into a bogus state somehow and hiding showing it corrects it . How can I prevent this from happening Any guidance would be greatly appreciated . Note : I have narrowed this down somewhat . When DWM glass is in effect any part of the client area that is painted black that is rendered over the client area is rendered transparent . We noticed that when returning to Glass from non-Glass the client area is rendered solid black instead of transparent . However when the window is maximized and then restored the window returns to being transparent . When I subsequently drag size the window smaller the top portion window remains transparent . When I drag it larger the top portion of the window turns black again . It s as-if the DWM is caching the pixels behind the window and sizing the window larger causes it not to be able to paint anything there because its cache isn t large enough . I can t seem to find any DWM function to reset this state . It seems that Maximize Minimize then Restore or SetWindowPlacement are capable of tickling it though but have other undesirable side effects . .. . Answer : http : www.codeproject.com KB dialog rtaGlassEffectLib.aspx .. . .. . As you may have noticed the GlassEnabled property is a great one for testing if this feature is enabled by your system and then start using our library and call ShowEffect function to show the glass effect Now suppose the user has disabled enabled the Aero Theme while your application was running This may cause a problem in the appearance of your application . .. . To solve this problem two events were added to the library to keep track of the changes happening to the system while your application is running these two events are GlassEffectEnabled event and GlassEffectDisabled . .. . Now for people who like to know how stuff works . . I can tell that these events were implemented by monitoring the messages coming from the system to the windows to our application looking for the WM SYSCOLORCHANGE message that indicates that the system colors have been changed . So by doing a quick compare between the state of the GlassEnabled property before and after this message we can decide whether this feature has been enabled or not .", "Question : I am starting to believe that you can do nothing with Windows API . I have two windows . One has a DWM thumbnail in it . What I want to do is I want to be able to capture the screen of the window with the thumbnail into the other one . When I do this using bitblt everything is copied except the thumbnail . It just isn t there in the bitmap . So how does the DWM rendering work I mean if DWM renders thumbnails directly onto the DC of the registered window then my approach should work . I m confused . Thanks a bunch . Comment : There s a Windows 7 API SDK that you can download from Microsoft. . Comment : And how is it different than the libraries that already come with Win 7 .. . Answer : Use", "Question : I am starting to believe that you can do nothing with Windows API . I have two windows . One has a DWM thumbnail in it . What I want to do is I want to be able to capture the screen of the window with the thumbnail into the other one . When I do this using bitblt everything is copied except the thumbnail . It just isn t there in the bitmap . So how does the DWM rendering work I mean if DWM renders thumbnails directly onto the DC of the registered window then my approach should work . I m confused . Thanks a bunch . Comment : There s a Windows 7 API SDK that you can download from Microsoft. . Comment : And how is it different than the libraries that already come with Win 7 .. . Answer : You cannot expect a thumbnail to be place in a window s device context because the thumbnail is not placed in a window s device context . So your approach will not work . But if you re trying to steal the thumbnail of an application just ask the Dwm to give you it s thumbnail http : msdn.microsoft.com en-us library aa969541 28v vs.85 29.aspx . That will allow you to present to the user the exact thumbnail you want . If on the other hand you want to access the pixels in the thumbnail of another process then you have a problem .", "Question : Is it possible to change the color of the taskbar programmatically I want to change the color to solid opaque black but ONLY for the taskbar That s the reason why I can t use the DwmSetColorizationParameters function . It changes the color for entire UI of Windows .. . .. . I am able to disable the transparency by finding the taskbar s hWnd FindWindow Shell TrayWnd null and setting the transparency by DWM API function DwmEnableBlurBehindWindow but I don t know how to change the color . Comment : Doesn t the user get to decide .. . Answer : No this isn t possible . The taskbar window doesn t have its own special color . DWM sets the color for all windows that s why you can modify it with the DWM APIs albeit an undocumented unsupported one . The taskbar is just a window . Nothing special . Indeed you can hack around with things like FindWindow but even putting aside the concerns about how inherently fragile that type of thing is there s still no way to set a different glass color for an individual window . Maybe you could look into creating your own theme Also officially unsupported . Comment : I ve found a tool http : www.windows10insider.com 2015 12 make-taskbar-transparent-in-Windows-10.html that can also change the color of the taskbar only this color but this tool has also other unwanted functionality . That s the reason I think it s possible but I don t know yet how to achieve . Comment : Well the source code is available http : sourceforge.net projects classicshell files Version 203.6.8 20 28final 20open-source 20release 29 for Classic Shell . The latest version is not open-source that s an older version but it should still be enough to see how they re doing it . It s almost guaranteed to be an ugly hack . Can t recommend strongly enough against doing that . This is the kind of stuff that causes Windows Update to brick your system .", "Question : null .. . Answer : Ive been using the class Glass full from here : http : www.dreamincode.net forums topic 146813-glass-form-dwmapidll-api .. . .. . It works fine on Windows 7 . Ive even managed to find a easy workaround for the text issue . I solved this by using a custom color for backcolor and transparencyKey on the form Color is rgb 1 2 3 This works fine on 7 but when the same code is ran on Vista it doesnt render the glass . I can render the glass with backcolor black and transparencyKey works to make the form completely transparent but when combined like i did on 7 the glass doesnt render . I get rgb 1 2 3 for a background .. . .. . I tried adding a propertyGrid to a form and using it to set the backcolor and transparencyKeys for testing but DWM would crash when i set transparencykey to the same as backcolor . Is there any way of fixing this", "Question : I m trying to enable Aero for my application a Firefox plugin running single process with the browser but I m failing to do so . The OS is Windows 7 64bit . This is the code : .. . .. . DwmEnableComposition should enable composition but it doesn t also the function returns : .. . .. . Any help would be appreciated thanks .. . Answer : DwmEnableComposition http : msdn.microsoft.com en-us library windows desktop aa969510 28v vs.85 29.aspx has no effect when it is disabled system wide . It s sole purpose is to notify Windows that you re starting or finishing an operation that is incompatible with DWM . Furthermore it s up to the user what their OS looks like it s not up to a program to configure it . Comment : Thanks for your answer the program asks the user if he she wants to enable Aero on the machine . The MSDN says it will enable or disable Aero I can only disable Aero but not enable it using this method so I ended up doing it by looking into the uxsms service first I turn on the Windows 7 Basic theme and then I start the service .", "Question : I have refereed below article to draw a custom frame area with DWM . Custom Window Frame Using DWM https : msdn.microsoft.com en-us library windows desktop bb688195.aspx After removing the standard frame non client area is not exist in the frame . Because the entire window is client region I have to adjust the UI control placement for the frame but I don t know how to handle this problem . For example below red rectangle all UI component should be shifted into the original coordinate of the client area before removing the non client part . enter image description here http : i.stack.imgur.com f0rge.png Comment : Check Appendix C of that page . If you re just letting DWM draw the standard caption into your client area you can use AdjustWindowRectEx to get what the original client rect would have been . .. . Answer : CWnd : : GetWindowRect gives you the rectangle of the window on screen . The dimensions of the caption border and scroll bars if present are included . CWnd : : GetClientRect gives you the client rectangel of the window . The left and top members will be 0 . The right and bottom members will contain the width and height of the window . CWnd : : ScreenToClient and CWnd : : ClientToScreen calculate a point or rectangle from the client area to screen coordinates and back to screen . AdjustWindowRect calculates the required window rectangle based on the client rectangle of the window . Here is afunction which calcualtes the margins of a window :", "Question : I am trying to make a window that alternates between having an Aero Glass and a custom rendered frame by handling WM NCPAINT based on a user setting . Windows Vista . DwmComposition is enabled . My app comes up with the glass frame but as soon as I toggle the setting to trigger the custom WM NCPAINT codepath then toggle back to use DefWindowProc s WM NCPAINT handling the native frame is now perpetually stuck in the Vista Basic style - it s no longer translucent and the caption buttons look different to the normal Aero Glass ones . I ve tried just about every way of poking the window from sending SWP FRAMECHANGED to changing the window style then changing it back hiding it etc but all to no avail . It seems like as soon as I handle WM NCPAINT for a glass window rather than deferring to DefWindowProc my window is forever broken . I found a C WPF example on MSDN code dot msdn dot microsoft dot com slash chrome that seemed to indicate that one simply needed to stop handling WM NCPAINT and the glass would return but that does not seem to work in my own app . Is there a way to reset this state cleanly My code is in C++ and lives here : .. . .. . http : bengoodger.dreamhosters.com software chrome dwm .. . Answer : When toggling between Aero Glass and your custom rendered frame it you can use the following to explicitly control the non-client area rendering policy : Comment : Sweet this worked . I had tried this earlier but had the sense of policy inverted . Thanks", "Question : null .. . Answer : I have been trying to incorporate the Windows 7 taskbar APIs in a regular MFC MDI multiple document interface application . I am using Visual Studio 2008 where I have redirected the SDK path to use the Windows 7 SDK . The idea is to provide custom live-preview bitmaps for each of the childframe windows that gets created inside the application . Though I have been able to make progress there is a bit of struggle that I am going through with the final bits and pieces which do not seem to go right.Just wanted to know if I am missing anything . Ok .. . .. . 1 . so we need a proxy window which I have as the live-preview APIs work only on top level windows this is a disappointment . This window handles the WM DWMSENDICONICTHUMBNAIL and WM DWMSENDICONICLIVEPREVIEWBITMAP which provide the APIs with the required bitmaps for thumbnail preview and live-preview . case WM DWMSENDICONICTHUMBNAIL : .. . get the bitmap of the client window .. . set it as thumbnail .. . width HIWORD lParam .. . height LOWORD lParam .. . hBitmap CreateBitmapFromHandleAndResize hwnd width height .. . if hBitmap .. . .. . SetThumbnail hBitmap hwnd .. . DeleteObject hBitmap .. . .. . break .. . case WM DWMSENDICONICLIVEPREVIEWBITMAP : .. . hBitmap CreateBitmapFromHandle hwnd .. . if hBitmap .. . .. . SetThumbnailForPreview hBitmap hwnd .. . DeleteObject hBitmap .. . .. . break .. . .. . .. . 2 . Both the functions CreateBitmapFromHandleAndResize and CreateBitmapFromHandle create a DIB aka device independent bitmap which are food for the APIs DwmSetIconicThumbnail and DwmSetIconicLivePreviewBitmap . Problem faced : The problem I am facing is in the live-preview bitmap area where the following code does the work . The hBitmap is a 32-bit depth DIB which when saved on the disk seems to be a proper screenshot of the child window that I would like to display . But when I preview it somehow the title bar and the bitmap doesn t seem to be of the same quality as of the window itself . In fact it looks like an out of focus representation of the child window . I would like to have the same quality image displayed because the user should not feel the difference . Currently I take the print of the entire window including the frame and position the live-preview exactly on top of the existing window so that when the live-preview is on the user is deceived to see the bitmaps instead of actual child windows . I hope this is the expected behaviour here of live-preview . Please let me know if I am wrong here . One other problem was the offset . Not sure whether I am doing something wrong here . But it simply does not work when I just do a diff of the two rects . The correction factor of 8 and 14 was done with a trial and error method My questions in a nutshell : .. . .. . 1 . Is there anyway to get the bitmap being displayed with the same quality as that of the window itself so that no difference is being felt . 2 . Is the offset calculation correct . Why does it not work with straightforward RECT diffs 3 . Whether my understanding is correct with respect to the behaviour of live-preview in an MDI app .. . .. . In the thumbnail preview area : The the MDI main window is always displayed along with the other thumbnails . The .. . thumbnail images are individual representations of the child windows . In the live-preview area : If you hover over individual thumbnails the live-preview always displays the MDI main .. . frame along with the child windows . The difference here is that the user gets to see .. . that particular child window the one that the hover is on getting the focus and highlight . 4 . Am I doing the correct thing here or are there some additional things that I am not aware of Thanks in advance Ranjit Comment : Interesting that you say the live-preview only works with top level Windows it must be possible as IE9+ does it.. . Good luck", "Question : I m trying to enable Aero for my application a Firefox plugin running single process with the browser but I m failing to do so . The OS is Windows 7 64bit . This is the code : .. . .. . DwmEnableComposition should enable composition but it doesn t also the function returns : .. . .. . Any help would be appreciated thanks .. . Answer : You cannot enable DWM composition you can only request that it be disabled . When you re done needing it to be off you call .. . .. . From MSDN : .. . .. . DWM composition will be automatically enabled when all processes that have disabled composition have called DwmEnableComposition to enable it or have been terminated . You don t get to enable it you only to announce that you no longer need it disabled . The reason Microsoft doesn t let you enable composition is that you can t be trusted to not try to do it . http : blogs.msdn.com b oldnewthing archive 2003 09 03 54760.aspx .. . .. . You should also give up while you re behind . Again from MSDN : .. . .. . Note This function is deprecated as of Windows 8 Consumer Preview . DWM can no longer be programmatically disabled .", "Question : Currently I m trying to have a top-level window in Windows Forms with a custom frame using DevExpress SkinManager.EnableFormSkins function http : documentation.devexpress.com WindowsForms DevExpressSkinsSkinManager EnableFormSkinstopic and still have a shadow around the window when running on Windows 7 Aero . The window currently looks like this : .. . .. . enter image description here http : i.stack.imgur.com 2F7qp.png .. . .. . and I want it to look like this : .. . .. . enter image description here http : i.stack.imgur.com ps8BI.png .. . .. . I.e . have a soft shadow around the window . I did a lot of research and try-and-error including using CS DROPSHADOW asking the DevExpress support http : www.devexpress.com Support Center Issues ViewIssue.aspx issueid Q389001 reading on SO http : stackoverflow.com questions 1146365 other blogs http : www.bengoodger.com 2008 09 and MSDN documentation http : msdn.microsoft.com en-us library windows desktop aa969508 28v vs.85 29.aspx . Still nothing brings a shadow to my window . Although I think that my requirement simply is not possible to achieve I still want to take the chance and ask here on SO . I even thought of faking this by having a native Aero window behind my actual window but failed to implement.. . .. . .. . My question is : .. . .. . Is it possible to have a window with a custom-drawn non-client NC area and still get a shadow around this window when Aero is active .. . Answer : To summarize and close my own question after much of an effort I do think this is simply not possible . What I achieved is to simulate a shadow by using the technique being used in the Locus Effects article http : www.codeproject.com Articles 10879 Locus-Effects . Basically use a transparent window dynamically use alpha blending PNGs as simulated shadow and draw that around the sides and corners of the window move the transparent window when the real window moves etc . This works well but still looks kind of unprofessional to the user because of small things like shadow disapears when other window is being activated not behaving as expected . So my conclusion is : Not possible with a reasonable effort . Comment : I think this is possible override wndproc and put if m.Msg WM ACTIVATE DwmExtendFrameIntoClientArea this.Handle ref MARGIN MARGIN should be populated with 1 0 doesn t work e.g . Margin MARGIN 1 1 1 1 FrameBorderStyle also has to be FrameBorderStyle.Sizeable for this to work . so you have to do this : if m.Msg WM NCCALCSIZE m.WParam IntPtr.Zero m.Result IntPtr.Zero return to remove the frame border .", "Question : Currently I m trying to have a top-level window in Windows Forms with a custom frame using DevExpress SkinManager.EnableFormSkins function http : documentation.devexpress.com WindowsForms DevExpressSkinsSkinManager EnableFormSkinstopic and still have a shadow around the window when running on Windows 7 Aero . The window currently looks like this : .. . .. . enter image description here http : i.stack.imgur.com 2F7qp.png .. . .. . and I want it to look like this : .. . .. . enter image description here http : i.stack.imgur.com ps8BI.png .. . .. . I.e . have a soft shadow around the window . I did a lot of research and try-and-error including using CS DROPSHADOW asking the DevExpress support http : www.devexpress.com Support Center Issues ViewIssue.aspx issueid Q389001 reading on SO http : stackoverflow.com questions 1146365 other blogs http : www.bengoodger.com 2008 09 and MSDN documentation http : msdn.microsoft.com en-us library windows desktop aa969508 28v vs.85 29.aspx . Still nothing brings a shadow to my window . Although I think that my requirement simply is not possible to achieve I still want to take the chance and ask here on SO . I even thought of faking this by having a native Aero window behind my actual window but failed to implement.. . .. . .. . My question is : .. . .. . Is it possible to have a window with a custom-drawn non-client NC area and still get a shadow around this window when Aero is active .. . Answer : Can you try custom win forms shadow like this : Comment : Thanks @Marcin - I forgot to mention that I already tried that some time ago . That drop shadow has unfortunately nothing to do with the Aero shadow .", "Question : Good morning all . I m currently attempting to write a small application that s built around the features available through the Windows DWM API e.g . DWM Thumbnails . One such feature would be the ability to dynamically select an area of the thumbnail from within the application and have it scaled up zoomed in . It may be possible to do this from DWM with some sort of set region function but I wanted to try my own route first before going too far into the API . Having recently found an example for Delphi http : www.delphigeist.com 2011 01 01 archive.html I had hoped to expand from the demo and build something more specific . I set about moving the code over to a Firemonkey FM2 application as I much prefer the visual features of the framework compared to VCL . With a few tweaks I managed to get it built but unfortunately it seems as though DWMRegisterThumbnail wouldn t return a valid result when running in the FMX application despite the VCL version working flawlessly . I then looked a little further and decided to give Hydra a shot . I copied the working VCL example over to a Hydra Plugin and created a Firemonkey host application . I correctly set up both parts and compiled . The DLL loaded correctly and I could see the VCL plugin interface inside the FMX host as expected . However upon trying to view the DWM Thumbnail of a window I was once again faced with the same issue I had when running the non-hydra FMX application . I then went about creating a VCL host application just to be sure it wasn t an issue specific to the VCL-FMX interaction . I compiled the VCL host loaded in the VCL plugin and again I could see the VCL plugin inside the VCL host . However once again I was still finding that I couldn t view thumbnails from DWM . Evidently it s not a Firemonkey-VCL interaction issue . Therefore I ve concluded it s an issue with running the DWM code from a DLL . Ideally I d like to have an FMX host application simply because it s easier for me to drop a TSelection over the thumbnail and deal with scaling in that way e.g . very little code and no need to look for a custom component not to mention the additional bonuses such as MakeScreenshot . So to cut to the chase Is it possible to call the DWM API from a Hydra Plugin and or output a DWM Thumbnail to a Firemonkey surface .. . .. . The code used in my Hydra Plugin is identical to that which is used in the linked example http : www.delphigeist.com 2011 01 01 archive.html and the code used in my host application s is based upon the simple example on the Remobject Youtube Channel http : www.youtube.com watch v 1ADYE5EdIKQ . Comment : DWM works fine in a DLL . Why are you hiding the code from us Comment : You ve taken a very complicated route to get here Hydra DLLs Host apps and plugins Also I don t follow your logic for why you concluded it s an issue with running the DWM code from a DLL especially since it failed from a simple FMX app in the first place . Next time ask a SO question when you get to the first point ie DWMRegisterThumbnail failing for your FMX app : Comment : It wasn t a case of hiding the code it s just that I didn t want to quote what was in the source I linked and have a wall of text in addition to my question which is already pretty long . I concluded it was a DLL issue simply because I couldn t get it working from either a VCL or FMX host . It was probably a case of me incorrectly moving the code to said DLL and relying entirely on that and so an honest mistake on my part . .. . Answer : Without source code I will guess that you are not passing the proper windows handle to the DwmRegisterThumbnail http : msdn.microsoft.com en-us library windows desktop aa969521 28v vs.85 29.aspx function . you can use the FmxHandleToHWND http : docwiki.embarcadero.com Libraries XE3 en FMX.Platform.Win.FmxHandleToHWND function to convert the FMX Form handle to the Windows Handle . Try this modified version of the code .. . .. . enter image description here http : i.stack.imgur.com XqtKC.png Comment : Sure enough that s exactly what it was Thanks RRUZ :", "Question : Using GDI+ to draw various colors : .. . .. . You ll notice that no opaque color shows properly on glass : alt text http : i.stack.imgur.com UWInS.png .. . .. . How do i draw solid colors on glass .. . .. . You ll also notice that a fully opaque color is handled differently depending on what color it is : .. . .. . opaque black : fully transparent .. . opaque color : partially transparent .. . opaque white : fully opaque .. . .. . alt text http : i.stack.imgur.com TEG4S.png .. . .. . Can anyone point me to the documentation on the desktop compositor that explains how different colors are handled .. . .. . Update 3 .. . .. . You ll also notice that FillRectangle behaves differently than FillEllipse : .. . .. . FillEllipse with an opaque color draws an opaque color .. . FillRectangle with an opaque color draws partially or fully transparent .. . .. . alt text http : i.stack.imgur.com bAjH0.png .. . .. . Explanation for non-sensical behavior please . Update 4 .. . .. . Alwayslearning http : stackoverflow.com users 390122 alwayslearning suggested i change the compositing mode . From MSDN http : msdn.microsoft.com en-us library ms534093 28v VS.85 29.aspx : .. . .. . CompositingMode Enumeration .. . .. . The CompositingMode enumeration specifies how rendered colors are combined with background colors . This enumeration is used by the Graphics : : GetCompositingMode http : msdn.microsoft.com en-us library ms535700 28v VS.85 29.aspx and Graphics : : SetCompositingMode http : msdn.microsoft.com en-us library ms535808 28v VS.85 29.aspx methods of the Graphics class . .. . .. . CompositingModeSourceOver .. . .. . .. . Specifies that when a color is rendered it is blended with the background-color . The blend is determined by the alpha component of the color being rendered . .. . .. . CompositingModeSourceCopy .. . .. . .. . Specifies that when a color is rendered it overwrites the background-color . This mode cannot be used along with TextRenderingHintClearTypeGridFit . From the description of CompositingModeSourceCopy it sounds like it s not the option i want . From the limitations it imposes it sounds like the option i want . And with composition or transparency disabled it isn t the option i want since it performs a SourceCopy rather than SourceBlend : .. . .. . alt text http : i.stack.imgur.com 722JT.png .. . .. . Fortunately it s not an evil i have to contemplate because it doesn t solve my actual issue . After constructing my graphics object i tried changed the compositing mode : .. . .. . The result has no effect on the output : .. . .. . alt text http : i.stack.imgur.com Ati1E.png .. . .. . Notes .. . .. . Win32 native .. . not .NET i.e . native .. . not Winforms i.e . native .. . GDI+ i.e . native .. . .. . See also .. . .. . Aero : How to draw ClearType text on glass http : stackoverflow.com questions 4258330 aero-how-to-draw-cleartype-text-on-glass .. . Windows Aero : What color to paint to make glass appear http : stackoverflow.com questions 1870139 windows-aero-what-color-to-paint-to-make-glass-appear .. . Vista 7 : How to get glass color http : stackoverflow.com questions 3560890 vista-7-how-to-get-glass-color Comment : Needs more freehand circles . Comment : I must be missing something because the answer that jumps out at me is Use 254 for the alpha value . Do you really need that extra 1 256th opacity Comment : What happens if you use ExtTextOut instead of FillRectangle That is the normal way to draw rectangles in GDI not sure about GDI+ . Comment : What @Tergiver is referring to is that ExtTextOut has been used as a performance boost . It along with PatBlt was faster than FillRect . It doesn t require creation and management of a brush . .. . Answer : Do you want a stupid solution Here you get a stupid solution . At least it s just one line of code . And causing a small but ignorable side effect . .. . .. . Assumption .. . .. . When drawing solid right angle rectangles GDI+ tends to speed things up by drawing them in a faster method than drawing other stuff . This technique is called bitbliting . That is actually pretty clever since it is the fastest way to draw rectangles on a surface . However the rectangles to be drawn must fulfill the rule that they are right angled . This clever optimization was done before there was DWM Aero Glass and all the new fancy stuff . Internally bitblitting just copies the RGBA color data of pixels from one memory area to another so to say from your drawing on your window . Sadly enough the RGB format it writes is incompatible with glass areas resulting in the weird transparency effects you observed . Solution .. . .. . So here comes a twist . GDI+ can respect a transformation matrix with which every drawing can be scaled skewed rotated or whatever . If we apply such a matrix the rule that rectangles are right angled anymore is not guaranteed anymore . So GDI+ will stop bitblitting these and draw them in a fashion similar to the ellipses . But we also don t want to skew scale or rotate our drawing . We simply apply the smallest transformation possible : We create a transformation matrix which moves every drawing down one pixel : .. . .. . Now bitblitting is off rectangles are solid violets are blue . If there would be just an easier way to control that especially one not moving the drawings Thus said if you want to draw on the first pixel row use -1 as a Y coordinate . You can decide if this really is a solution for you or just ignore it .", "Question : this is my first post on this website .. . .. . Anyway I recently started trying to make a win32 app and its been going well so far . Then I wanted to add aero to my app as in not just the borders . So I looked it up online and one tutorial said I have to include dwmapi.h . This is in the Windows SDK . I don t know how to add this to Code : : Blocks . By the way I am using MinGW as my compiler . Also I tried using the MSVC 10 VS2010 compiler in Code : : Blocks but I got a bunch of errors when I tried to use it relating to the compilers linkers not being found . Any help would be great . .. . Answer : Unless you want to do custom drawing of controls and theme interfaces all you need to do to support the visual themes is to add the appropriate manifest http : msdn.microsoft.com en-us library windows desktop bb773175 28v vs.85 29.aspx . If you want to extend Aero Glass into your client area look at DwmExtendFrameIntoClientArea http : msdn.microsoft.com en-us library windows desktop aa969512 28v vs.85 29.aspx and family . There are various articles and tutorials online about how to use it http : msdn.microsoft.com en-us magazine cc163435.aspx . I don t know specifics of using it with Code : : Blocks though . Comment : well I want to make the whole window be able to have aero not just the border so I m not sure what that requires Comment : kinda like this image : link http : www.codeproject.com KB vista VGGlassIntro dlgclocklogo.png Comment : That s Aero Glass I ve updated the answer . Comment : I also figured out how to do the aero-glass in the whole window see my other question here : link http : stackoverflow.com questions 10022391 how-do-i-set-the-windowclassx-hbrbackground-alpha-channel-c Comment : In this question I was just asking how to add the SDK so I could use DwmExtendFrameIntoClientArea which is in dwmapi.h which I was having trouble setting up . But the SVN of Code : : Blocks had a preset for me to set up the SDK which worked .", "Question : I have built a .dll under WinXP that claims it can t find DWMAPI.DLL when it s loaded . The problem is that this DLL is a Vista DLL and this a known issue for XP users that have IE7 installed . The recommendation is to uninstall IE7 or repair the .NET Framework via Add Remove programs . I did the repair and nothing changed . I m not about to uninstall IE7 since there must be a better solution that s not the equivalent of reinstall windows . I ve read bad things about people who attempted to uninstall IE7 so I m reluctant to go that route . I am using C++ under Visual Studio 2003 7.1 . I don t see an option where I may have forced delay loading at application launch . I just used default settings when I created the DLL project . I did just now find an interesting option Linker- Input- Delay Loaded DLLs so I put DWMAPI.DLL in there to force it to be delay-loaded . However I get this when linking : .. . .. . . . and it of course didn t change a thing when trying to load my DLL . For the heck of it I added the whole tree of DLLs that lead to DWMAPI.DLL and I get the same message . For the record it s foundation.dll- shell32.dll- shdocvw.dll- mshtml.dll- ieframe.dll- dwmapi.dll . To be more specific about what I m doing I am writing a Maya plugin and get the always-helpful text in the script editor : .. . .. . I used Dependency Walker to initially track down the problem and that s what lead me to DWMAPI.DLL . These are the message depends gives me and DWMAPI.DLL is the only thing that has a yellow question mark next to it : .. . .. . Gerald is right . Maya is in fact using a different PATH than the Dependency Walker . My plug-in loads another DLL for image-processing that lives in the Maya plug-ins directory and depends found it with no problem but Maya didn t . I had to add plug-ins to the PATH in Maya.env . Seeing as this problem wasn t related to DWMAPI.DLL after all but DWMAPI is a common problem I ll post the best link I found about the DWMAPI issue on Novell s website here http : www.novell.com communities node 4372 handling-dwmapidll-dependency . Basically most programs will have this warning in depends.exe but if there is a delay-load icon next to it and you are sure that the program won t directly or indirectly call DWMAPI then it s fine . The problem is elsewhere . If the delay-load icon isn t present then you have to look at the DELAY and DELAYLOAD options in Visual Studio . The fact that depends gave me a warning and not an error was a clue to the fact that DWMAPI is not being loaded automatically . Comment : I hit this problem on one of our Windows 2003 servers . It s just a bloody console app and yet it or some other dependency claims to want dwmapi.dll as well . I d love to see a definitive answer to this . +1 . Comment : I think a lot of the views are from Google drive-bys . Just searching on dwmapi.dll has this as the 2nd result . .. . Answer : Try changing your setting in C C++- Code Generation- Runtime Library to Multi-Threaded rather than Multi-Threaded DLL . Comment : this worked for me - thanks" ] }
[ "yes-answer-long", "yes-answer-short" ]
desktop
UNK_RELATION
gimpfu@gimp@111
gimpfu -- gimpfu is a python-module similar to python-fu which provides an interface for writing plug-ins for @placeholder in python .
{ "confidence": [ 68.79685974121094, 61.804283142089844, 52.09557342529297, 51.79164123535156, 51.79164123535156, 51.73719024658203, 50.16482162475586, 49.85037612915039, 49.00638198852539, 48.912349700927734, 48.401283264160156, 48.091129302978516, 47.4174919128418, 46.785987854003906, 44.46277618408203, 44.228721618652344, 43.89432144165039, 43.01898956298828, 42.2800407409668, 42.21609115600586, 41.85884475708008, 41.36410903930664, 41.0498161315918, 40.64627456665039, 40.13309860229492, 38.37641906738281, 37.760902404785156, 37.53155517578125, 37.49543380737305, 37.49543380737305, 37.47699737548828, 37.33880615234375, 36.9041633605957, 36.82725524902344, 36.68187713623047, 36.42945861816406, 36.359039306640625, 36.27178955078125, 36.20241165161133, 35.868614196777344, 35.868614196777344, 35.46979522705078, 35.289710998535156, 35.14900207519531, 35.14900207519531, 35.14900207519531, 34.53423309326172, 34.114898681640625, 34.063133239746094, 34.01260757446289, 33.931060791015625, 32.90284729003906, 32.741851806640625, 32.741851806640625, 32.650604248046875, 32.61907196044922, 32.50335693359375, 32.416786193847656, 32.416786193847656, 32.416786193847656, 32.416786193847656, 32.416786193847656, 32.416786193847656, 32.416786193847656, 32.416786193847656, 32.416786193847656, 32.35015869140625, 31.831809997558594, 31.280391693115234, 31.280391693115234, 31.280391693115234, 31.280391693115234, 31.245655059814453, 31.123485565185547, 30.971542358398438, 30.773468017578125, 30.646408081054688, 30.646408081054688, 30.455364227294922, 30.449481964111328, 30.404449462890625, 30.32857894897461, 30.266193389892578, 30.266193389892578, 30.256847381591797, 29.91838836669922, 29.375835418701172, 29.361286163330078, 29.192184448242188, 29.192184448242188, 28.736507415771484, 28.736507415771484, 28.736507415771484, 28.736507415771484, 28.736507415771484, 28.736507415771484, 28.736507415771484, 28.736507415771484, 28.736507415771484 ], "content": [ "How can I pass a parameter in GimpFU python", "Thre is a Python Module in the GIMP Python bindings called gimpfu - I ve confused it for scriptfu which is the name given for scripts in scheme usually", "http : www.jamesh.id.au software pygimp http : www.gimp.org docs python pygimp.html .. . .. . We need to import the gimpfu module to get the examples to work .", "so at least my slow-morph will be faster .. . .. . 2- can i run plug-ins from the python-fu shell .", "helpful source : http : gimpbook.com scripting notes.html .. . .. . 2- can i run plug-ins from the python-fu shell .", "Many Python plugins for GIMP seem to include from gimpfu import so I m a little confused as to how I should be using these terms : script-fu gimp-fu plugin .. .", "I have been experimenting with GIMP v2.8.10 layer s manipulation programatically with custom gimpfu plug-ins .", "Is gimpfu strictly for Scheme", "First : The gimp and gimp-fu module only work when the Python script runs as a plug-in from within GIMP .", "most commonly gimpfu which is an omnibus module that imports other PyGimp modules .", "Yes you can access to your registered plug-in in python-fu console as : .. . .. . And can call it like : .. . .. . Also in python-fu dialog console you can click to Browse . . option and find your registered plug-in and then click Apply to import it to python-fu console .", "A Python script could be called Python-fu instead although I prefer calling it simply a Python script for GIMP", "Python scripts are technically plug-ins and should therefore be in the plug-ins subdirectory Users julio Library Application Support GIMP 2.8 plug-ins .", "This tutorial explains how to run GIMP in batch mode from the command-line with Python-fu : Python-Fu 4 - Using Python-Fu in Gimp Batch Mode http : www.exp-media.com content extending-gimp-python-python-fu-plugins-part-4 .", "I m writing a python plugin for GIMP .", "Just chek any other python-fu plug-in - the first list on the parameters list is where you specify the input parameters .", "Filters Python-Fu Console brings up the console with .. . .. . so once again python seems to be working .", "The script is integrated into the Gimp menu and the information provided in the Python-Fu console is correct .", "Gimp says this when it fails to install my python plug-in : .. . .. . Cool .", "Is C not python and is invalid python syntax try :", "According to the docs http : www.gimp.org docs python these appear to be : .. . .. . a parameter type one of the PARAM constants .. . .. . But nowhere in those docs do I find PARAM constants and I ve not found them introspecting any of pdb gimp or gimpfu .", "NB : there is a Python interactive console you can access using filters- python- console - it is much easier to code for these plug-ins and scripts if you test your pdb calls and image manipulations interactively first .", "I d try import gimpfu then access those constants like gimpfu.RGBA IMAGE .", "However my speciality is to write code I m not designer and I thought it looked like a python s gimpfu module specific question .", "In script-fu it was just an integer but when I put the same integer into python-fu it just says it s the wrong type .", "I m writing a python script for Gimp to export all the layers of an image to BMPs .", "Update : .. . .. . I did this : subprocess.Popen gimp --batch-interpreter python-fu-eval -b import sys sys.path.append home antoni4040 import gimpp from gimpfu import gimpp.main but even if the console says batch command executed successfully nothing happens.. . .. . .. . Update2 :", "Run python -tt yourscript.py .", "I tried the print function but it does not write anything to the python-fu console or the dev console that launches with Gimp .", "But if I execute the script within the Python-Fu console or from the action menu nothing happens .", "The article Using Python-Fu in Gimp Batch Mode http : www.exp-media.com content extending-gimp-python-python-fu-plugins-part-4 was an excellent resource for learning how to call gimp plugins from the command-line .", "Gimp runs python as a separate process not embedded try this : gimp -i --batch-interpreter python-fu-eval -b import os os.system ps s os.getpid pdb.gimp quit 1", "For example you have a Python module for use by a GIMP Python plugin and you want to test portions of it say doctest it without starting GIMP .", "http : stackoverflow.com questions 9955834 how-do-i-output-info-to-the-console-in-a-gimp-python-script .. . .. . http : www.exp-media.com content extending-gimp-python-python-fu-plugins-part-2 .. . .. . 4- is there a way to run gimp on windows from a shell to see output", "I ve been trying to switch from script-fu to python-fu and I can t figure out what I m supposed to pass for the image parameter .", "Instead of script-fu which uses Scheme I d recommend using the GIMP-Python binding for this since it is far easier to manipulate files and listings .", "So for Image you either get the Image as parameter for your python-fu function or on a call to pdb.gimp image new .", "These should be : .. . .. . Python 2.5 2.6 or 2.7 Python-gtk Pycairo .. . .. . And finally GIMP itself .", "While if you want to run your script in a batch mode please take a look at this http : www.exp-media.com content extending-gimp-python-python-fu-plugins-part-4", "i need to comment out import gimpfu as it raises errors and i don t get gtk working .", "Project interpreter http : i.stack.imgur.com RbFkW.jpg .. . .. . I also added a path to gimpfu.py to get rid of the error on from gimpfu import : .. . .. .", "EDITED HEAVILY with some new information and a bounty .. . .. . I am trying to create a plug in in python for gimp .", "After that you should be able to import pdb2 module from Python-Fu console of gimp : .. . .. . Now in your plug-in code for example in your main function add following code : .. . .. . Next go to gimp and run your python plug-in when you run your plug-in it will run and then wait when reach to above code .", "It s python from here on out baby .", "I m using PIL 1.1.7 with Python 2.7.9 .", "For Python builtins like abs all any etc .", "You are almost there - the pdb module is just exposed at module level with the from gimpfu import so no need to do gimp.pdb . procname - just pdb . procname it would work though .", "Also I found some of the procedures I needed on this question http : stackoverflow.com questions 20549908 python-fu-select-copy-paste .", "As for the original question : .. . .. . No it is not possible to come up with other prefixes like these - they are hardcoded into GIMP Python -- But you can create a plug-in that takes no such prefix .", "You don t have to run it from a python console .", "Just searching for python-fu turned up 3 links which would be sufficient to resolve your problem in the first page of results .", "at least on linux : python print goes to stdout at least to sys.stdout which is no longer fd 1 and in the gui python console that goes via pipe to the window in a batch run it goes to gimp s stdout .", "Usually the PyGimp modules are installed with GIMP and not installed in the Python directories GIMP just futzes with PYTHON PATH when it starts a Python interpreter so that the PyGimp modules are found", "I ve been at Gimp : python script not showing in menu http : stackoverflow.com questions 17334993 gimp-python-script-not-showing-in-menu and it didn t help me .", "what OS and version of python are you running", "I m trying to write a sort of wrapper library for GIMP to make my generative art projects easier but i m having a problem interfacing with gimpfu from a my wrapper module .", "In order to develop Gimp scripts using Python-fu I have followed gimp users article http : www.gimpusers.com tutorials install-python-for-gimp-2-6-windows In short you need to download install the following : .. . .. . 1 .", "On the web I can find various example on gimp scripting with python .", "Python 32-bit from here https : www.python.org download releases 2.6.9 .", "In Python you don t need semi-colons at the end of the line .", "In Python it is a separator : it says This statement has finished but there are more statements on this lines .", "Keyword args must follow non-keyword args in Python .", "as noted in How do I output info to the console in a Gimp python script", "Therefore it is easy to write a Python solution for converting these files to the format you need .", "After directing PyCharm to use the Python interpreter included with GIMP : .. . .. .", "It can them import other Python modules as any normal program .", "http : stackoverflow.com questions 9955834 how-do-i-output-info-to-the-console-in-a-gimp-python-script 15637932 15637932 .. . .. . add .. . .. . at the beginning of the plug in file .", "First install winpdb http : winpdb.org download and also wxPython http : www.wxpython.org Winpdb GUI depends on wxPython .. . .. . Note that Gimp has own python interpreter and may you want to install winpdb to your default python interpreter or to gimp python interpreter .", "I tried running pieces of this code in a python script and works perfectly fine .", "But usually we don t put in the non executable python files such as libraries for example .", "A common cause of Python plugins silently not appearing in GIMP is syntax errors .", "I see right at the start Enabling internal Python.. . so that should be good .", "flip.py is the gimp plug-in and should be placed in your plug-ins directory which was .gimp-2.6 plug-ins flip.py in my case .", "I tried using the console under Filters Python-Fu Console - however this kept telling me line 1 was the issue.. . which I think we can all agree is not the case .", "If you install winpdb to your default python interpreter then you need to copy rpdb2.py installed file to . . Lib site-packages of gimp python interpreter path .", "where is the output http : stackoverflow.com questions 20763448 writing-gimp-plugins-in-python-on-windows-how-do-i-debug-where-is-the-output .", "Them you can t just use pygimp as a standalone Python module - it has to be launched from within GIMP to be able to use the program libraries and code .", "Usually people who created .pyd files provide their .py wrappers for example PyQt module : no native python implementation just signatures .", "debug python gimp plugin with Winpdb http : i.stack.imgur.com 1TuJL.jpg .. . .. . helpful resource : Installing PyGIMP on Windows http : stackoverflow.com questions 14592607 installing-pygimp-on-windows .. . .. . Useful sources : .. . .. . http : wiki.gimp.org index.php Hacking : Plugins .. . .. . http : www.gimp.org docs python index.html .. . .. . http : wiki.elvanor.net index.php GIMP Scripting .. . .. . http : www.exp-media.com gimp-python-tutorial .. . .. . http : coderazzi.net python gimp pythonfu.html .. . .. . http : www.ibm.com developerworks opensource library os-autogimp os-autogimp-pdf.pdf", "As for inserting the new lines using Python code it is as simple as using the powerful langage syntax and methods for string manipulation to do that .", "I used the GIMP Python scripting http : www.gimp.org docs python index.html to create a gimp plugin which can do a tonne of stuff including the layers you mentioned .", "http : stackoverflow.com questions 18969820 plugins-usually-dont-work-how-do-i-debug .. . .. . .. . .. . in some places i saw recommendations to run it from within the python-fu console .", "But how do you create a new prefix for your own plug-ins", "GIMP s plug-ins can t close otherwise open image windows .", "I wrote a Python script for Gimp which does a few modifications on a selected area and then saves it as a PNG .", "And finally be sure to set the script as executable by running chmod a+x on the Python file .", "Second : GIMP plug-ins runs are Python 2.x 2.7 in these days - and therefore any declared class should inherit from object - declaring a class without inheriting from object as you do will only bring you unexpected problems - although that may not be your problem right now .", "If your script has any syntax errors it won t show up in the menu at all - the above code does have a syntax-error on the very first line of code from gimpfu import missing a space before the .. . .. . One easy way to check for syntax errors is to try to run the script as a stand alone it will fail when it can t find the gimpfu module outside GIMP but by that time the syntax is parsed - another way is to use a lint utility like pyflakes to check the syntax .", "So those wouldn t work : .. . .. . To debug your script interactively open a python-fu console from gimp : .. . .. . Take a look at this http : gimpbook.com scripting web site .", "You can either start GIMP in a console a terminal so that any debugging print from your plugin goes to the console or use Filters Python-Fu Console as suggested in another answer .", "I ve just started learning about Gimp scripting using Python and was wondering how do I output text to the console", "Also can you post the output of usr bin env python --version on your system", "@Avedo : See this question http : stackoverflow.com questions 8236380 why-is-semicolon-allowed-in-this-python-snippet as to why not .", "The main reason : a semicolon in Python is not the same as a semicolon in other languages like C++ or Java .", "This seems to be a bit of leakiness in the abstraction between GIMP s Procedure database and the Python wrapper around it .", "how would i go about connecting it to a python process that runs inside gimp", "helpful sources : .. . .. . How do I output info to the console in a Gimp python script", "I am a newbie to python but I would like to give a shout-out first to winpdb and then to this comment for integrating winpdb into GIMP .", "they don t take into account color profiles or color spaces though - one should use GEGL and its Python bindings for that" ] }
{ "confidence": [ 85.75103759765625, 80.17587280273438, 72.58389282226562, 71.86450958251953, 70.09329986572266, 68.73957061767578, 65.55682373046875, 65.10997009277344, 63.526763916015625, 63.22636413574219, 61.44983673095703, 60.78714370727539, 59.93238830566406, 58.954376220703125, 56.031829833984375, 54.052818298339844, 50.90544891357422, 49.47978210449219, 47.663963317871094, 46.822547912597656 ], "content": [ "Question : I have several PNG images which I need to combine as individual layers in a new GIMP XCF image . I need to perform this task many times so a script based solution would be best . So far i tried to play around with the batch mode of GIMP but failed miserably . .. . Answer : Instead of script-fu which uses Scheme I d recommend using the GIMP-Python binding for this since it is far easier to manipulate files and listings . If you check filters- Python- Console you will b dropped into an interactive mode - at the bottom of it there will be a Browse button which lets you select any of GIMP s procedures in its API and paste it directly in this console . There is as an API call to load a file as a layer - pdb.gimp file load layer - .. . .. . this however brings the image to memory but do not add it to the image - you have to call pdb.gimp image insert layer afterwards .. . .. . You can type this directly in the interactive console or check one of my other GIMP-related answers or some resource on GIMP-Python on the web to convert it to a plug-in which won t require pasting this code each time you want to perform the task : .. . .. . The second to last line img .. . picks a needed reference to an open image in GIMP - you could also create a new image using pdb calls if you d prefer example bellow . The file list is a hardcoded space separated string in the snippet above but you can create the file list in any of the ways allowed by Python . For example to get all the .png file names in a c : Documents and Settings My user Pictures folder you could do : .. . .. . To create an image programatically : Comment : Whow great I think this will do it for me Comment : Very nice indeed Comment : Is gimpfu strictly for Scheme Many Python plugins for GIMP seem to include from gimpfu import so I m a little confused as to how I should be using these terms : script-fu gimp-fu plugin .. . Comment : Thre is a Python Module in the GIMP Python bindings called gimpfu - I ve confused it for scriptfu which is the name given for scripts in scheme usually", "Question : On the web I can find various example on gimp scripting with python . http : www.jamesh.id.au software pygimp http : www.gimp.org docs python pygimp.html .. . .. . We need to import the gimpfu module to get the examples to work . Where can we get the installer of PyGIMP on Windows It seems the project is dead and the links are broken . .. . Answer : In order to develop Gimp scripts using Python-fu I have followed gimp users article http : www.gimpusers.com tutorials install-python-for-gimp-2-6-windows In short you need to download install the following : .. . .. . 1 . Python 32-bit from here https : www.python.org download releases 2.6.9 . 2 . All in one 32-bit from here http : ftp.gnome.org pub GNOME binaries win32 pygtk 2.24 . 3 . Gimp 2.6 32-bit from here https : download.gimp.org pub gimp v2.6 windows . Then you need to create your-plugin.py file in C : Users MyUsername.gimp-2.6 plug-ins .. . .. . P.S : Restart your gimp after adding code or modifying your register function in order to take effect each time .", "Question : I m trying to write a sort of wrapper library for GIMP to make my generative art projects easier but i m having a problem interfacing with gimpfu from a my wrapper module . The following plugin code runs fine and displays an image with horizontal lines drawn across it : .. . .. . the line class is defined in basicObjects and is functioning as expected however if I try to replace pdb.gimp pencil background Line.pointcount Line.printpoints with Line.draw background and add a draw function to the line class as such : .. . .. . the image is not rendered and there is no messages displayed in the gimp error console.How can I make a pdb call from an external file Would making the wrapper a separate plug-in help somehow .. . Answer : First : The gimp and gimp-fu module only work when the Python script runs as a plug-in from within GIMP . I don t know what you are calling external file - but the entry-point has always to be a plug-in script . It can them import other Python modules as any normal program . Second : GIMP plug-ins runs are Python 2.x 2.7 in these days - and therefore any declared class should inherit from object - declaring a class without inheriting from object as you do will only bring you unexpected problems - although that may not be your problem right now . The class declaration looks alright but your example on calling it does not - Line.draw background seems to indicate you are trying to call the method on the class itself not on an instance of your line class .", "Question : What I want to do is to open gimp from a python program with subprocess.Popen perhaps and in the same time gimp will start with a python script that will open an image and add a layer.. . Well how can I achieve that I wish GIMP had better documentation.. . Update : .. . .. . I did this : subprocess.Popen gimp --batch-interpreter python-fu-eval -b import sys sys.path.append home antoni4040 import gimpp from gimpfu import gimpp.main but even if the console says batch command executed successfully nothing happens.. . .. . .. . Update2 : Comment : Have you done a web search for relevant resources Just searching for python-fu turned up 3 links which would be sufficient to resolve your problem in the first page of results . Comment : OK I found some tutorials but how am I going to make the script start with GIMP Comment : Just out of curiosity do you really need gimp for what you are doing Is it something you could accomplish with PIL It might be worth looking over PIL s docs at pythonware.com products pil http : www.pythonware.com products pil Comment : I m trying to sync Blender with GIMP.. . I really think I need GIMP for that.. . : D Comment : This tutorial explains how to run GIMP in batch mode from the command-line with Python-fu : Python-Fu 4 - Using Python-Fu in Gimp Batch Mode http : www.exp-media.com content extending-gimp-python-python-fu-plugins-part-4 . .. . Answer : Ok I finally got it working . I used the GIMP Python scripting http : www.gimp.org docs python index.html to create a gimp plugin which can do a tonne of stuff including the layers you mentioned . Then you can just run gimp from the command-line passing arguments to the python gimp script . The article Using Python-Fu in Gimp Batch Mode http : www.exp-media.com content extending-gimp-python-python-fu-plugins-part-4 was an excellent resource for learning how to call gimp plugins from the command-line . The example below will load the specified image into gimp flip it horizontally save and exit gimp . flip.py is the gimp plug-in and should be placed in your plug-ins directory which was .gimp-2.6 plug-ins flip.py in my case . flip.py .. . .. . from the terminal one could run this : .. . .. . or from Windows cmd : .. . .. . or you can run the same from a python script using : .. . .. . I tested both to make sure they work . You should see the image get flipped after each script run . Comment : Thanks for your time give me some to check it.. . Comment : First of all when GIMP opens Blender freezes and I don t want that.. . Secondly I get this : Error : unknown : 136596754 eval : unbound variable : python-gimpp my .py file is called gimpp.. . . Comment : what OS and version of python are you running Comment : did you try the above outside of blender just to make sure its working . Try it in a terminal and see if it works Comment : Well I get this : Error : unknown : 155405586 eval : unbound variable : python-flip.. . It can t find it I think.. .", "Question : EDITED HEAVILY with some new information and a bounty .. . .. . I am trying to create a plug in in python for gimp . on windows this page http : gimpbook.com scripting notes.html suggests running it from the shell or looking at .xsession-errors .. . .. . neither work . I am able to run it from the cmd shell as .. . .. . gimp-2.8.exe -c --verbose as suggested by http : gimpchat.com viewtopic.php f 9 t 751 http : gimpchat.com viewtopic.php f 9 t 751 .. . .. . this causes the output from pdb.gimp message .. . to go to a terminal . BUT this only works when everything is running as expected i get no output on crashes . i ve tried print statements they go nowhere . this other guy had a similar problem but the discussion got sidetracked . Plugins usually don t work how do I debug http : stackoverflow.com questions 18969820 plugins-usually-dont-work-how-do-i-debug .. . .. . .. . .. . in some places i saw recommendations to run it from within the python-fu console . this gets me nowhere . i need to comment out import gimpfu as it raises errors and i don t get gtk working . .. . .. . my current problem is that even if the plugin registers and shows on the menu when there is some error and it does not behave as expected i don t know where to start looking for hints . i ve tried clicking in all sorts of contexts w - w o selection with w o image . I was able to copy and execute example plugins from http : gimpbook.com scripting and i got the working but when a change i make breaks something i know not what and morphing an existing program line by line is tedious . gimp has to be shut down and restared each time .. . .. . .. . .. . so to sum up - .. . .. . 1- can i refresh a plugin without restarting gimp so at least my slow-morph will be faster .. . .. . 2- can i run plug-ins from the python-fu shell . as opposed to just importing them to make sure they parse . 3- is there an error-log i am missing or something to that effect 4- is there a way to run gimp on windows from a shell to see output am i better off under cygwin or virtualbox. . 5- i haven t yet looked up how to connect winpdb to an existing process . how would i go about connecting it to a python process that runs inside gimp thanks .. . Answer : as noted in How do I output info to the console in a Gimp python script http : stackoverflow.com questions 9955834 how-do-i-output-info-to-the-console-in-a-gimp-python-script 15637932 15637932 .. . .. . add .. . .. . at the beginning of the plug in file .", "Question : I have been experimenting with GIMP v2.8.10 layer s manipulation programatically with custom gimpfu plug-ins . I successfully achieved to select rotate scale and translate dinamically a portion of the existing layer : .. . .. . Some of the code inside the plug-in : .. . .. . Simplified for relevance . All these instructions work . The problem .. . .. . If I remove the last line gimp layer translate everything else works . Else if I remove the line containing gimp layer scale instead everything else works . But if I try to use all these functions together gimp layer translate crashes with RuntimeError .. . .. . The procedure gimp-layer-translate has been called with incorrect ID for layer arg . Probably is trying to operate with an unexisting layer . I don t know why it fails like this . If they work individually why not together I wonder . References .. . .. . I use to start from the template.py in gimpbook.com http : gimpbook.com scripting as a starting point to build the plug-ins due to it seems to have a solid structure to enclose the code into undo blocks . My main source of information about pdb is this website http : www.efalk.org Docs Python gimp 0.html that I found on Google . Also I found some of the procedures I needed on this question http : stackoverflow.com questions 20549908 python-fu-select-copy-paste . Also one of my previous questions http : stackoverflow.com questions 33402897 where-can-i-select-my-personal-plugins-in-gimp may help as a reference on how to start making custom plug-ins for gimp . What keeps me stuck .. . .. . I m not sure if the cause is a gimp s bug or my code is wrongly implemented . Due to some of the code posted on the answer to the linked question http : stackoverflow.com questions 20549908 python-fu-select-copy-paste I am wondering if I am overkilling the available memory after all I didn t know that I had to destroy the objects with an specific procedure call until I found out on that answer . What happens if I don t delete them I wonder . Will they persist in RAM until I close GIMP or will they generate persistent files that will flood the GIMP system Honestly I have no idea about the consequences of ignoring this issue . .. . Answer : Remove the assignment when working with the layer . Here is how you destroy the float layer variable : .. . .. . So do this instead :", "Question : How can I pass a parameter in GimpFU python .. . Answer : Just chek any other python-fu plug-in - the first list on the parameters list is where you specify the input parameters . Each item on the list is a tuple of a minimum of 4 elements : The paramter type for example PF FILE or PF STRING a string with the parameter name a string with the textual description of the parameter used as label and tooltip and a default-value . . PF FILE however had been broken for a while and will work again on GIMP 2.8.12 - in other versions you can t use PF FILE to select a not-yet exiting filename . Comment : do you have any idea if it s possible to add a dropdown menu Comment : You can use PF OPTIONS IIRC it starts as radio buttons but when you have more than a few options it becomes a drop-down . Comment : no - that does not work and tbh there is no PF OPTIONS at least not in the documentation Comment : Sorry - it is PF OPTION without any magic - just a drop down list .", "Question : On the web I can find various example on gimp scripting with python . http : www.jamesh.id.au software pygimp http : www.gimp.org docs python pygimp.html .. . .. . We need to import the gimpfu module to get the examples to work . Where can we get the installer of PyGIMP on Windows It seems the project is dead and the links are broken . .. . Answer : PyGIMP is part of GIMP GNU Image Manipulation Program and can only work in together with it . For Linux distributions it is often found in a different package - but its code lies inside the GIMP code source and on Windows it is installed alongside GIMP . As far as I know the GIMP 2.8 installer for Windows should come with all dependencies Python interpreter included for it to work - else all you need to do is to have the dependencies for it to work installed before installing GIMP . These should be : .. . .. . Python 2.5 2.6 or 2.7 Python-gtk Pycairo .. . .. . And finally GIMP itself . Them you can t just use pygimp as a standalone Python module - it has to be launched from within GIMP to be able to use the program libraries and code . It is relatively easy to create a script that would respond to xmlrpc or similar method to stay quietly running awaiting requisitions from external scripts to process images with GIMP tough .", "Question : EDITED HEAVILY with some new information and a bounty .. . .. . I am trying to create a plug in in python for gimp . on windows this page http : gimpbook.com scripting notes.html suggests running it from the shell or looking at .xsession-errors .. . .. . neither work . I am able to run it from the cmd shell as .. . .. . gimp-2.8.exe -c --verbose as suggested by http : gimpchat.com viewtopic.php f 9 t 751 http : gimpchat.com viewtopic.php f 9 t 751 .. . .. . this causes the output from pdb.gimp message .. . to go to a terminal . BUT this only works when everything is running as expected i get no output on crashes . i ve tried print statements they go nowhere . this other guy had a similar problem but the discussion got sidetracked . Plugins usually don t work how do I debug http : stackoverflow.com questions 18969820 plugins-usually-dont-work-how-do-i-debug .. . .. . .. . .. . in some places i saw recommendations to run it from within the python-fu console . this gets me nowhere . i need to comment out import gimpfu as it raises errors and i don t get gtk working . .. . .. . my current problem is that even if the plugin registers and shows on the menu when there is some error and it does not behave as expected i don t know where to start looking for hints . i ve tried clicking in all sorts of contexts w - w o selection with w o image . I was able to copy and execute example plugins from http : gimpbook.com scripting and i got the working but when a change i make breaks something i know not what and morphing an existing program line by line is tedious . gimp has to be shut down and restared each time .. . .. . .. . .. . so to sum up - .. . .. . 1- can i refresh a plugin without restarting gimp so at least my slow-morph will be faster .. . .. . 2- can i run plug-ins from the python-fu shell . as opposed to just importing them to make sure they parse . 3- is there an error-log i am missing or something to that effect 4- is there a way to run gimp on windows from a shell to see output am i better off under cygwin or virtualbox. . 5- i haven t yet looked up how to connect winpdb to an existing process . how would i go about connecting it to a python process that runs inside gimp thanks .. . Answer : 1- can i refresh a plugin without restarting gimp so at least my slow-morph will be faster .. . .. . You must restart GIMP when you add a script or change register . No need to restart when changing other parts of the script -- it runs as a separate process and will be re-read from disk each time . helpful source : http : gimpbook.com scripting notes.html .. . .. . 2- can i run plug-ins from the python-fu shell . as opposed to just importing them to make sure they parse . Yes you can access to your registered plug-in in python-fu console as : .. . .. . And can call it like : .. . .. . Also in python-fu dialog console you can click to Browse . . option and find your registered plug-in and then click Apply to import it to python-fu console . helpful source : http : registry.gimp.org node 28434 .. . .. . 3- is there an error-log i am missing or something to that effect To log you can define a function like this : .. . .. . And use it in your code whenever you want . To see log of that in gimp program open Error Console from Dockable Dialogs in Windows menu otherwise a message box will be pop-up on every time you make a log . Also you can redirect stdin and stdout to a file : .. . .. . When you do that all of exceptions will go to err.txt and all of print out will be go to log.txt Note that open file with a option instead of w to keep log file . helpful sources : .. . .. . How do I output info to the console in a Gimp python script http : stackoverflow.com questions 9955834 how-do-i-output-info-to-the-console-in-a-gimp-python-script .. . .. . http : www.exp-media.com content extending-gimp-python-python-fu-plugins-part-2 .. . .. . 4- is there a way to run gimp on windows from a shell to see output am i better off under cygwin or virtualbox. . I got some error for that but may try again .. . .. . .. . 5- i haven t yet looked up how to connect winpdb to an existing process . how would i go about connecting it to a python process that runs inside gimp First install winpdb http : winpdb.org download and also wxPython http : www.wxpython.org Winpdb GUI depends on wxPython .. . .. . Note that Gimp has own python interpreter and may you want to install winpdb to your default python interpreter or to gimp python interpreter . If you install winpdb to your default python interpreter then you need to copy rpdb2.py installed file to . . Lib site-packages of gimp python interpreter path . After that you should be able to import pdb2 module from Python-Fu console of gimp : .. . .. . Now in your plug-in code for example in your main function add following code : .. . .. . Next go to gimp and run your python plug-in when you run your plug-in it will run and then wait when reach to above code . Now to open Winpdb GUI go to . . PythonXX Scripts and run winpdb .pyw . Note that when using Winpdb for remote debugging make sure any firewall http : winpdb.org docs requirements on the way has TCP port 51000 open . Note that if port 51000 is taken Winpdb will search for an alternative port between 51000 and 51023 . Then in Winpdb GUI from File menu select attach and give pass as password to it and then you can see your plug-in script on that list select it and start your debug step by step . debug python gimp plugin with Winpdb http : i.stack.imgur.com 1TuJL.jpg .. . .. . helpful resource : Installing PyGIMP on Windows http : stackoverflow.com questions 14592607 installing-pygimp-on-windows .. . .. . Useful sources : .. . .. . http : wiki.gimp.org index.php Hacking : Plugins .. . .. . http : www.gimp.org docs python index.html .. . .. . http : wiki.elvanor.net index.php GIMP Scripting .. . .. . http : www.exp-media.com gimp-python-tutorial .. . .. . http : coderazzi.net python gimp pythonfu.html .. . .. . http : www.ibm.com developerworks opensource library os-autogimp os-autogimp-pdf.pdf", "Question : EDITED HEAVILY with some new information and a bounty .. . .. . I am trying to create a plug in in python for gimp . on windows this page http : gimpbook.com scripting notes.html suggests running it from the shell or looking at .xsession-errors .. . .. . neither work . I am able to run it from the cmd shell as .. . .. . gimp-2.8.exe -c --verbose as suggested by http : gimpchat.com viewtopic.php f 9 t 751 http : gimpchat.com viewtopic.php f 9 t 751 .. . .. . this causes the output from pdb.gimp message .. . to go to a terminal . BUT this only works when everything is running as expected i get no output on crashes . i ve tried print statements they go nowhere . this other guy had a similar problem but the discussion got sidetracked . Plugins usually don t work how do I debug http : stackoverflow.com questions 18969820 plugins-usually-dont-work-how-do-i-debug .. . .. . .. . .. . in some places i saw recommendations to run it from within the python-fu console . this gets me nowhere . i need to comment out import gimpfu as it raises errors and i don t get gtk working . .. . .. . my current problem is that even if the plugin registers and shows on the menu when there is some error and it does not behave as expected i don t know where to start looking for hints . i ve tried clicking in all sorts of contexts w - w o selection with w o image . I was able to copy and execute example plugins from http : gimpbook.com scripting and i got the working but when a change i make breaks something i know not what and morphing an existing program line by line is tedious . gimp has to be shut down and restared each time .. . .. . .. . .. . so to sum up - .. . .. . 1- can i refresh a plugin without restarting gimp so at least my slow-morph will be faster .. . .. . 2- can i run plug-ins from the python-fu shell . as opposed to just importing them to make sure they parse . 3- is there an error-log i am missing or something to that effect 4- is there a way to run gimp on windows from a shell to see output am i better off under cygwin or virtualbox. . 5- i haven t yet looked up how to connect winpdb to an existing process . how would i go about connecting it to a python process that runs inside gimp thanks .. . Answer : I am a newbie to python but I would like to give a shout-out first to winpdb and then to this comment for integrating winpdb into GIMP . This same procedure works as well for LibreOffice 4 . If I may be allowed to vent a little I have a moderate amount of experience with Visual Basic more or less at a hobbiest level but I decided a few years ago to get into OpenOffice when MicroSoft threatened to abandon VB for the Mac . I don t want to say that VB in OpenOffice was onerous but the lack of anything resembling an IDE is tedious . Now with winpdb I will never be looking back . It s python from here on out baby . Steps taken : .. . .. . -- As suggested by Omid above I first got winpdb running out of GIMP relatively painless . -- I copied the rpdb2.py file to C : Program Files LibreOffice 4 program python-core-3.3.3 lib site-packages rpdb2.py . Win 7 LibreOffice 4.4.03 .. . .. . -- I edited the HelloWorld.py file in C : Program Files LibreOffice 4 share Scripts python directory saved in WinPDb HelloWorld.py to same directory . WinPDb HelloWorld appears under LibreOffice Macros in the Macro Selector see https : wiki.openoffice.org wiki Python as a macro language for more on that . can t show you a picture - posting as a guest", "Question : I have been experimenting with GIMP v2.8.10 layer s manipulation programatically with custom gimpfu plug-ins . I successfully achieved to select rotate scale and translate dinamically a portion of the existing layer : .. . .. . Some of the code inside the plug-in : .. . .. . Simplified for relevance . All these instructions work . The problem .. . .. . If I remove the last line gimp layer translate everything else works . Else if I remove the line containing gimp layer scale instead everything else works . But if I try to use all these functions together gimp layer translate crashes with RuntimeError .. . .. . The procedure gimp-layer-translate has been called with incorrect ID for layer arg . Probably is trying to operate with an unexisting layer . I don t know why it fails like this . If they work individually why not together I wonder . References .. . .. . I use to start from the template.py in gimpbook.com http : gimpbook.com scripting as a starting point to build the plug-ins due to it seems to have a solid structure to enclose the code into undo blocks . My main source of information about pdb is this website http : www.efalk.org Docs Python gimp 0.html that I found on Google . Also I found some of the procedures I needed on this question http : stackoverflow.com questions 20549908 python-fu-select-copy-paste . Also one of my previous questions http : stackoverflow.com questions 33402897 where-can-i-select-my-personal-plugins-in-gimp may help as a reference on how to start making custom plug-ins for gimp . What keeps me stuck .. . .. . I m not sure if the cause is a gimp s bug or my code is wrongly implemented . Due to some of the code posted on the answer to the linked question http : stackoverflow.com questions 20549908 python-fu-select-copy-paste I am wondering if I am overkilling the available memory after all I didn t know that I had to destroy the objects with an specific procedure call until I found out on that answer . What happens if I don t delete them I wonder . Will they persist in RAM until I close GIMP or will they generate persistent files that will flood the GIMP system Honestly I have no idea about the consequences of ignoring this issue . .. . Answer : I fixed it by switching the floating layer to a new Layer instance before executing those two functions . So I make the following combination : .. . .. . The problem seems to be that after executing some procedures over the layer it becomes None it s like if it was automatically removed from memory.. . . This solution allows me to execute 2 or 3 more operations.. . It s not a complete solution . I ll keep researching Comment : It sees you didn t pay enough attention on the @Emil s answer : These procedrues you are calling do not return a resulting layer They transform the layer internally . Just stop prefixing your calls with fixed layer 0 the first layer you reference at te beggining of your script remains a valid reference . Comment : jsbueno to be fair SabsSBM posted this before I posted my answer . This answer works but for the wrong reasons .", "Question : I followed this http : www.ibm.com developerworks library os-autogimp tutorial and this is what I have come up so far : .. . .. . But the plugin woun t show up in gimp menu I m using gimp 2.8 . Gave the file chmod a+x rights . Might the file location be a problem : .gimp-2.8 plug-ins src resize.py The src is because of eclipse . .. . Answer : If your script has any syntax errors it won t show up in the menu at all - the above code does have a syntax-error on the very first line of code from gimpfu import missing a space before the .. . .. . One easy way to check for syntax errors is to try to run the script as a stand alone it will fail when it can t find the gimpfu module outside GIMP but by that time the syntax is parsed - another way is to use a lint utility like pyflakes to check the syntax . Other run-time errors that your script might contain should appear in a pop-up window when running it from GIMP - at that stage you can only update your script and retry it from the menus . If you change the input or output parameters from your script though you have to restart GIMP . And yes the file location is a problem - you must put your code in a directory specified for Plug-ins in GIMP s preferences - by default these are .gimp-2.8 plug-ins or usr lib 64 gimp 2.0 plug-ins - with no src - if your IDE does not let you specify where to put your files you have to copy them there yourself or add the src dirs in GIMP preferences . Comment : Made some changes : added the missing space and moved the script to usr lib gimp 2.0 plug-ins . Now it appears in menu . Thanks . Comment : Another tip for debuging : start gimp from command-line and you can see what kind of error messages appear .", "Question : So what am I doing wrong here According to the method itself it takes three rather-well documented arguments . I pass it the three things it wants and I receive a TypeError . So : .. . .. . 1 . What am I doing wrong 2 . Is there a reference manual for this 3 . In the tuples for the arguments there s a 0 a 4 and a 4 . What are these magic-constants According to the docs http : www.gimp.org docs python these appear to be : .. . .. . a parameter type one of the PARAM constants .. . .. . But nowhere in those docs do I find PARAM constants and I ve not found them introspecting any of pdb gimp or gimpfu . Just to be complete : the obvious help pdb.gimp file load isn t really that helpful : Comment : does help pdb.gimp file load return anything useful Comment : Edited to show it s output . No not really though it was how I learned about .params and .nparams . .. . Answer : Some additional resources that I ve been finding useful to answer questions like this for myself are here : .. . .. . API docs http : developer.gimp.org api 2.0 .. . gimpfu.py source https : git.gnome.org browse gimp tree plug-ins pygimp gimpfu.py n133 .. . .. . For example I think the PARAM types are these enum values for defining the type of each parameters that the plugin takes : presumably PF is for PythonFu and PDB is for Procedure Database", "Question : I m trying to write a gimp script using pythonfu . However when I try to run script locally I get an error .. . .. . I gather that the script might be only loadable through gimp . However the script doesn t appear at gimp menus . In that case how do I get the error output Comment : registry.gimp.org node 24452 http : registry.gimp.org node 24452 Comment : @hus787 thanks . This is a plugin that I try to write myself . What I want to know is how to tell why the plugin doesn t load . .. . Answer : Paraphrasing the original post : I wrote a Python GIMP plugin and installed it in the proper place but it doesn t appear in GIMP s Filter menu so how do I debug it The most common cause is that you didn t give execute permission on the plugin s source .py file when you copied it to the proper place . It s a known quirk of GIMP that it won t read Python plugin source that doesn t have execute permission . Another question might be : my plugin appears in the GIMP Filter menu but it silently doesn t work as I expect how do I debug it You can either start GIMP in a console a terminal so that any debugging print from your plugin goes to the console or use Filters Python-Fu Console as suggested in another answer . If your plugin crashes the GIMP GUI will show you the traceback or it will appear in a console you started GIMP in . Another question might be : can I debug Python scripts that import PyGimp modules most commonly gimpfu which is an omnibus module that imports other PyGimp modules . For example you have a Python module for use by a GIMP Python plugin and you want to test portions of it say doctest it without starting GIMP . You might be able to install PyGimp into the Python directories by the standard : download PyGimp .configure make make install . I haven t tried that and could not easily find a downloadable source package for PyGimp . Usually the PyGimp modules are installed with GIMP and not installed in the Python directories GIMP just futzes with PYTHON PATH when it starts a Python interpreter so that the PyGimp modules are found Or in your environment of the shell or your IDE you could change PYTHON PATH so that it includes the subdirectory of your GIMP installation that holds the PyGimp modules .", "Question : I ve been at Gimp : python script not showing in menu http : stackoverflow.com questions 17334993 gimp-python-script-not-showing-in-menu and it didn t help me . Here s what I tried step by step : .. . .. . 1 . I m running Gimp 2.8.16 on Mac OS X 10.9.5 from the command-line with gimp as my .bashrc file includes .. . .. . I look at the terminal output I see lots of messages but nothing pops out as a problem do you want the dump here . I see right at the start Enabling internal Python.. . so that should be good . 2 . Filters Python-Fu Console brings up the console with .. . .. . so once again python seems to be working . 3 . Because of this tip here http : gimpchat.com viewtopic.php f 8 t 12145 p164633 I tried running a Python script . I opened an image and ran Filters Render Clouds Fog . Works like a charm in the console I do get a few type-conversion warnings when the window is fired up : .. . .. . I searched my computer and foggify.py is actually in Applications GIMP.app Contents Resources lib gimp 2.0 plug-ins foggify.py so this proves that Python is working but not that it s loading scripts . I m a little confused as foggify.py only has 77 lines not 30312 . 4 . GIMP Preferences Folders Scripts shows GIMP should load the following directories for scripts : .. . .. . I m not using Applications GIMP.app Contents Resources share gimp 2.0 scripts but it has a lot of .scm files so probably all in Scheme . I never added anything here myself . 5 . I only have a single script : ls -l Users julio Library Application Support Gimp 2.8 scripts yields .. . .. . nothing else .. . .. . 6 . Here s my minimal.py : .. . .. . 7 . I run gimp with minimal.py already in the scripts directory indicated above and I can t see any Minimal item in the Tools menu . I also tried the variation below which didn t work either : Comment : welcome to GIMP scripting . If you check the GIMP answers in my profile you will find a couple more hints maybe more than on the documentation . .. . Answer : Python scripts are technically plug-ins and should therefore be in the plug-ins subdirectory Users julio Library Application Support GIMP 2.8 plug-ins . Comment : Thank you @xenoid you just saved my life . I was at this for four hours yesterday if you can believe that . When starting Gimp via the command-line it now shows it s going through the script : Querying plug-in : Users julio Library Application Support GIMP 2.8 plug-ins minimal.py", "Question : I want to write a Gimp-Python plugin in order to export all SVG paths from the current image . This seems quite simple but I am stuck with pdb calls I may not be calling procedures correctly so I need your help . Here is my code : .. . .. . After opening Gimp and loading an image when I click on my plugin i receive this error : .. . .. . Error when calling gimp-procedural-db-proc-info : Procedure vectors-export-to-file not found .. . .. . When I search in Gimp PDB I can find gimp-vectors-export-to-file so what is the problem How should I call this procedure .. . Answer : You are almost there - the pdb module is just exposed at module level with the from gimpfu import so no need to do gimp.pdb . procname - just pdb . procname it would work though . But what is really causing your error is the procedure is actually called gimp vectors export to file - and not vectors export to file - .. . .. . You should be calling it as : .. . .. . Also note that for most PDB calls requiring integer identifiers of image items you should pass an apropriate Python object representing that item instead . The Vectors object for saving individual Vectors is obtained by calling other PDB functions . For saving all vectors instead of the 0 listed in the function description pass None . NB : there is a Python interactive console you can access using filters- python- console - it is much easier to code for these plug-ins and scripts if you test your pdb calls and image manipulations interactively first . To get a reference to your image in the interactive console type : .. . .. . img gimp.image list 0 Comment : Great but I still have a wrong parameter type error when I call pdb.gimp vectors export to file img C : Users Public Documents output.svg 0 My string is apparently not correct and no matter the path I always get an error . Any idea Comment : Sorry - all file operations in GIMP take both a file name and raw file name paramter for historical reasons - just pass the same parameter to both . That is : repeat the file path on the parameter you are passing 0 . Comment : Sorry but trying pdb.gimp vectors export to file img C : Users Public Documents output.svg C : Users Public Documents output.svg still doesn t work . Also according to pdb documentation the function vectors export to file doesn t take a raw file in parameter . The solution must be very simple but I am still stuck . Comment : Sorry again -- It is not expected that any PDB call from Python will take raw int identifiers as parameters . In the case of calls involving vectors you should pass a full Vectors object which you obtain by using calls like pdb.gimp image get active vectors . In this case for saving all vectors instead of 0 pass it None as the third parameter . I will edit the answer to reflect this Comment : Thank you so much for your help my simple plugin works as expected", "Question : So what am I doing wrong here According to the method itself it takes three rather-well documented arguments . I pass it the three things it wants and I receive a TypeError . So : .. . .. . 1 . What am I doing wrong 2 . Is there a reference manual for this 3 . In the tuples for the arguments there s a 0 a 4 and a 4 . What are these magic-constants According to the docs http : www.gimp.org docs python these appear to be : .. . .. . a parameter type one of the PARAM constants .. . .. . But nowhere in those docs do I find PARAM constants and I ve not found them introspecting any of pdb gimp or gimpfu . Just to be complete : the obvious help pdb.gimp file load isn t really that helpful : Comment : does help pdb.gimp file load return anything useful Comment : Edited to show it s output . No not really though it was how I learned about .params and .nparams . .. . Answer : This seems to be a bit of leakiness in the abstraction between GIMP s Procedure database and the Python wrapper around it . run mode AFAICT is a special child and is an optional keyword-only param . E.g . this works : .. . .. . As this source http : gimpbook.com scripting notes.html says : .. . .. . Procedure Browser to Python : .. . .. . Change dashes to underscores .. . Omit any run-mode parameter .. . Change -1 to None .. . .. . emphasis mine you don t really need to omit it it just has to be a keyword arg . As my example shows . Keyword args must follow non-keyword args in Python . You can also leave it off and I m guess it assumes some sort of default . I don t know which though . Presumably the PARAM constants I was curious about in the question reveal this except I can t find in docs or introspection the symbolic named versions of the integers .", "Question : I have been trying to run these sample scripts http : gimpbook.com scripting specially helloworld.py and pytemplate.py to get the hang on using python code in GIMP . I m specially interested in pytemplate.py which is intended to show how to do something over an existing image hopefully the current state of the image which has the focus .. . .. . As far as I know I have to place them in .gimp-2.8 plug-ins in my GIMP s personal folder and give them run permissions chmod +x somescript.py . The gimpfu.register function has a kwarg that seems to control where the trigger option would appear . It looks like : .. . .. . However my GIMP has the menus in Spanish language somehow this makes me being afraid that it can interfere in rendering the trigger .. . Anyway I restarted GIMP and tried to follow the menu path from my GIMP s main window s menu and didn t find anything at all . The point is : What else do I have to do to run the script and see what happens Can I actually control where the trigger option to run my script will appear with menu kwarg .. . Answer : I reviewed permissions and they were 400 . I was sure to have executed chmod +x py . Well finally I found the triggers . Comment : should I erase it now the place to ask that question is in the meta http : meta.stackoverflow.com . Also your question is probably more relevant in Graphics Design http : graphicdesign.stackexchange.com than in StackOverflow I think . Comment : Well it was a retoric question for myself.. . my bad . I was thinking what to do about it options in mind where : flag it meta Delete it directly Thanks for helping take the right decision : Comment : Thanks for informing of Graphics Design existence . However my speciality is to write code I m not designer and I thought it looked like a python s gimpfu module specific question . Maybe my guess was a bad call.. . I ll check it out in Graphic s design Help Center.. . Comment : I opened a meta question http : meta.stackoverflow.com questions 309050 would-it-be-an-error-to-delete-directly-my-question in order to see what would be the most wise action to take about this kind of questions.. .", "Question : I want to debug some script and I followed Omid Raha suggestion from this post Writing gimp plugins in python on windows- how do i debug where is the output http : stackoverflow.com questions 20763448 writing-gimp-plugins-in-python-on-windows-how-do-i-debug-where-is-the-output . The system work so I am able to step into my code but this error happen when the execution reaches .. . .. . The error is : .. . .. . pythonw.exe : 3588 : LibGimpBase-ERROR : gimp wire write msg : the wire protocol has not been initialized .. . .. . I placed at the beginning of my code file : .. . .. . If I comment this line and run the code without debugger it runs correctly . Thank you .. . .. . Marco .. . Answer : GIMP plug-ins can only be run from inside GIMP itself - they won t work if they are started by an external debugging system from outside GIMP . I don t know this rpdb2 tool - but it suggests it is possible to attach to the running process at least the one rpdb I know of does - so had you tried starting your script from within GIMP and attaching the debugger later The error at the import step as you show it is due to not running from inside GIMP Comment : Yes I know that GIMP plug-ins can only run from inside GIMP itself . My plug-in is started from GIMP and then later the external debugger is attached to the process . The Winpdb debugger runs outside GIMP and uses another pythonw.exe in a different folder this can be the cause of the error Thank you Comment : Certainly it is . The error message tells exactly that : Wire protocol not initialized is a way to tell it cannot talk to GIMP . Keep in mind that if you can t setup debugging you can make PDB and other calls from GIMP s interactive Python console - that is how I find out the exact semantics of the various calls .", "Question : I need to develop a plugin for GIMP and would like to stay with PyCharm for Python editing etc . FYI I m on Windows . After directing PyCharm to use the Python interpreter included with GIMP : .. . .. . Project interpreter http : i.stack.imgur.com RbFkW.jpg .. . .. . I also added a path to gimpfu.py to get rid of the error on from gimpfu import : .. . .. . enter image description here http : i.stack.imgur.com 1DYZO.jpg .. . .. . This fixes the error on the import even when set to Excluded . I experimented with setting this directory to Sources Resources and Excluded and still get errors for constants such as RGBA-IMAGE TRANSPARENT FILL NORMAL MODE etc . enter image description here http : i.stack.imgur.com K2EFG.jpg .. . .. . Any idea on how to contort PyCharm into playing nice for GIMP plugin development Not really running any code from PyCharm it s really just being used as a nice code editor facilitate revisions control etc . Comment : Are you getting actual errors or just warnings Comment : Probably very important clue : what does the error say If you hover your mouse over the red-curly-line what does PyCharm say Comment : Have you tried importing those things explicitly I d try import gimpfu then access those constants like gimpfu.RGBA IMAGE . Comment : Sorry busy week.. . The code runs just fine in GIMP . No issues there . It really is a question about setting up PyCharm so it can resolve these symbols . I searched the entire GIMP installation tree C : Program Files GIMP 2 and the above-mentioned symbol names are not found . This probably means they are part of a C library that has been compiled . Not sure it is possible to provide PyCharm with what it needs to know about these symbols without polluting the code with unnecessary band-aids . Again the code is correct and my plugin runs perfectly under GIMP . .. . Answer : As you find this variables are part of .pyd files dll files https : docs.python.org 2 faq windows.html is-a-pyd-file-the-same-as-a-dll for Python . PyCharm can t get signatures for content of this files . For Python builtins like abs all any etc . PyCharm has it s own .py files that uses only for signatures and docs . You can see it if you ll click on some of this funcs and go to it s declaration : .. . .. . enter image description here http : i.stack.imgur.com aVxSC.png .. . .. . PyCharm will open builtins.py file in it s folder with following content : .. . .. . As you see functions are defined and documented but have no implementation because their implementation created with C and placed somewhere in binary file . Pycharm can t provide such wrapper for every library . Usually people who created .pyd files provide their .py wrappers for example PyQt module : no native python implementation just signatures . Looks like Gimp doesn t have such wrapper for some of variables . Only way I see is to create some sort of own wrapper manually . For example create gimpfu signatures.py with following content : .. . .. . And import it while you re creating plugin : .. . .. . Not elegant but better then nothing . .. . .. . .. . One more note about gimpfu.py s path . If I understand correctly you just added this path to project . It may work but correct way is to add it to project s PYTHONPATH in project preferences . See this link http : stackoverflow.com a 24766898 1113207 for detailed manual . Comment : Thanks for this . I ll go through it in detail tomorrow . I was afraid the only way to approach this might be an undesirable artificial import . Comment : If this is something GIMP should provide and someone would contribute it preferably in a way that is updated during a build then we d certainly accept this into GIMP . Comment : The answer given isn t exactly the right answer but I ll award the bounty nonetheless . Comment : @MichaelSchumacher perhaps a connection between you and the folks at JetBrains authors of PyCharm might facilitate this I am not in a position to contribute to GIMP working 16 hour days already but perhaps JetBrains might have interest in having PyCharm work seamlessly for plugin development ." ] }
[ "yes-answer-long", "yes-answer-short" ]
gimp
UNK_RELATION
css-font-weight@svg@82
css-font-weight -- the font-weight css property and the font-weight attribute on @placeholder objects specifies the weight or boldness of the font being displayed .
{ "confidence": [ 114.89907836914062, 109.51558685302734, 105.63140869140625, 103.50434875488281, 103.50434875488281, 99.15713500976562, 98.83110809326172, 95.22297668457031, 94.3281478881836, 91.37770080566406, 91.1435546875, 89.2134017944336, 88.80148315429688, 88.5822525024414, 88.5822525024414, 88.5822525024414, 88.5822525024414, 88.5822525024414, 87.11009979248047, 85.55878448486328, 85.36646270751953, 84.35938262939453, 83.3084487915039, 82.37004852294922, 82.37004852294922, 80.173583984375, 80.173583984375, 78.58200073242188, 78.23069763183594, 77.54106140136719, 77.54106140136719, 77.54106140136719, 77.54106140136719, 77.54106140136719, 77.54106140136719, 76.73843383789062, 76.73843383789062, 76.7315444946289, 76.57371520996094, 75.73831176757812, 74.92709350585938, 73.4017105102539, 72.86493682861328, 72.6502456665039, 72.17787170410156, 72.15181732177734, 71.82927703857422, 71.56451416015625, 69.6328125, 69.22258758544922, 67.99124145507812, 67.71819305419922, 67.00029754638672, 67.00029754638672, 67.00029754638672, 65.37810516357422, 65.23165130615234, 65.00927734375, 63.48145294189453, 63.035186767578125, 62.866783142089844, 61.59879684448242, 60.54911804199219, 60.54911804199219, 60.54911804199219, 60.25306701660156, 60.03491973876953, 57.67289733886719, 56.606239318847656, 54.91627502441406, 54.50067901611328, 54.50067901611328, 54.50067901611328, 54.50067901611328, 53.633453369140625, 53.323570251464844, 53.323570251464844, 53.323570251464844, 53.01554489135742, 53.01554489135742, 52.60713195800781, 52.322608947753906, 51.860660552978516, 51.860660552978516, 50.966041564941406, 50.410667419433594, 49.244754791259766, 49.07867431640625, 48.76958084106445, 48.29314422607422, 47.77814483642578, 47.29495620727539, 46.8822135925293, 46.8822135925293, 46.8822135925293, 46.8822135925293, 46.140071868896484, 46.137062072753906, 44.69007873535156, 44.69007873535156 ], "content": [ "About font-weight .. . .. . The font-weight property selects the weight of the font .", "This is a question about the CSS font-weight property .", "Lets Make clear CSS font-weight Property .. . .. . Definition and Usage .. . .. . The font-weight property sets how thick or thin characters in text should be displayed .", "how about this this .css font-weight 400", "this .css font-weight 400 this failed too .", "The method I use is : fontWeight this .css font-weight if fontWeight bold fontWeight 700 alert bold this .css font-weight normal", "Font weight does not have to be defined for such font-families since HelveticaNeue-Thin is of course only one font weight .", "Is your font-weight attribute declared after the font-size attribute", "developer.mozilla.org en-US docs Web CSS font-weight https : developer.mozilla.org en-US docs Web CSS font-weight", "599 is not a valid value for the font-weight property", "The font weight would still be applied .", "A few folks had to search for b and b in an HTML snippet and I fixed my problem by .. . .. . Using this : this .find strong b .css font-weight normal .. . .. . Instead of : this .css font-weight normal .", "Possible duplicate of How to declare CSS font-face with font-weight and font-style properly", "Note if your browser doesn t have that font with that weight the browser will interpret the font as that weight .", "font-weight - Fonts W3.org https : www.w3.org TR CSS21 fonts.html propdef-font-weight", "From what I understand value 500 is the normal font weight and value 700 is the default font weight for bold .", "Then when you go over 900 the font weight reverts back to the normal font weight .", "So you should be using font-weight : 600 for semi bold or font-weight : 700 for bold .", "I m trying to use font-weight to adjust how bold the font is .", "For the font-weight http : http : http : www.w3.org TR CSS2 fonts.html propdef-font-weight property the value 550 is invalid .", "Is there any way to use other weight for my font", "The code that works but changes color instead of font-weight : .. . .. . The code that I thought would do the same thing but with font-weight : .. . .. . Thank you", "I m wondering if I can change the font weight because I already tried to use the font-weight CSS property but it seems that it only works for either normal or bold weight so I cannot use any weight in between .", "Why is it that text font weight cannot be set to NORMAL in my case", "However setting opacity : .99 or lower displays the text in the assigned font-weight .", "I think lighter and bolder are relative to the computed font weight of the parent element .", "Can you try adding the weight name to the font family", "If I load a google font that comes with 400 and 700 weights but in my CSS I use font-weight : 550 what does the browser do", "But you can read W3C : w3.org TR CSS21 fonts.html propdef-font-weight https : www.w3.org TR CSS21 fonts.html propdef-font-weight", "There is no guarantee on how a UA will map font faces within a family to weight values .", ".. . .. . Rendering when bold .. . .. . The normal font-weight for bold is 700 .", "However when I put 599 it did not change the font-weight at all .", "But when I put 600 it jump to the default font weight of bold .", "Default font weight is 400 and fonts work in multiples of 100 .", "font-weight works from 100 to 900 in increments of 100 .", "the actual font weight is determined by other CSS rules or falling back to defaults as-if the declaration were not there .", "This link helps explain https : developer.mozilla.org en-US docs Web CSS font-weight", "@WoJ i believe it just darkens the font more but as the spec states There is no guarantee that there will be a darker face for each of the font-weight values", "According to MDN https : developer.mozilla.org en-US docs Web CSS font-weight and W3.org http : www.w3.org TR CSS2 fonts.html propdef-font-weight : .. . .. . If the exact weight given is unavailable then the following heuristic is used to determine the weight actually rendered : .. . .. . If a weight greater than 500 is given the closest available darker weight is used or if there is none the closest available lighter weight .", "Consider using : .. . .. . label font-weight : 400 important .. . .. . Also specify the font-size as your label appears to be displaying a larger than normal font-size .", "Where a 3-number system is used first numeral describes font weight second numeral describes font width third numeral describes position .", ".. . font-weight - W3.org https : www.w3.org TR CSS21 fonts.html propdef-font-weight .. . .. . The above quote is taken from W3.org s Recommendation mean it is the standard to be used for all browsers .", "Not too helpful mate - he knows what the font-weight CSS property is he s just needs an assist understanding how it all works .", "I have everything down and I am using the same font font-weight font-size and I checked this with a chrome extension whatfont .", ".. . .. . Rendering when weight isn t loaded .. . .. . When a font weight isn t found the browser is meant to follow a set of rules to find the nearest available option for it .", "When I include a Google font in my website and I just include the Normal 400 weight I am still being able to use the bold italic etc weight although it hasn t been really included .", "when an alert function is provided instead of font-weight change the alert showed up .", "You need to get font that supports font-weight of different sizes you should be able to specify the font weight as a number for example : .. . .. . But it will depend on how you are defining them in your font-face declaration you should put the font weights in there for example here is one for HelveticaNeue-Light .. . .. . Then you can use : .. . .. . And it will use that font-face definition you can define multiple of these with different font-weights that match up to various files of different weights should you need to .", "The funny thing is that I can create a function that do the same thing but with color in stead of font-weight .", "http : stackoverflow.com questions 35477618 how-to-declare-css-font-face-with-font-weight-and-font-style-properly - the answer is bolder and lighter are meaningless in @font-face because they are relative values they only have meaning in a CSS style rule i.e .", "css may not apply to dom because Normal font means no css just use as default font .", "Once the font family s weights are mapped onto the CSS scale missing weights are selected as follows : .. . .. . If the desired weight is less than 400 weights below the desired weight are checked in descending order followed by weights above the desired weight in ascending order until a match is found .", "Try to overwrite it with : .. . .. . html label.sectiontext font-weight : inherit .. . .. . The html and tag name will give it some priority .", "Or does a font defines itself what bold means in its case it would be a specific numerical weight I guess", "fontStyle .. . border : 1px solid black .. . font-weight : 599 .. . .. . .. . .. . div id fontStyle fontStyle div", "The normal is also working for me but if you have problem try setting the font-weight to empty string It would apply default which would be normal .", "In CSS the font-weight can only be a value that is a multiple of 100 from 100 to 900 .. . .. . Example : https : www.google.com fonts QuickUsePlace : quickUse Family : Open+Sans .. . .. . So why it is so", "As per my answer below you should try font-weight : 300 for a lighter version it is possible the font file you have has multiple weights embedded", "If you want the font-weight of a piece of text that needs to be bolder than normal text you will need to use bolder or the alternative lighter as the space between the base font weight and the bolder must always be greater unless it is at it s limit .", "I have a button that looks like this : .. . .. . HTML : .. . .. . CSS : .. . .. . I want JavaScript to switch the font-weight of the words Dark and Light so that when I click the button the word Light gets bold and Dark gets normal .", "If a weight less than 400 is given the closest available lighter weight is used or if there is none the closest available darker weight .", "I ve tested a .ttf font on IE and it worked if the font was on the same folder as the css html .", "When you hit this though the all of the font-weight : 300 texts on the page mess up with no apparent way to return them to normal except by refreshing the page .", "Well you ve used 599 you can only use numbers 100 200 300 etc. . so font-weight : 600 would work", "Chrome http : i.stack.imgur.com QS7yf.png .. . .. . I ve noticed this only happens when I have a span inside a button and the font-weight is exactly 500 .", "The details of how numeric values are mapped to font weights are covered in the spec https : www.w3.org TR CSS2 fonts.html font-boldness which states : .. . .. . The values 100 to 900 form an ordered sequence where each number indicates a weight that is at least as dark as its predecessor .", "Normal weight is 400 .", "Is bold a shortcut for a specific numeric weight", "To achieve certain font weights for the local font Helvetica Neue one must use other font-family values such as HelveticaNeue-Thin 200 etc .", "If the desired weight is greater than 500 weights above desired weight are checked in ascending order followed by weights below the desired weight in descending order until a match is found .", "If a weight of exactly 400 is given then 500 is used .", "If a weight of exactly 500 is given then 400 is used .", "Weight defines from thin to thick characters .", "599 is not a recognized weight since it isn t an increment of 100 .", "I tried it already and just wanted to know if it would be possible to apply that css property to an external font", "jsfiddle or such .. . .. . Without seeing an actual code sample I d say that the h4 settings override your sectiontext class settings and you would need to add h4 .sectiontext font-weight : normal", "Also : .. . .. . There is no guarantee that there will be a darker face for each of the font-weight values for example some fonts may have only a normal and a bold face while others may have eight face weights .", "For a visual check out any of the fonts at Google Fonts : https : www.google.com fonts .. . .. . You ll notice there are multiple-files each representing a different font weight and or style such as italic .", "By the way is font-weight : lighter relative to something", "font-weight : lighter is relative to the parent element .", "Tried -webkit-font-smoothing : antialiased though no change .", "What s the font you re using", "How can I set the light one on font-face since font-weight : light does not exist", "I m trying to use font with 10 weights https : www.myfonts.com fonts font-fabric muller .", "There s an interesting article here http : bigelowandholmes.typepad.com bigelow-holmes 2015 07 on-font-weight.html on some of the history of specifying font weights in print .", "I want to use it as single font-family .", "I d like to reduce the weight of a my ascii degree character deg in my html document .", "But is the problem due to the font set bold by b and b in my PHP code", "why don t you create 2 classes one with normal font one with bold font and you assign remove these depending on which class is assigned to an element", "EDIT : I can get 300 Normal and 600 Italic to work if I use @font-face to point to a CSS file for a font I made up Duplicate Neue which in-turn points to the .woff files for Helvetica Neue s variants.. .", "Other weights will require an accompanying font file as well .", "Also font becomes bolder in Chrome", "I ve got a question for that. . Why so many font formats", "It stopped working once I put it on a font folder though .", "What if I have a font that only has the .ttf format", "But as i said i want to use single font-family for all of them .", "I m using the @font-face rule to display the VAG Rounded font on my website .", "So ultimately it will find if the base font is used if not it will find anything lower than the base font and then if nothing is still not found it will try to find anything higher than it .", "In particular font appears thinner than it should be .", "try this : body -webkit-font-smoothing : subpixel-antialiased" ] }
{ "confidence": [ 116.10977935791016, 112.57521057128906, 111.38066101074219, 110.25099182128906, 110.06522369384766, 110.05437469482422, 109.96393585205078, 109.16437530517578, 108.97241973876953, 108.27301788330078, 106.95025634765625, 104.8786392211914, 103.77387237548828, 102.39752960205078, 97.7038345336914, 97.3495864868164, 97.01213836669922, 95.39494323730469, 95.18019104003906, 92.8360595703125 ], "content": [ "Question : I ve googled for the last two days and browsed this site too but found no similar problem . I am new to jQuery and hope this is no duplicate of other posts . Why is it that text font weight cannot be set to NORMAL in my case I use Firefox 17.0.1 but the function to set the font to normal never works in an earlier version of Firefox as well . UPDATED : My problem was finally solved last night after browsing this site and found quite a similar thing . A few folks had to search for b and b in an HTML snippet and I fixed my problem by .. . .. . Using this : this .find strong b .css font-weight normal .. . .. . Instead of : this .css font-weight normal . Problem solved Thanks to everyone for lending me a hand yesterday . Comment : have you checked in firebug . css may not apply to dom because Normal font means no css just use as default font . Comment : it seems to work fine jsfiddle.net bXyd8 http : jsfiddle.net bXyd8 Comment : It really doesn t work . But when I checked it out the fold which looks bold is actually not bold . The method I use is : fontWeight this .css font-weight if fontWeight bold fontWeight 700 alert bold this .css font-weight normal Comment : how about this this .css font-weight 400 Comment : this .css font-weight 400 this failed too . But is the problem due to the font set bold by b and b in my PHP code .. . Answer : Lets Make clear CSS font-weight Property .. . .. . Definition and Usage .. . .. . The font-weight property sets how thick or thin characters in text should be displayed . Default value : normal .. . .. . so your code is working because you setting default-value to text but difference is you just not visually see the changes . Comment : In fact I populated a table through PHP and did all the formatting within the PHP code . I m wondering if that might be the culprit . BTW I am using a CSS snippet but I have no idea how to apply it to a table there are two in the page for all the td s in the 2nd table . Comment : @asepm that is not because final result will be shown by browser . Comment : @asepm so you need to ask appropriate question here...update your question or ask it again with all the code and necessary information..Thanx Comment : Dipesh thanks for tidying up my post . How come I don t see the change bold to normal visually but I do see the change from normal to bold Well I can tell the difference between bold and not bold LOL.. . This in fact is what I see in my PC and notebook .", "Question : I m trying to use font-weight to adjust how bold the font is . From what I understand value 500 is the normal font weight and value 700 is the default font weight for bold . However when I put 599 it did not change the font-weight at all . But when I put 600 it jump to the default font weight of bold . Same results from value 600-900 . Then when you go over 900 the font weight reverts back to the normal font weight . Why is this happening fontStyle .. . border : 1px solid black .. . font-weight : 599 .. . .. . .. . .. . div id fontStyle fontStyle div Comment : Use only hundreds like 600 or 500 100 to 900 Comment : @vlzvl Makes me wonder what the two extra zeros are for . .. . Answer : The details of how numeric values are mapped to font weights are covered in the spec https : www.w3.org TR CSS2 fonts.html font-boldness which states : .. . .. . The values 100 to 900 form an ordered sequence where each number indicates a weight that is at least as dark as its predecessor . The keyword normal is synonymous with 400 and bold is synonymous with 700 . Keywords other than normal and bold have been shown to be often confused with font names and a numerical scale was therefore chosen for the 9-value list . 599 is not a valid value for the font-weight property", "Question : I ve googled for the last two days and browsed this site too but found no similar problem . I am new to jQuery and hope this is no duplicate of other posts . Why is it that text font weight cannot be set to NORMAL in my case I use Firefox 17.0.1 but the function to set the font to normal never works in an earlier version of Firefox as well . UPDATED : My problem was finally solved last night after browsing this site and found quite a similar thing . A few folks had to search for b and b in an HTML snippet and I fixed my problem by .. . .. . Using this : this .find strong b .css font-weight normal .. . .. . Instead of : this .css font-weight normal . Problem solved Thanks to everyone for lending me a hand yesterday . Comment : have you checked in firebug . css may not apply to dom because Normal font means no css just use as default font . Comment : it seems to work fine jsfiddle.net bXyd8 http : jsfiddle.net bXyd8 Comment : It really doesn t work . But when I checked it out the fold which looks bold is actually not bold . The method I use is : fontWeight this .css font-weight if fontWeight bold fontWeight 700 alert bold this .css font-weight normal Comment : how about this this .css font-weight 400 Comment : this .css font-weight 400 this failed too . But is the problem due to the font set bold by b and b in my PHP code .. . Answer : The normal is also working for me but if you have problem try setting the font-weight to empty string It would apply default which would be normal . Live Demo http : jsfiddle.net TaHLA 1 Comment : agreed ......if you use empty string it will treat as a normal and will remove bold from fontweight Comment : Just tried the above and visited the Live Demo page too . Even without a string it didn t work at all .", "Question : The question has bothered me for a while . In CSS the font-weight can only be a value that is a multiple of 100 from 100 to 900 .. . .. . Example : https : www.google.com fonts QuickUsePlace : quickUse Family : Open+Sans .. . .. . So why it is so What is the origin that its reffered as 100 200 300.. . etc . instead of for instance 1 2 3 etc Comment : Why I don t know . That s it . But you can read W3C : w3.org TR CSS21 fonts.html propdef-font-weight https : www.w3.org TR CSS21 fonts.html propdef-font-weight Comment : A curious question : how does it matters if it s 100 by 100 or 1 by 1 What change in your development Comment : I m confused . How is this a question for Super User This is a question about the CSS font-weight property . It s not a question about typography in general which wouldn t be on-topic on SU either . .. . Answer : Apparently it derives from the Linotype typeface classification system Linotype https : en.wikipedia.org wiki Univers Linotype numbering system . Where a 3-number system is used first numeral describes font weight second numeral describes font width third numeral describes position . There s an interesting article here http : bigelowandholmes.typepad.com bigelow-holmes 2015 07 on-font-weight.html on some of the history of specifying font weights in print .", "Question : I ve googled for the last two days and browsed this site too but found no similar problem . I am new to jQuery and hope this is no duplicate of other posts . Why is it that text font weight cannot be set to NORMAL in my case I use Firefox 17.0.1 but the function to set the font to normal never works in an earlier version of Firefox as well . UPDATED : My problem was finally solved last night after browsing this site and found quite a similar thing . A few folks had to search for b and b in an HTML snippet and I fixed my problem by .. . .. . Using this : this .find strong b .css font-weight normal .. . .. . Instead of : this .css font-weight normal . Problem solved Thanks to everyone for lending me a hand yesterday . Comment : have you checked in firebug . css may not apply to dom because Normal font means no css just use as default font . Comment : it seems to work fine jsfiddle.net bXyd8 http : jsfiddle.net bXyd8 Comment : It really doesn t work . But when I checked it out the fold which looks bold is actually not bold . The method I use is : fontWeight this .css font-weight if fontWeight bold fontWeight 700 alert bold this .css font-weight normal Comment : how about this this .css font-weight 400 Comment : this .css font-weight 400 this failed too . But is the problem due to the font set bold by b and b in my PHP code .. . Answer : Normat is working fine could you cross check which version of the jquery you are using give the command so that we also can understand your problem .. . .. . script .. . .. . HTML .. . .. . DEMO http : jsfiddle.net C7nYG 2", "Question : If I load a google font that comes with 400 and 700 weights but in my CSS I use font-weight : 550 what does the browser do .. . Answer : For the font-weight http : http : http : www.w3.org TR CSS2 fonts.html propdef-font-weight property the value 550 is invalid . According to CSS error-handling rules http : www.w3.org TR CSS2 syndata.html parsing-errors a declaration with an invalid value is ignored i.e . the actual font weight is determined by other CSS rules or falling back to defaults as-if the declaration were not there .", "Question : I m working with an external font type for my website I have the 3 ttf files for normal bold and italic styles . I m wondering if I can change the font weight because I already tried to use the font-weight CSS property but it seems that it only works for either normal or bold weight so I cannot use any weight in between . Is there any way to use other weight for my font Do I need to include any extra files Comment : developer.mozilla.org en-US docs Web CSS font-weight https : developer.mozilla.org en-US docs Web CSS font-weight Comment : Not too helpful mate - he knows what the font-weight CSS property is he s just needs an assist understanding how it all works . Comment : Yes I tried it already and just wanted to know if it would be possible to apply that css property to an external font .. . Answer : In short : no you can t use other weights as is - you ll need more files . You can use normal and bold because you ve included normal and bold font files . Other weights will require an accompanying font file as well . For a visual check out any of the fonts at Google Fonts : https : www.google.com fonts .. . .. . You ll notice there are multiple-files each representing a different font weight and or style such as italic . Comment : Ok Understood Thanks a lot :", "Question : I ve googled for the last two days and browsed this site too but found no similar problem . I am new to jQuery and hope this is no duplicate of other posts . Why is it that text font weight cannot be set to NORMAL in my case I use Firefox 17.0.1 but the function to set the font to normal never works in an earlier version of Firefox as well . UPDATED : My problem was finally solved last night after browsing this site and found quite a similar thing . A few folks had to search for b and b in an HTML snippet and I fixed my problem by .. . .. . Using this : this .find strong b .css font-weight normal .. . .. . Instead of : this .css font-weight normal . Problem solved Thanks to everyone for lending me a hand yesterday . Comment : have you checked in firebug . css may not apply to dom because Normal font means no css just use as default font . Comment : it seems to work fine jsfiddle.net bXyd8 http : jsfiddle.net bXyd8 Comment : It really doesn t work . But when I checked it out the fold which looks bold is actually not bold . The method I use is : fontWeight this .css font-weight if fontWeight bold fontWeight 700 alert bold this .css font-weight normal Comment : how about this this .css font-weight 400 Comment : this .css font-weight 400 this failed too . But is the problem due to the font set bold by b and b in my PHP code .. . Answer : This is the HTML part below PHP code in one of my PHP files . Comment : so what is wrong with this . Also you forget from css . I have updated above post Comment : yeah it just doesn t work mate . Comment : so tell me is there only single DOM with same id. . Because each DOM must have unique ID . Comment : frankly speaking i m a complete newbie in jQuery . i m working on a personal project using Symbian then PHP and now jQuery . Still trying to figure out what DOM really is fella . BTW I ve tried this one stackoverflow.com questions 8969689 http : stackoverflow.com questions 8969689 how-to-change-text-decoration-property-with-jquery quot but it doesn t work for me either . Comment : i ll let u know if i have more than one object element with same id after reading this . en.wikipedia.org wiki Document Object Model http : en.wikipedia.org wiki Document Object Model", "Question : I ve googled for the last two days and browsed this site too but found no similar problem . I am new to jQuery and hope this is no duplicate of other posts . Why is it that text font weight cannot be set to NORMAL in my case I use Firefox 17.0.1 but the function to set the font to normal never works in an earlier version of Firefox as well . UPDATED : My problem was finally solved last night after browsing this site and found quite a similar thing . A few folks had to search for b and b in an HTML snippet and I fixed my problem by .. . .. . Using this : this .find strong b .css font-weight normal .. . .. . Instead of : this .css font-weight normal . Problem solved Thanks to everyone for lending me a hand yesterday . Comment : have you checked in firebug . css may not apply to dom because Normal font means no css just use as default font . Comment : it seems to work fine jsfiddle.net bXyd8 http : jsfiddle.net bXyd8 Comment : It really doesn t work . But when I checked it out the fold which looks bold is actually not bold . The method I use is : fontWeight this .css font-weight if fontWeight bold fontWeight 700 alert bold this .css font-weight normal Comment : how about this this .css font-weight 400 Comment : this .css font-weight 400 this failed too . But is the problem due to the font set bold by b and b in my PHP code .. . Answer : You might have problem with jQuery not css style . My html : .. . .. . and jQuery : Comment : The HTML part in one of my PHP files . head style type text css td a : link text-decoration : none color : inherit td a : visited text-decoration : none color : inherit td a : active text-decoration : none color : inherit td a : hover text-decoration : underline color : blue style script type text javascript src jquery.js script script type text javascript document .ready function td id to detail page .click function e this .css font-weight normal e.preventDefault script title View Data title head body body", "Question : I ve googled for the last two days and browsed this site too but found no similar problem . I am new to jQuery and hope this is no duplicate of other posts . Why is it that text font weight cannot be set to NORMAL in my case I use Firefox 17.0.1 but the function to set the font to normal never works in an earlier version of Firefox as well . UPDATED : My problem was finally solved last night after browsing this site and found quite a similar thing . A few folks had to search for b and b in an HTML snippet and I fixed my problem by .. . .. . Using this : this .find strong b .css font-weight normal .. . .. . Instead of : this .css font-weight normal . Problem solved Thanks to everyone for lending me a hand yesterday . Comment : have you checked in firebug . css may not apply to dom because Normal font means no css just use as default font . Comment : it seems to work fine jsfiddle.net bXyd8 http : jsfiddle.net bXyd8 Comment : It really doesn t work . But when I checked it out the fold which looks bold is actually not bold . The method I use is : fontWeight this .css font-weight if fontWeight bold fontWeight 700 alert bold this .css font-weight normal Comment : how about this this .css font-weight 400 Comment : this .css font-weight 400 this failed too . But is the problem due to the font set bold by b and b in my PHP code .. . Answer : My code based on your snippet : .. . .. . DEMO https : dl.dropbox.com u 46605743 normal 20test index.html .. . .. . So I think that problem is with this line td id text linked to detail page maybe try use dot notation . Or check if the ID is certainly unique . Comment : Thanks for your kind efforts factoradic . Have tried your code but still no success unfortunately . I think as per your assumption it must have something to do with the Id which I will have to change through php code . On a side note I m left wondering why making it bold is just a piece of cake . Comment : well the ID is right . when an alert function is provided instead of font-weight change the alert showed up . so what s exactly the problem anyone Comment : No problem . I don t know what is wrong . Your code snippet is correct . Maybe you should show whole js code . Firebug for Firefox has a special JavaScript console it might be helpful .", "Question : I m trying to use font-weight to adjust how bold the font is . From what I understand value 500 is the normal font weight and value 700 is the default font weight for bold . However when I put 599 it did not change the font-weight at all . But when I put 600 it jump to the default font weight of bold . Same results from value 600-900 . Then when you go over 900 the font weight reverts back to the normal font weight . Why is this happening fontStyle .. . border : 1px solid black .. . font-weight : 599 .. . .. . .. . .. . div id fontStyle fontStyle div Comment : Use only hundreds like 600 or 500 100 to 900 Comment : @vlzvl Makes me wonder what the two extra zeros are for . .. . Answer : font-weight works from 100 to 900 in increments of 100 . Normal weight is 400 . Bold is 700 . 599 is not a recognized weight since it isn t an increment of 100 . Anything over 900 is not recognized either . So you should be using font-weight : 600 for semi bold or font-weight : 700 for bold . This link helps explain https : developer.mozilla.org en-US docs Web CSS font-weight", "Question : I usually download fonts from Google via @import url https : fonts.googleapis.com css family Roboto and then use them to tweak various elements h1 h2 .. . .. . .. . How is the font rendering calculated when : .. . .. . the correct weight 500 in the case above has not been loaded via @import url https : fonts.googleapis.com css family Roboto : 500 It is extrapolated from a base version of the font with better or worse results Or calculated and in that case preloading 500 just helps performance wise but does not impact the visual aspect of a font bold is used Is bold a shortcut for a specific numeric weight Or does a font defines itself what bold means in its case it would be a specific numerical weight I guess .. . Answer : About font-weight .. . .. . The font-weight property selects the weight of the font . The values 100 to 900 form an ordered sequence where each number indicates a weight that is at least as dark as its predecessor . The keyword normal is synonymous with 400 and bold is synonymous with 700 . .. . font-weight - W3.org https : www.w3.org TR CSS21 fonts.html propdef-font-weight .. . .. . The above quote is taken from W3.org s Recommendation mean it is the standard to be used for all browsers . .. . .. . Rendering when weight isn t loaded .. . .. . When a font weight isn t found the browser is meant to follow a set of rules to find the nearest available option for it . Once the font family s weights are mapped onto the CSS scale missing weights are selected as follows : .. . .. . If the desired weight is less than 400 weights below the desired weight are checked in descending order followed by weights above the desired weight in ascending order until a match is found . If the desired weight is greater than 500 weights above desired weight are checked in ascending order followed by weights below the desired weight in descending order until a match is found . If the desired weight is 400 500 is checked first and then the rule for desired weights less than 400 is used . If the desired weight is 500 400 is checked first and then the rule for desired weights less than 400 is used . Now it may seem like jargon but for your case you just need to read the last point of it . If the desired weight is 500 400 is checked first and then the rule for desired weights less than 400 is used . So ultimately it will find if the base font is used if not it will find anything lower than the base font and then if nothing is still not found it will try to find anything higher than it . .. . .. . Rendering when bold .. . .. . The normal font-weight for bold is 700 . This does not chang once you start going up in font weights . If you want the font-weight of a piece of text that needs to be bolder than normal text you will need to use bolder or the alternative lighter as the space between the base font weight and the bolder must always be greater unless it is at it s limit . Below is a table of what the specific meaning of bolder and lighter is . Base - bolder - lighter .. . .. . 100 --- 400 --- 100 .. . .. . 200 --- 400 --- 100 .. . .. . 300 --- 400 --- 100 .. . .. . 400 --- 700 --- 100 .. . .. . 500 --- 700 --- 100 .. . .. . 600 --- 900 --- 400 .. . .. . 700 --- 900 --- 400 .. . .. . 800 --- 900 --- 700 .. . .. . 900 --- 900 --- 700 .. . .. . Ultimately all this information can be found in the W3.org spec . font-weight - Fonts W3.org https : www.w3.org TR CSS21 fonts.html propdef-font-weight Comment : Thank you for the docs link it clarifies as well as your answer a lot . I was not clear with my question : I was specifically wondering how the missing weights are computed and if this imples a loss of quality or not when there is nothing to fill the holes per the docs . Comment : Hopefully the second section Rendering when weight isn t loaded explains the procedure the browser goes through to replace missing weights . Comment : The second part was very clear about bolding . What I am wondering is if I have only the base font which is what is loaded I belive via a bare @import url https : fonts.googleapis.com css family Roboto then the other weights will need to be computed . Is this computation lossless quality-wise and in that case it is not obligatory to load other-than-base weights - or is it approximate and specific weights need to be loaded in order to render the font perfectly Comment : @WoJ i believe it just darkens the font more but as the spec states There is no guarantee that there will be a darker face for each of the font-weight values", "Question : If I load a google font that comes with 400 and 700 weights but in my CSS I use font-weight : 550 what does the browser do .. . Answer : According to MDN https : developer.mozilla.org en-US docs Web CSS font-weight and W3.org http : www.w3.org TR CSS2 fonts.html propdef-font-weight : .. . .. . If the exact weight given is unavailable then the following heuristic is used to determine the weight actually rendered : .. . .. . If a weight greater than 500 is given the closest available darker weight is used or if there is none the closest available lighter weight . If a weight less than 400 is given the closest available lighter weight is used or if there is none the closest available darker weight . If a weight of exactly 400 is given then 500 is used . If 500 is not available then the heuristic for font weights less than 500 is used . If a weight of exactly 500 is given then 400 is used . If 400 is not available then the heuristic for font weights less than 400 is used . .. . This means that for fonts that provide only normal and bold 100-500 are normal and 600-900 are bold . Also : .. . .. . There is no guarantee that there will be a darker face for each of the font-weight values for example some fonts may have only a normal and a bold face while others may have eight face weights . There is no guarantee on how a UA will map font faces within a family to weight values . The only guarantee is that a face of a given value will be no less dark than the faces of lighter values .", "Question : I usually download fonts from Google via @import url https : fonts.googleapis.com css family Roboto and then use them to tweak various elements h1 h2 .. . .. . .. . How is the font rendering calculated when : .. . .. . the correct weight 500 in the case above has not been loaded via @import url https : fonts.googleapis.com css family Roboto : 500 It is extrapolated from a base version of the font with better or worse results Or calculated and in that case preloading 500 just helps performance wise but does not impact the visual aspect of a font bold is used Is bold a shortcut for a specific numeric weight Or does a font defines itself what bold means in its case it would be a specific numerical weight I guess .. . Answer : Weight defines from thin to thick characters . 400 is the same as normal and 700 is the same as bold .. . .. . As far as I m aware the browser will set the font to the default set in CSS if one is set or the computers default which I think is Helvetica on Mac and on PC I think it s Arial . The font weight would still be applied .", "Question : null .. . Answer : I m using the @font-face rule to display the VAG Rounded font on my website . It has four variations : thin light bold and black . So I tried to set light as normal thin as lighter bold as bold and black as bolder . However the browser tested Chrome and IE is displaying normal and lighter as the same I m guessing it s normal and bold and bolder the same I m guessing it s bold . How come Is lighter and bolder somehow not supported Here s my CSS : Comment : Possible duplicate of How to declare CSS font-face with font-weight and font-style properly http : stackoverflow.com questions 35477618 how-to-declare-css-font-face-with-font-weight-and-font-style-properly - the answer is bolder and lighter are meaningless in @font-face because they are relative values they only have meaning in a CSS style rule i.e . when actually styling an element .", "Question : I m trying to use font-weight to adjust how bold the font is . From what I understand value 500 is the normal font weight and value 700 is the default font weight for bold . However when I put 599 it did not change the font-weight at all . But when I put 600 it jump to the default font weight of bold . Same results from value 600-900 . Then when you go over 900 the font weight reverts back to the normal font weight . Why is this happening fontStyle .. . border : 1px solid black .. . font-weight : 599 .. . .. . .. . .. . div id fontStyle fontStyle div Comment : Use only hundreds like 600 or 500 100 to 900 Comment : @vlzvl Makes me wonder what the two extra zeros are for . .. . Answer : Default font weight is 400 and fonts work in multiples of 100 . 300 is light if your font supports it 400 is regular 600 is semibold and 700 is bold . You can t use the numbers in between .", "Question : I m trying to use font-weight to adjust how bold the font is . From what I understand value 500 is the normal font weight and value 700 is the default font weight for bold . However when I put 599 it did not change the font-weight at all . But when I put 600 it jump to the default font weight of bold . Same results from value 600-900 . Then when you go over 900 the font weight reverts back to the normal font weight . Why is this happening fontStyle .. . border : 1px solid black .. . font-weight : 599 .. . .. . .. . .. . div id fontStyle fontStyle div Comment : Use only hundreds like 600 or 500 100 to 900 Comment : @vlzvl Makes me wonder what the two extra zeros are for . .. . Answer : Well you ve used 599 you can only use numbers 100 200 300 etc. . so font-weight : 600 would work", "Question : I have three files for a font the normal one the bold one and the light one . How can I set the light one on font-face since font-weight : light does not exist By the way is font-weight : lighter relative to something If yes to what Comment : font-weight : lighter is relative to the parent element . As per my answer below you should try font-weight : 300 for a lighter version it is possible the font file you have has multiple weights embedded .. . Answer : You need to get font that supports font-weight of different sizes you should be able to specify the font weight as a number for example : .. . .. . But it will depend on how you are defining them in your font-face declaration you should put the font weights in there for example here is one for HelveticaNeue-Light .. . .. . Then you can use : .. . .. . And it will use that font-face definition you can define multiple of these with different font-weights that match up to various files of different weights should you need to . You can get font files that have multiple weights embedded into one file but most of the time now I believe the come in separately Comment : I ve got a question for that. . Why so many font formats And why do you have a file specially for IE I ve tested a .ttf font on IE and it worked if the font was on the same folder as the css html . It stopped working once I put it on a font folder though . Comment : Full cross-browser support especially for older versions of IE Comment : What if I have a font that only has the .ttf format For example the ubuntu one. . Comment : Then your embedded font wont work on certain browsers mostly IE : caniuse.com feat ttf http : caniuse.com feat ttf", "Question : I have a button that looks like this : .. . .. . HTML : .. . .. . CSS : .. . .. . I want JavaScript to switch the font-weight of the words Dark and Light so that when I click the button the word Light gets bold and Dark gets normal . And when I click again I want Dark to be bold and Light to be normal . But I can t make it work . The funny thing is that I can create a function that do the same thing but with color in stead of font-weight . The code that works but changes color instead of font-weight : .. . .. . The code that I thought would do the same thing but with font-weight : .. . .. . Thank you Edit : .. . .. . Now this time when I try it it seems to work just fine for me too . I suppose there have been a typo somewhere . Thank you all for your answers and I am sorry I took your time Comment : I expect if you walk through with a debugger you can figure it out . In 2012 there s really no excuse http : blog.niftysnippets.org 2011 03 no-excuse.html for not using a debugger to debug your client-side code . : - Comment : Works for me in Firefox Chrome IE7 even IE6 : jsbin.com eyabor http : jsbin.com eyabor Comment : Thank you for the tip .. . Answer : It works for me http : jsbin.com eyabor on Chrome Firefox and IE6-9 well I didn t try 8 . On Opera though fontWeight comes back as 700 rather than bold which isn t completely unreasonable . So if you re running into trouble on Opera that may be why . So you may need to maintain a flag separate from the element s style.fontWeight property . One way is like this : .. . .. . Live copy http : jsbin.com ejitur Live copy source http : jsbin.com ejitur edit .. . .. . ...but of course there are lots of options a data- attribute http : www.w3.org TR html5 elements.html embedding-custom-non-visible-data-with-the-data-attributes etc . .", "Question : I have three files for a font the normal one the bold one and the light one . How can I set the light one on font-face since font-weight : light does not exist By the way is font-weight : lighter relative to something If yes to what Comment : font-weight : lighter is relative to the parent element . As per my answer below you should try font-weight : 300 for a lighter version it is possible the font file you have has multiple weights embedded .. . Answer : Try these one at a time : Comment : I think lighter and bolder are relative to the computed font weight of the parent element ." ] }
[ "yes-answer-long", "yes-answer-short" ]
svg
UNK_RELATION
ecslidingviewcontroller@interface@106
ecslidingviewcontroller -- ecslidingviewcontroller is a view controller container that manages a layered @placeholder .
{ "confidence": [ 55.44923400878906, 53.820655822753906, 52.68498992919922, 52.00529861450195, 51.9395751953125, 51.7056999206543, 50.57003402709961, 49.2919921875, 49.170597076416016, 48.92766571044922, 48.89994430541992, 46.223819732666016, 45.96223831176758, 45.567440032958984, 45.403648376464844, 44.86487579345703, 44.55373001098633, 44.4100341796875, 44.36700439453125, 44.122528076171875, 44.02831268310547, 43.452484130859375, 43.44578552246094, 43.44578552246094, 43.0271110534668, 42.919219970703125, 42.919219970703125, 42.88960266113281, 42.714019775390625, 41.94914245605469, 41.913360595703125, 41.913360595703125, 41.78239822387695, 41.65177917480469, 41.61860275268555, 41.60062026977539, 41.063270568847656, 40.681549072265625, 40.681549072265625, 40.317344665527344, 40.24327087402344, 40.24327087402344, 40.24327087402344, 40.24327087402344, 40.24327087402344, 40.24327087402344, 40.20991516113281, 39.18275833129883, 39.18275833129883, 39.13532638549805, 39.131591796875, 38.911231994628906, 38.79759979248047, 38.566593170166016, 38.305015563964844, 37.80742645263672, 37.80742645263672, 37.80742645263672, 37.30653381347656, 36.930992126464844, 36.930992126464844, 36.896507263183594, 36.896507263183594, 36.896507263183594, 36.896507263183594, 36.896507263183594, 36.896507263183594, 36.896507263183594, 36.896507263183594, 36.55519104003906, 36.2685432434082, 36.24091720581055, 36.17346954345703, 35.7885627746582, 35.13682556152344, 35.0720100402832, 34.85260009765625, 34.46065902709961, 34.46065902709961, 34.05851745605469, 33.83222579956055, 33.79693603515625, 33.79693603515625, 33.414432525634766, 33.38849639892578, 33.25848388671875, 32.761566162109375, 32.388427734375, 32.388427734375, 32.388427734375, 32.388427734375, 32.388427734375, 31.299476623535156, 31.28048324584961, 31.28048324584961, 31.037899017333984, 31.037899017333984, 31.037899017333984, 30.88349151611328, 29.95258331298828 ], "content": [ "I have a container view ECSlidingViewController .", "just do bridging in swift and use ECSliding in yout project github.com ECSlidingViewController ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController", "https : github.com ECSlidingViewController ECSlidingViewController .. . .. . Thanks in advance", "I have added the ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController in my project .", "I m working with ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController .", "github.com ECSlidingViewController ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController issues 271 have u checked this", "https : github.com ECSlidingViewController ECSlidingViewController wiki Storyboards-Guide", "The main sliding view controller would be the one that extends or inheirits the ECSlidingViewController .", "In his Readme.md link github.com ECSlidingViewController ECSlidingViewController blob https : github.com ECSlidingViewController ECSlidingViewController blob master README.md says If you need help using ECSlidingViewController please post a question on StackOverflow with the ECSlidingViewController tag .", "github.com ECSlidingViewController ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController issues 211 they had already this kind of issue maybe that will help with something", "I m using ECSlidingViewController https : github.com edgecase ECSlidingViewController .", "a sort of viewWillAppear equivalent for ECSlidingViewController .", "Is it possible using ECSlidingViewController 2 .", "ECSlidingViewController uses a pan gesture recognizer to slide view controllers .", "For instance in TransitionFun example https : github.com ECSlidingViewController ECSlidingViewController tree master Examples TransitionFun .", "Thanks @Unheilig for answering but this method is available in old ECSlidingViewController in new ECSlidingViewController it is not available", "The pdfs are loaded from an ECSlidingViewController .", "I m building a new project using ECSlidingViewController v2 .", "I want to build a some special animation based https : github.com ECSlidingViewController ECSlidingViewController .", "I am using ECSlidingViewController with storyboards .", "I am using ECSlidingViewController for the menu navigation .", "Also the first tab button is the menu button that will slide in ECSlidingViewController the menu view .", "I m using ECSlidingViewController .", "I am using ECSlidingViewController .", "I installed ECSlidingViewController 2.0.3 http : cocoadocs.org docsets ECSlidingViewController 2.0.3 using Cocoapods .", "Is there a way for the Top View Controller in ECSlidingViewController to know when the sidebar menu has been dismissed or when it is about to become the focus", "Example in your top view controller : .. . .. . ECSlidingViewController provides a category for UIViewController adding this slidingViewController property .", "The documentation mentions adding shadows https : github.com ECSlidingViewController ECSlidingViewController wiki Frequently-Asked-Questions to the controller being animated to show the slide menu .", "i did sub class the ECSlidingViewController .", "And because it s ECSlidingViewController that is actually presenting the modal view the unwind handler wasn t working because it left the modal view on screen .", "But I can t understand how to do it with ECSlidingViewController .", "ECSlidingViewController has methods for this : anchorTopViewToRightAnimated : anchorTopViewToLeftAnimated : and resetTopViewAnimated : .", "I found the ECSlidingViewController when rotate to landscape the size of the view is not adjusted .", "I have setup the ECSlidingViewController as shown in the examples .", "I m trying to load a uitableview using ECSlidingViewController https : github.com edgecase ECSlidingViewController methods .", "I tried do it with ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController with zoom effect but I have custom tabBar and I couldn t do that .", "I only have the TapGesture no slide configured on my ECSlidingViewController .", "Debugging show that the last self.slidingViewController returns nil instead of instance of ECSlidingViewController .", "If you re using cocoapods just add import ECSlidingViewController UIViewController+ECSlidingViewController.h", "I m using ECSlidingViewController 2.0.1 .. . .. . EDIT : using competition block and or creating a reference to the sliding view controller doesn t make any difference : .. . .. . UPDATE 14.7.2014 : .. . .. . The sidemenu is not hiding only if custom view controller transitions are used .", "the default-method of ECSlidingViewController is replacing the topViewController in the menuViewController", "Isn t this question best directed at the developer of ECSlidingViewController", "There s no notification posted in the current version 2 of ECSlidingViewController .", "You have to subclass ECSlidingViewController completeTransition 2 .", "I am using ECSlidingViewController as a main navigation menu .", "Pretty simple until I try to add ECSlidingViewController .", "ECSlidingViewController created in storyboard with proper User Defined Runtime Attributes and set as init view .", "I m using ECSlidingViewController See Documentation http : cocoadocs.org docsets ECSlidingViewController 2.0.2 to achieve the sliding menu function .", "You can refer to Anchored Top Views Gesture https : github.com ECSlidingViewController ECSlidingViewController wiki Gestures-Guide for more info .", "Is this at all possible and would ECSlidingViewController 2 work for this", "It must be burry somewhere.. . .. . .. . Github project https : github.com ECSlidingViewController ECSlidingViewController tree master Examples TransitionFun .. . .. . How do you get back to the current View Controller by pressing the Menu UIBar button", "EDIT : .. . .. . For future reference an example showing ECSlidingViewController2 using both a left and right UIBarButtonItem at the same time can now be found at : .. . .. . https : github.com ECSlidingViewController ECSlidingViewController tree master Examples LayoutDemo", "Main storyboard contains ECSlidingViewController where I set topviewcontroller as mentioned on the ECSliding github page like below : - .. . .. . My Code : - .. . .. . Problem : - .. . .. . How do I get the instance of ECSlidingViewController in View controller class in new storyboard as self.navigationController visibleViewController gives me instance of UIViewController class instead of ECSlidingViewController .", "I m using ECSlidingViewController in my application to display left menu .", "I am trying to use ECSlidingViewController in my Iphone app Using Storyboard .", "slidingViewController is a property of category named as UIViewController+ECSlidingViewController .", "Through Mix Match ECSlidingViewController can be implement in Swift .", "I am implementing ECSlidingViewController in my app .", "Taking reference from @uiroshan answer Closing ECSlidingViewController menu http : stackoverflow.com questions 20802064 closing-ecslidingviewcontroller-menu 23707787 23707787 .. . .. . You can use the following code : .. . .. . Here .. . .. . I am animating the top view controller to Right so I am checking whether top view position is ECSlidingViewControllerTopViewPositionAnchoredRight .. . To animating the top view controller to Left ECSlidingViewControllerTopViewPositionAnchoredLeft", "I am using ECSlidingViewController in my project and I also have a messages view in which I have an accessoryInputView to imitate the iOS Messages app .", "Then it s just a matter of removing the pan gesture recognizer of the ECSlidingViewController from the current top view and disabling any buttons that might open the menu .", "update on 20-May-2014 sub class the ECSlidingViewController add these 2 method .", "My viewWillLayoutSubviews is : .. . .. . and it s part of the Navigation section using ECSLidingViewController .", "I am working on an app which uses ECSlidingViewController to implement a drawer menu .", "I could subclass ECSlidingViewController but would rather avoid it if possible", "It looks like ECSlidingViewController hasn t been updated for a year now .", "Just get the rootViewController which is the existing ECSlidingViewController instance and call anchorTopViewToRightAnimated true .", "I copied the ECSlidingViewController into the BasicMenu target in Xcode and this seemed to help", "is there any way to use the ECSlidingViewController to slide the menu from right-to-left", "After some more testing and reading I was able to understand the Custom Gestures when using ECSlidingViewController .", "I placed the code in my initial view controllers viewDidLoad method to make a mainviewcontroller the top view controller but i keep getting this error Set the topViewController before loading ECSlidingViewController .", "Using ECSlidingViewController for sidebar everything works fine but If I add pangesture like this. . .. . .. . it stops the UIImageView s animation happening in the top view controller .", "I m using ECSlidingViewController version 1.3 and when I expose the menu the topViewController isn t touchable .", "I am trying run ECSlidingViewController 2.0.3 Basic Menu Example .", "From zoom animation code given in ECSlidingViewController do not apply zoom factor in .. . .. . by commenting MEZoomAnimationScaleFactor .", "I started testing ECSlidingViewController https : github.com edgecase ECSlidingViewController tree master ECSlidingViewController and after I tried to access FirstTopViewController I have a big trouble - because in FirstToViewController I already have ZBarReaderDelegate http : sourceforge.net projects zbar implemented and all examples of delegate are not triggering any method from my delegate .", "The code uses the current instance of ECSlidingViewController the current view and then calls anchorTopViewToRightAnimated in order to correctly assign the current view that is being pulled to the right .", "I am using ECSlidingViewController to reveal the side bar menu in my app .", "Now you can access those method and object of ECSlidingViewController .", "Since ECSlidingViewController v2.0 does not have notifications I was able to solve this in the following way .", "When I run the app my app crashes and showing me this error : .. . .. . I searched google and Tried many ways some of them are form the links : .. . .. . First Link https : github.com ECSlidingViewController ECSlidingViewController wiki Storyboards-Guide .. . .. . Second Link http : stackoverflow.com questions 15081513 ecslidingviewcontroller-not-first-view .. . .. . I am not able to find any genuine solution .", "I m using ecslidingviewcontroller 2 and i m trying to make a bouncy animation when open the off-canvas menu or close it . .", "What I will say having worked with ECSlidingViewController in the past is that you should be checking for login credentials in your AppDelegate .", "However in a new project I am using the latest version 2.0.2 of ECSlidingViewController and when I expose the menu the topViewController is still touchable .", "The idea is that by keeping your LoginViewController outside of the navigation controller tree for ECSlidingViewController you don t have to present that navigation controller until you ve successfully completed the login flow .", "After some further investigations I found out that the top view controller s MyViewController presentingViewController property returns an instance of ECSlidingViewController instead of MESettingsViewController even though it was the MESettingsViewController that presented the MyViewController modally .", "PS : I used to use IIViewDeckController and I had the exact same problem so I switched to ECSlidingViewController because it said that Your view controllers will receive the appropriate view life cycle and rotation methods at the right time .", "I am using ECSlidingViewController for navigation but I don t believe this is the cause of my problem .", "This is the library I m using but I ve found the same issue in other libraries like ECSlidingViewController etc .", "You see your main screen reset because you re instantiating the ECSlidingViewController every time - no need to do that .", "This works but the animation effect from ECSlidingViewController is overwritten and I am unable to unwind back .", "Is it possible to open the BasicMenu.xcodeproj on xcode on the new version of ECSlidingViewController without having to do it via Examples.xcworkspace", "According to ECSlidingViewController sample project you need to put these 4 lines in ViewWillAppear of FirstTopController e.g TransitionViewController : .. . .. . These 4 lines are being used in delegate method of tableview .", "enter image description here http : i.stack.imgur.com YwqBj.jpg .. . .. . By using ECSlidingviewController library i have done side menu .", "I m using the ECSlidingViewController along with the MEZoomAnimationController that s a delegate for it in order to make the slide out menu work .", "is there a built-in method or segue in ECSlidingViewController for pushing or unwinding VC into source . topViewController . navController or do i need to implement a custom segue myself", "I have already played around with methods like : .. . .. . I also took a look at the ECSlidingViewcontroller wiki - but did not find a solution there yet : - .", "Here my main issue is i cannot set the InitialSlidingViewController subclass of ECSlidingViewController as InitialViewController.So what are the possible options to enable sliding for Menu button click on MainView .", "I m trying to implement UI dynamics from the example at https : github.com ECSlidingViewController ECSlidingViewController on my project and my screen gets unresponsive after pressing my Menu button which runs the following code : .. . .. . Any ideas what I m probably doing wrong", "I m trying to use ecslidingviewcontroller in my swift project but don t know how to proceed ." ] }
{ "confidence": [ 61.52277374267578, 59.811954498291016, 59.76742172241211, 59.254058837890625, 58.281890869140625, 57.58466339111328, 57.21180725097656, 56.36370849609375, 56.278778076171875, 55.783226013183594, 55.512271881103516, 55.46464920043945, 55.00072479248047, 54.839324951171875, 53.67124557495117, 53.46440124511719, 52.72749328613281, 52.63001251220703, 52.27002716064453, 51.92218017578125 ], "content": [ "Question : I m building a new project using ECSlidingViewController v2 . The first time I swipe to open the left under view it works great . But when I swipe the second time I get an EXC BAD ACCESS crash . The reference is to the NSMapTable in the controller . .. . Answer : Taking reference from @uiroshan answer Closing ECSlidingViewController menu http : stackoverflow.com questions 20802064 closing-ecslidingviewcontroller-menu 23707787 23707787 .. . .. . You can use the following code : .. . .. . Here .. . .. . I am animating the top view controller to Right so I am checking whether top view position is ECSlidingViewControllerTopViewPositionAnchoredRight .. . To animating the top view controller to Left ECSlidingViewControllerTopViewPositionAnchoredLeft", "Question : I have a container view ECSlidingViewController . Every item in the container is a NavigationViewController -- UIViewController .. . .. . For example in one child view controller I have a UITableView with a UICollectionView in one static cell . I try to implement a version for iPad that supports changing orientation of the screen so I enabled all the authoresizing masks to fill the cell with the UICollectionView - and now I had a crazy issue - the frame of the cells - their width is very big . For example the table view frame is 0 0 1024 768 but the UICollectionView in static cell frame is 0 0 1792 1301 . How can I solve this issue .. . Answer : So I m invalidating collectionView layout in willRotateToInterfaceOrientation : duration : so sizeForItemAtIndexPath : is called again . Comment : valenki borsch zemlyanika . The problem is not connected with the collection view - everything in the cells not working correctly with a autoresizing masks because of strange frame sizes Comment : hm.. . the code should fix the sizes of collection view cells on rotation . Comment : now the collection view items are one under another the result is one very looong collection view with only one element per row Comment : github.com ECSlidingViewController ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController issues 211 they had already this kind of issue maybe that will help with something", "Question : I m trying to programmatically change the selected menu item and the displayed topViewController . In other words I m trying to do the same one does to change the selected tab in UITabBarController : .. . .. . Therefore according to another SO question http : stackoverflow.com a 20309377 1161723 I m using this to change the displayed topViewController : .. . .. . But it doesn t work . Well the two first lines work correctly displaying the menu and changing the topViewController respectively but the last line simply doesn t hide the sidemenu so it stays there until I hide it by gesture or tapping the button . Debugging show that the last self.slidingViewController returns nil instead of instance of ECSlidingViewController . And if I skip the first and the last line leaving only : .. . .. . it makes the app crash . Any idea how to change the view properly with hiding the side menu I m using ECSlidingViewController 2.0.1 .. . .. . EDIT : using competition block and or creating a reference to the sliding view controller doesn t make any difference : .. . .. . UPDATE 14.7.2014 : .. . .. . The sidemenu is not hiding only if custom view controller transitions are used . For instance in TransitionFun example https : github.com ECSlidingViewController ECSlidingViewController tree master Examples TransitionFun . The app crashes when leaving only the following in unwind segue handler : .. . .. . NOTE : If the last view controller where the unwind segue is called from is presented by push segue instead of modal segue the app don t crash . You can see the hierarchy of the view controllers on the image here http : i.stack.imgur.com Q7dHV.png .. . .. . it s basically the TransitionFun example with one more VC encapsulated in NavigationVC and modally presented by segue from Settings cell .. . Answer : After some further investigations I found out that the top view controller s MyViewController presentingViewController property returns an instance of ECSlidingViewController instead of MESettingsViewController even though it was the MESettingsViewController that presented the MyViewController modally . And because it s ECSlidingViewController that is actually presenting the modal view the unwind handler wasn t working because it left the modal view on screen . Solution : .. . .. . Forget unwind segues use the following code in the modally presented top view controller MyViewController to change the ECSlidingViewController s topViewController property : .. . .. . Or use the delegate pattern and put it into MESettingsViewController for example .", "Question : I have been following the video tutorial s at these links : https : www.youtube.com watch v tJJMyzdB9uI https : www.youtube.com watch v HqFFjmhoO1c . I placed the code in my initial view controllers viewDidLoad method to make a mainviewcontroller the top view controller but i keep getting this error Set the topViewController before loading ECSlidingViewController . I don t get the reason for this error and didn t find much when i google d it . Any ideas Here is the code i put into my viewDidLoad method the application crashes before the uiviews even load . .. . Answer : I found the answer on some documentation from the developer . I didn t expect this library to be documented this way . You have to add user defined values into your main sliding view controller . The main sliding view controller would be the one that extends or inheirits the ECSlidingViewController . https : github.com ECSlidingViewController ECSlidingViewController wiki Storyboards-Guide", "Question : null .. . Answer : I am using ECsliding controller for slide menu.swipe gestrure working good in my case but when click button nothing happened . My case is : .. . .. . After two screen I wanted to show slide menu so i have set ECSlide like belowe in my second screen and so far everything ok . In third view controller I set a button to show menu.Button get clicked but menu not open . LeftViewController is my menu view controller . Third view controller will load based condition.example if string is one it will go to one view controller otherwise anther view controller . Thirdview.h Comment : Sir you need to look in gesture method called and what code there for slide Menu view Controller . and do same code at your button click event . Comment : github.com ECSlidingViewController ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController issues 271 have u checked this Comment : @NitinGohel actually gesture working by default there is i didnt put anycode. . Comment : check default code and understand it how in example working . Comment : @Sport i tried that but not worked.what i want to know here did i set sliding correctly or not if it is correct then should work.why button action working", "Question : Is there a way for the Top View Controller in ECSlidingViewController to know when the sidebar menu has been dismissed or when it is about to become the focus i.e . a sort of viewWillAppear equivalent for ECSlidingViewController . I have a refreshcontrol in my top view controller that starts misbehaving after the sidebar is shown so I am trying to figure out where I can call endRefreshing on the refreshControl so that the wierdness goes away . Putting it in viewWillAppear doesn t work . Thanks .. . Answer : Since ECSlidingViewController v2.0 does not have notifications I was able to solve this in the following way . In the sidebar menu in ViewWillDisappear I call a new category method on UIViewController called willGetFocus . Whenever my topViewController needs to know when it s about to get focus I override willGetFocus in that view Controller like so : .. . .. . In sidebar menu : .. . .. . In Top View Controller : .. . .. . New Category :", "Question : I am using ECSlidingViewController for the menu navigation . I have a option logout on which on selection logout the user . When the user login agin the menu bar will be visible instead of hidden . Swift code to hide the menu bar on logout selection . Comment : show your code Comment : Page not found @Mayank Comment : just do bridging in swift and use ECSliding in yout project github.com ECSlidingViewController ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController .. . Answer : Try self.slidingViewController .resetTopViewAnimated true . Then it s just a matter of removing the pan gesture recognizer of the ECSlidingViewController from the current top view and disabling any buttons that might open the menu . Comment : slidingViewController property is not accessible . Is there any import needed . I am a newbie in swift . @FruitAddict Comment : In your obj-c bridge you need to import UIViewController+ECSlidingViewController.h It s an extension to UIViewController that will search the view tree for the nearest sliding view controller . If you re using cocoapods just add import ECSlidingViewController UIViewController+ECSlidingViewController.h Comment : I am using cocoapods . In swift do we use import When i tried as you suggested i got some error . @FruitAddict Comment : You must ve created the objective-c bridge somewhere to even get ECSlidingController to work . Just import it the same way you imported the other class : Comment : After adding cocoapods i have only set the user defined runtime attributes to make ECsliding work . I haven t add any objective-c bridge myself . @FruitAdddict", "Question : Does anyone know if ECSlidingViewController2 can be used with both a left and a right UIBarButtonItem at the same time Each of the examples only show a single button used on the left of the navigation bar . https : github.com ECSlidingViewController ECSlidingViewController .. . .. . Thanks in advance EDIT : .. . .. . For future reference an example showing ECSlidingViewController2 using both a left and right UIBarButtonItem at the same time can now be found at : .. . .. . https : github.com ECSlidingViewController ECSlidingViewController tree master Examples LayoutDemo Comment : This question is not about general computing . Bad close vote . .. . Answer : ECSlidingViewController uses a pan gesture recognizer to slide view controllers . It should work with any combination of left and right bar button items .", "Question : The documentation mentions adding shadows https : github.com ECSlidingViewController ECSlidingViewController wiki Frequently-Asked-Questions to the controller being animated to show the slide menu . However instead of a shadow I would like to make the animated view controller to be darker . Is this possible .. . Answer : I simply created a masking view and presented removed it on notifications from the slidingviewcontroller . Added some nice fade in and fade out action for effect : Hope this helps Comment : Looks like those notifications were removed in recent versions of the control but I can recover them from github history and use them . Thanks . Comment : 2 more things to know . 1 . There s no notification posted in the current version 2 of ECSlidingViewController . You have to subclass ECSlidingViewController completeTransition 2 . I personally made a subclass of UIVIewController containing your implementation for it looks cleaner .", "Question : I d like to implement my sliding menu in a way that pressing the Menu button will show my menu and pressing Menu again would hide it . But I can t understand how to do it with ECSlidingViewController . Will appreciate any help . .. . Answer : ECSlidingViewController has methods for this : anchorTopViewToRightAnimated : anchorTopViewToLeftAnimated : and resetTopViewAnimated : . Example in your top view controller : .. . .. . ECSlidingViewController provides a category for UIViewController adding this slidingViewController property . You may also want to use ECSlidingViewController s currentTopViewPosition to determine if your button should show your menu or hide it in the current context . Comment : Thanks for pointing out the category I had not seen that and was exactly what I was looking for too . Comment : Thanks that was really helpful .", "Question : I m trying to programmatically change the selected menu item and the displayed topViewController . In other words I m trying to do the same one does to change the selected tab in UITabBarController : .. . .. . Therefore according to another SO question http : stackoverflow.com a 20309377 1161723 I m using this to change the displayed topViewController : .. . .. . But it doesn t work . Well the two first lines work correctly displaying the menu and changing the topViewController respectively but the last line simply doesn t hide the sidemenu so it stays there until I hide it by gesture or tapping the button . Debugging show that the last self.slidingViewController returns nil instead of instance of ECSlidingViewController . And if I skip the first and the last line leaving only : .. . .. . it makes the app crash . Any idea how to change the view properly with hiding the side menu I m using ECSlidingViewController 2.0.1 .. . .. . EDIT : using competition block and or creating a reference to the sliding view controller doesn t make any difference : .. . .. . UPDATE 14.7.2014 : .. . .. . The sidemenu is not hiding only if custom view controller transitions are used . For instance in TransitionFun example https : github.com ECSlidingViewController ECSlidingViewController tree master Examples TransitionFun . The app crashes when leaving only the following in unwind segue handler : .. . .. . NOTE : If the last view controller where the unwind segue is called from is presented by push segue instead of modal segue the app don t crash . You can see the hierarchy of the view controllers on the image here http : i.stack.imgur.com Q7dHV.png .. . .. . it s basically the TransitionFun example with one more VC encapsulated in NavigationVC and modally presented by segue from Settings cell .. . Answer : In case someone haven t found answer I did it in this way . 1- import UIViewController+ECSlidingViewController.h to your menuViewController 2- Set stroboardID of your destinationViewController to someID 3- When triggering some action in backend use this code :", "Question : I am trying to use ECSlidingViewController in my Iphone app Using Storyboard . I have 5 ViewControllers . Login .. . MainSelection .. . FirstView .. . SecondView .. . MenuView .. . .. . .. . In the above controllers i have Menu Button on FirstView SecondView on click of Menu button i want to slide the MenuView data and again on clicking on the button close the slide menu . I went through samples from github ECSlidingViewController.I am referring the same code as shown in github examples.I am trying to integrate in my exisitng app . Question : I tried to create InitialSlidingViewController subclass of ECSlidingViewController.But i cannot set this as InitalViewController in storyboard.Because my existing initialviewcontroller is Login view controller . Is there a way i can initialize SlidingViewController in Main view controller and by using slidingViewController.leftViewController open the slide menu when the menu button is tapped . Here my main issue is i cannot set the InitialSlidingViewController subclass of ECSlidingViewController as InitialViewController.So what are the possible options to enable sliding for Menu button click on MainView . Note : If i set the InitialSlidingViewController as InitialViewController in storyboard and providing respective topviewStoryboardID and leftViewStoryBoardID as runtime attributes it is working as expected.But this is not the way i am trying to integrate in my app . Thanks in advance .. . Answer : It s very difficult to diagnose issues like this without seeing sample code . What I will say having worked with ECSlidingViewController in the past is that you should be checking for login credentials in your AppDelegate . The idea is that by keeping your LoginViewController outside of the navigation controller tree for ECSlidingViewController you don t have to present that navigation controller until you ve successfully completed the login flow . Comment : Thank you for your response.My issue is i have a Main Selection Controller is a picker view with Options of First Second Third on selection i am opening its respective controller.I have a menu on all these 3 controllers First Second Third .I dragged a Controller and gave ECSlidingViewController as ClassName and provided Runtime attributes topViewStoryboardID - First underLeftViewControllerStoryboardID - Menu and StoryboardID as SlideView then onclick of Submit i am opening this SlideVew storyboardID.Now FirstView menu is loading fine.How to handle it for Second and Third case", "Question : I m trying to programmatically change the selected menu item and the displayed topViewController . In other words I m trying to do the same one does to change the selected tab in UITabBarController : .. . .. . Therefore according to another SO question http : stackoverflow.com a 20309377 1161723 I m using this to change the displayed topViewController : .. . .. . But it doesn t work . Well the two first lines work correctly displaying the menu and changing the topViewController respectively but the last line simply doesn t hide the sidemenu so it stays there until I hide it by gesture or tapping the button . Debugging show that the last self.slidingViewController returns nil instead of instance of ECSlidingViewController . And if I skip the first and the last line leaving only : .. . .. . it makes the app crash . Any idea how to change the view properly with hiding the side menu I m using ECSlidingViewController 2.0.1 .. . .. . EDIT : using competition block and or creating a reference to the sliding view controller doesn t make any difference : .. . .. . UPDATE 14.7.2014 : .. . .. . The sidemenu is not hiding only if custom view controller transitions are used . For instance in TransitionFun example https : github.com ECSlidingViewController ECSlidingViewController tree master Examples TransitionFun . The app crashes when leaving only the following in unwind segue handler : .. . .. . NOTE : If the last view controller where the unwind segue is called from is presented by push segue instead of modal segue the app don t crash . You can see the hierarchy of the view controllers on the image here http : i.stack.imgur.com Q7dHV.png .. . .. . it s basically the TransitionFun example with one more VC encapsulated in NavigationVC and modally presented by segue from Settings cell .. . Answer : self.slidingViewController is a calculated variable . The calculation is done by navigating the view controller hierarchy . So if the view controller is removed from the hierarchy as part of your changes then self.slidingViewController will cease to work . It s also very inefficient to keep calling it . Change to : Comment : I have tried that see the edited question but unfortunately that doesn t work either . Comment : So you ll need to give more details about which view controller this code is in and how it relates to the sliding controller . Also give details of the exception you see . Comment : It seems that the problem consists of two things : 1 when using custom view controller transitions e.g . the TransitionFun demo project then the sidebar is not hidden . 2 the app crashes without any console log when calling unwind segue containing only slidingController.topViewController self.storyboard instantiateViewControllerWithIdentifier : @ MESettingsNavigationController slidingController resetTopViewAnimated : NO from a view that is presented modally .", "Question : I want to build a some special animation based https : github.com ECSlidingViewController ECSlidingViewController . The Zoom animation is like below image . enter image description here http : i.stack.imgur.com PeRHW.png .. . .. . I just want to rotate the main view controller by PI 4 . Like below image . enter image description here http : i.stack.imgur.com zxH31.png .. . .. . I had tried to EndState transform like below code but it doesn t work . Any help pointers or example code-snippets would be really appreciated Comment : Did you manage to get it working I m trying to do the exact same thing and any help would be appreciated thanks .. . Answer : I managed to do it . From zoom animation code given in ECSlidingViewController do not apply zoom factor in .. . .. . by commenting MEZoomAnimationScaleFactor . Then at the top of - void animateTransition : id UIViewControllerContextTransitioning transitionContext method add .. . .. . Finally the method doing all the transformation must be : .. . .. . Enjoy your animation :", "Question : I am following this http : kingscocoa.com tutorials slide-out-navigation tutorial to make a Sliding app . I have added the ECSlidingViewController https : github.com ECSlidingViewController ECSlidingViewController in my project . I have performed only few steps from the tutorial then I have encountered the error . I have written nothing in code except the code from tutorial i.e . When I run the app my app crashes and showing me this error : .. . .. . I searched google and Tried many ways some of them are form the links : .. . .. . First Link https : github.com ECSlidingViewController ECSlidingViewController wiki Storyboards-Guide .. . .. . Second Link http : stackoverflow.com questions 15081513 ecslidingviewcontroller-not-first-view .. . .. . I am not able to find any genuine solution . .. . Answer : It s Strange when i Interchange the lines in ViewDidLoad it works file :", "Question : Little Background : - I have two storyboards in my project one with autolayout and one without autolayout . Main storyboard contains ECSlidingViewController where I set topviewcontroller as mentioned on the ECSliding github page like below : - .. . .. . My Code : - .. . .. . Problem : - .. . .. . How do I get the instance of ECSlidingViewController in View controller class in new storyboard as self.navigationController visibleViewController gives me instance of UIViewController class instead of ECSlidingViewController . Comment : you can access that reference from appDelegate . Comment : @NimitParekh How do i do that Comment : all the code is there above in question .. . Answer : Instead of self.navigationController visibleViewController i used self.slidingViewController.underLeftViewController as follows : - .. . .. . This gave me the ECSlidingViewController instance .", "Question : I m using ECSlidingViewController https : github.com edgecase ECSlidingViewController . In the sample project i added a button on the First view with an IBAction .. . I want the button on the First view to go to the second view without using the slide out navigation . With this code it only goes to the navigation slide out menu and doesn t go to the Second .. . Answer : Don t always use self.slidingViewController . It s a derived property not a static value . So what s happening is that you replace the first view with the second view and then the first view can t get the sliding controller any more you broke its reference . So do this instead : Comment : Awesome thanks so much", "Question : null .. . Answer : I m trying to implement UI dynamics from the example at https : github.com ECSlidingViewController ECSlidingViewController on my project and my screen gets unresponsive after pressing my Menu button which runs the following code : .. . .. . Any ideas what I m probably doing wrong NOTE : If I don t press Menu button I can show-hide the sidebar every time I want by dragging the top screen . NOTE 2 : If you know about a better sliding view library I m all ears : - Comment : Isn t this question best directed at the developer of ECSlidingViewController Comment : In his Readme.md link github.com ECSlidingViewController ECSlidingViewController blob https : github.com ECSlidingViewController ECSlidingViewController blob master README.md says If you need help using ECSlidingViewController please post a question on StackOverflow with the ECSlidingViewController tag . Just to be sure I did both . But I feel like I m going to switch to another library this is way too complex and has little support .", "Question : I want to build a some special animation based https : github.com ECSlidingViewController ECSlidingViewController . The Zoom animation is like below image . enter image description here http : i.stack.imgur.com PeRHW.png .. . .. . I just want to rotate the main view controller by PI 4 . Like below image . enter image description here http : i.stack.imgur.com zxH31.png .. . .. . I had tried to EndState transform like below code but it doesn t work . Any help pointers or example code-snippets would be really appreciated Comment : Did you manage to get it working I m trying to do the exact same thing and any help would be appreciated thanks .. . Answer : On top of ryancrunchi s answer you also need to modify the topViewStartingState to reset the x position to 0 and not the middle of the container frame . This removes the jerky offset at the start of the animations : .. . .. . Change .. . .. . to .. . .. . There is also a mistake in the animation that causes a jerky left menu at the end of the opening animation . Copy the following line from the completion part of the animation so that it runs during the animation : .. . .. . The animation function will now look like :", "Question : Does anyone know if ECSlidingViewController2 can be used with both a left and a right UIBarButtonItem at the same time Each of the examples only show a single button used on the left of the navigation bar . https : github.com ECSlidingViewController ECSlidingViewController .. . .. . Thanks in advance EDIT : .. . .. . For future reference an example showing ECSlidingViewController2 using both a left and right UIBarButtonItem at the same time can now be found at : .. . .. . https : github.com ECSlidingViewController ECSlidingViewController tree master Examples LayoutDemo Comment : This question is not about general computing . Bad close vote . .. . Answer : Yes . The LayoutDemo had a left and right button ." ] }
[ "yes-answer-long", "yes-answer-short" ]
interface
UNK_RELATION
shr@renderer@36
shr -- gnu emacs elisp simple html @placeholder .
{ "confidence": [], "content": [] }
{ "confidence": [], "content": [] }
[ "yes-answer-long", "yes-answer-short" ]
renderer
UNK_RELATION
jsoauth@oauth@45
jsoauth -- javascript implementation of the @placeholder protocol .
{ "confidence": [ 35.61859893798828, 32.3975944519043, 30.487075805664062, 29.476482391357422, 28.414155960083008, 28.414155960083008, 27.403560638427734, 25.8406982421875, 24.574539184570312, 24.265687942504883, 22.81731414794922, 22.81731414794922, 22.65929412841797, 22.65929412841797, 22.501619338989258, 22.20395278930664, 20.586374282836914, 19.2111873626709, 18.120880126953125, 18.120880126953125, 17.23057746887207, 16.88973045349121, 15.684990882873535, 15.684990882873535, 15.684990882873535, 15.684990882873535, 15.684990882873535, 15.684990882873535, 15.684990882873535, 15.684990882873535, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 13.61207103729248, 12.236884117126465, 12.236884117126465, 12.236884117126465, 12.236884117126465, 12.236884117126465, 12.236884117126465, 10.588685989379883, 10.588685989379883, 10.588685989379883, 10.588685989379883, 10.588685989379883, 8.6552734375, 8.6552734375, 8.6552734375, 8.6552734375, 8.6552734375, 8.6552734375, 8.6552734375, 8.6552734375, 8.6552734375 ], "content": [ "There s a Javascript library for doing OAuth - called jsOAuth https : github.com bytespider jsOAuth .", "http : bytespider.github.com jsOAuth api-reference get", "Well I checked the code of jsoauth1.3.4 and the Plaintext messagesigner is not supported by jsoauth .", "I m using jsOAuth : https : github.com bytespider jsOAuth .. . .. . I want to get to the Twitter OAuth page where the user inputs their username pass so that my app can then get the other token for tweeting etc .", "2 . jsOAuth presumes the presence of the map method on all Array types .", "3 . jsOAuth instantiates XMLHttpRequest instances directly from the XMLHttpRequest constructor .", "jsOauth does not currently support streaming API as confirmed by its own author : .. . .. . https : github.com bytespider jsOAuth issues 29 issuecomment-6841882 .. . .. . Looks like I will have to find an alternative till the next release .", "The key test would be : .. . can jsOAuth be used to post a Tweet on behalf of a user from an ASP Classic page", "but still if somebody wants to use this I have a method non-recommended .. . .. . append the below function in the OAuth.signatureMethod method in jsoauth1.3.4.js to make the jsoauth recognize your messagesigner menthod as PLAIN TEXT .. . .. . Not Tested", "This http : stackoverflow.com questions 10792607 retrieving-access-token-from-twitter-oauth-api-with-jsoauth could be a possible solution but even the Boilerplate example is not working .", "I m doing the oauth part using the library jsoauth but I m getting a 401 error .", "Tumblr redirects you to the oauth callback they have on file which includes the oauth verifier you need to plumb into .setVerifier in jsOAuth .", "I am creating a oauth connectivity using jsoauth 1.3 in cordova 2.0 can anyone tell me how to sent message signer method as plain text because my server only support plain text message signer method .", "Whe I uncomment the line signatureMethod : PLAINTEXT in the above code I get an error in the log link 09-01 16 : 37 : 42.120 : E Web Console 16950 : Uncaught TypeError : Object Object has no method PLAINTEXT at file : android asset www jsOAuth-1.3.4.js : 433", "Based on the link above jsOAuth Library I wrote my code and when I run it on my android the inAppBrowser correctly redirects me to the twitter page where I m supposed to get my pin .", "As has been noted in the answer to my prior question : Twitter APIs : update working but filter does not http : stackoverflow.com questions 11372835 twitter-apis-update-working-but-filter-does-not .. . .. . . . the filter API is a streaming API : https : dev.twitter.com docs streaming-apis .. . .. . I would like to make jsOAuth work with these streaming APIs : https : github.com bytespider jsOAuth .. . .. . It works well with the REST APIs and if anyone has made or knows how to make it work with the streaming APIs please enlighten me", "When running in a browser on my PC I get the same message and in the console : api.twitter.com oauth request token https : api.twitter.com oauth request token 405 Method Not Allowed jsOAuth-1.3.6.min.js : 1 XMLHttpRequest cannot load api.twitter.com oauth request token https : api.twitter.com oauth request token .", "Application type : mobile Titanium SDK : 3.0.2.GA Platform version : Android 4.0.4 Device : Android Xperia P .. . .. . i am trying to use twitter API via jsOAuth 1.3.6 . all the OAuth dance goes well until I fetch request token oAuthApi.fetchAccessToken method .", "The library has a couple problems that prevent it from being used as is from an ASP-Classic page implemented in Javascript .", "This constructor is available in the Javascript execution environment within modern browsers but it isn t available within ASP-Classic .", "please see code below .. . .. . here is my jsOAuth initialization : .. . .. . my callback is .. . .. . 1- I call fetchRequestToken ok 2- i open the user authorization login window ok 3 - enter username and password and get the callback url ok 4 - call fetchAccessToken get 401 error .. . .. . below is my header : .. . .. . any idea what might be the problem", "Also it directly assigns properties to the global this object which isn t directly possible in ASP Classic http : stackoverflow.com questions 9629993 inserting-objects-into-global-scope-in-classic-asp-javascript .", "FYI it s not a web app .", "It s a mobile app I know not to show the key and secrets etc .", "When I click this button it doesn t work do you know why", ":", "Just looking at it oauth.get is expecting 3 parameters but you only have 1 valid parameter -- the anonymous function .", "The other two -- .. . .. . alert ahhhh .. . .. . window.location.replace index.html .. . .. . are not valid parameters .", "It might be that setting up success and failure functions to be carried out and used as parameters as in the reference would help out .", "my oauth.get function is working properly bur the default signer is HMAC-SHA1 .. . .. . this is my code", "Thanks", "The examples that are available show it being used from within browsers .", "There are also some examples that claim to show how to use it from Node.js .", "Can it also be used from ASP Classic JScript", "No I don t think so .", "1 . the basic syntax of the library assumes a require package and a well-known exports variable .", "These conventions aren t present in ASP Classic .", "The library could fall back to use new ActiveXObject MSXML2.ServerXMLHTTP but it does not .", "4 .", "The library presumes asynchronous XMLHttpRequest operation .", "In a browser that works just fine .", "But in ASP-Classic page the page process ends which means pending asynchronous calls are orphaned .", "In the ASP-Classic environment it would be necessary to make synchronous calls to the OAuth-protected Service Provider .", ".. . .. . So out of the box not possible .", "The other major obstacle to using it within ASP Classic is the lack of suitable documentation and examples .", "It is possible to modify the library to allow it to be used in ASP Classic I ve put together a modified version .", "I ll post it shortly .", "+1 for useful explanation .", "I searched SE s archives google directly ripped this https : gist.github.com funkatron 979955 off and ran it and I ve been on it for like 6 hours now .", "But instead of the pin it shows there is no request token for this page.. . error .", "I even deleted and registered a new app under a different name and got a new pair of Consumer key secret .", "But that too did not budge .", "I guess I m not getting my request token .", "Any help", "Same here .", "Seems to work on some phones Samsung Galaxy ACE but not others S3 Mini .", "No Access-Control-Allow-Origin header is present on the requested resource .", "Origin 192.168.1.92 : 8080 http : 192.168.1.92 : 8080 is therefore not allowed access .", "Suggest you run adb logcat -d log.txt on you PC while connected via USB to your phone .", "This will give any PhoneGap Cordova errors and console output .", "i am always getting unauthorized error any idea why", "i am blocked", "Twitter made an abrupt and unannounced change to oauth this week : https : dev.twitter.com discussions 16443 .. . .. . Looking at the header the issue is that your oauth verifier value is empty and the change now enforces this value .", "You ll get this with your callback URL as a parameter http : 192.168.1.116 : 8888 callback twitterOauthCallback.html oauth token xxx oauth verifier xxx", "thank you a lot .", "it worked :", "I m building a chrome extension for tumblr .", "The exact error being oauth signature D6rDCSn ClGhMyTq24 c6419t8I does not match expected value wnrVNhZYCSfRmKSTaKyb9dg7vNQ .. . .. . I have no idea what s causing it .", "Here s the code I have : .. . .. . Background.html .. . .. . background.js", "False is the wrong thing to be sending as the oauth verifier .", "Tumblr API docs are very lapse in explaining much about the ouath authorization process but thats my opinion .", "I am developing a Hybrid app using Cordova PhoneGap .", "While using Twitter login browser do not close after navigating to success url .", "This happens only in Samsung S4 .", "Code is something like this : .. . .. . To open : .. . .. . To close : .. . .. . There is no problem in S3 .", "Any solution or trick to resolve the same will be appreciated .", "I think this is may be due to the Android version probably KitKat and not the device itself .", "I have the same issue with a Nexus tablet .", "I will let you know If I find a fix .", "I am testing on Galaxy S4 Jellybean ." ] }
{ "confidence": [ 38.522705078125, 36.6037483215332, 36.43921661376953, 35.618465423583984, 31.12171173095703, 30.301677703857422, 29.376968383789062, 8.397647857666016 ], "content": [ "Question : There s a Javascript library for doing OAuth - called jsOAuth https : github.com bytespider jsOAuth . The examples that are available show it being used from within browsers . There are also some examples that claim to show how to use it from Node.js . Can it also be used from ASP Classic JScript The key test would be : .. . can jsOAuth be used to post a Tweet on behalf of a user from an ASP Classic page .. . Answer : No I don t think so . The library has a couple problems that prevent it from being used as is from an ASP-Classic page implemented in Javascript . 1 . the basic syntax of the library assumes a require package and a well-known exports variable . These conventions aren t present in ASP Classic . Also it directly assigns properties to the global this object which isn t directly possible in ASP Classic http : stackoverflow.com questions 9629993 inserting-objects-into-global-scope-in-classic-asp-javascript . 2 . jsOAuth presumes the presence of the map method on all Array types . 3 . jsOAuth instantiates XMLHttpRequest instances directly from the XMLHttpRequest constructor . This constructor is available in the Javascript execution environment within modern browsers but it isn t available within ASP-Classic . The library could fall back to use new ActiveXObject MSXML2.ServerXMLHTTP but it does not . 4 . The library presumes asynchronous XMLHttpRequest operation . In a browser that works just fine . But in ASP-Classic page the page process ends which means pending asynchronous calls are orphaned . In the ASP-Classic environment it would be necessary to make synchronous calls to the OAuth-protected Service Provider . .. . .. . So out of the box not possible . The other major obstacle to using it within ASP Classic is the lack of suitable documentation and examples . It is possible to modify the library to allow it to be used in ASP Classic I ve put together a modified version . I ll post it shortly . Comment : +1 for useful explanation .", "Question : I am creating a oauth connectivity using jsoauth 1.3 in cordova 2.0 can anyone tell me how to sent message signer method as plain text because my server only support plain text message signer method . my oauth.get function is working properly bur the default signer is HMAC-SHA1 .. . .. . this is my code Comment : Whe I uncomment the line signatureMethod : PLAINTEXT in the above code I get an error in the log link 09-01 16 : 37 : 42.120 : E Web Console 16950 : Uncaught TypeError : Object Object has no method PLAINTEXT at file : android asset www jsOAuth-1.3.4.js : 433 .. . Answer : Well I checked the code of jsoauth1.3.4 and the Plaintext messagesigner is not supported by jsoauth . but still if somebody wants to use this I have a method non-recommended .. . .. . append the below function in the OAuth.signatureMethod method in jsoauth1.3.4.js to make the jsoauth recognize your messagesigner menthod as PLAIN TEXT .. . .. . Not Tested", "Question : I m using jsOAuth : https : github.com bytespider jsOAuth .. . .. . I want to get to the Twitter OAuth page where the user inputs their username pass so that my app can then get the other token for tweeting etc . FYI it s not a web app . It s a mobile app I know not to show the key and secrets etc . When I click this button it doesn t work do you know why : .. . Answer : Just looking at it oauth.get is expecting 3 parameters but you only have 1 valid parameter -- the anonymous function . The other two -- .. . .. . alert ahhhh .. . .. . window.location.replace index.html .. . .. . are not valid parameters . It might be that setting up success and failure functions to be carried out and used as parameters as in the reference would help out . http : bytespider.github.com jsOAuth api-reference get", "Question : As has been noted in the answer to my prior question : Twitter APIs : update working but filter does not http : stackoverflow.com questions 11372835 twitter-apis-update-working-but-filter-does-not .. . .. . . . the filter API is a streaming API : https : dev.twitter.com docs streaming-apis .. . .. . I would like to make jsOAuth work with these streaming APIs : https : github.com bytespider jsOAuth .. . .. . It works well with the REST APIs and if anyone has made or knows how to make it work with the streaming APIs please enlighten me Thanks .. . Answer : jsOauth does not currently support streaming API as confirmed by its own author : .. . .. . https : github.com bytespider jsOAuth issues 29 issuecomment-6841882 .. . .. . Looks like I will have to find an alternative till the next release .", "Question : null .. . Answer : I searched SE s archives google directly ripped this https : gist.github.com funkatron 979955 off and ran it and I ve been on it for like 6 hours now . Based on the link above jsOAuth Library I wrote my code and when I run it on my android the inAppBrowser correctly redirects me to the twitter page where I m supposed to get my pin . But instead of the pin it shows there is no request token for this page.. . error . I even deleted and registered a new app under a different name and got a new pair of Consumer key secret . But that too did not budge . This http : stackoverflow.com questions 10792607 retrieving-access-token-from-twitter-oauth-api-with-jsoauth could be a possible solution but even the Boilerplate example is not working . I guess I m not getting my request token . Any help Comment : Same here . Seems to work on some phones Samsung Galaxy ACE but not others S3 Mini . When running in a browser on my PC I get the same message and in the console : api.twitter.com oauth request token https : api.twitter.com oauth request token 405 Method Not Allowed jsOAuth-1.3.6.min.js : 1 XMLHttpRequest cannot load api.twitter.com oauth request token https : api.twitter.com oauth request token . No Access-Control-Allow-Origin header is present on the requested resource . Origin 192.168.1.92 : 8080 http : 192.168.1.92 : 8080 is therefore not allowed access . Comment : Suggest you run adb logcat -d log.txt on you PC while connected via USB to your phone . This will give any PhoneGap Cordova errors and console output .", "Question : I m building a chrome extension for tumblr . I m doing the oauth part using the library jsoauth but I m getting a 401 error . The exact error being oauth signature D6rDCSn ClGhMyTq24 c6419t8I does not match expected value wnrVNhZYCSfRmKSTaKyb9dg7vNQ .. . .. . I have no idea what s causing it . Here s the code I have : .. . .. . Background.html .. . .. . background.js .. . Answer : False is the wrong thing to be sending as the oauth verifier . Tumblr redirects you to the oauth callback they have on file which includes the oauth verifier you need to plumb into .setVerifier in jsOAuth . Tumblr API docs are very lapse in explaining much about the ouath authorization process but thats my opinion .", "Question : Application type : mobile Titanium SDK : 3.0.2.GA Platform version : Android 4.0.4 Device : Android Xperia P .. . .. . i am trying to use twitter API via jsOAuth 1.3.6 . all the OAuth dance goes well until I fetch request token oAuthApi.fetchAccessToken method . i am always getting unauthorized error any idea why please see code below .. . .. . here is my jsOAuth initialization : .. . .. . my callback is .. . .. . 1- I call fetchRequestToken ok 2- i open the user authorization login window ok 3 - enter username and password and get the callback url ok 4 - call fetchAccessToken get 401 error .. . .. . below is my header : .. . .. . any idea what might be the problem i am blocked .. . Answer : Twitter made an abrupt and unannounced change to oauth this week : https : dev.twitter.com discussions 16443 .. . .. . Looking at the header the issue is that your oauth verifier value is empty and the change now enforces this value . You ll get this with your callback URL as a parameter http : 192.168.1.116 : 8888 callback twitterOauthCallback.html oauth token xxx oauth verifier xxx Comment : thank you a lot . it worked :", "Question : null .. . Answer : I am developing a Hybrid app using Cordova PhoneGap . While using Twitter login browser do not close after navigating to success url . This happens only in Samsung S4 . Code is something like this : .. . .. . To open : .. . .. . To close : .. . .. . There is no problem in S3 . Any solution or trick to resolve the same will be appreciated . Comment : I think this is may be due to the Android version probably KitKat and not the device itself . I have the same issue with a Nexus tablet . I will let you know If I find a fix . Comment : I am testing on Galaxy S4 Jellybean ." ] }
[ "yes-answer-long", "yes-answer-short" ]
oauth
UNK_RELATION
quickfixj@java@32
quickfixj -- quickfix j is the @placeholder port of quickfix an open-source engine for writing applications that communicate via fix financial information exchange protocol .
{ "confidence": [ 61.379634857177734, 60.371604919433594, 58.47726058959961, 57.306251525878906, 55.585044860839844, 53.83568572998047, 52.414337158203125, 48.580074310302734, 48.580074310302734, 47.57280349731445, 47.57280349731445, 46.0966796875, 45.87062072753906, 45.19478225708008, 44.78203582763672, 44.717838287353516, 44.717838287353516, 44.717838287353516, 44.717838287353516, 44.717838287353516, 44.717838287353516, 44.717838287353516, 43.939109802246094, 43.939109802246094, 42.94209289550781, 42.83198928833008, 42.252410888671875, 41.844120025634766, 41.4356575012207, 40.850624084472656, 40.850624084472656, 40.850624084472656, 40.850624084472656, 40.850624084472656, 40.271278381347656, 39.8532829284668, 39.778594970703125, 39.7774658203125, 39.750572204589844, 39.750572204589844, 39.750572204589844, 39.14373779296875, 38.911094665527344, 38.80501174926758, 38.741058349609375, 38.36798858642578, 38.19509506225586, 37.728145599365234, 37.49165344238281, 37.29970169067383, 37.29970169067383, 37.29970169067383, 37.29970169067383, 37.29970169067383, 37.29970169067383, 37.29970169067383, 37.08286666870117, 36.59050369262695, 36.59050369262695, 36.15285110473633, 36.06995391845703, 36.06995391845703, 35.64151382446289, 35.64151382446289, 35.64151382446289, 35.64151382446289, 35.64151382446289, 35.64151382446289, 35.64151382446289, 35.64151382446289, 35.64151382446289, 34.96990203857422, 34.84952163696289, 34.54146194458008, 33.90254592895508, 33.450927734375, 33.223018646240234, 33.19133377075195, 33.19133377075195, 33.19133377075195, 33.19133377075195, 33.01972961425781, 33.01972961425781, 32.41720199584961, 31.353370666503906, 30.97420883178711, 30.97203826904297, 30.97203826904297, 30.54084014892578, 30.54084014892578, 30.233367919921875, 29.50424575805664, 29.313846588134766, 29.313846588134766, 29.313846588134766, 29.313846588134766, 28.882648468017578, 28.882648468017578, 28.882648468017578, 28.687763214111328 ], "content": [ "Session.java https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix Session.java", "We use QuickFIX J as FIX engine .", "My recommendation for you is to look at the source code https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix Session.java for this project and compare the methods one of the benefits of open-source software .", "The Logger that Logs on Console : ScreenLog https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix ScreenLog.java ScreenLogFactory https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix ScreenLogFactory.java .. . .. . QuickFix J source : .. . .. . https : github.com quickfix-j quickfixj", "Copy the AbstractLog https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix AbstractLog.java class as it is from QuickFix J s source and include it in your project .", "This is our Quickfix J config :", "I am writing an application that uses QuickFIX J as FIX framework .", "To OP : More details in QuickFIX J User Manual - Receiving Messages http : www.quickfixj.org quickfixj usermanual 1.5.3 usage receiving messages.html", "I was looking at the this link http : www.quickfixj.org quickfixj usermanual 1.5.0 usage configuration.html Socket for help regarding QuickFIX J configuration .", "I m connecting to FixImulator QuickFix J", "FYI it s QuickFIX J not quickfix4j .", "QuickFIX comes with several example applications .", "The source file of the QuickFix J implementation also should know these values. .", "I am writing an application processing FIX messages in Java and for that I am using QuickFix J .", "Should I move from QuickFIX J and try with some other FIX engine", "It seems quickfix j would handle for me .", "@user838204 AFAIK QuickFix J handles the connection reconnection .", "Afterwards rebuild QuickFIX J to reflect these changes .", "I have a QuickFIX J application running as acceptor .", "Is there any way to rotate log files with QuickFIX J", "There are two parties involved in this QuickFIX J communication : .. . .. . 1 .", "I have used JUnit with QuickFIX J tests .", "In the quickfix mailing lists it says http : sourceforge.net p quickfixj mailman message 32807121 that this is a currently unresolved problem with the 1.6.0-SNAPSHOT version of QF J .", "Read about how here : QuickFIX J User Manual - Receiving Messages http : www.quickfixj.org quickfixj usermanual 1.5.3 usage receiving messages.html .", "To rebuild QuickFIX J to accept your custom data-dictionary please refer to the answer I gave in the following StackOverflow post https : stackoverflow.com questions 29967804 quickfix-j-mixing-two-different-versions 29971247 29971247 .", "I am using the same code as found in the QuickFixJ unit tests https : github.com quickfix-j quickfixj blob master quickfixj-core src test java quickfix MessageTest.java A variation of the same code works in this example http : www.dailyfx.com forex forum fix-api-support 64877-quickfix-java-example.html it is after a connection is applied through the initiator object .", "Message cracking should done by a quickfix.MessageCracker http : www.quickfixj.org quickfixj javadoc 1.5.3 quickfix MessageCracker.html .", "First of by looking at the Javadoc http : www.quickfixj.org quickfixj javadoc 1.5.3 for QuickFIX J one could argue it is kind of lacking the information needed for the methods you choose between .", "For QuickFIX the answer is : You can t .", "I ve implemented a Java program that uses QuickFIX J version 1.6.0 .", "Run mvn package to build the QuickFIX J and examples jar files .", "@mrbela added build instructions for QuickFIX J 1.6.x", "Clearly QuickFix J can do a better job updating their installation instructions .", "There are examples included in the installation of QuickFIX J namely Executor and Banzai .", "I wanted to clarify a behavior of QuickFIX J FIX 4.2 under the following scenario .", "Guess I have to rebuild quickFIX", "So even for incoming messages it is probably recommended to rebuild QuickFIX J if you have custom-fields in repeating groups .", "These application are in the quickfix examples directory .", "QuickFix J provides functionality to store its logs in database .", "The easiest approach would be to use the private AbstractLog from QuickFix J .", "We are creating a low-latency Java application with QuickFIX J .", "You have a custom Logger now and can use it as QuickFix J s own loggers are used and QuickFix J will automatically log using your logger .", "See the Configuring QuickFIX http : www.quickfixengine.org quickfix doc html configuration.html link for more detail .", "Same issue here it seems quickfix-j.364392.n2.nabble.com http : quickfix-j.364392.n2.nabble.com Value-is-incorrect-out-of-range-for-this-tag-371-35-td3050411.html", "In your case I would start looking at quickfix.fix44.NewOrderList http : www.quickfixj.org quickfixj javadoc 1.5.0 documentation for 1.5.x latest QuickFIX J version is 1.6.x though .", "I have implemented a QuickFIX J http : www.quickfixj.org application the J stands for Java .", "Quickfix already allows multiple sessions .", "I m using quickfix messenger code to connect to a FIX SERVER .", ".. . .. . Update .. . .. . After implementing more logging for QuickFIX J I get extra information .", "I am using QuickFIx J 1.6.2 and when I call initiator.stop no LogOut message is sent .", "The VeriFIX resends the Position Report to your application but QuickFIX J does not accept the Position Report claiming it is missing tags.. .", "The QuickFIX J code generation includes an orderedFields option to order regular body fields by the data-dictionary ordering .", "I am using QuickFIX J to implement a very simple application that keeps track of TradeCaptureReport messages .", "I m trying to generate a list orders forex orders to be executed by my TargetCompID with QuickFix J lib .", "Instead of creating a message from scratch you should be using the predefined messages in QuickFIX J .", ".. . .. . Messages coming in fromApp are not of specific message types as defined in the QuickFIX J library but are of type quickfix.Message .", "From the QuickFIX J user-manual http : www.quickfixj.org quickfixj usermanual 1.5.3 usage codegen.html : .. . .. . The simplest customization is to just modify one or more data dictionaries e.g . FIX44.xml and rebuild QFJ .", "In QuickFIX J FIX4.4 dictionary shows LegSymbol is non mandatory field but I found from some other sources it is a mandatory field .", "See the QuickFIX J User FAQ http : www.quickfixj.org confluence display qfj User+FAQ topic I altered my data-dictionary .", "QuickFix : SendingTime accuracy problem http : msdevs.blogspot.com 2013 12 quickfix-sendingtime-accuracy-problem.html", "I m using the latest quickfix version which is 1.6.0 .", "They are merely provided as a tutorial on how to build an application with QuickFIX .", "I am trying to establish a connection with quickfix j but i am behind the company firewall .", "Can you explain me how QuickFix J knows what fields contain to a group", "I m using Quickfix J to receive the message but Sent test request TEST happen .", "The file keep receiving messages but the Quickfix J process none nothing happens within onMessage method", "Here is the update : .. . .. . My config : .. . .. . Here s the codes : .. . .. . Basically I let Quickfix J to handle the connection itself .", "This could be helpful : stackoverflow.com questions 29967804 http : stackoverflow.com questions 29967804 quickfix-j-mixing-two-different-versions", "I had an impression that QuickFIX J s message-queue implementation handles this without an application-level aid .", "How is QuickFIX J s message-queue expected to behave in this scenario when a session is not logged on", "It can be used with the Executor to see a simple example of using QuickFIX J on both the buy and sell side of an order execution .", "quickfix is not able to handle or some other component", "But this has not been finalized yet . .. . .. . I solved the problem by returning to Quickfix 1.5.2", "The solution is to create your own Logger and LoggerFactory similar to the ones provided by QuickFix J .", "EDIT : Following is for version 1.5.x .. . .. . Check the QuickFIX J user FAQ http : www.quickfixj.org confluence display qfj User+FAQ on how to rebuild QuickFIX J EDIT : version 1.5.x : .. . .. . You ll need ant installed .", "However when quickfix reads the repeating group it does not read the custom-fields as part of the repeating groups .", "I m troubleshooting an application that uses QuickFIX J and is written in Groovy 2.4.5 built with Gradle 2.10 .", "When the begin string is FIXT.1.1 quickfix will treat the message as FIX50 with the DefaultMessageFactory .", "What is the proper way of connecting to mulitple servers acceptors using quickfix", "So it has to be defined in some Java classes in the QuickFix implementation", "I ve added this parameter SendRedundantResendRequests N to my Quickfix settings file .", "@AshishBhatia From the User FAQ : If you changed field orders inside of repeating groups then I recommend that you do rebuild QuickFIX J especially if those group changes are in outgoing messages . .", "After sending a logon message using quickfix J I want to receive the raw incoming message and do my own thing with the message as far as decoding it goes .", "The message from the target computer sends the message back in SBE format and using Quickfix J message and messagecracker the raw data is not recognized or I just simply do not know a way to receive the raw data using fromApp .. . .. . I want to intercept the raw data coming in so that i can send it to my own SBE decoder instead of using quickfix J message and messagecracker .", "I am doing a development to integrate a non Java OMS system with QuickFIX J to send buy sell orders to multiple brokerage systems .", "I haven t checked QuickFIX support but you can always add the tag yourself manually or customize your FIX dictionary to support the tag .", "how do you catch lower level exceptions from quickfix which appear in the messages log but aren t caught by fromAdmin", "The various QuickFIX engines internal representations of Message objects ignore the top-level tag order because there is no benefit to storing it .", "If I am reading this correctly your application written using QuickFIX J is sending a Resend Request to the VeriFIX application to have the VeriFIX application resend the Position Report .", "I ve read this doc many times At least I didn t find there info about components you described in link http : stackoverflow.com questions 29772481 difference-between-group-and-component-in-quickfix-j", "im using quickfixj 1.5.0 .", "I get the exact same error using the FIX Client example found here http : www.dailyfx.com forex forum fix-api-support 64877-quickfix-java-example.html as well", "I am using the apache.servicemix.bundles.quickfix instead of the QuickFix-all.jar because it contains some fields i need to add to other messages .", "I am using Log4j to rotate my log files but I was not able to rotate the QuickFIX messages .", "All QuickFIX messages are ensured for delivery to counter-parties http : permalink.gmane.org gmane.comp.finance.quickfix.devel 169 .", "If you re testing the responses of a QuickFix application then you re really into integration-testing rather than unit-testing .", "I m aware that ResendRequest may not come and it is impossible to figure that out without simply waiting but what would be the best approach for us using QuickFIX J to send our messages as soon as possible but after sequence numbers are synchronized", "Our firm made many implementations based on the belief that QuickFIX J guarantees all messages to be delivered without a loss but my observation on the scenario above speaks otherwise .", "I am a little bit familiar with JUnit but I don t know if it s the right one for that issue because QuickFIX J has callbacks fromApp -method of the Application class for example .", "quickfixj.org quickfixj usermanual 1.5.3 usage codegen.html http : www.quickfixj.org quickfixj usermanual 1.5.3 usage codegen.html" ] }
{ "confidence": [ 73.75944519042969, 73.3231201171875, 72.69309997558594, 71.06468200683594, 70.52455139160156, 69.93956756591797, 67.6805648803711, 66.62230682373047, 63.646331787109375, 62.863582611083984, 60.62799835205078, 58.71459197998047, 58.27445983886719, 58.168426513671875, 57.46935272216797, 56.21086883544922, 55.061561584472656, 54.54993438720703, 53.88556671142578, 53.52927780151367 ], "content": [ "Question : QuickFix J provides functionality to store its logs in database . Is it possible to append another column business ID to one of its table in such a way that it does not cause problems in QuickFix J s internal message logging If it is possible kindly mention the procedure to do it too . Comment : read able content .. . Answer : The solution is to create your own Logger and LoggerFactory similar to the ones provided by QuickFix J . You can create a Logger by implementing the quickfix.Log interface and a LoggerFactory by implementing the quickfix.LogFactory interface . The easiest approach would be to use the private AbstractLog from QuickFix J . Creating the Log class : .. . .. . 1 . Copy the AbstractLog https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix AbstractLog.java class as it is from QuickFix J s source and include it in your project . 2 . Create a class which extends the AbstractLog class and implement all the abstract methods . 3 . Create member variables for any extra field you want to append to the logs e.g . business ID and provide a constructor which takes is as an argument and sets its value . 4 . The logIncoming and logOutgoing methods take a String parameter . This is the data you want to log . At this point you can append your own fields added in point 3 to the logs . You can format the log as you wish and you are free to use any method of output i.e . Console database etc . as you will have to implement it yourself . Creating the LoggerFactory : .. . .. . 1 . Create a LoggerFactory that implements the quickfix.LogFactory interface . .. . 2 . In the create method create and return the instance of the Logger you created before using the constructor you require . .. . 3 . The values that you need to be passed to the constructor can be kept as member variables of the LoggerFactory and set in LoggerFactory s constructor . You have a custom Logger now and can use it as QuickFix J s own loggers are used and QuickFix J will automatically log using your logger . Taking a look at QuickFix J s own Logger and LoggerFactory implementations for help would be a good idea . e.g . The Logger that Logs on Console : ScreenLog https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix ScreenLog.java ScreenLogFactory https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix ScreenLogFactory.java .. . .. . QuickFix J source : .. . .. . https : github.com quickfix-j quickfixj", "Question : will anybody please help me understand the difference between session.logout and session.generateLogout . One can also create and send a logout message explicitly . How is that different from the other two Comment : From which API Interface do you get these logout and generateLogout methods Show some code . .. . Answer : First of by looking at the Javadoc http : www.quickfixj.org quickfixj javadoc 1.5.3 for QuickFIX J one could argue it is kind of lacking the information needed for the methods you choose between . My recommendation for you is to look at the source code https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix Session.java for this project and compare the methods one of the benefits of open-source software . At a glance see below for differences between the methods .. . .. . The logout method only calls setEnabled false .. . .. . while the .. . .. . generateLogout Message otherLogout String text SessionStatus sessionStatus .. . .. . calls all different kinds of things . For example it prepares a logout message setting a session status and so on . In summary it seems the generateLogout method is a more proper way to logout . Comment : the version of qfixj i am using does not support generateLogout . what if i create and send a logout 35 5 explicitly . will that be ok", "Question : After opening an order with our brokerage firm we desire to obtain the fill price from the ExecutionReport messages . Below you will find the callback code used . The MarketDataSnapshotFullRefresh messages are received properly but the second if block is never triggered . Strangely the corresponding messages.log file does contain multiple 35 8 messages . We use QuickFIX J as FIX engine . .. . Answer : @DumbCoder is not all that dumb - he makes a valid point . Message cracking should done by a quickfix.MessageCracker http : www.quickfixj.org quickfixj javadoc 1.5.3 quickfix MessageCracker.html . How Read about how here : QuickFIX J User Manual - Receiving Messages http : www.quickfixj.org quickfixj usermanual 1.5.3 usage receiving messages.html . .. . .. . Messages coming in fromApp are not of specific message types as defined in the QuickFIX J library but are of type quickfix.Message . If you wanted to process them the way you are doing now from fromApp you would have to inspect the MsgType manually : .. . .. . Based on the type retrieved you would call a handler method for the specific message type : .. . .. . .. . .. . .. . .. . .. . Now the better way to handle incoming messages as mentioned before is through a MessageCracker . You would eg extend the class that implements quickfix.Application with quickfix.MessageCracker . Add an onMessage method with two parameters first being the message type second a SessionID . Call crack from the fromApp method which will route to the appropriate handler .", "Question : I need simple example how to initializate session and send 1 fix message when I have such code .. . Answer : There are examples included in the installation of QuickFIX J namely Executor and Banzai . You can read about that here http : www.quickfixj.org quickfixj usermanual 1.5.3 usage examples.html . QuickFIX comes with several example applications . These application are in the quickfix examples directory . They are not meant to demonstrate good application-design or meant to be used in a real production system . They are merely provided as a tutorial on how to build an application with QuickFIX . .. . Executor is a very simple order execution simulator . It only supports limit orders and always fills them completely . .. . Banzai is a simple trading client . It can be used with the Executor to see a simple example of using QuickFIX J on both the buy and sell side of an order execution .", "Question : After opening an order with our brokerage firm we desire to obtain the fill price from the ExecutionReport messages . Below you will find the callback code used . The MarketDataSnapshotFullRefresh messages are received properly but the second if block is never triggered . Strangely the corresponding messages.log file does contain multiple 35 8 messages . We use QuickFIX J as FIX engine . .. . Answer : Why are you doing the message processing in the wrong place If you check what is recommended by Quickfix you will see they recommend message processing happens in onMessage which you might not have implemented . And there should only exist a message cracker in fromApp method . Or else your fromApp method is going to be a hotchpotch of code and the next person handling your code is not going to be a happy soul . Comment : To OP : More details in QuickFIX J User Manual - Receiving Messages http : www.quickfixj.org quickfixj usermanual 1.5.3 usage receiving messages.html", "Question : I am attempting to write a class for converting domain POJO s into QuickFixJ messages . When I try to create a new order message as so : .. . .. . The following exception is thrown in the logs : .. . .. . It seems this error happens when attempting to merge two versions of Fix Message Fields together but as far as I know I am not doing this . I am using the same code as found in the QuickFixJ unit tests https : github.com quickfix-j quickfixj blob master quickfixj-core src test java quickfix MessageTest.java A variation of the same code works in this example http : www.dailyfx.com forex forum fix-api-support 64877-quickfix-java-example.html it is after a connection is applied through the initiator object . I am using the apache.servicemix.bundles.quickfix instead of the QuickFix-all.jar because it contains some fields i need to add to other messages . I am unsure why I am not able to call a simple constructor of an object . The constructor in the jar is as follows : .. . .. . Is there another possible cause for this error I havent thought of I am stumped Comment : This could be helpful : stackoverflow.com questions 29967804 http : stackoverflow.com questions 29967804 quickfix-j-mixing-two-different-versions Comment : Thanks for the suggestion I had checked out this question earlier . It is the same error but I am not trying to merge two FIX message versions together . All I am trying to do is create an object of type fix44.message but I cant call the constructor without this error being thrown . I have imported the required dependencies from the sample project which is working . I just cant figure out what is causing the exception .. . Answer : I had this problem and had to revert to QuickFIX 1.5.2 .. . .. . quickfixj message factory produces bad type on operand stack using qf 1.6.0 and java 1.8.0 45 http : stackoverflow.com questions 30918449 quickfixj-message-factory-produces-bad-type-on-operand-stack-using-qf-1-6-0-and .. . .. . It s a known issue according to the user group . See the attached question.. .", "Question : I want to produce a market data request with 2 groups NoMDEntryTypes and NoRelatedSym one after the other as below : .. . .. . but when I send the message somehow quickfixj or my data-dictionary swaps around the order of the groups to the following : .. . .. . This happens even if I create a direct string message and validate it through my data-dictionary . What can I do to keep the groups in the order I want THANKS Comment : The QuickFIX J code generation includes an orderedFields option to order regular body fields by the data-dictionary ordering . I m not sure if this will order repeating groups but it might be worth trying if you really need to order groups for some reason . quickfixj.org quickfixj usermanual 1.5.3 usage codegen.html http : www.quickfixj.org quickfixj usermanual 1.5.3 usage codegen.html .. . Answer : In FIX the order of tags in the top-level body does not matter . The various QuickFIX engines internal representations of Message objects ignore the top-level tag order because there is no benefit to storing it . When the message is converted to a string it orders them by numerical tag order . It doesn t change the message in any meaningful way according to FIX . .. . .. . Order is preserved inside of repeating groups because FIX does mandate that the ordering is meaningful inside of groups . What can I do to keep the groups in the order I want For QuickFIX the answer is : You can t . .. . .. . If that is a really big problem for your needs there s no reason it should be then I guess you ll have to explore other FIX engine options . Comment : Thx Grant.. . So why is the ordering swapped at all Comment : Because the Message class stores the top-level body fields in a HashMap I think that is keyed by tag . Hashes do not preserve order . It would require extra coding to store the order information which would not be worthwhile because FIX doesn t care about the order .", "Question : Is there a way to handle this error without rebuilding quickFIXJ Comment : I get the same error using java JRE 1.7 Comment : If you don t get an answer here you may want to join the QF j mailing list and ask there . Comment : @Grant Birchmeier this is the stack-trace : at quickfix.fix44.MessageFactory.create MessageFactory.java : 103 at quickfix.DefaultMessageFactory.create DefaultMessageFactory.java : 133 at quickfix.MessageUtils.parse MessageUtils.java : 145 .. . Answer : In the quickfix mailing lists it says http : sourceforge.net p quickfixj mailman message 32807121 that this is a currently unresolved problem with the 1.6.0-SNAPSHOT version of QF J . Maybe we will treat all fields with different data types throughout the FIX versions simply as StringField in any case . But this has not been finalized yet . .. . .. . I solved the problem by returning to Quickfix 1.5.2", "Question : null .. . Answer : I was looking at the this link http : www.quickfixj.org quickfixj usermanual 1.5.0 usage configuration.html Socket for help regarding QuickFIX J configuration . How would I enable TLS 1.2 as the enabled protocol Is it : .. . .. . What if I wanted to specify ciphersuites For example to only use ciphersuites TLS ECDHE ECDSA WITH AES 256 CBC SHA384 and TLS ECDHE RSA WITH AES 256 CBC SHA384 . Is it : .. . .. . Can you put commas There is no example of how to specify this in documenation .", "Question : I m trying to generate a list orders forex orders to be executed by my TargetCompID with QuickFix J lib . If I correctly understand the FIX message standard my message must have the following fields I ve put my values in parenthesis : .. . .. . Header part .. . .. . 8 BeginString FIX.4.4 .. . 9 BodyLength will be computed and provided by quickfixj when sending .. . 35 MsgType E NewOrderList .. . 34 MsgSeqNum will be computed and provided by quickfixj whend sending .. . 49 SenderCompId that s me .. . 52 SendingTime will be computed and provided by quickfixj when sending .. . 56 TargetCompId that s my counterparty which will execute my FX orders .. . .. . Then body part .. . .. . 66 ListId uniq id computed .. . 68 ToNoOrders count of my orders into list .. . 73 NoOrders same count value as I will generate a complete list of order at once .. . .. . Then repeat list of following fields one list fields per order in my list : .. . .. . 11 ClOrdId my order id .. . 67 ListSeqNo index of the order into my list : from 1 to N N ToNoOrders NoOrders .. . .. . several others fields as 15 currency 120 SettlCurrency .. . .. . To do that I ve done in java quickfixj : .. . .. . But doing this in the callback function toApp of my quickfixj application This is a callback for application messages that you are being sent to a counterparty displaying the message in parameter syso message shows that only one order is inside my message and it s the last oder I ve put . It seems they are some group we can create in QuickFixJ and we can add several groups inside the same message . But there are a tons of kind of group and I don t figure out what is the group appropriate for my list order if any I see that there is a subclass of Message which is NewOrderList it s my MsgType E but it s not a group and it must be possible to create Message and provide MsgType directly.. . .. . .. . Or maybe I don t understand correctly the FIX message standard and fields I have to provide Regards .. . .. . Alex Comment : Ok from btobits.com fixopaedia fixdic44 message New Order List E .html http : btobits.com fixopaedia fixdic44 message New Order List E .html it said that ClOrdID Must be the first field in the repeating group So I have to use repeating group.. . just to found how in quickfixj and which one . .. . Answer : Instead of creating a message from scratch you should be using the predefined messages in QuickFIX J . In your case I would start looking at quickfix.fix44.NewOrderList http : www.quickfixj.org quickfixj javadoc 1.5.0 documentation for 1.5.x latest QuickFIX J version is 1.6.x though . By using this class a whole lot of fields will be filled in for you in the header and footer part of the message BeginString BodyLength MsgType CheckSum .. . . You then only need to concern yourself mostly with the main part ie body of the message . For the repeating group there are helper classes available to set that information in the message . Eg for NewOrderList.NoOrders http : www.quickfixj.org quickfixj javadoc 1.5.0 : Comment : Yes I know that I can use predefined message . But I like to control what happens and then use the basic Message . And because my counterparty sent me spec about what they attend to receive so by using predefined message I m not sure that all required by counterparty fields will be set . But ideally you re right . I ve post my solution above . Comment : @Alexxx I saw that always good that you can solve your own problems . The minium conditionally required fields are governed by the dictionary though set by configuration options . These reflect what the FIX standard requires . The counterparty can always ask for additional required fields but there s no difference in that regard between using manual messages and predefined messages .", "Question : I have implemented a QuickFIX J http : www.quickfixj.org application the J stands for Java . Now I consider how to set up fixed test cases . I am a little bit familiar with JUnit but I don t know if it s the right one for that issue because QuickFIX J has callbacks fromApp -method of the Application class for example . Maybe there is someone out there who has had the same problem and found a nice solution for that issue . Comment : JUnit works just fine . I used it when I set up test cases to test messages and for coverage . .. . Answer : If you re testing the responses of a QuickFix application then you re really into integration-testing rather than unit-testing . So as you ve already written one QuickfixJ application you could write a testing application that connects to it . So if your application is a Fix acceptor write one that is an initiator . Now you can send messages from your test application to your real application . Any responses from your real application will call onMessage in your test application . You can capture these callbacks and then you can verify that they match certain patterns e.g . the application returns the same Client order id that the test sent . You can certainly use JUnit for this .", "Question : I wanted to clarify a behavior of QuickFIX J FIX 4.2 under the following scenario . There are two parties involved in this QuickFIX J communication : .. . .. . 1 . A client initiator called I . 2 . Our firm s acceptor program called A . When I logs onto A they exchange FIX messages with tag 35 A . Once a connection is established I starts to submit orders . There may be a point however where I disconnects unexpectedly at which point A decides to send cancels for all of the open orders of I this is valid because A has no idea why I failed or when I would come back alive . Note that this entire cancel-on-disconnect procedure is initiated and handled by A alone - it gets initiated from A s onLogout .. . method and handled by its normal order management mechanisms . A single 35 F message gets generated for each of the open orders of I and an ExecutionReport 35 8 gets generated on each successful cancel . When I comes back alive these ExecutionReport s must be delivered to I somehow so that it becomes aware all its previous orders have been cancelled . I had an impression that QuickFIX J s message-queue implementation handles this without an application-level aid . All QuickFIX messages are ensured for delivery to counter-parties http : permalink.gmane.org gmane.comp.finance.quickfix.devel 169 . Contrary to my understanding however no ExecutionReport s were not shown in A s QuickFIX logs or delivered to I when I reconnected resulting I to be unaware that its previous orders have been cancelled . I noticed that logging does not occur because of the following source code of the sendRaw Message message int num method of Session in QuickFIX J : .. . .. . The session was not logged on while ExecutionReport messages were being generated for cancels initiated by I s disconnect and therefore it never hit the send messageString and no logging happened . I believe no message got queued based on the fact that I does not receive any messages when it comes back alive for the same reason . Our firm made many implementations based on the belief that QuickFIX J guarantees all messages to be delivered without a loss but my observation on the scenario above speaks otherwise . How is QuickFIX J s message-queue expected to behave in this scenario when a session is not logged on Should it queue messages regardless waiting to be sent once the session becomes available again in the future or stop queuing for the duration while the session is down Comment : You may want to try the QF j mailing list for this one if nobody here answers . Comment : There may be a point however where I disconnects unexpectedly at which point A decides to send cancels for all of the open orders of I .. . . That sounds terrible . Simply because there is a network problem eg for 15 minutes you cancel all orders Sorry to say so but that sounds ridiculous . What rationale is there behind that What real business explanation is there for that requirement Comment : @GrantBirchmeier Thanks for the feedback . We actually confirmed that 35 8 and 150 4 was coming to the initiator from the acceptor upon reconnect . I somehow failed to detect that . Comment : @TT . I believe the rationale is that the practice reduces the risk of executing orders that are no longer wanted - during a network issue client might try to cancel or replace a currently-open order and that obviously cannot go through . Of course cancelling all open orders in case of unexpected failure is not ideal for everyone but it does provide a guard against some scenarios . .. . Answer : Just at the end of the private boolean sendRaw Message message int num method there is this code : .. . .. . The state.set msgSeqNum messageString will call messageStore.set sequence message which actually stores the message for later delivery if the session is not connected . As far as I know all messages will be queued until the session successfully logs on .", "Question : I am relatively new to FIX and this is my first time trying to connect . I am attempting to use the QuickFixJ library to connect to a UAT environment I have been provided with . Specifically I am using quickfixj-all-1.6.0.jar .. . .. . I have implemented the sample code from here http : mprabhat.com 2012 07 31 quickfixj-initiator-acceptor-integration and it works up until socketAcceptor.start . Here is the full code sample : .. . .. . The error i am getting is .. . .. . The SenderCompID- TargetCompID variables are provided but have been removed from the sample here . quickfix.mina.message.FIXProtocolCodecFactory.addMessageDecoder Ljava lang Class V Is thrown within the socketAcceptor.start method . I cant see any cause for this as i have only changed the config examples to point towards the FIX UAT environment .. . .. . I cannot understand why a method contained in the jar will throw this error I am not trying to send a message at this stage only trying to open a connection . The example seems to have worked for others . I get the exact same error using the FIX Client example found here http : www.dailyfx.com forex forum fix-api-support 64877-quickfix-java-example.html as well .. . Answer : Importing the second example http : www.dailyfx.com forex forum fix-api-support 64877-quickfix-java-example.html as-is instead of trying to implement into my own Eclipse project worked . The problem appears to have been caused by using an incorrect import from the quickfix-all jar causing the wrong method to be called during start up .", "Question : I am writing an application that uses QuickFIX J as FIX framework . My counterpart sends me an ExecutionReport message of FIX version 4.4 But only some fields the Parties component are of version 5.0 .. . .. . Now I am trying to implement that I can read this component . This one .. . .. . doesn t work Message is from version 4.4 and thats why message.get .. . only wants a quickfix.fix44.component.Parties not one of version 5.0 .. . .. . If I try this .. . .. . I get the following error : .. . .. . This is because I am getting 4.4 fields but want to treat them like 4.4 versions. . Look here http : www.google.de url sa t rct j q esrc s source web cd 1 ved 0CCEQFjAA url http 3A 2F 2Fsourceforge.net 2Fp 2Fquickfixj 2Fmailman 2Fmessage 2F32791285 2F ei qx9CVY MJsHSaMe5gMAH usg AFQjCNFtMTvKR4hErCn8HMx9aw4du7EPHQ sig2 XU9rf0HPAH6EZFoJxbQ0Vg bvm bv.92189499 d.bGQ .. . .. . Maybe anyone can help me.. . Thanks for your effort .. . Answer : One way to do this is to customize the Data Dictionary FIX4.4.xml and replace the fields in it that can sometimes be in FIX 5.0 format . Eg by copying them from FIX5.0.xml and placing them in the proper messages in FIX4.4.xml . From the QuickFIX J user-manual http : www.quickfixj.org quickfixj usermanual 1.5.3 usage codegen.html : .. . .. . The simplest customization is to just modify one or more data dictionaries e.g . FIX44.xml and rebuild QFJ . This allows you to add custom-fields define new messages not included in the specification change whether fields are required or optional and so on . Afterwards rebuild QuickFIX J to reflect these changes . EDIT : Following is for version 1.5.x .. . .. . Check the QuickFIX J user FAQ http : www.quickfixj.org confluence display qfj User+FAQ on how to rebuild QuickFIX J EDIT : version 1.5.x : .. . .. . You ll need ant installed . .. . QF J generates the source from the DDs in core src main resources . Make a back up of the one you re going to alter and then alter it however you need to . .. . Then rebuild as follows : .. . .. . 1 . ant jar .. . 2 . You will be prompted for a release number this just determines the suffix given to the jar names . Enter whatever you want . 3 . Wait for build to finish .. . 4 . Find your brand-new QF J jars in core target .. . .. . A little further in the FAQ how do I rebuild QF J the call to ANT is more specific : .. . .. . The version argument is just a filename suffix . The skip.jalopy argument is optional and will skip some time-consuming doc generation . .. . ant version SOME STRING -Dskip.jalopy true clean jar .. . .. . EDIT : Following is for version 1.6.x .. . .. . For version 1.6.0 building is done with Maven . If you are building the code from the command-line you ll need to download and install Maven version 3.2.5 or newer . If you are building from an IDE Maven is usually included . Building from source requires Java 6+ . .. . 1 . Check out the code from GitHub . See the instructions at GitHub for more details on cloning the repository . 2 . Change directory to the top-level directory of the checked out code . You should see a pom.xml file . 3 . Run mvn package to build the QuickFIX J and examples jar files . This will also generate all the FIX message-related code for the various FIX versions . 4 . There is an option for the code generator to use BigDecimal instead of double for fields like price and quantity . To enable this feature pass a -Dgenerator.decimal option on the command-line when running the generate.code target . .. . There are various command-line switches you can pass to ant to modify the produced behavior : .. . .. . For example in order to generate fields with BigDecimals and skip acceptance tests : Comment : That should be the solution I ll try it . Thank you very much Comment : @mrbela added build instructions for QuickFIX J 1.6.x Comment : Clearly QuickFix J can do a better job updating their installation instructions . Web is full of obsolete deprecated ways of installing the env .", "Question : will anybody please help me understand the difference between session.logout and session.generateLogout . One can also create and send a logout message explicitly . How is that different from the other two Comment : From which API Interface do you get these logout and generateLogout methods Show some code . .. . Answer : The logout method is the way to go . It will-change the enabled flag which will trigger the public void next method called by a timer . This will use the generateLogout method to send the correct FixMessage 35 5 . The generateLogout methods are all private except the one with no parameters which where changed to public with a changeset with no reason so I guess this happens unexpected since it is just a helper method for creating the message . Its the same for the logon you call public void logon which changes the state and will trigger public void next which calls private void generateLogon . Session.java https : github.com quickfix-j quickfixj blob master quickfixj-core src main java quickfix Session.java Comment : i dont feel comfortable with logout as it stops qfixj from reconnecting to corresponding session . one needs to call logon in order start reconnection again .", "Question : I m using Quickfix J to receive the message but Sent test request TEST happen . The log file FIX.4.2-A-B.event.log shows that : .. . .. . But I find something in another log file FIX.4.2-A-B.message.log : .. . .. . Which apparently indicates that the counter party B has already sent back the heart beat to us . And the FIX.4.2-A-B.messages.log file is still growing The file keep receiving messages but the Quickfix J process none nothing happens within onMessage method Please help to walk me through why this is happening why the connection is still lost after receiving heartbeat and the log is disconnecting .. . .. . Since this problem hasn t been solved yet . Here is the update : .. . .. . My config : .. . .. . Here s the codes : .. . .. . Basically I let Quickfix J to handle the connection itself . The problem is that the app still keeping receiving messages but not processing them and the log file shows that it s not connecting . All the messages are in the FIX.4.2-A-B.message.log that s why it keep growing . I find some similar cases : .. . .. . http : www.quickfixj.org jira browse QFJ-668 .. . .. . http : www.quickfixj.org jira browse QFJ-624 .. . .. . http : quickfix-j.364392.n2.nabble.com Timed-out-waiting-for-heartbeat-td365186.html .. . .. . http : www.quickfixj.org jira browse QFJ-759 .. . .. . Unfortunately none of them provides solution . So Please help me out . .. . .. . The second update is as follow : .. . .. . I extract the log files I m A and counter party is B : .. . .. . Please note that it keep trying to logon the session again but fail . At the mean time I am sure that the app keep receiving messages from counter party . The proof is that FIX.4.2-A-B.message.log file keeping growing with valid messages not just heart beat but other valid message . That mean the connection isn t lost . Why can t I logon the session Please help .. . .. . .. . .. . The third updates : .. . .. . My initiate successful logs for the logon is as below : .. . .. . The third line indicates that counter party send me a TEST request and I didn t respond which seems ok and the connection established . Should I explicitly handle the response of the TEST request It seems quickfix j would handle for me . Comment : Sounds like a configuration problem . As you say the messages look right . Comment : What is the value of HeartBtInt in your config file Comment : @DumbCoder The heartbeat interval is 30s as agreed with counterparty Comment : @PeterLawrey the main problem I m worried about is that on one hand the program didn t handle the message onMessage is not called and log file said disconnecting which made me thinking the program is disconnected with counter party . On another hand they re actually connecting and receiving data into FIX.4.2-A-B.messages.log in the background . It s really strange . How to re-connect to counter party manually Should re-connection be doing by quickfixj itself Comment : @user838204 AFAIK QuickFix J handles the connection reconnection . .. . Answer : the FIX standard heartbeat behavior is as follows : .. . .. . In your third update your initiator A did respond to the test request with a heartbeat and supplied the requested id tag 112 : .. . .. . So that s good . From then on A supplies a heartbeat 30 seconds later : .. . .. . But B does not reply for 13 seconds : .. . .. . Is there some network issue between A and B What problem are you experiencing", "Question : I wanted to clarify a behavior of QuickFIX J FIX 4.2 under the following scenario . There are two parties involved in this QuickFIX J communication : .. . .. . 1 . A client initiator called I . 2 . Our firm s acceptor program called A . When I logs onto A they exchange FIX messages with tag 35 A . Once a connection is established I starts to submit orders . There may be a point however where I disconnects unexpectedly at which point A decides to send cancels for all of the open orders of I this is valid because A has no idea why I failed or when I would come back alive . Note that this entire cancel-on-disconnect procedure is initiated and handled by A alone - it gets initiated from A s onLogout .. . method and handled by its normal order management mechanisms . A single 35 F message gets generated for each of the open orders of I and an ExecutionReport 35 8 gets generated on each successful cancel . When I comes back alive these ExecutionReport s must be delivered to I somehow so that it becomes aware all its previous orders have been cancelled . I had an impression that QuickFIX J s message-queue implementation handles this without an application-level aid . All QuickFIX messages are ensured for delivery to counter-parties http : permalink.gmane.org gmane.comp.finance.quickfix.devel 169 . Contrary to my understanding however no ExecutionReport s were not shown in A s QuickFIX logs or delivered to I when I reconnected resulting I to be unaware that its previous orders have been cancelled . I noticed that logging does not occur because of the following source code of the sendRaw Message message int num method of Session in QuickFIX J : .. . .. . The session was not logged on while ExecutionReport messages were being generated for cancels initiated by I s disconnect and therefore it never hit the send messageString and no logging happened . I believe no message got queued based on the fact that I does not receive any messages when it comes back alive for the same reason . Our firm made many implementations based on the belief that QuickFIX J guarantees all messages to be delivered without a loss but my observation on the scenario above speaks otherwise . How is QuickFIX J s message-queue expected to behave in this scenario when a session is not logged on Should it queue messages regardless waiting to be sent once the session becomes available again in the future or stop queuing for the duration while the session is down Comment : You may want to try the QF j mailing list for this one if nobody here answers . Comment : There may be a point however where I disconnects unexpectedly at which point A decides to send cancels for all of the open orders of I .. . . That sounds terrible . Simply because there is a network problem eg for 15 minutes you cancel all orders Sorry to say so but that sounds ridiculous . What rationale is there behind that What real business explanation is there for that requirement Comment : @GrantBirchmeier Thanks for the feedback . We actually confirmed that 35 8 and 150 4 was coming to the initiator from the acceptor upon reconnect . I somehow failed to detect that . Comment : @TT . I believe the rationale is that the practice reduces the risk of executing orders that are no longer wanted - during a network issue client might try to cancel or replace a currently-open order and that obviously cannot go through . Of course cancelling all open orders in case of unexpected failure is not ideal for everyone but it does provide a guard against some scenarios . .. . Answer : Read this http : www.fixtradingcommunity.org pg discussions topicpost 169933 cod-typical-values . Some companies support the tag 35002 Cancel on Disconnect in the LOGON message with possible values : .. . .. . 0 : Do not use COD .. . 1 : Use COD only when a graceful logout is sent .. . 2 : Use COD on any network disconnection .. . 3 : 1 AND 2 .. . .. . Find out if your counterparty supports this . I haven t checked QuickFIX support but you can always add the tag yourself manually or customize your FIX dictionary to support the tag . Apparantly this is often used by High Frequency Traders . I am not familiar with that industry hence the question in comments section .", "Question : null .. . Answer : After sending a logon message using quickfix J I want to receive the raw incoming message and do my own thing with the message as far as decoding it goes . Using Single Binary Encoding SBE https : github.com real-logic simple-binary-encoding .. . .. . For example : I send logon message 8 FIX.4.4 9 95 35 A 34 1 49 FROMComp 52 20151009-18 : 22 : 35.968 56 HistReplay 98 0 108 30 141 Y 553 ABC 554 ABC 10 238 in the FIX format as per the target hosts instructions http : www.cmegroup.com confluence display EPICSANDBOX MDP+3.0+-+TCP+Replay+Messages .. . .. . Then the target computer sends back a heartbeat message in SBE format . The message from the target computer sends the message back in SBE format and using Quickfix J message and messagecracker the raw data is not recognized or I just simply do not know a way to receive the raw data using fromApp .. . .. . I want to intercept the raw data coming in so that i can send it to my own SBE decoder instead of using quickfix J message and messagecracker . Anybody know how Application class .. . .. . main class", "Question : We are creating a low-latency Java application with QuickFIX J . We are subscribing to around 50 currency pairs so we are getting around 4000000 ticks per day . This is because we are getting them from different liquidity providers . I am seeing lots of GC happening and at peak time our application is hanging and not-responding . I have tried with with 64 GB heap and also tried with G1 for GC but no success . Can you please suggest how I can solve this issue Did you face this issue earlier and what GC optimization have you done Should I move from QuickFIX J and try with some other FIX engine Can you please suggest some open-source commercial FIX engine which can fulfill my requirement Presently I am using Java 7 . Would moving to Java 8 be helpful Comment : Ok QuickixJ isn t designed for throughput you are dealing with . It is better you customize QuickfixJ or tinker with your JVM . .. . Answer : If we assume that you have a 8 hr working day you get 138 ticks second per average . I m well aware that it is the extremes that count but this is all we got . 138 ticks seconds should not be a problem at all . We get that x100 every day with a 2 GB heap without a problem . Chances are you have a memory leak . Do you have gc logging going If you do not install it immediately . These are the flags we use : .. . .. . -Xloggc : gc- date + 0d- 0m- y- 0k M .gclog -XX : +PrintGCDetails -XX : +PrintGCTimeStamps -XX : +PrintHeapAtGC -XX : +PrintTenuringDistribution -XX : +PrintGCApplicationStoppedTime -XX : +PrintGCCause .. . .. . GC logging has very small performance impact . If you post the gc log once you got it we can take it further . Comment : Thanks for the answer i would enable GC logs and would post Comment : gceasy.io http : gceasy.io my-gc-report.jsp p L2hvbWUvcmFtL3VwbG9hZC9pbnN0YW5jZTEvc2hhcmVkLzIwMTYtNS0yNi9nY2xvZy5nY2xvZy0xNC0zMi0yMg Comment : this is my report but for shortter duration . I would post for complete day run Comment : 7 minutes is a bit short : - the problem is not manifesting itself . I think a longer run is needed . Also when running CMS ParNewGC is default so you don t need that . I notice you are adjusting plab size have you noticed any performance benefits from that Comment : I would publish my GC logs today for a complete one day . I didn t change plab size .", "Question : I need to create TradeCaptureReport FIX messages . It was clear how to do this until I tried to create Parties : .. . .. . .. . .. . .. . .. . Can somebody give the Java code sample how to create and link them to RptSide 803 Comment : Read the doc page about repeating groups http : quickfixj.org quickfixj usermanual 1.5.3 usage repeating groups.html . If you ve already read it read it again because your code doesn t look like the example at all . If you re still stuck reply in a comment and I ll come back to help . Comment : Is in the repeating groups doc enough information to solve task described in this post I ve read this doc many times At least I didn t find there info about components you described in link http : stackoverflow.com questions 29772481 difference-between-group-and-component-in-quickfix-j .. . Answer : To create Parties : .. . .. . it it s possible to code in Java : .. . .. . I m not confident that it s according to the rules but at least it creates expected fix message . So the suggestion : If you ve already read it doc read it again was helpful many thanks to Grant Birchmeier ." ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
angular-strap@angularjs@122
angular-strap -- angularstrap is a set of native directives that enables seamless integration of bootstrap 3.0 into your @placeholder 1.2 application.with no external dependency except the bootstrap css styles angularstrap is light and fast .
{ "confidence": [ 55.383785247802734, 54.3885498046875, 52.78763961791992, 52.35942840576172, 52.195396423339844, 49.39817428588867, 49.29800033569336, 48.35554504394531, 48.23170852661133, 48.23170852661133, 48.23170852661133, 48.202789306640625, 47.412132263183594, 47.291866302490234, 47.0033073425293, 45.90001678466797, 44.69435119628906, 44.3918571472168, 44.16811752319336, 43.93764877319336, 43.57228088378906, 42.823211669921875, 42.5679931640625, 42.06851577758789, 41.687889099121094, 41.687889099121094, 40.85449981689453, 40.85449981689453, 40.85449981689453, 40.82942581176758, 40.47624969482422, 40.47624969482422, 40.000038146972656, 39.929542541503906, 39.929542541503906, 39.929542541503906, 39.929542541503906, 39.929542541503906, 39.929542541503906, 39.68067932128906, 39.68067932128906, 39.558380126953125, 39.45798873901367, 39.4358024597168, 39.4358024597168, 38.85683822631836, 38.39896774291992, 38.25823974609375, 38.25823974609375, 38.25823974609375, 38.18526840209961, 37.689247131347656, 37.60405731201172, 37.465084075927734, 37.16888427734375, 37.16888427734375, 37.12006378173828, 36.903953552246094, 36.903953552246094, 36.903953552246094, 36.903953552246094, 36.903953552246094, 36.63639831542969, 36.38261032104492, 36.38261032104492, 36.126285552978516, 36.08969497680664, 35.73884963989258, 35.61813735961914, 35.595951080322266, 35.591800689697266, 35.564701080322266, 35.379371643066406, 35.15740203857422, 35.15740203857422, 34.41838836669922, 34.34434509277344, 33.95502853393555, 33.95502853393555, 33.74717712402344, 33.6356201171875, 33.63416290283203, 33.49357223510742, 33.49357223510742, 33.49357223510742, 33.49357223510742, 33.49357223510742, 33.49357223510742, 33.49357223510742, 33.49357223510742, 33.46415710449219, 33.36243438720703, 33.36243438720703, 33.36243438720703, 33.17353439331055, 33.17353439331055, 33.15164566040039, 33.140419006347656, 33.140419006347656 ], "content": [ "Using AngularStrap .", "Many thanks .. . .. . AngularStrap DatetimePicker Documentation http : mgcrea.github.io angular-strap datepickers .. . .. . What I tried .. . .. . Above methods are not working .", "Is it a missing feature of angularstrap", "I use AngularJs Angular-Strap and Bootstrap .", "I decided on AngularStrap as it provided support for Bootstrap-Select which I wasn t sure was the same for AngularUI .", "But you are using angular-strap as well as bootstrap if you refer to the dropdown-menu from angular-strap there is also a class of that name in bootstrap so i m wondering if both class are getting mixed up .", "Its for UI-Bootstrap Pagination but I am looking for Angular Strap Bootstrap Pagination", "Versions : AngularJS : 1.2.16 AngularStrap : 2.0.2 Bootstrap : 3 .. . .. . HTML : .. . .. . Radio Button : .. . .. . Used Libraries : .. . .. . Controller : .. . .. . Update : .. . .. . Module Definition :", "I m using select widget from angularstrap .", "The dropdown div is created by angularstrap not by app itself .", "@jbrown thanks it worked by changing version of angularstrap .", "I am currently working on an AngularJS project with Twitter Bootstrap and am trying to shift my Bootstrap directives into Angular .", "It could be something else in your code as that looks the same as the example on AngularStrap .", "I am using angularstrap popovers http : mgcrea.github.io angular-strap popovers to create a simple popover exposing a date time picker .", "I m using AngularJS and AngularStrap for a project .", "I m trying to recreate collapsible Bootstrap responsive navbar http : getbootstrap.com components navbar-default with AngularStrap .", "I am trying to use the popover service provided by Angularstrap .", "I am using the popover directive from AngularStrap .", "Your plunk needs angular-animate which angular-strap depends on https : github.com mgcrea angular-strap .", "This is possible since angular-strap 2.3.9", "I need your help with AngularStrap tabs and displaying calculated data .", "I am using angularjs version 1.4.4 and angularstrap version 2.3.7 and as is mentioned in angularstrap documentation I am using angularmotion witch is accessible in its github 1 .", "Yeah the show option is NOT available in bootstrap-ui - angular-ui.github.io bootstrap https : angular-ui.github.io bootstrap .", "I was able to get the angular-strap alert working .", "I believe this is actually an issue of tooltip service as I m able to see the same thing happens in the dropdown demo http : mgcrea.github.io angular-strap dropdowns of AngularStrap itself .", "I am trying to display an AngularStrap dropdown http : mgcrea.github.io angular-strap dropdowns manually leveraging the trigger configuration on dropdownProvider as such .. . .. . click hover focus all work fine but why not manual", "Everything works fine until I use tabs from AngularStrap .", "Background : I am creating a directive based bgDropdown of angularstrap .", "I have an Ionic app that I want to use an AngularStrap DatePicker in .", "I am trying to get going with angular-strap directives but encountering a module initialization error with the simplest setup .", "I am working with Angularjs and Angular-Strap and i copy Angular-Strap code sample for DropDown .", "I wish they would have included that in the list of dependent script files : mgcrea.github.io angular-strap http : mgcrea.github.io angular-strap", "Either bootstrap s native popover or the popover from UI Bootstrap http : angular-ui.github.io bootstrap I have both loaded .", "I am trying to change the text of a selected index in a drop down list that uses AngularStrap Typeahead .", "I am trying to implement tab inside tab view in AngularJS by using angularstrap 2.1.0 .", "Repeater : pane in panes Duplicate key : object : 01E .. . .. . Does angularstrap tab support this kind of view", "I m using an AngularStrap typeahead and need a callback when an items gets selected by the user .", "Is there any way via AngularStrap or AngularJS to load html fragments dynamically so that it is only called when the tab is clicked", "Using the AngularStrap Tab s example you can switch out the static content with the url to retrieve the html fragment .", "Looks like this was a known issue with angular-strap before v2.1.4 github.com mgcrea angular-strap pull 1280 https : github.com mgcrea angular-strap pull 1280 .", "Try create it from the Live Demo plunkr off of angular-strap here : mgcrea.github.io angular-strap tooltips selects http : mgcrea.github.io angular-strap tooltips selects click the plunker link next to Live Demo .", "How is pagination implemented in Angular Strap", "I am using Angular 1.5 and Angular-Strap 2.3.7 .", "yes this is from Angular-Strap main page", "I use angular-strap and the modal service .", "Same thing with angular-strap .", "I may also consider AngularStrap if it is easier to do it using that lib .", "I have implemented an Angular-Strap alert using a template.html file based on their website example here http : mgcrea.github.io angular-strap alerts .", "You should include files specified at github.com mgcrea angular-strap quick-start https : github.com mgcrea angular-strap quick-start", "There is an issue in the angular-strap github project https : github.com mgcrea angular-strap issues 309 which asks exactly the feature you want .", "The way to set the disabled attribute in HTML to false is simply not to include it at all whihc is what AngularStrap does in the final HTML in the browser as noted in the first step above .", "I am using Angular Strap in my design .", "I am using Angular Strap http : mgcrea.github.io angular-strap alerts for Bootstrap components and trying to show up the alerts .. . .. . Here is the plunker - http : plunker.co edit DFBs3hTobHDs36QdqPte p preview .. . .. . It does not shows up the alerts what is that I am missing", "using angular-strap version 2.3.5 .", "github.com angular-ui bootstrap issues 590 https : github.com angular-ui bootstrap issues 590", "This has been broken by : github.com angular-ui bootstrap commit https : github.com angular-ui bootstrap commit 7556beda486f26b40fb860448316e8a32457e9e9", "your dropdown-menu class is from bootstrap", "I really want to use angular-strap to my project .", "I need to create a delete confirm modal in angular-strap .", "I mean when angular-strap is fetched by bower or npm .", "So it seems that modal is out of sync with the rest of angular-strap in the distributed versions .", "I think the problem lays in the old version of the angular-strap .", "With an angular-strap select I am able to tab through all elements of a page containing an angular-strap select .", "enter image description here http : i.stack.imgur.com pYcZh.png .. . .. . This is a tricky issue as it might be a Angular-fullstack issue or it might be an AngularStrap issue - my feeling is that it is more likely the former .", "So the original problem can be solved by changing the gruntfile in Angular-fullstack as noted above but it could also be resolved by AngularStrap simply using a differnt approach to include the attribute .", "This happens only with async calls and this issue also happens on the official angulastrap showcase page http : mgcrea.github.io angular-strap typeaheads .", "Bottom line - how would one display a AngularStrap modal before possibly changing state when using ui-router", "Although I m not using angular-strap it s making me wonder if there is something common with your issue", "I m building an angular app and using angular-strap for typeahead fields .", "It seems that Angular Strap does not need bootstrap.js at all .", "I am trying a simple code with angular-strap s bootstrap tooltip .", "I m using angular-strap tooltip http : mgcrea.github.io angular-strap tooltips and inside I have link that should react to ng-click but instead it s not-responding .", "It s not angularstrap feature but you can use attributes like ng-hide ng-show or ng-if to hide specific div element when your select has only one item .", "I m trying to show angular-strap popover when hovering on fullcalendar items .", "How could i start my angular-strap app", "I ll take the job of linking this post github.com mgcrea angular-strap issues 822 https : github.com mgcrea angular-strap issues 822", "http : tushariscoolster.github.io angular-nicescroll .. . .. . But I want to implement this on angular-strap dropdown in the folowing example .", "I m pretty new to angular and I m using angular-strap to customize a dropdown button because I wanted some HTML formatting on the resulting dropdown options .", "Sadly that doesn t work because here https : github.com mgcrea angular-strap blob 9a29385e7e39941120b3fcb5dcefb85b0d7ef37b dist angular-strap.js L164 contains : viewValue not : item name : viewValue .", "@Gloopy can u help me to have a look at this question : stackoverflow.com questions 34203064 http : stackoverflow.com questions 34203064 not-show-active-tab-title-correctly-in-angularstrap-tab", "Ng-strap adds a default filter that uses a default comparator https : github.com mgcrea angular-strap blob 9a29385e7e39941120b3fcb5dcefb85b0d7ef37b dist angular-strap.js L164 after your item as item.item name for item in companyItem filter : item name : viewValue : customCompare .", "The last time I ve checked AngularStrap the author didn t bother to promote this essential addon in the repo and now he does .", "Is it possible to show a list of errors comma separated array in angular-strap alerts problematically or html", "I am trying to implement an automatic alert into my AngularJS application using Angular-Strap and the alert service .", "I m creating popovers with angular-strap using the popover service like this : .. . .. . This renders correctly : .. . .. .", "i change my Angular-Strap version to v 2.3.6 and all problem resolved...... .", "Just to note that Angular-Strap supports multiple open panels since at least v.2.2 and probably earlier .", "I tried setting up a plunkr but when I tried loading angular-strap it bombed out .", "The tabs example http : mgcrea.github.io angular-strap tab only covered static html though .", "This should be an old question in latest version of angular-strap a new attribute could be used in this case : auto-close 1", "why are you manipulating the DOM yourself and not using angular directives for this", "EDIT : .. . .. . To use your HTML you can pass a caretHtml argument for bsSelect directive : .. . .. . This solution is not in the doc of Angular Strap but caretHtml argument exists in the source code .", "Take a look at your own local version of angular-strap not even in latest version 2.3.8 you can find references to onShow or onHide .. . .. . 2 .", "So if you want support for onShow etc you must merge the latest modal from the github repo into your local angular-strap .", "I have four tabs using the latest AngularStrap tab every tab has a close button and every tab pane using the latest ui-grid .", "I am trying to get the bs-tooltip AngularStrap directive to work with my own custom directive called checkStrength which checks the strength of a password .", "Here s a version working with using AngularStrap modals http : mgcrea.github.io angular-strap modals : .. . .. . .. . function .. . use-strict .. . .. . angular.module app .. . ngAnimate .. . ngSanitize .. . mgcrea.ngStrap .. . .. . .controller MainCtrl MainCtrl .. . .config configFunction .. . .. . MainCtrl . inject scope modal .. . .. . function MainCtrl scope modal .. . scope.modal .. . title : Title .. . content : Hello Modal br This is a multiline message", "I want to try angular-strap components for a project .", "I injected angular-strap and included bootstrap.css properly ." ] }
{ "confidence": [ 80.60733032226562, 74.67118835449219, 71.90357971191406, 65.97038269042969, 65.1751708984375, 65.13737487792969, 64.71417999267578, 63.81573486328125, 63.369571685791016, 62.27998352050781, 61.88224411010742, 60.7491455078125, 59.63130187988281, 59.485652923583984, 59.133567810058594, 59.03233337402344, 59.00768280029297, 58.68748474121094, 58.56460189819336, 55.90988540649414 ], "content": [ "Question : I am currently working on an AngularJS project with Twitter Bootstrap and am trying to shift my Bootstrap directives into Angular . I decided on AngularStrap as it provided support for Bootstrap-Select which I wasn t sure was the same for AngularUI . The tabs example http : mgcrea.github.io angular-strap tab only covered static html though . Is there any way via AngularStrap or AngularJS to load html fragments dynamically so that it is only called when the tab is clicked My html fragments need to execute javascript as well . My reason for doing so is two-fold . First is that each tab contains quite a lot of content and I do not wish to load all the tabs at once which will slow down the loading . The second reason is that I prefer a more modular approach to my source code and not put everything on the same html file . .. . Answer : You can use the ng-include http : docs.angularjs.org api ng.directive 3angInclude directive to load html fragments . Using the AngularStrap Tab s example you can switch out the static content with the url to retrieve the html fragment . Here is an example http : plnkr.co edit tpEJky6AyBGzbJz5QkmV p preview based on the AngularStrap Tab example with these key changes : .. . .. . 1 scope.tabs now has a page property instead of content pointing to either template1.html template2.html or template3.html . 2 An ng-include is added to display the currently selected tab s page . Note : I have the ng-include outside of the ng-repeat so each tab s page contents won t be loaded even if not displayed . Comment : Nice Thank you Comment : This answer gave me what I needed to make an example using inline tab content . plnkr.co edit gS0i0V p preview http : plnkr.co edit gS0i0V p preview Comment : @Gloopy - the example does not seem to work now : then page content does not change the you hit a tab button . Do you know if this technique still works Comment : The following seems to work now : div ng-repeat tab in tabs title tab.title name tab.title ng-include src tab.page bs-pane Comment : @Gloopy can u help me to have a look at this question : stackoverflow.com questions 34203064 http : stackoverflow.com questions 34203064 not-show-active-tab-title-correctly-in-angularstrap-tab", "Question : null .. . Answer : I am trying to implement tab inside tab view in AngularJS by using angularstrap 2.1.0 . There are n main tab like Tab1 Tab2 Tab3 .. . Tabn and each tab can have m subtabs like Subtab1 Subtab2 .. . Subtabm . HTML .. . .. . JS .. . .. . JsFiddle https : jsfiddle.net Raj 13290 jg9ehtj7 .. . .. . I tried to implement but it is giving error .. . .. . Duplicates in a repeater are not allowed . Use track by expression to specify unique keys . Repeater : pane in panes Duplicate key : object : 01E .. . .. . Does angularstrap tab support this kind of view If not how should I implement this Comment : Looks like this was a known issue with angular-strap before v2.1.4 github.com mgcrea angular-strap pull 1280 https : github.com mgcrea angular-strap pull 1280 . Looks like you ll need to upgrade to at least 2.1.4 and add track by index to your ng-repeat . Comment : @jbrown thanks it worked by changing version of angularstrap . But I am working on legacy system changing version will be difficult :", "Question : I m trying to recreate collapsible Bootstrap responsive navbar http : getbootstrap.com components navbar-default with AngularStrap . Here is plunker http : plnkr.co edit ZTil36zmO5oOQyr52uU5 p preview : .. . .. . bs-collapse directive fits Bootstrap navbar quite easily but it doesn t support collapsing animation out of the box . How it can be done Is there a way to do this following Bootstrap workflow and utilizing its .collapsing https : github.com twbs bootstrap blob v3.3.4 dist css bootstrap.css L3400 animation instead of re-inventing the wheel but simple LESS SASS mixin that makes use of it is also fine .. . Answer : To get the animations working you may need to include angular-motion AND the angular-motion.min.css file that s part of the angular-motion package https : github.com mgcrea angular-motion . The reference to the CSS file isn t part of the main documentation . I m pretty sure I found references to it here on StackOverflow when I had similar issues . Comment : Great looks like exactly what is needed . The last time I ve checked AngularStrap the author didn t bother to promote this essential addon in the repo and now he does . The link is broken btw . Comment : I hope it fixes your problem and thanks for the heads up on the link . It s fixed now . Comment : Thank you for the help . I m still getting this to work . I m including the angular-motion.min.css file and angular-animate.min.js . Then I m injecting ngAnimate in my module . Still no luck . Do you mind taking a look at my fiddle and let me know what I m doing wrong jsfiddle.net beedaan 8dowyqmL light https : jsfiddle.net beedaan 8dowyqmL light", "Question : I have to listen to the angular-strap date time picker value change from jquery .. . .. . Cannot add code in the angular application controllers or use anuglar code . Please provide a way to do it by using Jquery JScript only . Many thanks .. . .. . AngularStrap DatetimePicker Documentation http : mgcrea.github.io angular-strap datepickers .. . .. . What I tried .. . .. . Above methods are not working . Also one more thing is val function is returning the value but when I am trying to get the value from .attr value then it s undefined . dummy application .. . .. . .. . htm .. . .. . head .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . script src https : ajax.googleapis.com ajax libs angularjs 1.2.23 angular.min.js script .. . script src http : ajax.googleapis.com ajax libs angularjs 1.4.8 angular-animate.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular-strap 2.3.8 angular-strap.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular-strap 2.3.8 angular-strap.tpl.js script .. . .. . -- Latest compiled and minified CSS -- .. . link rel stylesheet href https : maxcdn.bootstrapcdn.com bootstrap 3.3.6 css bootstrap.min.css integrity sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7 crossorigin anonymous .. . .. . script .. . var myapp angular.module myapp ngAnimate mgcrea.ngStrap .. . myapp.config function datepickerProvider .. . angular.extend datepickerProvider.defaults .. . dateFormat : dd MM yyyy .. . startWeek : 1 .. . .. . .. . .. . myapp.controller myctrl scope datepicker .. . function scope datepicker .. . scope.selectedDate 2016-04-28T09 : 57 : 58.274Z - object Date .. . scope.selectedDateAsNumber 509414400000 - object Number .. . scope.fromDate 2016-04-08T18 : 30 : 00.000Z - object Date .. . scope.untilDate - object Undefined .. . .. . .. . script .. . .. . head .. . .. . body ng-app myapp ng-controller myctrl .. . form name datepickerForm class form-inline role form .. . -- Basic example -- .. . div class form-group ng-class has-error : datepickerForm.date . invalid .. . label class control-label i class fa fa-calendar i Date small as date small .. . label .. . input id datepk type text class form-control ng-model selectedDate name date bs-datepicker .. . div .. . form .. . body .. . htm Comment : Is it safe to say you have a typo in the question between input id datepk .. . and your jQuery binding datepkr the extra r but not in your code .. . Answer : I think the below points will help you . Add ng-change to your input . and in your controller add : .. . .. . ng-change will call myChange every time when the value changes . Comment : As I have mentioned in question that I have to do it by using Jquery only and I can not use angular .", "Question : null .. . Answer : I m using AngularStrap Typeahead with an async call in my webapplication and i m noticing a strange behaviour : when i select one entry from the list the selected value correctly displays in the typeahead the popup disappears but shortly after a new popup comes out displaying only 1 entry which is the one i already selected . This happens only with async calls and this issue also happens on the official angulastrap showcase page http : mgcrea.github.io angular-strap typeaheads . Notice that the not-async calls are working properly . Has anyone already faced and solved this issue Thank you .", "Question : I want to have a radio-button group as you can see in my code . I use AngularJs Angular-Strap and Bootstrap . The problem is that my variables in the controller won t update when I click another button . The default-value is set . If i remove the labels around the input tags the update occurs.. . I don t know if this is a bug or if I am making something wrong. . I hope I provided any information you need . Thanks for any help Versions : AngularJS : 1.2.16 AngularStrap : 2.0.2 Bootstrap : 3 .. . .. . HTML : .. . .. . Radio Button : .. . .. . Used Libraries : .. . .. . Controller : .. . .. . Update : .. . .. . Module Definition : Comment : Why did you need for attribute of labels Can you remove them You code can get work by simply removing for attribute of labels . Comment : Can you show how you define your module Comment : The for label was just an experiment . I thought maybe it would forward the click to the radio-input.. . It doesn t work without it too . Comment : Works without the for : plnkr.co edit SUdgv5rIVdJMLhiHFOiJ p preview http : plnkr.co edit SUdgv5rIVdJMLhiHFOiJ p preview .. . Answer : After I saw this working plnkr I pasted my code into it part by part . Since it still worked I feeled like I got pranked or something.. . So after a loooooong trial and error phase I discovered THE difference... . If I include the jquery.js after I include bootstrap.min.js I get the error that Bootstrap s JavaScript requires jQuery . This resulted to the case that bootstrap wasn t included correct and everything worked . At some time in my development I needed Bootstrap.min.js but I noticed I don t need it anymore . Probably some other file now does that job . So removing the bootstrap.min.js file solved the problem . Comment : Thank you . You saved me hours of research : . Comment : Amazing It seems that Angular Strap does not need bootstrap.js at all . However I did not find any sign of it in the docs .", "Question : When i click to my buttom nothing to happend and i get no error in my console Any idea HTML .. . .. . Controller Comment : Please update your question by including the specific error codes that you encounter . Comment : @EvanBechtol i dont have any error Comment : Why are you using angular.extend instead of just adding the showMyModal method to scope Comment : @fufuny You literally say in your post ...and I get any error . Do you mean you get no error You should follow the advice from Lex above .. . Answer : First add your function to scope . Here s a version working with using AngularStrap modals http : mgcrea.github.io angular-strap modals : .. . .. . .. . function .. . use-strict .. . .. . angular.module app .. . ngAnimate .. . ngSanitize .. . mgcrea.ngStrap .. . .. . .controller MainCtrl MainCtrl .. . .config configFunction .. . .. . MainCtrl . inject scope modal .. . .. . function MainCtrl scope modal .. . scope.modal .. . title : Title .. . content : Hello Modal br This is a multiline message .. . .. . var myModal modal .. . controller : MainCtrl .. . templateUrl : your template.tpl.html .. . template : .. . div class modal ng-scope center am-fade-and-scale tabindex -1 role dialog aria-hidden true style z-index : 1050 display : block .. . div class modal-dialog .. . div class modal-content .. . div class modal-header ng-if modal.title .. . button type button class close aria-label Close ng-click hide span aria-hidden true span button .. . h4 class modal-title ng-bind-html modal.title h4 div .. . div class modal-body .. . h2 ng-bind modal.content h2 .. . div .. . div class modal-footer .. . button type button class btn btn-default ng-click hide Add button .. . div .. . div .. . div .. . div .. . show : false .. . .. . .. . scope.showModal function .. . myModal . promise.then myModal.show .. . .. . .. . .. . configFunction . inject modalProvider .. . .. . function configFunction modalProvider .. . angular.extend modalProvider.defaults .. . html : true .. . animation : am-flip-x .. . .. . .. . .. . .. . .. . DOCTYPE html .. . html ng-app app .. . .. . head .. . link rel stylesheet href https : cdnjs.cloudflare.com ajax libs twitter-bootstrap 3.3.6 css bootstrap.min.css .. . link rel stylesheet href https : mgcrea.github.io angular-strap styles libs.min.css .. . link rel stylesheet href https : mgcrea.github.io angular-strap styles docs.min.css .. . script src https : cdnjs.cloudflare.com ajax libs angular.js 1.5.8 angular.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular.js 1.5.8 angular-animate.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular.js 1.5.8 angular-sanitize.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular-strap 2.3.9 angular-strap.min.js script .. . head .. . .. . body ng-controller MainCtrl .. . button type button class btn btn-primary ng-click showModal Modal button .. . body .. . .. . html Comment : can you make with service please Comment : Just uncomment that line of templateUrl and erase the template . . I didn t put here because I can t have 2 files on the snippet .", "Question : I am working with Angularjs and Angular-Strap and i copy Angular-Strap code sample for DropDown . Inlined sibling dropdown .. . .. . I configure every thing right but when i click on button an empty area expands . and new UL add to page and existing UL is invisible . I try to create an plunker but couldn t add Angular-Starp library to it . DOCTYPE html .. . html id test lang en .. . head .. . meta charset UTF-8 .. . title mainTitle title .. . link rel stylesheet href . . style bootstrap-RTL css bootstrap.min.css .. . link rel stylesheet href css style.css .. . link rel stylesheet href . . style motion angular-motion.min.css .. . head .. . body ng-app taxeeApp .. . --a ui-sref login Login a .. . a ui-sref main Main a-- .. . div ui-view div .. . button type button class btn btn-lg btn-primary data-animation am-flip-x bs-dropdown aria-haspopup true aria-expanded false Click to toggle dropdown .. . br .. . small using inlined sibling template small .. . button .. . ul class dropdown-menu role menu .. . li a href anotherAction i class fa fa-download i nbsp Some action a li .. . li a ng-click alert Holy guacamole i class fa fa-globe i nbsp Display an alert a li .. . li ng-repeat i in Foo Bar Baz a ng-href action i i class fa fa-chevron-right i nbsp i a li .. . ul .. . body .. . html .. . script type text javascript src . . script jquery.min.js script .. . script type text javascript src . . script angular angular.min.js script .. . script type text javascript src . . script angular-strap dist angular-strap.min.js script .. . script type text javascript src . . script angular-strap dist angular-strap.tpl.min.js script .. . script type text javascript src . . script angular angular-ui-router.min.js script .. . script type text javascript .. . angular.module taxeeApp ui.router mgcrea.ngStrap.dropdown .. . script .. . .. . I am using angular v 1.4.5 and bootstrap v 3 and angular-strap v 2.3.3 . Comment : Can you post your code Comment : i add my code... . Comment : your dropdown-menu class is from bootstrap Comment : yes this is from Angular-Strap main page Comment : But you are using angular-strap as well as bootstrap if you refer to the dropdown-menu from angular-strap there is also a class of that name in bootstrap so i m wondering if both class are getting mixed up . .. . Answer : i finally found reason of this problem . i change my Angular-Strap version to v 2.3.6 and all problem resolved...... .", "Question : I have a form that is wired into angular using it for validation . I am able to display error messages using ng-show directives like so : .. . .. . . . where f is the form and t3 comes from a custom directive on the form which detects whether a submission was attempted and contains functions for checking the validity of fields . What I am trying to accomplish is to display validation message s inside a popover instead . Either bootstrap s native popover or the popover from UI Bootstrap http : angular-ui.github.io bootstrap I have both loaded . I may also consider AngularStrap if it is easier to do it using that lib . What I m struggling with right now is the nature of popovers in general -- they autodisplay based on user events like click mouseenter blur etc . What I want to do is show-hide the popover s based on the same functions in the ng-show attributes above . So that when the expression returns false hide it and when it returns true show it . I know bootstrap has the .popover show for this but I m not supposed to tell angular anything about the dom so I m not sure how I would get access to element .popover if doing this in a custom form controller function . Am I missing something Update .. . .. . The solution mentioned in the duplicate vote still only shows the popover on mouseenter . I want to force it to display as-if doing popover id .popover show . Comment : possible duplicate of Enable angular-ui tooltip on custom-events http : stackoverflow.com questions 16651227 enable-angular-ui-tooltip-on-custom-events Comment : @Stewie thanks for the link . Comment : @Stewie that solution still only displays the popover when the element is mouseentered . I want to force it to display as-if doing popover id .popover show . Comment : That s true . I see there s an open github issue for this and it s begging for a PR . Comment : github.com angular-ui bootstrap issues 590 https : github.com angular-ui bootstrap issues 590 .. . Answer : From Michael Stramel s answer but with a full angularJS solution : .. . .. . Now add this directive : .. . .. . Then in your markup :", "Question : I have a form that is wired into angular using it for validation . I am able to display error messages using ng-show directives like so : .. . .. . . . where f is the form and t3 comes from a custom directive on the form which detects whether a submission was attempted and contains functions for checking the validity of fields . What I am trying to accomplish is to display validation message s inside a popover instead . Either bootstrap s native popover or the popover from UI Bootstrap http : angular-ui.github.io bootstrap I have both loaded . I may also consider AngularStrap if it is easier to do it using that lib . What I m struggling with right now is the nature of popovers in general -- they autodisplay based on user events like click mouseenter blur etc . What I want to do is show-hide the popover s based on the same functions in the ng-show attributes above . So that when the expression returns false hide it and when it returns true show it . I know bootstrap has the .popover show for this but I m not supposed to tell angular anything about the dom so I m not sure how I would get access to element .popover if doing this in a custom form controller function . Am I missing something Update .. . .. . The solution mentioned in the duplicate vote still only shows the popover on mouseenter . I want to force it to display as-if doing popover id .popover show . Comment : possible duplicate of Enable angular-ui tooltip on custom-events http : stackoverflow.com questions 16651227 enable-angular-ui-tooltip-on-custom-events Comment : @Stewie thanks for the link . Comment : @Stewie that solution still only displays the popover when the element is mouseentered . I want to force it to display as-if doing popover id .popover show . Comment : That s true . I see there s an open github issue for this and it s begging for a PR . Comment : github.com angular-ui bootstrap issues 590 https : github.com angular-ui bootstrap issues 590 .. . Answer : My approach : .. . .. . Track the state of the popover in the model .. . Change this state per element using the appropriate directives . The idea being to leave the DOM manipulation to the directives . I have put together a fiddle that I hope gives a better explain but you ll find much more sophisticated solutions in UI Bootstrap which you mentioned . jsfiddle http : jsfiddle.net Pzac5 .. . .. . Markup : .. . .. . JS : Comment : I think theres is some merit to this approach and it works well but using a component to do this is just a lot cleaner more flexible and reusable .", "Question : Background : I am creating a directive based bgDropdown of angularstrap . My goal is to create a similar widget HTML select element but with custom templates for each element . The widget works fine . but using Batarang discovered that whenever the user displays the dropdown child scopes are created and are never destroyed . Thus each time the dropdown is displayed more and more child scopes are created . I need to understand how to do a proper cleaning of the children scopes . Sample plunk : http : plnkr.co edit xP6HS9 p preview .. . .. . Step 1 : Pristine http : i.stack.imgur.com l8Z1F.png .. . .. . After first click http : i.stack.imgur.com JhTk9.png .. . .. . enter image description here http : i.stack.imgur.com kOutg.png .. . Answer : I believe this is actually an issue of tooltip service as I m able to see the same thing happens in the dropdown demo http : mgcrea.github.io angular-strap dropdowns of AngularStrap itself . When showing the dropdown the tooltip.show will clone the dropdown template and link with the same scope everytime see tooltip.js L198 https : github.com mgcrea angular-strap blob v2.0.5 src tooltip tooltip.js L198 .. . .. . And in tooltip.hide there is no code that destroy scopes created inside the template e.g . by ng-repeat thus the problem occur . The easiest workaround that I could imagine is to specify a ng-controller to the rnDropdown.item.tpl.html template : .. . .. . then listen to destroy event in controller to destroy its scope when the dropdown has been removed : .. . .. . Example Plunker : http : plnkr.co edit j74pms p preview Comment : useful solution but a final solution would patch . I ll take the job of linking this post github.com mgcrea angular-strap issues 822 https : github.com mgcrea angular-strap issues 822", "Question : I m using AngularStraps bs-select directive to add a multiple-choice select button to one of my views . I m trying to watch the values in this select box and run a search any time the values change . My select button looks like this . The problem is that scope.subject list never gets populated . The selection seems to work fine and the ui all looks good but ng-model never gets populated with anything . In my controller I initialize scope.subject list to an empty array and then have a watch function checking to see when it changes . Nothing ever gets fired . I even wrote a little function to print out the value of scope.subject list ever second and it s always empty . Any thoughts as to what s going on I had this working at one point so I m either doing something silly or a recent update broke things . Update .. . .. . This seems to be a scope inheritance issue . I ve got all kinds of scopes going on which could be part of the problem . However I was able to get this working by doing everything on the rootScope . So.. . .. . .. . and .. . .. . I m sure this isn t the best way to do this but I can t figure out what s wrong with my scopes . Comment : Can you replicate it in a plunkr please It could be something else in your code as that looks the same as the example on AngularStrap . If it s an isolation issue you could try putting subject list inside an object and referencing it that way . Comment : I m noticing that I m having the same issue with other select modules like this one http : nya.io nya-bootstrap-select . Seems like no matter what the ng-model isn t getting set . I tried setting up a plunkr but when I tried loading angular-strap it bombed out . I can try with this other module . Comment : Try create it from the Live Demo plunkr off of angular-strap here : mgcrea.github.io angular-strap tooltips selects http : mgcrea.github.io angular-strap tooltips selects click the plunker link next to Live Demo . Then you know that it s got the correct files loaded and should work . Personally I d avoid using modules like the one you linked as it s just a clever wrapper for the jquery plugin which means you have a lot of code bloat . Comment : Ok I ve narrowed it down to some type of scope inheritance issue . If I put everything in the top level scope it all works fine . However when I m a couple levels down something s up . The select actually seems to be working fine . When I put subject list in the view itself it gets updated fine . But in the controller it never changes . Comment : You might be able to get around it via parent.subject list parent references the the parent of the current scope . If you can post up the structure with directives from the ng-controller tag to the bs-select tag there might be something there unless of course it s in a custom directive . If it s a custom directive then if possible remove the scope : .. . option which will stop it from creating a child scope . .. . Answer : I had this problem too on one of the bs-select s on page but not the other . Turned out that if you assigned the ng-model to a property on an object on your scope it works fine . i.e : .. . .. . when .. . .. . dit the trick .", "Question : I have to listen to the angular-strap date time picker value change from jquery .. . .. . Cannot add code in the angular application controllers or use anuglar code . Please provide a way to do it by using Jquery JScript only . Many thanks .. . .. . AngularStrap DatetimePicker Documentation http : mgcrea.github.io angular-strap datepickers .. . .. . What I tried .. . .. . Above methods are not working . Also one more thing is val function is returning the value but when I am trying to get the value from .attr value then it s undefined . dummy application .. . .. . .. . htm .. . .. . head .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . script src https : ajax.googleapis.com ajax libs angularjs 1.2.23 angular.min.js script .. . script src http : ajax.googleapis.com ajax libs angularjs 1.4.8 angular-animate.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular-strap 2.3.8 angular-strap.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular-strap 2.3.8 angular-strap.tpl.js script .. . .. . -- Latest compiled and minified CSS -- .. . link rel stylesheet href https : maxcdn.bootstrapcdn.com bootstrap 3.3.6 css bootstrap.min.css integrity sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7 crossorigin anonymous .. . .. . script .. . var myapp angular.module myapp ngAnimate mgcrea.ngStrap .. . myapp.config function datepickerProvider .. . angular.extend datepickerProvider.defaults .. . dateFormat : dd MM yyyy .. . startWeek : 1 .. . .. . .. . .. . myapp.controller myctrl scope datepicker .. . function scope datepicker .. . scope.selectedDate 2016-04-28T09 : 57 : 58.274Z - object Date .. . scope.selectedDateAsNumber 509414400000 - object Number .. . scope.fromDate 2016-04-08T18 : 30 : 00.000Z - object Date .. . scope.untilDate - object Undefined .. . .. . .. . script .. . .. . head .. . .. . body ng-app myapp ng-controller myctrl .. . form name datepickerForm class form-inline role form .. . -- Basic example -- .. . div class form-group ng-class has-error : datepickerForm.date . invalid .. . label class control-label i class fa fa-calendar i Date small as date small .. . label .. . input id datepk type text class form-control ng-model selectedDate name date bs-datepicker .. . div .. . form .. . body .. . htm Comment : Is it safe to say you have a typo in the question between input id datepk .. . and your jQuery binding datepkr the extra r but not in your code .. . Answer : Why not you call JavaScript function whenever date changed . var myapp angular.module myapp ngAnimate mgcrea.ngStrap .. . myapp.config function datepickerProvider .. . angular.extend datepickerProvider.defaults .. . dateFormat : dd MM yyyy .. . startWeek : 1 .. . .. . .. . .. . myapp.controller myctrl scope datepicker .. . function scope datepicker .. . scope.selectedDate 2016-04-28T09 : 57 : 58.274Z - object Date .. . scope.selectedDateAsNumber 509414400000 - object Number .. . scope.fromDate 2016-04-08T18 : 30 : 00.000Z - object Date .. . scope.untilDate - object Undefined .. . .. . .. . .. . .. . .. . document .ready function .. . datepk .on click function .. . .datepicker table tr td .on click tap function event .. . alert datepk .val .. . .. . .. . .. . .. . .. . html .. . .. . head .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . script src https : ajax.googleapis.com ajax libs angularjs 1.2.23 angular.min.js script .. . script src https : ajax.googleapis.com ajax libs angularjs 1.4.8 angular-animate.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular-strap 2.3.8 angular-strap.js script .. . script src https : cdnjs.cloudflare.com ajax libs angular-strap 2.3.8 angular-strap.tpl.js script .. . .. . -- Latest compiled and minified CSS -- .. . link rel stylesheet href https : maxcdn.bootstrapcdn.com bootstrap 3.3.6 css bootstrap.min.css .. . integrity sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7 crossorigin anonymous .. . script src script.js script .. . head .. . .. . body ng-app myapp ng-controller myctrl .. . form name datepickerForm class form-inline role form .. . -- Basic example -- .. . div class form-group ng-class has-error : datepickerForm.date . invalid .. . label class control-label i class fa fa-calendar i Date small as date small .. . label .. . input id datepk type text class form-control ng-model selectedDate name date bs-datepicker .. . div .. . form .. . body .. . html Comment : I can not edit controller due to some reasons because of the task I am on . I have to do it with jquery or java script . many thanks for your suggestion . Also my task is to create a generic functionality that does some task whenever any date time picker changes its value . I hope you understand Comment : See updated answer . Hope this will solve your problem . Here is working Plunkr plnkr.co edit 6V7GOqmkzA8nFmFuGSqa p preview https : plnkr.co edit 6V7GOqmkzA8nFmFuGSqa p preview Comment : Itis cool but not working every time . Suppose I select a date then change it then the alert is not getting called . Comment : You are trying to change using keyboard Add keyboard-events for this .", "Question : I have a form that is wired into angular using it for validation . I am able to display error messages using ng-show directives like so : .. . .. . . . where f is the form and t3 comes from a custom directive on the form which detects whether a submission was attempted and contains functions for checking the validity of fields . What I am trying to accomplish is to display validation message s inside a popover instead . Either bootstrap s native popover or the popover from UI Bootstrap http : angular-ui.github.io bootstrap I have both loaded . I may also consider AngularStrap if it is easier to do it using that lib . What I m struggling with right now is the nature of popovers in general -- they autodisplay based on user events like click mouseenter blur etc . What I want to do is show-hide the popover s based on the same functions in the ng-show attributes above . So that when the expression returns false hide it and when it returns true show it . I know bootstrap has the .popover show for this but I m not supposed to tell angular anything about the dom so I m not sure how I would get access to element .popover if doing this in a custom form controller function . Am I missing something Update .. . .. . The solution mentioned in the duplicate vote still only shows the popover on mouseenter . I want to force it to display as-if doing popover id .popover show . Comment : possible duplicate of Enable angular-ui tooltip on custom-events http : stackoverflow.com questions 16651227 enable-angular-ui-tooltip-on-custom-events Comment : @Stewie thanks for the link . Comment : @Stewie that solution still only displays the popover when the element is mouseentered . I want to force it to display as-if doing popover id .popover show . Comment : That s true . I see there s an open github issue for this and it s begging for a PR . Comment : github.com angular-ui bootstrap issues 590 https : github.com angular-ui bootstrap issues 590 .. . Answer : For others coming here as of the 0.13.4 release we have added the ability to programmatically open and close popovers via the -is-open attribute on both tooltips and popovers in the Angular UI Bootstrap library . Thus there is no longer any reason to have to roll your own code solution .", "Question : null .. . Answer : I am using angular-strap v2.3.6 when I use bs-datepicker directive on input tag.The datepicker dialog is displaying like this : .. . enter image description here http : i.stack.imgur.com KYEad.png .. . .. . I have added bootstrap-addtions.css and other plugin or css style but its not working . Anyone can tell me how to solve this problem I really want to use angular-strap to my project .", "Question : I am using Angular Strap http : mgcrea.github.io angular-strap alerts for Bootstrap components and trying to show up the alerts .. . .. . Here is the plunker - http : plunker.co edit DFBs3hTobHDs36QdqPte p preview .. . .. . It does not shows up the alerts what is that I am missing Comment : Much Better Way - using Timeouts See stackoverflow.com questions 16824157 http : stackoverflow.com questions 16824157 angularjs-directive-how-do-i-hide-the-alert-using-timeout .. . Answer : I have got the plunker working .. . .. . http : plunker.co edit DFBs3hTobHDs36QdqPte p preview .. . .. . The codebase says it can accept timeout parameter but I do not know yet how to use it .. . .. . https : github.com mgcrea angular-strap blob master src directives alert.js L5 Comment : That is not a timeout parameter it is a dependency on timeout which is provided by AngularJS http : docs.angularjs.org api ng . 24timeout . Comment : I see do you see any way I can use timeouts", "Question : I am using Angular Strap in my design . While I try to implement pagination I cannot find any documentation or related-posts of Pagination in Angular Strap . How is pagination implemented in Angular Strap Comment : do you need it for a table Comment : No I am trying to use in normal view not a table .. . Answer : You can refer to this example for pagination http : embed.plnkr.co eheFSh Comment : Its for UI-Bootstrap Pagination but I am looking for Angular Strap Bootstrap Pagination", "Question : I am using angularjs version 1.4.4 and angularstrap version 2.3.7 and as is mentioned in angularstrap documentation I am using angularmotion witch is accessible in its github 1 . but when I am using modal when close modal it will blink after closing . Comment : In angular 1.4.4 animation was broken You should either try upgrading your angular files to latest version or you should disable animation while opening popup..there must be option such as animation : false Comment : i upgrade angular it to 1.4.8 but problem not resolve Comment : did you updated other angular related files such as angular-animate angular-sanitize etc . Comment : yes i replace all file in angular folder Comment : did you tried making animation : false in modal settings .. . Answer : I finally found solution and that was this : .. . .. . 1 . set backdrop animation to false . 2 . and change animation property from am-fade to am-fade-and-slide-top . and the problem resolved .", "Question : I have a form that is wired into angular using it for validation . I am able to display error messages using ng-show directives like so : .. . .. . . . where f is the form and t3 comes from a custom directive on the form which detects whether a submission was attempted and contains functions for checking the validity of fields . What I am trying to accomplish is to display validation message s inside a popover instead . Either bootstrap s native popover or the popover from UI Bootstrap http : angular-ui.github.io bootstrap I have both loaded . I may also consider AngularStrap if it is easier to do it using that lib . What I m struggling with right now is the nature of popovers in general -- they autodisplay based on user events like click mouseenter blur etc . What I want to do is show-hide the popover s based on the same functions in the ng-show attributes above . So that when the expression returns false hide it and when it returns true show it . I know bootstrap has the .popover show for this but I m not supposed to tell angular anything about the dom so I m not sure how I would get access to element .popover if doing this in a custom form controller function . Am I missing something Update .. . .. . The solution mentioned in the duplicate vote still only shows the popover on mouseenter . I want to force it to display as-if doing popover id .popover show . Comment : possible duplicate of Enable angular-ui tooltip on custom-events http : stackoverflow.com questions 16651227 enable-angular-ui-tooltip-on-custom-events Comment : @Stewie thanks for the link . Comment : @Stewie that solution still only displays the popover when the element is mouseentered . I want to force it to display as-if doing popover id .popover show . Comment : That s true . I see there s an open github issue for this and it s begging for a PR . Comment : github.com angular-ui bootstrap issues 590 https : github.com angular-ui bootstrap issues 590 .. . Answer : For ui.bootstrap 0.13.4 and newer : .. . .. . A new parameter popover-is-open was introduced to control popovers in the official ui.bootstrap repo . This is how you use it in the latest version : .. . .. . For ui.bootstrap 0.13.3 and older : .. . .. . I just published a small directive that adds more control over popovers on GitHub : .. . https : github.com Elijen angular-popover-toggle .. . .. . You can use a scope variable to show-hide the popover using popover-toggle variable directive like this : .. . .. . Here is a demo Plunkr : .. . http : plnkr.co edit QeQqqEJAu1dCuDtSvomD p preview Comment : this is what should be in the core . current implementation is written for angular but seems to be designed to work old school . angular uses watches jquery and stuff is all event-driven .", "Question : I am using Angular Strap http : mgcrea.github.io angular-strap alerts for Bootstrap components and trying to show up the alerts .. . .. . Here is the plunker - http : plunker.co edit DFBs3hTobHDs36QdqPte p preview .. . .. . It does not shows up the alerts what is that I am missing Comment : Much Better Way - using Timeouts See stackoverflow.com questions 16824157 http : stackoverflow.com questions 16824157 angularjs-directive-how-do-i-hide-the-alert-using-timeout .. . Answer : A better way I found is using-directives .. . .. . The plunker can be found here - http : plnkr.co edit uqSB1gIz6XEmJfC8zHNb p preview .. . .. . I am still trying to figure out how to add timeout and hide the message" ] }
[ "yes-answer-long", "yes-answer-short" ]
angularjs
UNK_RELATION
connect-rest@web-services@65
connect-rest -- connect-rest - exceptionally featureful restful @placeholder middleware for connect node.js .
{ "confidence": [ 54.65887451171875, 39.73112487792969, 36.42731857299805, 32.6464958190918, 10.57669734954834, 10.57669734954834, 10.57669734954834, 10.57669734954834, 10.57669734954834, 10.57669734954834 ], "content": [ "I m trying to use grunt serve with the connect-rest https : github.com imrefazekas connect-rest middleware .", "It turned out that for my purpose - being able to support post of JSON as a mock I didn t need connect-rest https : github.com imrefazekas connect-rest in the first place .", "I tried to configure connect-rest in my Gruntfile.js which worked for GET requests but not for POST .", "The build in capabilities of connect https : github.com senchalabs connect provided all I needed .", "I wonder what I m missing out .", "This is my Gruntfile.js excerpt : .. . .. . .. . .. . .. . That works like a charm .", "But when I change that one line to : .. . .. . or .. . .. . Then on posting I get the following entry in the log running grunt --debug : .. . .. . D server POST api groups.json cache false force true requesttime 2015-10-29T06 : 46 : 24.443Z 404 103 - 2.027 ms .. . .. . and a 404 error when posting get works .", "What do I miss", "So the start of the Gruntfile.js now looks like this : .. . .. . and the livereload section like this : .. . .. . Note : I limit postbacks to calls to api here - you might need different endpoints .", "The example simply echos back the JSON received ." ] }
{ "confidence": [ 50.10954284667969 ], "content": [ "Question : I m trying to use grunt serve with the connect-rest https : github.com imrefazekas connect-rest middleware . I tried to configure connect-rest in my Gruntfile.js which worked for GET requests but not for POST . I wonder what I m missing out . This is my Gruntfile.js excerpt : .. . .. . .. . .. . .. . That works like a charm . But when I change that one line to : .. . .. . or .. . .. . Then on posting I get the following entry in the log running grunt --debug : .. . .. . D server POST api groups.json cache false force true requesttime 2015-10-29T06 : 46 : 24.443Z 404 103 - 2.027 ms .. . .. . and a 404 error when posting get works . What do I miss .. . Answer : It turned out that for my purpose - being able to support post of JSON as a mock I didn t need connect-rest https : github.com imrefazekas connect-rest in the first place . The build in capabilities of connect https : github.com senchalabs connect provided all I needed . So the start of the Gruntfile.js now looks like this : .. . .. . and the livereload section like this : .. . .. . Note : I limit postbacks to calls to api here - you might need different endpoints . The example simply echos back the JSON received ." ] }
[ "yes-answer-long", "yes-answer-short" ]
web-services
UNK_RELATION
liquid-layout@css@84
liquid-layout -- a liquid-layout sometimes also referred to as a fluid-layout is a @placeholder technique in which the majority of the page components have percentage widths and thus adjust to the user s screen-resolution .
{ "confidence": [ 58.17755889892578, 56.9146614074707, 54.145606994628906, 53.456138610839844, 51.93189239501953, 51.538970947265625, 49.54205322265625, 49.23212814331055, 48.7539176940918, 48.64254379272461, 45.3829460144043, 45.10576248168945, 44.3331184387207, 43.227256774902344, 41.767982482910156, 41.767982482910156, 41.767982482910156, 41.767982482910156, 40.61475372314453, 40.211814880371094, 39.691871643066406, 39.516204833984375, 39.34957504272461, 39.20069122314453, 38.90264892578125, 38.862220764160156, 38.69614791870117, 38.38979721069336, 38.164649963378906, 38.164649963378906, 38.15858459472656, 37.76377868652344, 37.363006591796875, 37.338340759277344, 37.09422302246094, 36.889427185058594, 36.855167388916016, 36.59476089477539, 36.32696533203125, 36.320899963378906, 36.128299713134766, 35.95132064819336, 35.95132064819336, 35.911720275878906, 35.829891204833984, 35.77128982543945, 35.60613250732422, 35.380332946777344, 35.35614013671875, 35.20731735229492, 35.0899658203125, 35.0177001953125, 35.0177001953125, 34.98384094238281, 34.802154541015625, 34.184104919433594, 34.16520690917969, 34.10759353637695, 34.10759353637695, 33.967369079589844, 33.93410110473633, 33.838680267333984, 33.742713928222656, 33.57032012939453, 33.18001174926758, 33.11455535888672, 33.11455535888672, 33.11455535888672, 32.82815170288086, 32.805416107177734, 32.19654846191406, 31.581268310546875, 31.581268310546875, 31.581268310546875, 31.581268310546875, 31.52967071533203, 31.236190795898438, 30.972332000732422, 30.816364288330078, 30.736621856689453, 30.72052764892578, 30.24462890625, 30.147930145263672, 29.74358367919922, 29.74358367919922, 29.434444427490234, 29.434444427490234, 29.434444427490234, 29.283079147338867, 29.283079147338867, 29.270965576171875, 29.047290802001953, 28.5809326171875, 28.154483795166016, 28.05579948425293, 27.610685348510742, 27.515213012695312, 27.515213012695312, 27.445392608642578, 27.445392608642578 ], "content": [ "Fluid Layout or Fixed layout.. .", "Is this http : www.dynamicdrive.com style layouts item css-liquid-layout-21-fixed-fluid what you re looking for", "Is it possible create a liquid elastic screen layout on Android that resizes to fit all screen sizes", "I m trying to do a liquid-layout that has a left fixed width 130px a middle fluid column and a right fluid column all of them with 20px margins .", "I am trying to adjust the standard Bootstrap vertical drop-down menu to display items as a liquid-layout .", "http : www.dynamicdrive.com style layouts category C13 .. . .. . http : www.dynamicdrive.com style layouts item css-liquid-layout-31-fixed-fluid-fixed .. . .. . Yes", "a percentage based layout .", "CSS Layout 2-Column fixed-fluid http : stackoverflow.com questions 580195 css-layout-2-column-fixed-fluid", "Here s the code : .. . .. . Here is the url : http : matthewtbrown.com jeffandcricketquilt liquid index2.html .. . .. . Here is the CSS : Mobile Layout : 480px and below .", "There is a great help for liquid fixed fixed layout http : www.pagecolumn.com liquidfixed 3 col liquid-fix-fix.htm but I do need fixed fixed liquid .", "I am trying to create a 2 column liquid-layout with a menu on the left and site content on the right .", "This is so I can have a liquid-layout which when the window is resized the inner divs are the same distance from the outer div border .", "My opinion is still the same especially for a fluid-layout .", "I think the simplest way would just be to copy the application.html into the index layout adding in the necessary liquid blocks .", "Mid liquid width scroll .", "Right liquid width scroll", "Mid liquid with fixed position .", "Right liquid with scroll .", "I am looking for a navigation layout with fixed fixed fluid .", "That is the same layout which is easily achievable by having a two-cell layout table with width 100 and a fixed width on the left cell", "Read more http : www.maxdesign.com.au presentation liquid .", "Not wanting to specify exact widths especially for the button I was wondering if it was possible to give the textfield a liquid width", "Josh Stodola and Rich Bradshaw offered the HTML CSS answer which uses percentages to create a fluid-layout which expands with the window .", "Kindly add layout screenshot so i can help you with the layout .", "In this case the device UI is similar in most cases to a regular desktop UI so I would go with a liquid-layout and use the same UI .", "This will execute in Supplier Print View but not in Preview layout .", "There s nothing wrong with using tables for page layout btw .", "NB -- this approach applies only to liquid .", "The Holy Grail Layout .", "This really improves the layout .", "I had looked at liquid markup and Handlebars.js .", "I want to have a liquid left right side with a fixed center .", "I generally use jQuery Layout plugin for this types of layout .", "No I don t think so from reading the code https : github.com Shopify liquid blob c8f38ad9d0afda4d70da24f1e25cc7f577cf4e22 lib liquid standardfilters.rb L83 which might be used internally for Shopify as well it seems this syntax isn t supported .", "But I believe the error is from Liquid .. . .. . Regenerating : 1 file s changed at 2016-05-05 09 : 49 : 14 Liquid Exception : Invalid syntax for include tag .", "The other problem is Shopify liquid doesn t support to create an array .", "More on it here - docs.shopify.com themes liquid tags theme-tags include https : docs.shopify.com themes liquid tags theme-tags include", "They let you change the layout by loading additional css at different screen sizes .", "A Jekyll layout that compresses HTML .", "Everyone I am new to liquid markup language .", "If you re looking to set the size in pixels to the user s width you can use javascript to set widths dynamically : .. . .. . However you should probably use a more fluid-layout that will automatically expand by using widths specified in percents e.g .", "like contact page code in rails and as well in locomotive liquid", "Locomotive uses liquid m using extends parent to use index page .", "I m trying to build a 3 column layout that has one fixed column on the left a fluid column in the middle and another fixed column on the right .", "you can appoint the views to use which layout by adding .. . .. . to the controller which you want to use application layout", "I m constructing an Integration URL in Desk.com which uses the Shopify Liquid Template filter syntax .", "Try to use the same solution used for the Holy Grail Layout two sidebars sticking on the left and right and a fluid column in the middle .", "For example the menu : .. . .. . I ve cleaned up your layout and set more confortable widths .", "I m working on putting together a liquid style-sheet and it works wonderful .", "layout will auto rendered to the same name controller and this will override application layout .", "Question : Do you attempt to go for a liquid-layout that gets rearranged depending on the real estate available or do you roll N one for each range separate UI layers optimized for each specific supported resolution screen-size .", "Please clarify your desired column layout .", "I would like to create this layout with twitter-bootstrap .", "This mitght be a good solution for a website layout .", "I am now learning how to develop responsive liquid CSS designs and came across technique where block display elements eg .", "I want to achieve the expected layout below first image but stuck with actual layout second one .. . .. .", "Is there a way to escape url-encoding for the liquid tags", "I would always go for the flexible layout if there a no contrary requirements .", "It s all about crafting a site layout based on grids and containers .", "http : jch.penibelst.de .. . .. . If you - for some reason - do not want to use this here is a nice article which describes some workarounds : Compressing Liquid generated code - sylvain durand https : www.sylvaindurand.org compressing-liquid-generated-html", "This question already has an answer here : .. . .. . 2 column div layout : right column with fixed width left fluid questions 5195836 2-column-div-layout-right-column-with-fixed-width-left-fluid 8 answers .. . .. . The titles says it .", "Fluid-width is achieved by using percentage units or em units .", "I have a site using the BorderContainer layout .", "I m new to this Jekyll business but have tasted the massive potential of liquid - with this test personal website http : robinlovelace.net I m building .", "Is there a way to pass capture -d var to the layout in Jekyll", "Shopify has a sort filter http : docs.shopify.com themes liquid-basics 5-output sort input property nil for an array of hashes or drops .", "When you use the date filter then liquid picks up that you are referencing the current time and outputs the time as a string .", "If you mean content you can use liquid layouts Google http : tinyurl.com dx7fjs that .", "you mean render layout in views", "So I ve tried to work with the pure-CSS never-use-tables-for-layout gospel I really have .", "Also I d suggest simplifying altering your layout a bit .", "If setting this up with Liquid the quote could only be changed by rebuilding the site cron job if self-hosting or something .", "LIQUID LAYOUTS NO PROBLEM .. . .. . .. . .. . If you provide additional requirements I can easily tweak the code below to accommodate .", "I was guessing that putting a min-width on the body would do the trick but the liquid columns keep resizing even after that", "As far as I know you can use include to include only snippets having .liquid extension and nothing else .", "Is there a simple snippet of Liquid markup I can use on my index.liquid page home page to display all of the products that I have and make each of those images a link-to the respective product s information page", "Because I wanted to replace the head section in the main layout from templates depending on the page", "But now when that page is loads its giving error like shopify Liquid error : Memory limits exceeded .. . .. . Here is my code .. . .. . how can i overcome this problem", "Because I d hate to go back to layout tables thinking that this thing is impossible if it s actually not .", "If responsive layout is what you aim for that wold be the easiest sollution in my opinion .", "The question is this : is there any way using pure-CSS layout to have a column on the left which is fixed-width and to the right of it place a data table and have the data table neatly take up the remainder of whatever space is available", "But we are having some liquid tags which when rendered substitutes the value in the place where tags are added .", "I m attempting to add some logic in Customer.io which uses Shopify s Liquid markup language : .. . .. . The problem is that it doesn t recognize the Campaigns Participated property due to the space.. . .. . .. . Is there any way I can escape this space or something", "The site is responsive and liquid so the labels content could span in two lines instead of one when there is not enough space .", "As I am new to .liquid methods of shopify can anyone suggest a few ways to improve this load-time .", "On one of my pages I have a responsive table that changes layout when the browser gets small .", "These will never be applied using your current HTML layout - because you only have 9 columns in your table .", "This would be quite easy using a table but I m trying to have the site tables-free while avoiding JS for layout purposes .", "You can use RelativeLayout http : developer.android.com reference android-widget RelativeLayout.html .. . .. . or .. . .. . Layout with Weights like", "I want to make for my marketing site a 3 column layout that has images in the top banner .", "Imagine the answer will involve some of the xx style code that is the trademark of the liquid template language http : jekyllrb.com docs templates used by Jekyll .", "If you have more than 50 products in your shop you can add pagination to your home page by adding Liquid tags to your templates index.liquid file .", "IN the same way can i get layout from application.html", "But for the in-between window sizes of those I want them to be shown as the user adjusts their screen widths .", "Also you should add box-sizing : border-box since you are using percentage widths without considering the padding and margin.You should also clear your float before the footer .", "Inspector docked to right with vertical panel layout http : i.stack.imgur.com 9zhTA.png .. . .. . If you want to go a step further look at the web inspector settings cog icon bottom-right and goto the user-agent tab .", "I m looking to have the center fixed and the sides fluid .", "I have created a webpage with multiple fluid divisions .", "No always with the same layout with the labels on the left but with the text in two rows to take less space .", "Guess I could make 2 different layouts for frontpage and normal page that would replace the whole head content block in the layout ." ] }
{ "confidence": [ 70.39962768554688, 69.66361999511719, 67.28126525878906, 63.931182861328125, 63.04782485961914, 61.79798889160156, 60.30765151977539, 60.20226287841797, 56.23029708862305, 55.87842559814453, 55.26921463012695, 55.05434036254883, 53.57160568237305, 52.905818939208984, 51.670555114746094, 51.43498611450195, 51.158695220947266, 50.579524993896484, 49.84022521972656, 49.51615905761719 ], "content": [ "Question : I m trying to build a 3 column layout that has one fixed column on the left a fluid column in the middle and another fixed column on the right . Anyone seen this There are similar problems here but not the solution I was looking for . CSS Layout 2-Column fixed-fluid http : stackoverflow.com questions 580195 css-layout-2-column-fixed-fluid .. . Answer : http : www.dynamicdrive.com style layouts category C13 .. . .. . http : www.dynamicdrive.com style layouts item css-liquid-layout-31-fixed-fluid-fixed .. . .. . Yes Comment : Sounds about right . My google skills seems to have deteriorated .", "Question : I am trying to create a 3-column layout that works on most mobile browsers . Flex does not work unfortunately . There is a great help for liquid fixed fixed layout http : www.pagecolumn.com liquidfixed 3 col liquid-fix-fix.htm but I do need fixed fixed liquid . Could not get this done so far and hope for any help on this . .. . Answer : Try to use the same solution used for the Holy Grail Layout two sidebars sticking on the left and right and a fluid column in the middle . It also works if used with more than one column on the left and no column on the right : .. . .. . EDIT : the stackoverflow answer is built for a grid I changed it slightly to fit it for my needs fixed fixed fluid fixed .. . as soon as I find it I will post the edited solution CSS fluid columns fixed margins the holy grail of holy grails http : stackoverflow.com questions 7190768 css-fluid-columns-fixed-margins-the-holy-grail-of-holy-grails This link provides a full explanation including an example .. . .. . Another example is this version by Matthew James Taylor : http : matthewjamestaylor.com blog ultimate-3-column-holy-grail-pixels.htm .. . .. . You can even put a fluid column in the first place or in the middle by using this layout . Comment : This mitght be a good solution for a website layout . I am looking for a navigation layout with fixed fixed fluid .", "Question : In HTML is there a way to make a webpage expand to the user s monitor Like say I have a 15inch but someone else has a 24 inch . The webpage would be small on their screen but would fit on min . How would I make the page expand to 100 or maybe 95 Comment : There is no software in the world that sizes based on monitor inches . You want pixels . Comment : Resizing the browser is a sure-fire way to annoy the CRAP out of your users . I have to use an expense reporting tool that does this to me . Those of us with larger monitors generally don t want or need a window to be maximized . Comment : Geeze people READ the question before posting stupid comments . Comment : Never never never never force a window resize on your visitor . Its ok but IMHO barely ok to lay the page out using fixed sizes that would require the user to resize the window herself but even that is a sure way to anger a visitor if it isn t justified by real value added . Comment : Down boy . . regardless of WHY one should be using screen-size in their javascript programming . . some people may still interested in HOW . .. . Answer : Fluid-width is achieved by using percentage units or em units . It s all about crafting a site layout based on grids and containers . Read more http : www.maxdesign.com.au presentation liquid .", "Question : Is it possible create a liquid elastic screen layout on Android that resizes to fit all screen sizes Currently I m playing around with different layouts for small medium large xlarge etc but all I really need is a single layout that just scales to fit . Eg . a percentage based layout . .. . .. . The app I m creating doesn t specifically need to take advantage of larger screens in terms of making more use of the space . The home screen is just 2 images a bunch of buttons and an advert at the bottom and I simply wish for the advert to remain at the bottom whilst everything else scales up accordingly depending on screen-size . It seems very over-complicated to have to product 4 different layouts for a very simplistic interface . Advice much appreciated Comment : developer.android.com guide practices screens support.html http : developer.android.com guide practices screens support.html . I don t think its possible Comment : Kindly add layout screenshot so i can help you with the layout . Comment : Here s a mockup of the layout we want to use pixelkicks.co.uk download Sample-Android-Layout.jpg http : www.pixelkicks.co.uk download Sample-Android-Layout.jpg .. . Answer : You can use RelativeLayout http : developer.android.com reference android-widget RelativeLayout.html .. . .. . or .. . .. . Layout with Weights like", "Question : I am trying to create a 3-column layout that works on most mobile browsers . Flex does not work unfortunately . There is a great help for liquid fixed fixed layout http : www.pagecolumn.com liquidfixed 3 col liquid-fix-fix.htm but I do need fixed fixed liquid . Could not get this done so far and hope for any help on this . .. . Answer : When you want to have the last element fluid then you can use float : none . The last element gets the float : none and also a padding-left equal to the width of the other two fixed divs . HTML .. . .. . CSS .. . .. . Here is a demo http : jsfiddle.net a9jbq5bj 4 .. . .. . Update based on comments changes only in CSS .. . .. . This concept can also wotk with margin instead of padding . So you can do the following . I have added some margin to implement the space between the divs . The margin that the fixed divs should be added to the margin-left of the fluid div . Here is the updated demo http : jsfiddle.net a9jbq5bj 4 in a jsfiddle . In your codepen http : codepen.io anon pen xGENxd you just need to add .fluid margin-left : 220px as you can see here http : codepen.io anon pen xGENRX . Comment : I think the padding-right of 300px makes the definitely correct solution looks a bit messed up when looking at it on small screens just had a look at it . just put up the same in a codepen : codepen.io anon pen wazOLP http : codepen.io anon pen wazOLP Comment : @j.bearGraphics That s a good point I had the window full screen and didn t even notice . I adjusted my example with smaller widths Comment : This looks like it leads to the right solution . I have put your code added by my adaption here : codepen.io anon pen xGENxd http : codepen.io anon pen xGENxd What I want to do is a navigation footer . There should be white space between the columns could not get this done with your example . Any ideas how to adapt this Comment : My answer at the bottom is different to the one up here . anyway : two solutions : add a whitespace by adding divs inbetween with having a width equal to the whitespace you want OR use the holy grail layout I added.. . Comment : @merlin One clarification . I used in my first answer padding-right where the correct would be padding-left . I have updated my answer to be correct .", "Question : This is driving me nuts I m trying to do a liquid-layout that has a left fixed width 130px a middle fluid column and a right fluid column all of them with 20px margins . Because I only want the right column to scroll when the content overflows I ve put left and middle inside a fixed positioned container .wrapper which takes 50 of the page and the other 50 for the right hand column . I ve made the margins as borders with box-sizing . But when I resize the browser the middle column resizes until in disappears and the text on the left and middle column overflows . Any ideas I ve also done this on jquery but I seem to be running into the same resizing problems . Can anyone shed some light on this issue Many thanks Comment : I am unsure what exactly you want the right column to do Comment : Right column is 50 of the total window width and scrolls on content overflow . The other half the left half is 50 of total window width with fixed positioning and contains the left column at 130 px width with 20px right margin and the mid column with a 20px right margin . The Jquery version I ve posted is the right display only that I want a min-width for the liquid columns or the body so that the columns don t keep resizing until they disappear . Comment : see latest jsfiddle below Comment : Thanks DreamTek Still mid position should be fixed so that right scrolls only so I can t have a wrapper for both mid and right together . Also when I resize mid and right go behind left any way to prevent this from happening Many thanks Comment : Sorry friend I am having difficulty visualizing what you want to achieve . Also in my examples below mid and right do not go behind left . .. . Answer : LIQUID LAYOUTS NO PROBLEM .. . .. . .. . .. . If you provide additional requirements I can easily tweak the code below to accommodate . HTML .. . .. . CSS .. . .. . http : jsfiddle.net 7nQMx .. . .. . .. . .. . EXAMPLE WITH PADDING MARGINS .. . .. . Margins are not part of the box-sizing model however a wrapper with padding around the desired div with margins has the same effect . http : jsfiddle.net 7nQMx 1 .. . .. . HTML .. . .. . CSS .. . .. . .. . .. . To have the right column scroll simply set a height and overflow property : .. . .. . http : jsfiddle.net 7nQMx 3 Comment : Thank you But the right and mid columns cannot be wrapped together because right needs to scroll and mid needs to be fixed . The only 2 that could be wrapped are left and mid I suppose Comment : Please clarify your desired column layout . I understood it as : Left fixed width position . Mid liquid width scroll . Right liquid width scroll Comment : It s : Left fixed width AND fixed position . Mid liquid with fixed position . Right liquid with scroll . I was guessing that putting a min-width on the body would do the trick but the liquid columns keep resizing even after that Thank you . Comment : See my edits in my answer above . Comment : That also works but I have the scroll set on the html and it works fine . It s not really a scroll problem it s a window resizing issue where the middle column just keeps scaling down and the text overflows even if I set a min-body width .", "Question : I want to set up a page that hides a menu bar depending in the size of the screen . I have it set up so that this menu bar is supposed to disapper when someone sets it to a mobile screen-size I believe 480px . However when I assign the nag to display : none it won t appear at all on the page . Here s the code : .. . .. . Here is the url : http : matthewtbrown.com jeffandcricketquilt liquid index2.html .. . .. . Here is the CSS : Mobile Layout : 480px and below . .. . Answer : Put .. . .. . .hide mobile display : block in the @media only screen and min-width : 769px area and then put .hide mobile display : none in the @media only screen and max-width : 480px area . and let me know if that helps .", "Question : I want to make for my marketing site a 3 column layout that has images in the top banner . I want to have a liquid left right side with a fixed center . The html would ideally look like this : .. . .. . The images in the left right pixel sides are 1px x 460px . The image mybanner.png is 1550px x 460px . Thanks in advance Especially if it will work in ALL browsers .. . Answer : There are several solutions to this probably the post popular of which is the Holy Grail method . It s a little above my head but these links explain it pretty well . http : alistapart.com article holygrail .. . .. . http : matthewjamestaylor.com blog perfect-3-column.htm .. . .. . I would start with A List Apart s article . Good luck . After re-reading it I think this is what I would do : .. . .. . HTML .. . .. . CSS .. . .. . You ll need to adjust some of the dimensions but the inline comments should help with that . So there you have it . The Holy Grail Layout . Comment : Thanks for the post but the first one is backwards actually . I m looking to have the center fixed and the sides fluid .", "Question : null .. . Answer : I am trying to adjust the standard Bootstrap vertical drop-down menu to display items as a liquid-layout . The standard mobile menu view stacks items vertically up to a width of 580px leaving a mass of empty space to the right of the items if you have short menu items or no sub-menus . Does anyone know how to configure this", "Question : Scenario : You need to expose the same app on different screens - let s say a standard 15 -17 a portable 10 and a mobile 4 possibly working on different resolutions . Question : Do you attempt to go for a liquid-layout that gets rearranged depending on the real estate available or do you roll N one for each range separate UI layers optimized for each specific supported resolution screen-size . What s the industry standard on this kind of problems Does it make sense to come up with very trick layouts partitioning the screen in priority areas that will go away come back when the screen gets resized one way or the other We all know iPhone apps or any other palm device can t be nothing like the desktop version so I am assuming in that case 4 or less you re forced to roll different UIs but is there a middle ground let s say between 13 - 7 screens with the latter requiring fingers as primary input where it makes sense to go for the liquid-layout .. . Answer : You seem to have already decided that a seperate UI is needed for mobile-devices and I support this . The way the user interacts with these devices is so different that you need to think of them in a specific way . For other screen sizes I think they need to be approached from a users perspective . If the user interacts with the screens in different ways then you need seperate interfaces . However in my experience users tend to look at screens from about 10 upwards as simply bigger or smaller versions of the same thing and so you should treat your UI in the same way . Don t change it dramatically for smaller screens . Instead you need to find a way for it to grow or shrink in such a way that the user feels that they have more space to work in . with the same old UI . Text editors are a prime example of this . The document window grows bigger there is more space for documents to be edited in but the actual interface stays pretty static .", "Question : Scenario : You need to expose the same app on different screens - let s say a standard 15 -17 a portable 10 and a mobile 4 possibly working on different resolutions . Question : Do you attempt to go for a liquid-layout that gets rearranged depending on the real estate available or do you roll N one for each range separate UI layers optimized for each specific supported resolution screen-size . What s the industry standard on this kind of problems Does it make sense to come up with very trick layouts partitioning the screen in priority areas that will go away come back when the screen gets resized one way or the other We all know iPhone apps or any other palm device can t be nothing like the desktop version so I am assuming in that case 4 or less you re forced to roll different UIs but is there a middle ground let s say between 13 - 7 screens with the latter requiring fingers as primary input where it makes sense to go for the liquid-layout .. . Answer : We are just starting a project where we have a very similar problem . In our case the app will work slightly differently on the different screens more stages and fewer options on the smaller screens for example . What we plan to do is to use the ASP.Net MVC framework and implement a view for each screen-resolution sub app . We will try to keep the rest of the app common to all screen resolutions . Comment : so you ve got a different UI view for each screen-size - interesting", "Question : Scenario : You need to expose the same app on different screens - let s say a standard 15 -17 a portable 10 and a mobile 4 possibly working on different resolutions . Question : Do you attempt to go for a liquid-layout that gets rearranged depending on the real estate available or do you roll N one for each range separate UI layers optimized for each specific supported resolution screen-size . What s the industry standard on this kind of problems Does it make sense to come up with very trick layouts partitioning the screen in priority areas that will go away come back when the screen gets resized one way or the other We all know iPhone apps or any other palm device can t be nothing like the desktop version so I am assuming in that case 4 or less you re forced to roll different UIs but is there a middle ground let s say between 13 - 7 screens with the latter requiring fingers as primary input where it makes sense to go for the liquid-layout .. . Answer : Mobile Apps for cell phones and other portable devices usually get a hand rolled mobile UI . The 10 - 13 case you re talking about is more in the netbook range . In this case the device UI is similar in most cases to a regular desktop UI so I would go with a liquid-layout and use the same UI . EDIT .. . .. . See the comments for clarification on requirements.. . But considering the smaller interface is going to be a touch interface and the larger interface will not...I d suggest rolling different UIs for each . The UX for the touch version will be much better if special considerations are made regarding touch based concerns . Comment : thanks for your contribution - in my specific case the concern is that as the UI shrinks the UX also is gonna get downscaled to some extent when you move from 13 to 10 I am using a touchscreen and a requirement is for primary input to always come from fingers - not stylus Comment : Does the input requirement hold true for your app running on all screens or only the smaller ones Comment : only for the smaller ones at current stage Comment : Updated my answer for the new requirements . Comment : Thanks - this is my thought as well but we have a bit of a religious war going on about the subject having to do with code re-use and so forth .", "Question : Scenario : You need to expose the same app on different screens - let s say a standard 15 -17 a portable 10 and a mobile 4 possibly working on different resolutions . Question : Do you attempt to go for a liquid-layout that gets rearranged depending on the real estate available or do you roll N one for each range separate UI layers optimized for each specific supported resolution screen-size . What s the industry standard on this kind of problems Does it make sense to come up with very trick layouts partitioning the screen in priority areas that will go away come back when the screen gets resized one way or the other We all know iPhone apps or any other palm device can t be nothing like the desktop version so I am assuming in that case 4 or less you re forced to roll different UIs but is there a middle ground let s say between 13 - 7 screens with the latter requiring fingers as primary input where it makes sense to go for the liquid-layout .. . Answer : In the context of web-applications Jakob Nielsen suggests http : www.useit.com alertbox mobile-2009.html basing his assessment on recent usability tests read linked article for details to design a dedicated UI for mobile-devices . I think that even if your application is not web-based some of his guidelines are useful anyway . He has guidelines for desktop resolutions http : www.useit.com alertbox screen 5Fresolution.html also .", "Question : I am using locomotive cms for our new project . Which uses rails 3.2.13 Ruby 1.9.3 and mongodb . As client wants to edit some of the pages around 10 so we decided to integrate locomotive to existing rails app . Problem we found here is not able to inherit any of pages from application.html . Do we need to write separate html in locomotive index also or is there any way to interact between cms and our rails app . we totally confused as this is my first cms integration to rails .. . .. . Thank you in advance .. . Answer : layout will auto rendered to the same name controller and this will override application layout . you can appoint the views to use which layout by adding .. . .. . to the controller which you want to use application layout Comment : where should i post this in locomotive index page Locomotive uses liquid m using extends parent to use index page . IN the same way can i get layout from application.html Comment : you mean render layout in views", "Question : This is driving me nuts I m trying to do a liquid-layout that has a left fixed width 130px a middle fluid column and a right fluid column all of them with 20px margins . Because I only want the right column to scroll when the content overflows I ve put left and middle inside a fixed positioned container .wrapper which takes 50 of the page and the other 50 for the right hand column . I ve made the margins as borders with box-sizing . But when I resize the browser the middle column resizes until in disappears and the text on the left and middle column overflows . Any ideas I ve also done this on jquery but I seem to be running into the same resizing problems . Can anyone shed some light on this issue Many thanks Comment : I am unsure what exactly you want the right column to do Comment : Right column is 50 of the total window width and scrolls on content overflow . The other half the left half is 50 of total window width with fixed positioning and contains the left column at 130 px width with 20px right margin and the mid column with a 20px right margin . The Jquery version I ve posted is the right display only that I want a min-width for the liquid columns or the body so that the columns don t keep resizing until they disappear . Comment : see latest jsfiddle below Comment : Thanks DreamTek Still mid position should be fixed so that right scrolls only so I can t have a wrapper for both mid and right together . Also when I resize mid and right go behind left any way to prevent this from happening Many thanks Comment : Sorry friend I am having difficulty visualizing what you want to achieve . Also in my examples below mid and right do not go behind left . .. . Answer : I think this could be a start for you : .. . .. . http : jsfiddle.net S4mxM .. . .. . CSS .. . .. . I rewrote the whole code Comment : Thank you But I have the same issue with the wrapping as above : can t wrap middle and right because right needs to scroll and mid needs to stay put just like left . Any ideas", "Question : In HTML is there a way to make a webpage expand to the user s monitor Like say I have a 15inch but someone else has a 24 inch . The webpage would be small on their screen but would fit on min . How would I make the page expand to 100 or maybe 95 Comment : There is no software in the world that sizes based on monitor inches . You want pixels . Comment : Resizing the browser is a sure-fire way to annoy the CRAP out of your users . I have to use an expense reporting tool that does this to me . Those of us with larger monitors generally don t want or need a window to be maximized . Comment : Geeze people READ the question before posting stupid comments . Comment : Never never never never force a window resize on your visitor . Its ok but IMHO barely ok to lay the page out using fixed sizes that would require the user to resize the window herself but even that is a sure way to anger a visitor if it isn t justified by real value added . Comment : Down boy . . regardless of WHY one should be using screen-size in their javascript programming . . some people may still interested in HOW . .. . Answer : I think there s some confusion about whether or not Bob is asking about the actual size of the monitor or the size of the window . Josh Stodola and Rich Bradshaw offered the HTML CSS answer which uses percentages to create a fluid-layout which expands with the window . The following code sums up this technique creating two columns one taking up 80 of the current browser window and the other taking up 20 . The column sizes alter when the user changes the window size . Rudd Zwolinski provided the answer which looks for the user s current resolution . Others have already posted the potential annoyances caused by using this method but I don t know maybe you re making some artistic statement about resolution sizes . Here s the same code above using this method : .. . .. . Hope that helps .", "Question : I would like to have a div which contains multiple inner divs but so that the outer div has equal padding to the left and right . This is so I can have a liquid-layout which when the window is resized the inner divs are the same distance from the outer div border . I think I might need some jQuery to do this...but cant find anything that works . Here is the basic layout.. . if you resize the window the right most divs in blue drop down but I am left with a large space on the right hand side inside the green border I need the divs to line up BUT I also don t want to center-align the divs as the bottom row needs to align left . Any ideas Example : .. . Answer : Just change : .. . .. . jsfiddle http : jsfiddle.net yAkBF", "Question : I am using locomotive cms for our new project . Which uses rails 3.2.13 Ruby 1.9.3 and mongodb . As client wants to edit some of the pages around 10 so we decided to integrate locomotive to existing rails app . Problem we found here is not able to inherit any of pages from application.html . Do we need to write separate html in locomotive index also or is there any way to interact between cms and our rails app . we totally confused as this is my first cms integration to rails .. . .. . Thank you in advance .. . Answer : I don t think that there is a way to do this . All of the layouts for locomotive are stored in the database and the rendering process is completely separate and different from the rails rendering process . I think the simplest way would just be to copy the application.html into the index layout adding in the necessary liquid blocks . Comment : Thanks Charlie Greene So we should maintain same pages twice like contact page code in rails and as well in locomotive liquid So dont we have any chance to respond to rails from locomotive Comment : I haven t done many app and cms intergrations . We mostly just use the cms but I think that you should be able to just maintain the application layout twice once as the rails app and one as the index page in locomotive and then maintain the pages you want to have access to via the CMS just in locomotive . You may have to do something with the routing to make sure that your rails pages are displayed . Comment : As of now i could make cms work by using layout twice in rails and locomotive . Hope i will find other solution", "Question : I use GitHub Pages for my blog and am running into a problem with Jekyll . My post.html has a block like this : .. . .. . The part in the middle doesn t matter . The important part is the end of the line which is outside of the markup and is therefore rendered into the html . Since this is in a loop it s putting about 1000 blank lines into the middle of by HTML page . It doesn t affect the display but it make a View Source troublesome . Any ideas on how to avoid those extra blank lines .. . Answer : Actually there is a new solution for this problem which works without any plugin . A Jekyll layout that compresses HTML . At a glance : .. . .. . removes unnecessary whitespace .. . removes optional end tags .. . removes optional start tags .. . removes comments .. . preserves whitespace within pre .. . GitHub Pages compatible .. . ignores development environments .. . configurable affected elements .. . profile mode .. . automatically tested . http : jch.penibelst.de .. . .. . If you - for some reason - do not want to use this here is a nice article which describes some workarounds : Compressing Liquid generated code - sylvain durand https : www.sylvaindurand.org compressing-liquid-generated-html", "Question : I am trying to create a 2 column liquid-layout with a menu on the left and site content on the right . The menu is meant to go into the right column div.liquid-right and site content is then meant to go in to the left column div.liquid-left . I need the content container to be the same size as the body that is div.liquid-right and not its parent which is the left container div.liquid-left . The layout can be represented by the following diagram : .. . .. . HTML markup .. . .. . CSS style .. . .. . Currently the .content container is only the size of the left container which is expected but I have no idea how to expand it to the size of the body container . UPDATE .. . .. . http : jsfiddle.net Ex4tK Comment : I edited your question to make it clearer what you are trying to do . Please review your edited post to make sure it is accurate . Thank you . Comment : @MarcAudet you should nt have bothered I don t think anyone is going to answer .. . Answer : You have two content blocks inside of left . If you want them to expand and keep left static move those children out . http : jsfiddle.net MhCke Comment : This is not what I want the right will expand on its own if more content is added . Comment : I didn t add some of these classes but I ll remove them and post a jfiddle link Comment : jsfiddle.net Ex4tK http : jsfiddle.net Ex4tK Comment : Thanks for the fiddle . My opinion is still the same especially for a fluid-layout . You can cheat the parent width by setting it s overflow to visible however when you then add 100 as the child s width you are setting it to be the parent s width not the grand-parent s width . Comment : Updated your fiddle . Removed the floats and added positioning as well as overflow : visible to left which will allow the width to cheat the parent . jsfiddle.net Ex4tK 1 http : jsfiddle.net Ex4tK 1" ] }
[ "yes-answer-long", "yes-answer-short" ]
css
UNK_RELATION
internet-explorer-7@windows-server-2003@133
internet-explorer-7 -- windows internet-explorer-7 is a web browser developed by microsoft released october 2006 for windows-xp and @placeholder .
{ "confidence": [ 69.14244079589844, 65.50940704345703, 65.50940704345703, 63.96589279174805, 63.0504150390625, 62.675697326660156, 61.186309814453125, 60.13087463378906, 58.83042907714844, 58.83042907714844, 58.50248718261719, 58.48060607910156, 58.416961669921875, 57.76860809326172, 57.2656135559082, 57.2656135559082, 56.25870895385742, 55.80657196044922, 55.740928649902344, 54.31969451904297, 53.644683837890625, 53.644683837890625, 53.644683837890625, 53.644683837890625, 53.602088928222656, 53.602088928222656, 53.030330657958984, 53.030330657958984, 52.292633056640625, 51.964839935302734, 51.6013069152832, 51.6013069152832, 51.18568801879883, 50.84215545654297, 50.47443389892578, 50.188541412353516, 49.583438873291016, 48.995914459228516, 48.447364807128906, 48.41633987426758, 48.18473434448242, 47.824188232421875, 47.444664001464844, 47.13574981689453, 46.65950012207031, 46.65950012207031, 46.65950012207031, 46.65950012207031, 46.44135284423828, 46.00128173828125, 45.725006103515625, 45.725006103515625, 45.246089935302734, 44.60367202758789, 44.25789260864258, 44.25789260864258, 44.20050811767578, 44.20050811767578, 44.20050811767578, 44.20050811767578, 44.20050811767578, 44.00990295410156, 43.97987365722656, 43.602684020996094, 43.54228973388672, 43.42884063720703, 43.427947998046875, 43.427947998046875, 43.419639587402344, 43.26601028442383, 43.26601028442383, 42.76152801513672, 42.76152801513672, 42.67498779296875, 42.384422302246094, 42.384422302246094, 42.03741455078125, 42.03741455078125, 41.966739654541016, 41.86863708496094, 41.82933807373047, 41.48854446411133, 41.48854446411133, 41.43115997314453, 41.43115997314453, 40.981346130371094, 40.85776138305664, 40.57215118408203, 40.49666213989258, 39.92543029785156, 39.92543029785156, 39.747581481933594, 39.57841873168945, 39.57841873168945, 39.57841873168945, 39.57841873168945, 39.57841873168945, 39.489173889160156, 39.2679557800293 ], "content": [ "We use Windows XP Internet Explorer 7 and Office 2003 .", "Internet Explorer 7", "Internet Explorer 7", "The current list of virtual disk images available from the above link are : .. . .. . Internet Explorer 6 on Windows XP SP3 .. . Internet Explorer 7 on Windows XP SP3 .. . Internet Explorer 8 on Windows XP SP3 .. . Internet Explorer 7 on Windows Vista .. . Internet Explorer 8 on Windows Vista .. . .. . List is current as of October 11 2009 .", "Internet Explorer 7 does not .", "I need to debug JavaScript in Internet Explorer 7 .", "It too doesn t work in Internet Explorer 7 or Internet Explorer 6 .", "On a Windows box the IF Internet Explorer statements will resolve to Internet Explorer 7 even in Internet Explorer 5 which means even more weird bugs .", "It works fine in Firefox and Chrome but not in Internet Explorer 7 .", "I experienced similar bug in Internet Explorer 7 .", "Not working in Internet Explorer 7 means that the columns aren t collapsing in Internet Explorer 7 only media-queries are not read .", "HOW-TO : Debug JavaScript in Internet Explorer http : jonathanboutelle.com 2006 01 16 how-to-debug-javascript-in-internet-explorer", "One with Internet Explorer 6 and one with Internet Explorer 7 .", "Possible Duplicate : .. . Running Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine http : stackoverflow.com questions 574463 .. . .. . I am looking for a tool that can allow me to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 if possible on my machine .", "The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine .", "How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine", "Possible Duplicate : .. . Running Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine http : stackoverflow.com questions 574463 running-internet-explorer-6-internet-explorer-7-and-internet-explorer-8-on-the .. . .. . I need recommendations on a good Internet Explorer standalone for Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 .", "Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 .", "With Firefox its working fine but with Internet Explorer 7 its not .", "Use Internet Explorer 8 .", "I ve got a problem with my FB apps with Internet Explorer 7 .", "How can I fix this to make it compatible with Internet Explorer 7", "Also I need a solution compatible with Internet Explorer 7 .", "But Internet Explorer 7 is complaining that Node with the capital N is undefined .", "It supports Internet Explorer 5.5 6 7 and 8RC1 .", "Solution for Internet Explorer 6 7 8 .", "I also tried the Internet Explorer Collection from Edskes but Internet Explorer 6 and Internet Explorer 7 refuse to let me type in a text box .", "When you upgrade from Internet Explorer 6 to Internet Explorer 7 or Internet Explorer 8 you re actually replacing some system DLLs .", "Get Internet Explorer 9 .. . 2 .", "This responsive example from H5BP http : www.initializr.com try works well in Internet Explorer 7 Internet Explorer 8 and Internet Explorer 9 but when I use H5BP in my own project it doesn t work in Internet Explorer 7 only .", "This is the reason why you get Internet Explorer 6 when you uninstall Internet Explorer 7 .", "Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 .", "This provides an internal property known as hasLayout in Internet Explorer versions 7 and lower .", "Expression Web http : en.wikipedia.org wiki Microsoft Expression Web 3 which will include SuperPreview will allow comparison between any combination of Internet Explorer 6 Internet Explorer 7 Internet Explorer 8 and Firefox 3 .", "Internet Explorer is a bug .", "The Internet Explorer 6 standalone version work on Windows XP it does t work on Windows Vista .", "I ve written a step-by-step blog post http : blog.donavon.com 2009 08 run-ie6-ie7-and-ie8-side-by-side-on.html showing how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 as virtual applications on Windows 7 Ultimate .", "Possible Duplicate : .. . Running Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine http : stackoverflow.com questions 574463 .. . .. . Is there a way to have Internet Explorer 8 and Internet Explorer 6 side-by-side without virtualizing", "Apparently Internet Explorer has a bug .", "It will need to work on Internet Explorer 6 7 8 and Firefox .", "del Only virtualization can provide the full DLL stack for definitive testing . del .. . .. . Edit : .. . .. . On March 18 2009 the Microsoft Expression Web team released SuperPreview http : blogs.msdn.com xweb archive 2009 03 18 Microsoft-Expression-Web-SuperPreview-for-Windows-Internet-Explorer.aspx a free stand-alone application that allows cross-browser side-by-side and onionskin comparison between Internet Explorer 8 Internet Explorer 8 - Internet Explorer7 compatibility-mode and Internet Explorer 6 .", "For example you can see how your page looks in Internet Explorer 6 Internet Explorer 7 Internet Explorer 8 Firefox and Safari even if you don t have those browsers installed .", "Here s an updated link : jonathanboutelle.com 2006 01 16 http : jonathanboutelle.com 2006 01 16 how-to-debug-javascript-in-internet-explorer", "So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 .", "enter image description here http : i.stack.imgur.com j1pyL.png .. . .. . But it breaks up on a new line on Internet Explorer 7 .", "In Internet Explorer 7 the parent div needs a defined width for child percentage div s to work correctly .", "Internet Explorer 7 and earlier versions don t support the value inherit for any properties other than direction and visibility .", "Internet Explorer 7 versions don t support the value inherit for any properties other than direction and visibility .", "I feel the format of receiving post data is different with Internet Explorer 7 compared to other browsers since I only have trouble with that browser .", "In the HTML generation stage I m successful but I m trying to produce this entirely in javascript in a format that works in older web browsers such as Internet Explorer 7 .", "I installed it started Internet Explorer and it crashed .", "Internet Explorer http : i.stack.imgur.com 3bRJr.png .. . .. . Chrome", "By upgrading your Internet Explorer .", "I need to test a web application on older versions of Internet Explorer .", "Trying css3-mediaqueries.js I found that works well on Internet Explorer 7 Internet Explorer 8 and Internet Explorer 9 but I noticed that the transition reading media-queries is delayed by almost a second so I don t want to use it .", "I ve read the cross-domain CDN issue on the respond.js page https : github.com scottjehl Respond and my test project is in a subdomain root for example subdomain dot mydomain dot tld so if this is the problem why does it work well on Internet Explorer 8 and Internet Explorer 9 but not in Internet Explorer 7", "It happens on Internet Explorer 6 and 7 those are the only two I have tried .", "Can anyone tell me how to make it work in Internet Explorer 6 and 7 .", "If an illegal identifier name is used in-place of important Internet Explorer 7 and below will handle the property normally instead of failing .", "Test in real browsers including Internet Explorer 6 7 8 9 10 and 11 .", "The @font-face declaration is different for Internet Explorer 7 outlined in the last response to the question .", "When the Let Internet Explorer decide how popups open option is selected what criteria does Internet Explorer use to make this decision", "As simple as slider position : relative found here http : clicknathan.com 2011 04 04 easy-slider-1-7-with-internet-explorer-7-bug-fix", "VS2012 Express requires Windows 7 .", "I m trying to achieve the same thing but with DIV tags and CSS and I want to make it compatible with older web browsers such as Internet Explorer 7 .", "The stand-alone files are still available see Quick browser testing : Internet explorer version 6 7 and 8 http : stackoverflow.com q 4227959 938089 quick-browser-testing-internet-explorer-version-6-7-and-8 .", "Microsoft does not support multiple versions of Internet Explorer on one operating-system .", "Microsoft has asked us to remove Internet Explorer from this service .", "Microsoft provides Virtual PC http : www.microsoft.com windows virtual-pc default.aspx disk images with Internet Explorer 6 7 and 8 at the Internet Explorer Application Compatibility VPC Image http : www.microsoft.com downloads details.aspx FamilyID 21eabb90-958f-4b64-b5f1-73d0a413c8ef displaylang en download page .", "Its seems like a bug in Internet Explorer .", "pseudo-class is currently not supported in Internet Explorer .", "The Pop-up Blocker feature in Internet Explorer 6 blocks windows that are opened without being initiated by the user .", "I m using : .. . .. . Windows Vista Home Premium .. . Visual Studio 2008 running as Administrator .. . Internet Explorer 7.0.6000.16809 .. . Firefox 3.0.6", "Go into Tools Internet Options Advanced and check that Disable Script Debugging Internet Explorer is unchecked and Display a notification about every script error is checked .. . 2 .", "Everything works fine in Firefox and Opera but in Internet Explorer 7 the post data being returned from the HTTP headers isn t quite correct .", "When I use a percentage-based width on the child div it collapses to 0 width on Internet Explorer 7 http : en.wikipedia.org wiki Internet Explorer 7 but not on Firefox or Safari .", "I was having the same problem as OP but in Internet Explorer 8 .", "Firefox version is 3.5.19 and Internet Explorer version is MSIE 7.0 .", "modern.IE http : www.modern.ie is an undertaking by Microsoft to make cross-browser testing for the Internet Explorer browsers easier .", ".. . .. . For an example of a specific bug that zoom : 1 and so hasLayout helps to fix : .. . .. . Inline block doesn t work in internet-explorer-7 6 http : stackoverflow.com questions 5838454 inline-block-doesnt-work-in-internet-explorer-7-6 5838575 5838575", "If you try to do a multi install of Internet Explorer you will break conditional-comments on pages which will make testing difficult anyway For example With Internet Explorer 5 6 and 7 .", "I tried using Tredosoft s Internet Explorer 7 standalone http : tredosoft.com IE7 standalone and MultiIE for Internet Explorer 6 but select elements were being blocked as pop-ups even when the pop-up blocker was turned off in all Internet Explorer browsers 6 7 8 .", "I used Multiple IEs http : tredosoft.com Multiple IE which works fine with Internet Explorer 7 but since I installed Internet Explorer 8 beta 2 Internet Explorer 6 started behaving oddly that is more than usual .", "Firefox has an add-in that will render a webpage the same as-if it was in Internet Explorer 5.5 6 7 8 beta 2 .", "Wordpress twenty fifteen theme messes up in Internet Explorer 7 and 8 it shows the mobile view display but messed up .", "I use the getSelection method like this : .. . .. . When the text within the textarea is 12345 and all this text is selected Firefox and Chrome returns : .. . .. . while Internet Explorer 7 returns : .. . .. . I m looking for a cross-browser solution using jQuery .", "How can I solve this problem for explorer 7", "I m actually testing in real IE 7 on Windows XP .", "Very good option is update to Internet Explorer 10 .", "I ve also tried omitting H5BP and using purely html5shiv + Respond.js also with selectivzr.js but I encounter the same issue it does not work in Internet Explorer 7 .", "just wodering if anyone has experience with Typeface.js http : typeface.neocracy.org and fixing issues of the font not being rendered in Internet Explorer 6 7 and 8 .", "I already can t stand working with IE7 but now I ran into an issue that is driving me nuts : .. . .. . internet-explorer-7 IE 9 running IE 7 mode works fine on the site and behaves as intended .. . internet-explorer-7 on Windows XP does not work properly .. . site takes several attempts to load once loaded you cannot navigate to internal pages of the site .. . if you click a link it loads the title of the page but the content never renders at all old page is still there and the status says Done .", "I know there are other ways to declare the internet-explorer object .", "Something is causing random people to not be able to automate internet-explorer .", "Internet Explorer 8 or older doesn t support media query .", "What is the currently accepted standard for opening popups in internet explorer.. . that works", "PPseudo elements aren t supported prior to Internet Explorer 8 .", "jQuery 2.0 has just been released and completely dropped support for Internet Explorer 6 7 and 8 more.. . http : blog.jquery.com 2013 04 18 jquery-2-0-released .", "I m not targeting my website to be cross-browser but it atleast should work in Internet explorer irrespective of its version ." ] }
{ "confidence": [ 79.9163818359375, 79.00033569335938, 78.58251953125, 77.33277130126953, 76.7588119506836, 76.56151580810547, 76.29303741455078, 76.27276611328125, 75.34658813476562, 75.14708709716797, 75.11001586914062, 75.11001586914062, 75.08317565917969, 74.04912567138672, 73.8350601196289, 73.51011657714844, 73.4699478149414, 73.4699478149414, 73.44303131103516, 73.30953216552734 ], "content": [ "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : As Eduardo mentioned the recently announced Microsoft SuperPreview http : blogs.msdn.com xweb archive 2009 03 18 Microsoft-Expression-Web-SuperPreview-for-Windows-Internet-Explorer.aspx is a tool that lets you view how web pages are rendered in many different browsers even if they aren t installed locally . For example you can see how your page looks in Internet Explorer 6 Internet Explorer 7 Internet Explorer 8 Firefox and Safari even if you don t have those browsers installed .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : I would also suggest running a few virtual machines rather than running multiple versions of Internet Explorer on the same instance of Windows . Microsoft provides Virtual PC http : www.microsoft.com windows virtual-pc default.aspx disk images with Internet Explorer 6 7 and 8 at the Internet Explorer Application Compatibility VPC Image http : www.microsoft.com downloads details.aspx FamilyID 21eabb90-958f-4b64-b5f1-73d0a413c8ef displaylang en download page . The current list of virtual disk images available from the above link are : .. . .. . Internet Explorer 6 on Windows XP SP3 .. . Internet Explorer 7 on Windows XP SP3 .. . Internet Explorer 8 on Windows XP SP3 .. . Internet Explorer 7 on Windows Vista .. . Internet Explorer 8 on Windows Vista .. . .. . List is current as of October 11 2009 . All versions have expiration dates . Comment : Is there a way to make this images working in VirtualBox It s no problem to create a VM with the image and start it but it crashes during boot . I gues this is due to different VM hardware of VirtualPC and VirtualBox . Comment : Recently 10 2011 I went looking for these and discovered that MS has removed the Windows XP images with IE7 and IE8 . Ditto for IE8 on Vista . IE7 is now Vista only 4179MB vs . 366MB and IE8 is Windows 7 only 2633MB vs . 366MB Comment : @coobird : I went looking for these recently 10 2011 and discovered that MS no longer has Win XP SP3 images with IE7 or IE8 or for what it s worth Vista with IE8 . The only IE7 image they have available now is Vista only 4179MB vs . 366MB the IE8 image is Windows 7 only 2633MB vs . 366MB . Better off installing Windows XP Mode on Win7 Pro and making copies for IE7 and IE 8 as suggested by Ian Robinson in the first post : Testing Multiple Versions of IE on One PC - IEBlogs http : blogs.msdn.com b ie archive 2011 02 04 testing-multiple-versions-of-ie-on-one-pc.aspx Comment : You can download the Windows XP image with IE6 and upgrade IE to 7 or 8 from there . See this screenshot of a fresh image : i.imgur.com z1udL.jpg http : i.imgur.com z1udL.jpg", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : I did this on my Windows 7 computer today : .. . .. . 1 . Installed Windows Virtual PC and ran XP Mode .. . 2 . Created two Windows XP images . One with Internet Explorer 6 and one with Internet Explorer 7 . 3 . Now I can run these to browsers from my Windows 7 desktop Just like any other application . No need to open Virtual PC . http : www.microsoft.com windows virtual-pc", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : modern.IE http : www.modern.ie is an undertaking by Microsoft to make cross-browser testing for the Internet Explorer browsers easier . Microsoft has created modern.IE to provide developers and designers with a suite of tools to facilitate IE browser testing . With modern.IE you have two methods of testing your website in IE . First modern.IE offers you three months free usage of the web-based browser testing service BrowserStack http : www.browserstack.com . You just need a Facebook account to login and start testing . The second method modern.IE offers is a virtualization image of each browser from IE 6 to IE 10 http : www.modern.ie en-us virtualization-tools downloads which can be run on virtualization software like VirtualBox Virtual PC Hyper-V or VMWare Player on WIndows Mac or Linux . Additionally modern.IE also provides a tool which scans your web page for common coding problems http : www.modern.ie en-us report and lists them out for you to correct so that they display correctly in all IE versions . Source : modern.IE - Cross-Browser IE Testing Tools Suite http : www.functionn.in 2013 02 modernie-cross-browser-ie-testing-tools.html Comment : That s the new tool in town Comment : This needs more support . This is the best and most current solution Comment : Direct link-to emulator downloads here : modern.ie en-US virtualization-tools downloads http : www.modern.ie en-US virtualization-tools downloads Comment : This is it . The st-graal of compatibility testing yea", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : For windows-users there is Windows XP Mode which allows you to run multiple versions of IE on a Windows 7 Professional Enterprise or Ultimate edition . http : blogs.msdn.com b ie archive 2011 02 04 testing-multiple-versions-of-ie-on-one-pc.aspx Comment : edited as while useful it s not the definitive answer . Not everyone uses windows as their host operating-system .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : There is one elegant way to run IE6 IE7 and IE8 on the same machine called virtual PC . First download virtual PC from Microsoft website here : http : www.microsoft.com downloadS details.aspx FamilyID 04d26402-3199-48a3-afa2-2dc0b40a73b6 displaylang en http : www.microsoft.com downloadS details.aspx FamilyID 04d26402-3199-48a3-afa2-2dc0b40a73b6 displaylang en .. . .. . Then download 3 EXE files with IE6 IE7 and IE8 here : http : www.microsoft.com downloads details.aspx FamilyId 21EABB90-958F-4B64-B5F1-73D0A413C8EF displaylang en .. . .. . Install them on your PC and test your web-applications . Saved me days of looking for similar solutions .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : You can use the new MS Expression Web SuperPreview http : blogs.msdn.com xweb archive 2009 03 18 Microsoft-Expression-Web-SuperPreview-for-Windows-Internet-Explorer.aspx .. . .. . alt text http : www.istartedsomething.com wp-content uploads 2009 03 superpreview1.jpg .. . .. . If you do not want to spend money on MS Expression Web you can download Microsoft Expression Web SuperPreview for Windows Internet Explorer http : www.microsoft.com en-us download details.aspx id 2020 completely free . The only restriction is that after the trial expires you can t compare to non IE browsers . Comment : How does this work with IE8 I don t it on my computer now so if I download it will it show me 6 7 and 8 Comment : I m using it as part of MS Expression not the IE attached version and works very well . A bit slow in my case but I do not have a super-machine Comment : @Martin : Yes if you have IE8 you can view IE7 via compatibility view IE6 and IE8 of course . Comment : Am I right in saying that it just renders the page but you can t actually interact with it as in press buttons enter text etc . That makes it less useful as I thought because you can t actually browse the site as a user would do . Comment : Its not really that super a product to be honest slow very very very very slow and also no interaction .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : Run IE6 IE7 and IE8 on the Same Machine Using Windows 7 XP Mode .. . .. . http : articles.sitepoint.com article ie6-ie7-ie8-win7-xp-mode", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : I use http : www.spoon.net browsers Windows-only . You can run IE8 IE7 IE6 Firefox 3.5 Firefox 3 Firefox 2 Safari 4 Safari 3 Opera 10 Opera 9 Chrome . You just need to install a plugin and then click on the corresponding icon . It will download and run the files needed to run each of the above mentioned browsers . Comment : Microsoft has asked us to remove Internet Explorer from this service . Comment : As of 2011-01-24 there is no IE support : Come back soon for more information on how to use Internet Explorer on Spoon.net Comment : The stand-alone files are still available see Quick browser testing : Internet explorer version 6 7 and 8 http : stackoverflow.com q 4227959 938089 quick-browser-testing-internet-explorer-version-6-7-and-8 . This does not work for Windows 7 though . Comment : @DenilsonS : The Service is back Comment : There is a similar service that does not require plugins and should work on Mac Linux Windows : crossbrowsertesting.com http : crossbrowsertesting.com", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : .02 USD more.. . I ve written a step-by-step blog post http : blog.donavon.com 2009 08 run-ie6-ie7-and-ie8-side-by-side-on.html showing how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 as virtual applications on Windows 7 Ultimate .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : If you have IE8 installed in your machine you can test how your site works in IE7 too . When you are in the page you need to test in IE7 browser Open Tools - developer tools . And then in the menu of that Developer tools dialog box Click on Browser Mode : CURRENT MODE and there you can select 3 options . that is .. . .. . 1 . IE7 .. . 2 . IE8 .. . 3 . IE8 Compatibility Mode", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : I wrote an article about how to test on many browsers without having these browsers installed : 10+ Ways for testing website browser compatibility http : amrelgarhy.com index.php 10-ways-for-testing-website-browser-compatibility Comment : 404 - Not Found", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : Multiple IE http : tredosoft.com Multiple IE Will install ie up to 6 without disrupting current installation i have 7 and it left it as it is . Now I need to find a way to run 8 on top of all that . 6 and 7 already run fine thanks to that little app above . only tested on XP", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : I use Virtual PC to run an instance of windows where I have IE6 installed . It s a bit clumsier than having different versions in the same computer but it s a 100 working IE6 . Multiple IE works fine for most testing but it s lacking that last few percents . Don t work too much to get the page looking right in IE8 it still has some glitches that most likely will be fixed in the final release .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : Firefox has an add-in that will render a webpage the same as-if it was in Internet Explorer 5.5 6 7 8 beta 2 . IE NET Renderer https : addons.mozilla.org en-US firefox-addon 6455 .. . .. . Edit : This looks like it only does screenshots so it may not be very useful . Good for making sure your layout isn t broken but not much else . Comment : @WalterJ89 Thank you for the link . But from what I read IE NET Renderer only does screenshots and so doesn t work for interactive applications . Comment : sorry i did not notice that . may work for quickly checking that your layout isn t broken though .", "Question : Possible Duplicate : .. . Running Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine http : stackoverflow.com questions 574463 running-internet-explorer-6-internet-explorer-7-and-internet-explorer-8-on-the .. . .. . I need recommendations on a good Internet Explorer standalone for Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 . I tried using Tredosoft s Internet Explorer 7 standalone http : tredosoft.com IE7 standalone and MultiIE for Internet Explorer 6 but select elements were being blocked as pop-ups even when the pop-up blocker was turned off in all Internet Explorer browsers 6 7 8 . I also tried the Internet Explorer Collection from Edskes but Internet Explorer 6 and Internet Explorer 7 refuse to let me type in a text box . If someone can provide me with either a solution or an alternative that d be brilliant . Also I m using VMware Fusion http : en.wikipedia.org wiki VMware Fusion to run Windows XP on my Mac . Comment : You ll first have to tell some of us what an IE standalone is . Comment : I suspect he means an IE that isn t tied into Windows . Comment : OK the end result-of what I m trying to do is be able to run IE6 IE7 and IE8 on the same installation of Windows and have them behave as they normally would . I can t use browser shots as I need to be able to test functionality not just layout . I think I might try the Xenocode ones for the short term but I m looking for something that I can run locally . Comment : I won t be going for the Microsoft option as I m hoping for something that continues to work and that I don t have to deal with every three months . It sounds like far too much of an issue . I m going to look into using multiple snapshots or multiple virtual machines unless someone has a better option . .. . Answer : I love this one best one I ve used so far : .. . .. . http : tredosoft.com Multiple IE Comment : Last updated in 2006 .. . Comment : The problem with MultipleIE is that it doesn t work on Win 64bit Vista 7 8 . I used it while on XP and it worked great .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : On my Mac OS X machine I use Sun s VirtualBox http : www.virtualbox.org wich is free . I run 3 WinXP virtual boxes and assign 256K to each . See this tutorial : .. . .. . http : www.10voltmedia.com blog 2008 12 screencast-install-internet-explorer-on-osx-using-virtualbox", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : A colleague of mine recommended Internet Explorer Collection http : finalbuilds.edskes.com iecollection.htm . It appears to work without issues but I m far from a power user . It also supports installing IE 1 through 8 .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : Try http : finalbuilds.edskes.net iecollection.htm . Comment : I have . It did not work on Windows 7 where I tried . Comment : I use this with a Win XP VirtualBox instance . I ve only noticed one thing not consistent with a standalone IE6 experience : occasionally it will not let me enter focus on form fields and when I try it on a real machine running only IE6 there is no problem . Comment : That looks really good . Does anyone have any feedback on it Comment : I use it when I have to test old IEs IE6+ in native mode not the IE8 compatibility-mode but it is buggy under Seven . When I work on a Win7 computer I use a VirtualBox virtual-machine with a Windows XP on it with IE collection . Comment : For windows Xp this is the best answer Been using it for a long time already and it is very nice .", "Question : Like everyone else I need to test my code on Internet Explorer 6 and Internet Explorer 7 . Now Internet Explorer 8 has some great tools for developer which I d like to use . I d also like to start testing my code with Internet Explorer 8 as it will soon be released . The question is : how to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine . So far with Internet Explorer 6 and Internet Explorer 7 I ve been using Multiple IE http : tredosoft.com Multiple IE page 6 . But people have reported see comments on the page linked in the previous sentence issue with Internet Explorer 6 after installing Internet Explorer 8 . Those errors are related to focus in form fields . Running Internet Explorer 7 wouldn t matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine but we still need Internet Explorer 6 . How to run Internet Explorer 6 Internet Explorer 7 and Internet Explorer 8 on the same machine Comment : IE8 Compatibility does not do the same as IE7 . I Have run into many cases where they were different . Comment : @corymatthews that s true but the standalones ARE the real thing and can be installed side-by-side . IE8 normal IE7 standalone and IE6 standalone . Comment : See meta.stackexchange.com questions 9686 http : meta.stackexchange.com questions 9686 what-is-the-most-rampant-duplicate-on-stack-exchange-sites 73989 73989 for a small list of duplicates . Comment : I think simply changing the rendering engine in IE 8 to earlier versions will be sufficient for testing . Comment : see IECollection http : utilu.com IECollection : Runs under many versions of Windows OS . But best under 32-bit version of Microsoft Windows XP Service Pack 3 whether or not in a virtual-machine . Hence best to install a MS Windows XP SP3 Virtual Machine run IECollection inside it . see coding.smashingmagazine.com 2011 09 02 http : coding.smashingmagazine.com 2011 09 02 reliable-cross-browser-testing-part-1-internet-explorer .. . Answer : This does not directly answer your question but have you had a look at Litmus http : litmusapp.com We tend to use it mostly for testing HTML CSS compatibility across multiple browsers supported by Litmus . Comment : @ayaz I didn t know about Litmus but in this case I would need a service to which I can connect with VNC or similar which provides multiple machines on different servers from which I can hit my application ." ] }
[ "yes-answer-long", "yes-answer-short" ]
windows-server-2003
UNK_RELATION
facebook-sdk-4.0@facebook@63
facebook-sdk-4 .0 -- facebook-sdk-4 .0 is latest set of api for @placeholder developers .
{ "confidence": [ 57.92662811279297, 57.65279769897461, 55.6838264465332, 54.87467956542969, 54.32925033569336, 52.843788146972656, 52.49873352050781, 50.892478942871094, 50.08733367919922, 49.12763595581055, 49.04058074951172, 48.804351806640625, 48.033084869384766, 47.66949462890625, 46.99639129638672, 46.897090911865234, 46.897090911865234, 46.660858154296875, 46.582054138183594, 46.582054138183594, 46.493194580078125, 46.24464797973633, 46.24464797973633, 46.06010437011719, 45.72343444824219, 45.605552673339844, 45.52779769897461, 45.49490737915039, 45.38336181640625, 44.7818489074707, 44.56582260131836, 44.48107147216797, 44.438560485839844, 44.420555114746094, 44.38267517089844, 44.25623321533203, 44.101158142089844, 44.101158142089844, 44.101158142089844, 44.09209442138672, 44.069244384765625, 43.758670806884766, 43.22062683105469, 43.15327072143555, 43.01338195800781, 42.85786056518555, 42.77738571166992, 42.77738571166992, 42.77738571166992, 42.69263458251953, 42.69263458251953, 42.267433166503906, 41.92414855957031, 41.894283294677734, 41.73347854614258, 41.63068771362305, 41.58674240112305, 41.58674240112305, 41.58674240112305, 41.58674240112305, 41.31468200683594, 41.13780212402344, 40.940372467041016, 40.940372467041016, 40.940372467041016, 40.940372467041016, 40.69463348388672, 40.63389587402344, 40.63389587402344, 40.63389587402344, 40.63389587402344, 40.54914093017578, 39.53215026855469, 39.37986755371094, 38.79983901977539, 38.75497817993164, 38.42595672607422, 38.16706848144531, 38.11948013305664, 38.11948013305664, 38.11948013305664, 38.11948013305664, 38.11948013305664, 38.11948013305664, 38.10700225830078, 38.10700225830078, 38.10700225830078, 38.10700225830078, 38.10700225830078, 38.10700225830078, 38.10700225830078, 38.03472900390625, 37.98878479003906, 37.98878479003906, 37.98878479003906, 37.98878479003906, 37.88335037231445, 37.882728576660156, 37.67165756225586, 37.47377395629883 ], "content": [ "If you want to import facebook-sdk-4.0 to eclipse follow the steps in this Android Facebook SDK 4 in Eclipse http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse", "Exact duplicate of Android Facebook SDK 4 in Eclipse http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse", "I m using Facebook SDK for Android version 4 .", "How to re-request permissions in Facebook SDK 4.0 http : stackoverflow.com questions 29602353 how-to-re-request-permissions-in-facebook-sdk-4-0 .. . .. . I got permissions in this code .", "How to do this with the latest Facebook sdk", "Download the latest Facebook SDK for iOS .. . .. . Download the appropriate version of the Facebook SDK for your app .", "there is not any facebook sdk for eclipse .", "there is no SessionLoginBehavior anymore in sdk 4 Follow their documentation and re implement facebook-login", "I have downloaded facebook sdk from github github.com facebook facebook-android-sdk https : github.com facebook facebook-android-sdk the sub folder libs has all necessary extra libraries .", "the latest sdk facebook make a change its shared to 3 new sdk login core share so developers if they want to perform just a login with fb they dont need to download all the sdk .", "The latest Facebook SDK 4.0 is targeted at Android Studio and gradle .", "Session is removed in new facebook sdk .", "I have an android app that uses facebook SDK .", "you don t need gradle for facebook sdk : just download the sdk and import the facebook module to your project", "I gone through the This Link https : developers.facebook.com docs sharing android .. . .. . I downloaded the latest SDK from facebook site as facebook-android-sdk-4.10.1 .", "You can just download the latest SDK from facebook website .", "Dear i am using Latest Sdk of Facebook For iOS", "If your using the facebook sdk only", "I am having issue while updating Facebook SDK 3 to 4 .. . .. . when I add the framework it was added successfully .", "When adding Facebook SDK Version 4 files to the project make sure to uncheck Copy into destination group folder .", "I am working on facebook integration in app using eclipse IDE.so can any body suggest me latest facebook sdk download link.so i can import sdk into eclipse .", "I have the Facebook SDK in my app .", "I am using the facebook-login SDK .", "I have integrated latest Facebook android sdk Sdk 4.0 .", "Updated to Parse SDK 1.7.1 with Bolts 1.1.4 and using the new and latest Facebook SDK .", "Have you followed the installation instructions for the Facebook Ads PHP API here : github.com facebook facebook-php-ads-sdk https : github.com facebook facebook-php-ads-sdk", "I was able to share image or text to the facebook-wall using facebook sdk .", "Try like this : .. . .. . Intialise the facebook sdk before setcontentview method .. . .. . Refer here for more : http : coderzpassion.com android-using-facebook-login-application-using-latest-facebook-sdk", "1 Authentication in Developer.facebook and generate Facebook Id .. . .. . 2 Set Bitcode : No From Build Settings .. . .. . 3 Set up Plist File .. . .. . 4 Download 4 Sdk Framework like", "i have the same problem and this must help .. . .. . Facebook App Invites iOS SDK v4.0 configuration and states http : stackoverflow.com questions 29383395 facebook-app-invites-ios-sdk-v4-0-configuration-and-states .. . .. . 1 .", "I m using Facebook SDK to allow users to login and share in my app .", "I have an ideas that to modify AndroidManifest inside facebook-android-sdk-4.13.1.zip file and insert it into SDK .", "Using Intent is not available now so I need to use facebook sdk 4.X .", "I belive there is no such thing but take a look at stackoverflow.com questions 29379890 http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse", "I m updating my android app to the latest Facebook SDK 4.0.0 .", "Import to Eclipse .. . .. . First of all download the latest version https : developers.facebook.com resources facebook-android-sdk-current.zip of SDK on current moment it is 4.0 .", "For which i need to use Facebook sdk .", "Also It brings other errors with my facebook sdk .", "The newest facebook SDK does not use the Session class .", "@Try me34 so it s either changing my custom button to Facebook Login Button and use the SDK v.4+ or change to the latest SDK v.3 and keep the current code", "I have a social media app that allows to share links on Facebook using the Facebook SDK 4 .", "Related posts : .. . .. . Custom Facebook login button image in Facebook Android SDK 3.5 http : stackoverflow.com questions 18868594 custom-facebook-login-button-image-in-facebook-android-sdk-3-5 .. . 3 .", "this is done automatically by the facebook SDK", "Opened the Facebook SDK 3.x LoginButton code https : github.com facebook facebook-android-sdk blob 50e8000d765abca3417744eb8cadb2b4c002862c facebook src com facebook widget LoginButton.java and saw how the button was styled there : .. . .. . this.setBackgroundResource R.drawable.com facebook button blue .. . this.setCompoundDrawablesWithIntrinsicBounds .. . R.drawable.com facebook inverse icon 0 0 0 .. . this.setCompoundDrawablePadding getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview compound drawable padding .. . this.setPadding getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding left .. . getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding top .. . getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding right .. . getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding bottom .. . .. . .. . 2 .", "As of facebook-ios-sdk 4.10.0 there is still no fallback if there is no native Facebook app installed .", "For Facebook SDK version 4.X In your activity or fragment generally on onCreate method : .. . .. . And also dont forget to pass facebook activity result to manager :", "I ve just upgraded my Facebook SDK to 4.0 for my iOS app .", "you can t use Session or UiLifecycleHelper with new facebook sdk .", "Now add it to the facebook SDK as external lib as we do it before .", "I want to import Facebook sdk for my app which has a min-sdk of 14 .", "You are using newest SDK if you want to login through the facebook app that you should use older SDK .", "I have tried also How to get user likes from Facebook with Android sdk 3.0 http : stackoverflow.com questions 13293233 how-to-get-user-likes-from-facebook-with-android-sdk-3-0 .", "Using Android facebook SDK 4.X Login with faceboook Default Login button .. . .. . In Mainifest : -", "Facebook didn t notified the developers or in their changelogs that LoginButton class moved to sub folder .", "The new Facebook SDK for Android v4.0 https : github.com facebook facebook-android-sdk that was released recently caused strange behavior for a customized LoginButton https : developers.facebook.com docs reference android current class LoginButton I m using .", "Either use the JavaScript API and let the client do the requests to the FB API or to use the Facebook .Net SDK .", "This behavior is defined by Facebook and their SDK and not a Parse issue really .", "Consider the Facebook SDK under constant development .", ".. . Now the SDK automatically checks for the native Facebook app .", "I ve integrated the Facebook SDK for android for an app .", "Reason is Facebook SDK profile caching .", "I have run into an issue using the latest Facebook SDK 4.6 on iOS 9 .", "And the error I am getting is not from Facebook SDK rather it s PFFacebookUtils which is related with Parse not Facebook .", "Maybe later Facebook totally deprecates my entire Facebook SDK 3.19.1 but for today the day has been saved .", "But can i share image with text to a specific facebook-page using facebook sdk using android-studio", "https : github.com CocoaPods Specs blob master Specs Facebook-iOS-SDK 4.0 Facebook-iOS-SDK.podspec.json", "enter image description here http : i.stack.imgur.com W61zd.png .. . .. . But according to the Link http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse i need to select Facebook which is not there .", "Stuck on posting a picture to FB using Facebook SDK v4 and ParseHelperv4 in Swift .", "I am logging in using facebook SDK and everything is properly setup .", "I update my Xcode to 7 and Facebook to 4.6 sdk .", "But this was not found in facebook-android-sdk-3.17.1 there we have only com.facebook.widget.LoginButton available .", "Yes i was - i hope by now the facebook sdk and parse sdk documentation is upadted .", "ps : this question is identical to this one http : stackoverflow.com questions 29770536 how-to-re-ask-declined-permissions-in-facebook-sdk-4-0-android but the solution doesn t work in my case I ve tried it too .", "First I open Facebook Developers page and I create new App .", "For this I followed the steps from facebook developer guide and added the sdk to my project : .. . .. . From the Facebook SDK folder drag the folder FBSDKCoreKit.Framework FBSDKLoginKit.Framework FBSDKShareKit.Framework into your Xcode Projects Framework folder .", "For that purpose I am using Facebook SDK 4.0.1 .", "I want to share the caption image and location to Facebook the same as Instagram doing it using Facebook iOS SDK .", "enter image description here http : i.stack.imgur.com tM6hW.png .. . .. . Also don t forget to set in the facebook SDK project Properties - Android that it is a Library .", "I am fed up of this documentation of Facebook SDK 4.0 worst doc .", "I think it is not possible with share intent for that you whould use the facebook sdk", "I m using the Facebook v4 SDK in my iOS app .", "Opening the Facebook app is the preferred scenario for authenticating with your app according to the SDK .", "I am working with Facebook SDK 4.4.0 in my Swift App .", "I am using the Python facebook-sdk client library .", "some progress : .. . .. . I have found that facebook sdk supports auth type : rerequest but how to pass it to auth0... .", "stackoverflow.com questions 29081584 http : stackoverflow.com questions 29081584 facebook-sdk-and-sharing-a-play-store-app-link-with-sharedialog-issue", "With me just download new version of Facebook SDK then remove the old and add new fixed the problem .", "Are there some way to import the new Facebook SDK for Android to Eclipse without Gradle or Maven something like the past way", "Fixing errors .. . .. . After importing we will see that the whole facebook SDK package are in errors : .. . .. .", "Go to your Android app project Properties - Android - Library - Add and choose facebook SDK .", "Well thanks after importing facebook sdk project I bypassed many errors by applying those steps .", "The trick which worked for me is to initialise Google Sign-In SDK before the Facebook SDK .", "As far as i know the current Facebook SDK 4.10.1 is custom made to be extracted to android-studio thats why you cannot see the Facebook folder .", "If you try to look in your file explorer you would see facebook-android-sdk-4.10.1.aar inside the facebook folder .", "I was using an old version of Facebook Android SDK I think v 3.0.1 for quite a while until I got into a problem Loging In through Facebook .", "If your app sends the Facebook token to a server that generate a JWT for for instance Facebook SDK still persists the fbToken FBSDKAccessToken.currentAccessToken persisted unless it s told to remove it .", "the solution below but be careful because the email may be empty if the user is logged via his phone-number Visit stackoverflow.com questions 29517667 http : stackoverflow.com questions 29517667 android-facebook-sdk-4-x-how-to-get-email-address-and-facebook-access-token-to and stackoverflow.com questions 29493486 http : stackoverflow.com questions 29493486 create-a-request-in-facebook-sdk-4-android", "Using the latest unity facebook sdk v7.8.0 XCode is the latest version download three days ago appear the following error on iphone commissioning time : .. . .. . Help Me", "I am developing an android application I can fetch Firstname Lastname email of user using facebook sdk 4.But I am unable to get date-of-birth address.I have tried setting permission to the login button.I don t know is there any configuration missing on Facebook API .", "My question is how do I make the button appear in SDK 4.x like it did in SDK 3.x" ] }
{ "confidence": [ 64.43629455566406, 61.35353088378906, 59.6815185546875, 59.64881134033203, 59.61888885498047, 59.59156036376953, 57.90769958496094, 57.84413146972656, 56.72746658325195, 56.61711883544922, 56.15876007080078, 55.37892150878906, 54.855552673339844, 53.73610305786133, 53.222190856933594, 52.228553771972656, 52.043487548828125, 51.581298828125, 51.42391586303711, 51.31550598144531 ], "content": [ "Question : I am working on facebook integration in app using eclipse IDE.so can any body suggest me latest facebook sdk download link.so i can import sdk into eclipse . Your answer would be appreciated Comment : developers.facebook.com docs android downloads https : developers.facebook.com docs android downloads check this url you get the latest facebook sdks . .. . Answer : If you want to import facebook-sdk-4.0 to eclipse follow the steps in this Android Facebook SDK 4 in Eclipse http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse", "Question : I am working on facebook integration in app using eclipse IDE.so can any body suggest me latest facebook sdk download link.so i can import sdk into eclipse . Your answer would be appreciated Comment : developers.facebook.com docs android downloads https : developers.facebook.com docs android downloads check this url you get the latest facebook sdks . .. . Answer : You can download latest SDK here https : developers.facebook.com docs android downloads . Comment : there is not any facebook sdk for eclipse . Comment : can you give me link for facebooksdk-eclipse Comment : I belive there is no such thing but take a look at stackoverflow.com questions 29379890 http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse Comment : I tried but it is not working . Comment : ok you ll need to be more specific update your question.. .", "Question : I am trying integrate Facebook login using Parse but the following code : var FBSession PFFacebookUtils.session gives the error .. . .. . Type PFFacebookUtils has no member session .. . .. . I am using the latest Parse SDK and Facebook SDKs is session method deprecated or what thanx in advance . .. . Answer : The latest API for PFFacebookUtils https : parse.com docs ios api Classes PFFacebookUtils.html doesn t show a session member although older documentation does show it http : cocoadocs.org docsets ParseFacebookUtils 1.7.2 Classes PFFacebookUtils.html and a dramatically different set of API s .. . .. . And ultimately what happened was that Parse replaced FBSession with FBSDKLoginManager as described in this changelog from 3.x to 4.x https : developers.facebook.com docs ios change-log-4.x . They do recommend reading the Upgrade the iOS SDK from 3.x to 4.x document https : developers.facebook.com docs ios upgrading-4.x .", "Question : I checked below . It is very similar but it is not same my problem . How to re-request permissions in Facebook SDK 4.0 http : stackoverflow.com questions 29602353 how-to-re-request-permissions-in-facebook-sdk-4-0 .. . .. . I got permissions in this code . If a user reject user friends permission I can t re-ask user friends permissions above code . Because automatically rejected on next authentication . What actions should I do to get user friends programmatically .. . Answer : In Manifest File add these lines", "Question : I am using the facebook-login SDK . It is working perfectly in IOS 7 8 and 9 . But if phone have the facebook app login verification is open the app in iOS 7 AND 8 . BUT IOS 9 not open the facebook app . It is open the browser Web page and doing the verification . What is the reason Anybody have any idea Edited Comment : have you set FBSDKLoginBehaviorWeb Comment : It is working in iOS 7 and iOS 8 . Only iOS 9 open the web page Comment : so you won t open in to safari right .. . Answer : This is by design and is using SFSafariViewController on iOS 9 . As noted in the v4.6 changelog https : developers.facebook.com docs ios change-log-4.x .. . .. . The SDK supports various iOS 9 features including Bitcode . In addition the SDK dialogs such as Login Like Share Dialogs automatically determine the best UI based on the device including SFSafariViewController instead of Safari .. . .. . We know this may be confusing at first but we definitely have the same goal as our developers to make sure the users get the best experience on iOS 9 and have a good Login experience . On iOS 8 the login will still prefer an app switch to the Facebook app .", "Question : The new Facebook SDK for Android v4.0 https : github.com facebook facebook-android-sdk that was released recently caused strange behavior for a customized LoginButton https : developers.facebook.com docs reference android current class LoginButton I m using . Below is a comparison of how the same XML is rendered in different SDK versions . The problem seems to be that the FB icon in SDK 4.x doesn t stretch properly to fit a custom-sized button and at 4.0.1 the android : layout height property is ignored altogether . My question is how do I make the button appear in SDK 4.x like it did in SDK 3.x Both XML and Java solutions are perfectly acceptable . XML for SDK 3.x : .. . .. . How it looks on SDK 3.x screenshot taken on a OnePlus One running CM11S : XML rendering when running with SDK v3.x http : i.stack.imgur.com 1uHHY.png .. . .. . XML for SDK 4.x the button s package was renamed + I had to change the width font a bit to match the g+ button : .. . .. . How it looks on SDK 4.0 Screenshot taken on a Genymotion Nexus 5 running unmodified 4.4.4 : enter image description here http : i.stack.imgur.com ZD2KP.png .. . .. . How it looks on SDK 4.0.1 Same Genymotion Nexus 5 : enter image description here http : i.stack.imgur.com XNXCs.png .. . .. . Additional information .. . .. . 1 . Excerpt from the 4.0 - 4.0.1 SDK change log https : developers.facebook.com docs android change-log-4.x ver4 0 1 : .. . .. . Login button is updated to properly measure its size . 2 . Related posts : .. . .. . Custom Facebook login button image in Facebook Android SDK 3.5 http : stackoverflow.com questions 18868594 custom-facebook-login-button-image-in-facebook-android-sdk-3-5 .. . 3 . To support different screen sizes above the login buttons I have a ViewPagerIndicator https : github.com JakeWharton ViewPagerIndicator and a ViewPager http : developer.android.com reference android support v4 view ViewPager.html that is configured to take up all available vertical space which remains after positioning elements with defined height . .. . Answer : I managed to get the desired result by following the following steps : .. . .. . 1 . Opened the Facebook SDK 3.x LoginButton code https : github.com facebook facebook-android-sdk blob 50e8000d765abca3417744eb8cadb2b4c002862c facebook src com facebook widget LoginButton.java and saw how the button was styled there : .. . .. . this.setBackgroundResource R.drawable.com facebook button blue .. . this.setCompoundDrawablesWithIntrinsicBounds .. . R.drawable.com facebook inverse icon 0 0 0 .. . this.setCompoundDrawablePadding getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview compound drawable padding .. . this.setPadding getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding left .. . getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding top .. . getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding right .. . getResources .getDimensionPixelSize .. . R.dimen.com facebook loginview padding bottom .. . .. . .. . 2 . Based on the solution presented in this answer http : stackoverflow.com a 7538641 3372061 I changed the button parameters during onPostCreate as follows : .. . .. . float fbIconScale 1.45F .. . Drawable drawable hostActivity.getResources .getDrawable .. . com.facebook.R.drawable.com facebook button icon .. . drawable.setBounds 0 0 int drawable.getIntrinsicWidth fbIconScale .. . int drawable.getIntrinsicHeight fbIconScale .. . authButton.setCompoundDrawables drawable null null null .. . authButton.setCompoundDrawablePadding hostActivity.getResources . getDimensionPixelSize R.dimen.fb margin override textpadding .. . authButton.setPadding .. . hostActivity.getResources .getDimensionPixelSize .. . R.dimen.fb margin override lr .. . hostActivity.getResources .getDimensionPixelSize .. . R.dimen.fb margin override top .. . 0 .. . hostActivity.getResources .getDimensionPixelSize .. . R.dimen.fb margin override bottom .. . .. . .. . Where my custom dimensions are as follows : .. . .. . dimen name fb margin override top 13dp dimen .. . dimen name fb margin override bottom 13dp dimen .. . --The next value changes the margin between the FB icon and the left border : -- .. . dimen name fb margin override lr 10dp dimen .. . --The next value changes the margin between the FB icon and the login text : -- .. . dimen name fb margin override textpadding 17dp dimen .. . .. . .. . This results in the desired layout : .. . .. . The desired layout : D http : i.stack.imgur.com JRXED.png Comment : Nice Works out of the box Comment : Thank you . It works nicely for me .", "Question : I am developing an application in which i want to share some content to Facebook . For which i need to use Facebook sdk . I gone through the This Link https : developers.facebook.com docs sharing android .. . .. . I downloaded the latest SDK from facebook site as facebook-android-sdk-4.10.1 . According to the steps i am tring to import that but not able to do that . The import is enter image description here http : i.stack.imgur.com W61zd.png .. . .. . But according to the Link http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse i need to select Facebook which is not there . What i am missing or where i am wrong please suggest me . Comment : If you down vote question no problem But atleast let me know why it gets down voted . Comment : May be this is a repetitive question and a silly one . Comment : Exact duplicate of Android Facebook SDK 4 in Eclipse http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse Comment : @Aaron Gillion Answer on the above link is not working . Thats why i posted question . .. . Answer : Follow this answer http : stackoverflow.com a 29400310 3820010 but use the 4.5 or 4.6 SDK . Newer versions won t work with that method .", "Question : null .. . Answer : I was using an old version of Facebook Android SDK I think v 3.0.1 for quite a while until I got into a problem Loging In through Facebook . I was getting this error in the Stack Trace : .. . .. . If I Login to Facebook through Android Lollipop Device that has Facebook Apps installed in it . I currently avoiding this issue by changing the SessionLoginBehavior using this code currently .. . .. . If I changed the Facebook SDK to v . 4.1.1 I got a lot of error because a lot of the import from the Facebook SDK isn t there anymore int v 4.1.1 .. . .. . What should I do to fix this issue without changing the SessionLoginBehavior should I just stay with the current fix implementation or else Comment : there is no SessionLoginBehavior anymore in sdk 4 Follow their documentation and re implement facebook-login Comment : The newest facebook SDK does not use the Session class . If you want to use the newest SDK you have to handle the providen callbacks . Here is a full example of the newest SDK http : stackoverflow.com questions 29605236 cant-get-location-and-email-using-facebook-api 29605975 29605975 . Comment : @Try me34 so it s either changing my custom button to Facebook Login Button and use the SDK v.4+ or change to the latest SDK v.3 and keep the current code And do you have any idea about the crash log if I try to login on Lollipop device with Facebook apps installed on it Comment : I would highly suggest you update to the new SDK . At this moment Lolipop is very buggy so I am assuming that they will fix it asap . I am not aware of any workaround atm . Keep in mind that if you stick with the older SDK you will most likely be in an uncomfortable position in the future possibly cause of unsupportable SDK or so. .", "Question : I checked below . It is very similar but it is not same my problem . How to re-request permissions in Facebook SDK 4.0 http : stackoverflow.com questions 29602353 how-to-re-request-permissions-in-facebook-sdk-4-0 .. . .. . I got permissions in this code . If a user reject user friends permission I can t re-ask user friends permissions above code . Because automatically rejected on next authentication . What actions should I do to get user friends programmatically .. . Answer : its simple just use .. . .. . and do not forget to initialize fb SDK before you call setContentView R.layout.main i.e Comment : thank you . It works but I got other problems .. . so I separated 2nd ask and show message on 1st complete . Comment : Is not working with email permission . The request dialog doesn t show it still returns the previous result", "Question : I am using the following code . I want the user s Date Of Birth Email and Gender . Please help . How to retrieve those data This is my onViewCreated inside the Fragment . This is my Callback Method . Comment : developers.facebook.com docs android graph userdata-step3 https : developers.facebook.com docs android graph userdata-step3 Comment : Hi @Sriyank please help me if you resolved your issue . i want to get the user info from facebook signin fragment after login completed want to go next activity please tell me how can i do that Comment : the solution below but be careful because the email may be empty if the user is logged via his phone-number Visit stackoverflow.com questions 29517667 http : stackoverflow.com questions 29517667 android-facebook-sdk-4-x-how-to-get-email-address-and-facebook-access-token-to and stackoverflow.com questions 29493486 http : stackoverflow.com questions 29493486 create-a-request-in-facebook-sdk-4-android .. . Answer : That s not the right way to set the permissions as you are overwriting them with each method call . Replace this : .. . .. . With the following as the method setReadPermissions accepts an ArrayList : .. . .. . Also here is how to query extra data GraphRequest : .. . .. . EDIT : .. . .. . One possible problem is that Facebook assumes that your email is invalid . To test it use the Graph API Explorer https : developers.facebook.com tools explorer method GET path me 3Ffields 3Did 2Cname 2Cemail and try to get it . If even there you can t get your email change it in your profile settings and try again . This approach resolved this issue for some developers commenting my answer . Comment : It is working fine except email How to get email Comment : Hey @Schwertfisch can you show how to use object.getString email it would be very helpful for me : Comment : why do I get No value for email error despite I already set loginButton.setReadPermissions Arrays.asList public profile email Comment : not working for me I am not getting the email Comment : I just have to say That Facebook Docs are so poor it is a shame we need to find out how to do it here .", "Question : I am developing an application in which i want to share some content to Facebook . For which i need to use Facebook sdk . I gone through the This Link https : developers.facebook.com docs sharing android .. . .. . I downloaded the latest SDK from facebook site as facebook-android-sdk-4.10.1 . According to the steps i am tring to import that but not able to do that . The import is enter image description here http : i.stack.imgur.com W61zd.png .. . .. . But according to the Link http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse i need to select Facebook which is not there . What i am missing or where i am wrong please suggest me . Comment : If you down vote question no problem But atleast let me know why it gets down voted . Comment : May be this is a repetitive question and a silly one . Comment : Exact duplicate of Android Facebook SDK 4 in Eclipse http : stackoverflow.com questions 29379890 android-facebook-sdk-4-in-eclipse Comment : @Aaron Gillion Answer on the above link is not working . Thats why i posted question . .. . Answer : This is also my problem . As far as i know the current Facebook SDK 4.10.1 is custom made to be extracted to android-studio thats why you cannot see the Facebook folder . If you try to look in your file explorer you would see facebook-android-sdk-4.10.1.aar inside the facebook folder . Try searching ways to convert it to jar aar- jar so it can be read by eclipse .", "Question : The new Facebook SDK for Android v4.0 https : github.com facebook facebook-android-sdk that was released recently caused strange behavior for a customized LoginButton https : developers.facebook.com docs reference android current class LoginButton I m using . Below is a comparison of how the same XML is rendered in different SDK versions . The problem seems to be that the FB icon in SDK 4.x doesn t stretch properly to fit a custom-sized button and at 4.0.1 the android : layout height property is ignored altogether . My question is how do I make the button appear in SDK 4.x like it did in SDK 3.x Both XML and Java solutions are perfectly acceptable . XML for SDK 3.x : .. . .. . How it looks on SDK 3.x screenshot taken on a OnePlus One running CM11S : XML rendering when running with SDK v3.x http : i.stack.imgur.com 1uHHY.png .. . .. . XML for SDK 4.x the button s package was renamed + I had to change the width font a bit to match the g+ button : .. . .. . How it looks on SDK 4.0 Screenshot taken on a Genymotion Nexus 5 running unmodified 4.4.4 : enter image description here http : i.stack.imgur.com ZD2KP.png .. . .. . How it looks on SDK 4.0.1 Same Genymotion Nexus 5 : enter image description here http : i.stack.imgur.com XNXCs.png .. . .. . Additional information .. . .. . 1 . Excerpt from the 4.0 - 4.0.1 SDK change log https : developers.facebook.com docs android change-log-4.x ver4 0 1 : .. . .. . Login button is updated to properly measure its size . 2 . Related posts : .. . .. . Custom Facebook login button image in Facebook Android SDK 3.5 http : stackoverflow.com questions 18868594 custom-facebook-login-button-image-in-facebook-android-sdk-3-5 .. . 3 . To support different screen sizes above the login buttons I have a ViewPagerIndicator https : github.com JakeWharton ViewPagerIndicator and a ViewPager http : developer.android.com reference android support v4 view ViewPager.html that is configured to take up all available vertical space which remains after positioning elements with defined height . .. . Answer : i faced the same issue and i solved it by setting the padding and the drawables in java code like this : .. . .. . or if you use your image as drawable .. . .. . I believe the OnPostCreate method is not required . Comment : Hi and thanks for the answer . I just tested this code and the drawable doesn t seem to scale + it is also stuck to the left border of the button . Oh and my IDE seems to like authButton.setCompoundDrawablesWithIntrinsicBounds drawable null null null better 0 instead of null generates a lint error tested on API 22 . Comment : Hi the method setCompoundDrawablesWithIntrinsicBounds accepts resource ids or drawables in my example i was referring to resource ids maybe i have to update my answer . To scale the drawable you have to set the padding as you do in your answer . i will update my answer", "Question : im working on an android project an i want to put a Facebook Login feature i added the Facebook sdk Correctly but i could not initialize LoginButton .. . .. . here is my AppManifest.xml : .. . .. . I specified the App id in Strings.xml . Thanks for help Comment : Have you added a library probably a jar file to your project Comment : Yes i added Facebook properly PS : im working on Android Studio Comment : Well the error suggests that the library is not actually there . Comment : Same error I cannot inflate the layout because of this . Have you come across the solution yet Comment : Did anyone figure this out .. . Answer : I checked on latest SDK4.0.1 in that com.facebook.login.widget.LoginButton is available . But this was not found in facebook-android-sdk-3.17.1 there we have only com.facebook.widget.LoginButton available . Facebook didn t notified the developers or in their changelogs that LoginButton class moved to sub folder . Very strange why facebook not updating correctly. . Even the doc for Android login also wrong https : developers.facebook.com docs facebook-login android v2.0 http : FB 20login 20using 20Android Comment : Facebook Documentation sucks mate Comment : it does in deed", "Question : I checked below . It is very similar but it is not same my problem . How to re-request permissions in Facebook SDK 4.0 http : stackoverflow.com questions 29602353 how-to-re-request-permissions-in-facebook-sdk-4-0 .. . .. . I got permissions in this code . If a user reject user friends permission I can t re-ask user friends permissions above code . Because automatically rejected on next authentication . What actions should I do to get user friends programmatically .. . Answer : Solution by user2403096 works well but I ve encountered some problem and spent some time to resolve it . If User revoked some permission through console or somehow else and you need it in your app during login e.g . I need email permission I use code by user2403096 : .. . .. . performGraprhRequest just obtains profile info with GraphRequest.newMeRequest token callback . So when you re-requesting permission there will be callback into onActivityResult but onSuccess onCancel or onError will NOT be called again . My approach is : .. . .. . If you login into facebook and enter your credentials - onActivityResult will be processed by CallbackManager and will return true . CallbackManager under the hood checks whether your current AccessToken null or not and if you already logged in and then you re-ask permission - you will have token and callbackManager.onActivityResult return false . Then you can invoke performGraphRequest and login user into your app .", "Question : The new Facebook SDK for Android v4.0 https : github.com facebook facebook-android-sdk that was released recently caused strange behavior for a customized LoginButton https : developers.facebook.com docs reference android current class LoginButton I m using . Below is a comparison of how the same XML is rendered in different SDK versions . The problem seems to be that the FB icon in SDK 4.x doesn t stretch properly to fit a custom-sized button and at 4.0.1 the android : layout height property is ignored altogether . My question is how do I make the button appear in SDK 4.x like it did in SDK 3.x Both XML and Java solutions are perfectly acceptable . XML for SDK 3.x : .. . .. . How it looks on SDK 3.x screenshot taken on a OnePlus One running CM11S : XML rendering when running with SDK v3.x http : i.stack.imgur.com 1uHHY.png .. . .. . XML for SDK 4.x the button s package was renamed + I had to change the width font a bit to match the g+ button : .. . .. . How it looks on SDK 4.0 Screenshot taken on a Genymotion Nexus 5 running unmodified 4.4.4 : enter image description here http : i.stack.imgur.com ZD2KP.png .. . .. . How it looks on SDK 4.0.1 Same Genymotion Nexus 5 : enter image description here http : i.stack.imgur.com XNXCs.png .. . .. . Additional information .. . .. . 1 . Excerpt from the 4.0 - 4.0.1 SDK change log https : developers.facebook.com docs android change-log-4.x ver4 0 1 : .. . .. . Login button is updated to properly measure its size . 2 . Related posts : .. . .. . Custom Facebook login button image in Facebook Android SDK 3.5 http : stackoverflow.com questions 18868594 custom-facebook-login-button-image-in-facebook-android-sdk-3-5 .. . 3 . To support different screen sizes above the login buttons I have a ViewPagerIndicator https : github.com JakeWharton ViewPagerIndicator and a ViewPager http : developer.android.com reference android support v4 view ViewPager.html that is configured to take up all available vertical space which remains after positioning elements with defined height . .. . Answer : People u need only set paddingTop and paddingBottom values . Comment : This has already been suggested http : stackoverflow.com a 29896231 3372061 .. . Comment : Us people also know how to read and not suggest things that have already been suggested . Comment : Was good enough for my problem : padding did not work but paddingTop worked", "Question : I ve upgraded to ParseFacebookUtilsV4 and I ve updated my login code as such : .. . .. . However now my app switches to Facebook app for a brief moment and comes back . It uses the native Facebook app to login while there is still a valid iOS Facebook account in Settings . How can I make PFFacebookUtils v4 use the system Facebook account when available and only fall back to Facebook app when a system account is not available .. . Answer : Opening the Facebook app is the preferred scenario for authenticating with your app according to the SDK . This behavior is defined by Facebook and their SDK and not a Parse issue really . Unless you want to add a whole bunch of custom code to interface with iOS system account directly you d have to live with the app opening and returning to your app . Thats how everyone does it .. . I know kind of lame answer .. . .. . If you want to try yourself start looking into Comment : Uhm it wasn t the case before updating to the latest version . Now I m getting random app switches to Facebook when using my app which wasn t the case before the update . Comment : So Then just revert your upgrade . What do you expect to happen when an app dependency changes it s behavior Check your code for what you are doing whenever the app switches to the Facebook app and back . My hunch is that you are requesting permissions or try to use a permission you have not requested or the like . Consider the Facebook SDK under constant development . As such the Parse SDK needs to be updated on a regular basis . Again that is nothing Parse s fault . Comment : Isn t there a way to override the default behavior Comment : Follow the documentation for parse.com docs ios api Classes PFFacebookUtils.html https : parse.com docs ios api Classes PFFacebookUtils.html and Facebook SDK Change log developers.facebook.com docs ios change-log-4.x https : developers.facebook.com docs ios change-log-4.x and you will find The SDK dialogs such as Login Like Share Dialogs automatically determine the best UI based on the device . So no dice unless you feel up to removing your dependency to the Parse convenience methods.. .", "Question : The new Facebook SDK for Android v4.0 https : github.com facebook facebook-android-sdk that was released recently caused strange behavior for a customized LoginButton https : developers.facebook.com docs reference android current class LoginButton I m using . Below is a comparison of how the same XML is rendered in different SDK versions . The problem seems to be that the FB icon in SDK 4.x doesn t stretch properly to fit a custom-sized button and at 4.0.1 the android : layout height property is ignored altogether . My question is how do I make the button appear in SDK 4.x like it did in SDK 3.x Both XML and Java solutions are perfectly acceptable . XML for SDK 3.x : .. . .. . How it looks on SDK 3.x screenshot taken on a OnePlus One running CM11S : XML rendering when running with SDK v3.x http : i.stack.imgur.com 1uHHY.png .. . .. . XML for SDK 4.x the button s package was renamed + I had to change the width font a bit to match the g+ button : .. . .. . How it looks on SDK 4.0 Screenshot taken on a Genymotion Nexus 5 running unmodified 4.4.4 : enter image description here http : i.stack.imgur.com ZD2KP.png .. . .. . How it looks on SDK 4.0.1 Same Genymotion Nexus 5 : enter image description here http : i.stack.imgur.com XNXCs.png .. . .. . Additional information .. . .. . 1 . Excerpt from the 4.0 - 4.0.1 SDK change log https : developers.facebook.com docs android change-log-4.x ver4 0 1 : .. . .. . Login button is updated to properly measure its size . 2 . Related posts : .. . .. . Custom Facebook login button image in Facebook Android SDK 3.5 http : stackoverflow.com questions 18868594 custom-facebook-login-button-image-in-facebook-android-sdk-3-5 .. . 3 . To support different screen sizes above the login buttons I have a ViewPagerIndicator https : github.com JakeWharton ViewPagerIndicator and a ViewPager http : developer.android.com reference android support v4 view ViewPager.html that is configured to take up all available vertical space which remains after positioning elements with defined height . .. . Answer : Height of LoginButton is related to his paddings and text-size : .. . .. . So if you want to change its height via xml file use android : padding and android : textSize properties or create style for it : Comment : Changing the padding in XML is definitely a good tip however this answer is incomplete - it doesn t address the FB icon scale which remains tiny nor does it facilitate the shifting of the text within the button to be able to align it with the g+ text below . Comment : yeah bad answer", "Question : Is there any tutorial or example showing how to login using own Button using Facebook SDK 4.0 in Android I am not getting anywhere and using facebook developers site it is difficult to understand.Like below when calling FBlogin button I want to check go for login if user has not logged in or if logged in I want the access token to get facebook profile information and user likes . I have tried also loginButton Facebook . But it is showing error in xml : - .. . .. . My Activity class : - .. . .. . Ia there any example tutorial to login using facebook sdk4.0 I am stuck in both way . Please help . Comment : I think it will collapse the recent Facebook developer policy . Comment : what for do you need the user likes Comment : @luschn I am making an educational project and want to extract some pattern using facebook likes of users.I will use the app for locally in the university campus to get likes of some of the users . If you have any tutorial regarding Facebook SDK4.0..please help Comment : i am not sure if you will get user likes approved for that . although you can just add everyone who takes part as tester . Comment : are you still searching for answer @RiturajSinghRathore .. . Answer : Using Android facebook SDK 4.X Login with faceboook Default Login button .. . .. . In Mainifest : - Comment : I thought Session is deprecated in 4.0 Comment : It is . Did you find a tutorial As usual the developer site is not helping . Comment : Right Session was deprecated in 4.0 . Again in 4.X you can use this . Check this edited answer . Comment : how to signout from the facebook-login how to clear credintials and call login once again Comment : just call LoginManager.getInstance .logOut", "Question : I am having issue while updating Facebook SDK 3 to 4 .. . .. . when I add the framework it was added successfully . but when i add header file it s having the error that Could not build module FBSDKCoreKit . Don t know the reason . Error Could not build module FBSDKCoreKit http : i.stack.imgur.com Wo2sV.png Comment : None of the answers worked for me see : stackoverflow.com a 33114309 3324388 http : stackoverflow.com a 33114309 3324388 .. . Answer : When adding Facebook SDK Version 4 files to the project make sure to uncheck Copy into destination group folder . This solved a problem for me .", "Question : The new Facebook SDK for Android v4.0 https : github.com facebook facebook-android-sdk that was released recently caused strange behavior for a customized LoginButton https : developers.facebook.com docs reference android current class LoginButton I m using . Below is a comparison of how the same XML is rendered in different SDK versions . The problem seems to be that the FB icon in SDK 4.x doesn t stretch properly to fit a custom-sized button and at 4.0.1 the android : layout height property is ignored altogether . My question is how do I make the button appear in SDK 4.x like it did in SDK 3.x Both XML and Java solutions are perfectly acceptable . XML for SDK 3.x : .. . .. . How it looks on SDK 3.x screenshot taken on a OnePlus One running CM11S : XML rendering when running with SDK v3.x http : i.stack.imgur.com 1uHHY.png .. . .. . XML for SDK 4.x the button s package was renamed + I had to change the width font a bit to match the g+ button : .. . .. . How it looks on SDK 4.0 Screenshot taken on a Genymotion Nexus 5 running unmodified 4.4.4 : enter image description here http : i.stack.imgur.com ZD2KP.png .. . .. . How it looks on SDK 4.0.1 Same Genymotion Nexus 5 : enter image description here http : i.stack.imgur.com XNXCs.png .. . .. . Additional information .. . .. . 1 . Excerpt from the 4.0 - 4.0.1 SDK change log https : developers.facebook.com docs android change-log-4.x ver4 0 1 : .. . .. . Login button is updated to properly measure its size . 2 . Related posts : .. . .. . Custom Facebook login button image in Facebook Android SDK 3.5 http : stackoverflow.com questions 18868594 custom-facebook-login-button-image-in-facebook-android-sdk-3-5 .. . 3 . To support different screen sizes above the login buttons I have a ViewPagerIndicator https : github.com JakeWharton ViewPagerIndicator and a ViewPager http : developer.android.com reference android support v4 view ViewPager.html that is configured to take up all available vertical space which remains after positioning elements with defined height . .. . Answer : Because I wanted to customize the login text gravity start I met a problem with the setCompoundDrawablePadding method . Finally I solved it by using a custom layout . I think it s a much easier way to customize the Facebook login button . Here s the end result : .. . .. . Facebook login button and Google sign in button http : i.stack.imgur.com BjOgd.png .. . .. . The layout xml : .. . .. . Java code that handles the custom Facebook login button clicks : Comment : This answer is currently incomplete because the resulting custom layout does not have the same functionality as the original FB login button examples : the onClick behavior which interfaces with the SDK and gives you login and logout capabilities and automatic changes of the button text based on the login state . If you want to improve the answer I suggest you also provide Java code to get back the lost functionality . Comment : Thanks @Dev-iL . I improved the answer ." ] }
[ "yes-answer-long", "yes-answer-short" ]
facebook
UNK_RELATION
svgweb@javascript@24
svgweb -- svg web is a @placeholder library which provides svg support on many browsers including internet-explorer firefox and safari .
{ "confidence": [ 45.36089324951172, 42.492576599121094, 41.92913818359375, 41.65192413330078, 40.00039291381836, 38.337867736816406, 38.12548828125, 36.6175422668457, 33.47746276855469, 31.483070373535156, 31.448955535888672, 31.114723205566406, 30.523303985595703, 30.411298751831055, 30.114404678344727, 29.987667083740234, 29.475669860839844, 29.475669860839844, 27.991134643554688, 27.06512451171875, 26.670982360839844, 26.670982360839844, 26.465959548950195, 26.423702239990234, 26.043912887573242, 25.895557403564453, 25.58981704711914, 25.302318572998047, 23.66193389892578, 23.66193389892578, 23.087566375732422, 22.828651428222656, 20.07851791381836, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 15.610620498657227, 14.334980010986328, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.547529220581055, 13.195216178894043, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 12.178863525390625, 10.538479804992676, 10.538479804992676, 10.538479804992676, 10.538479804992676, 10.538479804992676, 10.538479804992676, 10.538479804992676, 10.538479804992676, 10.538479804992676 ], "content": [ "How is it possible to reinitialize SVGweb in order to redraw all SVG on the page", "When trying to get SVG rendering in older IE browsers I ve used the svgweb project .", "SVG as seen in Chrome and IE8 rendered using SVGWEB http : i.stack.imgur.com yWJss.jpg", "Im using SVGWEB now without problems buy Im trying another alternatives because I cannot make the addeventlistener work in IE7 8 like I said here : can t add listener to a SVG in Internet Explorer using SVGweb http : stackoverflow.com questions 15119456 cant-add-listener-to-a-svg-in-internet-explorer-using-svgweb Any ideas", "The trick is to re attach your SVG elements to the DOM using window.svgweb.appendChild which causes the node to be processed by svgweb as is documented within the svgweb manual http : svgweb.googlecode.com svn-trunk docs UserManual.html dynamic root .", "Thanks to Jesus Christ got a solution : .. . .. . After the DOM is changed with a new SVGweb code through Ajax .. . .. . need to execute this : svgweb . onDOMContentLoaded .. . .. . But before need to comment a line in the core source of SVGweb svg-uncompressed.js or svg.js .. . .. . svg-uncompressed.js from .. . .. . to .. . .. . svg.js : find and delete this : .. . .. . or replace with .. . .. . EDIT : .. . .. . One more fix to work for IE9 : .. . .. . for svg.js .. . .. . from .. . .. . to .. . .. . for svg-uncompressed.js .. . .. . from .. . .. . to", "In other words an ajax response is coming back with valid SVG and I want svgweb to dynamically display it .", "The reason I load the svg differently is that I m using SVG Web so that svg works in IE8 .", "source from this : .. . .. . to this like SVGweb si doing that when simply open the page : .. . .. . I need this because I change the SVG graphics using ajax and need to rerender it on the page .", "I m trying to dynamically render some SVG with knockoutJS .", "I m loading a svg to my web page different depending of wich browser it is .", "g is a node in my svg .", "It works great in FF like svgweb .", "Example using jQuery : .. . .. . For this to work properly I suggest wrapping all SVG script tags with a dedicated div so that when attaching the SVG element it is attached to a parent element containing no other nodes .", "I have an SVG that was produced in Adobe Illustrator .", "Edit : g is a node in my svg .", "I have no problem using SVGweb when page is simply loaded opened .", "Anotherwords I need SVGweb to rescan and rerender everything on the page .", "SVGWeb does not support stroke-dasharray that s why all dashes are showing up as solid lines .", "You re probably going to have to get into the source code of SVGWeb and fix the underlying bug .", "And of course is called with : .. . .. . .. . .. . EDIT .. . .. . It turns out wrapping that SVG string with jQuery and attempting to append the result causes problems .", "The fix I found is to wrap the parent svg with jQuery and then use jQuery to cycle through all of the children .", "As described in this answer http : stackoverflow.com questions 15486422 reinitialize-svgweb-for-ajax you need to use the appendChild http : svgweb.googlecode.com svn-trunk docs UserManual.html dynamic root method that svgweb exposes .", "The problem is that in IE i can t get the svg elements since it is loaded differently .", "Recently I ve come up against bug 585 in svgweb .", "On thing I was thinking is that there may have been some sort of degradation since the designer saved it as SVG then when I asked for changes to the file opened the SVG and re-saved rather than exporting from the AI file which was the primary source .", "I needed the same capability and figured out how to do this properly without modifying the svgweb source or calling the onDOMContentLoaded handler manually .", "I have also tried the AMPLE svg plugin as an alternative with hilarious results MUCH worse .. . .. .", "So for IE it is loaded as an object and for IE I load all the contents from the svg and put it in SVGContainer .", "I don t think the svg is loaded in the DOM tree in IE and therefore it seems that I can not get it in the same way .", "Then after wrapping the stripped text with jQuery the 0 th node of the result should be a valid svg node that can be passed to appendChild .. . .. . The knockout extension below wraps up this functionality .", "https : code.google.com p svgweb issues detail id 585 q visibility https : code.google.com p svgweb issues detail id 585 q visibility .. . .. . In the following example the rectangle stays hidden in IE but shows after one second in Chrome .", "stackoverflow.com questions 4053991 http : stackoverflow.com questions 4053991 click-event-for-svg-rectangle - alternatively - if you have g.node a in IE as well as IE then you should be able to use that same parameter", "If you change the DOM it should automatically rerender .", "Robert : unfortunately it s not done automatically.. .", "I am looking how to do it manually .", "There s no mechanism to do that .", "Robert : found a solution .", "Thanks .", "In fact it is supported natively .", "This removes the possibility of inadvertently reordering nodes during the process .", "+1 I assume you mean appendChild not attachChild", "Indeed .", "Thanks", ":", "I have removed the distracting text as it adds no technical value to this answer and is thus unnecessary .", "It seems to have sparked a bit of discussion perhaps you would like to engage yourself : meta.stackexchange.com questions 221834 http : meta.stackexchange.com questions 221834 user-refusing-to-remove-unnecessary-and-possible-offensive-text-from-post .", "Ok so I think it s the lack of support for being able to handle click events on those tags with jQuery - have you seen this", "Im trying to use this image with Raphael : http : upload.wikimedia.org wikipedia commons 9 9f Argentina Buenos Aires City location map.svg .. . .. . I convert it to js with : http : toki-woki.net p SVG2RaphaelJS .. . .. . And I get this :", "converted image http : i.stack.imgur.com vjoGt.png .. . .. . Any Idea of what can I do to solve this", "This is worst apparently when I add text in inkscape above each reagion to change later via javascript .", "Try mapSVG plugin instead .", "Demo with your map : http : map.karaliki.ru bu.html zoom in-out with mouse wheel It works in IE7-8 as well .", "Plugin s description : http : map.karaliki.ru", "Great solution but its too slow in IE like full processor usage to load the map for a minute or so .", ".. . .. . Note - this question was written and answered with the Answer your own question feature so I could hopefully save the next guy an hour or so of searching .", "Just note that it accepts an actual node and not just text .", "To make things easy you can strip off any xml or doctype nodes that are coming over from your ajax response .", "A naive 1-level search is sufficient for me .", "Obviously more complicated use cases would require a recursive search .", "The updated code is below .", "Not sure if the object tag supports events either which could also be preventing it working .", "I have pasted it directly into a page using the format .. . .. . the code then manages to render the image on page .", "The problem is the IE8 version looks a little off .", "Is there something I can do with respect to the right export settings that will tell IE8 to step up to the plate", "edit this did not fix the issue .", "I ll try that as my first line of defense - but if anyone has other suggestions I would love to hear them .", "There is no export setting to account for this in Adobe Illustrator .", "The only alternative would be creating a separate element for each dash I cringe thinking about this .", "I d suggest falling back to a bitmap .png .", "I just sat down with the design guy and we looked at our options.. . one that we re just about to try is the convert to outline option on the whole document a one-click version of making a separate element for each dash .", "I ll report back soon as the files come through :", "Yes that might work I had forgotten about this feature .", "I have found a workaround .", "Dynamically setting the fill or stroke of an element before setting the visibility results in the correct behaviour .", "If it s not IE i ll just use SVGContainer .on click g.node a function event .. . and it works great .", "How can I do the same with IE", "I ve tried infoobjectgraph .on click g function event .. . but this doesn t work .", "So the loading thing has to be as it is .", "Any ideas", "For example :", "What is g - surely it needs to be similar to the event binding above e.g .", "attaching to an anchor or clickable element .", "See my edit ." ] }
{ "confidence": [ 60.91477966308594, 55.92366027832031, 55.208709716796875, 52.794517517089844, 52.01962661743164, 48.070716857910156, 38.6270751953125 ], "content": [ "Question : Im trying to use this image with Raphael : http : upload.wikimedia.org wikipedia commons 9 9f Argentina Buenos Aires City location map.svg .. . .. . I convert it to js with : http : toki-woki.net p SVG2RaphaelJS .. . .. . And I get this : converted image http : i.stack.imgur.com vjoGt.png .. . .. . Any Idea of what can I do to solve this This is worst apparently when I add text in inkscape above each reagion to change later via javascript . Im using SVGWEB now without problems buy Im trying another alternatives because I cannot make the addeventlistener work in IE7 8 like I said here : can t add listener to a SVG in Internet Explorer using SVGweb http : stackoverflow.com questions 15119456 cant-add-listener-to-a-svg-in-internet-explorer-using-svgweb Any ideas Thanks .. . Answer : Try mapSVG plugin instead . Demo with your map : http : map.karaliki.ru bu.html zoom in-out with mouse wheel It works in IE7-8 as well . Plugin s description : http : map.karaliki.ru Comment : Great solution but its too slow in IE like full processor usage to load the map for a minute or so . It works great in FF like svgweb .", "Question : I have no problem using SVGweb when page is simply loaded opened . How is it possible to reinitialize SVGweb in order to redraw all SVG on the page Anotherwords I need SVGweb to rescan and rerender everything on the page . source from this : .. . .. . to this like SVGweb si doing that when simply open the page : .. . .. . I need this because I change the SVG graphics using ajax and need to rerender it on the page . Comment : If you change the DOM it should automatically rerender . Comment : Robert : unfortunately it s not done automatically.. . I am looking how to do it manually . Comment : There s no mechanism to do that . You re probably going to have to get into the source code of SVGWeb and fix the underlying bug . Comment : Robert : found a solution . Thanks . .. . Answer : I needed the same capability and figured out how to do this properly without modifying the svgweb source or calling the onDOMContentLoaded handler manually . In fact it is supported natively . The trick is to re attach your SVG elements to the DOM using window.svgweb.appendChild which causes the node to be processed by svgweb as is documented within the svgweb manual http : svgweb.googlecode.com svn-trunk docs UserManual.html dynamic root . Example using jQuery : .. . .. . For this to work properly I suggest wrapping all SVG script tags with a dedicated div so that when attaching the SVG element it is attached to a parent element containing no other nodes . This removes the possibility of inadvertently reordering nodes during the process . Comment : +1 I assume you mean appendChild not attachChild Comment : Indeed . Thanks :", "Question : I have no problem using SVGweb when page is simply loaded opened . How is it possible to reinitialize SVGweb in order to redraw all SVG on the page Anotherwords I need SVGweb to rescan and rerender everything on the page . source from this : .. . .. . to this like SVGweb si doing that when simply open the page : .. . .. . I need this because I change the SVG graphics using ajax and need to rerender it on the page . Comment : If you change the DOM it should automatically rerender . Comment : Robert : unfortunately it s not done automatically.. . I am looking how to do it manually . Comment : There s no mechanism to do that . You re probably going to have to get into the source code of SVGWeb and fix the underlying bug . Comment : Robert : found a solution . Thanks . .. . Answer : Thanks to Jesus Christ got a solution : .. . .. . After the DOM is changed with a new SVGweb code through Ajax .. . .. . need to execute this : svgweb . onDOMContentLoaded .. . .. . But before need to comment a line in the core source of SVGweb svg-uncompressed.js or svg.js .. . .. . svg-uncompressed.js from .. . .. . to .. . .. . svg.js : find and delete this : .. . .. . or replace with .. . .. . EDIT : .. . .. . One more fix to work for IE9 : .. . .. . for svg.js .. . .. . from .. . .. . to .. . .. . for svg-uncompressed.js .. . .. . from .. . .. . to Comment : I have removed the distracting text as it adds no technical value to this answer and is thus unnecessary . It seems to have sparked a bit of discussion perhaps you would like to engage yourself : meta.stackexchange.com questions 221834 http : meta.stackexchange.com questions 221834 user-refusing-to-remove-unnecessary-and-possible-offensive-text-from-post .", "Question : When trying to get SVG rendering in older IE browsers I ve used the svgweb project . Recently I ve come up against bug 585 in svgweb . https : code.google.com p svgweb issues detail id 585 q visibility https : code.google.com p svgweb issues detail id 585 q visibility .. . .. . In the following example the rectangle stays hidden in IE but shows after one second in Chrome . .. . Answer : I have found a workaround . Dynamically setting the fill or stroke of an element before setting the visibility results in the correct behaviour .", "Question : I m trying to dynamically render some SVG with knockoutJS . In other words an ajax response is coming back with valid SVG and I want svgweb to dynamically display it . .. . .. . Note - this question was written and answered with the Answer your own question feature so I could hopefully save the next guy an hour or so of searching . .. . Answer : As described in this answer http : stackoverflow.com questions 15486422 reinitialize-svgweb-for-ajax you need to use the appendChild http : svgweb.googlecode.com svn-trunk docs UserManual.html dynamic root method that svgweb exposes . Just note that it accepts an actual node and not just text . To make things easy you can strip off any xml or doctype nodes that are coming over from your ajax response . Then after wrapping the stripped text with jQuery the 0 th node of the result should be a valid svg node that can be passed to appendChild .. . .. . The knockout extension below wraps up this functionality . And of course is called with : .. . .. . .. . .. . EDIT .. . .. . It turns out wrapping that SVG string with jQuery and attempting to append the result causes problems . The fix I found is to wrap the parent svg with jQuery and then use jQuery to cycle through all of the children . A naive 1-level search is sufficient for me . Obviously more complicated use cases would require a recursive search . The updated code is below .", "Question : I have an SVG that was produced in Adobe Illustrator . I have pasted it directly into a page using the format .. . .. . the code then manages to render the image on page . The problem is the IE8 version looks a little off . Is there something I can do with respect to the right export settings that will tell IE8 to step up to the plate On thing I was thinking is that there may have been some sort of degradation since the designer saved it as SVG then when I asked for changes to the file opened the SVG and re-saved rather than exporting from the AI file which was the primary source . edit this did not fix the issue . I ll try that as my first line of defense - but if anyone has other suggestions I would love to hear them . I have also tried the AMPLE svg plugin as an alternative with hilarious results MUCH worse .. . .. . SVG as seen in Chrome and IE8 rendered using SVGWEB http : i.stack.imgur.com yWJss.jpg .. . Answer : SVGWeb does not support stroke-dasharray that s why all dashes are showing up as solid lines . There is no export setting to account for this in Adobe Illustrator . The only alternative would be creating a separate element for each dash I cringe thinking about this . I d suggest falling back to a bitmap .png . Comment : I just sat down with the design guy and we looked at our options.. . one that we re just about to try is the convert to outline option on the whole document a one-click version of making a separate element for each dash . I ll report back soon as the files come through : Comment : Yes that might work I had forgotten about this feature .", "Question : null .. . Answer : I m loading a svg to my web page different depending of wich browser it is . The problem is that in IE i can t get the svg elements since it is loaded differently . If it s not IE i ll just use SVGContainer .on click g.node a function event .. . and it works great . How can I do the same with IE I ve tried infoobjectgraph .on click g function event .. . but this doesn t work . The reason I load the svg differently is that I m using SVG Web so that svg works in IE8 . So the loading thing has to be as it is . So for IE it is loaded as an object and for IE I load all the contents from the svg and put it in SVGContainer . Any ideas Edit : g is a node in my svg . For example : Comment : What is g - surely it needs to be similar to the event binding above e.g . attaching to an anchor or clickable element . Not sure if the object tag supports events either which could also be preventing it working . Comment : g is a node in my svg . See my edit . Comment : Ok so I think it s the lack of support for being able to handle click events on those tags with jQuery - have you seen this stackoverflow.com questions 4053991 http : stackoverflow.com questions 4053991 click-event-for-svg-rectangle - alternatively - if you have g.node a in IE as well as IE then you should be able to use that same parameter Comment : I don t think the svg is loaded in the DOM tree in IE and therefore it seems that I can not get it in the same way ." ] }
[ "yes-answer-long", "yes-answer-short" ]
javascript
UNK_RELATION
fusionreactor@adobe@163
fusionreactor -- fusionreactor is a professional server monitor for java application servers such as tomcat jboss and websphere and is recommended for monitoring @placeholder coldfusion .
{ "confidence": [ 51.59038162231445, 49.314598083496094, 48.51757049560547, 48.10891342163086, 47.9227409362793, 47.9227409362793, 45.168731689453125, 43.2725830078125, 42.554710388183594, 39.75638198852539, 39.75638198852539, 39.75638198852539, 39.45368194580078, 38.977474212646484, 37.86835479736328, 37.45458221435547, 37.096107482910156, 37.068260192871094, 37.068260192871094, 37.068260192871094, 37.068260192871094, 36.7916145324707, 36.0189094543457, 35.81547546386719, 33.93947982788086, 33.725868225097656, 33.725868225097656, 33.62551498413086, 32.93699645996094, 32.609153747558594, 32.260440826416016, 32.260440826416016, 32.006072998046875, 32.006072998046875, 31.69516944885254, 31.356788635253906, 31.240766525268555, 30.911380767822266, 30.566417694091797, 30.566417694091797, 30.5235652923584, 29.343725204467773, 29.31795310974121, 29.31795310974121, 29.31795310974121, 29.153034210205078, 28.2348575592041, 28.22325897216797, 27.8782958984375, 26.022260665893555, 25.13225555419922, 24.668222427368164, 24.668222427368164, 24.668222427368164, 24.668222427368164, 24.668222427368164, 22.703590393066406, 21.96855926513672, 20.76168441772461, 20.73105239868164, 19.740419387817383, 19.214303970336914, 19.19019889831543, 18.804269790649414, 18.383956909179688, 18.248855590820312, 18.091548919677734, 17.957969665527344, 17.955060958862305, 17.569950103759766, 17.41687774658203, 17.41687774658203, 17.042837142944336, 16.96121597290039, 16.833850860595703, 16.702892303466797, 16.502077102661133, 16.11200714111328, 16.103071212768555, 15.657661437988281, 15.657661437988281, 15.5878267288208, 15.269847869873047, 15.199783325195312, 15.199783325195312, 15.199783325195312, 14.98844051361084, 14.94577407836914, 14.880380630493164, 14.683130264282227, 14.683130264282227, 14.273096084594727, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.945679664611816, 13.92622184753418 ], "content": [ "The data belonging to FusionReactor is in the directory etc .java .systemPrefs com intergral fusionreactor .", "We use FusionReactor to monitor our instances .", "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 .", "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 .", "Kind Regards .. . .. . Ben Donnelly .. . .. . FusionReactor Support", "Checked FusionReactor and saw no memory usage .", "CFSimplicity .. . .. . The Enterprise version of ColdFusion 8 and higher has the Server monitor .", "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", "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 .", "We have upgraded one of these two servers to ColdFusion 10 in order to soft-launch our ColdFusion 10 upgrade .", "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 [email protected] .", "ColdFusion 10 if it helps .", "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 .", "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 .", "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 .", "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 .", "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 .", "1 Is there something about the ColdFusion QoQ Java implementation that would cause access to the QoQ system to be single-threaded", "Check the Document services at adobe.com products coldfusion-family buying-guide.html http : www.adobe.com products coldfusion-family buying-guide.html .", "After removing the arguments from the config file make sure to restart ColdFusion server .", "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", "We have been running 2 load-balanced ColdFusion 8 servers for ages without issue .", "I am using ColdFusion 8 and MySQL on Windows 7 .", "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 .", "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 .", "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 .", "I m having an odd intermittent issue with the 404 handler pages on our ColdFusion 10 server .", "I believe this is a legit bug in ColdFusion and I ve reported it through their bug system .", "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 .", "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 .", "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", "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", "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 .", "This is CF9.01 Standard on Win2003 Server running Java 1.7.0 25 .", "A server restart should correct this issue .", "One of the things you should start to look at is the hardware between the two servers .", "Have your tried restarting your server", ".. . 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 .", "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 .", "The problem apparently affects all Java apps .", "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 .", "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 .", "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 .", "Short answer is you can t directly through CF instead you ve got to work with Java .", "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 .", "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", "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 .", "Is there an easy way to just map the result-of createObject java com.intergral.fusionreactor.api.FRAPI .getInstance to a WireBox alias", "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 .", "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 .", "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 ." ] }
{ "confidence": [ 83.37708282470703, 75.7406234741211, 71.92324829101562, 71.5555648803711, 69.68976593017578, 66.568603515625, 66.3244857788086, 61.85807800292969, 59.304893493652344, 55.84954071044922, 55.513099670410156, 53.01976013183594, 52.553070068359375, 49.53520202636719, 49.37775421142578, 46.42366027832031, 44.37214660644531, 41.58634948730469, 41.41008377075195, 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 : 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 : 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 : 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 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 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 : 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 : 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 : 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 [email protected] . Kind Regards .. . .. . Ben Donnelly .. . .. . FusionReactor Support", "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 : 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 : 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 : 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 : 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 : 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" ]
adobe
UNK_RELATION
xacml2@oasis@124
xacml2 -- xacml 2.0 refers to the 2.0 specification of the extensible access-control markup language xacml ratified by the @placeholder standards group in february 2005 .
{ "confidence": [ 58.67216110229492, 56.258995056152344, 54.632564544677734, 52.59565353393555, 51.78314208984375, 50.01664352416992, 49.456321716308594, 48.56272506713867, 47.8776741027832, 47.8776741027832, 47.2771110534668, 45.418277740478516, 45.418277740478516, 45.36243438720703, 45.334312438964844, 45.209651947021484, 45.054805755615234, 42.927032470703125, 41.364810943603516, 41.19886779785156, 40.65772247314453, 40.193695068359375, 39.99530792236328, 39.6179313659668, 38.92641830444336, 38.683624267578125, 38.61238098144531, 38.61238098144531, 38.315704345703125, 37.6784553527832, 37.67082595825195, 37.63313293457031, 37.205047607421875, 36.76689910888672, 36.76689910888672, 36.52676773071289, 36.488670349121094, 36.488670349121094, 36.488670349121094, 35.34461212158203, 35.15558624267578, 35.150718688964844, 34.262020111083984, 34.16393280029297, 33.973426818847656, 33.973426818847656, 33.973426818847656, 33.973426818847656, 33.973426818847656, 33.8148307800293, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 33.611976623535156, 32.467918395996094, 32.467918395996094, 32.467918395996094, 32.467918395996094, 32.467918395996094, 32.467918395996094, 32.467918395996094, 32.090309143066406, 31.77829360961914, 31.46160888671875, 31.09673309326172, 31.09673309326172, 31.09673309326172, 31.09673309326172, 31.09673309326172, 31.09673309326172, 30.946250915527344, 30.89715576171875, 30.872005462646484, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.73708724975586, 29.350688934326172, 29.0900936126709 ], "content": [ "WHy XACML 2.0", "For the sake of providing a starting point the following is an example from http : docs.oasis-open.org xacml 2.0 XACML-2.0-OS-ALL.zip .", "Is there a way to either do that or convert a group of XACML 3.0 policies into XACML 2.0 policies", "XSLT is great for converting from XACML 2.0 to 3.0 .", "Your Xacml 2.0 policy could look something like this : forgive syntax errors my Xacml 2.0 is a little rusty .. . .. . The Xacml function at-least-one-member-of takes two lists as parameters .", "The biggest difference between Xacml 2.0 and Xacml 3.0 for your client app is that the structure of the attributes in the authz request have changed significantly in Xacml 3.0 .", "Xacml 2.0 requests and policies can be mechanically converted to Xacml 3.0 format with no loss of information .", "Please check the OASIS XACML TC wiki for an official list of differences : .. . .. . Differences between XACML 2.0 and XACML 3.0 http : wiki.oasis-open.org xacml DifferencesBetweenXACML2.0AndXACML3.0 .. . .. . In a nutshell.. .", "I would like to generate XACML 2.0 policies programmatically .", "First of all can you generate XACML 2.0 policies programmatically", "In Xacml 2.0 attributes were organized into subject resource environment or action categories using XML element tags : .. . .. . In Xacml 3.0 these categories are indicated using XML attributes instead of XML element tags : .. . .. . The Subject element in Xacml 2.0 becomes Attributes Category urn : oasis : names : tc : xacml : 1.0 : subject-category : access-subject in Xacml 3.0 for example .", "I m considering migrating my client application from using a XACML 2.0 authorization service to using a newer XACML 3.0 service .", "What changes or issues will I run into in migrating my client app from making XACML 2.0 requests to making XACML 3.0 requests", "According to the XACML 2.0 if MustBePresent is true and IDs are NOT present in the request then the target will be Indeterminate .", "Just give JAXB the XACML 2.0 and XACML 3.0 schemas and you will get a set of classes you can use to programmatically create XACML policies requests and responses .", "Details on the functions can be found in the XACML 3.0 specification http : docs.oasis-open.org xacml 3.0 xacml-3.0-core-spec-os-en.html Toc325047236 .", "They do the regexp is part of xacml core specification .", "Solution : Remove mixed true from the Xacml2 xacml-context : AttributeValueType definition and XSD will generate the correct class types for the schema .", "The need for XACML also goes beyond that since it defines a standards based policy language as well as a request-response protocol .", "The editor of the XACML 3.0 specification is Axiomatics s CTO Erik Rissanen .", "With respect to converting though there are a few possible approaches : .. . .. . implement the logic yourself using JAXB XACML 2.0 objects and converting into JAXB XACML 3.0 objects .. . Write XSLT to do it for you .", "That also came in the XACML request .", "Example .. . .. . Other resources : .. . .. . XACML Obligations http : stackoverflow.com questions 15831574 xacml-obligations .. . Enhancements and new features in XACML 3.0 http : www.webfarmr.eu 2010 07 enhancements-and-new-features-in-xacml-3-axiomatics", "Your rule target would look as follows in ALFA Axiomatics Language for Authorization http : www.axiomatics.com solutions products authorization-for-applications developer-tools-and-apis 192-axiomatics-language-for-authorization-alfa.html : .. . .. . See also this other example XACML 2.0 : How do I apply XACML rules to every child URI", "The key difference between XACML 2.0 and XACML 3.0 is in new features such as .. . .. . obligation expressions : you can have dynamic parts to your obligation statements .. . the introduction of advice which effectively is generalizing obligations to a broader scope .. . the introduction of the XACML v3.0 Administration and Delegation Profile Version 1.0 http : docs.oasis-open.org xacml 3.0 xacml-3.0-administration-v1-spec-en.html .", "XACML 3.0 core specification also contains sample policies .", "ALFA is a good XACML policy editor", "That s true of any version of XACML .", "Also Kuppinger Cole delivered a webinar on the topic : Policy Based Access Control with XACML 3.0 http : www.kuppingercole.com events n40111 .", "Are you using Sun XACML", "If you are installing XACML 2.2 and XACML mediator 2.2 it should copy org.wso2.carbon.identity.entitlement.stub 4.2.1 .", "The Oasis wiki has a lot if info about Xacml 2.0 vs Xamcl 3.0 differences but it s all about policy syntax and features .", "PolicySet xmlns urn : oasis : names : tc : xacml : 2.0 : policy : schema : os xmlns : xsi w3.org 2001 XMLSchema-instance quot http : www.w3.org 2001 XMLSchema-instance quot PolicySetId ripl : jing : security : policyset : testmypolicyapi RuleCombiningAlgId urn : oasis : names : tc : xacml : 1.0 : rule-combining-algorithm : deny-o verrides xsi : schemaLocation urn : oasis : names : tc : xacml : 2.0 : policy : schema : oshttp : docs.oas is-open.org xacml 2.0 access control-xacml-2.0-context-schema-os.xsd", "Using the XML content inside a XACML request .. . .. . If all the information comse from the XACML request then it could be expressed as an XML payload as part of the Content element inside a XACML request .", "I am new to XACML and getting the following error .. . .. . I have defined my attribute something like this : .. . .. . My XACML file is : .. . .. . Where am I going wrong I am using Sun XACML implementation .", "It is a library that can be used to create XACML 3.0 policies and XACML 3.0 request using an simple object-model .", "XACML forces you to define when the obligation will trigger .", "This information is summarized on the XACML TC wiki page at OASIS .", "XACML policy can contain meta data that is associate with it .", "So I want to achieve the xacml response like this .", "So the smallest possible XACML policy is using ALFA : .. . .. . And the resulting XACML XML code is :", "Lastly I summarized the new features on Enhancements and new features in XACML 3.0 http : www.webfarmr.eu 2010 07 enhancements-and-new-features-in-xacml-3-axiomatics .", "Please I would like to know how to write XACML policy for dynamic control .", "I m leaving it here however as it discusses the related issue of multiple decision requests . .. . .. . The XACML 3.0 Multiple Decision Profile http : docs.oasis-open.org xacml 3.0 xacml-3.0-multiple-v1-spec-en.pdf is quite clear about that : .. . .. . Such a request context SHALL be interpreted as a request for access to all situations specified in the individual elements .", "When modeling in XACML you can assimilate them .", "XACML provides a long list of functions that can be used .", "It s much easier than plain old XACML .", "to run pdp using SAML envelope on XACML .", "If you get a chance move to XACML 3.0 .", "Can someone provide a xacml policy snippet or even pseudo-xacml that requires a role attribute id will be provided by the request to be within a set of roles which are identified by another attribute id managed by external attribute store .", "The constructor for classes implementing the ObligationHandler interface would take the XACML request and response .", "But I guess that s because XACML doesn t support it either", "XACML provides a regular expression function that works on URI data types .", "AND scope .. . uid would be mapped to the user identity that came in the XACML request .", "Creating a new datatype called tuple .. . .. . The problem with XACML is that it flattens relationships .", "i think xacml should support more uri-related functions", "Also there is a SAML-XACML profile that talks about PEP-PDP communication .", "The issue appears to be the combination of any and mixed true in the xacml-context : AttributeValueType schema definition .", "There are new data types and functions defined in Xacml 3.0 for use in policy definitions .", "According to the XACML core spec There is no mention about this type of queries .", "Also Like Axiomatics There are be some xACML implementations that support this feature with their own ways .", "I guess not it is not supported... . and even for XACML 3.0 that contain multiple decision profile.... .", "Balana is a library and it is pure XACML 3.0 core spec implementation .", "You can use it for building your own XACML PDP. .", "Could you please let us know XACML request that you are using. .", "The same applies to XACML 3.0 or any schema-based XML content .", "If you create a XACML request with 4 different categories e.g .", "In XACML this would become : .. . .. . Note that the order of the categories do not matter .", "Following is the XACML multiple decision profile request that you can try out .", "It all depends on how your XACML engine implements delegation .", "I am using XACML 3.0 with Balana in my java application .", "There is nothing special that needs to be done in XACML to return multiple values .", "UMU XACML editor http : sourceforge.net projects umu-xacmleditor .. . 2 .", "May be another useful web page to understand about XACML3 features : .. . .. . What is new with XACML 3.0 http : xacmlinfo.com 2012 07 12 what-is-new-with-xacml-3-0", "While the specification all versions do define the structure of an obligation and even advice in the case of XACML 3.0 the specification doesn t mention how the PEP policy enforcement point is to implement the obligation .", "In the XACML PDP reference architecture it s the responsibility of the request context handler to resolve attribute IDs and produce values for the PDP .", "A Condition is an expression that can use any function available in XACML .", "In XACML there are 2 elements you can use to define the applicability of the authorization .", "role manager .. . XACML conditions : conditions exist in Rule elements only .", "It is also in the process of being standardized at the OASIS XACML Technical Committee .", "Also there are free tools and servers that help you to create XACML 3.0 policies .", "Then I created webservice pdp and pdpclient - in other words XACML Request Generator .", "I have requirement to write a policy for the particular user it will return the xacml response like this : .. . .. . This policy is based on single user : bob .. . .. . How to write a xacml policy for such requirement and how the request will look like for the same policy .", "I want to answer questions like what am I allowed to access by using XACML is their a workaround other than Axiomatics ARQ", "The Xacml2 context : AttributeValueType does not contain this wrapper .", "You will need to be more specific in your question if you want us to help with the XACML policy .", ": I m trying to setup a authorization server for my company XACML seems a good place to start with .", "It is called anyURIRegexpMatch and it takes in a string the regular expression and the XACML attribute to which to apply the regular expression .", "http : stackoverflow.com questions 7532237 how-do-i-apply-xacml-rules-to-every-child-uri", "Using Policy Information Points .. . .. . Assume that the XACML request says : Can Alice edit post 123 .", "When PEP sends a XACML request User Pass must be sent within Basic auth headers .", "To date Axiomatics http : www.axiomatics.com and ViewDS http : www.viewDs.com are the only complete XACML 3.0 implementations that includes delegation .", "I am using XACML 3.0 I just want to know which is the best practices for separating the PEP and PDP instances .", "from XACML PDP rather than just hoping for aboolean type permit deny result .", "WSO2 Identity Server which is an open-source XACML engine also supports this feature .", "Of course for this to work the PEPs need to add the appropriate value of these attribute ids into the XACML request .", "XACML policy repository can be any thing database or file system or any registry .", "If you are using APIM 1.7.0 and If you install XACML feature 4.2.2 you would not see such error .", "XSD processes the Xacml2 Policy schema with no errors .", "The Xacml spec doesn t say much about use of the Issuer field but the same goals of decoupling policy from provider implementation details still holds ." ] }
{ "confidence": [ 73.13444519042969, 68.27590942382812, 65.22085571289062, 64.19717407226562, 63.89693069458008, 63.483097076416016, 62.071014404296875, 58.41016387939453, 56.427040100097656, 51.0438232421875, 50.64897918701172, 49.26506805419922, 48.57622528076172, 48.30876541137695, 48.295406341552734, 47.43353271484375, 46.145137786865234, 44.05844497680664, 42.689117431640625, 42.58491516113281 ], "content": [ "Question : I m considering migrating my client application from using a XACML 2.0 authorization service to using a newer XACML 3.0 service . What changes or issues will I run into in migrating my client app from making XACML 2.0 requests to making XACML 3.0 requests Comment : I get asked this all the time so I m posting it here as a FAQ on SO . .. . Answer : Please check the OASIS XACML TC wiki for an official list of differences : .. . .. . Differences between XACML 2.0 and XACML 3.0 http : wiki.oasis-open.org xacml DifferencesBetweenXACML2.0AndXACML3.0 .. . .. . In a nutshell.. . The key difference between XACML 2.0 and XACML 3.0 is in new features such as .. . .. . obligation expressions : you can have dynamic parts to your obligation statements .. . the introduction of advice which effectively is generalizing obligations to a broader scope .. . the introduction of the XACML v3.0 Administration and Delegation Profile Version 1.0 http : docs.oasis-open.org xacml 3.0 xacml-3.0-administration-v1-spec-en.html . To date Axiomatics http : www.axiomatics.com and ViewDS http : www.viewDs.com are the only complete XACML 3.0 implementations that includes delegation . It is a key feature for cloud and federated deployments . The delegation model is the result-of 5+ years of R D at the Swedish Institute of Computer Science SICS . This information is summarized on the XACML TC wiki page at OASIS . The TC is backed by such leading organization as Oracle IBM and Axiomatics . The editor of the XACML 3.0 specification is Axiomatics s CTO Erik Rissanen . Also Kuppinger Cole delivered a webinar on the topic : Policy Based Access Control with XACML 3.0 http : www.kuppingercole.com events n40111 . Lastly I summarized the new features on Enhancements and new features in XACML 3.0 http : www.webfarmr.eu 2010 07 enhancements-and-new-features-in-xacml-3-axiomatics . Comment : The Oasis wiki has a lot if info about Xacml 2.0 vs Xamcl 3.0 differences but it s all about policy syntax and features . Client applications are mostly oblivious to that level of PDP internal detail . For the question of How will moving from 2.0 to 3.0 affect my client code we need to look at the changes in the request and response .", "Question : I would like to generate XACML 2.0 policies programmatically . Is there a way to either do that or convert a group of XACML 3.0 policies into XACML 2.0 policies Thanks .. . Answer : Yes and yes . First of all can you generate XACML 2.0 policies programmatically Yes you can . The same applies to XACML 3.0 or any schema-based XML content . The way to do that in Java is to use JAXB . JAXB will take an XML Schema that you write and create a set of classes that correspond to that schema . The JAXB utilities will create the hierarchy of data-structures for manipulating that XML . quoting from What is JAXB and why would I use it http : stackoverflow.com questions 607141 what-is-jaxb-and-why-would-i-use-it . Just give JAXB the XACML 2.0 and XACML 3.0 schemas and you will get a set of classes you can use to programmatically create XACML policies requests and responses . With respect to converting though there are a few possible approaches : .. . .. . implement the logic yourself using JAXB XACML 2.0 objects and converting into JAXB XACML 3.0 objects .. . Write XSLT to do it for you . XSLT is a language that will take in an XML schema or an instance of a schema and convert that schema to pretty much anything web pages PDF and of course XML too . XSLT is great for converting from XACML 2.0 to 3.0 . Have an XML tool do the heavy lifting for you . The best tool in this space that will generate code and XSLT is Altova s XML suite I am not affiliated with them . HTH David .", "Question : Please I would like to know how to write XACML policy for dynamic control . I want to control user permission to access attribute with time or date . Comment : WHy XACML 2.0 What engine are you using .. . Answer : You will need to be more specific in your question if you want us to help with the XACML policy . Generally you can use the ALFA plugin for Eclipse to write an ALFA policy that will get automatically converted on the fly into a XACML 3.0 policy . In your question you say : .. . .. . I want to control user permission to access attribute with time or date . Your XACML policy could look like .. . .. . You can download the ALFA plugin here http : www.axiomatics.com alfa-plugin-for-eclipse.html .", "Question : I m considering migrating my client application from using a XACML 2.0 authorization service to using a newer XACML 3.0 service . What changes or issues will I run into in migrating my client app from making XACML 2.0 requests to making XACML 3.0 requests Comment : I get asked this all the time so I m posting it here as a FAQ on SO . .. . Answer : The biggest difference between Xacml 2.0 and Xacml 3.0 for your client app is that the structure of the attributes in the authz request have changed significantly in Xacml 3.0 . In Xacml 2.0 attributes were organized into subject resource environment or action categories using XML element tags : .. . .. . In Xacml 3.0 these categories are indicated using XML attributes instead of XML element tags : .. . .. . The Subject element in Xacml 2.0 becomes Attributes Category urn : oasis : names : tc : xacml : 1.0 : subject-category : access-subject in Xacml 3.0 for example . Ditto for the resource environment and action categories . This structural change simplifies the processing model for handling requests and makes it easy to extend the model with custom application-specific or domain-specific categories without running afoul of schema validation . There are new data types and functions defined in Xacml 3.0 for use in policy definitions . The AnyURI data type is now distinct from the string datatype . Several of the 2.0 combining algorithms have been deprecated in favor of new 3.0 equivalents that define more precisely how indeterminate states propagate up through the policy decision-tree . The old combining algorithms are still included as legacy artifacts . Xacml 2.0 requests and policies can be mechanically converted to Xacml 3.0 format with no loss of information . Converting a 3.0 response back to 2.0 format is doable if you stick to simple permit deny responses .", "Question : Has anyone been able to successfully generate C entity classes from XACML2 schema files I am getting Cannot use wildcards at the top level of a schema . I think this has something to do with xs : any elements . I have tried change the processContents skip from lax but to no avail . I get this using WSCF Blue http : wscfblue.codeplex.com as well as xsd.exe http : msdn.microsoft.com en-us library x6c1kb0s 28VS.71 29.aspx . .. . Answer : I have no problems running the Xacml3 schema through VS2010 XSD.exe but I do see this Cannot use wildcards at the top level of a schema error when trying to process the Xacml2 schema with XSD . XSD processes the Xacml2 Policy schema with no errors . XSD reports this wildcard error when processing the Xacml2 Context schema . The issue appears to be the combination of any and mixed true in the xacml-context : AttributeValueType schema definition . Other definitions of AttributeValueType in Xacml2 Policy schema and Xacml3 use an xs : complexContent wrapper around an ExpressionType extension which in turn contains xs : any and xs : anyAttribute definitions . The Xacml2 context : AttributeValueType does not contain this wrapper . Solution : Remove mixed true from the Xacml2 xacml-context : AttributeValueType definition and XSD will generate the correct class types for the schema . The generated AttributeValueType class will have properties for a list of elements and a list of attributes which covers all the bases .", "Question : I d like to declare some policies likes : .. . .. . how to write policy of this kind . I looked through the XACML3.0 core spec Multiple Profile they says .. . .. . I think this means that in the policy file i cann t use XPath in the AttributeValue to refer to multiple resources like i said in the first place right because the request is resolved to individual request each asking for a resource with a specified attribute id . Is there something in the specification i missed out or misunderstood or can anyone suggest a better way to do what i want Now i m wondering if using regular expression in the resource can do that . The corresponding function is urn : oasis : names : tc : xacml : 1.0 : function : string-regexp-match . P.S . : I m trying to setup a authorization server for my company XACML seems a good place to start with . But nobody around me knows about it . I would be appreciated if any one can give me any suggestion about setting up the access-control system . Comment : I d love to help out . What engine or solution are you using Oil answer your xpath question in a short while Comment : I try to base the authorization server on Balana an open-source from WSO2 . Comment : If they don t support regexp give the Axiomatics policy server a go Comment : They do the regexp is part of xacml core specification . Comment : Yes you are right but Balana doesn t cover 100 of the spec I believe . .. . Answer : I chatted with some of my colleagues at Axiomatics and the conclusion is that you do not need XPath but rather regular expressions . XACML provides a regular expression function that works on URI data types . It is called anyURIRegexpMatch and it takes in a string the regular expression and the XACML attribute to which to apply the regular expression . It returns either true or false . Your rule target would look as follows in ALFA Axiomatics Language for Authorization http : www.axiomatics.com solutions products authorization-for-applications developer-tools-and-apis 192-axiomatics-language-for-authorization-alfa.html : .. . .. . See also this other example XACML 2.0 : How do I apply XACML rules to every child URI http : stackoverflow.com questions 7532237 how-do-i-apply-xacml-rules-to-every-child-uri Comment : ALFA is a good XACML policy editor", "Question : I m considering migrating my client application from using a XACML 2.0 authorization service to using a newer XACML 3.0 service . What changes or issues will I run into in migrating my client app from making XACML 2.0 requests to making XACML 3.0 requests Comment : I get asked this all the time so I m posting it here as a FAQ on SO . .. . Answer : May be another useful web page to understand about XACML3 features : .. . .. . What is new with XACML 3.0 http : xacmlinfo.com 2012 07 12 what-is-new-with-xacml-3-0 Comment : Absolutely thanks", "Question : I have created a XACML file for authorization which looks as : .. . .. . I am doing balana based validation but I am getting the error as : .. . .. . But I have mentioned the resource-id already same code works with balana test policy file difference is I am using policy set instead of policy . .. . Answer : Could you please let us know XACML request that you are using. . If not please try to change the following value in the policy and try out . I guess that can be the issues . In your request you may sending resource-id value as attribute id .. . .. . urn : oasis : names : tc : xacml : 1.0 : resource : TESTRESOURCE1 .. . .. . into .. . .. . urn : oasis : names : tc : xacml : 1.0 : resource : resource-id Comment : Asela actually the PolicySet defination is creating problem i.e : Comment : PolicySet xmlns urn : oasis : names : tc : xacml : 2.0 : policy : schema : os xmlns : xsi w3.org 2001 XMLSchema-instance quot http : www.w3.org 2001 XMLSchema-instance quot PolicySetId ripl : jing : security : policyset : testmypolicyapi RuleCombiningAlgId urn : oasis : names : tc : xacml : 1.0 : rule-combining-algorithm : deny-o verrides xsi : schemaLocation urn : oasis : names : tc : xacml : 2.0 : policy : schema : oshttp : docs.oas is-open.org xacml 2.0 access control-xacml-2.0-context-schema-os.xsd Comment : if i remove policyset it works fine", "Question : Originally I asked How do you write a policy that requires a subject be granted access to a requested permission where the set of allowed permissions is in an external attribute store . Can you reference an external set of permissions in a policy The second question has been answered in the affirmative so I m revising the question a bit to focus on the how . Can someone provide a xacml policy snippet or even pseudo-xacml that requires a role attribute id will be provided by the request to be within a set of roles which are identified by another attribute id managed by external attribute store . For the sake of providing a starting point the following is an example from http : docs.oasis-open.org xacml 2.0 XACML-2.0-OS-ALL.zip . In this case the role is inline . Comment : It s really not helpful to rewrite a question into a different question after the first question is answered . Just create a new question so that the original question and its answers can stand as a reference for future generations . .. . Answer : Yes policies can be written to reference attributes that come from an external attribute store . However where the attributes actually come from is usually not specified in the policy itself other than perhaps by a naming pattern in the attribute ID . In the XACML PDP reference architecture it s the responsibility of the request context handler to resolve attribute IDs and produce values for the PDP . It goes something like this : While evaluating a request against a set of policies the PDP encounters an attributeID in a policy rule that it needs to form a decision about the request . The PDP asks the request context handler to get the value of that attributeID from whereever - the PDP doesn t care where it comes from . The request context handler may look for the attribute in the attributes provided with the request or in any number of external attribute providers such as LDAP or AD or SAML or plain old databases . The request handler might recognize naming patterns like namespace prefixes in the attributeID to know where to obtain it . You want your attributeIDs to be specific enough to know what they are and what they mean but not so specific that all of your policies break when you move your attribute provider to a different machine . Policies should be configuration independent . Ultimately where the request handler looks for attributes is a matter of configuration of the request handler PDP server and will vary by product vendor . Update : To answer the 2nd revision to this question .. . .. . You would write your policy to perform a comparison between the attribute value s provided in the request and a list of values provided by an external source . Keep in mind that an attribute designator returns a list of values since the request could contain multiple attribute values for the same attributeID . You can accommodate that by either by wrapping the attribute designator in a one-and-only reduction function or by using a many-to-many cross product match function that will test every member of list1 for a match in list2 . Unless you have a specific design requirement that the request is only allowed to contain one role attribute it s best to avoid the one-and-only reduction since it really limits your options . Your Xacml 2.0 policy could look something like this : forgive syntax errors my Xacml 2.0 is a little rusty .. . .. . The Xacml function at-least-one-member-of takes two lists as parameters . For every item in the first list it tests to see if that item exists in the second list . It returns true as soon as it finds at least one match . The attribute ...example : attribute : role from your example is the attribute you re expecting to be provided in the request . If you want to enforce that the attribute must be provided in the request you can set MustBePresent true in the attribute designator . The list-of-acceptable-roles.. . attribute is an attribute id that your PDP context handler recognizes and retrieves from some external provider . What prefix or pattern the context handler looks for and which provider it fetches from is a matter of PDP configuration . Ideally the naming pattern on the attribute id indicates a conceptual domain or namespace the id is associated with but the id does not explicitly indicate the physical location or provider of the attribute value s . For longer app lifetime with lower maintenance costs you want to be able to change your provider implementation details without having to rewrite all of your policies . You can have vendor-specific attribute ids that will probably only come from a single provider you can have application-specific attribute ids that could be supplied by multiple providers but only make sense for a particular application and you can have generic or standardized attribute ids that could come from multiple providers and be used in multiple applications . The Oasis standards body and domain-specific profiles are a good starting point for finding standardized attribute ids and their semantics or getting ideas on how to organize your own app specific ids . Depending on your PDP and context handler implementation it may also possible to use the Issuer field as a way to constrain the list of providers for an attribute . The Xacml spec doesn t say much about use of the Issuer field but the same goals of decoupling policy from provider implementation details still holds . Comment : Thank you for your response . Sounds like there just needs to be an attribute id for the set of the subject s roles . Comment : Yes that would do it for the policy def . You d then need a corresponding piece in the pdp request context handler that knows how to return the role names when the pdp says hey what s this attribute Comment : Updated to answer 2nd revision of this question . For future questions please create a new question instead of editing an existing question to preserve the context of the existing answers .", "Question : I went through the XACML document and it explains about maintaining authorization policies in an XML file the same can be done by keeping the policies in database My question is what is the advantage of storing policies in XML file like XACML over DB approach because at the end of the day its just parsing an XML or querying database . .. . Answer : @user3405607 : If I understand you correctly you are questioning the need for complicated XACML standard spec when a database evaluation engine would do the same job If so the answer is that a DB-based engine can only provide access-control decisions for simple rules mostly ACL related . For example if you have resources X Y Z and users A B C you could design a simple table like : .. . .. . But as you can see this will not scale . Of course you can then make role based ACL rather than using user - resource mapping . But again this will only cater to simple rules . How would you handle a simple rule A user in finance department can approve an order if he is not the one who raised the order and if the order amount is less than his maximum approval limit assuming the department is captured in an Active Directory Of course if all those details needed in the rule department order issuer amount max amount are all in a DB you could consider writing complex SQL queries to do the job for you but then again the policies containing rules can only get more complicated and soon you will end up with complex policies that turn into a complex decision-tree for which writing DB queries will be not worth the hassle . Also it will soon end up that you will actually have to write a good sized code to perform and parse all these queries and responses and in fact this will be the entity called a PDP in XACML literature . The need for XACML also goes beyond that since it defines a standards based policy language as well as a request-response protocol . I would suggest you to read up on some of the basic material on this matter since my explanation may not do justice to the complexity involved and the need for a dedicated evaluation engine that is not solely reliant on DB queries .", "Question : I wrote some obligations and advices but I was wondering if there is a widely accepted or formal way to do this properly In other words : Is there a standard or preferred way to use obligations and advices in ALFA I would really like to see an example how to define an obligation e.g . to log every request and its content in a layered policy that will always be triggered on every request both on deny and permit Or do you have to define a separate obligation for every Policyset policy and rule Do you have to define the exact content of such an obligation or is this depending on the functionality of the PEP .. . Answer : This is a great question . While the specification all versions do define the structure of an obligation and even advice in the case of XACML 3.0 the specification doesn t mention how the PEP policy enforcement point is to implement the obligation . All the specification mentions is what should happen if a PEP fails to implement an obligation i.e . what happens to the decision . From a PEP code perspective a best practice would be to write an ObligationHandler interface which you can implement for different obligations . The constructor for classes implementing the ObligationHandler interface would take the XACML request and response . Example .. . .. . Other resources : .. . .. . XACML Obligations http : stackoverflow.com questions 15831574 xacml-obligations .. . Enhancements and new features in XACML 3.0 http : www.webfarmr.eu 2010 07 enhancements-and-new-features-in-xacml-3-axiomatics Comment : Thank you very much David . I still wonder if it is possible in ALFA to define an obligation that will always be triggered on every request whether it is a DENY or a PERMIT for example when you want to force logging of every request . Can you help me I would really like to see an example in ALFA how to do this . Comment : I ll add a sample . You have to define the obligation twice : once on permit and once on deny Comment : @Morei I now added an example . Comment : Thanks again @david-brossard . If I understand correctly you always have to define an obligation within an on permit or on deny statement that comes right after the permit or deny keyword . For a policy it would be very appropriate to have an obligation that will alway be triggered . For example by having a kinda else or other branche that comes with the on deny and on permit . But I guess that s because XACML doesn t support it either Comment : That s correct . XACML forces you to define when the obligation will trigger .", "Question : I want to answer questions like what am I allowed to access by using XACML is their a workaround other than Axiomatics ARQ .. . Answer : I guess you want to ask the question what are the resources that bob can access from XACML PDP rather than just hoping for aboolean type permit deny result . According to the XACML core spec There is no mention about this type of queries . But You can implement it . One way is to use multiple decision profile . PEP can send all resources in the system actions and user bob in to the PDP Then PDP would response with multiple XACML results and PEP can filter out the permitted resources . Also Like Axiomatics There are be some xACML implementations that support this feature with their own ways . WSO2 Identity Server which is an open-source XACML engine also supports this feature . You can find more details from here http : xacmlinfo.org 2013 11 22 can-xacml-support-to-retrieve-allowed-permissions-for-given-subject . Identity Server has introduced a search API that would search in all policies and evaluate them to return accessible resources for given user . Also As mentioned above sometime you may implement same behavior using multiple decision profile http : xacmlinfo.org 2013 12 06 multiple-decision-profile-repeated-attribute-categories and hierarchical resource profile http : xacmlinfo.org 2013 12 09 multiple-decision-profile-hierarchical-resources . But It depends on your use-case . I guess this would help you . Comment : I am using SUN implementation is it possible with it Comment : I guess not it is not supported... . and even for XACML 3.0 that contain multiple decision profile.... . Comment : I can see two thing one is blana and other is WSO2is-6.0 which one to use also I dont need any web server as wso provide can I use it directly in my api Comment : Balana is a library and it is pure XACML 3.0 core spec implementation . You can use it for building your own XACML PDP. . It only provide a java API. . . WSO2 IS is a PDP engine that has been created using Balana... . It has web service API and also PAP Basically you can invoke this web service API using web service client or SOAP UI.. . web service client can be found here svn.wso2.org repos wso2 people asela xacml pep 4.2.X https : svn.wso2.org repos wso2 people asela xacml pep 4.2.X Comment : If I am making my own PDP so in that case will the DOM parsing of the xml to find my matching resource will be the right approach", "Question : I m working with XACML policies and I have a rule that includes a resource target similar to the following : .. . .. . I want this rule to apply to all subdirectories of Mydirectory . However if I were to evaluate a request with the resource MyDirectory MySubdirectory I would get a DECISION NOT APPLICABLE 3 response . Is there an XQuery function that would allow me to apply a rule to all subdirectories of a single directory .. . Answer : You may use urn : oasis : names : tc : xacml : 2.0 : function : anyURI-regexp-match and define the AttributeValue as a regular expression. . Comment : worked perfectly - thanks for the pointer", "Question : Can i have the sample XACML3 Policy which has multi attributes such as actions subjects and resources .. . Answer : Actually if you search through the internal you could find many XACML 3.0 sample policies . XACML 3.0 core specification also contains sample policies . However you can find lot of XACML 3.0 sample from this http : xacmlinfo.org blog . Also there are free tools and servers that help you to create XACML 3.0 policies . Such as WSO2 Identity Server http : xacmlinfo.org tag policy-editor ALFA Plugin https : www.axiomatics.com axiomatics-alfa-plugin-for-eclipse.html by Axiomatics and so on . Let me publish a simple policy that has been created from WSO2 Identity Server UI . This policy has been written for foo1 or foo2 resources . And it says users bob1 or bob2 can perform read or write actions on this foo1 or foo2 resources . Other all access to foo1 or foo2 resources have been denied .", "Question : First the user can have multiple roles at the same time and the role has-scope . For example one user has three roles : scopeA editor scopeA programmer scopeB editor .. . .. . and scopeA editor has access to resource scopeA post scopeA programmer has access to resource scopeA bug .. . .. . so the question comes : .. . .. . how can i declare a policy saying : if there is a role named XX editor in the role bag then the corresponding user has access to YY post when XX YY .. . .. . I found a similar question here http : stackoverflow.com questions 22262647 is-it-possible-to-compare-attributes-in-a-xacml-policy and i proposed a way to solve the problem but when it comes to multiple role the role attribute value is a bag my answer is not right . Because the role attribute value is a bag I cannot just get the part between the first two slashes of the role attribute value and compare to that of the resource attribute .. . .. . then i tried to find a higher-order bag function to do this the urn : oasis : names : tc : xacml : 3.0 : function : any-of function can do this but what about the first function argument of the any-of function here is what i do : the first argument of the any-of function is string-equal and the second argument is a function used to get the part between the first two slashes of the resouce-id the third argument is the attribute value of the subject which is a bag . so all i need to do is to define a function to get the part between the first two slashes right is there a better way to do what i want if anything is unclear plz let me know thanks .. . Answer : This is a great question . We call this issue the attributes of relations challenge . Essentially a user has a role within a given context or scope as you call it . If I read a user s role from the db based on the user s identity only then I would get back the list of roles independently of the scope e.g . editor publisher reviewer.. . This would lead to the risk I could edit a post outside the scope for which I have the right role . There are several ways to solve this issue . One way is to define stricter mappings in your policy information point . Using Policy Information Points .. . .. . Assume that the XACML request says : Can Alice edit post 123 . Your policy would state in ALFA syntax : .. . .. . The notion of scope doesn t directly show up in the policy . The underlying mapping to the source of attributes would be as follows : .. . .. . map userRole to the field role of the table usersRoleAssignment using SELECT role FROM usersRoleAssignment WHERE uid AND scope .. . uid would be mapped to the user identity that came in the XACML request . scope would be a resource attribute that would also be mapped in the PIP as follows .. . map scope to the field scope of the table posts using SELECT scope FROM posts WHERE pid .. . pid would be mapped to the identifier of the post in question . That also came in the XACML request . This means that your attribute userRole should really be called scopedUserRole . The modeling I gave is just one example . There are several other ways you could model with the same effect . Either way all the heavy lifting happens inside the PIPs . The main drawback is that you lose visibility of the semantics of your authorization logic . Using attributes values and functions .. . .. . Another way of achieving a similar result is to store the relationship between scope and role in the value itself . This is what you allude to in your question . You can use string functions such as string-starts-with or string-ends-with or string-contains to achieve what you re interested in . There is also a string-regexp-match function you can use . Details on the functions can be found in the XACML 3.0 specification http : docs.oasis-open.org xacml 3.0 xacml-3.0-core-spec-os-en.html Toc325047236 . If the functions are not sufficient in XACML you can : .. . .. . implement your own .. . implement a PIP that can process your attribute values and produce new ones . More on PIPs here http : developers.axiomatics.com blog index entry policy-information-point-in-five-minutes.html . Creating a new datatype called tuple .. . .. . The problem with XACML is that it flattens relationships . Using a new data type with multiple parts i.e . a Tuple would solve the issue . That would require custom coding though and quite some work . Using the XML content inside a XACML request .. . .. . If all the information comse from the XACML request then it could be expressed as an XML payload as part of the Content element inside a XACML request . You could then use attribute selectors and XPath to retrieve what you are interested in . HTH . Do check out both my blog http : webfarmr.eu and the Axiomatics blog http : developers.axiomatics.com for more tips . Comment : thanks david . right now i prefer the second way in your answer . i use a uri-style string type to represent the relationship of the role and scope . it s good all i need to do is to apply a rule to the scheme authorization and path part of the uri and to define some function to get different part of the uri-style string . i think xacml should support more uri-related functions Comment : i m not quite agree with the pip way to do this . some reason as you said", "Question : I followed the link https : community.jboss.org wiki SAMLV2AndXACMLV2Integration . to run pdp using SAML envelope on XACML . Then I created webservice pdp and pdpclient - in other words XACML Request Generator . Here every thing run fine i.e . generate request and get result perfect with the given test policies given by the followed link https : community.jboss.org wiki SAMLV2AndXACMLV2Integration . policies . Now I test pdp with my policies But in my point of view pdp isn t evaluate policies correctly . For Example here is my policy .. . .. . And here is my request .. . .. . Subject-Id : urn : oasis : names : tc : xacml : 1.0 : subject : outside-university Subject-Value : Staff .. . .. . Arttibute-Id : urn : oasis : names : tc : xacml : 1.0 : resource : file123 Attribute-Value : Server File .. . .. . Action-Id : urn : oasis : names : tc : xacml : 1.0 : action : delete123 Action-Value : Delete .. . .. . And Response I get is Deny . As you see that MustBePresent true in Subject Resource and Action of Policy-Target and Request contains none s Id . According to the XACML 2.0 if MustBePresent is true and IDs are NOT present in the request then the target will be Indeterminate . And if the target is policy-target then the whole policy will be indeterminate . But in this case after indeterminate policy-target PDP still evaluate the Rule and making result according to the Rule combining algorithm . Let me know if I am wrong . Comment : Are you implementing your own PDP Are you using Sun XACML Comment : I am Using JBoss implementation of PDP . .. . Answer : Actually at a quick glance you should be getting NotApplicable . You have the following structure : .. . .. . Policy .. . Rule 1 : ServerDataDeletion yields Permit .. . Rule 2 : Default yields Deny . Your Policy has a Target as follows : .. . .. . It will only apply if you are a Visitor trying to Delete a Server File . In your request you send Staff instead of Visitor . You should therefore get NotApplicable . If you get a chance move to XACML 3.0 . Check out the ALFA plugin for Eclipse https : www.axiomatics.com axiomatics-alfa-plugin-for-eclipse.html to write your policies easily .", "Question : I am new to XACML and getting the following error .. . .. . I have defined my attribute something like this : .. . .. . My XACML file is : .. . .. . Where am I going wrong I am using Sun XACML implementation . .. . Answer : After observing your code I found that you are trying to cast a String type to Attribute Type of class com.sun.xacml.ctx.Attribute . Pass the parameters as it is defined by the attribute class : Attribute Class http : sourceforge.net p sunxacml svn 137 tree trunk sunxacml com sun xacml ctx Attribute.java Paste your code in the Pastebin http : pastebin.com so that i can take a look .", "Question : I ve read through the 3.0 specs and had a question here : .. . .. . I found PolicySet and Policy share many similarities like the combining algorithms etc . And to accommodate more levels PolicySet also can be self-containable . If so why not merge PolicySet and Policy into a single concept named Policy and make Policy contain other Policies and Rules .. . .. . Update : .. . .. . Speaking of Rule actually Rule doesn t differ with Policy much either except that Rule has Condition and Effect and doesn t have a combining algorithm . What I am thinking of now is merging the three conceptions : PolicySet Policy Rule into a single new Policy . This Policy is self-containable and can has its Condition and Effect . If its combining algorithm returns Intermediate then use its own Effect . The whole policy is not applicable if its own Condition fails to meet the request . I personally think this one-concept model is more concise and clear than the PolicySet Policy and Rule . .. . .. . For example for a four-level policy if there s a demand for a four-level policy for a big enterprise XACML will represent like : .. . .. . PolicySet - PolicySet s - Policy s - Rule s .. . .. . My modification would be : .. . .. . Policy - Policy s - Policy s - Policy s .. . .. . Compared to the XACML s two-level PolicySets and a level Policy and Rule I think a straightforward four-level Policies would be clearer .. . Answer : The fact both exist is a quirk of the language . You could imagine a language with a leaf element the rule and a branch the policy . Both Policy and PolicySet are very similar . When modeling in XACML you can assimilate them . You d have a policy that can contain other policies XOR rules but not both at the same time .. . .. . EDIT .. . .. . Following the OP s edit here is a bit more context . XACML Structural Elements .. . .. . XACML introduces 3 structural elements : .. . .. . PolicySet PS .. . Policy P .. . Rule R .. . .. . As the OP states PolicySet can contain Policy and PolicySet thus allowing for an overall tree that is as deep as the author wants it to be PS -- PS -- PS .. . -- P -- R . Contents of PolicySet Policy and Rule .. . .. . All three elements PS P R can contain : .. . .. . Target elements : the target is what defines the scope of the element . A target is made up of an AND OR AND structure and attribute matches e.g . role manager OR role editor . Obligations advice : obligations and advice are statements that are returned along with a decision from the PDP policy decision point back to the PEP policy enforcement point .. . .. . Combining Algorithms .. . .. . Because PolicySet and Policy elements can contain children they need a mechanism to resolve conflicts between children . That mechanism is called a combining algorithm . Therefore both PolicySet elements and Policy elements have a combining algorithm property . Since PolicySets contain other PolicySets and or Policy elements the combining algorithm in a PolicySet is called a policy combining algorithm . Since Policy elements contain Rules only the combining algorithm is called a rule combining algorithm . Another quirk of XACML is that the list of combining algorithms for policies is nearly almost the same as for rules . The notable differences are : .. . .. . only-one-applicable exists only for policies . on-permit-apply-second exists only for policies . Here is the list in the ALFA https : en.wikipedia.org wiki ALFA XACML notation ALFA is a pseudo-language developed by Axiomatics http : www.axiomatics.com solutions products authorization-for-applications developer-tools-and-apis 192-axiomatics-language-for-authorization-alfa.html to simplify XACML policy authoring : .. . .. . Targets Conditions .. . .. . Targets .. . .. . As previously stated Target elements can exist in any of PolicySet Policy and Rule . A Target has a set structure of AND OR AND elements to combine together attribute matches i.e . the comparison of a given attribute to a given value . XACML provides a long list of functions that can be used . In a target only functions that take 2 atomic-values and return a boolean can be used e.g . or urn : oasis : names : tc : xacml : 1.0 : function : string-equal . Other functions e.g . sum urn : oasis : names : tc : xacml : 1.0 : function : integer-add cannot be used . Conditions .. . .. . In particular there is one really useful thing Target elements cannot do : compare two attributes together i.e . establish a relationship . Imagine for instance you want to write a Policy that states : .. . .. . Doctors can view the medical record of a patient they are assigned to . Or in other words Permit if userId assignedDoctorId . This is where Condition elements kick in . A Condition is an expression that can use any function available in XACML . The overall outcome of the Condition must be a boolean but now you can do things like sum age limit 5 or userId assignedDoctorId . And here comes another quirk : Condition elements can only be used inside a Rule element . So if you want to express a relationship in XACML you will need to have at least one Rule . And since a Rule element cannot live on its own . You will have to have at least one Policy element . So the smallest possible XACML policy is using ALFA : .. . .. . And the resulting XACML XML code is : Comment : hi I updated the question a bit thanks Comment : Yes I saw . You are on the right track .", "Question : I m learning XACML 3.0 and want to ask if I have two attributes with different ID But in the same category i.e Category urn : oasis : names : tc : xacml : 3.0 : attribute-category : resource this interpretation as two different attributes for the same category or as two separate request with a single attribute . Thank you . .. . Answer : If you create a XACML request with 4 different categories e.g . Subject Action Resource and Environment and you add one or more attributes per category then you will always obtain a single request and therefore a single response . Example : .. . .. . The aforementioned XACML request means .. . .. . Can Alice the manager view medical record doc 123 If you create a XACML request where you repeat a category several times then you are building a Multiple Decision Request . For instance we could ask .. . .. . Can Alice the manager view and edit medical record doc 123 In XACML this would become : .. . .. . Note that the order of the categories do not matter . You can also give your categories XML identifiers and create a XACML multiple decision request by reference but this is not as commonly used . You will find an interesting article on the topic and on the Axiomatics SDK here http : www.axiomatics.com blog entry authoring-multiple-decision-profile-requests-2.html . Comment : Thank you it s clear for me now Moreover I doubt if sent two attributes with the same ID and the same category but with different value then have a bag of two values for the same attribute this is correct", "Question : After creating the XACML Policy trying to publish it to PDP but getting error .. . .. . 2014-07-10 06 : 30 : 15 910 ERROR - ApplicationDispatcher Servlet.service for servlet bridgeservlet threw exception java.lang.NoSuchMethodError : org.wso2.carbon.identity.entitlement.stub.EntitlementPolicyAdminServiceStub.publishPolicies Ljava lang String Ljava lang String Ljava lang String Ljava lang String ZI at org.wso2.carbon.identity.entitlement.ui.client.EntitlementPolicyAdminServiceClient.publish EntitlementPolicyAdminServiceClient.java : 414 at org.apache.jsp.entitlement.publish 002dfinish jsp . jspService org.apache.jsp.entitlement.publish 002dfinish jsp : 133 at org.apache.jasper.runtime.HttpJspBase.service HttpJspBase.java : 111 at javax.servlet.http.HttpServlet.service HttpServlet.java : 848 at org.apache.jasper.servlet.JspServletWrapper.service JspServletWrapper.java : 403 at org.apache.jasper.servlet.JspServlet.serviceJspFile JspServlet.java : 492 at org.apache.jasper.servlet.JspServlet.service JspServlet.java : 378 at javax.servlet.http.HttpServlet.service HttpServlet.java : 848 at org.wso2.carbon.ui.JspServlet.service JspServlet.java : 155 at org.wso2.carbon.ui.TilesJspServlet.service TilesJspServlet.java : 80 at javax.servlet.http.HttpServlet.service HttpServlet.java : 848 .. . .. . Could you please suggest to resolve the above error . Thanks Asit Comment : I ve not used wso2 but I can t help thinking your question would be easier to answer if you provided your XACML Policy and the steps command you are using to publish it . Can you publish a different policy Perhaps someone else s simple example policy . Comment : This seems more like an issue with the method-signature you used . Can you share the EntitlementPolicyAdminServiceStub version you are using at the client and the WSO2 Identity Server version in use .. . Answer : I too encountered this issue and the reason was due to some conflicts of copying org.wso2.carbon.identity.entitlement.stub jars in different versions when installing XACML via feature manager . If you are installing XACML 2.2 and XACML mediator 2.2 it should copy org.wso2.carbon.identity.entitlement.stub 4.2.1 . I could resolve it as follows .. . .. . 1 . Go to repository components and open artifacts.xml . Find the artifact id org.wso2.carbon.identity.entitlement.stub and change the version to 4.2.1 there may have two artifacts with different versions 4.2.0 and 4.2.1 .. . 2 . Go to repository components default configuration org.eclipse.equinox.simpleconfigurator and open bundles.info file . Find the line org.wso2.carbon.identity.entitlement.stub 4.2.0 and remove it . there should be a same entry with version 4.2.1 .. . .. . Then try to publish to PDP .. . .. . Thanks Nipuni" ] }
[ "yes-answer-long", "yes-answer-short" ]
oasis
UNK_RELATION
x-tag@javascript@27
x-tag -- x-tag is a small @placeholder library created and supported by mozilla that enhances and simplifies development of web components .
{ "confidence": [ 48.05814743041992, 45.87493133544922, 45.504913330078125, 45.24592971801758, 44.474365234375, 44.27037048339844, 42.15538787841797, 41.460533142089844, 41.335121154785156, 40.36201095581055, 38.298091888427734, 38.28856658935547, 36.195316314697266, 35.197357177734375, 34.54084396362305, 34.247337341308594, 34.247337341308594, 33.44837188720703, 32.623451232910156, 32.40991973876953, 32.17491149902344, 31.77635955810547, 31.74417495727539, 31.74417495727539, 31.74417495727539, 31.74417495727539, 30.389270782470703, 30.016780853271484, 29.754430770874023, 29.490081787109375, 29.490081787109375, 29.382953643798828, 29.382953643798828, 29.382953643798828, 29.382953643798828, 28.998416900634766, 28.765384674072266, 28.765384674072266, 28.765384674072266, 28.765384674072266, 28.04555892944336, 28.02804946899414, 27.811107635498047, 27.222919464111328, 27.150096893310547, 26.907108306884766, 26.860488891601562, 26.777481079101562, 26.76862907409668, 26.73830223083496, 26.265220642089844, 26.234760284423828, 25.551734924316406, 25.51415252685547, 25.383399963378906, 25.06850242614746, 24.87258529663086, 24.731653213500977, 24.254627227783203, 24.009002685546875, 23.92784881591797, 23.759511947631836, 23.649633407592773, 23.285850524902344, 23.192951202392578, 23.127653121948242, 22.385114669799805, 21.992313385009766, 21.377696990966797, 20.78021240234375, 20.51471710205078, 20.51471710205078, 20.4802188873291, 20.30706024169922, 20.30706024169922, 20.148862838745117, 20.087417602539062, 19.56003761291504, 19.234657287597656, 19.035247802734375, 19.035247802734375, 18.792259216308594, 18.402164459228516, 18.402164459228516, 18.23529815673828, 18.03777503967285, 17.801422119140625, 17.399736404418945, 17.244644165039062, 16.880393981933594, 16.469982147216797, 16.064220428466797, 16.064220428466797, 15.997289657592773, 15.997289657592773, 15.997289657592773, 15.925369262695312, 15.705875396728516, 15.705875396728516, 15.453641891479492 ], "content": [ "In my project I m using Mozilla x-tag http : x-tags.org .", "x-tag-core x-tag-flipbox etc", "Mozilla s is called Mozilla Brick and uses X-Tag .", "X-Tag is another library that is even thinner because it only relies on one of the four Web Components technologies .", "Note : This question is based on an old version of Mozilla x-tag .", "I created this tag called x-master .", "What is x-tag-imports", "Both x-tag and Polymer provide a convenient and opinionated wrapper around web-components that greatly reduce boilerplate code .", "The website says .. . .. . X-Tag is a Microsoft supported open-source JavaScript library that wraps the W3C standard Web Components family of APIs to provide a compact feature-rich interface for rapid component development .", "x-tag add a custom attribute with it and assign it the same value as the tag so the html looks like x-tag CustAttr x-tag .", "I was used on one of the tutorial video on the polimer website youtube.com http : www.youtube.com watch v 75EuHl6CSTo list PLRAVCSU HVYu-zlRaqArF8Ytwz1jlMOIM index 10 here it is the github project link : github.com x-tag x-tag-imports https : github.com x-tag x-tag-imports", "I raised an issue : github.com x-tag core issues 76 https : github.com x-tag core issues 76", "Recently Microsoft started with a new X-Tag http : x-tag.github.io library to create custom elements .", "I wrapped the dimple library in my custom created tags created using x-tag webcomponents to remove chunks of imperative javascript .", "I think x-tag polymer and web-component systems are not only about creating new tags .", "I believe you re going about using x-tag the wrong way .", "Is there a way to import content via an X-Tag register from an external file", "I m trying to import the tag using HTMLImports through the x-tag library but the WebComponentsReady event never fires and I m seeing my elements come through as HTMLUnknownElements .", "It looks like Cucumber doesn t render the page properly with the x-tag .", "It looks like it doesn t see the x-tag http : x-tags.org I am using .", "Infact the original developer - Daniel https : twitter.com csuwildcat used to work at Mozilla when he created the X-Tag project but since then he has moved to Microsoft .", "What would be the way to document a web-component using jsdoc3 http : usejsdoc.org .. . .. . Here is an example of web-component registered with x-tag .", "can any one give me some idea about difference between polymer x-tag and vanilla js", "I have used polymer in my project but i want comparison of polymer x-tag and vanilla js .", "I ve written an article about that : http : pascalprecht.github.io 2014 07 21 polymer-vs-x-tag-here-is-the-difference", "However it seems that the x-flipbox tag-it is only working on the index page and not inside my custom elements .", "With x-tag I am trying to find a way to extend every html element that I put is : ajax-pop attribute .", "And as the link from Mozilla going to x-tags.org http : x-tags.org redirects too x-tag.github.io http : x-tag.github.io yes both X-Tag s are the same thing .", "Polymer is a library that act as a very thin layer on top of the Web Components technologies .", "IMHO the Polymer library provides the most declerative approach regarding data-binding defining templates etc .. . .. . This is how it looks like with x-tag : .. . .. . This is how it would look like with Polymer :", "Hey there this is the library author let me clear this up : .. . .. . For any listener you set in the DOM X-Tag or vanilla JS you can always use the standard property e.currentTarget to access the node the listener was attached to .", "I would advise grabbing the latest version of X-Tag - the spec changed as it has moved through later stages of the standardization process that version is quite old .", "The x-tag spec has the following signature in pure JS - .. . .. . Where obviously methods accessors and events can have multiple entries .", "Hi all I am trying to create a custom Polymer Element that uses the x-flipbox element inside its template tag .", "You don t need to include it as a import that s an old wrapper thing the Polymer folks wrote for including X-Tag elements it s probably what s complicating this .", "The API in-place now for X-Tag will be compatible with the final spec and can be used now across all major browsers all the way back to IE9 : http : x-tags.org .. . .. . Here s what your code would look like optimized with X-Tag s built-in features :", "Since X-Tag is also just JavaScript you can simply use the corresponding annotations provided by jsdoc .", "I m not clear on the error being in firefox dimple my x-tag implementation or some combination of all three .", "Dimple is not too popular yet and x-tag is extremely obscure hard to find info on them .", "In the absence of native Custom Element support X-Tag uses a set of polyfills shared with Google s Polymer framework .", "The template tag is showing up as empty .", "X-tag is meant to be used to implement entirely new tags what you re trying to do is simply modify different pre-existing DOM elements .", "Web Components is the native implementation in the browsers .", "Hence it is now a Microsoft-supported project founded by an x-Mozillian .", "How can I select nodes that begin with a x- tag name here is an hierarchy DOM tree example : .. . .. . jQuery does not allow me to query x- is there any way that I could achieve this", "You can simply include the JS as a script and CSS as a link rel stylesheet inside of the x-flipbox repo s src directory where you have your link rel import for the flipbox .. . .. . Repo : https : github.com x-tag flipbox tree master src", "When we use polymer or x-tag we have to register a new element .", "While X-Tag offers feature hooks for all Web Component APIs Custom Elements Shadow DOM Templates and HTML Imports it only requires Custom Element support to operate .", "x-map x-map", "I am trying to use x-tag accessors but I m not finding a good documentation about them.I would like to pass a function through an accessor and write something like this : .. . .. . And I want to save that function and use it later .", "For example : parent-tag parent-attribute parent child-tag child-attribute child1 child-tag child2 child-tag parent-tag I can get parent-attribute using accessors but how do I get child-attribute or value of the second child-tag", "For X-Tag whether you re using the delegate pseudo or not e.currentTarget will always refer to your custom-element : .. . .. . Remember this is a standard API for accessing the element an event-listener was attached to more here : https : developer.mozilla.org en-US docs Web API Event currentTarget", "So in other words you cannot overspecify a tag", "In this part : .. . .. . each time a x-master initialized jsonurl is assign a value from current x-master .", "Per this comment https : github.com x-tag core issues 76 issuecomment-41218168 : .. . .. . When you extend an element you need to use the is syntax in your markup : .", "You can view our package options in the Builds section .. . .. . As far as I remember not so long ago even Mozilla had a similar project with the exact same name X-Tag https : developer.mozilla.org en Apps Tools and frameworks Web components .", "I m working on my first X-Tag application and on it s page it says it s meant to work with Web Component API s such as Custom Elements Shadow DOM Templates and HTML Imports .", "However how does that work when a set of tag hierarchy works together to create a result : .. . .. . chart-tag width 300 height 300 chart-x-axis isVisible false chart-y-axis min 0 max 100 chart-legend this is the legend chart-legend chart-tag .. . .. . In order to convert this made-up tag soup into a chart I need to get all values from all nodes .", "custom jquery selector .. . .. . than use : X or : X to select your nodes .", "This is a solution when you need to extend button tag I know alrady : .", "@Scott Selby : : contains is for text not tag names .", "I thought about this solution also. . but the problem is that you need to add an attribute everytime the idea behind the tag name beginning with x- was to help querying instead of allowing all type of custom elements without any pattern", "Make the jsonurl a property of the object not a variable shared by all the x-master .", "I added type text javascript to my element s script-tag and now everything works .", "The use-case for the extends property seems very straight-forward http : www.x-tags.org docs custom-tag-registration-extends however testing with the following tag definition : .. . .. . and markup : .. . .. . there doesn t seem to be any effect i.e .", "VanillaJS only means using web-components without any framework wrapper in pure JS .", "What i mean is when you add a tag for eg .", "This is not valid HTML and check the x-tags.org itself is not valid .", "Now to get tags starting with x- you can use the following jQuery code : .. . .. . .. . and you will get all the tags that start with x-", "Thanks to Florian Margaine http : stackoverflow.com questions 14022928 handling-multiple-x-tags answer-14023031 who got me to this right solution .", "So rather than person you would use my-person or x-person .", "Are you wanting to change the contents of x-modal dynamically or just load a template from an html file", "I can use a normal es6 constructor and the custom tag is recognized .", "I m attempting to create a custom html tag using Mozilla s http : www.x-tags.org .", "Edit : - Assuming ElementType is my own Copy of Element i am not trying to modify existing Tag Element", "However Web Components syntax can have its own kind of additional meaning .", "I am making use of the x-tags .", "I got two of those tags in my index.html : .. . .. . xtag component looks like this : .. . .. . My problem : When I call the method getContent for id x-one it prints : source2 .", "1 This gave rise to the hack where developers would create a dummy HTML5 tag in IE e.g article using JavaScript so that they could then style it per any normal element with CSS .", "Working fiddle http : jsfiddle.net venkateshwar JfNbt 3 .. . .. . PS : In above sample I am considering body tag as parent element .", "I have been able to register a test tag and use it correctly however I can t find any good examples of nested tags .", "It s about creating maintainable and reuseble components or extending them also .", "Provide an abstraction for a blob of html .. . You have achieved this by using a tag and appending your blob to component manually .", "Essentially you ll have an html tag with which browser won t know what to do .", "How to do this : .. . .. . .. . function window document undefined .. . function props .. . this.jsonurl .. . .. . .. . xtag.register x-master .. . onCreate : function .. . this.props new props .. . this.props.jsonurl this.getAttribute data-src .. . .. . methods : .. . getContent : function .. . .getJSON this.props.jsonurl function data console.log jsonurl .. . .. . .. . this this.document .. .", "I manually tested two of my components .", "actually is a new way to declare custom elements just like x-tags.org http : www.x-tags.org or polymer-project.org http : www.polymer-project.org project", "It s only Mozilla who said it won t implement it for Firefox .", "I m getting the sense that extends is not going to save you any time effort based on the latest comment on the bug : It probably isn t testing anything you need it to at the moment because while you can use an existing native element prototype as your base none of its methods will work on the newly created x-whatever element you make .", "You can do this using x-tag s delegate pseudo and by adding a data- attribute to elements you wish to have this behavior : .. . .. . article data-pop path to content.html article .. . .. . And your JavaScript would be something like this : .. . .. . Here s a codepen example : http : codepen.io jpecor-pmi pen Vexqyg", "This is a link-to codepen where I use a small sample of those components : http : codepen.io sergio0983 pen bZRNgj editors 1010 .. . .. . For some reason the viewer doesn t work in codepen but the blob url does if you open it with the inspector and open in a new link you can see the pdf .", "Example : .. . .. . Full example : .. . .. . http : jsfiddle.net 6b8YY 3 .. . .. . Notes : Updated see comments .. . .. . If you are wondering why I use this way for checking tag name see : .. . JavaScript : case-insensitive search http : stackoverflow.com questions 177719 javascript-case-insensitive-search .. . and see comments as well .", "In the parent tag by the time inserted lifecycle is called all child nodes have been parsed and can be accessed by .. . .. . Reference to child nodes can be used to traverse its attributes : childnode.attribute1 .. . .. . Note that child tags must also be registered although there doesn t seem to be a need to link parent and child tags in any direct way .", "We make our own xtag components and we have a bunch of js functions .", "Example : .. . .. . Before I get any comments on it we can t have singleton xtag components that I am aware of .", "I am creating some custom components for my forms inputs checkboxes etc.. . And a custom file input .", "But the polyfill http : webcomponents.org is still available and supported .", "Although authors could always use non-standard tag names in their documents with application-specific behavior added after the fact by scripting or similar such elements have historically been non-conforming and not very functional .", "Custom lifecycle callbacks .. . What is being done inside constructor of AComponent class can be moved inside createdCallback and it will be executed whenever your custom tag is encountered by DOM renderer .", "In the documentation doesn t seem to be any list of custom-events available ." ] }
{ "confidence": [ 60.826629638671875, 49.23124313354492, 48.322200775146484, 47.35942459106445, 46.91519546508789, 46.45827102661133, 44.6317138671875, 39.23563003540039, 37.331790924072266, 36.75836181640625, 36.28559494018555, 35.34025192260742, 33.954402923583984, 33.38219451904297, 31.963043212890625, 31.264789581298828, 29.830293655395508, 29.785808563232422, 29.465791702270508, 29.432981491088867 ], "content": [ "Question : Recently Microsoft started with a new X-Tag http : x-tag.github.io library to create custom elements . The website says .. . .. . X-Tag is a Microsoft supported open-source JavaScript library that wraps the W3C standard Web Components family of APIs to provide a compact feature-rich interface for rapid component development . While X-Tag offers feature hooks for all Web Component APIs Custom Elements Shadow DOM Templates and HTML Imports it only requires Custom Element support to operate . In the absence of native Custom Element support X-Tag uses a set of polyfills shared with Google s Polymer framework . You can view our package options in the Builds section .. . .. . As far as I remember not so long ago even Mozilla had a similar project with the exact same name X-Tag https : developer.mozilla.org en Apps Tools and frameworks Web components . How are these projects different from each other Or are they the same project with a renewed branding Comment : Mozilla s is called Mozilla Brick and uses X-Tag . And as the link from Mozilla going to x-tags.org http : x-tags.org redirects too x-tag.github.io http : x-tag.github.io yes both X-Tag s are the same thing . .. . Answer : After some digging I managed to find out a thread on reddit https : www.reddit.com r webdev comments 3t76r1 1st microsoftsupported xtag release 15 just which confirms that they are indeed the same project . Infact the original developer - Daniel https : twitter.com csuwildcat used to work at Mozilla when he created the X-Tag project but since then he has moved to Microsoft . Hence it is now a Microsoft-supported project founded by an x-Mozillian . Also confirmed on Twitter https : twitter.com csuwildcat status 666692606311555072 s 09 .", "Question : can any one give me some idea about difference between polymer x-tag and vanilla js I have used polymer in my project but i want comparison of polymer x-tag and vanilla js . Comment : Did you tried to google Comment : @Java User Yes i have tried but don t get any clear comparison . Thanks for reply . .. . Answer : Web Components is the native implementation in the browsers . Polymer is a library that act as a very thin layer on top of the Web Components technologies . X-Tag is another library that is even thinner because it only relies on one of the four Web Components technologies . I ve written an article about that : http : pascalprecht.github.io 2014 07 21 polymer-vs-x-tag-here-is-the-difference", "Question : Note : This question is based on an old version of Mozilla x-tag . In my project I m using Mozilla x-tag http : x-tags.org . I created this tag called x-master . I got two of those tags in my index.html : .. . .. . xtag component looks like this : .. . .. . My problem : When I call the method getContent for id x-one it prints : source2 . How can I prevent this behaviour .. . Answer : In this part : .. . .. . each time a x-master initialized jsonurl is assign a value from current x-master . That s why you always get the data-src of the last element .", "Question : can any one give me some idea about difference between polymer x-tag and vanilla js I have used polymer in my project but i want comparison of polymer x-tag and vanilla js . Comment : Did you tried to google Comment : @Java User Yes i have tried but don t get any clear comparison . Thanks for reply . .. . Answer : VanillaJS only means using web-components without any framework wrapper in pure JS . You have to register your custom-element stamping out the element and taking care of data-binding yourself . Both x-tag and Polymer provide a convenient and opinionated wrapper around web-components that greatly reduce boilerplate code . IMHO the Polymer library provides the most declerative approach regarding data-binding defining templates etc .. . .. . This is how it looks like with x-tag : .. . .. . This is how it would look like with Polymer :", "Question : Note : This question is based on an old version of Mozilla x-tag . In my project I m using Mozilla x-tag http : x-tags.org . I created this tag called x-master . I got two of those tags in my index.html : .. . .. . xtag component looks like this : .. . .. . My problem : When I call the method getContent for id x-one it prints : source2 . How can I prevent this behaviour .. . Answer : The solution for this to work is to make an object with the jsonurl . Thanks to Florian Margaine http : stackoverflow.com questions 14022928 handling-multiple-x-tags answer-14023031 who got me to this right solution . How to do this : .. . .. . .. . function window document undefined .. . function props .. . this.jsonurl .. . .. . .. . xtag.register x-master .. . onCreate : function .. . this.props new props .. . this.props.jsonurl this.getAttribute data-src .. . .. . methods : .. . getContent : function .. . .getJSON this.props.jsonurl function data console.log jsonurl .. . .. . .. . this this.document .. .", "Question : Note : This question is based on an old version of Mozilla x-tag . In my project I m using Mozilla x-tag http : x-tags.org . I created this tag called x-master . I got two of those tags in my index.html : .. . .. . xtag component looks like this : .. . .. . My problem : When I call the method getContent for id x-one it prints : source2 . How can I prevent this behaviour .. . Answer : I would advise grabbing the latest version of X-Tag - the spec changed as it has moved through later stages of the standardization process that version is quite old . The API in-place now for X-Tag will be compatible with the final spec and can be used now across all major browsers all the way back to IE9 : http : x-tags.org .. . .. . Here s what your code would look like optimized with X-Tag s built-in features : Comment : True . Added a note at the start of the question .", "Question : Note : This question is based on an old version of Mozilla x-tag . In my project I m using Mozilla x-tag http : x-tags.org . I created this tag called x-master . I got two of those tags in my index.html : .. . .. . xtag component looks like this : .. . .. . My problem : When I call the method getContent for id x-one it prints : source2 . How can I prevent this behaviour .. . Answer : Make the jsonurl a property of the object not a variable shared by all the x-master . Comment : I think this might be close to the answer I am looking for . Shouldn t I create a new instance on props Comment : @Klaasvaak not really the register function only expects one object . Comment : @Klaasvaak I edited to use a better solution simply putting jsonurl in a closure . Comment : Oke I tryed your answer but it gives me the same problem . jQuery.extend props instead of just props in the register function gives the same problem aswell . Comment : @Klaasvaak glad you got it sorted out", "Question : With x-tag I am trying to find a way to extend every html element that I put is : ajax-pop attribute . What I want to do is when I click an element with is : ajax-pop attribute I will do some dynamic ajax loads . It will be a good starting point for me to develop a manageble system . I know I can do it with some different ways but I am wondering is there a way to do it like this way extends : every single native html element .. . Answer : I believe you re going about using x-tag the wrong way . X-tag is meant to be used to implement entirely new tags what you re trying to do is simply modify different pre-existing DOM elements . This can easily be done in pure javascript or more easily in jquery by assigning each desired element a shared class . Comment : I think x-tag polymer and web-component systems are not only about creating new tags . It s about creating maintainable and reuseble components or extending them also .", "Question : I need to delegate a tap event to a close button in a custom-element and in turn call a close method on the root element . Here is an example : .. . .. . .. . xtag.register settings-pane .. . lifecycle : .. . created : function .. . var tpl document.getElementById settings-pane .. . clone document.importNode tpl.content true .. . .. . this.appendChild clone .. . .. . .. . events : .. . tap : delegate button.close : function e .. . rootElement.close - I don t know the best way to get rootElement .. . .. . .. . methods : .. . close : function .. . this.classList.add hidden .. . .. . .. . .. . .. . .. . template id settings-pane .. . button class close button .. . template .. . Answer : Hey there this is the library author let me clear this up : .. . .. . For any listener you set in the DOM X-Tag or vanilla JS you can always use the standard property e.currentTarget to access the node the listener was attached to . For X-Tag whether you re using the delegate pseudo or not e.currentTarget will always refer to your custom-element : .. . .. . Remember this is a standard API for accessing the element an event-listener was attached to more here : https : developer.mozilla.org en-US docs Web API Event currentTarget Comment : This is the correct way to do it . I forgot about event.currentTarget . I have some refactoring to do . Thanks for your help .", "Question : null .. . Answer : I have a strange problem and am not quite sure how to narrow the source of the bug not a web developer . A web page 1 which visualizes about 8 megs of data renders correctly on chrome and safari but blows up on firefox possibly IE as well . I m using dimplejs visualization library which is based on D3 . I wrapped the dimple library in my custom created tags created using x-tag webcomponents to remove chunks of imperative javascript . Firefox shows only one of the 35 charts and even that is extremely garbled . Further firefox console shows NS ERROR FAILURE : error in the dimple library but I can t find much information on that error seems to be a catch all error . I m not clear on the error being in firefox dimple my x-tag implementation or some combination of all three . Dimple is not too popular yet and x-tag is extremely obscure hard to find info on them . Forget about a solution how can I find out which component library is causing the problem 1 http : rule605.targetcompid.com report.htm mc ALL symbol ALL month 201409 http : rule605.targetcompid.com report.htm mc ALL symbol ALL month 201409 Comment : Just for info opening error console I receive 78 JS errors all related to incorrect path values for example containing NaN might be the same problem I think you have a problem while receiving the data . The NS ERROR FAILURE normaly indicates that you have a XMLHttpRequest onerror handler in which you tried to read the result s status or statusText when that value is not available on the object . Comment : @axel.michel I believe those errors are due to data d3 looking up values when they don t exist . Unexpected zeroes missing axis etc . In other words I believe those errors are just due to the nature of data .", "Question : Hi all I am trying to create a custom Polymer Element that uses the x-flipbox element inside its template tag . However it seems that the x-flipbox tag-it is only working on the index page and not inside my custom elements . This is my custom-element what am I doing wrong The element above is just showing the two divs . This one pasted in the index.html shows only one div as it should . In addition how can I debug this kind of issues I am new to polymer and the console is not giving me any error warning Comment : What is x-tag-imports I can t find it on Bower . Comment : I was used on one of the tutorial video on the polimer website youtube.com http : www.youtube.com watch v 75EuHl6CSTo list PLRAVCSU HVYu-zlRaqArF8Ytwz1jlMOIM index 10 here it is the github project link : github.com x-tag x-tag-imports https : github.com x-tag x-tag-imports Comment : Does the xtag js object exist in global-scope Open console type xtag Comment : Also did bower bring in all dependencies x-tag-core x-tag-flipbox etc Comment : This is what I get on the console : i62.tinypic.com 2r5f13q.png http : i62.tinypic.com 2r5f13q.png .. . Answer : You don t need to include it as a import that s an old wrapper thing the Polymer folks wrote for including X-Tag elements it s probably what s complicating this . You can simply include the JS as a script and CSS as a link rel stylesheet inside of the x-flipbox repo s src directory where you have your link rel import for the flipbox .. . .. . Repo : https : github.com x-tag flipbox tree master src", "Question : What would be the way to document a web-component using jsdoc3 http : usejsdoc.org .. . .. . Here is an example of web-component registered with x-tag . .. . Answer : Since X-Tag is also just JavaScript you can simply use the corresponding annotations provided by jsdoc . So things like @memberof etc . However Web Components syntax can have its own kind of additional meaning . For example you probably want an annotation for @element or @lifecycleCallback and stuff like this . This is not provided by jsdoc and therefore e.g . Polymer uses it s own documentation annotation using core-component-page . You either use what jsdoc provides and see what annotations fit best for your use-case or you use something like dgeni https : github.com angular dgeni which lets you build a documentation tool pipe entirely from scratch so you have full control over your annotations etc . Comment : you can simply use the corresponding annotations provided by jsdoc : this is my question : is there a usual way to do it Should I use @lends creates types with @typedef etc . Comment : There s nothing that stops you from that .", "Question : This works in chrome but it borks in IE . I m trying to import the tag using HTMLImports through the x-tag library but the WebComponentsReady event never fires and I m seeing my elements come through as HTMLUnknownElements . And I m getting this in the console.. . .. . .. . window loaded .. . HTMLImportsLoaded .. . element object HTMLUnknownElement .. . template object HTMLUnknownElement undefined .. . SCRIPT5022 : HierarchyRequestError .. . 014 xtag line 17 character 13 .. . .. . HTMLImports is just plain failing . Not sure why but if i define the custom-element in the main html file it works just fine . I m testing in Safari too . The template tag is showing up as empty . So.. . template tags fail when imported but the actual import itself is working . .. . Answer : Jeeeeez . I added type text javascript to my element s script-tag and now everything works . Comment : Yeah all other browsers not infer a missing type attribute to be javascript - naturally IE fancies itself a special snowflake .", "Question : The use-case for the extends property seems very straight-forward http : www.x-tags.org docs custom-tag-registration-extends however testing with the following tag definition : .. . .. . and markup : .. . .. . there doesn t seem to be any effect i.e . the text is not bold and worse it breaks on Chrome . I ve tested IE11 FF28 Safari 5.1.17 and Chrome 33 35 . Every browser except Chrome runs code in lifecycle.created i.e . changes the text to FOO . If I remove the extends property it runs on Chrome as well . I haven t been able to find any more documentation on extends than the documentation above nor any tags that uses it although I certainly haven t looked at all of them.. . . Am I perhaps just using the extends property incorrectly. . Comment : Same exact issue here . I raised an issue : github.com x-tag core issues 76 https : github.com x-tag core issues 76 .. . Answer : Per this comment https : github.com x-tag core issues 76 issuecomment-41218168 : .. . .. . When you extend an element you need to use the is syntax in your markup : . The is attribute is part of the standard it s the only way to create custom elements from native elements . I tried it and you actually need is and the extends . I don t like the is so I m actually just creating an inner element in your case an inner b . Comment : Thanks for filing this . I m getting the sense that extends is not going to save you any time effort based on the latest comment on the bug : It probably isn t testing anything you need it to at the moment because while you can use an existing native element prototype as your base none of its methods will work on the newly created x-whatever element you make .", "Question : How can I select nodes that begin with a x- tag name here is an hierarchy DOM tree example : .. . .. . jQuery does not allow me to query x- is there any way that I could achieve this Comment : Is this valid at first place x-map x-map Comment : actually is a new way to declare custom elements just like x-tags.org http : www.x-tags.org or polymer-project.org http : www.polymer-project.org project Comment : @Scott Selby : : contains is for text not tag names . Comment : I d lean towards no simple out-of-the-box solution since the jQuery element selector http : api.jquery.com element-selector ends up calling getElementsByTagName which doesn t do wildcards . Comment : This is not valid HTML and check the x-tags.org itself is not valid . validator.w3.org http : validator.w3.org check uri http 3A 2F 2Fwww.x-tags.org 2F charset 28detect+automatically 29 doctype Inline group 0 .. . Answer : It might not be efficient but consider it as a last option if you do not get any answer . Try adding a custom attribute to these tags . What i mean is when you add a tag for eg . x-tag add a custom attribute with it and assign it the same value as the tag so the html looks like x-tag CustAttr x-tag . Now to get tags starting with x- you can use the following jQuery code : .. . .. . .. . and you will get all the tags that start with x- Comment : I thought about this solution also. . but the problem is that you need to add an attribute everytime the idea behind the tag name beginning with x- was to help querying instead of allowing all type of custom elements without any pattern Comment : @mateusmaso : Off topic but I wonder such an idea was even proposed . We ve had a markup language that looks like HTML but provides namespacing out of the box for over a decade now it s called XML and it manifests in HTML as XHTML . Then again jQuery doesn t support XML namespaces anyway http : stackoverflow.com questions 11502641 how-can-i-handle-xml-namespaces-in-css-selectors-or-in-jquery 11502677 11502677 making that point quite moot .", "Question : I m working on my first X-Tag application and on it s page it says it s meant to work with Web Component API s such as Custom Elements Shadow DOM Templates and HTML Imports . I ve started working on my templates but what s the best option to import them now that HTML Imports have been deprecated Comment : what browser would you target Comment : Latest versions of Chrome and Firefox . .. . Answer : AFAIK HTML Imports https : www.w3.org TR html-imports have not been deprecated or is it new . It s only Mozilla who said it won t implement it for Firefox . But the polyfill http : webcomponents.org is still available and supported . Since ES6 Modules http : exploringjs.com es6 ch modules.html are not implemented yet I would say HTML Imports are still the best option it s the one I chose as they are very easy to use and work well Polymer uses them extensively . Instead you can try RequireJs http : www.requirejs.org or implement your own module loader with XMLHttpRequest . I don t recommend you to use a ES6 Module Loader polyfill as they are only at experimental stage . Comment : Mozilla are on record as saying they don t intend to ever implement HTML Imports a currently specced and Apple have said that if they ever implement anything for declarative HTML imports it won t be until after ES6 modules are deployed and we have some experience from that to draw on . More some of the discussion see w3.org 2015 10 26-webapps-minutes.html item06 https : www.w3.org 2015 10 26-webapps-minutes.html item06", "Question : How can I select nodes that begin with a x- tag name here is an hierarchy DOM tree example : .. . .. . jQuery does not allow me to query x- is there any way that I could achieve this Comment : Is this valid at first place x-map x-map Comment : actually is a new way to declare custom elements just like x-tags.org http : www.x-tags.org or polymer-project.org http : www.polymer-project.org project Comment : @Scott Selby : : contains is for text not tag names . Comment : I d lean towards no simple out-of-the-box solution since the jQuery element selector http : api.jquery.com element-selector ends up calling getElementsByTagName which doesn t do wildcards . Comment : This is not valid HTML and check the x-tags.org itself is not valid . validator.w3.org http : validator.w3.org check uri http 3A 2F 2Fwww.x-tags.org 2F charset 28detect+automatically 29 doctype Inline group 0 .. . Answer : custom jquery selector .. . .. . than use : X or : X to select your nodes . Comment : Good call for expressions : Comment : @MohamedMeligy Thanks", "Question : null .. . Answer : Is there a way to import content via an X-Tag register from an external file So Something like : .. . .. . I know that isn t correct but is there something similar Thanks Comment : Are you wanting to change the contents of x-modal dynamically or just load a template from an html file Comment : Load an external file into the index.html I ended up using an ajax call to load the files .", "Question : I m testing the app I m creating with Cucumber Capybara . It looks like it doesn t see the x-tag http : x-tags.org I am using . It looks like Cucumber doesn t render the page properly with the x-tag . Is there a way to solve this I think this is the problem because when I put the input field outside of the xlogin.js and into the body or the div with id login it does work . Body : .. . .. . Feature : .. . .. . steps : .. . .. . output : .. . Answer : I solved the issue . What went wrong : .. . .. . 1 : I was using the default driver in Capybara . This driver can t handle Javascript . Solution : using the driver Selenium .. . .. . 2 : I was using a Ubuntu server through ssh . So the browser Selenium was using firefox didn t work . Solution : I switched to desktop Ubuntu and used vnc to connect to it .", "Question : How can I select nodes that begin with a x- tag name here is an hierarchy DOM tree example : .. . .. . jQuery does not allow me to query x- is there any way that I could achieve this Comment : Is this valid at first place x-map x-map Comment : actually is a new way to declare custom elements just like x-tags.org http : www.x-tags.org or polymer-project.org http : www.polymer-project.org project Comment : @Scott Selby : : contains is for text not tag names . Comment : I d lean towards no simple out-of-the-box solution since the jQuery element selector http : api.jquery.com element-selector ends up calling getElementsByTagName which doesn t do wildcards . Comment : This is not valid HTML and check the x-tags.org itself is not valid . validator.w3.org http : validator.w3.org check uri http 3A 2F 2Fwww.x-tags.org 2F charset 28detect+automatically 29 doctype Inline group 0 .. . Answer : Although this does not answer the question directly it could provide a solution by defining the tags in the selector you can get all of that type Comment : Yeah short of specifying each individual element name there really isn t any other way ." ] }
[ "yes-answer-long", "yes-answer-short" ]
javascript
UNK_RELATION
oci8@database@87
oci8 -- oci8 is the driver used to connect various programming-languages to an oracle @placeholder .
{ "confidence": [ 48.9959831237793, 48.710205078125, 48.23453140258789, 47.138423919677734, 47.138423919677734, 47.02278137207031, 46.03331756591797, 45.2001953125, 44.16265869140625, 44.08481216430664, 43.624717712402344, 43.490779876708984, 42.87638473510742, 42.363948822021484, 42.16756057739258, 42.01234817504883, 42.011260986328125, 42.011260986328125, 41.765750885009766, 41.73488235473633, 41.685237884521484, 41.535987854003906, 41.25535202026367, 40.91515350341797, 40.63877487182617, 40.58913040161133, 40.45212936401367, 40.45212936401367, 40.45212936401367, 40.45212936401367, 40.45212936401367, 39.43071746826172, 39.43071746826172, 39.43071746826172, 39.43071746826172, 39.356021881103516, 39.356021881103516, 39.25760269165039, 39.25760269165039, 38.56037902832031, 38.45012664794922, 38.33460998535156, 38.33460998535156, 38.14829635620117, 38.14829635620117, 38.14829635620117, 38.14829635620117, 38.14829635620117, 38.14829635620117, 38.14829635620117, 38.14829635620117, 38.14829635620117, 37.64996337890625, 37.052188873291016, 36.69687271118164, 36.69687271118164, 36.66084671020508, 36.59357452392578, 36.59357452392578, 36.07157516479492, 35.49836349487305, 35.497467041015625, 35.027626037597656, 35.027626037597656, 35.027626037597656, 35.027626037597656, 35.027626037597656, 35.027626037597656, 35.027626037597656, 35.027626037597656, 35.027626037597656, 35.027626037597656, 34.28704833984375, 34.18464660644531, 34.183753967285156, 34.183753967285156, 33.9315185546875, 33.9315185546875, 33.37690353393555, 33.37690353393555, 33.27861404418945, 33.277835845947266, 33.277835845947266, 33.277835845947266, 32.61780548095703, 32.61780548095703, 32.61780548095703, 32.61780548095703, 32.61780548095703, 32.18172836303711, 32.18172836303711, 31.294090270996094, 30.8240966796875, 30.8240966796875, 30.8240966796875, 30.8240966796875, 30.8240966796875, 30.8240966796875, 29.727989196777344 ], "content": [ "I am using oci8 driver of luasql to access Oracle database .", "Maybe you can fix go-oci8 driver : github.com mattn go-oci8 blob master oci8.go https : github.com mattn go-oci8 blob master oci8.go", "With the oci8 module Ruby can connect to Oracle using OCI .", "I need to connect to an Oracle 8i server but oci8 does not support it by default .", "Cannot connect using PHP to oci8 with instant client to oracle 12c databade .", "Error Message : .. . .. . cannot get Oracle version from sqlplus Backtrace : .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 834 : in get version .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 783 : in initialize .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 320 : in new .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 320 : in get .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 extconf.rb : 22 : in .. . .. . Any idea what s missing here", "For connecting oracle with laravel I need to install oci8 .", "Now check in php info that oci8 enables or not if enable then use standard oci8 connections .. . .. . This is your standard Oracle connection .. . .. . Try this", "I m following this tutorial http : www.apoyoti.com oracle-oci8-php-osx-10-11-capitan to Install oracle extension oci8 in OSX Capitan .", ".. . php -i grep oci8 .. . .. . You should see something like this : .. . .. . .. . etc php.d oci8.ini .. . .. . oci8 .. . oci8.connection class no value no value .. . oci8.default prefetch 100 100 .. . oci8.events Off Off .. . oci8.max persistent -1 -1 .. . oci8.old oci close semantics Off Off .. . oci8.persistent timeout -1 -1 .. . oci8.ping interval 60 60 .. . oci8.privileged connect Off Off .. . oci8.statement cache size 20 20 .. . .. . .. . Ref : http : shiki.me blog installing-pdo oci-and-oci8-php-extensions-on-centos-6-4-64bit .. . .. . I would like to mention that when the installation started is message was display something like : instantclient . . . . to PUT THE PATH .", "My favorite driver so far is go-oci8 .", "Now check in php info that oci8 enables or not if enable then use standard oci8 connections", "Unfortunately i got this error : .. . .. . I have installed oci8 like this : .. . .. . OCI8 .. . .. . Download the OCI8 source using pear .. . .. . .. . pear download pecl oci8 .. . tar -xvf oci8-1.4.9.tgz .. . cd oci8-1.4.9 .. . .. . .. . Build and install the extension .", "I m trying to modify mattn s go-oci8 oracle driver so I can change the os user value on the fly .", "Specifically the ruby-oci8 gem .", "So does anybody know how to integrate support for date in oci8 driver", "In the first application I face a strange issue with oracle oci8 .", "I maintain a PHP driven application with Oracle backend OCI8 functions .", "I need to insert two records in Oracle database from my go application using sqlx https : github.com jmoiron sqlx with go-oci8 https : github.com mattn go-oci8 driver .", "I want to use ruby oci8 to connect to oracle database to generate AWR report .", "According to this http : www.php.net manual en oci8.installation.php Installing OCI8 from PECL automated all I have to do is type in pecl oci8 install .", "Now check in php info that oci8 enables or not if enable then use standard oci8 connections .. . .. . This is your standard Oracle connection .. . .. . and let me know wether it is work or not .. . .. . and congrats.. . you combined 3 separate services Oracle Microsoft PHP .", "Get the version of Oracle from SQLPlus.. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 extconf.rb failed Could not create Makefile due to some reason probably lack of necessary libraries and or headers .", "ENV TNS ADMIN is not accessed by my code but by the Oracle library ruby-oci8 unfortunately .", "I am trying to connect to an Oracle database in Go using this package https : github.com mattn go-oci8 .", "github.com mattn go-oci8 https : github.com mattn go-oci8 It says the following You need to put oci8.pc like into your PKG CONFIG PATH .", "But still it isn t finding oci8-2.0.10 .", "is the oci8 extension compiled as a shared module", "3 what are the permissions on the oci8 extension", "Installing oci8 extension in linux for php", "No releases available for package pecl.php.net oci8 .", "I am using Laravel 5 with yajra laravel-oci8 https : github.com yajra laravel-oci8 .", "Do i just need to install oci8 extension library or i need to install both instantclient and the oci8 extension", "Then I go to pecl php website https : pecl.php.net package oci8 and downloaded oci8-2.0.10.tgz file .", "I suspect that I am hamstrung by the difference between the name of the gem ruby-oci8 and the name of the file to load oci8 .", "Is it possible to reuse the cursor in ruby oci8 .", "oci8.pc should be like below .", "To install I used first pecl install oci8-2.0.10 .", "Then I used pecl -vvv install oci8-2.0.10 to force verbosity .", "I m having trouble with Oracle connection I m facing the error message : oci connect : ORA-12154 I m using Xampp port : 80 oracle g11 express PHP 5.5.30 .. . .. . package installed is : .. . .. . OCI8 Support enabled OCI8 DTrace Support disabled OCI8 Version 2.0.8 .. . .. . Oracle Run-time Client Library Version 11.2.0.4.0 Oracle Compile-time Instant Client Version 11.2 .. . .. . my app oracle product 11.2.0 server network ADMIN .. . .. . the test code is : .. . .. . thank you", "step-01 For correct installation oci8 refer this link .. . .. . http : www.techinfobest.com install-oci8 .. . .. . After successfully installation .. . .. . step-02 Check php configuration where separate section for OCI8 listed are not .. . .. .", "i have set oci8 extention on etc php5 mods-available and i checked with phpinfo oci8 is enabled .", "and i have run a this command echo extension oci8.so etc php5 apache2 php.ini and on phpinfo page is oci8 is enabled .", "Does the trick installing the oci8-2.0.10.tgz file .", "I have deployed php with oci8 on my machine .", ".. . .. . in Unknown on line 0 .. . .. . Extension oci8 not present .", "php.exe --ri oci8 now shows the extension installed .", "I ve been using PHP with oci8 extension .", "I was able to implement this without oci8 extension .", "I wanted to find a way to debug oci8 itself .", "Recently i have installed OCI8 extension with php .", "I google it and find oci8 may help .", ".. . .. . phpize .. . . configure --with-oci8 shared instantclient usr lib oracle 11.2 client64 lib .. . make .. . sudo make install .. . .. . .. . To enable the extension add a file named oci8.ini in etc php.d with this content : .. . .. . .. . extension oci8.so .. . .. . .. . Validate that it was successfully installed .", "i have succes install oci8 on my machine .", "Have you read the requirements http : php.net manual en oci8.requirements.php and followed the installation http : php.net manual en oci8.installation.php instructions", "voidweb.com 2011 04 how-to-install-php-oci8-extension http : voidweb.com 2011 04 how-to-install-php-oci8-extension", "The php documentation says as following : .. . .. . Note : .. . .. . If OCI8 uses 9iR2 client libraries then PHP can connect to Oracle Database 8i 9iR2 10g or 11g .", "I m using PHP and OCI8 to execute anonymous Oracle PL SQL blocks of code .", "the failed message is : .. . .. . Besides I can successfully log in to oracle and execute a select statement using oci8 .", "I m trying to change the OS User that is passed to Oracle during database-connection set up in golang oracle oci-8 driver https : github.com mattn go-oci8 .", "3 Try a third-party driver https : github.com yajra pdo-via-oci8 .", "I am trying to install the php-5.5 extension OCI8 for my Oracle 11g database .", "Not sure After installing VS2013 my php info doesn t show oci8 enabled .", "i search in phpinfo there is no oci8 support in xampp 5.6.14-4 .", "As I have php 5.5.9 I have to install oci8-2.0.10 .", "Btw I installed oci8-2.0.10 and wrote down it as answer .", "It worked after I adding extension oci8.so to the end of the file .", "I have the OCI8 module installed with oracle s instantclient version 10.2 .", "Do those php.inis contain a line like extension oci8.so i.e .", "Did you have the oci8 extension installed in your system", "Another website suggested that I try pear install pecl oci8 .", "Line 25 in the oci8.rb file is a require oci8lib 18 directive .", "Now I have a oci8.so file under usr lib php5 20131226 and the line extension oci8.so in the php.ini file .", "I have a vagrant vm with php-5.6 - homestead - I am tryingto install oci8 driver for php .", "After much pain I managed to build oci8 installing all the libraries from oracle and many other missing libraries .", "Hi I am trying to store names into an Oracle database and fetch them back using PHP and oci8 .", "If OCI8 uses 12c client libraries the database can be 10gR2 11g or 12c .", "How can I setup OCI8 to use 9iR2 client libraries", "If I remember correctly OCI8 extension wouldn t even compile without Instant Client if you install using PECL https : pecl.php.net package oci8 it asks you for Instant Client path .", "I followed this instructions caseymorford.com 2014 04 17 installing-oci8-with-mamp-pro http : caseymorford.com 2014 04 17 installing-oci8-with-mamp-pro and all worked fine .", "But if I try to implement a date query as : .. . .. . It throws as error : .. . .. . invalid type 12 .. . .. . I read it somewhere that the oci8 driver doesnot support date datatype .", "Ruby 2.1.5 Rails 4.2.3 activerecord-oracle enhanced-adapter 1.6.3 ruby-oci8 2.2.0.2 While connecting to oracle database in another timezone .", "I ve been emailing with the guy that supports OCI8 and it turns out that several of the Oracle directories have permissions that prevent my login from accessing needed info .", "Remove the semicolon from the begining of the string to activate the oracle extension and save it . .. . .. . Then I restart xampp but I cannot find oci8 in phpinfo .", "Is the error message saying that it can t find ruby-oci8 in the gemset", "in PHP I added : .. . .. . to force the oci8 connection to use that character set .", "Retrieving the using oci8 from PHP now worked", "After adding the NLS LANG variable doing direct oci8 inserts with works .", "But on my app PHP using OCI8 it shows numbers last .", "I have both server and instantclient installed for both Oracle 11.2 and 12.1 and I m following the instructions regarding the oci8.pc file .", "I followed the instructions mentioned here https : www.apachefriends.org faq osx.html while installing click on the question How do I activate the OCI8 Oracle extension for PHP .", "first of all in IIS rub your simple PHP page .. . .. . if it run successfully then run this code .. . .. . if you are not able to see oci8 driver in this page then search Oracle Instant Client for php http : www.oracle.com technetwork database features instant-client index-097480.html .. . .. . also copy same DLL in system32 and system .. . .. . then again restart IIS and then see in phpinfo if oci8 driver display then .. . .. . run this connection code .. . .. . http : stackoverflow.com a 36057262 2125924", "Aside all I just need a solution to get done my task of installing oci8-2.0.10 .", "@shellter I did that but return me an error saying oci8 requires php 7.0.0 .", "I tried to install oci8 extension on MAMP 3.5 with php 7.0.0 on Mac OS X El Capitan .", "I m currently setting up a Windows 10 Pro x64 machine to work with Apache PHP and its oci8 extension .", "http : stackoverflow.com questions 34350060 installing-oci8-extension-in-linux-for-php 34351036 34351036 .. . .. . For clear instruction to install refer this link .", "I can just require oci8 but I don t get the version I want .", "If OCI8 uses 10gR2 client libraries the database can be 9iR2 10g 11g or 12c ." ] }
{ "confidence": [ 60.904075622558594, 59.98517608642578, 58.15202331542969, 58.03759002685547, 57.93771743774414, 57.39763259887695, 57.224388122558594, 57.20567321777344, 56.01613998413086, 55.59650421142578, 54.80698776245117, 54.598236083984375, 53.43526840209961, 53.06394958496094, 52.37945556640625, 52.3144645690918, 52.12281799316406, 51.87220001220703, 51.5842170715332, 51.33845138549805 ], "content": [ "Question : I am using Centos 6 64 bit OS . Recently i have installed OCI8 extension with php . After making all configuration i tried to execute the function oci connect to connect with a Oracle Database remotely . Unfortunately i got this error : .. . .. . I have installed oci8 like this : .. . .. . OCI8 .. . .. . Download the OCI8 source using pear .. . .. . .. . pear download pecl oci8 .. . tar -xvf oci8-1.4.9.tgz .. . cd oci8-1.4.9 .. . .. . .. . Build and install the extension . .. . .. . phpize .. . . configure --with-oci8 shared instantclient usr lib oracle 11.2 client64 lib .. . make .. . sudo make install .. . .. . .. . To enable the extension add a file named oci8.ini in etc php.d with this content : .. . .. . .. . extension oci8.so .. . .. . .. . Validate that it was successfully installed . .. . php -i grep oci8 .. . .. . You should see something like this : .. . .. . .. . etc php.d oci8.ini .. . .. . oci8 .. . oci8.connection class no value no value .. . oci8.default prefetch 100 100 .. . oci8.events Off Off .. . oci8.max persistent -1 -1 .. . oci8.old oci close semantics Off Off .. . oci8.persistent timeout -1 -1 .. . oci8.ping interval 60 60 .. . oci8.privileged connect Off Off .. . oci8.statement cache size 20 20 .. . .. . .. . Ref : http : shiki.me blog installing-pdo oci-and-oci8-php-extensions-on-centos-6-4-64bit .. . .. . I would like to mention that when the installation started is message was display something like : instantclient . . . . to PUT THE PATH . I didn t give anything just pressed enter . Is it the issue that i can t connect to Oracle Need your help badly . Thanks Comment : i have done it the problem is solved now . Comment : If you have solved your problem please post the solution so others can fix it too... . .. . Answer : step-01 For correct installation oci8 refer this link .. . .. . http : www.techinfobest.com install-oci8 .. . .. . After successfully installation .. . .. . step-02 Check php configuration where separate section for OCI8 listed are not .. . .. . enter image description here http : i.stack.imgur.com d4I1z.png .. . .. . if not listed . step-03 check your httpd error-log by terminal .. . .. . find any php error occured while after httpd service starting like .. . .. . PHP Warning : PHP Startup : Unable to load dynamic library usr lib64 php modules oci8.so - libclntsh.so.12.1 : cannot enable executable stack as shared object requires : Permission denied in Unknown on line 0 .. . .. . then it is the problem in your selinux permission . find below link-to proper permission . step-03 http : www.cdatazone.org index.php archives 37-PHP -Oracle-and-SELinux.html .. . .. . I have followed these steps and got success to oracle installation Comment : i had that before", "Question : I am using Centos 6 64 bit OS . Recently i have installed OCI8 extension with php . After making all configuration i tried to execute the function oci connect to connect with a Oracle Database remotely . Unfortunately i got this error : .. . .. . I have installed oci8 like this : .. . .. . OCI8 .. . .. . Download the OCI8 source using pear .. . .. . .. . pear download pecl oci8 .. . tar -xvf oci8-1.4.9.tgz .. . cd oci8-1.4.9 .. . .. . .. . Build and install the extension . .. . .. . phpize .. . . configure --with-oci8 shared instantclient usr lib oracle 11.2 client64 lib .. . make .. . sudo make install .. . .. . .. . To enable the extension add a file named oci8.ini in etc php.d with this content : .. . .. . .. . extension oci8.so .. . .. . .. . Validate that it was successfully installed . .. . php -i grep oci8 .. . .. . You should see something like this : .. . .. . .. . etc php.d oci8.ini .. . .. . oci8 .. . oci8.connection class no value no value .. . oci8.default prefetch 100 100 .. . oci8.events Off Off .. . oci8.max persistent -1 -1 .. . oci8.old oci close semantics Off Off .. . oci8.persistent timeout -1 -1 .. . oci8.ping interval 60 60 .. . oci8.privileged connect Off Off .. . oci8.statement cache size 20 20 .. . .. . .. . Ref : http : shiki.me blog installing-pdo oci-and-oci8-php-extensions-on-centos-6-4-64bit .. . .. . I would like to mention that when the installation started is message was display something like : instantclient . . . . to PUT THE PATH . I didn t give anything just pressed enter . Is it the issue that i can t connect to Oracle Need your help badly . Thanks Comment : i have done it the problem is solved now . Comment : If you have solved your problem please post the solution so others can fix it too... . .. . Answer : I have managed to solve problem . Actually the problem was the the environment library was not loaded . so i have loaded the environment of oracle manually via PHP . Here is my code : .. . .. . Hope that it will help everyone .. . .. . Thanks Comment : This does not provide an answer to the question . To critique or request clarification from an author leave a comment below their post - you can always comment on your own posts and once you have sufficient reputation http : stackoverflow.com help whats-reputation you will be able to comment on any post http : stackoverflow.com help privileges comment . Comment : @hwnd i was in hurry to give the answer now i have edited it", "Question : I have PHP application running on IIS7 windows 2008 R2 server .. . .. . i try to connect to remote Oracle DB i installed PHP on the IIS7 useing web-platform-installer then enabled the following extension : php oci8.dll php oci8 11g.dll php pdo oci.dll .. . .. . when i run phpinfo i can t find oci8 enabled in the extensions . this is my function to connect Comment : If it is not in your PHPinfo then the module is not installed correctly and you wont be able to use it in your code . Check your logs for more info .. . Answer : Now check in php info that oci8 enables or not if enable then use standard oci8 connections .. . .. . This is your standard Oracle connection .. . .. . and let me know wether it is work or not .. . .. . and congrats.. . you combined 3 separate services Oracle Microsoft PHP .", "Question : null .. . Answer : I am using oci8 driver of luasql to access Oracle database . All the queries are working fine . But if I try to implement a date query as : .. . .. . It throws as error : .. . .. . invalid type 12 .. . .. . I read it somewhere that the oci8 driver doesnot support date datatype . And some steps were mentioned to add support but that they didnot work . So does anybody know how to integrate support for date in oci8 driver Any help is appreciated . Comment : lua-users.org lists lua-l 2005-11 msg00394.html http : lua-users.org lists lua-l 2005-11 msg00394.html Comment : Convert date to string at Oracle side and receive a string at Lua side : select to-char sysdate YYYY-MM-DD HH24 : MI : SS as result from dual", "Question : I need to insert two records in Oracle database from my go application using sqlx https : github.com jmoiron sqlx with go-oci8 https : github.com mattn go-oci8 driver . Second record references previous one by foreign key . So I need to have primary-key of first record it is assigned from sequence with before insert trigger on first table before I can insert second record . So I experimented to get last inserted id : .. . .. . LastInsertId failed for me : .. . .. . Output : .. . .. . Then I tried to make stored function that inserts record and returns primary-key . But I failed to find a way to get its result . PostgreSQL style select fails : .. . .. . And OCI8 style variable binding does not work : .. . .. . Output : .. . .. . How to get last inserted ID or how to get value from stored funcion in Go from Oracle Comment : either you have to use orm to get id of last inserted row last saved object or you can stop inserting id through trigger . Manually you can get seq.nextVal and work on it Comment : Maybe you can fix go-oci8 driver : github.com mattn go-oci8 blob master oci8.go https : github.com mattn go-oci8 blob master oci8.go .. . Answer : Hi I Don t know about go but I know about oracle return query .. . .. . Same problem I had with PHP and I solve it using this query .. . .. . It will automatically return-value in your Go variable I guess please try this Comment : I tried that too . Variable binded to : xx remains empty after a call . Looks like golang s database sql package is unable to returnn values to binded variables . Only to pass them to query . Comment : can you send me the output of your return query v Comment : In go output is as I said earlier . Binded variable remains empty .", "Question : For connecting oracle with laravel I need to install oci8 . As I have php 5.5.9 I have to install oci8-2.0.10 . To install I used first pecl install oci8-2.0.10 . But failed . Then I used pecl -vvv install oci8-2.0.10 to force verbosity . But still it isn t finding oci8-2.0.10 . Then I go to pecl php website https : pecl.php.net package oci8 and downloaded oci8-2.0.10.tgz file . But there is no binary or make file . And scary is that this may be for windows though I am not sure . Aside all I just need a solution to get done my task of installing oci8-2.0.10 . How to do this Comment : Is it a question for superuser.com http : superuser.com Comment : No idea where it is or not . Trying for two days to do this still not found anything . Comment : @shellter I did that but return me an error saying oci8 requires php 7.0.0 . Btw I installed oci8-2.0.10 and wrote down it as answer . this is a reply to shellter but he removed his comment . .. . Answer : Does the trick installing the oci8-2.0.10.tgz file . It will ask a path for the oracle instant client.If given correctly the job is done .", "Question : null .. . Answer : I m having trouble with Oracle connection I m facing the error message : oci connect : ORA-12154 I m using Xampp port : 80 oracle g11 express PHP 5.5.30 .. . .. . package installed is : .. . .. . OCI8 Support enabled OCI8 DTrace Support disabled OCI8 Version 2.0.8 .. . .. . Oracle Run-time Client Library Version 11.2.0.4.0 Oracle Compile-time Instant Client Version 11.2 .. . .. . my app oracle product 11.2.0 server network ADMIN .. . .. . the test code is : .. . .. . thank you Comment : What error message are you getting Can you add that to your question Comment : oci connect : ORA-12154 please help Comment : Probably it means that you showed us the wrong tnsnames.ora . Try ezconnect instead : conn oci connect hr hr123 GLORY-PC : 1522 XE . Comment : @stee1rat problem solved I can t thank you enough god bless you", "Question : null .. . Answer : Ruby-oci8 gem is failing with the following error message while built on ubuntu linux even though I have my LD LIBRARY PATH and ORACLE HOME set to the right path . Get the version of Oracle from SQLPlus.. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 extconf.rb failed Could not create Makefile due to some reason probably lack of necessary libraries and or headers . Check the mkmf.log file for more details . You may need configuration options . Error Message : .. . .. . cannot get Oracle version from sqlplus Backtrace : .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 834 : in get version .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 783 : in initialize .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 320 : in new .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 oraconf.rb : 320 : in get .. . ghostcache nightly-build components ruby-oci8 akamai ruby-oci8 ruby-oci8-2.2.1 ext oci8 extconf.rb : 22 : in .. . .. . Any idea what s missing here", "Question : I don t have a oracle database installed in my system . But i want to connect to the remote system . Do i just need to install oci8 extension library or i need to install both instantclient and the oci8 extension Comment : Is there any thing wrong in the question .. . Answer : If I remember correctly OCI8 extension wouldn t even compile without Instant Client if you install using PECL https : pecl.php.net package oci8 it asks you for Instant Client path . Moreover from my experience you ll also need Instant Client SDK in addition to Basic unpack them to one directory and make some symlinks before running PECL command : .. . .. . Don t forget to enable the config later : .. . .. . Taken from this post http : habrahabr.ru post 116474 in Russian also installed OCI8 myself recently on Debian 7 .", "Question : I m trying to change the OS User that is passed to Oracle during database-connection set up in golang oracle oci-8 driver https : github.com mattn go-oci8 . This is in a similar way to setting the v session.osuser in the Java JDBC drivers . I m trying to modify mattn s go-oci8 oracle driver so I can change the os user value on the fly . I ve tried adding conn.attrs.Set os user test os user in the open method . I ve trawled through the oci docs http : docs.oracle.com cd B12037 01 appdev.101 b10779 ociaahan.htm and I think I might need to set OCI ATTR CLIENT IDENTIFIER but I can work out if this is correct or how to do it . Any ideas if it is possible and how to change the osuser value using OCI Cheers .. . Answer : It appears that it is not possible to set the OS User with the OCI driver . The Oracle documentation http : docs.oracle.com cd E18283 01 appdev.112 e13995 oracle jdbc OracleConnection.html CONNECTION PROPERTY THIN VSESSION OSUSER for Java highlights that setting the OS User is only possible when the oracle Java Thin driver is used .", "Question : null .. . Answer : I need to connect to an Oracle 8i server but oci8 does not support it by default . The php documentation says as following : .. . .. . Note : .. . .. . If OCI8 uses 9iR2 client libraries then PHP can connect to Oracle Database 8i 9iR2 10g or 11g . If OCI8 uses 10gR2 client libraries the database can be 9iR2 10g 11g or 12c . If OCI8 uses 11g client libraries the database can be 9iR2 10g 11g or 12c . If OCI8 uses 12c client libraries the database can be 10gR2 11g or 12c . How can I setup OCI8 to use 9iR2 client libraries My current environment is : .. . .. . I m on a ubuntu-server .. . Oracle 8i version 8.1.7.4.0 .. . I have already installed instantclient libraries I m able to connect to oracle 10i and above .. . I m using instantclient version 12.1.. . Also tried with instantclient version 10.2 .. . .. . Could someone help me figuring out what the problem might be and how to solve it Any help is really appreciated . Thank you Comment : Exactly what version of 8i are you trying to connect to The requirements for 8.1.5 for example are rather different than the requirements for 8.1.7.4 . Oracle doesn t generally make obsolete versions of products available for download so you can t download the 9.2 client libraries any longer . If you have a support contract you can log a Metalink support request and Oracle support can get you the old libraries . Of course those old libraries may require a rather old version of linux . Comment : @JustinCave the version is 8.1.7.4.0 . I m updating my question . I will try to find a way to download 9.2 client libraries . This is the instantclient libraries correct Thanks so much for the answer . I really appreciate Comment : I m not sure that the Instant Client existed back in the Oracle 9.2 days . My guess is that you d need the full Oracle client install which is a few hundred MB . If you ve got a support contract Oracle Support can send you obsolete software on CD . It s reasonably likely though that the Oracle 9.2 client won t be compatible with whatever version of linux you have and that you d have to downgrade to an older version .", "Question : I download the XAMPP Windows 1.8.2 and oracle instant client 12.1 . Then I unzip the oracle instant client file edit the PATH environment setting and edit PATH in the System variables list by adding instant client s path . I find string extension php oci8.dll . Remove the semicolon from the begining of the string to activate the oracle extension and save it . .. . .. . Then I restart xampp but I cannot find oci8 in phpinfo . Please help me to save the problem . Comment : Did you remove that anyway Comment : Now check in php info that oci8 enables or not if enable then use standard oci8 connections .. . Answer : Now check in php info that oci8 enables or not if enable then use standard oci8 connections .. . .. . This is your standard Oracle connection .. . .. . Try this", "Question : null .. . Answer : I am trying to connect to an Oracle database in Go using this package https : github.com mattn go-oci8 . I have both server and instantclient installed for both Oracle 11.2 and 12.1 and I m following the instructions regarding the oci8.pc file . My operating-system is Windows . However when I run go get github.com mattn go-oci8 or attempt to install a program that uses the package after having gotten the package s source code directly I get this error : .. . .. . Does anyone know what the problem is and how to fix it Comment : Have you done installation exactly like in the README github.com mattn go-oci8 https : github.com mattn go-oci8 It says the following You need to put oci8.pc like into your PKG CONFIG PATH . oci8.pc should be like below . This is an example for windows . Comment : I copied the sample file contents into my file and made the following changes : 1 The includedir field uses the include directory twice so I removed one . Otherwise it matched up with how my oracle directory is setup . 2 I added a line containing Version : 11.2 after the Description line since I was getting an error that indicated I needed such a line . 3 I was unsure of what to put in the first line prefix so I just put bmc in that field . Otherwise it was exactly the same . And I did put its directory path in the PKG CONFIG PATH variable . Comment : Are you mixing 32-bit and 64-bit Everything needs to match .", "Question : i use Linux Mint Apache2 PHP5 Oracle Xe 11 and without SELINUX installed . i have succes install oci8 on my machine . i have set oci8 extention on etc php5 mods-available and i checked with phpinfo oci8 is enabled . i try connect to oracle . i have this php code : .. . .. . this code is working on php-cli and show the table . but when accessed from browser this code is not working with no result error returned . and flow of code is finish with 3 Connection is error .. . n message . how to solve this problem Adding information : .. . i try use php serve with this php command : .. . .. . and the php code is can connect to oracle . update .. . i try to add this code on the top of code . and the code is running . and i think the problem is Variable Environment . .. . Answer : You enabled oracle extention only in php.ini for cli . You should enable it in php.ini for web too . Write simple php script .. . .. . And open it in browser and check php.ini path . Also may be you fogot to restart Apache or php-fpm Comment : i have restart my PC . and i have run a this command echo extension oci8.so etc php5 apache2 php.ini and on phpinfo page is oci8 is enabled . Comment : @mosleim what stored in e variable after e oci error Comment : it s just result false . Comment : Oci error should return array . Do var-dump e and show result Comment : return bool false", "Question : Thanks for your time I want to use ruby oci8 to connect to oracle database to generate AWR report . When I do this through command-line the code is like this : .. . .. . I just want to automate the job using Ruby . I google it and find oci8 may help . So I just form my codes like this : .. . .. . When I run it in cmd it failed . the failed message is : .. . .. . Besides I can successfully log in to oracle and execute a select statement using oci8 . Where am I wrong Thanks in advance .. . Answer : The main problem is you make confusion between queries supposed to be executed on server-side and sqlplus commands to be executed on client-side . The define and @ commands are sqlplus commands executed on client-side . They are not sent to Oracle . With the oci8 module Ruby can connect to Oracle using OCI . It can send any query to the server but of course it will not be able to run sqlplus commands . The scripts in rdbms admin are supposed to be executed from sqlplus . If you really need to run them from Ruby I would suggest to use the Ruby Open3 http : www.ruby-doc.org stdlib-1.9.3 libdoc open3 rdoc Open3.html module to fork a sqlplus process and provide the input parameters using pipes . It should be possible to use something based on the following code : Comment : Thanks a lot I am clear where am i wrong now . I ll investigate popen3 first and will give a post on the task when i get it done .", "Question : I want to connect to my oracle database but i have a problem with function oci connect . i have tried to uncomment this : .. . .. . but still have an error : .. . .. . Fatal error : Call to undefined function oci connect in C : xampp htdocs testing db.php on line 71 .. . .. . But when i check in phpinfo oci8 still not loaded and i can not connect to my oracle database . i already restart my apache . How i fix this problem Canyou help me Thank you. . Comment : Is an Oracle client installed Have you read the requirements http : php.net manual en oci8.requirements.php and followed the installation http : php.net manual en oci8.installation.php instructions Comment : of course yes . previously i use xampp version 1.6.4 and it works fine . now i upgrade my xampp into version 5.5.30 but i got that error . can you help me to fix this problem Comment : Check that php oci8.dll exists in the ext folder . Check the php errors.log file for startup errors and edit your question to include any information from there . Comment : Also try following the steps in a previous answer http : stackoverflow.com a 29515269 3775731 of mine . Comment : php oci8.dll exists in ext folder . when i cek the php error-log i got this : 10-Dec-2015 10 : 01 : 14 UTC PHP Warning : PHP Startup : Unable to load dynamic library C : xampp php ext php oci8.dll - The specified procedure could not be found . . why can not load the php oci8.dll whereas php oci8.dll is existing in ext folder . . confused .. . Answer : In php.ini ensure that you enable the correct OCI extension 11g like this : .. . .. . As long as you ve got Oracle 11gR2 or greater client libraries http : php.net manual en oci8.requirements.php correctly installed you should now be able to run : .. . .. . And get the result : .. . .. . To check your Oracle client is installed correctly i.e . in your environment PATH variable you can run : .. . .. . You should get a result like this : Comment : when i run the command C : php --ri oci8 i got this php is not recognizedas an internal or external command operable program or batch-file . and i run C : where oci the result like this : C : DevSuiteHome 1 BIN oci.dll C : DevSuiteHome 1 BIN ocijdbc10.dll C : DevSuiteHome 1 BIN ociw32.dll . Comment : i use oracle client 10g and the folder d name is DevSuiteHome .", "Question : null .. . Answer : I m following this tutorial http : www.apoyoti.com oracle-oci8-php-osx-10-11-capitan to Install oracle extension oci8 in OSX Capitan . What should I do to work with -MAMP Pro 3.5- Thanks for the help .", "Question : Hi I am trying to Install ruby-oci8 using ruby 1.9.3-p551 in OS X EI capitan 10.11.3 But I am getting this error . But when I am installing ruby-oci8 using ruby-2.3.0 in OS X EI capitan 10.11.3 Its working fine . Please do help me on this . .. . Answer : I solved this issue by following http : blog.codiez.co.za 2013 09 setup-oracle-instant-client-ruby-oci8-gem-mac .. . .. . Note : - Instead of moving files form opt oracle instantclient 11 2 copy and paste them to paths given in website . :", "Question : According to this http : www.php.net manual en oci8.installation.php Installing OCI8 from PECL automated all I have to do is type in pecl oci8 install . But that only gets me the following error repeatedly . No releases available for package pecl.php.net oci8 . Another website suggested that I try pear install pecl oci8 . Same error happens . What do I do to fix this Comment : Tried voidweb.com 2011 04 how-to-install-php-oci8-extension http : voidweb.com 2011 04 how-to-install-php-oci8-extension Comment : Yes actually I did try manually doing things but it is very prone to error and in my experience difficult to reverse should things go wrong . Anyway if nothing else works I ll give it another shot . .. . Answer : I have the same error on Ubuntu LTS 14.04 : .. . .. . Finally the reason is the Proxy problem : my computer is sitting after the company proxy server . Run the following command to add the proxy .. . .. . Then run the command again it works as bellow .. . .. . Here we type in the Oracle Instant client folder as bellow : .. . .. . Then the command-line continue ouputs : .. . .. . Good luck .", "Question : I am trying to install the php-5.5 extension OCI8 for my Oracle 11g database . However upon doing sudo pecl install oci8-2.0.8 I get the following error : .. . .. . .. . Build process completed successfully .. . .. . Installing usr lib php extensions no-debug-non-zts-20121212 oci8.so .. . .. . ERROR : failed to write usr lib php extensions no-debug-non-zts-20121212 oci8.so copy usr lib php extensions no-debug-non-zts-20121212 oci8.so : failed to open stream : Operation not permitted .. . .. . Changing directories to the build path tmp pear install .. . returns directory non-existent . I am on Mac OSX El Capitan I have followed these instructions https : gist.github.com gido 5237100 file-macosx-install-php-oracle-oci8-md which noted PHP 5.4 not 5.5 . Not sure what to do anymore - it s one problem after another . .. . Answer : Solved by disabling System Integrity Protection running the pecl install and re-enabling System Integrity Protection ." ] }
[ "yes-answer-long", "yes-answer-short" ]
database
UNK_RELATION
bulk-mail@email@68
bulk-mail -- bulk e mailing is sending a similar email to multiple @placeholder addresses .
{ "confidence": [ 50.80842590332031, 48.79278564453125, 43.50048828125, 43.22692108154297, 41.48484802246094, 41.15325164794922, 40.82560348510742, 39.74823760986328, 38.92613220214844, 38.92613220214844, 37.26092529296875, 36.98174285888672, 35.88215637207031, 35.639503479003906, 35.439048767089844, 35.31604766845703, 34.876564025878906, 34.42478942871094, 33.89093017578125, 33.89093017578125, 32.982566833496094, 31.449382781982422, 31.449382781982422, 29.47823715209961, 29.396236419677734, 28.816375732421875, 28.776445388793945, 28.744972229003906, 28.230518341064453, 27.853534698486328, 27.73371124267578, 27.318878173828125, 27.311676025390625, 27.104297637939453, 27.07976531982422, 26.82013702392578, 26.82013702392578, 26.594093322753906, 25.980552673339844, 25.493728637695312, 25.47317123413086, 25.440753936767578, 25.440753936767578, 25.330608367919922, 24.998390197753906, 24.982532501220703, 24.51483917236328, 24.497512817382812, 24.43473243713379, 24.43473243713379, 23.906909942626953, 23.606494903564453, 23.606494903564453, 23.606494903564453, 23.606494903564453, 23.606494903564453, 23.23583984375, 23.226970672607422, 23.226970672607422, 23.226970672607422, 22.760902404785156, 22.760902404785156, 22.707576751708984, 22.490863800048828, 22.490863800048828, 22.490863800048828, 22.449373245239258, 22.218631744384766, 22.218631744384766, 22.218631744384766, 22.15290069580078, 22.059080123901367, 22.059080123901367, 22.010387420654297, 21.808073043823242, 21.62276840209961, 21.578433990478516, 21.578433990478516, 21.578433990478516, 21.490360260009766, 21.490360260009766, 21.490360260009766, 21.490360260009766, 21.45762825012207, 21.288532257080078, 21.042369842529297, 21.042369842529297, 20.754253387451172, 20.754253387451172, 20.7127628326416, 20.35741424560547, 20.23153305053711, 20.137256622314453, 20.137256622314453, 19.84182357788086, 19.838335037231445, 19.788509368896484, 19.516159057617188, 19.408985137939453, 19.309337615966797 ], "content": [ "I used a dedicated mail-server for this purpose.The server is not supporting bulk mailing .", "@David - Yes but then they are the ones sending the bulk-mail not the OP", "Does my code helps in preventing bulk mailing efficiently", "The problem i faced was the mail-server i used do not allow bulk mailing .", "I am new to use phpmailer for sending bulk mails .", "Gmail s for consumer e-mail in consumer e-mail style sending patterns .", "For sending bulk or more email either you have to use the Paid service such as MailChimp etc .", "For sending to bulk users i don t want to use alias some restrictions .", "I ve set up a windows service to do the bulk mailing functionality which executes it batch by batch .", "use can use phplist for bulk mailing with PHP mailer or without click Here http : www.phplist.com for more", "I am fetching all the 100 emails and then sending the mails to all in bulk at once .", "Do this prevent from considering the mails as spam or as bulk", "I am using the following PHP CODE to send BULK MAIL .But Mails seems to Land in SPAM.I am using phpmailer class to send the mail .", "Bulk mails are spam so everything is OK . alos please see stackoverflow.com questions 4545648 http : stackoverflow.com questions 4545648 why-is-my-bulk-email-being-flagged-as-spam", "In our application we tend to send individual email to all users around 1500 users - Bulk email .", "I am trying to send e-mail to a group but not being able to send catch is my script is sending e-mail to individual id but not group .", "Our Bulk email script fails when it has thousands of emails to send .", "I am trying to send bulk-email from gmail using php in which from address to address and message are set from a form .", "Verifying guidelines for Google Bulk Senders https : support.google.com mail bin answer.py hl en answer 81126 may help .", "One for running the Bulk Mail application that I ve already created and another one for SMTP Server .", "You can t send the bulk emails from Gmail Account .", "Sendmail only fails in the PHP bulk-mail script when a lot emails have been already sent without errors .", ".. . .. . Code of PHP script .. . .. . The PHP bulk-mail scipt main loop is executed thousands of times .", "You are probably spoofing your from e-mail address .", "conncontrol ratecontrol - it is not important if you have entries in access table etc mail access turning it off for loopback addresses .", "i am trying to add atatchment while sending mail from gmail using php .", "I need to send E-Mails which is in HTML format to all those Mail IDs using thread pool .", "Mailing is done via the mail command I know crappy from a CRON job with proper pauses etc .", "In each loop pass calls sendMail with a different email and user : .. . .. . this- sendmail mail user calls Zend internal method for sending mail .", "I have already developed an application that sends bulk mails nearly 1 million hour using SMTP client .", "I have a our company smtp server email id now i want to market a company product for that i want to send out bulk emails say around 15000 everyday or so but my company mail id limits me with the 150 mails per day is there anything i can do to send 15k mails from my company id or is there any way i send the mails from another smtp server but in the TO it should show my company id only .", "But if it has a try-catch block you can simply log the error message in your catch block and proceed sending mail to rest of the users. .", "When I send mail to all email id s the mail goes to spam folder of gmail of receipient .", "In that way I need to complete the Mailing Operation .", "The necessary locking can also be done via db : a SCHEDULE column stores the expected scheduled time of sending the mail .", "Briefly how does sendmail works for sending mail", "How does sendmail works for sending mail", "Is it sending for one", "I appreciate this manual solution is not appropriate for automated bulk messaging but for small non-profit sites on shared server who trigger each message with a click I thought it was worth sharing .", "We once had a similar requirement and solved it via a home grown service which would fetch items from a special database-table mail queue and sent each mail individially .", "Using MSMQ for sending mails .. . 3 .", "at mail client or service SMTP managing recipient mailboxes .", "The best way would be to upload the file and link it in the mail .", "and what is mail- Username mail- Password mail- From mail- FromName doing", "I have a domain with http : www.myacademicproject.com for Final Year IT Students Internship students to whom I am sending the mail .", "@Lylo mail- Username mail- Password mail- From mail- FromName should be mail- Username mail- Password mail- From mail- FromName. . and even if I ignore remove startnum and endnum from code for moment it is not working. .", "@EAMann - Exactly you could have each email have a single-use token or have them enter their email in order to view the file and check that email against the subscriber list and check to see if it has been used", "I need to take 1000 Mail IDs using a loop .", "If i have stored the voice email on my website then", "I am using email id s from database .", "Actually i need to send 10000+ e-mails at one stretch .", "I have recorded a voice message attached with email and sent it to several companies .", "One company takes that voice message email and send it to millions of people .", "I want to stop resend of my email voice recording .", "Is there any way to skip the error and continue with next email id .", "I have some 100 email ID in my Database .", "Now while our mail-server is set up to keep trying to send an email to an address that returns temporarily unavailable I would like to be able to receive status messages into PHP immediately after sending .", "And after they have selected the friends they want to mail we send those friends invitations .", "As well as changing the limit you should send them in batches to avoid overloading the mail-server .", "I have more than 100 million Mail IDs in my MySQL Database .", "spmafilters add custom headers to the mail with how the spamscore was calculated .", "So.. . .. . .. . My solution was to change my CMS to not use PHP mail at all .", "For this purpose i used a windows service that triggers every day and executes the mailing functionality only after the third month .", "Typically email messages with legitimate content subject filled having a valid form and few recipients with To specified are unlikely considered as a spam .", "So someone signs up for your service then you spam all their friends by email", "Since some emails are invalid mails are not getting triggered to valid email id also .", "There are many examples for that on web like codeproject.com Articles 667461 http : www.codeproject.com Articles 667461 Send-asynchronous-mail-using-asp-net", "That way the service collects only those mails wich are ready for sending .", "Have you considered sending aggregated notifications about less critical events", "The main reason for the precautions are to stop the sending of the spam through automatic process .", "We have added our mailing functionality to be executed in two scenarios .", "Once someone has a recording of your voice there isn t anything you can do to stop them from sending it to whoever they want .", "So I think I can take 1000 Datas and after sending those 1000 Mails again take the next 1000 .", "Further creating mail-merge with gmail and google-docs http : www.labnol.org software mail-merge-with-gmail 13289 shall be useful .", "You can also set up an authentication system on your own site that forces users to verify their email-address and maybe an auth token to listen to the recording .", "Actually I m using Mail Enable SMTP Server .", "Regardless spam detection happens based on many different parameters such as number of recipient to cc bcc mail contents a list of know spammer SMTP getaways etc so you have to consider that .", "You Can Catch Exception Mechanism to continue with next Mail with appropriate logic .. . .. . Posted by Phil http : stackoverflow.com users 284364 phil-rykoff PHPMAiler uses Exceptions .", "I m using MySql.Data.MySqlClient for communicating with MySQL Database .. . .. . My Database Structure is .. . .. . Columns : ID - bigint MailID - varchar 300 Unsubscribed - bit .. . .. . I need to send mails to all Mail IDs with value 0 in Unsubscribed column .", "A new client wants to send out 100 000 mails a month in 25K weekly batches and I want to replace the mail function .", "I ve to fetch last three months records from database and need to send one mail for each record .", "Messages are sent from my computer s IP Address not on any blacklist using my mail client Thunderbird .", "Now everything is fine and i have setup the emails to be sent using gmail smtp using swift mail plugin .", "Bulk emailing is a science in its own right OK so more like a black art and at these kinds of volumes you need to up your game a lot if you want reasonable rates of deliverability .", "I have database of 1000 members which contains email ids of users and had developed code for sending mails to all users in database using single administrator account - the administrator logins were hardcoded in the code .", "But if you are using the Shared Hosting server then also the Service Provider controls the Sending of Emails daily .", "If the Emails are note spam and numbers are high then it is always recommended to your paid service which provide the API access for sending the Emails .", "Your email server could be blacklisted due to either you or another user on your server .", "On an average bases GMail allows 300-500 Emails daily according to the email usage and sent and received emails .", "This takes me just a couple of seconds longer than it did when my CMS used PHP mail to send the message for me .", "So if an email does not get sent because the recipient email-address is temporarily unavailable I would like to get the temporarily unavailable message back into Php but I would also like the real one to get passed back once the sending succeeds for example if the email does go through 2 days later .", "If your email volume is beyond the capability of your local hardware perhaps it s time to utilize an off-site email distribution service .", "You re making an iteration 4 times of sending mails to each and every login .", "I need to initiate as many threads that I can and increase sending rate .", "I sent a test message to my Gmail address and found that if you read your mail through Gmail webmail interface it will sometimes tell you Why the message was spammed .", "Sounds to me like you are adding mail to the queue faster than the smtp server can send them so the queue gets longer and eventually takes too much time to send an individual email so it times out .", "I have 3 email accounts and Counter is checking my account number .", "Generally about 2500 - 3000 daily Emails are allowed and if it also crosses the rate of sending emails of 100 125 Emails hourly then they will also dis-allow you account or de-activate your account after giving the warning .", "As the user count increases suddenly the mail functionality stops and throws either of the two following errors .", ".. . .. . Proccesses sendmail running .. . .. . See the ps -aux grep sendmail output when the bulk-mail scipt is working fine .. . .. . When the script starts throwing exceptions ps -aux grep sendmail outputs almost empty as expected .. . .. . .. . .. . Some questions .. . .. . I am quite newbie with sendmail so I appreciate any kind of help ." ] }
{ "confidence": [ 63.049232482910156, 57.27833938598633, 55.322872161865234, 53.02365493774414, 52.0286750793457, 49.8084602355957, 48.435203552246094, 47.7383918762207, 47.42267990112305, 45.382293701171875, 44.04975128173828, 43.82292938232422, 42.901065826416016, 42.052978515625, 40.49162292480469, 39.780799865722656, 36.710025787353516, 35.9460334777832, 35.38336181640625, 34.868160247802734 ], "content": [ "Question : I ve set up a windows service to do the bulk mailing functionality which executes it batch by batch . The service fetches one batch from DB during its schedule and after each batch i ve given a delay of 20 seconds . Do this prevent from considering the mails as spam or as bulk If so do my code performs what i require . My code is as follows : .. . .. . Any one please give your suggestion... . .. . Answer : AFAIK most of the time spam detection happens at recipient side i.e . at mail client or service SMTP managing recipient mailboxes . Its unlikely to happen at originating SMTP because these days SMTP needs authentication and or they does not support relaying so does not need to detect spam . Regardless spam detection happens based on many different parameters such as number of recipient to cc bcc mail contents a list of know spammer SMTP getaways etc so you have to consider that . Typically email messages with legitimate content subject filled having a valid form and few recipients with To specified are unlikely considered as a spam . Comment : Actually i need to send 10000+ e-mails at one stretch . I used a dedicated mail-server for this purpose.The server is not supporting bulk mailing . Does my code helps in preventing bulk mailing efficiently", "Question : I am new to use phpmailer for sending bulk mails . The execution stops and shows error if send fails . Is there any way to skip the error and continue with next email id . I am using email id s from database . .. . Answer : use can use phplist for bulk mailing with PHP mailer or without click Here http : www.phplist.com for more", "Question : I am using the following PHP CODE to send BULK MAIL .But Mails seems to Land in SPAM.I am using phpmailer class to send the mail . Comment : Bulk mails are spam so everything is OK . alos please see stackoverflow.com questions 4545648 http : stackoverflow.com questions 4545648 why-is-my-bulk-email-being-flagged-as-spam Comment : Some most spmafilters add custom headers to the mail with how the spamscore was calculated . Inspect it . Comment : You are probably spoofing your from e-mail address . That s why most spam filters will mark it as spam . .. . Answer : There are a number of reasons you could be going into someones spam box . Your email server could be blacklisted due to either you or another user on your server . You can check it at http : mxtoolbox.com blacklists.aspx .. . .. . Also check your SPF records in your DNS", "Question : I am trying to send e-mail to a group but not being able to send catch is my script is sending e-mail to individual id but not group . Googled it but not much helpful . For sending to bulk users i don t want to use alias some restrictions . Please Advice Comment : Just so that you know the second shebang usr sbin sendmail does nothing . It is just a comment . .. . Answer : Pass list of recipients as sendmail command-line-arguments - AFAIR it should work on Linuxes for a few hundredth recipients .", "Question : I am new to use phpmailer for sending bulk mails . The execution stops and shows error if send fails . Is there any way to skip the error and continue with next email id . I am using email id s from database . .. . Answer : You Can Catch Exception Mechanism to continue with next Mail with appropriate logic .. . .. . Posted by Phil http : stackoverflow.com users 284364 phil-rykoff PHPMAiler uses Exceptions . Try to adopt the following Comment : Thank you it worked with try-catch .", "Question : null .. . Answer : I have some 100 email ID in my Database . In which some emails are invalid . I am fetching all the 100 emails and then sending the mails to all in bulk at once . Since some emails are invalid mails are not getting triggered to valid email id also . Mails are getting failed completely . I am using the WebSphere Server . We tried the mail.smtp.sendpartial option also .. . .. . Can someone help me on this Comment : Is it sending for one What s the exception Comment : Not sure of what is the code you have written. . But if it has a try-catch block you can simply log the error message in your catch block and proceed sending mail to rest of the users. . Comment : Propably your programm throws an Exception . Look into the stderr or logs .", "Question : I am a little desperate with a problem in our web server . Our web is a community with a lot of users and activity . We send to users personalized mails of the activity of their interest . We have a problem in the script that handles these mailings . Our Bulk email script fails when it has thousands of emails to send . It usually works fine but when it has to send more than usual emails aprox . 25.000 emails it throws an Exception repeatedly : .. . .. . The strange thing is that sendmail works properly in other processes such the web server and sendmail is called in the same way in PHP Zend . Sendmail only fails in the PHP bulk-mail script when a lot emails have been already sent without errors . When the first exception is thrown next calls to sendmail fail also . It seems as-if some queue limit has been reached but only for this process .. . .. . Code of PHP script .. . .. . The PHP bulk-mail scipt main loop is executed thousands of times . In each loop pass calls sendMail with a different email and user : .. . .. . this- sendmail mail user calls Zend internal method for sending mail . It calls PHP native method mail http : php.net manual en function.mail.php . .. . .. . Proccesses sendmail running .. . .. . See the ps -aux grep sendmail output when the bulk-mail scipt is working fine .. . .. . When the script starts throwing exceptions ps -aux grep sendmail outputs almost empty as expected .. . .. . .. . .. . Some questions .. . .. . I am quite newbie with sendmail so I appreciate any kind of help . If you need more info please tell me . Briefly how does sendmail works for sending mail Does sendmail have a limit of mails to send our server is dedicated and has not specific restrictions set by the hosting provider Does sendmail have any queue for process that limits the number of mails that can be sent by a given process Million dollar question : why is the exception beeing thrown and how to solve it : - .. . .. . Thanks in advance for your help Comment : Please do not cross-post to multiple Stack Exchange sites . Instead select the single most appropriate site and post there . .. . Answer : You create one sendmail process per one email sent . 25 000 emails may create too many processes for your computer to handle . P.S . You may try to ask your question at news : comp.mail.sendmail - add something to indicate that it is not spammer in trouble question . Comment : Thanks I have rewritten the question . As you can see we are not spammers or try not to be : - . Please clarify me how can I ask at news : comp.mail.sendmail", "Question : I ve a requirement in which i need to send 10000+ mails on a quarterly basis . For this purpose i used a windows service that triggers every day and executes the mailing functionality only after the third month . I ve to fetch last three months records from database and need to send one mail for each record . The problem i faced was the mail-server i used do not allow bulk mailing . How can i do this effectively by providing a delay between each sent 20 mails per minute .. . Answer : There are many way to archieve this . We once had a similar requirement and solved it via a home grown service which would fetch items from a special database-table mail queue and sent each mail individially . The queue is filled over time by regular business logic . The necessary locking can also be done via db : a SCHEDULE column stores the expected scheduled time of sending the mail . That way the service collects only those mails wich are ready for sending . After successfull send another column SENT TIMESTAMP is used to mark the success . We implemented the whole service in ASP and triggered it via regular Windows Task Planner jobs . In your case the service would start every minute and the queue would provide the next 20 mails . An even easier way could be to utilize SQL Server Jobs . SQL Server is capable of delivering mails to a local SMTP server as well . If not done yet please note that SO question as well : What is the best way to send large batches of emails in ASP.NET http : stackoverflow.com q 56975 492238", "Question : I am using the following PHP CODE to send BULK MAIL .But Mails seems to Land in SPAM.I am using phpmailer class to send the mail . Comment : Bulk mails are spam so everything is OK . alos please see stackoverflow.com questions 4545648 http : stackoverflow.com questions 4545648 why-is-my-bulk-email-being-flagged-as-spam Comment : Some most spmafilters add custom headers to the mail with how the spamscore was calculated . Inspect it . Comment : You are probably spoofing your from e-mail address . That s why most spam filters will mark it as spam . .. . Answer : I experienced same . My website sends requests for data confirmation to users a few times each day while I do my daily data maintenance . I sent a test message to my Gmail address and found that if you read your mail through Gmail webmail interface it will sometimes tell you Why the message was spammed . Very useful . It gave the reason A lot of messages from hp19.hostpapa.com were spam . I am on a budget shared server and I assume a hundred other spammers have bought accounts on the same machine as mine and are using it for evil . My site is non-profit so buying a dedicated box to avoid spam is not an option . So.. . .. . .. . My solution was to change my CMS to not use PHP mail at all . Now my CMS simply displays the message and a mailto : link with Subject parameter set . Now my process is to hit CTRL+C Click the link CTRL+V and hit send . Messages are sent from my computer s IP Address not on any blacklist using my mail client Thunderbird . This takes me just a couple of seconds longer than it did when my CMS used PHP mail to send the message for me . However I have found I am receiving a lot more replies so I am happy that the vast majority of messages are not getting spam-binned . I appreciate this manual solution is not appropriate for automated bulk messaging but for small non-profit sites on shared server who trigger each message with a click I thought it was worth sharing .", "Question : I am a little desperate with a problem in our web server . Our web is a community with a lot of users and activity . We send to users personalized mails of the activity of their interest . We have a problem in the script that handles these mailings . Our Bulk email script fails when it has thousands of emails to send . It usually works fine but when it has to send more than usual emails aprox . 25.000 emails it throws an Exception repeatedly : .. . .. . The strange thing is that sendmail works properly in other processes such the web server and sendmail is called in the same way in PHP Zend . Sendmail only fails in the PHP bulk-mail script when a lot emails have been already sent without errors . When the first exception is thrown next calls to sendmail fail also . It seems as-if some queue limit has been reached but only for this process .. . .. . Code of PHP script .. . .. . The PHP bulk-mail scipt main loop is executed thousands of times . In each loop pass calls sendMail with a different email and user : .. . .. . this- sendmail mail user calls Zend internal method for sending mail . It calls PHP native method mail http : php.net manual en function.mail.php . .. . .. . Proccesses sendmail running .. . .. . See the ps -aux grep sendmail output when the bulk-mail scipt is working fine .. . .. . When the script starts throwing exceptions ps -aux grep sendmail outputs almost empty as expected .. . .. . .. . .. . Some questions .. . .. . I am quite newbie with sendmail so I appreciate any kind of help . If you need more info please tell me . Briefly how does sendmail works for sending mail Does sendmail have a limit of mails to send our server is dedicated and has not specific restrictions set by the hosting provider Does sendmail have any queue for process that limits the number of mails that can be sent by a given process Million dollar question : why is the exception beeing thrown and how to solve it : - .. . .. . Thanks in advance for your help Comment : Please do not cross-post to multiple Stack Exchange sites . Instead select the single most appropriate site and post there . .. . Answer : How does sendmail works for sending mail .. . .. . It is not a short story . Anyway to reduce number of sendmail processes you may configure your php to send via smtp protocol to port 25 on 127.0.0.1 loopback interface . It will create only owned by root sendmail processes . You should also define confDELAY LA confQUEUE LA delay .. . .. . confDELAY LA slows speed of accepting new mails when system load average is higher than configured limit . It may will make your script run longer . confQUEUE LA skips at once delivery attempts - you most likely should increase number of queue runners processes . In short : you push your sendmail server beyond limits standard simple configuration is assumed to handle with ease . Comment : In our sendmail.mc : FEATURE conncontrol nodelay terminate dnl FEATURE ratecontrol nodelay terminate dnl Comment : what changes would you suggest for our scenario Thanks Comment : conncontrol ratecontrol - it is not important if you have entries in access table etc mail access turning it off for loopback addresses . e.g . clientrate : 127 0 and clientcon : 127 0 . Comment : I would suggest 1 swithing php to smtp 127.0.0.1 : 25 2 Increasing after some test confQUEUE LA in sendail configuration - I think many modern servers can handle higher loads especially Linux which computes LA in another way giving higher values 3 IF mailq would report many messages in queue THEN increase number of queue directories - sendmail.org gshapiro 8.10.Training mqueue.html http : www.sendmail.org gshapiro 8.10.Training mqueue.html - use var spool mqueue with extra directories named var spool mqueue1 var spool mqueue2 ... . Do not create more than 3 extra directories in first try", "Question : I am new to use phpmailer for sending bulk mails . The execution stops and shows error if send fails . Is there any way to skip the error and continue with next email id . I am using email id s from database . .. . Answer : In PHP you can suppress error display by adding @ to the function . This will usually prevent the error from being displayed . For your situation you can put the code in try..catch . In the catch section check if the all the emails have been sent if not just continue with the next one . This also means that you need a way to track the total emails and the number of emails completed . Hope this helps .", "Question : I have setup a network monitoring system at my office that monitors activity over my network and shoots me an email at certain triggers that i have setup . I have put together an application that quickly does the job for me custom made for the kind of monitoring that i need and rules that i have setup . Now everything is fine and i have setup the emails to be sent using gmail smtp using swift mail plugin . The problem is gmail is locking my gmail account if a burst of emails is sent or atleast that is what i think . What happens is sometimes theres a lot of activity and the system sends like 50 or 60 emails over a short span of time like in a minute or two . Immediately gmail blocks access to the account and when i open the account in my browser it asks to verify my account . Even after unblocking it the server is still not able to open to gmail account using smtp or imap . This is getting annoying and i would like to know if there is a way to stop gmail from blocking access to an account if it knows that the access is from a specific IP or if there is a better way to send lots of emails . Comment : 1 Could you name OS distribution you use windows linux It may help to find eliminate available tools 2 Does your office use fixed IP permanent internet-connection I assume yes but I prefer to be 100 sure .. . Answer : You can t send the bulk emails from Gmail Account . On an average bases GMail allows 300-500 Emails daily according to the email usage and sent and received emails . For sending bulk or more email either you have to use the Paid service such as MailChimp etc . or send the Emails through your own Server . But if you are using the Shared Hosting server then also the Service Provider controls the Sending of Emails daily . Generally about 2500 - 3000 daily Emails are allowed and if it also crosses the rate of sending emails of 100 125 Emails hourly then they will also dis-allow you account or de-activate your account after giving the warning . The main reason for the precautions are to stop the sending of the spam through automatic process . If the Emails are note spam and numbers are high then it is always recommended to your paid service which provide the API access for sending the Emails .", "Question : I have a domain with http : www.myacademicproject.com for Final Year IT Students Internship students to whom I am sending the mail . I have a gmail account with [email protected] from where I send mails to all my friends and the students who inquired for Final Year Project . When I send mail to all email id s the mail goes to spam folder of gmail of receipient . I have also changed the Display Name from Shekhar Shete to MyAcademicProject.com . Any Idea to avoid as spam Help Appreciated Comment : This is not a programming related question . Try getting some help with google . There will be a lot of forums which would help .. . Answer : Verifying guidelines for Google Bulk Senders https : support.google.com mail bin answer.py hl en answer 81126 may help . Further creating mail-merge with gmail and google-docs http : www.labnol.org software mail-merge-with-gmail 13289 shall be useful . Comment : Thanks @sundeep for replying i will check it", "Question : I have a reason to do that . I have recorded a voice message attached with email and sent it to several companies . One company takes that voice message email and send it to millions of people . I want to stop resend of my email voice recording . I am C develop one of my client asked me this question . I asked him to introduce verification codes so that nobody will be able to listen the voice but still emails would be sent to millions of poeple . Any workaround for this problem .. . Answer : Host your audio file on a website then provide a link-to that audio file in your emails . That way all your emails are light-weight and are not clogging people s inboxes . Comment : If you re hosting the file you can control who has access to it and for how long . You can also set up an authentication system on your own site that forces users to verify their email-address and maybe an auth token to listen to the recording . This makes your audio much more secure and prevents anyone from redistributing . Comment : But all someone has to do is download the file then spam it out to millions of people . If someone can listen to the audio it s on their computer . Comment : @EAMann - Exactly you could have each email have a single-use token or have them enter their email in order to view the file and check that email against the subscriber list and check to see if it has been used Comment : @David - Yes but then they are the ones sending the bulk-mail not the OP", "Question : I have a our company smtp server email id now i want to market a company product for that i want to send out bulk emails say around 15000 everyday or so but my company mail id limits me with the 150 mails per day is there anything i can do to send 15k mails from my company id or is there any way i send the mails from another smtp server but in the TO it should show my company id only . Can anyone please provide me with some solution . Comment : can you tell what hosting you are using May be your hosting plan has limitation Comment : What If this is a legal requirement ask IT support to change the limit - you say you are marketing a company product so there should be no problem . .. . Answer : As well as changing the limit you should send them in batches to avoid overloading the mail-server . Here s instruction on how to do this with a console-application from a Web form : .. . .. . http : www.codersbarn.com post 2011 11 08 Calling-Console-Application-from-Web-Form.aspx", "Question : null .. . Answer : We are using Rails 2.3.8 version . In our application we tend to send individual email to all users around 1500 users - Bulk email . We are not using any services other than Actionmailer . Hence we cannot use any service like mailGun sendGrid mailchimp etc Also we have our own SMTP server through which all the mails are sent . We have added our mailing functionality to be executed in two scenarios . 1 . Rake Task with CRON JOB Auto mails to be sent at specific time .. . .. . 2 . Via controller Mails are sent when a button is clicked .. . .. . In both the cases Initially the mails are forwarded to the users without any issues . As the user count increases suddenly the mail functionality stops and throws either of the two following errors . 1 . 535 5.7.3 Authentication Unsuccessful .. . 2 . Execution expired .. . .. . Could anyone please help me sort out the issue Is there any timeout value that has to be set for SMTP server connectivity Or are there any restrictions like number of mails sent per minute Thanks in Advance Comment : It sounds like these issues are caused by your SMTP server . Usually there are restrictions on mails that can be sent and if you are sending them from a gmail address for example then google might also step in if you send too many flagging them as spam i have received 24 hour bans from google before for testing mass emailing through my gmail account . Usually you would configure actionmailer to send eg 200 every minute or something . Comment : Thanks Max for your reply . But 1500 mails does not seem to be too many . Because large amount of mails around 10000 or more could be sent from Rails applications . Sending 1500 mails from our application takes a very long time nearly 1 hour for 350 mails . Comment : It doesn t matter how many emails someone else is sending from their rails application and whether you think it isn t too many . What matters is your SMTP server config . For all you know it may be set up with a limit which is not adequate for your needs . I suggest you investigate this rather than dismiss it as not being possible . Comment : Not a direct answer but you should seriously consider mandrillapp.com . Makes life so much simpler and you may fit into their free plan with that volume .", "Question : We send a lot of emails to a lot of our users ranges in 20k+ per day . One of the major problems we face are invalid or dead emails - sometimes our users delete their accounts change their email-address without updating their profile or our email database builders simply caught emails that are invalid or no longer active . These unresolved returned status messages keep not only piling up on our webmaster account but also waste precious server resources and flag us as spam more often because of the repeated attempts . Now while our mail-server is set up to keep trying to send an email to an address that returns temporarily unavailable I would like to be able to receive status messages into PHP immediately after sending . For example when my Sender class sends an email I would like to know the status message that was returned - whether the email is no longer active or the server does not exist or the email was simply moved to another address . Naturally I want to be able to receive a status message of a delayed email as well . So if an email does not get sent because the recipient email-address is temporarily unavailable I would like to get the temporarily unavailable message back into Php but I would also like the real one to get passed back once the sending succeeds for example if the email does go through 2 days later . Is there a library that would help me achieve this What are the most common approaches to this problem if any .. . Answer : Like most questions about PHP and mail this is mainly about the MTA . Bulk emailing is a science in its own right OK so more like a black art and at these kinds of volumes you need to up your game a lot if you want reasonable rates of deliverability . But back to the question . An awful lot of this is about how you configure your mail-server . AFAIK most MTAs will only send back a failure message when the message is removed from the queue e.g . after the last attempt at delivery . Which gives 2 options for tracking each attempt : .. . .. . 1 parse the log files .. . .. . 2 set the number of attempts to 1 and optionally handle re-queueing yourself . Given that a message can fail to be delivered after it has successfully departed from your server it makes a lot of sense to use delivery status notifications i.e . bounce emails to track the progress of messages - so using option 2 avoids having to build different code for handling different scenarios . Without knowing what OS this is running on nor which MTA it s impossible to give more specific recommendations . Comment : We are flexible on the MTAs and would not mind replacing it if one would perform better for our needs . The OS is Linux . Right now we use sendmail in some cases and Zend Mail Transport Smtp in others . Comment : I have created a library for sending for my company . We can process parse and create 1000 different emails to 1000 different recipients from 1000 different senders in under 2 seconds while the actual sending the - send command takes 30 seconds for the whole 1000 . This is acceptable for us . Now we use a direct Zend transport for latching onto the server and sending that way . In a way we don t use a real MTA . As previously mentioned the server is Linux based . As for your suggestions - do you perhaps have an example of solution 2", "Question : I am trying to send bulk-email from gmail using php in which from address to address and message are set from a form . But it is not working..shows error .. . .. . Mail.php .. . .. . Index.php .. . .. . it shows the follwing error : .. . .. . Someone please help me to solve this problem . I am not getting what the problem is . .. . Answer : Cargo-cult programming : .. . .. . should probably just be .. . .. . Note the use of instead of and the LACK of quotes around those single values . You ll have to fix up every line of code in your script where you re doing this sort of bad array referencing . Comment : Thanks for that..i knw something simple was wrong..what a stupid I am.. . Comment : No worries . Everyone has to start somewhere . Comment : If SO had publicity announcements on TV radio it would probably go something like this : ...and this message was brought to you by Cargo-cult programming . Cargo-cult for all your programming needs ...NOT .", "Question : I need to create an SMTP Server in C . I have already developed an application that sends bulk mails nearly 1 million hour using SMTP client . But when it reaches particular limit I m getting Operation timed out error message . When I checked in my SMTP Server Dedicated Server I ve seen that there are a lot of mails in queue and the ratio of mails sent to remote servers is very low compared to the mails coming from the SMTP Client . Hence I planned to develop my own SMTP Server application as well . I need to initiate as many threads that I can and increase sending rate . I have two dedicated servers . One for running the Bulk Mail application that I ve already created and another one for SMTP Server . So please help me out to create a very efficient SMTP Server Application . Also please provide me the links of source code samples . Then I can easily refer and create a good one . Thanks in advance . Comment : This seems like the wrong way to solve the problem . There are plenty of SMTP servers available already . It s highly unlikely that you re going to build a better one than any of the available ones . It seems like a more productive approach would first be to determine what s slowing down your existing server . Comment : Is it very difficult to build a SMTP Server If I create a SMTP Server then I can completely build it as per our needs . That is what I m thinking . Comment : I have tried to configure the current SMTP Server what I m using . But still receiving the error message when it reaches 15 000 to 20 000 mails . I need to send mails without fail . Please help me to develop an SMTP application . I have searched a lot for getting some source code samples . But unable to find out . Comment : If your email volume is beyond the capability of your local hardware perhaps it s time to utilize an off-site email distribution service . There are many of those to choose from as well . The point is writing your own SMTP server just because yours doesn t meet your needs is like writing your own OS just because Windows crashed once or building your own car just because the check engine light came on once . I don t doubt that you re having issues with your current setup but the solution you propose is absolutely not how you go about fixing it . .. . Answer : Sounds to me like you are adding mail to the queue faster than the smtp server can send them so the queue gets longer and eventually takes too much time to send an individual email so it times out . You can change the timeout of an email from the default 100000 ms in C to whatever you want to keep it from timing out . This will not solve your problem but if your problem is a peak valley problem it may smooth it out . With this strategy you are playing with fire your failures will be delayed more with the potential of losing more with each failure . I suggest adjusting your hardware maybe a second smtp to relay off of or something of that nature . I just hope i m not enabling a spam bot with this post . Comment : OK. . I ll try to increase time out to 1 Hour . I have found an alternative option . Actually I m using Mail Enable SMTP Server . I got an option to inject mails directly to SMTP Outgoing Queue folder . Now I m trying that one . Please let me know your opinion about this one . For doing this I have to create two file in Outgoing queue folders . So I think that is a faster option that will consume less time to create files than sending mails through SMTP Client .", "Question : I have more than 100 million Mail IDs in my MySQL Database . I need to send E-Mails which is in HTML format to all those Mail IDs using thread pool . I cannot take that much datas in a single DataTable . So I think I can take 1000 Datas and after sending those 1000 Mails again take the next 1000 . In that way I need to complete the Mailing Operation . I m using MySql.Data.MySqlClient for communicating with MySQL Database .. . .. . My Database Structure is .. . .. . Columns : ID - bigint MailID - varchar 300 Unsubscribed - bit .. . .. . I need to send mails to all Mail IDs with value 0 in Unsubscribed column . Please help me how to do it in C . Comment : please give us more Details . Which DB Provider do you use . How do you Access the db . And WHAT exactly are you not able to implement in c After that we could help you Comment : Please do not use regional numerals like crore https : en.wikipedia.org wiki Crore : the rest of the world will not understand that you mean tens of millions or in this case a lot . I have edited your question to replace it by millions and where you used 10 crore 100 million Comment : i m using MySql.Data.MySqlClient for communicating with database . My Database has 3 Columns ID bigint MailID varchar 300 Unsubscribed bit . I need to send mails to all MailIDs having value in Unsubscribed as 0 Comment : @user2994846 please update your question with all additional information Comment : I have updated my Question . Please help me out.. . .. . Answer : see http : dev.mysql.com doc refman 5.0 en select.html especially LIMIT clause . also http : php.about.com od mysqlcommands g Limit sql.htm Comment : I ve done like that . But how to do the thread pool operation in a loop . I need to take 1000 Mail IDs using a loop . Comment : Why do you want to use the Threadpool . Do it single-threaded asynchronous . Comment : There are many examples for that on web like codeproject.com Articles 667461 http : www.codeproject.com Articles 667461 Send-asynchronous-mail-using-asp-net Comment : I need to send all those mails within a short period of time . If we send 100 million mails using single thread how long it will take to complete the operation Comment : When you call SendAsync then every single message is sent asynchronously . Try it and you will see if it is ok ." ] }
[ "yes-answer-long", "yes-answer-short" ]
email
UNK_RELATION
quartz.net -- quartz.net is an open-source job-scheduling library for @placeholder .
{ "confidence": [ 46.243919372558594, 44.626258850097656, 43.89091491699219, 43.11686706542969, 43.11686706542969, 42.221160888671875, 42.05651092529297, 42.00628662109375, 41.798118591308594, 41.26284408569336, 41.098358154296875, 41.07416534423828, 40.81365203857422, 40.58856964111328, 39.798805236816406, 39.798805236816406, 39.57762145996094, 39.57762145996094, 39.57762145996094, 39.57762145996094, 39.457550048828125, 39.24299621582031, 39.24299621582031, 39.24299621582031, 38.82755661010742, 38.82755661010742, 38.55567932128906, 38.39569854736328, 38.38258361816406, 38.38258361816406, 38.14543151855469, 38.14543151855469, 37.66348648071289, 37.66348648071289, 37.50135803222656, 37.50135803222656, 37.496612548828125, 37.38897705078125, 37.38897705078125, 37.21851348876953, 37.1741828918457, 37.15966796875, 37.15966796875, 36.5698356628418, 36.23521041870117, 36.23521041870117, 36.23521041870117, 36.23521041870117, 36.05921173095703, 36.01011276245117, 36.01011276245117, 36.01011276245117, 35.9249382019043, 35.9249382019043, 35.9249382019043, 35.9249382019043, 35.9249382019043, 35.9249382019043, 35.9249382019043, 35.80182647705078, 35.760746002197266, 35.647335052490234, 35.647335052490234, 35.4614372253418, 35.42218017578125, 35.32646179199219, 34.95368576049805, 34.95368576049805, 34.95368576049805, 34.95368576049805, 34.95368576049805, 34.95368576049805, 34.95368576049805, 34.95368576049805, 34.95368576049805, 34.47694778442383, 34.381187438964844, 34.381187438964844, 34.381187438964844, 34.28076934814453, 34.22050857543945, 34.18329620361328, 34.18329620361328, 34.18329620361328, 34.18329620361328, 34.18329620361328, 34.15188217163086, 33.789615631103516, 33.789615631103516, 33.789615631103516, 33.55476379394531, 32.96403503417969, 32.917152404785156, 32.917152404785156, 32.917152404785156, 32.917152404785156, 32.917152404785156, 32.917152404785156, 32.917152404785156, 32.917152404785156 ], "content": [ "I use Quartz.Net in an asp.net application for scheduling tasks .", "The quartz.net source code bread-crumbs are : .. . .. . and .. . .. . and .. . .. . And if all that doesn t clear it up....then find this quartz.net code .", "What is structure of the job that Quartz.net executes", "Quartz.net scheduler must be singleton .", "I d consider this an oversight of Quartz.net .", "Have a Job and a Trigger that you can schedule in Quartz.Net .", "I dont have any idea that combining Quartz.Net with UI for scheduling .", "Then search for Quartz.NET .", "In the past I ve used Quartz.net as well .", "The JobSchedule wraps the Quartz.Net IScheduler .", "The quoted code is the actual code from the Quartz.NET library .", "The following is a working Quartz.net example that is built against Quartz.net 2.0 Latest .", "You won t access Quartz.net table directly cause you will use the APIs provided by Quartz.net .", "Quartz.Net doesn t keep track of job history other than just a count .", "Quartz.net version is 2.1.2.400", "I tried Quartz.Net 2.0.1 .", "As I have decided I will use Quartz.NET .", "I m creating a scheduler using Quartz.NET in the current project .", "So how I can use Quartz.NET in this case", "@Dnana : is that your windows service or Quartz.net windows service", "@InteXX JobCollection and JobsWithTriggers are not in the Quartz.NET source they are custom implementations .", "I m trying to get started with Quartz.Net 2.0 .", "This was a bug in Quartz.NET and has been fixed in version 2.2.3 .", "We have now upgraded to last version of Quartz.net .", "In my case it was the version of the Quartz.net .", "I am new to Quartz.Net .", "I am using quartz.net windows service for scheduling ssrs reports .", "Although I now nothing about Quartz.Net this sounds like an issue with Quartz.Net or the way you use it .", "I want to run a scheduler job using c quartz.net and as a windows service .", "Possible duplicate of Is there any way to gain access to an HttpContext object in a Quartz.NET job", "Is running Quartz.Net 2.0 and option for you", "Quartz.Net Jobs run in a seperate thread .", "The service is based on Quartz.net scheduler .", "I m trying to implement Quartz.Net .", "When using Quartz.net to schedule jobs I occasionally receive an exception when instantiating a job .", "We have installed quartz.net scheduler service and configured a memory job to run daily @ 10 pm .", "I need scheduling functionality on my .NET MVC website and I came across Quartz.net library which can do exactly what I need .", "I have recently started working with quartz.net .", "Or in Quartz.net 2.0 implement IJob and decorate with the DisallowConcurrentExecution attribute", "Use Quartz.net to adjust the trigger that s been assigned to my scheduled job .", "I am new to Topshelf and Quartz.net .", "Has anyone run Quartz.net on medium trust", "First off I am new to Quartz.net and Moq .", "So is there a way to config Quartz.net so that it listens to file changes to the config file", "I am using the latest nuget Quartz.net packages v2.1.2.400 .", "As the title says I can t get Quartz.NET to work at all .", "We re using Quartz.net and need the jobs to fire more often .", "Well we never got Quartz.net to fire fast enough .", "How can I configure a CronString for Quartz.Net job scheduler for the following job : .. . .. . Job should run on BiWeekly on Monday at 12 : 00 AM .", "you re right the above link is not for Quartz.NET .", "Quartz.NET loads them via reflection .", "It s a must to read for quartz.net users .", "The short answer is that Quartz.Net requires a parameter-less constructor .", "Requirements Download Quartz.NET assembly using NuGet .", "How do you set up a jobstore with Quartz.net .", "NOTE : .. . .. . Quartz.net uses Common.Logging version 1.2 .", "@zed : Quartz.net must work in a medium trusted environment .", "I am planning to use quartz.net for processing files .", "Now how do I define this in quartz.net", "I m not finding classes JobCollection or JobsWithTriggers in the Quartz.NET source--can you assist", "I am using a cron trigger with misfire-instruction set to FireOnceNow in quartz.net-2.0 questions tagged quartz.net-2.0 set up with AdoJobStore and using XMLSchedulingDataProcessorPlugin .", "Quartz.NET 2.x .. . .. . Implement IJob and also decorate your job class with DisallowConcurrentExecution attribute .", "Quartz.NET 1.x .. . .. . Make the job class implement IStatefulJob rather than IJob .", "the only thing is that I m jusing Quartz.net for scheduling - so it from within the scheduled quartz job that implements IJob that I want to be able to do it :", "Based on the answers to this question Recommend a C Task Scheduling Library http : stackoverflow.com questions 507247 recommend-a-c-task-scheduling-library quartz.net running in a worker role instance is the way to go .", "Instead you should write a Windows Service and run quartz.net in that .", "@Marko Quartz.Net might affect webiste performnace .", "I believed Quartz.net is running on its own thread .", "Your website and then a secondary process that will host Quartz.Net .", "For Quartz.NET now is DateTime.UtcNow or even better DateTimeOffset.UtcNow .", "i need your help to learn Quartz.Net .", "Quartz.Net expects that you pass in dates and times in UTC .", "I m using Quartz.net within a windows service .", "Im using Quartz.Net in a MVC application installed with NuGet .", "I m not aware of anything in Quartz.Net to specify next day .", "Turns out the Quartz.Net source http : quartznet.sourceforge.net download.html contains a nice sample App.config file in src Quartz.Examples .", "But the advantage would be setting up a persistence instance of Quartz.Net without any dependencies .", "I can t find documentation anywhere on the syntax for Quartz.NET configuration-files .", "There is no complete documentation for quartz.net but you are free to write one and share .", "I m aware that there are third-party libraries such as Hangfire or Quartz.NET that provide this scheduling functionality out-of-the-box .", "This class is called by the quartz.net scheduler at tne configured time and should therefore contain your send mail functionality : .. . .. . Next you have to initialize the quartz.net scheduler to invoke your job once a day at 06 : 00 .", "I am using C Quartz.Net to create a scheduled job and make it as a windows service using TopShelf .", "but I found the Quartz.net Job Executed It will not Invoke the Service.Dispose then If in MyService I Invoke Db Operation It will not close the connection and dispose .", "I have a timed quartz.net job working fine on my dev machine but once deployed to a remote-server it is not triggering .", "I have just created Sample email sending job with Quartz.Net in my application .", "I am trying to call a webapi method from my quartz.net schedule job .", "I am trying to unit test Quartz.net Execute method using Moq .", "I will need to use Quartz.net in future projects .", "Problem is you re pointing Windsor to the Quartz.NET config file .", "Quartz.net will do all the heavy lifting in that regard .", "+1 If you don t know either the Windows Scheduler API or Quartz.Net API then I think you will be faster on your tracks with Quartz.Net", "I m wondering if either of these projects Crystal Quartz or Quartz.Net Web Console support the theory of uploading .dll plugins that you can then utilize to do scheduling .", "I am using Quartz.NET 2.3.2 - Clustered Mode with ADOJobStore .", "We are using Quartz.Net to trigger jobs on a schedule in a Windows Service .", "does Quartz.NET distinguish between them or does it look for both", "A special requirement led me to implement a custom trigger in quartz.net .", "I m trying to get Quartz.net working by embedding into my .Net MVC2 application .", "This was a problem introduced in the final version because Quartz.Net was compiled against the 4.5 framework .", "Quartz.net Scheduler must be created as singleton http : stackoverflow.com a 10132534 219406 .", "The recommended way is to have a windows service for running Quartz.NET jobs ." ] }
{ "confidence": [ 60.2076530456543, 52.15779495239258, 51.72632598876953, 51.488677978515625, 50.48614501953125, 49.94438934326172, 48.717994689941406, 48.582130432128906, 48.517677307128906, 48.1663932800293, 47.81230163574219, 47.525821685791016, 47.39289855957031, 47.16520690917969, 46.909278869628906, 46.501182556152344, 46.494815826416016, 46.2525520324707, 46.14149475097656, 45.3022346496582 ], "content": [ "Question : I have been working on MVC3 project . I have just created Sample email sending job with Quartz.Net in my application . This time I need to build a job-scheduling system in my MVC3 project . The scenario is completely based on UI . It means the users of the system have to enter the scheduling frequencies like Defining a Job Schedule time through the UI . I tried Quartz.Net 2.0.1 . I dont have any idea that combining Quartz.Net with UI for scheduling . Is there any possibilities to attach a scheduler with UI . Please suggest me how can i do this . Thanks .. . Answer : there are a few open-source projects which can help you . ASP.NET MVC applications : .. . .. . Quartz.Net Admin http : code.google.com p quartznet-admin .. . .. . Pluggable : .. . .. . Quartz.Net Web Console https : github.com mausch QuartzNetWebConsole .. . Crystal Quartz http : code.google.com p crystal-quartz it doesn t schedule jobs .. . .. . Windows Forms .. . .. . QuartzNetManager https : github.com adometry QuartzNetManager Comment : I m wondering if either of these projects Crystal Quartz or Quartz.Net Web Console support the theory of uploading .dll plugins that you can then utilize to do scheduling . Would be cool for corporate scenarios where you are constantly doing new projects that need to be scheduled Comment : @RichardB : Have a look at this article : jvilalta.blogspot.co.uk 2011 06 http : jvilalta.blogspot.co.uk 2011 06 implementing-plugin-in-quartznet-20.html Comment : Not quite what I was thinking.. . unless I misunderstand.. . was thinking of a way where it could be done from a Web UI to the system and loaded dynamicly into the system and utilized . Comment : @RichardB : I don t think that s possible but I haven t investigated that much .", "Question : I don t know how to use Quartz.dll in ASP.NET . Where to write the code for scheduling jobs to trigger mail every morning Please if some body knows about it plz help me.. . .. . .. . Edit : I found HOW TO use Quartz.NET in PRO way http : blog.goyello.com 2009 09 21 how-to-use-quartz-net-in-pro-way to be really useful . .. . Answer : A few weeks ago I wrote about using Quartz.Net to schedule jobs in Windows Azure Worker Roles . Since then I ran into a requirement that pushed me to create a wrapper around the Quartz.Net IScheduler . The JobSchedule has the responsibility of reading a schedule string from the CloudConfigurationManager and schedule a job . The CloudConfigurationManager reads settings from the Role s configuration file which can be edited through the Windows Azure Management Portal under the configure section of your cloud services . The following example will schedule a job which needs to be executed everyday at 6 AM 8 AM 10 AM 12 : 30 PM and at 4 : 30 PM . The schedule is defined in the Role settings which can be edited through Visual Studio . To reach the Role settings go to your Windows Azure Cloud Service project and find the desired Role configurations under the Role folder . Open the configuration editor by double clicking on the configuration file then navigate to the Settings tab . Click on Add Setting and name the new setting JobDailySchedule and set its value to 6 : 0 8 : 0 10 : 0 12 : 30 16 : 30 .. . .. . Then using the JobSchedule schedule a daily job using the schedule defined in the Role s configuration file . The DailyJob implementation goes as follows . Since this is a demo I will not add any specific logic to the job . The JobSchedule wraps the Quartz.Net IScheduler . In a previous post I spoke about the importance of wrapping your 3rd party tools this is an excellent example because I am containing the job-scheduling logic and I could potentially change this logic without affecting the code that is using the JobSchedule . The JobSchedule should be configured when the Role starts and the JobSchedule instance should be maintained throughout the Role s lifetime . Changing the schedule can be achieved by changing the JobDailySchedule setting through the Windows Azure Management Portal under the configure section of your cloud services . Then to apply the new schedule restart the Role instance through the Windows Azure Management Portal under the instances section of your cloud services .", "Question : Im doing a proof of concept with Quartz.Net A fairly simple scheduling task the only requirement i have is that a restart of the service it not needed to reconfigure quartz .. . .. . This is test code .. . .. . Relevant data in app.config .. . .. . My job config file .. . .. . The cron expression works and teh job is executed each minute but if i change the expression to 0 0 5 while running the service it still fires each minute . So is there a way to config Quartz.net so that it listens to file changes to the config file .. . Answer : Add scan interval definition seconds for the plugin : .. . .. . After that plugin will periodically check for file changes . Comment : Thanks to which plugin Comment : Sorry the sample was hidden as it was not surrounded with code tags . Comment : Cool thanks I can now see in the debug mode that the config is reparsed it also says not overwriting existing jobs . And the trigger time is not changed Comment : Ah this solves the problem. . overwriteExistingJobs Comment : mmw109 s comment : Where do you put overwriteExisting Jobs . I m using the example config from sourceforge but it is not taking changes e.g . I edit the job name see the filescan job fire but the old job name is still going and no new name .", "Question : I need scheduling functionality on my .NET MVC website and I came across Quartz.net library which can do exactly what I need . The problem is I m running my site on a hosting GoDaddy and when I added Quartz.net 2.0.1 to my project I ve got that assembly does not allow partially trusted callers exception . After some research I found out that many people have the same problem and some solved it by removing Common.Logging library from Quartz.net . I followed some of the advice and removed all references to Common.Logging but I still have problems . It looks like it s not enough and now I m getting Inheritance security rules violated while overriding member exception more details : .. . .. . It looks like I really need to change something in Quartz.net to make it work . Has anyone run Quartz.net on medium trust If so what needs to be done May be someone can suggest some alternatives .. . Answer : I recommend building Common.Logging yourself rather than removing it from the project . You can get the latest source from http : netcommon.sourceforge.net downloads.html . I guess the second problem had to do with that the C5.dll wasn t trusted either . I would also just build that myself . The source can be found here : http : www.itu.dk research c5 . Although there are other options than building the dlls http : stackoverflow.com questions 3072359 unblocking-a-dll-on-a-company-machine-how I personally prefer to build the dlls myself unless I absolutely trust the downloaded product . Comment : I will mark it as answer even though I haven t tried it . I solved the problem the other way changed the hosting to Winhost they allow full trust . Comment : C5 sources are not available there are there another place", "Question : null .. . Answer : Using Quartz.net Server version 2.1.2 which I upgraded to from version 2.0 because of a lack of support for UTC timezone offsets . Jobs are not being sent at the time we specify and it is seemingly because of timezone offsets . I have three job types : .. . .. . Job Frequency Requirments .. . .. . 1 . Daily once a day at a given time .. . 2 . Weekly on one to N days once each day at a given time .. . 3 . Monthly on one to n days once a day or at the last day .. . .. . For all three I use Cron expressions with SimpleTriggers . My question is : what are the things I need to tick off to verify that the jobs I am scheduling and the jobs that are going to run on the server will run on time in their timezone It appears that simply specifying the timezone is not enough I specify the timezone like this .. . .. . but on the server that holds the quartz instance in PST gets a job scheduled for 2 : 00pm in NYC EST the Next Run Time should be 2 : 00pm but it shows and runs at noon . Here are a few excellent s o articles on Quartz Time Zones : .. . .. . Quartz.net UTC Resources : .. . .. . Quartz.NET - Using understanding cron based trigger and time zone summertime daylight saving time http : stackoverflow.com questions 15661268 quartz-net-using-understanding-cron-based-trigger-and-time-zone-summertime-da .. . What time am I dealing with in Quartz.net http : stackoverflow.com questions 7491384 what-time-am-i-dealing-with-in-quartz-net .. . Quartz .NET MakeDailyTrigger http : stackoverflow.com questions 7029412 quartz-net-makedailytrigger 7033429 7033429 .. . .. . Here is how I currently schedule a daily : .. . .. . I tried to use a DailyTimeIntervalTriggerImpl but this does not seem like the right trigger for any of those 3 above interval types . I am in the process of refactoring all my quartz layers so I am looking for best practices and a bullet proof method of assuring that jobs will run at the times we specify regardless of where the Quartz.net job server is located and where the user s time zone originated from and where they want it to end up arriving at . We are moving our quartz.net servers to AWS so we will have a distributed server farm to host these with timezones that can change . How can I set up my quartz architecture so that it is dynamic enough and as I stated above bullet proof in sending jobs on time - regardless of TimeZones Offsets DaylightSavings LeapYear Sleat Snow Rain Zombie Attacks Y2K Meteoric ELE etc . Thank you .", "Question : I m creating a scheduler using Quartz.NET in the current project . In my case all the jobs that has to be created are stored in a single table and there is a separate UI where I can add new jobs or edit existing jobs . My question is how I can feed all the jobs in the table to the Quartz scheduler Do I want to query for all the jobs in the table and iterate through it creating the JobDetails and Trigger objects Is there any better way in this case In this case do I want to use a RAMJobStore or AdoJobStore .. . Answer : you can use AdoJobStore . Quartz.net will use a set of tables with prefix QRTZ you can change it if you want in your database to stored jobs triggers and status of these objects . I guess you want to have a table in your DB where you re going to keep extended information about your schedules right You won t access Quartz.net table directly cause you will use the APIs provided by Quartz.net . The process to create a job detail and trigger is straightforward and described very well in the tutorials http : quartznet.sourceforge.net tutorial index.html . To configure your app to use the AdoJobStore http : quartznet.sourceforge.net tutorial lesson 9.html you have to specify few informations in your app.config file . Here is an example : .. . .. . There are few things to keep in mind depending if you re hosting Quartz.net in a web application or a service or winform app . The best approach is to create SchedulerFactory and Scheduler as singleton . You can gather some more infos here http : jvilalta.blogspot.com search label quartz.net 201.0 . UPDATE : .. . .. . First of all you have to create Quartz.net tables see Step 1 http : jvilalta.blogspot.com 2010 04 configuring-quartznet-with-adonet-job.html and then you ll have to create a few indexes for optiomization see bottom of the page http : quartznet.sourceforge.net faq.html howtoimproveadojobstoreperf . Since you re going to submit your jobs using the web app but you re not using that app for the quartz.net events triggers you don t need to start the scheduler . There are few steps to follow on this side : .. . .. . you have to change the thread pool type to ZeroSizeThreadPool .. . .. . and you have to define your StdSchedulerFactory and Scheduler singleton . You can start during the application asp.net bootstrap . You re never going to start the Scheduler your windows service is going to use that . Another thing to remember is you re going to need share your job http : quartznet.sourceforge.net tutorial lesson 2.html between your web and your windows service so it would be better to keep it in a separate assembly . You mentioned you re storing some infos in one of your table . You still need to have to submit your jobs and trigger which will be persisted in Quartz.net tables . Comment : Thanks for your reply . I ve a single table in database that stores all the jobs information for the business . The scheduler is running in Windows service and through an ASP.NET application jobs are added to this table or edited . So how I can use Quartz.NET in this case Whenever a job is added or edited the scheduler has to be updated . Comment : @Dnana : is that your windows service or Quartz.net windows service Comment : .net windows service . i m not sure which one is better in this case . Comment : @Dnana : Right I ve chosen the same solution . I ve got a web app UI which submits jobs and a custom windows-services which is responsible for Quartz.net triggers . Comment : If I use the Quartz tables then I can t directly insert or update jobs rgt", "Question : I wrote the below custom job listener . Not a very robust one . Is there a way to wire up this listener through .config in the element to be more specific .. . .. . GranadaCoder.Apps.QuartzPOC.BAL.Listeners.MyFirstJobListener GranadaCoder.Apps.QuartzPOC .. . .. . The followup question is . . can you add more than one custom JobListener I see the object-model C code . I just don t see it through .config . Thanks .. . Answer : So I figured out a few things . There are 2 built-in listeners . You can wire those up . And get basic ILog events . What threw me off was the 2 names triggHistory and jobHistory . These are arbitrary . triggHistory does not exist in the source code . So you have to do two things . Implement the interface of the listener you re interested in AND you implement ISchedulerPlugin . The ISchedulerPlugin is what was illuding me .. . .. . Example : .. . .. . THEN you can add them to the .config uration . And you can add more than one set . The value for the DotNetAssembly is important of course . The prefix of quartz.plugin . is the important thing . But the value between quartz.plugin . and .type is kinda arbitrary . That was the monkey wrench . Back to how it works : The framework will try to instantiate them... . The quartz.net source code bread-crumbs are : .. . .. . and .. . .. . and .. . .. . And if all that doesn t clear it up....then find this quartz.net code . LoggingJobHistoryPlugin.cs .. . .. . LoggingTriggerHistoryPlugin.cs .. . .. . Quartz.Net didn t seem to write a default included ISchedulerListener fyi .. . .. . Clear as mud", "Question : I have a scheduled job that have repeat interval for every 5 mins . It s working fine . But I have a situation in where my first job is not completing in 5 mins and a second job is starting as it scheduled for 5 mins . I don t want to do that only one job should be working at a time . How can I do that This is my code : .. . Answer : Quartz.NET 2.x .. . .. . Implement IJob and also decorate your job class with DisallowConcurrentExecution attribute . Read the API documentation for DisallowConcurrentExecutionAttribute for more information . Quartz.NET 1.x .. . .. . Make the job class implement IStatefulJob rather than IJob . Read the API documentation for IStatefulJob for more information . http : www.quartz-scheduler.net documentation faq.html howtopreventconcurrentfire Comment : Or in Quartz.net 2.0 implement IJob and decorate with the DisallowConcurrentExecution attribute Comment : thanks I ve updated the answer Comment : @Neo please update the correct answer .", "Question : I need scheduling functionality on my .NET MVC website and I came across Quartz.net library which can do exactly what I need . The problem is I m running my site on a hosting GoDaddy and when I added Quartz.net 2.0.1 to my project I ve got that assembly does not allow partially trusted callers exception . After some research I found out that many people have the same problem and some solved it by removing Common.Logging library from Quartz.net . I followed some of the advice and removed all references to Common.Logging but I still have problems . It looks like it s not enough and now I m getting Inheritance security rules violated while overriding member exception more details : .. . .. . It looks like I really need to change something in Quartz.net to make it work . Has anyone run Quartz.net on medium trust If so what needs to be done May be someone can suggest some alternatives .. . Answer : Steinar s answer sent me in the right direction . Sharing the steps here that got QuartZNet to work in a medium trust hosting environment . QuartzNet initially ran into permissions issues on medium trust we needed to the do the following to fix the issue .. . .. . 1 Downloaded QuartzNet code 2.1.0.400 from github and build it after making the following changes to AssemblyInfo.cs .. . .. . Replaced .. . .. . with .. . .. . 2 Downloaded C5 code v 2.1 and built it with .. . .. . Ensure C5 is compiled in the same .NET version as Qartznet . 3 Added the quartz section to web.config within TGH section had requirepermission set to false . Common logging section also had requirepermission set to false also configured it to use Common.Logging.Simple.NoOpLoggerFactoryAdapter . 4 Initialised the scheduler using constructor with namecollection as the parameter namecollection was the quartz section picked up from web.config . In global.asax .. . .. . The class", "Question : I ve just added quartz.net dll to my bin and started my example . How do I call a C method using quartz.net based on time Here I am just sending a mail on page load . How do I call SendMail once in a day at a given time say 6.00 AM using quartz.net I don t know how to get started . Should I configure it in my global.asax file Any suggestion .. . Answer : In addition to the good answer M4N provided you can take a look at the spring.net integration of the quartz.net lib http : www.springframework.net docs 1.3.0 reference html scheduling.html scheduling-quartz which allows to call methods without the need to implement IJob .", "Question : I am looking for a working simple example of Quartz.net for Console application it can be any other application as long as it simple enough.. . . And while I am there is there any wrapper that could help me avoid implementing IJobDetail ITrigger etc . .. . Answer : There is a guy who made the exact same observation as you and he has published a blog post with a simple working example of a Quartz.net Console application . The following is a working Quartz.net example that is built against Quartz.net 2.0 Latest . What this job does is write a text message Hello Job is executed in the console every 5 sec . Start a Visual Studio 2012 project . Select Windows Console Application . Name it Quartz1 or what ever you like . Requirements Download Quartz.NET assembly using NuGet . Right click on project select Manage Nuget Packages . Then search for Quartz.NET . Once found select and install . Sources .. . .. . Original url dead http : hammadk.com quartz-net-working-example .. . archive.org link https : web.archive.org web 20150707071411 http : hammadk.com quartz-net-working-example Comment : Broken link unfortunately . Comment : We are in luck it was on archive.org web.archive.org web 20150707071411 http : hammadk.com https : web.archive.org web 20150707071411 http : hammadk.com quartz-net-working-example Put it on pastie just to be sure : pastie.org 10681194 http : pastie.org 10681194", "Question : Well of course we could use quartz.net which comes with nice features like concurrency control and load-balancing . However it seems a bit bloated to me . 1 Am I wrong about this 2 If not how would you implement a cloud compliant scheduler ie : either deployed on premise or within azure Is Lokad scheduling http : abdullin.com journal 2010 7 20 lokad-cqrs-advanced-task-scheduling-with-calendars-in-the-cl.html the best approach Comment : Can you elaborate a little on what you mean by cloud scheduler or cloud compliant scheduler Comment : My main concern is to get a scheduler running on azure so a cloud scheduler . However a cloud compliant scheduler would certainly be fine . Comment : What kind of scheduler are you looking for Do you need to schedule simple system tasks or are you looking for a framework to develop a distributed application Comment : @tomconte : I m looking for a framework to schedule my own application . .. . Answer : Based on the answers to this question Recommend a C Task Scheduling Library http : stackoverflow.com questions 507247 recommend-a-c-task-scheduling-library quartz.net running in a worker role instance is the way to go .", "Question : I am using the latest nuget Quartz.net packages v2.1.2.400 . This is my job.. . This is my job and trigger setup.. . This is my config.. . If I run a job without the DisallowConcurrentExecution attribute it runs as expected i.e . every 10 seconds like so.. . If I run a job with the DisallowConcurrentExecution attribute it soon runs behind schedule like so.. . .. . .. . How can I prevent concurrent execution and have my jobs run on time Comment : See stackoverflow.com questions 16520645 http : stackoverflow.com questions 16520645 how-to-create-quartz-job-that-will-runs-every-n-seconds-even-if-job-takes-more-t 16525197 16525197 Comment : Sorry I should have stated that I want this to work in a clustered environment so a static running property will not work . .. . Answer : This was a bug in Quartz.NET and has been fixed in version 2.2.3 . I suggest you upgrade to the latest version .", "Question : I am planning to use quartz.net for processing files . I will receive 1 or more files every hour and each file will have 1000 s of rows for different countries . I want to read those rows validate process and insert it into multiple tables . I want to pick 1 file and for each distinct country in that file I like to create a thread . Such that 1 thread will handle all data for 1 country . At a given time there should not be more than 5 threads . Now how do I define this in quartz.net The below is the code I have in which I am going through each file by file and each row by row and I am not doing any multithreading .. . .. . Scheduling a job .. . .. . Job .. . .. . Should I have a main Job to loop through the Files one at time and then with in the Job should I define multiple Jobs for processing each country Is this how to achieve multi threading in quartz Schedule the main Job .. . .. . Main Job .. . .. . Create multiple Jobs for each country .. . .. . So should I create multiple Jobs to implement multiple thread to run at same time Please help me to run 5 concurrent threads processing each distinct country with in a file . .. . Answer : Quartz.Net Jobs run in a seperate thread . so if you want to configure the max nuber of threads take a look at this answer : http : stackoverflow.com a 4108795 745011", "Question : Hi I am trying to replace the cron-expression using VS2012 XDT by using the following transform on a quartz.net job description file . I have tested the XPath locator using an online tester and it returns what i think i need . Any help is appreciated . for the sample XML file Quartz.net .. . .. . The XPath job-scheduling-data schedule trigger cron name crontriggername2 .. . .. . returns me the correct element group http : www.freeformatter.com xpath-tester.html 1 http : stackoverflow.com questions 7693837 log4net-config-transform .. . .. . I based the expression on the solution to another XDT quesion on Log4net log4Net config transform http : stackoverflow.com questions 7693837 log4net-config-transform .. . .. . Can anybody point me to a correct solution this is driving me insane . Thanks in advance . .. . Answer : Your transform XML needs to have the same default namespace xmlns attribute as the source XML . Also you shouldn t need the xdt : Locator attribute . It should look like this : Comment : Thanks for this - sadly no joy for me . Does it work for you Comment : Check out my example now . You also need to remove the xdt : Locator attribute . Comment : Thanks for this but the issue is i need to be able to choose which cron-expression to modify without the locator it just updates the first matching xml . Comment : Thanks for the help Keith appreciated turned out it was a namespace thing", "Question : null .. . Answer : I want to put together a scheduler for web data-processing to limit the number of jobs so I used the Quartz.Net framework and put that on top of IHttpAsyncHandler . I have passed the HttpContext into job via arguments which works fine but when I want to grab context.Session it is null - which makes sense as I added the processing job into it s own queue and the HttpAsyncHandler process has finished . I haven t tried but I assume returning the result will also fail for the same reason : .. . .. . One idea I have is that I could declare a lock and add this loop to ProcessRequest : .. . .. . But not sure this is the best idea . How do I best keep the HttpContext for the handler alive so I can return the result Or can I even return the result from the Quartz job back to ProcessRequest like a promise in Javascript ie .when.then and then send it back via context.Response Or would it be better to scrap Quartz completely and let HttpAsyncHandler do the job-scheduling in the first place Processing job-scheduling with HttpAsyncHandler http : stackoverflow.com questions 33642861 processing-job-scheduling-with-httpasynchandler Comment : Possible duplicate of Is there any way to gain access to an HttpContext object in a Quartz.NET job http : stackoverflow.com questions 19909498 is-there-any-way-to-gain-access-to-an-httpcontext-object-in-a-quartz-net-job Comment : That doesn t really explain how to solve it though . Comment : It explains really well . You can t . Even if you found a solution - as someone suggesting in the first answer - it would be dangerous as it is not thread-safe . Comment : Putting a lock on ProcessRequest would work as I suggested and that s threadsafe . I was just wondering if there are other solutions .", "Question : When using Quartz.net to schedule jobs I occasionally receive an exception when instantiating a job . This in turn causes Quartz to set the trigger for the job to an error state . When this occurs the trigger will cease firing until some manual intervention occurs restarting the service since I m using in-memory job-scheduling . How can I prevent the error state from being set or at the very least tell Quartz to retry triggers that are in the error state The reason for the exception is due to flaky network calls that are required to get configuration data that is passed in to the job s constructor . I m using a custom IJobFactory to do this . I ve seen other references to this without resolutions : .. . .. . https : groups.google.com forum topic quartznet 8qaT70jfJPw .. . .. . http : forums.terracotta.org forums posts list 2881.page .. . Answer : Simply put you should follow good object oriented practices : constructors should not throw exceptions . Try to move pulling of configuration data to job s execution phase Execute method where retries will be handled correctly . This might mean providing a service func via constructor that allows pulling the data . Comment : I m using a IoC container to construct the job along with its constructors arguments . As such I m not throwing exceptions in my constructors . I d consider this an oversight of Quartz.net . It is possible that my job may not be able to be built some of the time and it should be treated as a transient error not a fatal one . I could return a null object but that would just push the errors further down . I have a rather hack-ish solution that seems to work that I will post .", "Question : How can I configure a CronString for Quartz.Net job scheduler for the following job : .. . .. . Job should run on BiWeekly on Monday at 12 : 00 AM . i.e . it should run on every Monday but skipping one week in between . Example : .. . Answer : Actually what you might be looking for is CalenderIntervalTrigger which is capable to do this easily . Comment : Ok...cause we are Great . But can t we do the same using a cron string Because currently in my app we are scheduling all jobs using cron string only . Comment : Unfortunately no . You could do some evil trickery inside job to detect is this every other week when running every week but that s about it .", "Question : My team and I are trying to figure out a way to load up our Sql Server database with the Quartz.NET schema installed . For demo s we ve been storing our job-setups in .xml quartz jobs.xml . My question is : .. . .. . Is there a way to load up the scheduling data from .xml quartz jobs.xml Quartz.Simpl.RAMJobStore and then save it off to a AdoJobStore Quartz.Impl.AdoJobStore.JobStoreTX The reason is that our start up data could be easily written placed in the .xml . Right now the only way I see putting jobs into a AdoJobStore is coding them up in c code through the Quartz.Net object-model . Or playing back some profiled TSQL using Sql Profiler : .. . .. . Direct question is above getting xml into sql-server .....the higher level question is How does one populate a AdoJobStore with start up data...that isn t coding them up in c code . EDIT : I m putting in my code that works......using Marko s accepted as the answer response . My configuration file : .. . .. . My code : .. . .. . NOTE : .. . .. . I had to call IScheduler.Start for the values to persist to the database . The consequence of adding this line : .. . .. . was that I could add entries into the quartz job.xml and it would would append-only the data in the database while the engine was running . Aka I can add lookup data to the database on the fly ....without stopping the service . A nice little tidbit . Removing a job requires a restart . .. . Answer : You should be able to do this quite easily . You can combine the XML configuration and ADO job store . This will make the XML processor update the jobs in the persistent store . Here s minimal configuration : .. . .. . And our XML configuration contains overwrite instructions so that job store is refreshed : .. . .. . You can also make the XML to auto refresh the store on change checked every 10 seconds if you define : Comment : I m trying to make this work...stay tuned . Comment : Near perfect Thanks . I had to call IScheduler.Start for the values to persist to the database.....I edited my answer with my complete code base . Comment : Thanks . Agile-Task complete", "Question : Is it possible to add job with trigger for running Quartz.NET scheduler instance without restarting server Comment : Are you using RAM or ADO jobstore Comment : In my solution i have to connect with sql server.Because all job shedules directly store in the sql database . .. . Answer : A fairly robust implementation with ADOJobStore is to have a custom table to store jobs and create a class that inherits from ISchedulerPlugin and IJob to create schedules for your job automatically . Your config will look like this : .. . .. . Your plugin job class can look like this : .. . .. . Now JobSchedulerPlugin has entered a trigger into QRTZ TRIGGERS that will fire every five minutes with highest priority . You can use it to load jobs from your custom table let s call it QUARTZJOBS . QUARTZJOBS can contain information such as jobnames assembly paths dates status etc anything that can be used to help you create triggers efficiently . It should also contain the cron expression to the job . This is what you can do when the trigger fires : .. . .. . In each of the classes above you can add custom validation for making sure triggers are handled appropriately if status or cron expression changes . With this solution the server will never need to be restarted . The plugin job class will scan the table and act accordingly . Comment : ...load jobs from your custom table .. . jobnames assembly paths dates status etc.. . New to Quartz.NET it s my understanding that assemblies have to be in the same folder as the Quartz.NET runtime . But I m intrigued by your claim otherwise and would like to implement--could you elaborate Tx . Comment : I m not finding classes JobCollection or JobsWithTriggers in the Quartz.NET source--can you assist Tx . Comment : @InteXX As you ve seen assemblies don t necessarily need to be in the same folder as long as you have a reference in the project . Quartz.NET loads them via reflection . Personally I put the assembly path in the QUARTZJOBS table and load it to the scheduler in the ScheduleJobs method . I have separate projects for my jobs in order to group them better which is great for architecture . Comment : @InteXX JobCollection and JobsWithTriggers are not in the Quartz.NET source they are custom implementations . JobCollection are entries in the QUARTZJOBS table which LoadJobs method retrieves from database . CreateTriggers does some basic validation . For example I have an IsActive column . If it is set to false the CreateTriggers method will delete any job triggers via the API . If it is active and there is no trigger or a different trigger is specified it will add it to the table . Comment : @InteXX You can delete jobs on the fly with the IsActive column on the QuartzJobs table see answer above . Also do the same for assemblies . The next time the plugin fires it will take care of it . Documentation like you say is lacking for the more advanced features this is generally a problem for open source- if you can expand it please do : Hope you ve found this helpful if so please upvote If you have any other questions feel free to ask ." ] }
[ "yes-answer-long", "yes-answer-short" ]
.net
UNK_RELATION
slim@php@55
slim -- slim for php is a restful micro framework for @placeholder 5 inspired by sinatra .
{ "confidence": [ 49.97003173828125, 49.04349136352539, 47.35091018676758, 47.330718994140625, 47.21066665649414, 46.393253326416016, 45.68082809448242, 45.215362548828125, 44.43619155883789, 44.286556243896484, 44.08454513549805, 43.868263244628906, 43.76141357421875, 43.531776428222656, 43.393341064453125, 43.178340911865234, 42.8768424987793, 42.8768424987793, 42.491580963134766, 42.42094421386719, 41.963375091552734, 41.508522033691406, 41.43309783935547, 41.29024887084961, 41.094940185546875, 41.094940185546875, 40.839820861816406, 40.58198165893555, 40.532249450683594, 40.38848876953125, 40.367347717285156, 40.16973876953125, 40.16973876953125, 40.16973876953125, 40.168399810791016, 40.168399810791016, 40.042755126953125, 39.171485900878906, 39.161624908447266, 38.99184799194336, 38.99184799194336, 38.99184799194336, 38.99184799194336, 38.99184799194336, 38.915409088134766, 38.87174606323242, 38.74818420410156, 38.65512466430664, 38.56254196166992, 38.495208740234375, 38.295265197753906, 38.295265197753906, 38.295265197753906, 38.262916564941406, 38.0653076171875, 38.0653076171875, 38.0653076171875, 38.0653076171875, 38.05113983154297, 38.04849624633789, 38.04849624633789, 37.88127136230469, 37.88127136230469, 37.88127136230469, 37.88127136230469, 37.63600158691406, 37.63600158691406, 37.63600158691406, 37.15243148803711, 37.14673614501953, 37.14673614501953, 37.14673614501953, 36.979515075683594, 36.873085021972656, 36.760765075683594, 36.7226448059082, 36.59928512573242, 36.56899642944336, 36.498634338378906, 36.258243560791016, 36.03752136230469, 35.94654846191406, 35.94654846191406, 35.94654846191406, 35.75009536743164, 35.75009536743164, 35.75009536743164, 35.75009536743164, 35.75009536743164, 35.75009536743164, 35.75009536743164, 35.75009536743164, 35.75009536743164, 35.725791931152344, 35.725791931152344, 35.690887451171875 ], "content": [ "Is it possible to develop restful application in Slim 2 Php framework .", "I created a restful web service in php using the slim framework .", "I m using Slim Framework 3 with PHP-DI Slim-Bridge .", "But recently checked Slim Php Framework .", "I built an API with the SLIM Micro-Framework .", "I m using PHP slim framework for a personal project .", "Im using Slim Framework .", "I m using a PHP Mysql Backend Slim Framework .", "Hint : Using The Slim PHP Framework for Developing REST APIs http : codingthis.com programming php using-the-slim-php-framework-for-developing-rest-apis", "I m new to PHP and Slim .", "So I use two main libraries for PHP project right now : php-activerecord and slim micro framework .", "So I extended Slim Slim and Slim Route .", "Slim Slim is now Slim App", "PHP 5.6 Slim 2.6.2 .. . .. . Update : PHP 5.6 Slim 3.0.0 .. . .. . The problem with class based routing in Slim 3.0 is access to this app .", "I m trying to download a file using the Slim 3 PHP Framework .", "I m using Backbone and the Slim PHP framework .", "I m playing with Slim PHP as a framework for a RESTful API and so far it s great .", "I am using the Slim framework with PHP to create a RESTful API for my app .", "I m trying to create a get route with PHP Slim framework .", "I have just built a restful API with Slim Framework .", "It is not Slim it is considered a PHP feature .", "NOTE : The syntax is for Slim Framework 3.0 .", "Is the RESTful interface itself handled by the Slim object app", "I am creating an API using the Slim framework .", "I have created api using slim framework v3 in php .", "I am trying to let the user download a file in the Slim php framework .", "I am using the Slim PHP framework to create a RESTful API for my app .", "I m using Slim Framework with Doctrine .", "Can you just do Slim : : registerAutoloader instead of Slim Slim : : registerAutoloader", "I m using Slim Framework for a web app .", "I am using slim slim : 3.0 .. .", "I used Swagger to generate a Slim framework for a server .", "I am using Slim Framework 3 .", "I m using Slim Framework 3 to create an API .", "I have a PHP backend and I m using the SLIM framework .", "We are using slim framework and swagger-php to dynamically generate the swagger documentation .", "Sorry the problem was not with Slim Framework .", "Slim 2 .. . .. . How can I do that in Slim 3", "https : github.com slim-template slim-rails .. . .. . Just replace gem slim by gem slim-rails in your Gemfile .", "I am using Slim Framework and NotORM .", "Also solved my problem with Slim framework .", "Trying to get to grips with slim framework and phpactive record .", "I am building a website with the slim framework .", "What test framework are you using Fit or Slim", "Previously in Slim 2 .", "It is not Slim it is the webserver .", "We are looking at using Slim 3 as the framework for our API .", "If you prefer to keep slim under ext as you mentioned here Slim framework - How to autoload Slim Slim.php instead of using require", "The Slim error pops up at the php code for picture .", "i have a problem when i want to get SESSION session in twig template using slim micro Framework .", "It is a simple crud application with slim framework I am using mysql database.. . slim version is 2.6.2 .", "You can do this very easily within the Slim framework you can use : .. . .. . app here is a Slim instance .", "Use Slim JSON API https : coderwall.com p otcphg create-a-json-restfull-api-using-slim-framework .", "what s the difference between slim and slim-rails", "I recently used the Slim framework to create an API .", "stack : Slim 3 framework + Eloquent ORM .", "It seems there is some issue with the Slim framework itself .", "I am learning to use Slim framework and Twig .", "See github.com slim-template slim issues 433 https : github.com slim-template slim issues 433", "What is the equivalent in Slim 3", "It was quite easy with Slim 2 .", ".. . .. . as you can see I also use Slim 3 framework .", "MailboxManager.php .. . .. . MailController.php .. . .. . Now I want to create path with Slim Framework .", "legomolina are you using this code inside the SLIM 3 framework", "I have installed slim framework 3 and twig template following the composer .", "I m using Slim 2 and PHP 5.3 .", "I am using Slim 2.4 and php-5.3 .", "I am not sure about SLIM PHP .", "https : github.com slim-template slim issues 198", "Which version of Slim", "I m using Slim 2.3.5", "The request never reaches Slim .", "This is how we can bind data to request object in slim framework .", "This section http : www.rubydoc.info gems slim frames Control code - of the Slim Docs explains this .", "Im using Slim Framework to return a result already in a JSON format .", "I am building a SPA using vue.js which has a PHP backend server slim framework 3 .", "great example : http : www.slideshare.net jeremykendall keeping-it-small-slim-php", "Looks like it can be done in this way : .. . .. . Found in slim readme : https : github.com slim-template slim", "One option I found from my research is creating new RESTful webservices using PHP or implement any such framework like Slim apigility etc .", "I m a new user of Slim framework I ve a simple Slim 3 application with sign in and sign up validation .", "Having Slim web framework experience I m used to creating routes ex .. . .. . Because VSP isn t parsing PHP vice versa it seems I must choose PHP Slim to make URL routing work .", "You can easily emulate partial capabilities in slim with the Slim : : Template code .", "Also at that point he wont need to use Slim Slim : : registerAutoloader .", "So I m working with tuupola slim-basic-auth with Slim .", "This question is about Slim not jQuery .", "Slim 3 latest .", "Have I misconfigured Slim", "Is this a new issue to be reported with Slim", "Is the current project a Slim skeleton", "I m not using a Slim skeleton .", "i m using slim not symfony :", "Not using slim ioc .", "Currently using FitNesse SLIM .", "How I can get all get put post variables like in Slim 2 for Slim 3", "Slim 2 was fairly straight forward as I m sure Slim 3 is too but I just don t get it .", "Apache is the culprit here this is not Slim-related ." ] }
{ "confidence": [ 55.7254638671875, 49.50828170776367, 49.432395935058594, 47.90239715576172, 47.85490798950195, 47.65611267089844, 47.554893493652344, 47.554893493652344, 47.554893493652344, 47.53592300415039, 47.496299743652344, 47.37275695800781, 47.1844482421875, 46.524051666259766, 46.42336654663086, 45.35548782348633, 45.13655471801758, 45.050846099853516, 44.76115798950195, 44.76115798950195 ], "content": [ "Question : null .. . Answer : I am novice php developer . And have very limited knowledge about restful application . Is it possible to develop restful application in Slim 2 Php framework . Slim2 Github link https : github.com slimphp Slim tree 2.x Slim3 Github Link https : github.com slimphp Slim tree 3.x .. . .. . Thank you . Comment : Your asking this question itself shows you are a novice.. . Better learn PHP first and build your concept then go for REST API SLIM . Comment : Yes it is possible .", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : Use Slim JSON API https : coderwall.com p otcphg create-a-json-restfull-api-using-slim-framework . You can handle JSON output with it .", "Question : I m playing with Slim PHP as a framework for a RESTful API and so far it s great . Super easy to work with but I do have one question I can t find the answer to . How do I grab GET params from the URL in Slim PHP For example if I wanted to use the following : .. . .. . A case of the Mondays Am I overthinking it Thanks in advance Comment : These are not GET params Are you sure Comment : Blerg I did mean GET not POST sorry . Comment : How about the GET variable Doesn t works Comment : Just use GET zip or GET radius .. . Answer : You can do this very easily within the Slim framework you can use : .. . .. . app here is a Slim instance . Or if you want to be more specific .. . .. . GET parameter .. . .. . POST parameter .. . .. . You would use it like so in a specific route .. . .. . You can read the documentation on the request object http : docs.slimframework.com request variables Comment : Thank you so much . Your answer helped me to solve my issue . Comment : Yeah we can go and read-the-docs but your answer explains much better", "Question : I am a novice PHP coder . Have basic knowledge in php Self taught . Presently learning CodeIgniter . But recently checked Slim Php Framework . It has Restful Router . Can any one please tell what is difference between CodeIgniter Router and Slim Router . And which one is better Thanks in advance . Comment : rest full routing this you have url blog and you send request GET you get blog posts if you sen on this url POST request you post new blog . If send DELETE you remove this post . .. . Answer : Codeiginiter maps your class and method to the url . This a easy way to build your mvc project . But in my opinion isn t a good way to build apps if you need more powerful if anyone wants change urls younhave a serious problem . Slim i m talking about slim-3 have a way to map an url to your own class . For ejample : .. . .. . You can change it easily . You could review routes docs : http : www.slimframework.com docs objects router.html how-to-create-routes Comment : Thank you . Very useful Info", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : Hint : Using The Slim PHP Framework for Developing REST APIs http : codingthis.com programming php using-the-slim-php-framework-for-developing-rest-apis Comment : IMO this should actually have been selected as the answer because it sets the correct content-type header as part of the response . Comment : Agreed @michaelh and has been done . Comment : I disagree orangewrap s answer set the content-type via the response object rather than the header function . Either method is valid . And why exit Comment : Only because you can it must not mean that you need to . As always there are many ways to achieve what s asked about so I won t say that my answer here is more or less right than the other answer .", "Question : I m trying to download a file using the Slim 3 PHP Framework . Slim 2 was fairly straight forward as I m sure Slim 3 is too but I just don t get it . Any help would be appreciated . Based on the documentation here : http : www.slimframework.com docs objects response.html I ve added the package from here : https : github.com guzzle psr7 .. . .. . So my code at this point looks like : Comment : It should be noted that the File that I m trying to download is outside the document root . Otherwise I d just do a straightforward link-to the file . .. . Answer : I m using readfile method http : php.net manual en function.readfile.php from php : .. . .. . This example is from the link above maybe you can try to implement theses headers with the Slim Response object and WithHeader method . The diference between filename and filename is that second form filename is optional . In this example you can access to my route because argument is not required but you can t access to myother route because you NEED not optional argument . There are more info in Slim documentation http : www.slimframework.com docs objects router.html route-placeholders . EDIT .. . .. . This code works fine for me and it s made with Slim 3.3.0 Comment : legomolina are you using this code inside the SLIM 3 framework Also thanks for the heads up on the Required Vs . Optional . Comment : No few times I need to implement this code but when I did I was out of Slim . I think it should work fine with Slim Comment : With large-files you end up hitting the memory limit of PHP because Slim wraps a routed method with ob get clean .", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : you can extend slim with an output function which output is depending the REST request was called : .. . .. . and use it like this :", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : Using Slim 3 I m using this format : .. . .. . On request 123 result JSON with :", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : Comment : while I do recommend something along these lines I really would have liked to see you put it in the context of a typical slim request .", "Question : I recently used the Slim framework to create an API . I want to have things clear to me . 1 . What exactly is the Slim object 2 . What exactly makes app- run call the routing or the methods 3 . Is the RESTful interface itself handled by the Slim object app Thank you in advance . .. . Answer : The creator of the Slim Framework Josh Lockhart has a blog on the subject where he briefly explains some of the points you mention : .. . .. . Calendar with slim http : www.newmediacampaigns.com blog jquery-calendar-with-ajax-api .. . .. . I personally learn by doing . There s a channel called phpacademy on youtube where Alex and Co . have some great tutorials . Blog https : www.youtube.com watch v sRfYgco3xo4 .. . .. . Authentication system https : www.youtube.com watch v YXKCNgfdAAM", "Question : I m playing with Slim PHP as a framework for a RESTful API and so far it s great . Super easy to work with but I do have one question I can t find the answer to . How do I grab GET params from the URL in Slim PHP For example if I wanted to use the following : .. . .. . A case of the Mondays Am I overthinking it Thanks in advance Comment : These are not GET params Are you sure Comment : Blerg I did mean GET not POST sorry . Comment : How about the GET variable Doesn t works Comment : Just use GET zip or GET radius .. . Answer : Not sure much about Slim PHP but if you want to access the parameters from a URL then you should use the : .. . .. . You ll find a bunch of blog posts on Google to solve this . You can also use the PHP function parse-url http : php.net manual en function.parse-url.php . Comment : George P and fire are right I just had to use GET var . I thought maybe because of SlimPHP s built-in routing I d have to do something fancy but nope . Good old fashioned GET works just fine . Just overthinking it - thanks guys", "Question : i have a problem when i want to get SESSION session in twig template using slim micro Framework . this is my code : .. . .. . i can t get session username with that code . any suggestion how to passing session to twig template Comment : Are you sure SESSION username has a value Comment : yes...i have teszt in my controller page i get my username value . but in twig template i can t get that value Comment : It turns out that SESSION is unaccessible from the template . See Accessing session from TWIG template http : stackoverflow.com q 8399389 1396314 for explanation and possible solutions . Comment : i m read that before but i m still not solve in my problem...any other suggestion i m using slim not symfony : .. . Answer : in php file : .. . .. . in twig file : .. . .. . You should pass the value from your PHP file into Twig via associative-array .", "Question : I m playing with Slim PHP as a framework for a RESTful API and so far it s great . Super easy to work with but I do have one question I can t find the answer to . How do I grab GET params from the URL in Slim PHP For example if I wanted to use the following : .. . .. . A case of the Mondays Am I overthinking it Thanks in advance Comment : These are not GET params Are you sure Comment : Blerg I did mean GET not POST sorry . Comment : How about the GET variable Doesn t works Comment : Just use GET zip or GET radius .. . Answer : I fixed my api to receive a json body OR url parameter like this . This might not suit everyone but it worked for me .", "Question : I m using PHP slim framework for a personal project . For some reason the PSR implementation of Request in Slim apparently is filtering some headers . I am trying to set a custom CSRF token and it is not available via request- getHeaders . Here s one example that shows the problem : .. . .. . I get this output : .. . .. . I am trying to understand why the custom headers : .. . .. . are being removed by Slim . .. . Answer : Believe it or not the problem was that Slim does not like an underscore in a user-defined header . Once I changed csrf name to csrfname it worked : .. . .. . So don t forget remove underscores EDIT As explained by Mika Tuupola the root cause is the HTTP server and not slim .", "Question : I am creating an API using the Slim framework . Currently I use a single file to create the route and pass a closure to it : .. . .. . But I realise that my file has grown rapidly . What I want to do is use controllers instead so I will have a controller class and just pass the instance static-methods to the route like below .. . .. . and then pass the function to the route .. . .. . I tried this but it does not work and I wonder if there is a way I can use it to manage my files . .. . Answer : PHP 5.6 Slim 2.6.2 .. . .. . Update : PHP 5.6 Slim 3.0.0 .. . .. . The problem with class based routing in Slim 3.0 is access to this app . I think you will need to use global app to access it . In my pet project I use route groups with require-once . Something like .. . .. . Looks not as beauty as could be with pure classes but works like expected with all features accessible without additional coding .", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : I think Slim also provides a middleware object which does this automatically so users of that framework doesnt have to write json decode and encode on every request its called the Slim Middleware ContentType object . it does the decoding for you . the decoding works great.But for encoding the last post is great . Thanks Dharani Comment : Please notice that this has changed and it is now : app- add New Slim Middleware ContentTypes", "Question : I have created a basic RESTful service with the SLIM PHP framework and now I m trying to wire it up so that I can access the service from an Angular.js project . I have read that Angular supports CORS out of the box and all I needed to do was add this line : Header set Access-Control-Allow-Origin to my .htaccess file . I ve done this and my REST application is still working no 500 internal server error from a bad .htaccess but when I try to test it from test-cors.org http : test-cors.org it is throwing an error . My .htaccess file looks like this .. . .. . Is there something else I need to add to my .htaccess to get this to work properly or is there another way to enable CORS on my server .. . Answer : Thanks to Devin I figured out the solution for my SLIM application with multi domain access . In htaccess : .. . .. . in index.php", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : I use slim-jsonAPI https : github.com entomb slim-json-api for my API to enable JSON-response . Init code looks something like this : .. . .. . A route would look something like this : .. . .. . I really like the abstraction level using middleware and grouping of routes making it easy to apply different response types to different areas of the app .", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : I feel your pain . I wanted to make a reusable function so I made a helpers file and included this : .. . .. . And then I used it like this : .. . .. . Edit : I think it would be really nice if there were already functions like this built into the response object for the popular mime-types", "Question : I am using the Slim framework with PHP to create a RESTful API for my app . However I assumed that the framework would have some way of creating easier JSON outputs rather than just exit jsonEncodedVariable . Am I missing something in the framework or do I need to use json encode .. . exit json .. . for every method All of the data is taken out of the my MySQL database and would then be put into a JSON array depending on what REST request was called . For example if api posts all was requested I would exit a JSON array of all the posts which each value for its own key-value : key . My question is is there an easy way using the slim framework for exit ing JSON code instead of exiting it as plain text Comment : Please edit your question with futher informations about your problem . It s hard to get what are you asking for from your current one . Comment : edited . do you need more information .. . Answer : why not response- write json encode dataAry instead of echo json encode dataAry Comment : You need to put the json in header" ] }
[ "yes-answer-long", "yes-answer-short" ]
php
UNK_RELATION
qwebview@module@91
qwebview -- the qwebview class is the main widget component of the qt webkit web browsing @placeholder .
{ "confidence": [ 47.994354248046875, 46.591487884521484, 45.73456954956055, 43.764076232910156, 43.7182502746582, 43.7098388671875, 43.69768524169922, 43.69768524169922, 43.496337890625, 43.092979431152344, 42.76020050048828, 42.69786071777344, 42.465763092041016, 41.763877868652344, 41.50132751464844, 41.067108154296875, 40.69495391845703, 40.556846618652344, 40.47346878051758, 40.47346878051758, 40.23137283325195, 40.23137283325195, 40.23137283325195, 40.1763916015625, 40.134368896484375, 40.134368896484375, 39.95347213745117, 39.787986755371094, 39.569576263427734, 39.569576263427734, 39.20351028442383, 39.20351028442383, 39.15406799316406, 38.584999084472656, 38.584999084472656, 37.97159194946289, 37.92327117919922, 37.92327117919922, 37.92327117919922, 37.86159896850586, 37.604698181152344, 37.604698181152344, 37.55713653564453, 37.55713653564453, 37.53554916381836, 36.57683563232422, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.3739013671875, 36.32521438598633, 36.32521438598633, 36.144317626953125, 36.144317626953125, 35.76481628417969, 35.76481628417969, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.346038818359375, 35.34491729736328, 35.30811309814453, 35.243896484375, 35.243896484375, 34.98090362548828, 34.98090362548828, 34.93598175048828, 34.92822265625, 34.427574157714844, 34.427574157714844, 34.11412048339844, 34.11412048339844, 34.11412048339844, 34.11412048339844, 34.11412048339844, 34.11412048339844, 34.0119743347168, 34.0119743347168, 33.953041076660156, 33.815513610839844, 33.378849029541016, 33.378849029541016, 33.378849029541016 ], "content": [ "My Qt application loads an external html page within a QWebView widget .", "Is this behavior inherent to the implementation of QWebView or webkit", "I am using Qt 5.6 and the problem is that QWebView is not appearing on the widget box .", "The documentation in PyQt at least for QWebView says : The QWebView class provides a widget that is used to view and edit web documents whereas QWebPage says : The QWebPage class provides an object to view and edit web documents .", "browser add-ons with Qt QWebView", "Try adding this after web QWebView :", "QWebView being a widget will always want to display something .", "I included a QWebView widget in my application .", "Now I do the same thing on QWebView in Qt .", "The QWebView will automatically set the URL for the QWebView you returned .", "Do you create a new QWebView instanse QWebView view new QWebView for each subsequent print as in the question code or view is reused stored as a class member", "I have followed the earlier post on it Qt QWEBview JavaScript callback http : stackoverflow.com questions 4975658 qt-qwebview-javascript-callback .", "The only difference between QGraphicsWebView and QWebView is their parent Widget .", "Basically QWebView uses WebKit as the backend whereas QWebEngineView uses Chromium as the backend .", "How to tell QWebView to open a new instance of QWebview with the returned data loaded", "My application contains a class which inherits QWebView .", "I m writing a cross-platform web browser in Qt since it has built-in WebKit support via QWebView or the more up-to-date QWebEngineView .", "I use Qt QWebView component which uses flash-player for video playback .", "The QWebView will set the URL that is being opened to the QWebView you returned the pointer to .", "The QWebView C++ Bridge only works with QWebView widgets not the QtWebView QML .", "Below self.qweb is a QWebView .", "QWebView QWebpage etc .", "QTableView except for QWebView .", "Applying custom stylesheet to QWebView http : stackoverflow.com q 11297181 356726 explains how to set a css not qss Qt stylesheet for a QWebView .", "Add your QWebView inside a layout .", "I am using QWebView in QML .", "I am useing QWebView to create a customed web browser on win10 .", "I have a web page loaded in a QWebView .", "HTML file : .. . .. . My Qt code for QWebView looks like this :", "I use the QWebView python-3.3 + pyside 1.1.2 + Qt 4.8 as FileViewer .", "Is it that QWebView doesn t support this", "May be that is a problem with QWebview", "but i can only receive click event on my customed QWebView browser.The touchstart event is never response on QWebView Browser .", "Why is the proxy working on the getRequest but not on the QWebview", "QWebView doesn t use QTcpSocket directly .", "Can it be done using QWebView", "I have another bug in the use of QWebView Qt5.4 .", "How to set you document.referrer in QWebView or QWebEngineView", "Basically if i was to resize it would resize the QWebview as well .", "This class can be used together with QWebFrame to provide functionality like QWebView in a widget-less environment .", "You need to redefine either QWebPage : : createWindow or QWebView : : createWindow to create a new QWebPage and or QWebView .", "This question is very related : QWebView or QWebEngineView http : stackoverflow.com questions 29055475 qwebview-or-qwebengineview .", "It works in Chrome but not in QWebView where is the problem", "It s not possible to set border to QWebView .", "Something might be wrong with your class which inherits from QWebView .", "I have a QWebView and I also need the http response to be read by QWebView to display the webpage .", "I m using QWebView as a rendering layer for my application .", "Why don t you use QWebEngineView instead of QWebView", "I have a QtWebKit program using QWebView .", "It s disappointing that QWebView cannot be put into another thread .", "Is it possible to bundle a .css file for QWebView to pick up", "You can load it with the settings of your QWebView :", "I m using editable QWebView to implement wysiwyg editor .", "So I declared the QWebView before calling the QPrintDialog .", "I m using a QWebView object to display HTML content .", "How can I set the style for a QWebView scrollbar", "I m trying to create a chroma key for a qwebview in Qt5 .", "And for QWebView it s just common QWidget .", "QWebView issue http : i.stack.imgur.com H9mqY.png", "I would like to load a sort of web application in a QWebView .", "You need to use qWebView- load QUrl : : fromLocalFile : Web index.html", "With Qt 5.5 using the Minibrowser example http : doc.qt.io qt-5 qtwebview-minibrowser-example.html they provide it uses something different than QWebView widget http : doc.qt.io qt-5 qwebview.html .", "In Qt 5.5 you re better off using the QWebView widget for now and then migrate to QtWebEngine http : doc-snapshots.qt.io qt5-dev qtwebengine-overview.html when the next version of Qt comes out Qt 5.6 5.7 .", "But on Qwebview it runs only the scripts but not the form Why is that", "i try set html to qwebview but it does not complete.. .", "In the reimplemented method construct a new QWebView instance .", "But QWebView remains silent on this nothing gets captured .", "It looks like QWebView does not support HTML5 video .", "I m writing an application that uses a QWebView for the user-interface .", "I want to display QWebView inside of QFrame .", "It still doesnt get the height of the QWebView correct .", "The QWebView returned will be set to the required URL automatically .", "I have a mainwindow in it I have a single QWebView .", "I have the HTML form in QWebView loaded .", "I want to print an QWebView to PDF and save it on the desktop .", "I was referring to QtWebView being poorly documented not QWebView .", ".. . .. . Edit : Replacing QWebEngineView with QWebView avoids this problem : .. . .. .", "But when I load this file in a QWebView object the map loads but QWebView doesn t pay attention to clicks and double clicks", "I have a Qt Application that implements a QWidget essentially just a wrapper for a QWebView that displays some Registration OAuth Sign-In .", "I am working with Qt s QWebView and have been finding lots of great uses for adding to the webkit window object .", "QWebView on the other hand ships with 5.5 but comes with an older but still usable version of webkit .", "Create a QByteArray or QBuffer from the data you want to be used as an image and then use QWebView : : setContent with QByteArray or construct an HTML tag of the data and use QWebView : : setHtml . .", "This question already has an answer here : .. . .. . QWebView or QWebEngineView questions 29055475 qwebview-or-qwebengineview 3 answers .. . .. . I think the title explains pretty much everything .", "The QWebView class is not a web browser you apparently want to start a download of some file but there s no full-blown download-manager in that class .", "How would i go about sizing the QWebView window with the size of the window", "Assuming you re using the designer to build an .ui file you can drag a QFrame onto the widget and the QWebView onto the QFrame .", "I want to make QWebView widget have borders in my layout and UI when running similar to QTableView .", "Surly I ve created a QWebView and Javascript is enabled", "I use a QWebView to display a HTML table .", "@ricky rana : QWebView . init self parent .", "This is how I am including it : include QtWebKitWidgets QWebView", "I ve built a little app that loads a map in an QWebView .", "Does QWebView require JACK on Linux systems", "Whenever the user needs to authenticate a PyQt QWebView window based on webkit is spawned which shows the login page .", "You might be able to do it with Webkit QWebView but what about using selenium : http : code.google.com p selenium", "When I set a URL or a piece of HTML code to display with QWebView : : setUrl or QWebView : : setHtml it works very well on my machine .", "Why do you see a problem in having a QWebView loading content at the main thread", "Im looking for a python code to change QWebView user-agent .", "I m trying to use QWebView to implement a blog post editor .", "I know that for QWebView there is a way to do this but I didn t find the solution for the QWebEngineView ." ] }
{ "confidence": [ 67.61808013916016, 65.65019989013672, 64.66622924804688, 63.99910354614258, 63.36366271972656, 62.404937744140625, 59.77777099609375, 56.54670715332031, 56.11311340332031, 54.13844299316406, 53.93534851074219, 53.18358612060547, 52.86175537109375, 52.28167724609375, 51.732452392578125, 51.622589111328125, 50.72289276123047, 50.56310272216797, 50.554290771484375, 50.46482849121094 ], "content": [ "Question : The documentation in PyQt at least for QWebView says : The QWebView class provides a widget that is used to view and edit web documents whereas QWebPage says : The QWebPage class provides an object to view and edit web documents . Given that these effectively mean the same thing : .. . .. . Is there a historical reason why these 2 classes evolved Is one any better to use than the other in any particular circumstance This stems from the fact the I m using a javascript library embedded within a PyQt application I m currently using QWebView but only QWebPage has a method for catching javascript errors http : pyqt.sourceforge.net Docs PyQt4 qwebpage.html javaScriptConsoleMessage so was considering whether it was worth translating my code to subclass QwebPage instead .. . Answer : From the documentation http : qt-project.org doc qt-4.8 qwebpage.html it says .. . .. . QWebPage holds a main frame responsible for web content settings the history of navigated links and actions . This class can be used together with QWebFrame to provide functionality like QWebView in a widget-less environment . Also QWebView inherits from QWidget while QWebPage does not . My guess is therefore that QWebView is just a widget being able to load and display HTML while QWebPage can be used with a view or without a view . Also QWebPage has more functionality like settings or history of nagivation . Now a widget-less environment is for example QtCore.QCoreApplication . It seems that you would use QWebPage for example when writting an application for scraping web content while you would prefer QWebView when you just want to load and display some web content somewhere in your application . QWebView being a widget will always want to display something . Historically they were both introduced with Qt 4.4 . The open questions are how much they share internally and if there is something you cannot do or cannot emulate with QWebView that you can do with QWebPage", "Question : Apologies if this question is grounded in misconception . I m new to both webkit and Qt . I m trying to get a feel for what circumstances would justify using a QGraphicsWebView instead of a simple QWebView object . I understand one is more complicated to implement than the other . What added fliexibility does use of the QGraphicsView class add And why does Qt-Creator s default HTML5 application template use a QGraphicsWebView instead of a QWebView For example if I wanted to implement mouse gesture-driven scrolling and zooming or implement a custom-scrolling implementation would I need a QGraphicsWebView or would a simple QWebView suffice Comment : QWebView is based on the QWidget system thus it cannot easily support rotation overlays hardware accelerated compositing and tiling http : trac.webkit.org wiki QtWebKitTiling . .. . Answer : From Qt docs : .. . .. . The QGraphicsWebView class allows Web content to be added to a GraphicsView .. . .. . So QGraphicsWebView can be used as QGraphicsItem in the QGraphicsScene . Comment : I got that far . But what are the advantages of doing it that way Comment : No other advantages . The only difference between QGraphicsWebView and QWebView is their parent Widget . For QGraphicsWebView it s QGraphicsWidget which gives you ability to add it to scene . And for QWebView it s just common QWidget .", "Question : I am using Qt 5.6 and the problem is that QWebView is not appearing on the widget box . It looks like the widget is not installed but I haven t found any way to install it . QWebView issue http : i.stack.imgur.com H9mqY.png Comment : add it in code then . create some placeholder widget which you later replace by the webview . or you insert it.. . Same as you d do with your custom widgets . Comment : I am trying to do what you suggested but the editor is not recognizing the QWebView class . This is how I am including it : include QtWebKitWidgets QWebView .. . Answer : Build-in support of QWebView QWebKit was removed from Qt 5.6 see details here https : wiki.qt.io New Features in Qt 5.6 . You still can use them if you will build Qt from sources and include QWebKit . Or you can port you application to use Qt Web Engine see here http : doc.qt.io qt-5 qtwebenginewidgets-qtwebkitportingguide.html .", "Question : I am using Qt 5.6 and the problem is that QWebView is not appearing on the widget box . It looks like the widget is not installed but I haven t found any way to install it . QWebView issue http : i.stack.imgur.com H9mqY.png Comment : add it in code then . create some placeholder widget which you later replace by the webview . or you insert it.. . Same as you d do with your custom widgets . Comment : I am trying to do what you suggested but the editor is not recognizing the QWebView class . This is how I am including it : include QtWebKitWidgets QWebView .. . Answer : In Qt 5.6 You need to use QWebEngineView then you can load your web page in qwidget .", "Question : This question already has an answer here : .. . .. . QWebView or QWebEngineView questions 29055475 qwebview-or-qwebengineview 3 answers .. . .. . I think the title explains pretty much everything . But once again how would you explain the roles purposes of these two terms about displaying webcontent in Qt applications If I use a WebView does it automatically involve QtWebEngine or is it something else I have read in Wikipedia that Qt uses Blink https : en.wikipedia.org wiki Blink 28web engine 29 as web engine however on Qt s official pages they don t mention the term Blink anywhere . .. . Answer : Since I can t comment directly on your post for low reputation reason I am answering here . This question is very related : QWebView or QWebEngineView http : stackoverflow.com questions 29055475 qwebview-or-qwebengineview . Basically QWebView uses WebKit as the backend whereas QWebEngineView uses Chromium as the backend . These two links may interest you both referring to the latest version of Qt 5.6 : .. . .. . QWebView : http : doc.qt.io qt-5 qml-qtwebview-webview.html details .. . .. . QWebEngineView : http : doc.qt.io qt-5 qml-qtwebengine-webengineview.html details .. . .. . I am currently working with QWebEngineView and everything works pretty fine I haven t tested QWebView though . Comment : Yes that was pretty much all what I could find so far . However I need more detailed information than 2-3 sentences under details subtitle . Do you know where I can read more into it Comment : Keep in mind that Blink is part of Chromium . I think you should search for the difference between WebKit and Chromium and see what s best for you . And last thing you can do is looking at Qt sources in order to see how both are managed by Qt Comment : What do you mean by Qt sources Comment : The code source of Qt : wiki.qt.io Get the Source https : wiki.qt.io Get the Source Comment : Do I have to make webkit while making Qt from source in order to use Qt WebEngine Or can I say -no-make webkit", "Question : With Qt 5.5 using the Minibrowser example http : doc.qt.io qt-5 qtwebview-minibrowser-example.html they provide it uses something different than QWebView widget http : doc.qt.io qt-5 qwebview.html . Instead it uses QML and a QtWebView module http : doc.qt.io qt-5 qtwebview-index.html . When you look in Javascript s navigator.appVersion it lets you know that QWebView loads a custom AppleWebKit 538.1 a thing shipped with Qt5.5 while QtWebView note the difference loads the native core OS AppleWebKit 601.1.56 . This is confirmed because when I load Safari on my OSX El Capitan version it says 601.1.56 . The problem however is how can my Javascript functions in Minibrowser call C++ functions on the backend to do more powerful stuff When I was using the QWebView widget I was able to use the C++ webkit bridge http : doc.qt.io qt-5 qtwebkit-bridge.html that let me inject into the DOM my C++ object and therefore could call my C++ code . I m not seeing any technique documented for how to do this with the QML-based Minibrowser example that uses QtWebView . What s the technique EDIT : Oh and to clarify I m not calling remote web pages with this via a web server . I m just calling stuff through file : . In other words I m using the rich webkit interface to give me a super powerful GUI that goes way beyond what the Qt widgets and QML can provide for me . .. . Answer : I found the answer . Basically in Qt5.5 I m diving into experimental land with QtWebView . The class methods are largely undocumented and may change in the future . For now the only technique is message-passing not native C++ class-method invocation like you could use in the QWebView C++ Bridge http : doc.qt.io qt-5 qtwebkit-bridge.html . The QWebView C++ Bridge only works with QWebView widgets not the QtWebView QML . So you do this message-passing with navigator.qt.postMessage API from your Javascript to your QML and then QML can call C++ . In order to get that extra functionality you ll need to do a few steps . Here s an example : .. . .. . Invoke C++ method from webviews Javascript http : stackoverflow.com questions 14342220 invoke-c-method-from-webviews-javascript .. . .. . This is blogged a little here : .. . .. . http : rschroll.github.io beru 2013 08 21 qtwebview.experimental.html .. . .. . As you can see from the example you have to add these imports to your main.qml : .. . .. . Then in your WebView section you have to add this line : .. . .. . At that point you can call navigator.qt.postMessage call foo in C++ to send a message to the QML which you can then pick up inside your WebView section with : .. . .. . Your QML can then pass a message right back to the Javascript with : .. . .. . And then in your Javascript you can add an event-listener like so : .. . .. . As for how to get your QML to call C++ here s an example : .. . .. . http : stackoverflow.com a 17881019 105539 .. . .. . EDIT : After more experimentation in Qt 5.5 with QtWebView it appears fairly flaky in the following respects . I don t recommend it in 5.5 -- it s not ready for primetime . In Qt 5.5 you re better off using the QWebView widget for now and then migrate to QtWebEngine http : doc-snapshots.qt.io qt5-dev qtwebengine-overview.html when the next version of Qt comes out Qt 5.6 5.7 . By default it gives you a rightclick context menu you may not want . Interestingly you can turn it off if you import the experimental library and then set this property in your QML : experimental.preferences.navigatorQtObjectEnabled : true . By default HTML5 postMessage API the one native with HTML5 doesn t appear to work unless you enable experimental.preferences.navigatorQtObjectEnabled : true . When you enable experimental.preferences.navigatorQtObjectEnabled : true the scrollbars disappear if you enabled them on some HTML page elements the checkboxes and radio buttons look extremely funky and popdown select listboxes stopped working . When you doubleclick a page it zooms it . Comment : @MrEricSir I think you might be confused . I was referring to QtWebView being poorly documented not QWebView . QtWebView ships with 5.5 and only utilizes native webkit APIs which only ship on Android iOS and OSX but not Windows or Linux . QWebView on the other hand ships with 5.5 but comes with an older but still usable version of webkit . Comment : @MrEricSir Also it appears that QtWebView in 5.5 just isn t usable yet -- stuff breaks as I explain above . So one really has no choice but to use QWebView for now which will only work in 5.5 but will not ship past 5.5 and then migrate to QtWebEngine later . The bad news about QtWebEngine however is that it deploys with Chromium instead of Webkit -- a fat install -- and will likely not get you approved in the Apple Store .", "Question : Today I came across a very strange error with QWebView which I cannot resolve myself . I included a QWebView widget in my application . When I set a URL or a piece of HTML code to display with QWebView : : setUrl or QWebView : : setHtml it works very well on my machine . It also works on all machines that have Qt installed but not on those without it . I compiled a release build and included all necessary libraries as shared QtWebKit4.dll QtNetwork4.dll etc . so I guess my error lies in that I forgot to include some libraries . If anybody has already had such an error I would be very grateful for help .. . Answer : You might need to include the relevant Qt image-processing plugin libraries which are located in qt plugins imageformats and maybe also qt plugins iconengines . I haven t deployed any webkit apps so I m not certain about this . Comment : Thanx this is exactly what was wrong with my program", "Question : My Qt application loads an external html page within a QWebView widget . How can I define my own stylesheet to present the content of the page Is it possible to bundle a .css file for QWebView to pick up .. . Answer : You can load it with the settings of your QWebView : Comment : What if I want to set multiple CSS files", "Question : Today I came across a very strange error with QWebView which I cannot resolve myself . I included a QWebView widget in my application . When I set a URL or a piece of HTML code to display with QWebView : : setUrl or QWebView : : setHtml it works very well on my machine . It also works on all machines that have Qt installed but not on those without it . I compiled a release build and included all necessary libraries as shared QtWebKit4.dll QtNetwork4.dll etc . so I guess my error lies in that I forgot to include some libraries . If anybody has already had such an error I would be very grateful for help .. . Answer : See my answer to this question : Qt dll deployment on windows http : stackoverflow.com questions 4047366 qt-dll-deployment-on-windows Comment : Thanx very much This is exactly what was wrong in my case", "Question : null .. . Answer : I want to access QScriptEngine : : setProcessEventsInterval to make panels with long-running scripts more responsive . How do I access it QWebView QWebPage or QWebFrame don t seem to offer a way to get it If this is not feasible is there an alternative Comment : I don t think Qt WebKit bridge is based on QScriptEngine . Documentation says that it is similar but does not provide full Qt Script API for web-applications . Comment : It does seem like that . Thank you", "Question : null .. . Answer : I have defined a qss stylesheet for my Qt widget s scrollbars . It works with my widgets e.g . QTableView except for QWebView . How can I set the style for a QWebView scrollbar Applying custom stylesheet to QWebView http : stackoverflow.com q 11297181 356726 explains how to set a css not qss Qt stylesheet for a QWebView . Assumption : That would change the content of QWebView - not its scrollbars correct", "Question : I have a web page loaded in a QWebView . In there I would like to have JavaScript call a function of my application . That function would then returns some strings that JavaScript would dynamically display . Can it be done using QWebView Basically is it possible to have some bridge between the application in C++ and the QWebView control .. . Answer : This is how I ended up doing it . I declared a JavaScriptBridge class in my header file with a Q INVOKABLE method . Q INVOKABLE methods can be called from JavaScript : .. . .. . Then in my .cpp file I create the bridge : .. . .. . And I listen to the javaScriptWindowObjectCleared signal . This step is important because WebKit is going to clear all the JavaScript objects when loading a new page so you need to add back the bridge every time : .. . .. . Finally in the javaScriptWindowObjectCleared slot I add the JavaScript bridge : .. . .. . Now from JavaScript there will be a global ehbridge object exposed . I can call its methods like a normal JavaScript object Qt converts Qt s types to JavaScript types Comment : To be 100 accurate Q INVOKABLE just creates a slot so you can dynamically invoke any public slot of any class . Still it might be more clear semantically if you are using Q INVOKABLE that the method is intended for calling from outside . Comment : +1 for reestablishing the bridge every time on javaScriptWindowObjectCleared", "Question : null .. . Answer : I m writing a cross-platform web browser in Qt since it has built-in WebKit support via QWebView or the more up-to-date QWebEngineView . To get compact window chrome I want to disable the native window title bar and border via Qt : : FramelessWindowHint but still get native behavior like resizing and Windows Aero Snap . First I trimmed down PKE http : stackoverflow.com users 3376685 pke s BorderlessWindow https : github.com deimos1877 BorderlessWindow demo . This worked just fine : on Windows 8.1 x64 the window is resizable the custom title bar can be dragged or double-clicked and Aero Snap works . Then I tried replacing the central QLabel with a QWebEngineView . This caused gray native-size borders to appear around my window . When I have interactive widgets at the top of the window like a menu or toolbar the ghost title bar with QWebEngineView pushes them down but accepts cursor clicks in their place . Here s a screenshot comparing the two windows . View it on a dark background to better see the light-gray border on the right . QLabel and QWebEngineView windows http : i.stack.imgur.com zKoBI.png .. . .. . Is QWebEngineView at all compatible with a frameless window or should I deal with the wasted space of native window chrome .. . .. . Edit : Replacing QWebEngineView with QWebView avoids this problem : .. . .. . QWebView window http : i.imgur.com XNwEi4q.png .. . .. . However WebView is deprecated and WebEngine has more useful features : .. . .. . Renders with Chromium s Blink instead of Safari s WebKit .. . Multiprocess so you can run Javascript without locking the UI .. . Doesn t leak Browser Plugin Details on Panopticlick https : panopticlick.eff.org try it QWebView populates navigator.plugins in Javascript but QWebEngineView does not .. . .. . Still I d really prefer not to waste space on a native title bar so if QWebEngineView can be made to work with a frameless window I d like to know how . .. . .. . mainwindow.h : .. . .. . mainwindow.cpp : .. . .. . main.cpp : .. . .. . example.pro :", "Question : My application contains a class which inherits QWebView . The problem is that I get a crash every time I try to type something in this view Here s my code : .. . .. . So basically whenever I try to type something in the google-search bar it crashes at the first character.. . Here s the output : .. . .. . Am I missing something I searched the Internet and couldn t find something close to this problem . Thanks in advance if you have the solution Edit : As asked here s the class : .. . .. . And in the .cpp file : .. . .. . Edit : The call to this function is done in Setup.cpp see below and pViewSupport is a private member define in the Setup class : QViewSupport pViewSupport . Comment : Something might be wrong with your class which inherits from QWebView . Post your derived-class implementation so that we can check what went wrong . Comment : I have modified it on your request Comment : What s the purpose of the QWidget pointer that you pass to the setupSupport method I don t see you using it . Comment : I originally called it like that : widget- setWindowTitle .. . but since this is not relevant I removed it there . I tried with and without this QWidget same result . Comment : Could you post your main or the function where you create your webview object .. . Answer : Ok the problem came from the ICU dlls from Qt I just replaced them and it worked .", "Question : I tried to load html file with JWPlayer in QWebView but it won t show . It works in Chrome but not in QWebView where is the problem HTML file : .. . .. . My Qt code for QWebView looks like this : .. . Answer : It looks like QWebView does not support HTML5 video .", "Question : I want to make QWebView widget have borders in my layout and UI when running similar to QTableView . Now it looks borderless and hidden . Is it even possible Comment : Screenshot . what platform Remember that Qt tries to look like OS you re running on . Did you check your code on other platforms .. . Answer : It s not possible to set border to QWebView . Instead you can place your QWebView inside another QWidget and set it s border . See example below QtDesigner : .. . .. . Widgets hierarchy : .. . .. . enter image description here http : i.stack.imgur.com yVMMq.png .. . .. . Look inside QtDesigner : .. . .. . enter image description here http : i.stack.imgur.com paoS5.png .. . .. . StyleSheet for QFrame :", "Question : I m using QWebView as a rendering layer for my application . I would like to be able to buffer an image in memory and have the webkit engine render the image progressively as it buffers like it would over an HTTP connection by inserting an img tag . A bit of Googling suggests that QWebView can access image content from either a local file HTTP URL or a Qt resource URL . My application uses none of these mechanisms it receives and decodes the image data from a Unix socket stream . What is the least-messy way I can get a buffered buffering image to render in a QWebView img tag e.g . without having to set up a localhost HTTP daemon or save files to disk first Comment : Please check if this helps developer.nokia.com community discussion showthread.php http : developer.nokia.com community discussion showthread.php 188112-QWebView-load-page-from-memory .. . Answer : One solution that came to my mind . . Create a QByteArray or QBuffer from the data you want to be used as an image and then use QWebView : : setContent with QByteArray or construct an HTML tag of the data and use QWebView : : setHtml . . I haven t tried this hence not sure if it would work . . Comment : Are you saying I could pump the raw image data directly into an HTML tag within the webview and then assign the raw data to an img tag somehow I don t understand . Comment : Yup you can if you have your image as jpg format and raw data is encoded in base64 format . Please check the following link stackoverflow.com questions 22539999 http : stackoverflow.com questions 22539999 how-to-display-raw-image-data-with-html-and-javascript and jsfiddle.net bYGum http : jsfiddle.net bYGum", "Question : null .. . Answer : I am useing QWebView to create a customed web browser on win10 . Everything goes well except touchevents . i had made a demo website to emit touchstart event before receiving a mouse click event I used a opensourced third party lib by on github . The demo website works fine on firefox . i can receive touchstart event and click event if I click on the demo website by firefox . but i can only receive click event on my customed QWebView browser.The touchstart event is never response on QWebView Browser . Those a the situation right now and i have search a lot . Some people said that i should tried webview.setAttribute Qt : : WA AcceptTouchEvents .. . .. . Some other people said that i should tried QGraphicsWebView instead of QWebView so i rewrote a simple QGraphicsWebView program as fellow . But none of them is working .is any who knows about it any answer is welcome.Thank you .. . .. . PS : i am useing Qt5.5.1", "Question : null .. . Answer : I am developing an application using Qt 5.5 . It should have an embedded web browser so I added QtWebView to a form . But if I open a youtube video and click fullscreen button I see a message Fullscreen is unavailable with link leading to Fullscreen is disabled https : support.google.com youtube answer 6276924 page . The page says I must enable fullscreen permissions in the browser . I have read all of the Qt5 WebKit documentation but found nothing about that . I also found some close questions here on StackOverflow but none of them has helping answers . I wrote a class to replace standard QWebPage class to replace user-agent and allow opening links in new windows and I feel like I have to do something with that class . I tried to override triggerAction function but it is never called . If someone had the same problem please tell me the way to achieve it . Comment : I found that it will never be ported to QWebView as it is sort of deprecated regardless it is not said in documentation . Newer supported component is QWebEngineView but plugins are not yet implemented in stable version . So as we see Qt has no stable version of browser components and developers don t think it is a good thing to tell others about that .", "Question : I would like to load a sort of web application in a QWebView . My web application is made up of some HTML5 pages with CSS Javascript and pictures . It is totally autonomous . It does not need a server . I am quite new to Qt programming . Is there a way to embed those files into the Qt project and load them in the QWebView when the program starts I already managed to load those pages from a remote HTTP server but my application must be standalone . EDIT .. . .. . Thank you for your solution Yodabox . The page is well displayed . I set baseUrl as qrc : web instead of : web . But I still have a problem . I do an async request to an embedded XML file to load values in an HTML select . The JavascriptConsole gives the message : XHR finished loading : qrc : web xml values.xml but the select is not populated . Do you have any solution .. . Answer : All you Need is QWebView : : setHtml http : qt-project.org doc qt-4.8 qwebview.html setHtml .. . .. . you should set baseUrl as : web and html as the HTML file content please read Qt DOC for detail ." ] }
[ "yes-answer-long", "yes-answer-short" ]
module
UNK_RELATION
datetime64@datetime@60
datetime64 -- numpy array datatype with native support for @placeholder functionality .
{ "confidence": [ 36.34004211425781, 35.42841339111328, 34.03814697265625, 33.576194763183594, 33.08454513549805, 32.792884826660156, 32.34742736816406, 31.231693267822266, 30.383771896362305, 29.91720199584961, 29.85331153869629, 29.85331153869629, 29.474624633789062, 28.624542236328125, 28.26978302001953, 27.170475006103516, 27.016246795654297, 25.486244201660156, 25.31825828552246, 25.31825828552246, 25.022075653076172, 24.8832950592041, 24.420085906982422, 24.420085906982422, 23.031078338623047, 23.031078338623047, 23.031078338623047, 23.031078338623047, 23.031078338623047, 23.031078338623047, 23.031078338623047, 23.031078338623047, 23.031078338623047, 22.267547607421875, 21.802309036254883, 21.802309036254883, 21.802309036254883, 21.631275177001953, 21.631275177001953, 21.631275177001953, 21.589679718017578, 21.486591339111328, 21.486591339111328, 21.044692993164062, 20.990859985351562, 20.420732498168945, 20.420732498168945, 20.420732498168945, 20.420732498168945, 20.420732498168945, 20.420732498168945, 20.40250587463379, 20.257822036743164, 20.063446044921875, 20.063446044921875, 19.958559036254883, 19.7620906829834, 18.985027313232422, 18.985027313232422, 18.106342315673828, 18.106342315673828, 17.22830581665039, 17.1221866607666, 17.1221866607666, 17.1221866607666, 16.347627639770508, 16.347627639770508, 16.347627639770508, 16.05368995666504, 15.808633804321289, 15.808633804321289, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 14.015009880065918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918, 12.16279411315918 ], "content": [ "How can I subclass from numpy datetime64", "When I am dealing with numpy array s I use datetime64 .", "I need to create an array of numpy datetime64 objects from C C++ code .", "Are there any concrete plans to stabilise the NumPy datetime64 and timedelta64 APIs", "You ll want to strip your datetime64 of time information before comparison by specifying the datetime64 D data type like this : .. . .. . I couldn t get numpy to create an array of datetime64 D values from the string you gave for b above by the way .", "It looks like there might be some open bugs still https : github.com numpy numpy issues q datetime64", "I want to see numpy datetime64 objects by my specified timezone .", "Also you can read about different units of datetime64 that will allow you use a datetime64 as a datetime.date or datetime.datetime here : .. . .. . http : docs.scipy.org doc numpy-dev reference arrays.datetime.html arrays-dtypes-dateunits", "I ended up subclassing ndarray which creates a datetime64 array .", "This means that when I am extracting or iterating over single values from a numpy datetime64 array I convert them into a datetime object first before I let propagate into other parts of the codebase .", "Not sure why the numpy datetime64 is incompatible with pandas dtypes but using datetime objects worked fine for me :", "But I m still slightly confused - when date and time information is stored in pandas dataframe as datetime64 isn t that a numpy format", "I noticed recently that numpy includes a datetime64 data type beginning in numpy 1.7 : .. . .. . http : www.compsci.wm.edu SciClone documentation software math NumPy html1.7 reference arrays.datetime.html .. . .. . I am wondering what is the motivation behind including this as a separate type within the numpy package rather than using the builtin datetime.datetime provided by Python", "I suppose this is because pandas stores timestamps in numpy UTC datetime64 values under the hood .", "Data type of ACTION DATE is datetime64 ns .", "I avoid intermingling datetime64 and python s inbuilt datetime objects .", "And if so why does datetime work but datetime64 doesn t", "Here is my function that creates numpy array from a C buffer .", "datetime64 ns is a general dtype while M8 ns is a specific dtype .", "I am struggling with datetime64 comparisons in dataframes to update a column .", "These numpy types get stored by value in an array rather than by boxed reference as generic python object are .", "I am sure that a datetime64 function or method is the solution but I have been unable to figure it out as of yet .", "For instance using the standard datetime I can easily subclass : .. . .. . However using datetime64 the following always returns the datetime64 reference not my class.. . .. . .. . How can I fix this", "On a machine whose byte order is little endian there is no difference between np.dtype datetime64 ns and np.dtype M8 ns : .. . .. . However on a big endian machine np.dtype datetime64 ns would equal np.dtype M8 ns .", "I figure there are probably simple ways to do this using the datetime64 methods but I have struggled to make full sense of them .", "I have a pandas dataframe df which has one column constituted by datetime64 e.g .", "I guess the problem can be solved via a preliminary conversion from datetime64 to datetime .", "Unless you want object it really doesn t matter whether the type inherits datetime64 .", "I want to subclass because I want to keep the original behaviour of datetime64 but add some custom functions .", "Just like one can subclass to ndarray and there are many examples for that I m looking to subclass the very similar datetime64 class .", "I can t seem to get numpy.digitize to work with datetime64 : .. . .. . It gives the following error : .. . .. . Is this expected behaviour", "So datetime64 ns maps to either M8 ns or M8 ns depending on the endian-ness of the machine .", ".. . .. . Apparently the repr of the datetime64 dtype has change since the time the book was written to show the endian-ness of the dtype .", "If you store these things in an ndarray your dtype is either going to be datetime64 object or a custom dtype that stores the values as datetime64 and treats them as such in C API functions but auto-converts them when you box them up for Python .", "Sure I know about python-datetime objects but historically I am getting datetime64 objects .", "You could always set the time zone before printing your datetime64 objects :", "I would like to get a mask of my numpy.array of datetime or datetime64 based on time hours regardless to the date .", "I have been looking around for a neat way to add subtract a certain datestep like one year or 3 month from a datetime64 object .", "I d basically like to write a simple wrapper for datetime64 which allows me to add custom functions such as obtaining the month of a given date with a simple .Month method .", "With the upper example I can easily add methods in the lower example it will never recognize my methods and thinks it s a datetime64 object .", "The numpy manual for version 1.10.dev-19c3cf1 http : docs.scipy.org doc numpy-dev reference arrays.datetime.html states on the topic of datetimes and timedeltas : .. . .. . Note .. . .. . The datetime API is experimental in 1.7.0 and may undergo changes in future versions of NumPy .", "Numpy won t to my knowledge look inside the list .", "I m a bit confused how numpy handles timezones .", "I am using numpy 1.8.1 .", "Depends on what the specified unit of your np.datetime64 object is according to the numpy docs http : docs.scipy.org doc numpy reference arrays.datetime.html datetime-units .", "Ensure you have an upto date version of pandas and numpy 1.7 :", "http : docs.scipy.org doc numpy reference arrays.datetime.html basic-datetimes", "The numpy constructor is simply broken and will rarely do what you want .", "I get what numpy is doing which is exactly as you describe .", "Without it the resulting string through the numpy constructor can cause problems .", "the numpy constructor is simply broken and will rarely do what you want .", "So internally a datetime64 is tracking a single integer which represents a moment in time as a value since the UNIX epoch 1970-01-01 - not counting leap seaconds .", "Why do you need to use numpy for this", "The dataframe contains 100 000+ rows but a sample is given : .. . .. . The data is stored as a datetime64 format : .. . .. . All I would like to do is create a new column which gives the difference in days rather than us or ns", "In the following paragraph the author checks the index type : .. . .. . When I do exactly the same operation in the console I get : .. . .. . What is the difference between two types datetime64 ns and M8 ns", "Since numpy includes no date type analogous to datetime.date should I use numpy.datetime64 for dates when I need to interact with numpy.datetime64 objects", "Mentioned a few times in the numpy documentation http : docs.scipy.org doc numpy reference arrays.datetime.html : .. . .. . The datetime object represents a single moment in time .", "I m using numpy 1.8.2 and the following code results in the error below : .. . .. . produces the following output : .. . .. . Is there something I m doing wrong", "General dtypes map to specific dtypes but may be different from one installation of NumPy to the next .", "For the numpy-specific question there probably is an answer but I don t know it off the top of my head so hopefully someone else does .", "One quick thing I tried is to change the class attribute but NumPy declares its base types as non-heap types so that won t work", "I have a xarray dataset that is : .. . .. . There are nans in the dis variable but the whole array is not nans .", "You can use the numpy.timedelta64 object to perform time delta calculations on a numpy.datetime64 object see Datetime and Timedelta Arithmetic http : docs.scipy.org doc numpy reference arrays.datetime.html datetime-and-timedelta-arithmetic .", "get an i8 view of datetime values : .. . .. . i8 is 64-bit integer data type and view http : docs.scipy.org doc numpy reference generated numpy.ndarray.view.html constructs a view of the array s memory .", "There are many other similar examples general dtypes mapping to specific dtypes : int64 maps to i8 or i8 and int maps to either int32 or int64 depending on the bit architecture of the OS and how NumPy was compiled .", "So I found myself using datetime package in parallel to numpy.datetime64 to add array capabilities .", "Optionally you could get an array of arrays if you also did a np.asarray data which won t cause an error this time .", "I should also probably mention that the np.dtype as I saw it being used is mostly intended to describe the array outline .", "NumPy 1.7.0 was apparently released in February 2013 https : lwn.net Articles 537828 version 1.8.0 dates from October 2013 https : mail.python.org pipermail python-announce-list 2013-October 010091.html and version 1.9.0 was released in October 2014 http : comments.gmane.org gmane.comp.python.numeric.general 58741 .", "So output dataset would be : .. . .. . One option I saw that almost does what I want is : .. . .. . However the output of this is just an 12-item array .", "If you have to have such a complex array isn t it just easier to handle it with a class or have different multiple arrays each holding it s own data", "Some of the reasons I am interested in understanding this better include : .. . .. . 1 .", "I want to know when it is appropriate to use datetime.datetime vs when to use numpy.datetime64 .. . 2 .", "Or should I intermingle datetime.date and numpy.datetime64 in my code", "The reason is identical as to why there is a np.int and an np.float .", "The latter takes far more memory allocation overhead and is much less cache friendly to traverse .", "The reason for this is that the code that you write to work with a datetime.datetime will not work with a numpy.datetime64 scalar .", "For example any of the methods or properties of a datetime.datetime would not be availble on a numpy.datetime64 object .", "In order to avoid the intermingling what I tend to do is when I am dealing with scalars I use python s datetime.datetime or datetime.date .", "What is the proper method to compare the date portion of two numpy.datetime64 s", "The above example would return false by comparing A B", "I got this error :", "I have a large meteorological program that is dependent on a constant hour timestep 1 : 00 : 00 and I would like to create a new variable step per year that is able to calculate how many timesteps are present in a year .", "It is clear to see that it would be 8760 or 8784 depending on leap-year in this case but I would like to have a way to redefine step per year if other timesteps are used .", "Does anyone have a suggestion about how to go about this", "Thanks", "JP", "The length of dimension time corresponds to 10 years of daily data 3652 days .", "What I want to do is get monthly means of the 10 yr timeseries for each month and each gridsquare lat lon .", "i.e .", "we lose both lat and lon dimensions .", "Alas whilst writing this I have managed by doing : .. . .. . which gives : .. . .. . However is there another more pythonic way more in line with the first line of code using groupby", "Thanks", "To avoid aggregating over all dimensions in each sub-arrays you need to supply the list of dimensions explicitly : .. . .. . At one point we contemplated making this the default behavior for groupby operations since it is usually what is desired but then it s not clear how to trigger the current default of summing over all dimensions .", "Thanks - also works nicely with skipna True", "I can t see how to reveal the units for numpy.datetime64 .", "Say : .. . .. . t np.datetime64 123456789 ms .. . .. . What s the method to tell me the units are ms", "Another aside comment why should this matter", "The objects with different internal unit formats are still interoperable .", "I think I missed your first comment" ] }
{ "confidence": [ 44.961612701416016, 44.42265319824219, 42.717445373535156, 39.18824768066406, 38.372596740722656, 38.25104522705078, 37.625240325927734, 37.193115234375, 36.58123779296875, 35.61170959472656, 35.48518371582031, 33.70489501953125, 31.670913696289062, 29.793092727661133, 29.352500915527344, 27.03976821899414, 26.643259048461914, 25.741352081298828, 25.202678680419922, 24.128463745117188 ], "content": [ "Question : I noticed recently that numpy includes a datetime64 data type beginning in numpy 1.7 : .. . .. . http : www.compsci.wm.edu SciClone documentation software math NumPy html1.7 reference arrays.datetime.html .. . .. . I am wondering what is the motivation behind including this as a separate type within the numpy package rather than using the builtin datetime.datetime provided by Python Some of the reasons I am interested in understanding this better include : .. . .. . 1 . I want to know when it is appropriate to use datetime.datetime vs when to use numpy.datetime64 .. . 2 . Since numpy includes no date type analogous to datetime.date should I use numpy.datetime64 for dates when I need to interact with numpy.datetime64 objects Or should I intermingle datetime.date and numpy.datetime64 in my code .. . Answer : I avoid intermingling datetime64 and python s inbuilt datetime objects . The reason for this is that the code that you write to work with a datetime.datetime will not work with a numpy.datetime64 scalar . For example any of the methods or properties of a datetime.datetime would not be availble on a numpy.datetime64 object . In order to avoid the intermingling what I tend to do is when I am dealing with scalars I use python s datetime.datetime or datetime.date . When I am dealing with numpy array s I use datetime64 . This means that when I am extracting or iterating over single values from a numpy datetime64 array I convert them into a datetime object first before I let propagate into other parts of the codebase . Also you can read about different units of datetime64 that will allow you use a datetime64 as a datetime.date or datetime.datetime here : .. . .. . http : docs.scipy.org doc numpy-dev reference arrays.datetime.html arrays-dtypes-dateunits", "Question : What is the proper method to compare the date portion of two numpy.datetime64 s The above example would return false by comparing A B .. . Answer : You ll want to strip your datetime64 of time information before comparison by specifying the datetime64 D data type like this : .. . .. . I couldn t get numpy to create an array of datetime64 D values from the string you gave for b above by the way . I got this error :", "Question : How can I subclass from numpy datetime64 For instance using the standard datetime I can easily subclass : .. . .. . However using datetime64 the following always returns the datetime64 reference not my class.. . .. . .. . How can I fix this I d basically like to write a simple wrapper for datetime64 which allows me to add custom functions such as obtaining the month of a given date with a simple .Month method . With the upper example I can easily add methods in the lower example it will never recognize my methods and thinks it s a datetime64 object . Comment : As a side note it s a bit misleading to call new s first argument self instead of cls . Also why aren t you using super Comment : Anyway for the general question types are supposed to usually return an instance of cls or a subclass thereof when you call new cls but there s no rule that they must and nothing you can do about it if they don t . For the numpy-specific question there probably is an answer but I don t know it off the top of my head so hopefully someone else does . : Comment : One quick thing I tried is to change the class attribute but NumPy declares its base types as non-heap types so that won t work Comment : One last thing : Why are you trying to do this If you store these things in an ndarray your dtype is either going to be datetime64 object or a custom dtype that stores the values as datetime64 and treats them as such in C API functions but auto-converts them when you box them up for Python . Unless you want object it really doesn t matter whether the type inherits datetime64 . Comment : Thanks for trying . I want to subclass because I want to keep the original behaviour of datetime64 but add some custom functions . Just like one can subclass to ndarray and there are many examples for that I m looking to subclass the very similar datetime64 class . .. . Answer : I ended up subclassing ndarray which creates a datetime64 array . Works like a charm for my purposes . In case anyone is interested here the code :", "Question : I need to create an array of numpy datetime64 objects from C C++ code . As you can see for NPY LONGLONG and NPY VOID I did it . I need to do the same thing for NPY DATETIME type . The problem is that there is no documentation about what is the internal representation of NPY DATETIME type so I don t know if it has an fixed size structure or not . It would be great if you put an example like I did for NPY LONGLONG and NPY VOID . .. . Answer : I found a good solution . Here is my function that creates numpy array from a C buffer . dtype is M8 ms or M8 us or M8 ns .", "Question : I want to see numpy datetime64 objects by my specified timezone . Python prints datetime objects always in UTC+0400 it is my local timezone even if I specify another timezone np.datetime64 2013-03-10T01 : 30 : 54+0300 . Is there a way to force python print by UTC+0000 timezone I am using numpy 1.8.1 . Comment : Why do you need to use numpy for this Have you looked at datetime https : docs.python.org 3.4 library datetime.html Comment : Sure I know about python-datetime objects but historically I am getting datetime64 objects . I want to see datetimes in all timezones by the same way . .. . Answer : You could always set the time zone before printing your datetime64 objects : Comment : Have you tried it on Windows Unrelated : GMT is ambiguous is it UTC or Europe London timezone in the winter use UTC instead .", "Question : I noticed recently that numpy includes a datetime64 data type beginning in numpy 1.7 : .. . .. . http : www.compsci.wm.edu SciClone documentation software math NumPy html1.7 reference arrays.datetime.html .. . .. . I am wondering what is the motivation behind including this as a separate type within the numpy package rather than using the builtin datetime.datetime provided by Python Some of the reasons I am interested in understanding this better include : .. . .. . 1 . I want to know when it is appropriate to use datetime.datetime vs when to use numpy.datetime64 .. . 2 . Since numpy includes no date type analogous to datetime.date should I use numpy.datetime64 for dates when I need to interact with numpy.datetime64 objects Or should I intermingle datetime.date and numpy.datetime64 in my code .. . Answer : The reason is identical as to why there is a np.int and an np.float . These numpy types get stored by value in an array rather than by boxed reference as generic python object are . The latter takes far more memory allocation overhead and is much less cache friendly to traverse .", "Question : null .. . Answer : The numpy manual for version 1.10.dev-19c3cf1 http : docs.scipy.org doc numpy-dev reference arrays.datetime.html states on the topic of datetimes and timedeltas : .. . .. . Note .. . .. . The datetime API is experimental in 1.7.0 and may undergo changes in future versions of NumPy . NumPy 1.7.0 was apparently released in February 2013 https : lwn.net Articles 537828 version 1.8.0 dates from October 2013 https : mail.python.org pipermail python-announce-list 2013-October 010091.html and version 1.9.0 was released in October 2014 http : comments.gmane.org gmane.comp.python.numeric.general 58741 . Presumably version 1.10 might be expected some time during 2015 . Are there any concrete plans to stabilise the NumPy datetime64 and timedelta64 APIs If yes is there a target version beyond which we can expect such stabilisation Or are there some major unsolved problems and should we expect it to remain experimental for the time being Comment : You should probably ask the developers . It looks like there might be some open bugs still https : github.com numpy numpy issues q datetime64 Comment : It is possible to declare the API to be stable even if there are outstanding bugs in the current implementation . Comment : Yes . maybe they just haven t updated the docs . You could open an issue asking for the docs to clarify if the api is still experimental in the latest version .", "Question : I have created a TimeSeries in pandas : .. . .. . I m following on the example from Python for Data Analysis book . In the following paragraph the author checks the index type : .. . .. . When I do exactly the same operation in the console I get : .. . .. . What is the difference between two types datetime64 ns and M8 ns And why do I get a different type Comment : I can t answer the question but keep in mind that book is about 3 years old and hence based on an older version of pandas so it s pretty common to find some differences like this especially true for index and datetime stuff though most examples still work more or less the same . .. . Answer : datetime64 ns is a general dtype while M8 ns is a specific dtype . General dtypes map to specific dtypes but may be different from one installation of NumPy to the next . On a machine whose byte order is little endian there is no difference between np.dtype datetime64 ns and np.dtype M8 ns : .. . .. . However on a big endian machine np.dtype datetime64 ns would equal np.dtype M8 ns . So datetime64 ns maps to either M8 ns or M8 ns depending on the endian-ness of the machine . There are many other similar examples general dtypes mapping to specific dtypes : int64 maps to i8 or i8 and int maps to either int32 or int64 depending on the bit architecture of the OS and how NumPy was compiled . .. . .. . Apparently the repr of the datetime64 dtype has change since the time the book was written to show the endian-ness of the dtype .", "Question : I want to see numpy datetime64 objects by my specified timezone . Python prints datetime objects always in UTC+0400 it is my local timezone even if I specify another timezone np.datetime64 2013-03-10T01 : 30 : 54+0300 . Is there a way to force python print by UTC+0000 timezone I am using numpy 1.8.1 . Comment : Why do you need to use numpy for this Have you looked at datetime https : docs.python.org 3.4 library datetime.html Comment : Sure I know about python-datetime objects but historically I am getting datetime64 objects . I want to see datetimes in all timezones by the same way . .. . Answer : Is there a way to force python print by UTC+0000 timezone You could call .item that returns a naive datetime object that represents time in UTC on data in your example :", "Question : I can t seem to get numpy.digitize to work with datetime64 : .. . .. . It gives the following error : .. . .. . Is this expected behaviour .. . Answer : get an i8 view of datetime values : .. . .. . i8 is 64-bit integer data type and view http : docs.scipy.org doc numpy reference generated numpy.ndarray.view.html constructs a view of the array s memory .", "Question : I think this should be easy but I m hitting a bit of a wall . I have a dataset that was imported into a pandas dataframe from a Stata .dta file . Several of the columns contain date data . The dataframe contains 100 000+ rows but a sample is given : .. . .. . The data is stored as a datetime64 format : .. . .. . All I would like to do is create a new column which gives the difference in days rather than us or ns between the event date and a start date say 2006-01-01 . I ve tried the following : .. . .. . but I get the message : .. . .. . I ve also tried a lambda function but that doesn t work either . However if I wanted to simply add-on one day to each date I can successfully use : .. . .. . That works fine . Am I missing something straightforward here Thanks in advance for any help . Comment : Your problem is strange I can t explain but the following worked for me : import datetime as dt mydata new mydata event date - dt.datetime 2006 1 1 could you confirm Comment : I work pretty much avoid using np.datetime64 directly in any event that said this is a bug : github.com pydata pandas issues 7996 https : github.com pydata pandas issues 7996 .. . Answer : Not sure why the numpy datetime64 is incompatible with pandas dtypes but using datetime objects worked fine for me : Comment : Works perfectly - thanks very much But I m still slightly confused - when date and time information is stored in pandas dataframe as datetime64 isn t that a numpy format And if so why does datetime work but datetime64 doesn t Comment : @user1718097 that is what confuses me I don t have an answer for that hopefully one of the Pandas dev s may comment Comment : Just seen Jeff s comment this is a bug should get fixed in a future release you can upvote too Comment : Just seen Jeff s comment as well.. . Comment : @user1718097 best to post bugs direct to github.com pydata pandas issues https : github.com pydata pandas issues rather than here on SO that s if you know it is a bug which can be difficult to tell sometimes", "Question : I want to see numpy datetime64 objects by my specified timezone . Python prints datetime objects always in UTC+0400 it is my local timezone even if I specify another timezone np.datetime64 2013-03-10T01 : 30 : 54+0300 . Is there a way to force python print by UTC+0000 timezone I am using numpy 1.8.1 . Comment : Why do you need to use numpy for this Have you looked at datetime https : docs.python.org 3.4 library datetime.html Comment : Sure I know about python-datetime objects but historically I am getting datetime64 objects . I want to see datetimes in all timezones by the same way . .. . Answer : Mentioned a few times in the numpy documentation http : docs.scipy.org doc numpy reference arrays.datetime.html : .. . .. . The datetime object represents a single moment in time . .. . .. . .. . .. . Datetimes are always stored based on POSIX time .. . So internally a datetime64 is tracking a single integer which represents a moment in time as a value since the UNIX epoch 1970-01-01 - not counting leap seaconds . Therefore time zones are not preserved . If you pass in a time zone offset it will apply it to determine the correct UTC time . If you don t pass one it will use the local machine s time zone . Regardless of input on output it uses the local machine s time zone to project the UTC time to a local time with offset . Comment : POSIX timestamp is not unique around leap seconds . Comment : @J.F.Sebastian - Technically yes - that is correct . But many applications do not require such fine precision that leap seconds matter all that much . Still I will update my wording . Thanks . Comment : It is not about precision . It is about whether your program can handle possibly non-monotonous non-continuous timestamps btw you should handle such cases even if there were no leap seconds -- time.time may be set back that is why time.monotonic exists for relative times . POSIX time doesn t count elapsed seconds since the Epoch 1970 though an application may consider it so i.e . an implementation can synchronize UTC and POSIX time in some unspecified manner . See Seconds Since the Epoch http : pubs.opengroup.org onlinepubs 9699919799 xrat V4 xbd chap04.html tag 21 04 15 Comment : I am confused as to how this answered the OP s question . Any insights on that @J.F.Sebastian seems to have provided an answer to the question . Comment : @DavClark - I agree but the OP has marked this answer . I cannot delete my answer unless the OP changes the accepted answer to J.F . s .", "Question : I am parsing a huge ascii file with dates assigned to entries . So I found myself using datetime package in parallel to numpy.datetime64 to add array capabilities . I know that the pandas package is probably most recommended to be used for date however try to pull this off without pandas . I have been looking around for a neat way to add subtract a certain datestep like one year or 3 month from a datetime64 object . Currently I am converting dt64 object to dt object and use replace function to change the year for example and have to convert it back to dt64 afterward which is a bit messy to me . So I would appreciate if anyone has a better solution using only numpy.datetime64 format . Example : Converting a YYYY-12-31 to YYYY-1 -12-31 .. . Answer : You can use the numpy.timedelta64 object to perform time delta calculations on a numpy.datetime64 object see Datetime and Timedelta Arithmetic http : docs.scipy.org doc numpy reference arrays.datetime.html datetime-and-timedelta-arithmetic . Since a year can be either 365 or 366 days it is not possible to substract a year but you could substract 365 days instead : .. . .. . results in : .. . .. . numpy.datetime64 2013-12-31", "Question : I need to convert a timezone aware date-range TimeStamps to UNIX epoch values for use in an external Javascript library . My approach is : .. . .. . df index contains the UNIX epoch values as expected but they are are stored in UTC . I suppose this is because pandas stores timestamps in numpy UTC datetime64 values under the hood . Is there a smart way to get right epoch values in the requested time zone This proposal doesn t work with DST http : stackoverflow.com questions 16628819 convert-pandas-timezone-aware-datetimeindex-to-naive-timestamp-but-in-certain-t .. . Answer : Use the index method asi8 to convert to int64 which is already in ns since epoch These are the UTC times These are the local timezone since epoch . Note that this is NOT a public-method for normally I would always exchange UTC data and the timezone if you need . Comment : I agree and solved it by exchanging the timestamps in UTC and using JavaScript to convert to the local browser time zone .", "Question : I have a pandas dataframe df which has one column constituted by datetime64 e.g . I would like to sub-sample df using as criterion the hour of the day independently on the other information in date . E.g . in pseudo code .. . .. . for some function HOUR . I guess the problem can be solved via a preliminary conversion from datetime64 to datetime . Can this be handled more efficiently .. . Answer : Found a simple solution . .. . .. . EDIT : .. . .. . There is a property dt specifically introduced to handle this problem . The query becomes :", "Question : null .. . Answer : I have a large meteorological program that is dependent on a constant hour timestep 1 : 00 : 00 and I would like to create a new variable step per year that is able to calculate how many timesteps are present in a year . It is clear to see that it would be 8760 or 8784 depending on leap-year in this case but I would like to have a way to redefine step per year if other timesteps are used . I am sure that a datetime64 function or method is the solution but I have been unable to figure it out as of yet . Does anyone have a suggestion about how to go about this Thanks JP", "Question : I have a xarray dataset that is : .. . .. . There are nans in the dis variable but the whole array is not nans . The length of dimension time corresponds to 10 years of daily data 3652 days . What I want to do is get monthly means of the 10 yr timeseries for each month and each gridsquare lat lon . So output dataset would be : .. . .. . One option I saw that almost does what I want is : .. . .. . However the output of this is just an 12-item array . i.e . we lose both lat and lon dimensions . I figure there are probably simple ways to do this using the datetime64 methods but I have struggled to make full sense of them . Alas whilst writing this I have managed by doing : .. . .. . which gives : .. . .. . However is there another more pythonic way more in line with the first line of code using groupby Thanks .. . Answer : To avoid aggregating over all dimensions in each sub-arrays you need to supply the list of dimensions explicitly : .. . .. . At one point we contemplated making this the default behavior for groupby operations since it is usually what is desired but then it s not clear how to trigger the current default of summing over all dimensions . Comment : Thanks - also works nicely with skipna True", "Question : I think this should be easy but I m hitting a bit of a wall . I have a dataset that was imported into a pandas dataframe from a Stata .dta file . Several of the columns contain date data . The dataframe contains 100 000+ rows but a sample is given : .. . .. . The data is stored as a datetime64 format : .. . .. . All I would like to do is create a new column which gives the difference in days rather than us or ns between the event date and a start date say 2006-01-01 . I ve tried the following : .. . .. . but I get the message : .. . .. . I ve also tried a lambda function but that doesn t work either . However if I wanted to simply add-on one day to each date I can successfully use : .. . .. . That works fine . Am I missing something straightforward here Thanks in advance for any help . Comment : Your problem is strange I can t explain but the following worked for me : import datetime as dt mydata new mydata event date - dt.datetime 2006 1 1 could you confirm Comment : I work pretty much avoid using np.datetime64 directly in any event that said this is a bug : github.com pydata pandas issues 7996 https : github.com pydata pandas issues 7996 .. . Answer : Ensure you have an upto date version of pandas and numpy 1.7 : Comment : Thanks for the info - works perfectly . A very similar solution was given at almost exactly the same time using dt.datetime rather than pd.Timestamp . I ve marked that answer as accepted simply because I ve used datetime more frequently in the past . But this solution works equally well .", "Question : I have a dataframe df with two columns GROUP ID A B and ACTION DATE . What I want to do is to replace the ACTION DATE value to 03 31 2006 if the GROUP ID s value is B . Data type of ACTION DATE is datetime64 ns . So I tried the following . The above line runs with no errors but the resulting dataframe remains unchanged . Could someone point out what I am missing Comment : Can you post some sample-data Comment : GROUP ID ACTION DATE A 2005-05-30 A 2005-05-30 A 2005-05-30 B 2005-05-30 B 2005-05-30 B 2005-05-30 .. . Answer : The following worked :", "Question : I have a dataframe df with two columns GROUP ID A B and ACTION DATE . What I want to do is to replace the ACTION DATE value to 03 31 2006 if the GROUP ID s value is B . Data type of ACTION DATE is datetime64 ns . So I tried the following . The above line runs with no errors but the resulting dataframe remains unchanged . Could someone point out what I am missing Comment : Can you post some sample-data Comment : GROUP ID ACTION DATE A 2005-05-30 A 2005-05-30 A 2005-05-30 B 2005-05-30 B 2005-05-30 B 2005-05-30 .. . Answer : Try this : Comment : Thanks . I tried your suggestion and I got this error message --- AttributeError : str object has no attribute view" ] }
[ "yes-answer-long", "yes-answer-short" ]
datetime
UNK_RELATION
mediatemple@website@52
mediatemple -- media temple is a los angeles based @placeholder hosting and software application services company .
{ "confidence": [ 38.58341979980469, 38.17768096923828, 36.592384338378906, 33.64479064941406, 32.54042434692383, 32.54042434692383, 32.27924346923828, 31.189014434814453, 31.174877166748047, 31.048282623291016, 31.048282623291016, 31.048282623291016, 28.620304107666016, 28.56775665283203, 28.56775665283203, 28.257129669189453, 27.55080795288086, 27.55080795288086, 27.55080795288086, 27.55080795288086, 27.463390350341797, 27.15276336669922, 26.446441650390625, 26.446441650390625, 26.296245574951172, 26.033588409423828, 26.033588409423828, 26.033588409423828, 25.410276412963867, 25.410276412963867, 25.410276412963867, 25.12282943725586, 24.307165145874023, 24.305910110473633, 24.16608238220215, 23.752071380615234, 23.605609893798828, 23.52719497680664, 23.20279884338379, 23.20279884338379, 23.012805938720703, 23.012805938720703, 23.012805938720703, 23.012805938720703, 22.647705078125, 22.34551239013672, 21.9816837310791, 21.9816837310791, 21.9816837310791, 21.9816837310791, 21.879186630249023, 21.879186630249023, 21.879186630249023, 21.36450958251953, 20.877317428588867, 20.877317428588867, 20.877317428588867, 20.877317428588867, 20.877317428588867, 20.877317428588867, 20.877317428588867, 20.692068099975586, 20.558441162109375, 20.558441162109375, 20.409873962402344, 20.409873962402344, 20.355281829833984, 19.5537052154541, 19.5537052154541, 19.5537052154541, 19.5537052154541, 19.45386505126953, 18.96435546875, 18.96435546875, 18.903472900390625, 18.898351669311523, 18.72769546508789, 18.23056983947754, 18.171781539916992, 17.859989166259766, 17.859989166259766, 17.517465591430664, 17.517465591430664, 17.233659744262695, 16.961551666259766, 16.74470329284668, 16.669198989868164, 16.536376953125, 16.429237365722656, 16.41309928894043, 16.41309928894043, 16.41309928894043, 16.12929344177246, 15.903654098510742, 15.719110488891602, 15.69877815246582, 14.687601089477539, 14.569601058959961, 14.569601058959961 ], "content": [ "My web-hosting is with MediaTemple .", "The hosting is mediatemple .", "I use a Media Temple Grid Service solution for hosting .", "I got myself a media temple grid server .", "I m using a Media Temple DV server .", "Media Temple has no idea what is causing this .", "The Setup .. . .. . I am currently using the Premium Wordpress Hosting provided by MediaTemple .", "I m currently getting an open basedir restriction error on my CakePHP application running on Media Temple .", "I am running a WP blog on MediaTemple WP Hosting .", "I am using a DV developer account hosted by Media Temple .", "We are running Drupal on a LAMP server hosted by Media Temple .", "FWIW I m on Media Temple using a vanilla install of WordPress .", "I m currently experiencing an issue on multiple Wordpress websites hosted on Media Temple .", "I would like to create a private git repository on mediatemple grid-system hosting .", "So bearing in mind that my hosting is with MediaTemple is this something I ll need to get them to do", "I m hosted with MediaTemple .", "how come i can post to any other server but media temple from the ip thats having the issue", "Thanks for the suggestions everyone the solution in the end was to completely move away from Media Temple i have updated why above .", "I have a WordPress site that I am moving to a Media Temple Grid Server from another provider .", "I simply want to push commits to my bitbucket repository then push those changes to my production site at Media Temple .", "I want use a Redis server with a PHP Site hosted on a MediaTemple GS hosting .", "MediaTemple just respond to me .", "I also looked at the log files talked to Media Temple support and we see that the operating times out .", "I then tried connecting to the Media Temple DV via SSH and then tried to FTP via the command-line .", "Cron job for scheduler which runs queue listen command in background creates the excessive load in mediatemple Dv hosting server and crash mysql connnection .", "I have a Redmine site installed in Mediatemple DV .", "You cant host it on mediatemple as they don t support .net .", "BTW I am using mediatemple DV .. . .. . TIA", "We have contacted our hosts media temple and they cant give me any resolution and we really need some help .", "So solution use Amazon Web Service flexible powerful and fully in your control rant over .. . .. . Media Temple let us down massively .", "Despite searching far and wide I ve not come up with a clear solution to this and Media Temple balked at helping out with any git related issues .", "This led us to restore our site to a previous backup taken Sunday 8 16 with Media Temple .", "Having an issue cloning a github repo to my remote-server mediatemple .", "My client has their domain names and servers spread across Media Temple and Bluehost - so I m not sure the best way to approach this .", "The final solution was to completely move away from Media Temple they have REALLY let us down with their hosting after 3 weeks of our customers having issues they could not provide a solution and when asking them this clear question .", "enter image description here http : i.stack.imgur.com K8ImJ.jpg I am having problem in setting the cron job for laravel Task scheduler in MediaTemple DV hosting server .", "I have a DV 4.0 from MediaTemple .", "My server company mediatemple said it could be my ISP but other domains on my site work properly from the same computer network .", "If not try : .. . .. . Next step is to login to your MediaTemple admin panel .", "I am currently having this issue on a MediaTemple Grid server .", "The Imagick PHP class is a PECL extension so we will install it using the provided KB https : kb.mediatemple.net questions 1682 Installing+PECL+extensions gs from Media Temple with one change .", "I have the following Shell in my CakePHP app : .. . .. . Which I am trying to run every 5 minutes as a test on my Media Temple Grid Service host .", "Note : that the times are missing as you specify these in the admin panel separate to the actual command .. . .. . Has anyone got any experience running CakePHP cron jobs on Media Temple", "I currently have a DV server with media temple and I have done a bit of reading but can t seem to get the files changes on the server after I do a git-push to the server .", "I m using.. . .. . .. . PHP version 5.4.28 .. . Filezilla .. . Wordpress .. . cPanel .. . MediaTemple hosting .. . .. . I get this error Fatal error : Call to undefined function mysqli connect after trying to connect to my database with mysqli functions .", "Everyone be careful about issues like this with third party hosting if you service relies on a API and you are given ISP issue then your business can go under very quickly if your hosting cannot find you a solution after 3 weeks of try belief me your users don t want to hear oh i am just awaiting a response from Media Temple .", "I ve contacted MediaTemple support and they just said sorry but because the script outputs the version number it proves it s installed", "Hi I am trying to install APC via pecl in mediatemple DV server but i am getting this error .", "I am trying to redirect all http traffic on my mediatemple hosted website to https .", "I have a PHP Contact form on a site I am hosing on our mediatemple grid server that was made with Rapidweaver .", "I m setting up Django to run on a Mediatemple DV server .", "And im going throgh all this problem because @MediaTemple and @DreamHost are not working with PHPMailer .", "I would contact MediaTemple support if files that were supposed to be restored are missing .", ".. . Served from a Media Temple VPS .. . .. . ..... . .. . .. . Server 2 - IP 2 xxx.xxx.xxx.xxx .. . .. . app.someurl.com Application Api .. . .. . Served from Digital Ocean Public Cloud .. . .. . ...... . .. . .. . Does this pose any development or routing issues that I have not considered for the Application or Api", "I m trying to deploy my first rails app on a mediatemple dv and i m not having any luck .", "I noticed that on mediatemple I had to create a vhosts.conf file and run a command to reconfigure my project to look at this vhosts.conf file .", "This link really helped me with the whole thing : http : www.twohard.com blog setting-rails-passenger-mediatemple-dv35-servers", "+1 for the twohard.com blog http : www.twohard.com blog setting-rails-passenger-mediatemple-dv35-servers link .", "I m trying to move a Drupal site over to a MediaTemple DV account and keep getting the WSOD .", "If I move the site over using the same procedures to a MediaTemple GS account everything works just fine .", "I have been trying to migrate my sites from Cpanel to Mediatemple but it seems like im just not getting it right .", "It s on shared-hosting grid server .", "Also if it helps I m using MediaTemple as my host for the old domain and I m modifying my .htaccess file in .. . .. . Anyone have any idea out there", "No idea how or why and my host MediaTemple claims not to have any backups nor have they made any effort to explain what happened .", "Solution was to move everything over to Amazon and install it onto a EC2 instance which i managed to do in a day which i wish i had done from the start i also install a ssl cert for 3 whereas the one on Media Temple are 75 i also paid 100 for their Cloudtech service as well .", "enter image description here http : i.stack.imgur.com mJ1Cl.png .. . .. . Update : Media Temple doesn t offer support for this but has been courtesy enough to provide some help and said that I need to do the following : .. . .. . However this STILL does not work", "If you use .net language you need to find windows hosting provider or the hosting provider that support .net .", "I m getting a problem reported from composer when running php -d allow url fopen On composer.phar install on mediatemple .", "i can see that mediatemple has added a .htaccess file with php-latest .php not sure if tht does anything", "I spoke to Mediatemple for the 3rd time now and this guy was much more helpful and he actually solved the problem .", "The file is readable by the server and my host MediaTemple Grid Server says that there isn t anything that should be blocking this on their end .", "What Works .. . .. . If I ssh into the Hosting Server and from the shell on the Hosting Provider connect to mysql like this I am able to get into MySQL .", "I currently bought myself the ProCDN from MediaTemple basically EdgeCast and have setup a CDN where now I go to cdn-small.DOMAIN.com or cdn-large.DOMAIN.com it loads the normal website just fine.. .", "I have a medium to large size WordPress site running off a MediaTemple NGINX server and CENTOS and I m having trouble getting any location block properties applied .", "There are many cheap .net hosting providers you can try hostforlife.eu or asphostportal .", "Update 1 : The host is Mediatemple .. . .. . Update 2 : I posted a more general Bad Gateway question http : stackoverflow.com questions 33741777 cloudflare-bad-gateway-502-error on Stackoverflow so this problem may not be related to the specific case described above .", "Overview : .. . .. . We would like to use Digital Ocean public cloud for hosting of our new application and API .", "Network just drops out here is Media Temples response .", "You can have your application and media servers on the same server or different ones .", "I m trying to do some development work from a mediatemple server through git I ve got my ssh key setup properly however it seems like I m having issues with the ssh-agent .", "Plesk on the MediaTemple DV servers uses Python 2.4 for stuff so the 2.4 install can t be replaced but someone recommended installing a separate python-2.7 install since my app runs on that .", "What worries me is how come a hosting provider cant fix something like this", "This and the large dataset kind of eliminates the possibility of just using a the source command from the MySQL Client on Hosting Server .", "Unfortunately our client s server is hosted by mediatemple and we just learned that they do not support asp.net websites different than what was told to us at the beginning does anyone have any ideas or suggestions as to what we can do", "I recently moved a wordpress site from media temple s gs to their dedicated virtual-server .", "For the majority of people there is no need for a separate media server .", "What help are you expecting from the community I am Sure that is just the tuning with the ISPs it has nothing related to either deployment or hosting .", "When you add a domain to mediatemple it automatically sets the PHP version to FastCGI which normally is fine but it caused problems specifically on this one domain s wordpress install for unknown reasons .", "The images do not display and when I try to pull one up directly in the browser I get a page that reads .. . .. . 404 File Not Found - nginx .. . .. . This is weird because although I know media temple uses nginx to run the VMs the websites are always served up with apache.. .", "Check out Heroku it s a super-simple way to deploy and they give you a basic web-hosting package for free .", "If this app runs in a subdomain you should consider hosting the Django app in a PAAS Heroku Google App Engine etc .", "Migrating wordpress sites between hosts can take a lot of time especially when the hosting platforms are different .", "I can connect fine when connecting from my local machine but when I try to make a connection from my Mediatemple server I get a Invalid ns error : .. . .. . Any suggestions on how to fix this would be a major help .", "There s a configuration or application error .. . .. . But it s not the open basedir settting .", "I ve recently got some new Hosting after needing to move away from a Github hosted website as I need to run some Jekyll plugins that I obviously can t run on a git hosted site .", "In order to use the latest php version on the CLI i had to run php-latest composer.phar install instead of php composer.phar install .. . .. . I found this link helpful : https : yesdevnull.net 2014 03 using-php-54-cli-on-media-temples-grid-hosting", "Bonus love for anyone who can answer this same problem except when only a partial server migration is moved : bascially the previous server s A record points to a different server for hosting files but all other records remain the same .", "Here was the CLI command that worked for me from the root of the application home domains mydomain.com html cake cakephp app .", "Identify why or how src contains an invalid path and correct the application code appropriately ." ] }
{ "confidence": [ 40.82064437866211, 35.57779312133789, 34.987815856933594, 34.83451461791992, 33.95154571533203, 33.11952590942383, 32.55488586425781, 32.016056060791016, 31.4892635345459, 30.502391815185547, 30.502391815185547, 30.31500244140625, 29.392101287841797, 29.392101287841797, 29.35586929321289, 29.22855567932129, 29.062267303466797, 29.061939239501953, 28.73007583618164, 28.73007583618164 ], "content": [ "Question : null .. . Answer : Despite searching far and wide I ve not come up with a clear solution to this and Media Temple balked at helping out with any git related issues . I simply want to push commits to my bitbucket repository then push those changes to my production site at Media Temple . It s on shared-hosting grid server . I have no issues pushing commits to my bitbucket repository but pushing them to production site is where I m getting hung up . Any nice tutorials or suggestions for this Sorry for the general question .", "Question : We are really looking for help from the community we are getting issues where our clients website can no longer reach my api and timeout with . We have contacted our hosts media temple and they cant give me any resolution and we really need some help . Here is a video of my issue we are experiencing . http : bit.ly 1CEIYOH .. . .. . Here is a trace route to our api it works fine for many of our users but some are now getting issues like below . Network just drops out here is Media Temples response . We have received feedback from our provider s network engineer and he asked if your clients or the customers of softlayer open a ticket with softlayer . From what testing they have done it appears that there are some routing peering issues between various ISPs and softlayer . New update .. . .. . From your traceroutes the commonality appears to be either Softlayer Internap or NetDC ISPs . I ve spoken with NetDC and they claim they are not filtering anything . We have also reached out to softlayer but have not heard back from them . What would help narrow this down if we can run another script like you did earlier : .. . .. . Another update .. . .. . Ok I ve reached out to Softlayer your customer s ISP Internap Intermediary ISP and NetDC Intermediary ISP . One of them is filtering things and I m hoping I get a quick response from them . It is out of our control at this moment but hopefully these ISPs will be responsive and allow us to track down whatever is blocking your customers from reaching you . Latest update .. . .. . .. . Good news I got a response from Softlayer just as I sent you that last correspondence . They are seeing the same issue from their end .. . .. . .. . and they believe the issue is within Internap . They have looped in Internap as well since they are direct customers of Internap so hopefully something will be discovered . .. . I was able to determine that there are some ip subnets of ours that are accessible by the Softlayer router that was having issues connecting to your IP . I need to verify that we can actually migrate you to one of those IPs . .. . I m having an internet routing change made so Internap will hopefully not have the preferred route to your server and thus be bypassed I believe the issue is not limited to just your IP which is why I m taking this more extreme step . Can someone please help .. . .. . FINAL UPDATE . The final solution was to completely move away from Media Temple they have REALLY let us down with their hosting after 3 weeks of our customers having issues they could not provide a solution and when asking them this clear question . how come i can post to any other server but media temple from the ip thats having the issue Even the people on support where just literally just transferring me to another support operative because they could not answer the question . What worries me is how come a hosting provider cant fix something like this i lost quite a few paying customers due to this issue . Solution was to move everything over to Amazon and install it onto a EC2 instance which i managed to do in a day which i wish i had done from the start i also install a ssl cert for 3 whereas the one on Media Temple are 75 i also paid 100 for their Cloudtech service as well . Great thing about Amazon is even if a error like this did happen again i can just create a AMI and then just fire up a new EC2 and job done . Everyone be careful about issues like this with third party hosting if you service relies on a API and you are given ISP issue then your business can go under very quickly if your hosting cannot find you a solution after 3 weeks of try belief me your users don t want to hear oh i am just awaiting a response from Media Temple . So solution use Amazon Web Service flexible powerful and fully in your control rant over .. . .. . Media Temple let us down massively . Comment : I need to verify that we can actually migrate you to one of those IPs . sounds ok . But I hope he isn t suggesting DNS cache poisoning when he says I m having an internet routing change made so Internap will hopefully not have the preferred route to your server and thus be bypassed . Comment : Also your video link is broken . Or at least it isn t working for me . Comment : You might want to post this on networkengineering.stackexchange.com http : networkengineering.stackexchange.com Comment : Thanks for the suggestions everyone the solution in the end was to completely move away from Media Temple i have updated why above . .. . Answer : What help are you expecting from the community I am Sure that is just the tuning with the ISPs it has nothing related to either deployment or hosting . It will be a good if you first check the stuff on local and then a Dummy to check with different configurations over your ISPs so as to confirm what is the exact thing that is being blocked . then you will be able to solve your issue with ease. . .. . .. . as per your Question and my knowledge this is the Best answer i can provide Comment : Hi N.K i am basically pulling my hair out because i cant get this resolved its been nearly 2 and a half weeks now and nothing has changed just more people getting the same issue i am now in the process of completely changing servers to get a new ip what i am expecting from the community is some kind of help and just any suggestions if someone has experienced something similar with ISP s and how they resolved it . Comment : @user1503606 what redundancies do you have in your system Also do you only have 1 ISP link or do you have others As far as I can read in your question its an infra-structure issue . You have no say in what can be done there other than change service Comment : Thanks for the suggestions everyone the solution in the end was to completely move away from Media Temple i have updated why above .", "Question : We are trying to build a website for a class that allows students to clock in and clock out - and admins create accounts and generate the reports from the students . We are using visual-studio to code it in asp.net and phpmyadmin for the database . Unfortunately our client s server is hosted by mediatemple and we just learned that they do not support asp.net websites different than what was told to us at the beginning does anyone have any ideas or suggestions as to what we can do i.e . wordpress plugins godaddy.com etc We have 10 days to finish the project so we re open to all suggestions that can work with out time frame . .. . Answer : If you use .net language you need to find windows hosting provider or the hosting provider that support .net . You cant host it on mediatemple as they don t support .net . There are many cheap .net hosting providers you can try hostforlife.eu or asphostportal .", "Question : I want use a Redis server with a PHP Site hosted on a MediaTemple GS hosting . MT allows PHP Sockets to contact an external server slicehost .. . Answer : MediaTemple just respond to me . Yes you can . There is nothing preventing you from opening outgoing socket connections .", "Question : I ve created a custom solution in WordPress that will generate a CSV file to be downloaded by clicking a simple hyperlink linked directly to this file . Instead of being prompted to download the file to the computer the CSV opens in the the browser window instead . FWIW I m on Media Temple using a vanilla install of WordPress . .. . Answer : Send the proper mime type .. . .. . And use the Content-Disposition header to tell it to download : http : www.jtricks.com bits content disposition.html .. . .. . You always want to send the proper mime type otherwise firewalls anti-virus software and some browsers may have issues with it.. . Comment : Worked great Thanks for the resource link as well", "Question : I ve created a custom solution in WordPress that will generate a CSV file to be downloaded by clicking a simple hyperlink linked directly to this file . Instead of being prompted to download the file to the computer the CSV opens in the the browser window instead . FWIW I m on Media Temple using a vanilla install of WordPress . .. . Answer : You need to send the browser a MIME type of application csv so it will offload the responsibility of handling the file to whatever the OS recommends or user chooses . In PHP before any output is sent to the client :", "Question : null .. . Answer : Having a very strange issue here and am posting to hopefully get some answers or advice on where to look . I m using a Media Temple DV server . I wrote a script in PHP to connect to a remote-server via FTP . I know the code is correct because on some hosts it connects . However with SOME servers I get nothing at all no errors nothing . I ve called tech . support at the remote-server and they see no evidence of a connection being made . I also looked at the log files talked to Media Temple support and we see that the operating times out . I have fast CGI running and they suggested upping the timeout to 90+ seconds which we did an still not worked . I then tried connecting to the Media Temple DV via SSH and then tried to FTP via the command-line . Same issue . On some remote FTP servers I can connect but the others just hang and eventually return Connection timed out . Media Temple has no idea what is causing this . At first they said it might be the fact that I am trying this on a DV4 . I ve tried on a DV5 and still same issue . I m at a total loss here as to why this is happening . When I try my code locally I m able to connect and also am able to connect via my local terminal . Any ideas Thanks so much", "Question : I m trying to use Capistrano for the first time to deploy a website . My web-hosting is with MediaTemple . Where the dir structure for a website looks like this : .. . .. . It looks like Capistrano s default deployment tries to create a var www directory to place your application inside . I m getting this error when trying to run cap production deploy : .. . .. . I assume I don t have the privileges to create these folders is there a way around this instead of manually creating them Also would the var www structure be recommended or would it be worth dumping my application in domains site.com This is my first experience with Capistrano so any help with this is appreciated . Thanks in advance .. . Answer : In a default Capistrano deployment setup there is a commented line that looks like : .. . .. . You will want to uncomment the set line and change the path to be the location you want your application deployed to .", "Question : null .. . Answer : I use a Media Temple Grid Service solution for hosting . I currently have a Heroku app which I serve via blog.domain.com using a CNAME record . I m trying to have the sub-directory domain.com blog resolve to the Heroku app instead . I don t want the header to change so I m not looking for a redirect I believe . I ve attempted a couple of snippets for .htaccess files which have not worked for me . Can anyone recommend some tips to have this work It seems a proxy pass would work from the research I ve done but I can t figure out where or how to set it up given my GS folder structure . Any help is much appreciated . Thanks in advance .", "Question : Even with org.neo4j.server.webserver.address 0.0.0.0 enabled I still am not able to view the web admin neo4j browser interface from an external machine . The neo4j database is currently showing as running when using the command service neo4j-service status . I am using a DV developer account hosted by Media Temple . .. . Answer : Depending on the setup of your machine and or the network infrastructure you need to setup an appropriate firewall rule to enable access to tcp port 7474 from outside .", "Question : I ve created a custom solution in WordPress that will generate a CSV file to be downloaded by clicking a simple hyperlink linked directly to this file . Instead of being prompted to download the file to the computer the CSV opens in the the browser window instead . FWIW I m on Media Temple using a vanilla install of WordPress . .. . Answer : You can use PHP s header function to change Content-type .. . .. . The above code will force a prompt to the user for download . where myFile.csv should be replaced with the path to the file you want downloaded . Comment : Thank you for the help on this", "Question : I have the following Shell in my CakePHP app : .. . .. . Which I am trying to run every 5 minutes as a test on my Media Temple Grid Service host . I have tried ALL of the above but none of them work.. . Any ideas why Note : that the times are missing as you specify these in the admin panel separate to the actual command .. . .. . Has anyone got any experience running CakePHP cron jobs on Media Temple I have asked MT support and they explained that the first 3 lines wouldn t work because they are not direct commands to the files so apparently the CakePHP docs are for the terminal only . .. . Answer : Here s what I did to get it working : .. . .. . Modified your email script to include some output : .. . .. . Next I tested via console to ensure it would work . For the above code the Shell suffix in MyShell is omitted per the docs http : book.cakephp.org 2.0 en console-and-shells.html creating-a-shell and the second parameter is the function name . Here was the CLI command that worked for me from the root of the application home domains mydomain.com html cake cakephp app . Output : .. . .. . My value in the command box in the MT gs dashboard was constructed according to this http : book.cakephp.org 2.0 en console-and-shells cron-jobs.html . It includes : .. . .. . For the above code that results in : .. . .. . It s worth noting that Console cake is our executable in this case so that s the program we are running . Comment : Whoo that worked : What s really odd is that the MT support agent said that the above code was incorrect.. . : P but it works for me now Thanks . Comment : Anytime @Cameron", "Question : We have two domains : www.example.com and www.example.org . Both point to the same site . But we d like everything to point to .org . We are running Drupal on a LAMP server hosted by Media Temple . We have now started to have problems because our .com SSL cert expired so anybody who goes to the .com site routinely gets scary messages in Chrome etc . How can we make it so that if somebody goes to https : www.example.com in google they get nicely directed to http : www.example.org .. . Answer : You can do this multiple ways . .htaccess .. . .. . In a PHP file", "Question : I ve created a custom solution in WordPress that will generate a CSV file to be downloaded by clicking a simple hyperlink linked directly to this file . Instead of being prompted to download the file to the computer the CSV opens in the the browser window instead . FWIW I m on Media Temple using a vanilla install of WordPress . .. . Answer : This works : .. . .. . Also I personally do not like links on my sites I like buttons . If you want a button to do for the export function you can use the code below . I just thought I would post it because it took me a bit to figure out the first time : Comment : Nice solution I appreciate your help :", "Question : null .. . Answer : My site http : blackwagon.com recently started experiencing some database problems . On Monday 8 17 we noticed that no PHP or Java was loading . This led us to restore our site to a previous backup taken Sunday 8 16 with Media Temple . The backup restored and went into effect Tuesday 8 18 but all of our product images http : blackwagon.com shop new-arrivals.html are not showing and are instead returning 503 errors . Upon further inspection I m seeing that it appears the images are missing from the folders they re supposed to be in but even when I attempt to re-upload the image to the correct folder I get the same 503 error and broken image icon . The only way I ve figured out how to get an image to display is to change the source patch entirely . This will work for a couple images here and there but the bulk of our catalog is coded to refer to a specific image folder and it s not exactly possible to change it . Our backend CMS is handled by a program called QubixCart and is no longer maintained . It s also incredibly PHP intensive and was coded in 2009 with no notation at all so I m having a hard time reverse-engineering it . Any ideas on how I can get my site back to normal Anyone else experience 503 errors after restoring from a backup Comment : I would contact MediaTemple support if files that were supposed to be restored are missing . Comment : I ve been on and off the phone with them more times than I can count and they haven t been much help . They ve even given me the we can t help because it s a content issue line . Comment : Broke down the paragraphs", "Question : I m getting a problem reported from composer when running php -d allow url fopen On composer.phar install on mediatemple . This reports back saying laravel framework v4.2.6 requires php 5.4.0 - no matching package found . .. . .. . I ve updated my php version to be 5.5 but i m not sure if the above problem is referring to my php version or the laravel framework package when it says no matching package found . when I run the above command it shows that it is installing dependencies including require-dev but i get the problem reported above . my minimum stability is set to stable .. . .. . could someone help clarify Comment : It s quite possible that the php you upgraded to isn t the same one as the one your command-line interface uses . Can you run php -v from the terminal and see which version it reports back Comment : @JoelHinz ah you re right it still states 5.3 . what should i do in this case i can see that mediatemple has added a .htaccess file with php-latest .php not sure if tht does anything Comment : No that likely doesn t change anything . What you need to do depends on your operating-system and on the method with which you installed php . To be honest I m not an expert on that but there are lots of questions about upgrading command-line php here on so . : Comment : @JoelHinz it seems that running php -v in the terminal won t report back the right version as it doesn t consider the php.ini file for the domain Comment : so if that s the case php version should be good not sure why i get the above error .. . Answer : It turns out I was using php v5.3 on the CLI while I was running php-5.5 on the domain successfully as they had told me . In order to use the latest php version on the CLI i had to run php-latest composer.phar install instead of php composer.phar install .. . .. . I found this link helpful : https : yesdevnull.net 2014 03 using-php-54-cli-on-media-temples-grid-hosting", "Question : I m currently getting an open basedir restriction error on my CakePHP application running on Media Temple . site number and domain changed for purpose of question . I ve read-the-docs here : https : kb.mediatemple.net questions 514 How+do+I+set+the+path+for+open basedir 3F gs for how to fix this problem . I ve tried the following in my php.ini file : .. . .. . But still get the same error . Which is as follows : .. . .. . Any ideas The change is definitely being applied as the error path is updated to what I have specified above but I still get the open basedir restriction . And doing phpinfo shows the change as well : .. . .. . enter image description here http : i.stack.imgur.com mJ1Cl.png .. . .. . Update : Media Temple doesn t offer support for this but has been courtesy enough to provide some help and said that I need to do the following : .. . .. . However this STILL does not work And they are unable to provide further info . .. . .. . Update 2 : Mod rewrite is enabled and I m using this Plugin : https : github.com vishal-logiciel TimthumbPlugin Comment : Are you running without mod-rewrite please confirm by editing the question You look to have an application error File ...index.php attachments.. . - the file Plugin Timthumb Vendor timthumb.php is attempting to check if the path index.php etc exists in the webroot - it s not pointing at a writable path at all . Comment : Mod rewrite is enabled . And it s using CakePHP and it does routing through that index.php as far as I know . Comment : I ve just been looking through all the code and it looks like the Plugin itself is fine . But the Vendor Timthumb is struggling with the Front Controller in CakePHP . Do you know why Comment : I wrote my reply as an answer - know recognise that it s just a normal PHP problem . You might be using CakePHP but there s no evidence that s a relevant factor to the problem . .. . Answer : You should leave the final trailing off of your open basedir . Per the docs : .. . .. . When you want to restrict access to only the specified directory end with a slash . For example : open basedir dir incl .. . .. . So your entry only applies to home 00000 domains not any sub directories . Comment : Are you sure the remote open basedir is being set If you run phpinfo do you see the value for open basedir you are specifying Comment : I just noticed your path : html app webroot index.php img cameron.jpg .. . Is index.php img actually a directory Comment : Checked the phpinfo and the value has definitely being changed although it looks like the master was correct in the first place . But still getting the error . Is the value incorrect", "Question : I ve activated the ImageMagick extension as per the KnowledgeBase article https : kb.mediatemple.net questions 1778 Is+ImageMagick+installed+on+the+ 28gs 29+Grid-Service gs .. . .. . Basically adding this line to php.ini : .. . .. . However this doesn t seem to work . This script outputs the version number just fine : .. . .. . However when I try to use the Imagick class I get an error . Error : .. . .. . Any ideas what I m doing wrong or what the next step for troubleshooting is I ve contacted MediaTemple support and they just said sorry but because the script outputs the version number it proves it s installed Comment : That KB article enables you to call the ImageMagick cli tools from PHP scripts but it does not install the Imagick PEAR class php.net manual en book.imagick.php http : www.php.net manual en book.imagick.php . I m not seeing a simple way to use Imagick on the gs . It may need to be compiled from source and the extension stored locally in your path . I ll give that a shot . .. . Answer : Ok I got this working but it was a bit tricky . Here goes.. . .. . .. . First you ll want to install ImageMagick from source . This step may be optional if you already have access to MagickWand-config but it wasn t in my path . Here were the steps I followed to install it into an alternate directory on the gs : .. . .. . Note : As of this post the latest release was 6.8.9.3 . The Imagick PHP class is a PECL extension so we will install it using the provided KB https : kb.mediatemple.net questions 1682 Installing+PECL+extensions gs from Media Temple with one change . Here are the steps : .. . .. . This is where our script deviates from the instructions . We need to specify the path to our ImageMagick install to use MagickWand-config . If this isn t specified you ll see the following error : .. . .. . checking ImageMagick MagickWand API configuration program.. . configure : error : not found . Please provide a path to MagickWand-config or Wand-config program . If you ve used an alternate location for the source install of ImageMagick replace the path for --with-imagick with that path . Resuming the normal instructions : .. . .. . Update your php.ini file which should be located at home etc php.ini and add these 2 lines : .. . .. . extension dir home data lib php .. . .. . extension imagick.so .. . .. . Once complete here is the script I ran : .. . .. . Output : Comment : I followed these instructions with the current version ImageMagick-6.9.1-0.tar.gz and it works perfectly . YOU GUYS ARE THE BEST . Comment : These instructions worked perfectly With one little note : If your PHP version is not stable but latest you have to replace the line that says php-stable with this one : export PHPPATH php-latest -i grep Configure Command perl -pe s . . configure s --prefix . . 1", "Question : null .. . Answer : I would like to create a private git repository on mediatemple grid-system hosting . I followed this guide : http : kb.mediatemple.net questions 1594 Using+Git gs it just works fine but basically anyone could clone my project . : D .. . .. . If it is not possible is there any workaround with a 3rd party provider like https : bitbucket.org Excuse me if this is a noob question Im not a git expert . Comment : Bitbucket provides private repo s for free . Why not use them Comment : I didn t really get it how to use just until now . I read this article markdotto.com 2011 11 02 how-to-deploy-sites-via-github http : markdotto.com 2011 11 02 how-to-deploy-sites-via-github and everything is clear as sky now . :", "Question : null .. . Answer : enter image description here http : i.stack.imgur.com K8ImJ.jpg I am having problem in setting the cron job for laravel Task scheduler in MediaTemple DV hosting server . I have attached the error message . I will be grateful is somebody show me the guideline . Thankyou . Comment : You did not attach the error message . Comment : Sorry my mistake now i have given the image description . Error is - : 1 bad command errors in crontab file can t install . Thanks for your concern . Comment : Instead of php path to artisan schedule : run dev-null 2 1 I removed from the begining to php path to artisan schedule : run dev-null 2 1 . It solved the problem hope someone find useful ." ] }
[ "yes-answer-long", "yes-answer-short" ]
website
UNK_RELATION
genson@api@36
genson -- genson is a java-to-json @placeholder for serializing and deserializing java to and from json .
{ "confidence": [ 65.50935363769531, 56.838783264160156, 55.7392578125, 54.7088623046875, 53.913944244384766, 52.946067810058594, 52.202964782714844, 51.067893981933594, 49.8828010559082, 49.70747375488281, 47.519710540771484, 47.519710540771484, 46.875022888183594, 46.5707893371582, 45.466285705566406, 45.02422332763672, 44.17936706542969, 43.90736389160156, 43.72473907470703, 42.98712158203125, 42.98712158203125, 42.98712158203125, 42.78901290893555, 42.78901290893555, 42.49903869628906, 42.36431884765625, 41.82548522949219, 41.742549896240234, 41.65393829345703, 41.65393829345703, 41.65393829345703, 41.211395263671875, 41.211395263671875, 41.211395263671875, 41.16798400878906, 41.16798400878906, 41.0606689453125, 41.0606689453125, 40.80303192138672, 40.450477600097656, 40.29352569580078, 40.29352569580078, 40.24951171875, 40.07632064819336, 40.07632064819336, 40.03157043457031, 39.92559814453125, 39.92559814453125, 39.48527145385742, 39.468902587890625, 39.06155014038086, 38.8964958190918, 38.8964958190918, 38.8964958190918, 38.73949432373047, 38.73949432373047, 38.73949432373047, 38.715904235839844, 38.715904235839844, 38.565181732177734, 38.22597885131836, 38.22597885131836, 37.90852355957031, 37.63236999511719, 37.60442352294922, 37.60442352294922, 37.60442352294922, 37.60442352294922, 37.60442352294922, 37.60442352294922, 37.60442352294922, 37.60442352294922, 37.60442352294922, 37.50128173828125, 37.35057067871094, 37.35057067871094, 37.27714538574219, 37.27714538574219, 37.27714538574219, 37.27714538574219, 36.989784240722656, 36.34703063964844, 36.2440071105957, 36.2440071105957, 36.2440071105957, 36.21549606323242, 36.21549606323242, 36.21549606323242, 36.05919647216797, 35.8159294128418, 35.64316177368164, 35.62894821166992, 35.59532928466797, 35.59532928466797, 35.59532928466797, 35.59532928466797, 35.59532928466797, 35.59532928466797, 35.56473922729492, 34.922157287597656 ], "content": [ "Genson does all the serializing and deserializing .", "I get issues while deserializing JSON using Genson Library .", "Genson provides such feature for json .", "I m trying to deserialize a json string to java object with genson but could not succeed .", "I am using genson to generate json string .", "I have json POST request with the following token : abcd m : n where as the java bean holds : .. . .. . On using Genson it is not throwing UnrecognizedPropertyException which otherwise happen if i remove Genson dependency from pom.xml", "I want to use Genson as default json provider .", "I m using Genson to parse incoming JSON data .", "Using Genson http : owlike.github.io genson I try to deserialize a JSON string into a pojo of type Person .", "If you generate this json with Genson it will always respect this constraint .", "Yes with Genson you can not change the order yet and it is a lib for json not xml .", "So yes Genson will try to encode your string as a literal json string .", ": it is genson .", "You could easily implement your use-case by modifying ClassMetadataConverter https : github.com owlike genson blob master genson src main java com owlike genson convert ClassMetadataConverter.java .", "Genson will get the type from there .", "versus .. . .. . I m parsing unmarshalling the JSON using Jersey Genson .", "Digging into the Genson source code for GensonJaxRSFeature I see that the Genson object is created like so : .. . .. . From that and from the Genson documentation I can see that the JAXBBundle is probably what causes Genson to pay attention to the JAXB annotations .", "I am using genson 1.4 for JSON processing in my REST implementation JSON Inheritance is not working while using genson .please find the sample code-structure below .", "You might also want to have a look at how Genson is integrated into Jersey here https : code.google.com p genson source browse src main java com owlike genson ext jaxrs GensonJsonConverter.java .", "The up to-date documentation of Genson is hosted on github http : owlike.github.io genson .", "BTW the generated code is not for Genson JsonPropertyOrder isn t a Genson annotation .", "Genson is auto-registered when Jersey finds the Genson JAR on the classpath .", "I tried Genson .", "Why is Genson doing it", "I created a class from a json template with http : www.jsonschema2pojo.org and I use Genson to map my json with a Jersey based WS .", "If you need it now then you can define a custom Converter https : github.com owlike genson blob de1080e3e141c64191fdad16da2d528b3529e0cc genson src main java com owlike genson convert DefaultConverters.java L559 and register it with GensonBuilder .", "I am trying to convert a simple array of string elements in a json document to a java List which is inside a bean using genson .", "Genson genson new Genson.Builder .exclude String.class .exclude Integer.class .include address4 User.class .create", "I am genson author .", "2x means that it is genson .", "So I m using Genson .", "I m using Genson to serialize + deserialize json in my android app into polymorphic objects .", "Based on the json stream the sample input you provided Genson has no way of knowing to which concrete class to bind .", "I assume you generated this json with some library that handles object references during ser de but Genson doesn t .", "Also have a look at the Genson documentation http : owlike.github.io genson Documentation Extensions jax-rs-jersey--cie to see how to provide a custom Genson instance .", "Update Genson 1.3 and up provide a system to disable Genson in a Jax-RS http : owlike.github.io genson Documentation Extensions jax-rs-jersey--cie app .", "Jersey client 1.8 .. . Genson 0.98", "Genson in this situation picks the empty constructor .", "I appreciate any help in deserializing this json to java using any library .", "Genson is writing the fields in alphabetical order - for the moment this is not configurable .", "Try with latest Genson release .", "It is not yet supported in Genson .", "I am using Genson to generate it from ArrayList of Objects .", "I m using Jersey for my RESTful services and Genson to perform my JSON POJO conversion .", "When you do getEntity String.class Jersey asks Genson to deser the incoming json to a string .", "In this case you should not use Genson to handle the ser de with jersey as jackson and genson do both the same job .", "Are you using Genson for serialization only", "I am using Genson with Jersey .", "The solution I see is too extend GensonJsonConverter https : github.com owlike genson blob master genson src main java com owlike genson ext jaxrs GensonJsonConverter.java and override isWritable to return false when the input type is string .", "I have a DTO like this : .. . .. . I would like it to serialize to from the following JSON : .. . .. . Does anyone know how to do this using Jackson or Genson", "So I can do the following new GensonBuilder .useClassMetadata true and Genson will add a @Class element to the Json Object with the class name when it serializes .", "Some more documentation about the handling of polymorphic http : owlike.github.io genson Documentation UserGuide polymorphic-types types in Genson .", "How to disable Genson for Jersey or How can I resolve this issue by using Genson", "I opened an issue https : github.com owlike genson issues 39 allowing people to disable Genson in JAX-RS apps .", "Right now I m using Tomcat Jersey and Genson .", "Am using genson jar to serialise the request .", "Genson should use my factory to build instances .", "I tried setting @class values in the json string but still genson could not deserialize it .", "For the moment Genson has full polymorphic support only for types that are serialized as a json object .", "Has been released in Genson 1.3", "I have used genson has a way to send complex data objects to jersey rest webservices in java applications .", "Then it would have worked with the java version of Genson if configured to use fields instead of properties it is what Gson basically does .", "You can tell Genson to use the runtime type via configuration : .. . .. . Here you can find some examples on how to customize Genson with Jaxrs http : owlike.github.io genson Documentation Extensions jax-rs-jersey--cie .", "I am trying to implement a JSON serialization in Java with Genson http : owlike.github.io genson 1.3 for polymorphic types including : .. . .. . Number s .. . Arrays .. . Enum classes .. . .. . The SSCCE below demonstrates roughly what I am trying to achieve : .. . .. . Numbers and Arrays worked well out-of-the-box but the enum-class is providing a bit of a challenge .", "BTW there is no way to know the type here with or without genson .", "In Genson 0.99 there are missing Converters for float and short .", "You need to configure the date-format to use for Genson .", "I am trying to use Genson and remove Jackson .", "BTW Genson works with constructors that take arguments too .", "Then try to use scala.Array and at the same time use Genson .", "However the solution below by @eugen is the Genson recommended solution .", "You are not supposed to alter the default genson instance .", "There is no way to take the default genson instance and modify it .", "It is not a bug but a limitation that allows Genson to be fast even when deserializing objects with class metadata .", "In your case if you are able to produce a json of the form animals : @class : com.test.Dog name : Unno then genson would deser it to the correct type .", "I need to send a String that is already in JSON format using the Jersey client 1.19 and genson 1.3 .. . .. . The problem with this is that the client is parsing the string I need it to be sent as it is .", "I see you are using Jackson annotations Genson does not see use those annotations jackson and genson a two different libraries .", "Here are the relevant docs about jax-rs http : owlike.github.io genson Documentation Extensions and configuration http : owlike.github.io genson Documentation Configuration .", "Otherwise if all your incoming jsons will use d as key you can configure Genson with wrapRootValues d d http : owlike.github.io genson Documentation Configuration", "It works fine without Genson so it appears Genson is treating it as a literal string since it is of type String and therefore quoting the double quotes .", "If the incoming data changes even for the same field or you don t want to use an annotation you will probably have to provide a custom Date Converter similar to this one https : github.com owlike genson blob de1080e3e141c64191fdad16da2d528b3529e0cc genson src main java com owlike genson convert DefaultConverters.java L984 .", "I am creating the Genson object like this : .. . .. . My deserialize call : .. . .. . Does anyone have a tip on how I can deseriealize my json string array into a java List object residing inside a bean", "Update This has been released in Genson 1.3 .", "How should this serialization be solved using Genson", "Because Genson will add a property called @class to it .", "However if the consumed json is also produced by Genson you can easily solve this problem by enabling class metadata serialization builder.useClassMetadata true .", "I would use circe or Argonaut both are high performance json parsers that do not use reflection at all they are also idiomatic scala unlike genson or gson", "The main issue : .. . .. . I want to use the default Genson JSON provider that is auto-registered with Jersey but I want to set a few custom properties on it .", "I implemented a solution based on this and the javadocs for Factory http : owlike.github.io genson Documentation Javadoc com owlike genson Factory.html and ChainedFactory http : owlike.github.io genson Documentation Javadoc com owlike genson convert ChainedFactory.html which also provided relevant code examples .", "If you are feeling your self of contributing to the lib you could also improve the PropertyFilter class https : github.com owlike genson blob master genson src main java com owlike genson reflect PropertyFilter.java to support regular expressions for the field name or by adding another method that would be excludeAll Class clazz includeAll Class clazz that would exclude all properties from this class .", "Ok I have created an issue for your use-case github.com owlike genson issues 17 https : github.com owlike genson issues 17 see if the description helps you to implement it .", "In latest Genson release 1.1 you have now an option in the builder to fail if no property matches :", "Here are some of the changes in this release http : code.google.com p genson wiki Changelog .", "More details in the documentation http : owlike.github.io genson Documentation UserGuide polymorphic-types .", "For now I will remove the Genson stuff and try using jackson .", "Similar to the behaviour with @class in genson except that maybe the order does not matter .", "I tried your code with Jersey 1.19 Genson 1.3 and Wireshark .", "Basically Genson returns a cached converter in Genson.provideConverter Type forType line : 154 .", "If there s a really straight-forward approach to getting an object like the above to serialize to JSON without having to write some sort of converter for each schema I d gladly use that with Jersey instead of Genson but Genson has not failed me thus far in shortcomings .", "BTW you can remove the JsonProperty .. . on the arguments if you configure Genson with this option : .. . .. . The other option would be to tell Genson to use private properties by doing this : .. . .. . In that case you don t need the annotations on the constructor as Genson will use the no arg one ." ] }
{ "confidence": [ 71.16909790039062, 70.8306655883789, 70.23292541503906, 68.26535034179688, 68.18907165527344, 67.95704650878906, 67.60863494873047, 67.00650024414062, 65.06417083740234, 64.23831939697266, 63.94448471069336, 62.52370071411133, 62.359832763671875, 61.63802719116211, 61.459716796875, 60.94303512573242, 60.1850471496582, 59.83454895019531, 59.79804229736328, 59.6229248046875 ], "content": [ "Question : I have json POST request with the following token : abcd m : n where as the java bean holds : .. . .. . On using Genson it is not throwing UnrecognizedPropertyException which otherwise happen if i remove Genson dependency from pom.xml Comment : I am Gensons author at the moment it will swallow them silently I opened an issue few time ago github.com owlike genson issues 13 https : github.com owlike genson issues 13 I ll try to get it in the next release this month . .. . Answer : In latest Genson release 1.1 you have now an option in the builder to fail if no property matches :", "Question : I m trying to deserialize a json string to java object with genson but could not succeed . My class structure is like this : .. . .. . As you can see ComplexCondition may have another ComplexCondition or a SimpleCondition as its member for both left and right . The json that I get is like this : .. . .. . In this json a ComplexCondition has both left and right as SimpleCondition s . But a general json string that I receive could be anything ranging from a SimpleCondition to any level of nesting for ComplexCondition s . I tried setting @class values in the json string but still genson could not deserialize it . I appreciate any help in deserializing this json to java using any library . Comment : I doubt that provided json can be deserialized into provided java objects by any generic library as there are no data about java class names for library to use . Probably you will have to write your own deserialization Comment : Thanks for your time @Lashane . I did the deserialization myself by having constructors in both SimpleCondition and ComplexCondition that accept a JSON object and based on the object properties in it I m making recursive calls in ComplexCondition . .. . Answer : You can register some aliases for your classes and then refer to them in your json like this : .. . .. . You also need to add get and set methods for your ComplexCondition or make its field public or provide a constructor which takes them as arguments or configure genson to use private fields . And last note the class metadata attribute must be defined before attributes that are not prefixed by @ . If you generate this json with Genson it will always respect this constraint . Comment : I tried that before posting the question but it did not work . It initializes the Condition class but does not set anything on it . So if I try to cast it to either Simple or Complex I get a ClassCastException . Could you please check that once Comment : Probably because the attributes from ComplexCondition are all private and you don t have any getter setter . I just tried by generating get and set methods for them and all works perfectly fine . BTW there is a typo in the json which makes it invalid . I updated the answer with the corrected json Comment : I do have all the getters and setters I just ignored them in the question . In fact I ve toString methods in both Simple and Complex condition classes . The result that I see for your json is columbus.service.model.Condition@7fbe847c and columbus.service.model.Condition@41975e01 where as what I m expecting is this - locality Chino and ch4 1.5 . Comment : Even if I set useRuntimeType true on the GensonBuilder I see the default string representation that basically means the object is of type Condition and not one of the subtypes . Comment : ok updated . It is not a bug but a limitation that allows Genson to be fast even when deserializing objects with class metadata .", "Question : In my Spring MVC Java application I m using Jersey REST API . I am using Jackson for JSON processing . I added Genson to my project for filtering some fields for some classes . And I am trying to use Genson only for that and remaining I want to use Jackson . But I am getting exception while using Jersey REST api as Jersey enabled Genson by default when the Jar is in the classpath Got to know from this link https : code.google.com p genson wiki JerseyIntegration . Here is my code in connect to web service and get data and convert to String using Jackson .. . .. . I m getting following exception .. . .. . Line 74 refers to stringResponse response.getEntity String.class . How to disable Genson for Jersey or How can I resolve this issue by using Genson Thanks Comment : If you are ok with using genson always then you can directly deser to the type you want instead of getting the response as a string . Comment : I want it as String . How can I get it Comment : If you still need to disable Genson in Jax-RS the new release includes this mechanism please see my update . .. . Answer : The up to-date documentation of Genson is hosted on github http : owlike.github.io genson . What actually happens .. . .. . To me it is not clear where you want to use Genson and how . Are you using Genson for serialization only Are you using it through jersey or directly When you do getEntity String.class Jersey asks Genson to deser the incoming json to a string . Note that in general json format does not allow strings as root values . Solutions .. . .. . 1 . Upgrade to jersey 2.X and latest Genson release in the new Jersey version when you ask the input as a string it does not delegate to MessageBodyReader correct behaviour IMO . Then you can use this string to deser to whatever type you want . 2 . Use getEntityInputStream method from ClientResponse to get the raw InputStream and convert it to a String . 3 . Another solution would be to override Gensons implementation of MessageBodyReader to not handle deser to String . .. . .. . Having multiple libs that handle JSON conversion at the same time does not sound right to me . Especially as both Jackson and Genson provide some similar features . I opened an issue https : github.com owlike genson issues 39 allowing people to disable Genson in JAX-RS apps . Update Genson 1.3 and up provide a system to disable Genson in a Jax-RS http : owlike.github.io genson Documentation Extensions jax-rs-jersey--cie app . Comment : I was only using Jackson . But in some cases I needed to remove fields from POJO while serializing . With Jackson It is more complex as it needs to add @JsonFilter annotation . If the annotation is present in a POJO class there is problem while serializing in normal way with Jackson . So I m using Genson . But that I m directly using and not with Jersey . Comment : And are there any features that you use with Jackson and don t exist with Genson I recommend you to pick solution 1 and keep only one lib if it covers your use cases . Next release of Genson will include a system to disable it in jax-rs apps . Comment : I am trying to use Genson and remove Jackson . Thanks : Comment : Use getEntityInputStream method from ClientResponse to get the raw InputStream and convert it to a String . This saved me after a few hours of hopelessly bug hunting . Thanks", "Question : I m trying to deserialize a json string to java object with genson but could not succeed . My class structure is like this : .. . .. . As you can see ComplexCondition may have another ComplexCondition or a SimpleCondition as its member for both left and right . The json that I get is like this : .. . .. . In this json a ComplexCondition has both left and right as SimpleCondition s . But a general json string that I receive could be anything ranging from a SimpleCondition to any level of nesting for ComplexCondition s . I tried setting @class values in the json string but still genson could not deserialize it . I appreciate any help in deserializing this json to java using any library . Comment : I doubt that provided json can be deserialized into provided java objects by any generic library as there are no data about java class names for library to use . Probably you will have to write your own deserialization Comment : Thanks for your time @Lashane . I did the deserialization myself by having constructors in both SimpleCondition and ComplexCondition that accept a JSON object and based on the object properties in it I m making recursive calls in ComplexCondition . .. . Answer : I came up with this solution . If anyone can give a better solution I would be happy to accept it .", "Question : I m running into the following problem when trying to execute a POST call using Jersey and Genson : .. . .. . ... . com.owlike.genson.JsonBindingException : No constructor has been found for type interface Animal ... . I have the following setup : .. . .. . - Animal.java .. . .. . - Dog.java .. . .. . - Zoo.java .. . .. . - GensonCustomResolver.java .. . .. . - JerseyService.java .. . .. . The input JSON looks like this : .. . .. . To summarize I have a List and I m trying to use one of the interface implementations when deserializing my objects . Thank you in advance . : : : : SOLUTION : : : : : .. . .. . In case anyone runs into this : .. . .. . I removed genson dependencies completely as suggested below . Only used jackson annotations and it seemed to work . Also I removed the @JsonProperty from the name attribute in the Dog.java . Thank you : : .. . Answer : I think you mean I m trying to use one of the interface implementations when deserializing my objects . .. . .. . Your problem .. . .. . If it is what you mean then the short answer is it can not work like that . 1 . I see you are using Jackson annotations Genson does not see use those annotations jackson and genson a two different libraries . 2 . Based on the json stream the sample input you provided Genson has no way of knowing to which concrete class to bind . .. . .. . Some possible solutions would be .. . .. . If you use the same pojos animal dog etc and Genson on both ends the code that will post the data to the server and the server then using a Genson instance with useRuntimeType and useClassMetadata enabled on both ends should work . It would be the easiest solution . The class metadata mechanism during serialization writes in the json object as first entry the class name of the concrete type during deserialization Genson looks for this first attribute with key @class to extract the concrete class name . In your case if you are able to produce a json of the form animals : @class : com.test.Dog name : Unno then genson would deser it to the correct type . Note that you can also register aliases for types so you could just write dog instead of the full class name . More details in the documentation http : owlike.github.io genson Documentation UserGuide polymorphic-types . As you have those Jackson annotations to give type hints then you could also use jackson to handle the deser note that the input json would not work with this configuration as it does not seem to contain the informations defined via the annotations . In this case you should not use Genson to handle the ser de with jersey as jackson and genson do both the same job . Comment : Thanks eugen . I meant deserialization I have corrected it . I would prefer to stay with Jackson only . For now I will remove the Genson stuff and try using jackson . How would the JSON look like then can you comment Comment : I guess it should contain some property named type and having as value dog . Similar to the behaviour with @class in genson except that maybe the order does not matter . Comment : Do you mean this : animals : type : dog name : Unno Comment : Yes I think so as you have set property type in JsonTypeInfo . You might also want to read jacksons documentation about those annotations as I am not 100 sure of the meaning . Comment : eugen that is almost working . Now I get a response back however the response looks like this : animals type : dog name : null even though I m passing in the name in the input json . Any ideas on this one", "Question : I make an application for android using scala macroid framework if it matters . I get issues while deserializing JSON using Genson Library . Here is the minimal error-code .. . .. . I got the next error running this code on emulator .. . .. . Deserialization works fine when running on PC as a standalone scala app .. . .. . I ve added -keep class com.owlike.genson . options to build.sbt as was recommended here http : stackoverflow.com questions 27362851 genson-with-android-proguard-config however it does not help . Here is part of my build.sbt : .. . .. . I ve tried to add -keep class scala.Array to proguard options it does not help also . What else can I do .. . .. . EDITED : I did t get success with genson and use gson now . Gson works fine for me . Comment : Then it would have worked with the java version of Genson if configured to use fields instead of properties it is what Gson basically does . Comment : I would use circe or Argonaut both are high performance json parsers that do not use reflection at all they are also idiomatic scala unlike genson or gson .. . Answer : Can you try to use scala.Array in your code without Genson . Just to make sure it is present . Then try to use scala.Array and at the same time use Genson . If it works then this means that scala.Array is probably excluded by proguard . If this doesn t work I suspect that the classloader used by Genson doesn t see the Array class . In that case try this : Comment : Eugen thanks for help . I have Array objects in my code so it is present in classpath . With builder exception is the same . I don t understand why stacktrace contains only scala.reflect . classes . Comment : Do you have a more detailed stacktrace Something that would show what part of Genson code produces it Comment : No . I ve printed stacktrace of exception to PrintWriter I don t see any genson code or my activity code . Actually the question is not relevant now may be later I ll catch the issue", "Question : I need to send a String that is already in JSON format using the Jersey client 1.19 and genson 1.3 .. . .. . The problem with this is that the client is parsing the string I need it to be sent as it is . I m sending something like name : Foo and the client is converting it to name : Foo . If I change the type to PLAIN TEXT it sends the request correctly but I need to send it as application json . Comment : When you say the client is converting where are you seeing the conversion On the server Comment : I m sniffing it with wireshark . .. . Answer : So yes Genson will try to encode your string as a literal json string . In this case it is maybe not what you would want but more generally it is what people would expect : serialize java string as a json string . The solution I see is too extend GensonJsonConverter https : github.com owlike genson blob master genson src main java com owlike genson ext jaxrs GensonJsonConverter.java and override isWritable to return false when the input type is string . Then just register it . That should work . I ve opened this issue https : github.com owlike genson issues 73 so it can be added as a more flexible feature . Comment : Wouldn t a standalone literal JSON string always be invalid JSON It should be a JSON object or JSON array right So if type is application json and data is of type String wouldn t it be better to always send as is I haven t seen Genson code but I meant when it is being intercepted upon a post or put . Comment : There is an updated version for json-spec that allows any kind of value as root element not only object and array . Have a look at the issue for an updated solution .", "Question : I m trying to parse some JSON I get from a web API to Java objects and have some problems . Here is the JSON : .. . .. . Now I want to map this data on the following to Java classes so that the results is a Catalog object and the values in the result array are CatalogEntry objects : .. . .. . With the following line I try to deserialize the JSON string to a Catalog object : .. . .. . After that I try to get the values in the Catalog object but get a NullPointerException because it seems to be empty . I think the deserialization has a problem with the d object in the JSON but how do I fix this Any help would be appreciated . .. . Answer : The problem is that you havee 2 constructors one with no arguments and the other with the arguments . Genson in this situation picks the empty constructor . And as the properties are not visible and there are no setter then it will not populate the values . So if you want Genson to use a specific constructor then you must annotate it with @JsonCreator . BTW you can remove the JsonProperty .. . on the arguments if you configure Genson with this option : .. . .. . The other option would be to tell Genson to use private properties by doing this : .. . .. . In that case you don t need the annotations on the constructor as Genson will use the no arg one . I recommend you the first option . Comment : Thanks for your answer can t currently try your tips but will tomorrow when I m back at work . Comment : Hey I tried your tps by specifying the right constructor but the values of the catalog are stillt not created . Comment : Oh I see that you have your catalog object is not the root of the json . Can you change your json to not have d : results but just results Otherwise if all your incoming jsons will use d as key you can configure Genson with wrapRootValues d d http : owlike.github.io genson Documentation Configuration Comment : @MarkusWilhelm does this work for you You can also use the JaxbBundle with wrapRootValues enabled and @XmlRootElement d on your Catalog class . Comment : Thanks . I try it today will answer later with the results .", "Question : Basically I have some Java objects that I want serialized to JSON with as little headache as possible . Right now I m using Tomcat Jersey and Genson . I ve discovered that something like this doesn t work this is a toy example of course with Genson : .. . .. . The output of the above is this : .. . .. . What was nice about Genson is I just dropped it in my WebContent folder and it was used instead of whatever was bundled with Jersey - no additional configuration was necessary . If there s a really straight-forward approach to getting an object like the above to serialize to JSON without having to write some sort of converter for each schema I d gladly use that with Jersey instead of Genson but Genson has not failed me thus far in shortcomings . So - how do I massage Genson to serialize properly - or what is a library that handles this sort of thing painlessly Thanks Comment : release done see my edit .. . Answer : I m using Guice to handle my dependency-injection needs which is why I had a hard time getting Jackson integrated with my Jersey project . Since Genson wasn t doing what I wanted I decided to try Jackson again . I tried changing several things around until it just worked trying different suggestions on SO and Google . And now the following gives the output as expected in my Sandbox project : .. . .. .", "Question : I do RESTful application to accept and save the date . When I call it with the following JSON date : 1997-07-16T19 : 20 : 30 + 01 : 00 count : 1 I get the error listed below . Without date it works well . I use jersey.version 2.5.1 and eclipselink.version 2.5.2-M1 . How do I fix this Resource .. . .. . DateMapper .. . .. . Error Comment : you will need to parse your date with specific format . Seems similar thing here stackoverflow.com questions 4032967 json-date-to-java-date http : stackoverflow.com questions 4032967 json-date-to-java-date Comment : But where do I specify the conversion from JSON to my class Comment : You specify the date-format on the date field of your jaxb-annotated class Comment : yes accept it as string and then using dateformat parse it . .. . Answer : The problem here is that the format used on the server to deserialize a date does not match the format you used in your json . You need to configure the date-format to use for Genson . See this answer http : stackoverflow.com questions 13616034 how-do-i-configure-the-date-formatter-through-genson-jersey . Also have a look at the Genson documentation http : owlike.github.io genson Documentation Extensions jax-rs-jersey--cie to see how to provide a custom Genson instance . Overall your code should look something like that for latest Genson release 1.1 :", "Question : I am using genson 1.4 for JSON processing in my REST implementation JSON Inheritance is not working while using genson .please find the sample code-structure below . This is my BaseObject .. . .. . This is my Child Class .. . .. . This is my Response Object .. . .. . .. . .. . This is the GENSON JSON Output : .. . .. . baseObject : status : null errorCode : null errorMessage : null primaryKey : null .. . .. . CountryCode areaCode and localNumber is missing in JSON only the base-class is processed .Tried the same from code like this .. . .. . Output was the same like in the rest service . .. . Answer : By default Genson uses the static type during ser de . Meaning here it will see the object as an instance of SynBaseObject and not of the concrete type PhoneNumber . You can tell Genson to use the runtime type via configuration : .. . .. . Here you can find some examples on how to customize Genson with Jaxrs http : owlike.github.io genson Documentation Extensions jax-rs-jersey--cie . Note that if you ever want to deserialize to a ResponseObject then you will probably have troubles as in the json there is no information about what is the concrete type of base object . However if the consumed json is also produced by Genson you can easily solve this problem by enabling class metadata serialization builder.useClassMetadata true . Some more documentation about the handling of polymorphic http : owlike.github.io genson Documentation UserGuide polymorphic-types types in Genson . Comment : Thank you for the response its working from code .how can i configure .useRuntimeType true in my rest service as am just using the Genson 1.4 jar . serialization and de-serialization is handled by javax.ws.rs using the genson library Comment : To configure the genson instance for your services look at the docs here owlike.github.io genson Documentation Extensions http : owlike.github.io genson Documentation Extensions jax-rs-jersey--cie there are also some questions on stackoverflow where you can see a code snippet on how to do it . Like this one stackoverflow.com questions 38107426 http : stackoverflow.com questions 38107426 what-is-a-contextresolver-and-provider-in-jersey 38112074 38112074", "Question : I am trying to implement a JSON serialization in Java with Genson http : owlike.github.io genson 1.3 for polymorphic types including : .. . .. . Number s .. . Arrays .. . Enum classes .. . .. . The SSCCE below demonstrates roughly what I am trying to achieve : .. . .. . Numbers and Arrays worked well out-of-the-box but the enum-class is providing a bit of a challenge . In this case the serialized JSON form would have to be IMO a JSON object including a : .. . .. . type member .. . value member .. . .. . Looking at the EnumConverter class I see that I would need to provide a custom Converter . However I can t quite grasp how to properly register the Converter so that it would be called during deserialization . How should this serialization be solved using Genson .. . Answer : Great for providing a complete example First problem is that DTO doesn t have a no arg constructor but Genson supports classes even with constructors that have arguments . You just have to enable it via the builder with useConstructorWithArguments true . However this will not solve the complete problem . For the moment Genson has full polymorphic support only for types that are serialized as a json object . Because Genson will add a property called @class to it . There is an open issue https : github.com owlike genson issues 64 for that . Probably the best solution that should work with most situations would be to define a converter that automatically wraps all the values in json objects so the converter that handles class metadata will be able to generate it . This can be a good enough solution while waiting for it to be officially supported by Genson . So first define the wrapping converter .. . .. . Then you need to register it with a ChainedFactory which would allow you to delegate to the default converter this way it works automatically with any other type . The downside with this solution is that useClassMetadataWithStaticType needs to be set to true ...but well I guess it is acceptable as it s an optim and can be fixed but would imply some changes in Gensons code the rest still works . If you are feeling interested by this problem it would be great you attempted to give a shot to that issue and open a PR to provide this feature as part of Genson . Comment : I implemented a solution based on this and the javadocs for Factory http : owlike.github.io genson Documentation Javadoc com owlike genson Factory.html and ChainedFactory http : owlike.github.io genson Documentation Javadoc com owlike genson convert ChainedFactory.html which also provided relevant code examples .", "Question : I am getting following json string as JSON response . I am using genson to generate json string . At client-side am overriding parse method of backbone collection to convert json string to collection of objects . Am not sore what is wrong with following JSON response . Comment : Dude give us the actual JSON response not the one from the code that generates it . The actual one will not have the back-slashes and it won t be surrounded by quotes . Comment : I am getting above as a response when I parse it with Backbone s parse method . I am using Genson to generate it from ArrayList of Objects . Comment : I am new to JSON . Can you please let me know what do you mean by actual json response . Comment : Your JSON should be formatted according to the specification at json.org . Remove the opening and closing double-quotes remove the back-slashes and you might want to remove the new-line in the middle of quoted strings . Comment : @user3841837 can you please provide the java code that produces this JSON . .. . Answer : Remove whatever is making dateTime strings be divided in two lines :", "Question : Basically I have some Java objects that I want serialized to JSON with as little headache as possible . Right now I m using Tomcat Jersey and Genson . I ve discovered that something like this doesn t work this is a toy example of course with Genson : .. . .. . The output of the above is this : .. . .. . What was nice about Genson is I just dropped it in my WebContent folder and it was used instead of whatever was bundled with Jersey - no additional configuration was necessary . If there s a really straight-forward approach to getting an object like the above to serialize to JSON without having to write some sort of converter for each schema I d gladly use that with Jersey instead of Genson but Genson has not failed me thus far in shortcomings . So - how do I massage Genson to serialize properly - or what is a library that handles this sort of thing painlessly Thanks Comment : release done see my edit .. . Answer : I m Gensons author . I just checked this is a bug generics work fine in Genson except this particular case.. . If you can wait until tomorrow I will push a new release tonight containing the fix plus some minor new features . I will update my answer when its done . EDIT Bug corrected and release 0.94 pushed to public maven repo it should be available within a couple of hours max . Here are some of the changes in this release http : code.google.com p genson wiki Changelog . Please try it and confirm if it solves your problem . Thanks :", "Question : My Pojo class contains 50 fields and I need to convert only 10 fields to json . include method doesn t seem to be working . Kindly help . Comment : found a solution for the question . First exclude all using the data type and include only required field . Genson genson new Genson.Builder .exclude String.class .exclude Integer.class .include address4 User.class .create .. . Answer : An option would be to disable by default all properties and include selectively those you want like this : .. . .. . Note that I think you can also use @JsonProperty annotation on the fields you want to include instead of including them via the GensonBuilder . If you are feeling your self of contributing to the lib you could also improve the PropertyFilter class https : github.com owlike genson blob master genson src main java com owlike genson reflect PropertyFilter.java to support regular expressions for the field name or by adding another method that would be excludeAll Class clazz includeAll Class clazz that would exclude all properties from this class . I opened this issue https : github.com owlike genson issues 94 to track this feature . Comment : I can not use @JsonProperty because some fields are from parent class which I don t have permission to make changes . And also new GensonBuilder .exclude Object.class excludes all instead of using each object-type . Comment : Oh yeah right though I am not sure it excludes primitive-types . Comment : is it possible to maintain the order of fields in which we are including . Comment : I am not sure to understand do you have an example Genson is writing the fields in alphabetical order - for the moment this is not configurable . Comment : address : ADDRESS name : NAME PHone : 0 id : 101 right now it gives the result as above . But I want the result to be id : 101 name : NAME address : ADDRESS PHone : 0 is it possible in Genson to get the result in custom order .", "Question : I m tryin to consume this REST service .. . .. . by passing a JSON object by this javascript function : .. . .. . but I got this exception : .. . .. . Is there a way to consume a REST service with a generic parameter using JSON I googled a lot without success . I m using Jersey 1.8 genson 0.94 jboss 7.1 . .. . Answer : This won t work Genson does not know the type of T so it can not correctly deserialize it . BTW there is no way to know the type here with or without genson . A solution with genson would be to : .. . .. . 1 change the signature to : public void storeGeneric Object data .. . .. . 2 then add the type of your root object in the json on client-side js code ex suppose you wan t to deserialize to com.mypackage.FooBar then in your json you must have : @class : com.mypackage.FooBar .. . the rest of the properties .. . .. . .. . note : @class : yourclass must be the first key-value pair of the object . Genson will get the type from there . On server-side you must enable support of polymorphic types in Genson by doing : .. . .. . Also 0.94 is quite old you should upgrade to latest release : 0.98", "Question : One of the feauture listed on Genson home page is Serialization and Deserialization of maps with complex keys . While I m trying to serialize a map with Keys as complex java objects into json string and then deserialize them back to java Map . The deserialized map keys are always strings . Can someone please help me on how to use genson for such complex key map serialization and deserialization Here is my code .. . Answer : There are a couple of things you must know json does not allow keys that are not strings . So Genson will do one of the two things : .. . .. . If the key is some basic type like a primitive it will then ser it as a string .. . If the key is a complex object like in your case it will ser it as : key : value : .. . .. . Now it appears that when the type is unknown it will use toString method on the key I ve opened an issue here https : github.com owlike genson issues 63 . So in your case the fix would be to just type the map like this : .. . .. . Note however that you also need to disable runtimeType in GensonBuilder . Because when you enable it it will just ignore the defined type during serialization . Comment : Thanks Eugen for your help . do you know of any workaround using custom converters I can not disable runtime type and do not know what type of objects the map will hold . Comment : @user2246796 lets continue this on Genson mailing list I ll post back the final solution here once we find something that works .", "Question : Quick Intro can be skipped : Hi there s a lot of questions and answers about this topic but sometimes the solution is so simple that you just don t even think about and because I ve lost a lot of time I want to post a complement to all answers . .. . .. . Problem : You have a JSON REST service that handles POST requests to save a JSON object but that object contains a Date field that is not parsed out-of-the-box by Genson . The Java Object : .. . .. . The REST service with Jersey : .. . .. . The client in javascript with jQuery : Comment : BTW Genson works with constructors that take arguments too . Just enable it via GensonBuilder.useConstructorWithArguments true .. . Answer : SOLUTION : .. . .. . Genson provides an easy way to define how dates are de serialized this is the solution you can find everywhere : .. . .. . IMPORTANT : .. . .. . If the solution above is not working be sure that the Date type of the field in your Java Object is the one imported with : .. . .. . and not : .. . .. . I figured it out by myself but didn t find it anywhere on StackOverflow it s a stupid error so simple that you could not think about like me I hope it ll help someone .", "Question : So I can do the following new GensonBuilder .useClassMetadata true and Genson will add a @Class element to the Json Object with the class name when it serializes . Is there any way I can have this happen only when it comes to a runtime type that is different to compile-time . E.g . I would expect a @Class element on myType2 when serialized but not myType . .. . Answer : No at the moment there is no such option . You could easily implement your use-case by modifying ClassMetadataConverter https : github.com owlike genson blob master genson src main java com owlike genson convert ClassMetadataConverter.java . If you do it it might be great to make a PR with your changes . Update In latest Genson release 1.1 you have now an option in the builder to enable this behaviour : Comment : I did have a quick look into this but it didn t look like I d have what was required to achieve this . Thanks for the answer . Comment : Ok I have created an issue for your use-case github.com owlike genson issues 17 https : github.com owlike genson issues 17 see if the description helps you to implement it . Don t hesitate to ask there for help to implement it . Comment : Ah didn t see that tClass was available...will have a hack around soon - thanks . Comment : @Cheetah Implemented in latest release see update . Comment : I am getting a val scanner : on everything I serialize I get the same in version 1.1 too .", "Question : How to send date value to the Calendar object in Webservice Request . Request URL : http : localhost : 7001 WebProject Service getDetails .. . .. . RequestParams : .. . .. . And it is not parsing the value as date . How could i pass value for Calendar object . Am using genson jar to serialise the request . And the error message is like Comment : These two threads may help : stackoverflow.com a 26452897 4797507 http : stackoverflow.com a 26452897 4797507 stackoverflow.com questions 13616034 http : stackoverflow.com questions 13616034 how-do-i-configure-the-date-formatter-through-genson-jersey Comment : Thanks @Bob . It worked for me when i write provider class as it is mentioned in the docs . Comment : Adding to this i have some problem when getting response from the service . Say my data base is located in different location and it has different location . When i debug my code i could find the date and time is perfectly matched but when genson provider comes in-place it converts to simple date-format of my current system located time . Which mean it is converting to system time and not with reference value .. . Answer : If you are using Genson 1.2 and older than yes the two answers pointed in the comments should work for you . Starting with Genson 1.3 there has been a slight refactoring around configuring the JAX-RS extension so now it should be easier to do . An example using Jersey : .. . .. . But the old way to register a custom instance should still continue to work with 1.3 and up . Here are the relevant docs about jax-rs http : owlike.github.io genson Documentation Extensions and configuration http : owlike.github.io genson Documentation Configuration . Comment : Yes eugen It worked very well with date in serializing and de-serializing . But when this provider class is invoked it is converting to system data though you have different value in object Comment : Oh it is the XmlGregorianCalendar this ones date-format is not yet configurable but you can have a look at the source code https : github.com owlike genson blob master genson src main java com owlike genson ext jaxb JAXBBundle.java L113 to see how it is implemented and try out with your own Converter or use a basic date calendar for which the custom date formats are actually used ." ] }
[ "yes-answer-long", "yes-answer-short" ]
api
UNK_RELATION
django-syncdb@database@72
django-syncdb -- django-admin.py syncdb is a command which creates the @placeholder tables for all apps in installed apps whose tables have not already been created .
{ "confidence": [ 63.54474639892578, 61.58776092529297, 60.049034118652344, 59.376747131347656, 58.62419128417969, 58.13800048828125, 57.61078643798828, 57.016624450683594, 56.566612243652344, 55.58063888549805, 54.4912109375, 54.0716667175293, 53.78324890136719, 53.78324890136719, 53.415802001953125, 53.085899353027344, 52.569801330566406, 51.86043167114258, 51.842041015625, 51.781917572021484, 50.99308395385742, 50.857200622558594, 50.85018539428711, 50.381832122802734, 50.07101821899414, 49.387245178222656, 49.03792190551758, 48.50062561035156, 48.465911865234375, 47.902008056640625, 47.566837310791016, 47.09735107421875, 46.915924072265625, 46.72749328613281, 46.6385383605957, 46.3916015625, 46.36328125, 45.70413589477539, 45.67940902709961, 45.408782958984375, 45.256752014160156, 45.25314712524414, 45.11769104003906, 44.87789535522461, 44.73976135253906, 44.73976135253906, 44.689083099365234, 44.29222869873047, 44.23081588745117, 44.01356506347656, 43.80394744873047, 43.772117614746094, 43.68487548828125, 43.63005065917969, 43.623191833496094, 43.45331573486328, 42.98143005371094, 42.883087158203125, 42.84425735473633, 42.51775360107422, 42.37496566772461, 42.323997497558594, 42.323997497558594, 42.251136779785156, 42.15849685668945, 42.15723419189453, 42.086708068847656, 41.35682678222656, 41.35682678222656, 41.35682678222656, 41.290809631347656, 41.26449966430664, 40.97623825073242, 40.93910217285156, 40.682098388671875, 40.61977005004883, 40.5357666015625, 40.52677917480469, 40.38591384887695, 40.26932907104492, 40.24711608886719, 40.24711608886719, 40.24711608886719, 40.10916519165039, 40.0847282409668, 39.98537063598633, 39.98537063598633, 39.98537063598633, 39.816673278808594, 39.71167755126953, 39.71167755126953, 39.650901794433594, 39.56317138671875, 39.50015640258789, 39.47496795654297, 39.47496795654297, 39.47496795654297, 39.47127914428711, 39.289031982421875, 39.20228576660156 ], "content": [ "I had a django project demo project I ran syncdb command and created tables and saved data .", "Reference for the syncdb command documentation is very good for django : https : docs.djangoproject.com en 1.6 ref django-admin syncdb", "syncdb command is deprecated https : docs.djangoproject.com en 1.7 ref django-admin syncdb in django-1.7 .", "when you execute bin django-syncdb a list with all apps that have been and those that haven t been synced gets returned .", "Syncdb documentation https : docs.djangoproject.com en 1.6 ref django-admin syncdb .", "Remember syncdb doesn t alter existing tables once they ve been created .", "Alter settings.py to look like this : .. . .. . DATABASE ROUTERS app2.router.DatabaseAppsRouter .. . .. . DATABASE APPS MAPPING app2 : app2 .. . .. . Now running syncdb database app2 creates tables to database app2 and running syncdb creates all django system tables and own app1 tables to default .", "syncdb https : docs.djangoproject.com en 1.8 ref django-admin syncdb in django-1.8 is merely an alias for the migrate command but with the additional step of creating a superuser .", "Afterwards I modified the model and executed makemigrations which created the migrations ignoring the tables that syncdb had already created .", "How to do syncdb in django 1.4.2", "I have created a model and executed syncdb which had created the tables as my model was designed .", "stackoverflow.com questions 10834237 django-syncdb-and-migrate http : stackoverflow.com questions 10834237 django-syncdb-and-migrate", "If you are using django 1.7.x you d better use the migrate command since django 1.7.x syncdb is deprecated .", "Also one thing to note is syncdb command is deprecated since Django 1.7 and will be removed in Django 1.9 .", "Documentation is available here : docs.djangoproject.com en 1.6 ref django-admin syncdb https : docs.djangoproject.com en 1.6 ref django-admin syncdb", "From syncdb docs : https : docs.djangoproject.com en 1.8 ref django-admin syncdb .. . .. . Deprecated since version 1.7 : .. . This command has been deprecated in favor of the migrate https : docs.djangoproject.com en 1.8 ref django-admin django-admin-migrate command which performs both the old behavior as well as executing migrations .", "If it overrides the Django syncdb command then what would be the best way for me to sync .. . .. . and .. . .. .", "What is the right way to create custom pgsql types for django application so that each time database is created with syncdb all custom types are created prior to creating any tables so that tables can use this type", "Here http : south.readthedocs.org en latest commands.html syncdb it says .. . .. . South overrides the Django syncdb command as well as changing the output to show apps delineated by their migration status it also makes syncdb only work on a subset of the apps - those without migrations .", "Django just looks for files in app sql modelname .sql and runs them after creating tables during syncdb or sqlreset .", "Oh and you shouldn t be using syncdb in Django 1.8 it s been superseded by the new migrations code .", "THERE ARE NO DJANGO TABLES CREATED - no django-admin log no django content-type no django session", "Also note that syncdb won t populate tables .", "I m new to python and django and when following the Django Book http : www.djangobook.com en 1.0 chapter05 I learned about the command python manage.py syncdb which generated database tables for me .", "syncdb not adding them of course so I need your advices how to alter tables without deleting them and recreating again with syncdb .", "copy all files .. . .. . setup all tools django python ..etc .. . .. . run syncdb .. . .. . When I run manage.py syncdb it complains some table such as django content-type doesn t exist .", "The problem is when running Django tests I get the same error since Django tries to run syncdb without --all .", "syncdb doesn t overwrite the database data it just add the database tables that you need for the application you installed in your project .", "It only created the tables and you have to create the DB in MySQL before you can do syncdb .", "So if you add a new application in the INSTALLED APPS in the settings.py file and then run syncdb the command will add the necessary tables nothing more .", "Good practice overall since syncdb is gone in Django 1.9", "but after adding .. . .. . to my installed apps when i try to python manage.py syncdb im getting an error : .. . .. . Whats the reason of that :", "I upload it to my server and syncdb and it only syncs my custom apps to my database not the django.contrib apps .", "The syncdb command will be removed .", "models.py .. . .. . At the beginning I made here ManyToManyField but according to this http : stackoverflow.com questions 14016064 django-syncdb-doesnt-create-tables I changed it .", "When this attribute is set syncdb won t manage the app s tables for you .", "If you do this you might be able to fix it with : .. . .. . The syncdb command never deletes tables .", "Yes it s syncdb with South installed .", "https : docs.djangoproject.com en dev ref django-admin django-admin-sqlall .. . .. . If you want just the sql statements https : docs.djangoproject.com en dev ref django-admin django-admin-sql .. . .. . Here is a mangement command http : djangosnippets.org snippets 380 that prints sqlall for ALL installed apps .", "When I execute .. . .. . Django Projects netmag python manage.py syncdb .. . .. . I get the following error message : .. . .. . and here is the output of . manage.py help does not contain syncdb command .", "Doing just step 1 led to creating auth and django tables by running syncdb correctly but unfortunately ALL MODEL tables were created to default database ie .", "My installed apps consist of : .. . .. . and requirements file has : .. . .. . Is there a way of forcing syncdb to show the full stack-trace of the error .", "python opt graphite webapp graphite manage.py syncdb .. . .. . Once installed it has following tables .", "If in target DB there is no tables I want to create them by syncdb but I need to create tables only for the application I m exporting .", "Run syncdb first and decline making a superuser https : docs.djangoproject.com en 1.6 ref django-admin createsuperuser .", "Anyways I solved the problem and I just found out that the re going to remove syncdb from django-1.9", "I m using Django 1.7 which has migrate but due to some special fields my app is not yet ready for it so Django falls back to syncdb .", "Have you created migrations for all your apps", "When I syncdb it creates the table cars cars .", "In which file in a typical django project would you place the from django.core.management import call command call command syncdb interactive True", "I have an application in Django and MySQL in my model I have several fields specified as TextField when i run syncdb the tables for my model are created and the specified columns are created with longtext data type so far so good .", "In truth everything went fine with syncdb and all .", "As a workaround syncdb --all works but not sure to understand why and not sure that s a good practice after reading this post http : stackoverflow.com questions 24569925 clarification-on-django-syncdb-all-option .", "syncdb migrate makemigrations.. .", "You should place your app after the all django-apps in this list .", "I understand that syncdb creates the tables for the installed apps that aren t being migrated with south and that those that are under south migration control are overlooked unless the --all option is specified but I am confused by what actually happens and when to use it .", "But this did not solve the problem in the MySQL documentation https : dev.mysql.com doc refman 5.5 en innodb-compression-usage.html tells me that I have to specify ROW FORMAT COMPRESSED when i create the table but this is done by syncdb .. . .. . Is there way to specify these settings when syncdb creates the tables or I have to create the tables manually without using syncdb", "Among others script ensures that postgresql is installed and perform manage.py syncdb .", "I am learning and it might be just stupid mistake but syncdb and migrate creates all admin tables but no my app tables so only Groups and Users works in admin panel .", "While I m trying to syncdb for my django project I m seeing following complains : .. . .. . While I ve also read the similar problem django-syncdb-many-to-many-stale http : stackoverflow.com questions 5510843 django-syncdb-incorrectly-warns-that-many-to-many-field-is-stale but I cannot risk myself typing yes since I m on prod instance .", "In models.py I have : .. . .. . When I try to run a syncdb it doesn t create any tables the database is empty .", "Run syncdb .", "Syncdb works .", "So how do I script this syncdb command", "Then I took a copy of this project demo project copy and ran syncdb command .", "syncdb will not create or modify columns if they already exist in the database .", "Code for app1.router.AuthRouter and app1.router.App1Router is following : .. . .. . Problem is that when I do syncdb it does correctly create auth tables but it does not create django tables which fails in error .", "Where do I need to import my models.py or otherwise register my models so that Django will include them on a syncdb", "However I can steel load data manually .. . .. . How to make Django do the same thing automatically on syncdb", "I also use django-evolution but that s not an appropriate solution it runs after syncdb .", "syncdb responds as-if it is looking at a db that has already been synced i.e .", "Also just confirmed I can manually create tables insert into tables and select things from those tables with the same user that I m trying to run syncdb with .", "You can install django-extensions enable it and use it s useful commands like : .. . .. . It will print out a list of SQL commands that you can run to syncdb your apps by name .", "Trying to learn Django I closed the shell and am getting this problem now when I call python manage.py syncdb any idea what happened", "Yes this command skips tables that already exist in db .", "When you install south it replaces Django s syncdb command with its own .", "I would assume then that there is a bug in syncdb .", "It replaces the syncdb command with it s own slightly-different command with the same name .", "Running python manage.py syncdb attached to terminal.. . up run.2332 Creating tables .. . .. . .. . .", "I personally find it easier to use source distributions sdist for Django apps .", "don t need syncdb .", "I am running syncdb .", "I stick with syncdb .", "On the command python manage.py syncdb I get the following error note I m running in windows-7 : .. . .. . I have initialized the db in setting.py as : .. . .. . So how do I get syncdb to run correctly", "I use custom SQL when I need to do something like populate my Django tables from other non-Django database tables .", "But how come my syncdb does not complete itself", "Of course i checked it while syncdb was hanging", "did syncdb on demo project copy overwrite the data of demo project", "It is the south version of syncdb http : south.readthedocs.org en latest commands.html id5 that has the --all option but its not recommended : .. . .. . If you want to run syncdb on all of the apps then use --all but be warned this will put your database-schema and migrations out of sync .", "But when I try to create my database Article model isn t detected by django I ve tried with syncdb migrate and makemigrations : Django just acts like the models simply doesn t exists", ".. . .. . When I run syncdb -v 2 I do see that Django sees the egg and looks for the fixtures : .. . .. . Is it possible that Django doesn t know how to read from eggs", "Hello fellow stackoverflowers .. . .. . I am trying to follow the django intro tutorial https : docs.djangoproject.com en 1.3 intro tutorial01 using nitrous.io When I run manage.py syncdb it creates a few tables till it hits the auth user table .", "I think I ll have to verify after syncdb to ensure the security .", "But was your simple syncdb while you had South installed", "I removed the line and relevant code and let syncdb run .", "Trying to see the SQL that syncdb would generate at the current moment in time .", "I could explicitly list them but is there a way for syncdb to figure this out for me", "Django not change it if it s already there .", "I have a Django model like this : .. . .. . after running syncdb I get this PostgreSQL table .. . .. . So no name field neither user id .", "Alternatively you can write your own management command which gets all the installed apps and calls the . manage.py sql app name for each ." ] }
{ "confidence": [ 89.9576416015625, 88.41480255126953, 87.54268646240234, 82.9061050415039, 82.62831115722656, 82.23375701904297, 82.10889434814453, 81.70218658447266, 80.6598892211914, 80.48200988769531, 79.89582824707031, 79.75508117675781, 76.9794921875, 74.083251953125, 73.88580322265625, 73.62030029296875, 73.442626953125, 72.91151428222656, 72.90969848632812, 71.94345092773438 ], "content": [ "Question : I am trying to understand what exactly . manage.py syncdb --all does I recently had a database issue that I was able to fix by running this command but I am not exactly sure what it does behind the scenes . I understand that syncdb creates the tables for the installed apps that aren t being migrated with south and that those that are under south migration control are overlooked unless the --all option is specified but I am confused by what actually happens and when to use it . I am unable to find anything about the option on the django-admin docs https : docs.djangoproject.com en 1.6 ref django-admin and the man pages only say this about the option . Why do I need to be careful What exactly is this doing Is it completely deleting the database and starting over which I assume would cause me to lose all of my data stored in the database right or is something else happening here I am using Django 1.6 if that makes a difference . .. . Answer : When you install south it replaces Django s syncdb command with its own . It is the south version of syncdb http : south.readthedocs.org en latest commands.html id5 that has the --all option but its not recommended : .. . .. . If you want to run syncdb on all of the apps then use --all but be warned this will put your database-schema and migrations out of sync . If you do this you might be able to fix it with : .. . .. . The syncdb command never deletes tables . You need to be careful because you don t want the database-schema and migrations to get out of sync . Comment : Thanks for the answer but what exactly does it mean for the databases to be out of sync Comment : When you migrate your schema using south it stores information that the migration has been done in the database . If you create the table using . syncdb --all then the table is created but the migration data is not updated so the database-schema and migrations are out of sync .", "Question : This is probably a setting error somewhere . I have a django app that works fine on my desktop with the developer server and sqlite3 . I upload it to my server and syncdb and it only syncs my custom apps to my database not the django.contrib apps . My apache config : .. . .. . I have them in my installed apps : .. . .. . I don t get any errors when I sync . It just sinks my money.accounting app just like normal . And I am able to get to the admin section login page so It s finding some of the django files . Any ideas Thanks Hailey .. . Answer : Are you sure that the tables are not already present Remember syncdb doesn t alter existing tables once they ve been created . What happens if you start from a completely empty database If that doesn t help are you certain that the settings file is referring to the database you think it is", "Question : I have created a model and executed syncdb which had created the tables as my model was designed . Afterwards I modified the model and executed makemigrations which created the migrations ignoring the tables that syncdb had already created . So I ended up with an error relation already exists . Why did makemigrations created everything from scratch How do I fix this situation Comment : Try python manage.py migrate --fake appname . Comment : For some reason it doesn t apply the new changes . I have read somewhere that the migration is marked as done in django-migrations database . Anyways I solved the problem and I just found out that the re going to remove syncdb from django-1.9 Comment : Yes it was deprecated from Django 1.7 and will be removed in Django 1.9 . .. . Answer : makemigrations https : docs.djangoproject.com en 1.8 ref django-admin makemigrations-app-label creates new migrations based on the changes detected to your models . Also one thing to note is syncdb command is deprecated since Django 1.7 and will be removed in Django 1.9 . So you should use the migrate https : docs.djangoproject.com en 1.8 ref django-admin django-admin-migrate command . From syncdb docs : https : docs.djangoproject.com en 1.8 ref django-admin syncdb .. . .. . Deprecated since version 1.7 : .. . This command has been deprecated in favor of the migrate https : docs.djangoproject.com en 1.8 ref django-admin django-admin-migrate command which performs both the old behavior as well as executing migrations .", "Question : I had a django project demo project I ran syncdb command and created tables and saved data . Then I took a copy of this project demo project copy and ran syncdb command . Now I can t login with previous data which was stored in database error : invalid credentials . And when I run syncdb on demo project I get error . did syncdb on demo project copy overwrite the data of demo project What happened Comment : i got the error actually in some models there were some migrations used before . so they had to have add by using migration manually . sorry for the typo exhausted its 7 : 30 pm still in office . .. . Answer : syncdb doesn t overwrite the database data it just add the database tables that you need for the application you installed in your project . So if you add a new application in the INSTALLED APPS in the settings.py file and then run syncdb the command will add the necessary tables nothing more . If you are using django 1.7.x you d better use the migrate command since django 1.7.x syncdb is deprecated . Reference for the syncdb command documentation is very good for django : https : docs.djangoproject.com en 1.6 ref django-admin syncdb Comment : i am using django-1.6 i got the error actually in some models there were some migrations used before . so they had to have add by using migration manually . sorry for the typo exhausted its 7 : 30 pm still in office . Comment : If you are changing models on an ongoing project you should consider to use South . South can handle model migration in a decent way . Or maybe for the future consider to upgrade to django-1.7", "Question : I m facing a problem when using multiple databases in Django . Here s the scenario : .. . .. . I have a django project which is divided into two applications : app1 and app2 . App1 will take care of authentication and custom modules ie . it has its own models.py and App2 is normal web application ie . it has its own models.py with models in it . Settings.py looks like this : .. . .. . As you can see I have two databases both PSQL 9.2 default used for app1 application and app2 used for app2 application and I ve defined such 3 routers 1 . for authentification 2 . for app1 model and last for app2 model . Code for app1.router.AuthRouter and app1.router.App1Router is following : .. . .. . Problem is that when I do syncdb it does correctly create auth tables but it does not create django tables which fails in error . YOU SEE THERE ARE NO DJANGO TABLES CREATED - no django-admin log no django content-type no django session Any hints It s driving me crazy for three days Comment : Using multiple databases in Django is problematical at best as you ve found . I discovered myself in a similar situation earlier this year and the least time-consuming and most effective solution was to implement a database join migration script . Comment : Do you mean using just one database which is shared between all applications If it was possible I d love to use just 1 postgres DB with different schemas inside 1 for each application but it doesn t work . I truly need application data separated . Whole idea is create a web portal default app as a wrapper with all users passwords etc and other apps will be added independently app2 is actually attendance system app3 a ticket-system .. . Any Ideas Comment : Need to clarify some terminology for me.. . are you referring to multiple applications within the same Django project or multiple-projects themselves Comment : Well as far as i know two django projects can t speak to each other . That s why I wanted to create one Django project which will have different applications inside default app1 app2 - web attendance app3 - ticket-system .. . . I want to have the system as independent as possible but these parts app1 app2 app3 have to be able to communicate actually app2 app3 have to authenticate using app1 - which led me to use 1 Django projects with multiple apps each having own database . Is is clear Comment : Understood . Another user had a similar problem at stackoverflow.com questions 8054195 http : stackoverflow.com questions 8054195 django-multi-database-routing and documented the process at djangosteps.wordpress.com 2011 11 08 http : djangosteps.wordpress.com 2011 11 08 multiple-database-implementation-in-django Its somewhat old but may help . .. . Answer : What helped me is this post : http : diegobz.net 2011 02 10 django-database-router-using-settings .. . .. . Solution is this : .. . .. . 1 . using just one Router and this router will take care of application 2 - router app2.router.App2Router not any routers for default database . Routers for default database works fine just as it is . 2 . Alter that app2.router.App2Router to look like the code in that link in the beginning of the post provided . Doing just step 1 led to creating auth and django tables by running syncdb correctly but unfortunately ALL MODEL tables were created to default database ie . also tables from app2 . Altering app2.router.App2Router made everything work . 3 . Alter settings.py to look like this : .. . .. . DATABASE ROUTERS app2.router.DatabaseAppsRouter .. . .. . DATABASE APPS MAPPING app2 : app2 .. . .. . Now running syncdb database app2 creates tables to database app2 and running syncdb creates all django system tables and own app1 tables to default . Awesome Thanks Jason for his ideas Comment : I m still having this same problem .", "Question : I have created a model and executed syncdb which had created the tables as my model was designed . Afterwards I modified the model and executed makemigrations which created the migrations ignoring the tables that syncdb had already created . So I ended up with an error relation already exists . Why did makemigrations created everything from scratch How do I fix this situation Comment : Try python manage.py migrate --fake appname . Comment : For some reason it doesn t apply the new changes . I have read somewhere that the migration is marked as done in django-migrations database . Anyways I solved the problem and I just found out that the re going to remove syncdb from django-1.9 Comment : Yes it was deprecated from Django 1.7 and will be removed in Django 1.9 . .. . Answer : makemigration always creates one migration file having all the changes . So when you run makemigration for first time it tries to find the previous migration file . if not found it creates one initial migration file . And when it tries to apply it to the db it finds the relation already exists . And thus throws error . Best practice is before updating model create one migration then modify the model .", "Question : Since I upgrade to Django 1.8 from 1.7 I have got this foreign key constraint error . What s some wrong with django-1.8 latest version .. . Answer : Have you created migrations for all your apps If not you may well be hitting the problem that the database tables are being created in the wrong order which will give you this error . If you have an existing Django 1.7 project then you need to create the initial migration files and then fake the initial migration as described here .. . .. . https : docs.djangoproject.com en 1.8 topics migrations adding-migrations-to-apps .. . .. . Create the migration with .. . .. . And then fake the application Comment : Oh and you shouldn t be using syncdb in Django 1.8 it s been superseded by the new migrations code . Read docs.djangoproject.com en 1.8 topics migrations https : docs.djangoproject.com en 1.8 topics migrations for details .", "Question : Trying to see the SQL that syncdb would generate at the current moment in time . After several searches the answer wasn t readily apparent -- I know you can use : .. . .. . returns : .. . .. . How can I output the changes that have happened for the entire database if the code has changed at all Is there a way to generate all of the SQL for all of the apps that need syncdb ing at this time Or need I just explicitly state each app I m not looking for all of the SQL for the entire site just for the changes that would be implemented by a syncdb . I ve got several apps that need sql generated to describe the changes . I could explicitly list them but is there a way for syncdb to figure this out for me .. . Answer : You can do .. . .. . to get the sql statements and initial data for the app . https : docs.djangoproject.com en dev ref django-admin django-admin-sqlall .. . .. . If you want just the sql statements https : docs.djangoproject.com en dev ref django-admin django-admin-sql .. . .. . Here is a mangement command http : djangosnippets.org snippets 380 that prints sqlall for ALL installed apps . Alternatively you can write your own management command which gets all the installed apps and calls the . manage.py sql app name for each . Comment : Thanks kathikr -- But Is there a way to generate all the statements for all the apps that are available now as I click on your link Comment : You can specify multiple apps space separated in the command-line . But i dont believe there is one place where you can print every app installed . Comment : Would be very interested to know if ther IS a way to produce all the statements for all apps - that s the real point of the question . Will revise . Thanks for your help . Comment : just edited the answer addessing what you are asking for : Comment : Thanks again -- I m explicitly looking for the sql that d be generated by syncdb though at this moment though -- not all of the sql for the entire site", "Question : I am learning and it might be just stupid mistake but syncdb and migrate creates all admin tables but no my app tables so only Groups and Users works in admin panel . I see my models in admin panel but when I try to enter them it gives me an error Table baza63843 django.testowa news doesn t exist . models.py .. . .. . At the beginning I made here ManyToManyField but according to this http : stackoverflow.com questions 14016064 django-syncdb-doesnt-create-tables I changed it . But still doesn t work . I have my app in settings.py it is called testowa Comment : Which version of Django are you using . .. . Answer : If you are using Django 1.7 please follow the following commands to get the tables created in the db . after that command run the following command .. . .. . As south database migrations are inbuild with Django 1.7", "Question : I have Python Django project with app at apps hello and a fixture with initial data at apps hello fixtures initial data.json .. . .. . When I git-clone my Python Django project from github checkout needed branch and run .. . .. . it creates empty tables with no content i . e . does not load data from my initial data fixture . Django asks me to register a superuser which is already registered in fixture . However I can steel load data manually .. . .. . How to make Django do the same thing automatically on syncdb .. . Answer : I had the same problem and I solved it by adding a few lines in my settings.py", "Question : Trying to see the SQL that syncdb would generate at the current moment in time . After several searches the answer wasn t readily apparent -- I know you can use : .. . .. . returns : .. . .. . How can I output the changes that have happened for the entire database if the code has changed at all Is there a way to generate all of the SQL for all of the apps that need syncdb ing at this time Or need I just explicitly state each app I m not looking for all of the SQL for the entire site just for the changes that would be implemented by a syncdb . I ve got several apps that need sql generated to describe the changes . I could explicitly list them but is there a way for syncdb to figure this out for me .. . Answer : The Django Extensions package has a number of custom management commands for django one of these commands is sqldiff : .. . .. . https : github.com django-extensions django-extensions blob master docs sqldiff.rst .. . .. . First .. . .. . Next add django-extensions to installed apps .. . .. . Then you can .. . .. . You ll be presented with a full list of differences as well as a long list of ALTER TABLE statements that will ensure all fields are set properly length null unsigned etc .. . .. . Any tables that are not created will be listed and you can then dump the SQL to create them using .. . .. . It s worth noting that for column name changes sqldiff will attempt to simply drop renamed columns and create new ones in their place - So don t just copy the entire sqldiff and run it against production without inspecting .", "Question : Would it be possible to run python manage.py syncdb mutiple times towards the database Will it cause corruption .. . Answer : You can run python manage.py syncdb as many times as you want without any database corruption . It does not alter any existing tables . Syncdb documentation https : docs.djangoproject.com en 1.6 ref django-admin syncdb . Comment : Thanks catavaran will it by default skip it if it s already synced before Do you know if there is any documentation that explains this Comment : Yes this command skips tables that already exist in db . Documentation is available here : docs.djangoproject.com en 1.6 ref django-admin syncdb https : docs.djangoproject.com en 1.6 ref django-admin syncdb Comment : Awesome man Thank you", "Question : I added south in my installed apps so that I can do schemamigrations . I then added .. . .. . and .. . .. . to the installed apps . Now normally I would just do .. . .. . but is that the correct way to do it after installing south Here http : south.readthedocs.org en latest commands.html syncdb it says .. . .. . South overrides the Django syncdb command as well as changing the output to show apps delineated by their migration status it also makes syncdb only work on a subset of the apps - those without migrations . but I don t fully understand it . If it overrides the Django syncdb command then what would be the best way for me to sync .. . .. . and .. . .. . .. . Answer : You have to explicitly convert any of your INSTALLED APPS to use South . After installing South you can still do python manage.py syncdb to sync any apps that aren t using South such as Flatpages .. . .. . To convert an app : .. . http : south.readthedocs.org en latest convertinganapp.html Comment : Ah okay so what I would do is first python manage.py syncdb and then python manage.py convert to south django.contrib.followed by python manage.py convert to south django.contrib.flatpages Comment : yes except I wouldn t usually convert the django.contrib apps to South.. . you d typically use it on your own apps where you are changing the schema as development progresses", "Question : I ve dropped all tables from my postgres db . Now while running .. . .. . I m getting error that abc fields doesn t exist in xyz table . It s probably some sort of django-cache issue . Error is of this format : .. . .. . Any suggestions how to fix this Note - I m using django 1.8.2 and .. . .. . or .. . .. . is throwing same error . Comment : This may be due to migrations before syncing db you just delete all migrations folder inside you app . Comment : I ve deleted migrations folders from apps Comment : Try deleting all migrations in django-migrations table then run python manage.py makemigrations Comment : I ve dropped my entire db which includes this table as well . Comment : Try deleting any and all .pyc files in your project . .. . Answer : syncdb https : docs.djangoproject.com en 1.8 ref django-admin syncdb in django-1.8 is merely an alias for the migrate command but with the additional step of creating a superuser . Deprecated since version 1.7 : This command has been deprecated in favor of the migrate command which performs both the old behavior as well as executing migrations . But syncdb migrate should be executed only after you have done makemigrations app label but in your case you seem to have the order in reverse . Try Comment : Running . manage.py makemigrations is also throwing same error Comment : If this is a new database clear it and clear the migrations folder and try those two steps .", "Question : What is the best solution if I want to upgrade alter my database-schema add new fields to tables by adding them just to django-models without losing data in these tables syncdb not adding them of course so I need your advices how to alter tables without deleting them and recreating again with syncdb . Thanks Ignas .. . Answer : Django 1.7 has built-in migrations support . See https : docs.djangoproject.com en dev releases 1.7 schema-migrations", "Question : I am learning and it might be just stupid mistake but syncdb and migrate creates all admin tables but no my app tables so only Groups and Users works in admin panel . I see my models in admin panel but when I try to enter them it gives me an error Table baza63843 django.testowa news doesn t exist . models.py .. . .. . At the beginning I made here ManyToManyField but according to this http : stackoverflow.com questions 14016064 django-syncdb-doesnt-create-tables I changed it . But still doesn t work . I have my app in settings.py it is called testowa Comment : Which version of Django are you using . .. . Answer : You should create migrations first : .. . .. . After that run migrate command : Comment : Srsly facepalm . I couldn t find that info in few tutorials . Thanks man", "Question : I have Python Django project with app at apps hello and a fixture with initial data at apps hello fixtures initial data.json .. . .. . When I git-clone my Python Django project from github checkout needed branch and run .. . .. . it creates empty tables with no content i . e . does not load data from my initial data fixture . Django asks me to register a superuser which is already registered in fixture . However I can steel load data manually .. . .. . How to make Django do the same thing automatically on syncdb .. . Answer : If you are using Django version 1.7 or later you should probably know that automatic loading of fixtures has been deprecated https : docs.djangoproject.com en 1.7 howto initial-data automatically-loading-initial-data-fixtures : .. . .. . If an application uses migrations there is no automatic loading of fixtures . Since migrations will be required for applications in Django 2.0 this behavior is considered deprecated . If you want to load initial data for an app consider doing it in a data-migration . If you re using the new built-in migrations automatic loading of fixtures won t work .", "Question : I have a Django application that is running just fine on two other servers . It is using MySQL as the database . I have the user setup for a new instance of the application on a new server so that I can successfully connection via the mysql command-line client to the remote database . However when I attempt to run . manage.py syncdb it tell me : .. . .. . Every place I ve looked online tell me to make sure the user is setup in mysql and has permission to the new database and even to run flush privileges . I have double checked all of those and done this multiple times . That doesn t seem to be the issue . Any thoughts .. . .. . EDIT .. . .. . Also I just checked and running the following from the python command-line works fine too : .. . .. . EDIT 2 .. . .. . I just ran . manage.py sql myapp myapp.sql . manage.py dbshell myapp.sql .. . .. . Everything worked it created the tables just fine . I m assuming that would use the same permissions and settings as running . manage.py syncdb . What gives .. . .. . Versions .. . .. . Python 2.7.6 .. . Django 1.6.1 .. . .. . EDIT 3 .. . .. . I guess I should also add that I am using South 0.7.6 . If that helps . Comment : check privileges of app user make sure it has read-write permissions Comment : Also just confirmed I can manually create tables insert into tables and select things from those tables with the same user that I m trying to run syncdb with . syncdb is the only thing giving me grief . .. . Answer : I did leave something out that I didn t think was relevant but is totally relevant . This application has multiple databases defined . Syncdb only runs on one database at a time and by default will run using the default database as noted here : https : docs.djangoproject.com en 1.6 topics db multi-db synchronizing-your-databases .. . .. . However when my user didn t have permission on the other database syncdb would fail . It didn t indicate which database it was trying to access . Running . manage.py reset db from django-extensions worked fine as well before I made sure that the user had permissions on all databases . I would assume then that there is a bug in syncdb . After more looking into this I might have to report a bug to Django .", "Question : I ve written a pretty simple Django application called django-locality http : github.com rfkrocktk django-locality which takes the headache out of working with countries and territories . It provides a lot of initial data for countries and territories . I just the 0.1 release up to PyPI and installed it in my project which I m currently working on . I basically created it out of a need I found in my original project . When I ran syncdb however it didn t install any of my fixtures from locality . In the output it printed No fixtures found and no rows were added to the database though the tables were generated . Is there a reason why Django is missing my initial data My data lives at locality fixtures initial data.json and installs just fine if running it from it s own dedicated project . As I m using setuptools to manage dependencies would it make a difference if I downloaded it as a zipped egg vs . a simple directory layout .. . .. . Initially it seems that my JSON wasn t being included in the egg and this is why syncdb didn t work . Now I ve fixed that problem but syncdb is still failing to find any of my fixtures . You can download the egg to see for yourself here http : pypi.python.org pypi 3aaction display name django-locality version 0.1.1 . I can t think of any reason why Django would be missing the initial data . You can also view the repository http : github.com rfkrocktk django-locality on GitHub . Why isn t Django seeing the fixtures .. . .. . When I run syncdb -v 2 I do see that Django sees the egg and looks for the fixtures : .. . .. . Is it possible that Django doesn t know how to read from eggs .. . Answer : It looks like your setup.py does not include the initial data.json as package data : http : docs.python.org distutils setupscript.html installing-package-data This means when you install from PyPi you won t get the initial data.json file in your distribution . I personally find it easier to use source distributions sdist for Django apps . In that case you can list non-Python files which need to be included in the MANIFEST : http : docs.python.org distutils sourcedist.html Comment : So in my example what should I do I ve tried including a MANIFEST and have tried adding package data to my setup file but it s still not including it . Comment : Nevermind figured it out by elimination Comment : It still seems like it s not working . I ve determined that it s working it s including the fixtures directory and json in the egg but it s still not including it when running syncdb .", "Question : I am trying to install graphite on a linux node in a automated fashion . Script that install the graphite configure and start the services . Python 2.7 Django 1.5.12 .. . .. . One of the step to install graphite need .. . .. . manage.py syncdb .. . .. . .. . .. . Earlier I was trying to do in interactive way where I was able to create super user . python opt graphite webapp graphite manage.py syncdb .. . .. . Once installed it has following tables . I would like to make it automated by providing my own settings in local setting.py file . I have following in my file . When I run following .. . .. . python opt graphite webapp graphite manage.py syncdb --settings local settings .. . .. . It execute with following output .. . .. . It do not create tables and auth users etc . How do I have all tables by providing my local settings through local setting.py file . Please advise . .. . Answer : First you need to migrate to resemble the new db . python opt graphite webapp graphite manage.py migrate --settings local settings .. . .. . and then syncdb . Also django might ask for makemigrations Comment : Naga - migrate is not a valid operation . python opt graphite webapp graphite manage.py migrate --settings local settings Unknown command : migrate Type manage.py help for usage . Comment : @Chucks try to include graphite in the INSTALLED APPS in the settings.py file" ] }
[ "yes-answer-long", "yes-answer-short" ]
database
UNK_RELATION
ios9.2@operating-system@79
ios9 .2 -- ios 9.2 was an update to ios 9.1 the most recent version of ios the @placeholder for apple mobile-devices .
{ "confidence": [ 41.63291549682617, 40.5847053527832, 40.41252899169922, 40.17538833618164, 38.88066482543945, 36.94707107543945, 36.471092224121094, 35.84920883178711, 34.54952621459961, 34.30997848510742, 34.078426361083984, 33.411338806152344, 33.411338806152344, 33.411338806152344, 33.321022033691406, 32.85728454589844, 32.04719543457031, 31.978506088256836, 31.880569458007812, 31.65774917602539, 31.5997314453125, 31.550701141357422, 30.687788009643555, 30.277973175048828, 30.277973175048828, 29.86042022705078, 29.23487091064453, 29.112689971923828, 29.04836654663086, 28.91382598876953, 28.91382598876953, 27.974504470825195, 27.974504470825195, 27.974504470825195, 27.842483520507812, 27.31361961364746, 27.17266082763672, 26.61035919189453, 26.61035919189453, 26.61035919189453, 26.009933471679688, 26.009933471679688, 26.009933471679688, 26.009933471679688, 25.391910552978516, 25.326194763183594, 25.13768768310547, 24.871747970581055, 24.871747970581055, 24.871747970581055, 24.871747970581055, 24.871747970581055, 24.54526710510254, 23.58302879333496, 23.58302879333496, 23.50760269165039, 23.50760269165039, 23.403472900390625, 22.93703842163086, 22.489849090576172, 22.471803665161133, 21.98408317565918, 20.008440017700195, 18.53672981262207, 18.198707580566406, 18.198707580566406, 18.12301254272461, 17.881542205810547, 17.72481346130371, 17.535186767578125, 17.22822380065918, 17.172584533691406, 17.06052017211914, 17.06052017211914, 16.99342918395996, 16.99342918395996, 16.91397476196289, 16.856372833251953, 16.856372833251953, 16.846324920654297, 16.422409057617188, 16.412044525146484, 16.412044525146484, 16.375423431396484, 16.17770004272461, 15.855243682861328, 15.69637393951416, 15.51262092590332, 15.492227554321289, 15.429574012756348, 15.318792343139648, 15.316926956176758, 15.24610424041748, 15.115018844604492, 15.031408309936523, 14.784607887268066, 14.767134666442871, 14.766887664794922, 14.685601234436035 ], "content": [ "Does anyone have idea why iOS device sends version as ios .", "The APP is simple there is no function required just for iOS 9.2 .", "iOS version : 9.2.1 .. . .. . Thanks in Advance", "Now that Swift 2.2 iOS 9.3 watchOS 2.2 is out can I update an app using Xcode 7.3 and still work on a iOS 9.2 device", "My question is : in case I need to upload to APP to Apple Store Users with iphone iOS lower than 9.2 will be able to execute the APP in their devices", "I am using IOS 9.2 VPN with proxy settings IPSEC .", "Some Details : MDM - Mobile IRON - AppWrapping - AppTunnel iOS 9.2 Hybrid App - Coredova AnguelrJS plug ins DataBase : DB1 DB2 Sharepoint .", "My CCRotateTo is working in iOS 8 but when I update iOS to iOS 9.2.1 it is having bug in animation .", "iPhone 4s seems to be having little discrepancies in ios 9.2 like notification icons are coming but no vibrations or sound alerts are there .", "After updating from iOS 9.1 SDK to 9.2 SDK the app : .. . .. . works on all simulators including 6 Plus .. . and all phones except the 6 Plus phone 6s not tested .", "We observe that iOS device sends the OSVersion as ios instead of 9.2.1 during MDM enrollment to our server .", "I m wondering why this happens and if there is a way to make this code working in all timezone and regions provided by iOS 9.2", "After Updating to iOS 9.2 we are not able to see the profile section in general option .", "For example if I started using selector someFunc instead of selector someFunc will this crash on a iOS 9.2 device", "Now I am very aware of the recent iOS bug however Apple released a fix to this and yet I still have these weird statistics .", "This process is running correctly with iOS 7 8 but not with iOS 9 .", "On iOS 9.2 the app runs perfectly fine both when using the Chrome debugger and not using it .", "In iOS 9 it seems that the steps are not working .", "frustrated iOS 8 bugs .", "we recently developed a Hybrid Mobile application using Coredova plugins for iOS and Android .", "My guess educated from this stackoverflow question http : stackoverflow.com questions 4628521 segfault-only-when-not-using-debugger is that it is a timing issue provided that my hypothesis that iOS 8.1 runs faster than iOS 9.2 is correct .", "Unlike the experience in this question http : stackoverflow.com questions 32058689 can-i-get-chapter-metadata-for-protected-files it does not work for me with iOS 9.2 .", "Details : .. . .. . iPhone 6 plus with iOS 9.2.1 .. . .. . pod Facebook-iOS-SDK 4.1 .. . .. . Alos as I noticed I have this error in my log : .. . .. . Adding data to plist does not help as suggested here http : stackoverflow.com questions 30736663 swift-2-parse-facebooksdk-ios9 .", "What does the page look like on iOS", "Check the source report to see if iOS traffic is typical .", "developers.google.com identity sign-in ios https : developers.google.com identity sign-in ios sign-in configured true add the sign-in button", "Other question why Apple has approved Google chrome if it is not comapatilble with IOS settings", "Why won t the device plugin install on a Cordova 6.0 iOS project", "I have Delphi XE 10 Seattle and I compiled an APP using xcode 7.2 and iPhone 6 with iOS 9.2 for testing purpuses .", "I have a react-native app running on iOS .", "It is working fine in iOS 9 and other versions .", "I have no device profile setting on iOS or a trust button .", "This document does not states that some older iOS versions are no more supported .", "Can anyone provide any clues or possibilities iOS is showing this kind of stat", "Use this sdk that will solve your problem : developers.facebook.com resources FacebookSDKs-iOS-20150708.pkg https : developers.facebook.com resources FacebookSDKs-iOS-20150708.pkg", "I have a problem in CCRotateto animation in iOS 9.2.1 .", "As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above you can ignore this warning .. . .. . Reference : https : developers.facebook.com docs ios ios9 check at the bottom", "I need to know whether there is issue with response caching in ios .", "I am facing weird IOS app issue for the Core Data migration .", "The tricky part is when running with the Chrome debugger iOS 8.1 . works as expected .", "It s not a crash as such it looks like iOS killed the app as com.rajesh.es failed to exit in time .", "As part of distribution iOS app need to wrapped and supply to MobileIron MDM to distribute and access the DB after installing on the device .", "Please guide me how can i achieve the same on iOS 9 Swift 2.0 .", "I am new to iOS can you please help me out understand and fix this issue .", "On iOS versions 8 and under you need to explicitly create new versions of your schema in your project such that iOS can compare the two schemas from the app-bundle and perform the lightweight migration .", "I found the answer here http : stackoverflow.com questions 34260237 when-i-install-enterprise-app-in-phone6s-with-ios-9-2-but-i-cant-find-profiles http : here .. . .. . Steps for Trust on iOS 9.2 : .. . .. . Go to Settings .. . .. . Tap on General .. . .. . Tap on Device Managment .. . .. . Tap on your Profile ex : balu corp .. . .. . Tap on Trust your Profile Tap on Trust .", "No I have not found a solution yet but I think it has do with an IOS 9 update was reading on the forums that they are going to fix it soon .", "In iOS 7 for renewal of provisioning-profile for enterprise app we used to follow the below process : .. . .. . 1 .", "iOS SDK is maintained to be backward-compatible though I don t know how far back .", "ARC is fully supported starting from iOS 5 though it s pretty much compiler language feature .", "I ve added this : .. . .. . I have this in app delegate : .. . .. . but see it s deprecated in iOS 9", "You could take a look at the page load-time and see if that s any different on iOS .", "In iOS 9.2 a WKWebView rendering HTML with fixed-width tables bigger than the device width could be told to shrink the content to fit by adding a viewport tag like this : .. . .. . This line caused the WKWebView to effectively zoom out the viewport so that the entire rendered page fit in the view frame without the need for scrollbars .", "The latest language version either Swift or Objective-C can also be used with older iOS versions because no matter what the language is the compiler will generate effectively the same machine-code at the end .", "I have an issue where Google Analytics shows just fine data for all other browsers but then for iOS specifically version 9.3+ Google Analytics show a high bounce rate .", "To avoid the crash I created new database for iOS 8 because I didnt need existing data that much .", "However in iOS 8.1 the app will load and lists can be swiped data is loaded from the server etc .", "Better solution will be you update your Facebook SDK to latest version but if there is some specific requirement of the version you specified you can check the following .. . .. . The link you have provided in the question suggest .. . .. . If you re recompiling with iOS SDK 9.0 add the following to your application s plist if you re using a version of the SDK v4.5 or older : .. . .. . as you have mentioned you are using version 4.1 if you are using version 4.10 your plist should work as you have mentioned .. . .. . For the method you can implement this it is working for me in swift 2.2 .. . .. . For the more info regarding integration you can check : .. . .. . .. . FB SDK doc https : developers.facebook.com docs ios getting-started startcoding .. . FB Login sample : Medium https : medium.com ios-os-x-development a-simple-swift-login-implementation-with-facebook-sdk-for-ios-version-4-0-1f313ae814da .jm4va8pjc .. . .. . .. . .. . Update : So there may be some problem regarding the openURL as the warning is okay as per FB doc .. . .. . This is an Xcode warning indicating the the canOpenURL : call returned false .", "However I need the 9.2 behavior of shrink-to-fit .", "I have implemented MFMailCompose in my app.when I click on cancel we will get an actionSheet inside that we will get Save to drafts Cancel and delete button will be there but those buttons are not appearing in it only Delete drafts button is there.I think tint colour is changed becuased related buttons are working.it is working fine in IOS8.4 only in IOS 9.2 it is not working please check the image below enter image description here http : i.stack.imgur.com I1KmS.jpg .can anybody help me out", "The following link is used for adding FloatingButton action on top of UIViewController .. . .. . Creating a floating menu in an iOS application http : stackoverflow.com questions 31979342 creating-a-floating-menu-in-an-ios-application .. . .. . I already tried to add this floating button to my UITableViewController but it is not visible .", "for interactive SVG images use this third party lib maniacdev.com 2015 01 https : maniacdev.com 2015 01 open-source-ios-library-for-creating-interactive-svg-based-maps", "When I tried to debug the iOS to the Simulator This happens after I include the Xamarin.InAppPurchase-Unified components in Xamarin.I have these errors shown in the screenshots .", "You can take a look at page SDK Compatibility Guide Base SDK and Deployment Target Settings https : developer.apple.com library ios documentation DeveloperTools Conceptual cross development Configuring configuring.html apple ref doc uid 10000163i-CH1-SW1 to read about Base SDK and Deployment Target project settings .", "I m submitting a bug report to apple because whoever made this was an idiot .", "I ve spent hours now fighting with idiotic apple stuff", ": .. . .. . P.S : I ve also opened a bug to Apple via Apple Bug Reporter .", "If you were to find this value it would be in UIDevice Class Reference https : developer.apple.com library ios documentation UIKit Reference UIDevice Class index.html apple ref occ cl UIDevice .", "Install the new provisioning-profile to all the devices .", "I m using xcode7.3 to debug metal gpu frames but the capture gpu frame button is always gray and not available when debugging ios9.2 devices while it s ok with ios9.3 devices .", "Below are the mentioned Logs for your This issue only happens when an IOS8 Device migrates app from lower version to newer version.Note I am already passing this test in IOS9 using the model version light data-migration upgrade .", "in iOS 9 the Core Data store stores the current schema alongside the sqlite datafile s such that if when you change the schema in the app-bundle it can perform the lightweight migration between the schema captured on disk and the new schema in your app-bundle .", "Generate a new provisioning-profile from the Apple member center .", "There will be a certificate with name Apple Worldwide Developer Relations Certification Authority .", "I filed a bug report with Apple and this is the response : .. . .. . No we don t want to maintain shrink-to-fit behavior .", "This looks like a bug from the IDE I would suggest filling a bug request to Apple here : bugreport.apple.com https : bugreport.apple.com", "My request is If anyone seen this kind of behaviour in their Mobile Iron + Hybrid App distribution please help us in getting the solution .", "I am unable to install the provisioning-profile directly to devices .", "Rebuilding IPA and distributing to all the devices is not an option at this point of time .", "7.2.1 is the current public GM version .", "While searching for its solution I found that this can be done with javascript s window.location with a timer but that is not a good solution then somewhere I found this video and they are doing exactly the same thing that I want : https : www.youtube.com watch v k7jtlgx7uQU .. . .. . I also observed that iOS 9.2 s universal link can be helpful in this approach but could not found any suitable article how to use universal link on a webpage I only found articles related to how to implement universal link in an app .. . .. . I would be greatful to anyone who helps me .", "Check your connection and plugin name version URL .", "The sudo version of the command then allowed me to add the plugin .", "Now the issues is application need a SSO for 2 different databases DB and Sharepoint and application is working pretty fine with VPN but when we do the distribution using Mobile Iron and It s wrapping methods AppTunnel Application is just getting freezes at log in itself . . Suprising thing is It is freezing at different screens fro different users .", "2 .", "Goto https : www.apple.com certificateauthority and download Worldwide Developer Relations - G2 Certificate under Apple Intermediate Certificates .. . 6 .", "Due to that apple reject my app they want use SFSafariViewController .", "Now I am trying to submit another new version 3 but when filling out the Test Flight Information the next button is disabled preventing me from adding the new version .", "This is tested and works in both the simulator and on physical devices for both OS s .", "My answer about the same issue : stackoverflow.com questions 35784478 http : stackoverflow.com questions 35784478 apple-testfiight-app-submission-cant-click-next 35793166 35793166", "Go to keychain access .. . 2 .", "The app worked well for CRUD operations create read update delete on all phones .", "In most cases you probably want to use the lowercase one yyyy .", "Will update if anything new is discovered .", "are you using Xcode 7.2 or Xcode 7.2.1 which is today s current master version", "I signed an iOS App and WatchKit App Extension targets with valid provisioning profiles Separate provisioning-profile for each app identifier and not wild card App ID Build was archived successfully but when I try to export save Enterprise build Xcode auto generate locate XC : provisioning-profile and it also and resets invalidates previously selected provisioning profiles .", "same issue here any update", "I am trying to open the lower version of Xcode and suddenly my Xcode got crash and now whenever I am opening any of the Xcode version I am getting this error that says Xcode quit Unexpectedly with three options : Ignore Report Reopen but still none of the option is working .", "and which version of node js are using .. . .. . From terminal chek" ] }
{ "confidence": [ 52.43047332763672, 44.67078399658203, 44.373023986816406, 44.34501647949219, 42.79234313964844, 42.31895446777344, 42.09893035888672, 41.938758850097656, 41.89090347290039, 39.41814422607422, 38.874324798583984, 38.480079650878906, 36.921485900878906, 36.6854248046875, 32.00822067260742, 31.792678833007812, 30.808345794677734, 30.039817810058594, 29.53136444091797, 28.639541625976562 ], "content": [ "Question : null .. . Answer : I have Delphi XE 10 Seattle and I compiled an APP using xcode 7.2 and iPhone 6 with iOS 9.2 for testing purpuses . Works fine . My question is : in case I need to upload to APP to Apple Store Users with iphone iOS lower than 9.2 will be able to execute the APP in their devices For example iPhone 5 4 or 3 The APP is simple there is no function required just for iOS 9.2 . Thanks", "Question : null .. . Answer : I have a react-native app running on iOS . On iOS 9.2 the app runs perfectly fine both when using the Chrome debugger and not using it . However in iOS 8.1 the app will load and lists can be swiped data is loaded from the server etc . This is tested and works in both the simulator and on physical devices for both OS s . The tricky part is when running with the Chrome debugger iOS 8.1 . works as expected . When it is NOT running with the Chrome debugger the app crashes whenever navigating to a new view . I have a custom swipe view so I can swipe to another view and I can see all the content properly loaded right before it settles and crashes . If I simply try to click to a new page it will crash almost instantly . My guess educated from this stackoverflow question http : stackoverflow.com questions 4628521 segfault-only-when-not-using-debugger is that it is a timing issue provided that my hypothesis that iOS 8.1 runs faster than iOS 9.2 is correct . I am guessing that the debugger slows down the app enough that the timing issue doesn t present itself . That being said I tried the slow animation mode in the simulator and it still crashed when not using the debugger . With that in mind I recognize it could very well be a configuration issue . I m running XCode 7.2 and am using react-native 0.21.0-rc . The error that I get when trying to click anywhere change views is : .. . .. . null is not an object evaluating inst.componentWillReceiveProps Comment : I have a very similar issue on a react-native app everything runs perfect except on my iphone-6-plus and only the release version maybe because it runs faster than other devices I ve tested.. . Did you find a solution to your problem Comment : Unfortunately not yet . I ve backlogged the issue for the time being . Will update if anything new is discovered .", "Question : null .. . Answer : we recently developed a Hybrid Mobile application using Coredova plugins for iOS and Android . As part of distribution iOS app need to wrapped and supply to MobileIron MDM to distribute and access the DB after installing on the device . Now the issues is application need a SSO for 2 different databases DB and Sharepoint and application is working pretty fine with VPN but when we do the distribution using Mobile Iron and It s wrapping methods AppTunnel Application is just getting freezes at log in itself . . Suprising thing is It is freezing at different screens fro different users . My request is If anyone seen this kind of behaviour in their Mobile Iron + Hybrid App distribution please help us in getting the solution . please let me know If you need any further details to answer help me . Some Details : MDM - Mobile IRON - AppWrapping - AppTunnel iOS 9.2 Hybrid App - Coredova AnguelrJS plug ins DataBase : DB1 DB2 Sharepoint . Thanks Dasaradhi Bendi", "Question : I have a problem with FBSDKLoginManagerRequestTokenHandler as it should be invoked but it is not . It works perfect at the first step so app open safari and I able to login on Facebook . It says App is already authorized and I tapped on Ok button on Safari and then I see an alert which says Open this page in my app I tap open and nothing happen . I mean there is no call back in return . Details : .. . .. . iPhone 6 plus with iOS 9.2.1 .. . .. . pod Facebook-iOS-SDK 4.1 .. . .. . Alos as I noticed I have this error in my log : .. . .. . Adding data to plist does not help as suggested here http : stackoverflow.com questions 30736663 swift-2-parse-facebooksdk-ios9 . I ve added this : .. . .. . I have this in app delegate : .. . .. . but see it s deprecated in iOS 9 Comment : as you have not mentioned did you setup application application : UIApplication openURL url : NSURL sourceApplication : String annotation : AnyObject - Bool also the url schemes Comment : @Pyro hey I ve added new comments to a question thanks .. . Answer : Better solution will be you update your Facebook SDK to latest version but if there is some specific requirement of the version you specified you can check the following .. . .. . The link you have provided in the question suggest .. . .. . If you re recompiling with iOS SDK 9.0 add the following to your application s plist if you re using a version of the SDK v4.5 or older : .. . .. . as you have mentioned you are using version 4.1 if you are using version 4.10 your plist should work as you have mentioned .. . .. . For the method you can implement this it is working for me in swift 2.2 .. . .. . For the more info regarding integration you can check : .. . .. . .. . FB SDK doc https : developers.facebook.com docs ios getting-started startcoding .. . FB Login sample : Medium https : medium.com ios-os-x-development a-simple-swift-login-implementation-with-facebook-sdk-for-ios-version-4-0-1f313ae814da .jm4va8pjc .. . .. . .. . .. . Update : So there may be some problem regarding the openURL as the warning is okay as per FB doc .. . .. . This is an Xcode warning indicating the the canOpenURL : call returned false . As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above you can ignore this warning .. . .. . Reference : https : developers.facebook.com docs ios ios9 check at the bottom Comment : thanks for answer I still have an issue as I mention regarding canOpenURL and there is no call back in return after open app from safari Comment : @MatrosovAlexander please check your openUrl method with some other fb example as the warning should be ok as per fb doc mentioned in my updated answer Comment : ok thanks for update I am also trying use pod FBSDKLoginKit 4.10 instead . is this ok It drops an error : import FBSDKCoreKit FBSDKCoreKit+Internal.h - not found", "Question : null .. . Answer : In iOS 7 for renewal of provisioning-profile for enterprise app we used to follow the below process : .. . .. . 1 . Generate a new provisioning-profile from the Apple member center . 2 . Install the new provisioning-profile to all the devices . In iOS 9 it seems that the steps are not working . I am unable to install the provisioning-profile directly to devices . Rebuilding IPA and distributing to all the devices is not an option at this point of time . What are the other options that I have Anyone faced the same issue What s the workaround for this issue", "Question : null .. . Answer : I am using IOS 9.2 VPN with proxy settings IPSEC . Everything is fine . VPN is working and proxy is working with Safari but with Google Chrome it is showing the popup . My problem is that I cannot let user to add it manually becuase of 2 reasons one is security and other is user dont know the credentials . Can any one have work arround for google-chrome . Other question why Apple has approved Google chrome if it is not comapatilble with IOS settings Ref image : https : i.stack.imgur.com SW5yx.png", "Question : I have an issue where Google Analytics shows just fine data for all other browsers but then for iOS specifically version 9.3+ Google Analytics show a high bounce rate . Now I am very aware of the recent iOS bug however Apple released a fix to this and yet I still have these weird statistics . Can anyone provide any clues or possibilities iOS is showing this kind of stat Comment : What does the page look like on iOS Comment : @Kara Thanks for your respose . The page is a typical eCommerce site however the tracking was fine before until 2 weeks ago that the bounce rate became higher and no changes were made . Thoughts .. . Answer : You could take a look at the page load-time and see if that s any different on iOS . Check the source report to see if iOS traffic is typical . Also look at the volumes . If they re very low you may be seeing warped results . Another possibility is traffic from your own company for sites with only a few hundred visitors a day excluding internal traffic can have a noticeable effect on Bounce Rate but since this is phone traffic it might be slipping through the filter .", "Question : Now that Swift 2.2 iOS 9.3 watchOS 2.2 is out can I update an app using Xcode 7.3 and still work on a iOS 9.2 device For example if I started using selector someFunc instead of selector someFunc will this crash on a iOS 9.2 device .. . Answer : iOS SDK is maintained to be backward-compatible though I don t know how far back . You can take a look at page SDK Compatibility Guide Base SDK and Deployment Target Settings https : developer.apple.com library ios documentation DeveloperTools Conceptual cross development Configuring configuring.html apple ref doc uid 10000163i-CH1-SW1 to read about Base SDK and Deployment Target project settings . The latest language version either Swift or Objective-C can also be used with older iOS versions because no matter what the language is the compiler will generate effectively the same machine-code at the end . There could be nuances like lack of some OS features e.g . ARC is fully supported starting from iOS 5 though it s pretty much compiler language feature . It may be also interesting to read Xcode 7.3 Release Notes https : developer.apple.com library mac releasenotes DeveloperTools RN-Xcode Chapters Introduction.html apple ref doc uid TP40001051 to get the list of new features and changes . This document does not states that some older iOS versions are no more supported .", "Question : After Updating to iOS 9.2 we are not able to see the profile section in general option . I m trying to test my app on my iPhone but when it runs it gives me a security error Untrusted Developer on my iPhone . I have no device profile setting on iOS or a trust button . Does anyone know how to get by this .. . Answer : I found the answer here http : stackoverflow.com questions 34260237 when-i-install-enterprise-app-in-phone6s-with-ios-9-2-but-i-cant-find-profiles http : here .. . .. . Steps for Trust on iOS 9.2 : .. . .. . Go to Settings .. . .. . Tap on General .. . .. . Tap on Device Managment .. . .. . Tap on your Profile ex : balu corp .. . .. . Tap on Trust your Profile Tap on Trust . I believe it references this question but I am not sure where the answer went .", "Question : null .. . Answer : My app uses Parse with local store enabled to save and fetch data . While fetching it queries the local store first and then the network store . The app worked well for CRUD operations create read update delete on all phones . After updating from iOS 9.1 SDK to 9.2 SDK the app : .. . .. . works on all simulators including 6 Plus .. . and all phones except the 6 Plus phone 6s not tested . The writes work well I see them committed to the database on the cloud . But when I query I do not get network stored objects created elsewhere objects created locally show up as they are already in the local store . My debug messages back this up and state that they did not find any network object . This only happens on the 6 Plus phone . I found similar symptoms at : Parse don t load content on iPhone 6 Plus http : stackoverflow.com questions 30138118 parse-dont-load-content-on-iphone-6-plus however I do not have the auto-layout issues shown in that question .", "Question : I am facing weird IOS app issue for the Core Data migration . Below are the mentioned Logs for your This issue only happens when an IOS8 Device migrates app from lower version to newer version.Note I am already passing this test in IOS9 using the model version light data-migration upgrade . Any quick help is much appreciated as its in production . Comment : Hey friend did you ever get a solution for this problem Thanks Comment : I had to reload the app by deleting it and installing again : Sad state for me hope someone finds a better solution . Comment : same issue here any update Comment : deleted and added new app back . frustrated iOS 8 bugs . .. . Answer : On iOS versions 8 and under you need to explicitly create new versions of your schema in your project such that iOS can compare the two schemas from the app-bundle and perform the lightweight migration . in iOS 9 the Core Data store stores the current schema alongside the sqlite datafile s such that if when you change the schema in the app-bundle it can perform the lightweight migration between the schema captured on disk and the new schema in your app-bundle . here s a quick google-search result to point you in the right directions http : www.informit.com articles article.aspx p 2150667 seqNum 2 http : www.informit.com articles article.aspx p 2150667 seqNum 2", "Question : I am facing weird IOS app issue for the Core Data migration . Below are the mentioned Logs for your This issue only happens when an IOS8 Device migrates app from lower version to newer version.Note I am already passing this test in IOS9 using the model version light data-migration upgrade . Any quick help is much appreciated as its in production . Comment : Hey friend did you ever get a solution for this problem Thanks Comment : I had to reload the app by deleting it and installing again : Sad state for me hope someone finds a better solution . Comment : same issue here any update Comment : deleted and added new app back . frustrated iOS 8 bugs . .. . Answer : To avoid the crash I created new database for iOS 8 because I didnt need existing data that much . I changed my storeURL from .. . .. . to .. . .. . This fixed the crash for me .", "Question : null .. . Answer : I have implemented MFMailCompose in my app.when I click on cancel we will get an actionSheet inside that we will get Save to drafts Cancel and delete button will be there but those buttons are not appearing in it only Delete drafts button is there.I think tint colour is changed becuased related buttons are working.it is working fine in IOS8.4 only in IOS 9.2 it is not working please check the image below enter image description here http : i.stack.imgur.com I1KmS.jpg .can anybody help me out thanks in advance .", "Question : null .. . Answer : We observe that iOS device sends the OSVersion as ios instead of 9.2.1 during MDM enrollment to our server . This happens frequently and not consistently . Does anyone have idea why iOS device sends version as ios . iOS version : 9.2.1 .. . .. . Thanks in Advance Comment : sends where and how Comment : @ogres I have updated my question for where apology for not asking a question in detail . Can you please elaborate what do you mean how in your question", "Question : null .. . Answer : I d like to include an interface for playing audiobooks in my app . An audiobook is represented as a single MPMediaItem . In order to navigate inside this item I have to get access to the individual chapters . I tried it like this taken from here http : stackoverflow.com questions 9345934 how-to-get-the-mpmediaitem-audiobook-individual-chapters : .. . .. . I should get a CMTimeRange from the chapters and be able to skip to these time ranges somehow . But assetURL is always null for DRM-protected items . Unlike the experience in this question http : stackoverflow.com questions 32058689 can-i-get-chapter-metadata-for-protected-files it does not work for me with iOS 9.2 . Is there any other way to access the chapters iBooks obviously can do it .", "Question : In iOS 9.2 a WKWebView rendering HTML with fixed-width tables bigger than the device width could be told to shrink the content to fit by adding a viewport tag like this : .. . .. . This line caused the WKWebView to effectively zoom out the viewport so that the entire rendered page fit in the view frame without the need for scrollbars . For example consider the following code when run in viewDidLoad in a vanilla single view app : .. . .. . The content renders like this : .. . .. . enter image description here http : i.stack.imgur.com d95su.png .. . .. . However this behavior has changed in 9.3 . The identical code running in 9.3 renders like this : .. . .. . enter image description here http : i.stack.imgur.com n3MpV.png .. . .. . Although you can t see it in the screenshot there is a horizontal scrollbar .. . .. . Searching other questions on stackoverflow and elsewhere it seems like most other people prefer the 9.3 behavior . However I need the 9.2 behavior of shrink-to-fit . So my question is : does anyone know how to get the same shrink-to-fit behavior in 9.3 And does anyone know if this change is intentional or a bug that s going to be fixed in subsequent releases My test code can be found at https : github.com nsolter NSWebViewShrinkTest specifically https : github.com nsolter NSWebViewShrinkTest blob master NSWebViewShrinkTest ViewController.m .. . Answer : I filed a bug report with Apple and this is the response : .. . .. . No we don t want to maintain shrink-to-fit behavior . The workaround is to use a viewport meta tag that correctly describes the width of the content . I tried this out . If in the viewport tag you specify a width of the actual width of the html after it s rendered it will display properly on your device width . In my example above with a table width of 700 if you specify : meta name viewport content width 700 shrink-to-fit YES .. . .. . Then the page will display without horizontal scrollbars . Note that you can t specify an initial-scale viewport property though . Then it doesn t display with the proper width . This is obviously less than ideal because you generally don t know what the width of your rendered html will be until you render it . My current solution is to render it once with width device-width then render it again with width X where X is the actual width of the rendered page the first time .", "Question : I have the following block of code in Swift 2.0 that I m using to add 3 days from the current date to retrieve the weather data for that specific day . The fact is that if I run this code in my simulator using United States as region the new date will be set to 3 days and 1 year ahead if today it s the 2015-12-24 the new date will be 2016-12-27 . On the contrary if I set my emulator s region to United Kingdom or Italy the code performs perfectly and the new date is the exact one . I m wondering why this happens and if there is a way to make this code working in all timezone and regions provided by iOS 9.2 .. . Answer : Change the YYYY to lowercase as the following : .. . .. . The description for this problem would be : .. . .. . One major thing to note there is a difference between yyyy and YYYY . In most cases you probably want to use the lowercase one yyyy . The uppercase one is the Week of Year style of year . You can read all about it in here : http : www.codingexplorer.com swiftly-getting-human-readable-date-nsdateformatter .. . .. . Good luck : Comment : Thank you for your valuable answer and resource now I have a way better understanding of how NSDateFormatter works", "Question : null .. . Answer : I have a problem in CCRotateto animation in iOS 9.2.1 . My CCRotateTo is working in iOS 8 but when I update iOS to iOS 9.2.1 it is having bug in animation . The rotation not working perfectly . Here is the code Comment : What his the problem exactly Comment : @OlivierPIERRE My animation not working as per provide rotation it is just shows flickering animation .", "Question : Notifications are not getting after upgrade to iOS9.2 but up to iOS9.1 there is no such type of issue . But I didn t understand where was the problem . Is it iOS9.2 problem Can anyone help me out from this . Thanks in advance . Comment : You are not providing enough information for us to help you . Please take a look at stackoverflow.com help how-to-ask http : stackoverflow.com help how-to-ask . Comment : Sorry for that but simply I will say I have an issue i.e I am not getting notifications in iOS9.2 but in previous versions there is no such type of problem . Comment : Is this an issue with an application that you re writing or is this an issue globally If it s with your app please provide the code that you re using to handle the inbound notification . Comment : @cynicaljoy- Actually it was not new one . Already it was working in all previous versions . But the issue was raised in iOS9.2 . .. . Answer : iPhone 4s seems to be having little discrepancies in ios 9.2 like notification icons are coming but no vibrations or sound alerts are there . Are you using a iPhone 4s Comment : No I am using iPhone5 .", "Question : null .. . Answer : I have been researching this from a while that if there is a concrete way has come through which a user can open any of the three apps from browser . Here I am trying to explain : .. . .. . 1 . user opens a link on browser which has a button .. . 2 . user clicks on that button .. . 3 . Web page business login search for three apps : Yelp Google+ and Facebook . 4 . If yelp is found on the device that opens if not then Google+ opens and if Google+ is also not installed facebook opens and if all three are not installed then that page redirects to another webpage . While searching for its solution I found that this can be done with javascript s window.location with a timer but that is not a good solution then somewhere I found this video and they are doing exactly the same thing that I want : https : www.youtube.com watch v k7jtlgx7uQU .. . .. . I also observed that iOS 9.2 s universal link can be helpful in this approach but could not found any suitable article how to use universal link on a webpage I only found articles related to how to implement universal link in an app .. . .. . I would be greatful to anyone who helps me ." ] }
[ "yes-answer-long", "yes-answer-short" ]
operating-system
UNK_RELATION
foreign-data-wrapper@database-table@132
foreign-data-wrapper -- foreign data wrappers are postgresql extensions that allow you to load data from a foreign resource into a @placeholder .
{ "confidence": [ 65.9067611694336, 53.42577362060547, 48.266815185546875, 45.69327926635742, 45.140750885009766, 43.545921325683594, 42.897216796875, 41.9846076965332, 41.9846076965332, 40.45796203613281, 40.45796203613281, 40.45796203613281, 40.45796203613281, 38.72999572753906, 38.15053939819336, 37.675899505615234, 36.29849624633789, 36.29849624633789, 36.29849624633789, 36.19218444824219, 34.909934997558594, 33.951080322265625, 33.75281524658203, 33.75281524658203, 32.02040100097656, 28.611650466918945, 28.125308990478516, 28.05745506286621, 27.970651626586914, 27.094369888305664, 27.094369888305664, 26.56522560119629, 26.23080062866211, 23.13216209411621, 23.13216209411621, 21.787199020385742, 21.717775344848633, 21.501951217651367, 21.330352783203125, 21.081281661987305, 20.81694793701172, 20.29686164855957, 20.11328125, 19.106977462768555, 19.106977462768555, 19.106977462768555, 19.106977462768555, 19.106977462768555, 19.106977462768555, 19.106977462768555, 18.964941024780273, 18.733156204223633, 18.62705421447754, 18.5548152923584, 18.4641170501709, 18.4641170501709, 18.311471939086914, 17.946117401123047, 17.946117401123047, 17.920188903808594, 17.846872329711914, 17.764169692993164, 17.560380935668945, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 16.53343963623047, 15.107784271240234, 13.514559745788574 ], "content": [ "I am using PostgreSQL foreign-data-wrapper Multicorn http : multicorn.org foreign-data-wrappers which uses SQLAlchemy to map tables from external MySQL database .", "Used by distributed file fdw tables .. . .. . So my question remains : is it possible to use other foreign data wrappers such as mysql fdw", "I have make correctly it connects me a Server with foreign data this way : .. . .. . Then i make a foreign table like this : .. . .. . When i make a Select to pt test it gives me this error : .. . .. . I dont now what is layer .", "Update .. . .. . I have found this https : www.citusdata.com docs citus 5.0 reference metadata tables.html shard-storage-types .. . .. . FOREIGN f Indicates that shard stores foreign data .", "Consider filing a bug at github.com EnterpriseDB mysql fdw issues https : github.com EnterpriseDB mysql fdw issues including the MySQL table definition the PostgreSQL foreign table definition the problem data rows etc .", "What is the partial support for Creating distributed foreign tables", "I m on PostgreSQL 9.3.3 using FDW plugin Multicorn http : multicorn.org and my foreign table is on MySQL database .", "There s been discussion of supporting check-constraints on foreign tables but the problem is that Pg has no way to know if they re valid or to enforce them on the remote data .", "The planner makes assumptions based on check-constraints that could cause it to generate an incorrect plan if the check-constraint doesn t actually match the data in the foreign table .", "I want to create a foreign table and add a column with a constraint .", "My question now : Is there a way to ALTER an existing table to be a foreign table instead", "May be t standard table f foreign table or c columnar table .", "Thus each shard will point in this example to dbname constructor and foreign table audit .", "The desired architecture will be to have 1 empty table that defines the schema and several foreign tables inheriting from the empty parent table .", "You create your partitions you load the data .", "Everything seems to be working fine so far except one issue : if I run an insert-query on my foreign mysql table without specifying primary ID because it s set to auto-increment foreign-data-wrapper tries to append and starts the increment from 1 even though such a key already exists in the remote MySQL table .", "I suppose the initial foreign table could be created using : .. . .. . But how do I distribute such a table after creating it", "Creating distributed foreign tables has only partial support right now within Citus .", "For one we marked the distribution as append because we don t know the underlying distribution of the foreign table .", "possible with Postgres 9.5 .. . .. . I found this well written article https : www.depesz.com 2015 04 02 waiting-for-9-5-allow-foreign-tables-to-participate-in-inheritance that explains everything on how to do it from scratch .", "Also please note such Q A is best suited for the mailing list here : https : groups.google.com forum forum citus-users .. . .. . By partial support I meant we will push down the foreign table creation but will not automatically map different foreign table settings to different shards .", "What is the MySQL data type you are mapping", "We have a large table in our Postgres production database which we want to start sharding using foreign tables and inheritance .", "But I searched the entire documentation and found no examples of how to work with tables distributed using the f foreign table partition storage type .", "MySQL doesn t have a bytea data type .", "e.g : ALTER TABLE audit 100208 OPTIONS SET table name audit 1 .. . .. . If you have tables spread across multiple nodes or databases you d need to manually create specific servers for each foreign node on every Citus worker node .", "I am implementing mysql fdw in PostgreSQL 9.4.4 .", "This is better explained by example : .. . .. . MySQL table : .. . .. . MySQL table data : .. . .. . PostgreSQL FDW server : .. . .. . PostgreSQL FDW table : .. . .. . This is the insert statement that I ve tried : .. . .. . It throws this error : .. . .. . For some reason there is an attempt to manually insert a primary ID which I ve specified as auto-increment on both databases tables .", "My question is how to reduce the needed migration of data to a minimum .", "Its binary 8 in MySQL table mapped to bytea in PostgreSQL .", "MySQL s binary representation is different to the representation PostgreSQL expects for bytea .", "I have created foreign table and they are working fine except for one thing : For some of the rows in column idvisitor with datatype bytea it is throwing the following error .. . .. . ERROR : invalid input syntax for type bytea Error .. . .. . ERROR : invalid input syntax for type bytea SQL state : 22P02 .. . .. . Example : A table visits with two columns : id SERIAL idvisitor bytea Thousand rows with id from 1 to 1000 .. . .. . SELECT FROM visits ERROR .. . SELECT FROM visits WHERE id BETWEEN 1 and 900 NO ERROR .. . SELECT FROM visits WHERE id 901 ERROR .. . SELECT FROM visits WHERE id BETWEEN 902 AND 1000 NO ERROR .. . SELECT id FROM visits WHERE id 901 NO ERROR .. . .. . Proceeding like this I could identify rows which are triggering the error .", "What if you use int instead of serial on the PostgreSQL side", "I would do this by downloading the PostgreSQL SRPM modifying the spec file so it targets python-2.7 and rebuilding the RPMs .", "SQL and PostgreSQL has a wide range of features and we don t currently support all of them .", "Why you do not update it from t to f", "There are some other approaches parallelized readers and writers that may save you some time at the expense of db load but those are niche tools .", "postgres fdw connects to another PostgreSQL server not MS SQL Server .", "There is no native solution for shard management of standard PostgreSQL and I don t know enough about Postgres-XL in this regard to know how well it can manage changing shard criteria .", "My assumption is that even though the extension itself was compiled with references to python-2.7 and all the files copied to the right folder usr local lib python2.7 dist-packages multicorn-1.0.2-py2.7-linux-x86 64.egg multicorn PostgreSQL itself still uses the system default python-2.6 version and therefor fails to load the module .", "Could you please guide me to write this format conversion function", "I m trying to install Multicorn http : multicorn.org extension on PostgreSQL 9.3.3 but the problem I have that this extension only works with Python 2.7 or 3.3 whereas default version of python on my OS Centos 6.5 is 2.6 and I can t change it without breaking the whole system .", "My code : .. . .. . USING PostgreSQL 9.3 on Windows 8.1 and MS SQL Express 2012 on same windows", "Any help", "If I execute the same query in MySQL it executes silently without throwing any error .", "VARBINARY", "Seems like mysql fdw needs a format conversion function for binary to support this .", "How to integrate it with mysql fdw", "It ll be a modification to the mysql fdw C code if I m right about what the problem is .", "I haven t done anything with mysql fdw so I can t really give much advice there .", "From a historical perspective we primarily used this as a proof-of-concept to try reading flat-files spread across multiple nodes .", "First if you make sure your tables are split the way you like them first you can use a logical replication solution like Bucardo to replicate the writes while you are moving everything over .", "You direct reads and writes to the partitions .", "If you use hash you may get wrong partition pruning via Citus .", "You really have to basically do it manually .", "You miss info about pg dist shard.shardstorage flag .", "I wrote this PostgreSQL code lines but I m having the following error : .. . .. . ERROR : could not connect to server server sqlexpress .. . .. . SQL state : 08001 .. . .. . What am I doing wrong", "We are compiling a list of available features but in the meantime let us know if there is any features you are interested in .", "We do automatically create shards with storage-type f when you issue master create distributed table .", "I ve installed python-2.7 alongside the default version and compiled Multicorn extension from source https : github.com Kozea Multicorn changing python references paths in makefile to python-2.7 however I m having trouble using the extension in Postgres .", "You can construct the same table as above and create a distributed setup like so : .. . .. . And create shards using : .. . .. . You would now need to log into each Citus worker node and update each shard to point to it s relevant MySQL shard .", "To construct a more useful example let s say you already have some let s say 8 sharded MySQL tables e.g .", "Let s take your example : .. . .. . You can now distribute this using : .. . .. . And create shards using : .. . .. . However each shard created on the worker node will inherit the same options as the master node .", "Why is this happening and how can I fix it", "What is causing this is it Postgres FDW plugin Multicorn or SQLAlchemy", "Amazingly simple .", "It would look something like this : .. . .. . It gives me the error : .. . .. . So apparently at the moment this is not possible .", "Is there any workaround for this", "If not then will this work in the future at some point", "You ll have to enforce the constraint on the remote side for now .", "So for now it s not supported .", "@CraigRinger What about using user defined function to check the constraint manually", "Wouldn t this be a good solution to this problem", "Example : CHECK someFunction field IS TRUE", "Create extension command works just fine : .. . .. . Creating the server however fails : .. . .. . Is there a fix for this or at least a hint what to look for", "Is there any way to override python version that Postgres uses", "Would that solve the problem", "You ll need to recompile PL Python against Python 2.7 .", "Right now PL Python will keep using Python 2.6 .", "They aren t binary compatible and have separate sonames libpython2.7.so and libpython2.6.so .", "So just changing the PATH and LD LIBRARY PATH will do nothing .", "We have this 100+ GB table now that should become our first shard .", "And in the future we will regulary add new shards .", "At some point the older shards will be moved to another tablespace on cheaper hardware since they become less important .", "No way to use alter table to do this .", "This is no different really than doing table partitioning .", "Now in your case in terms of doing sharding there are a number of tools I would look at to make this less painful .", "However pretty much anything is possible with a little work and knowledge .", "The Citus documentation https : www.citusdata.com docs citus 5.0 reference user defined functions.html master-get-table-metadata for the master get table metadata function states : .. . .. . part storage type : Type of storage used for the table .", "How will the shards be created", "There would be limited value in creating such a distribution since even though Citus will issue parallel queries they will all again be sent to a single node and table .", "audit 1 audit 2 .. . audit 8 .", "There are caveats here to be careful of .", "There may be other caveats too as this isn t a use-case we actively support or have tested .", "Edit Adding responses to the other questions by Eugen .", "What feature citus lack", "If you want to connect to MS SQL you need to use an ODBC or JDBC FDW with an MS SQL ODBC or JDBC driver or to use a dedicated MS SQL FDW .", "See : http : wiki.postgresql.org wiki Foreign data wrappers" ] }
{ "confidence": [ 75.90990447998047, 60.034400939941406, 59.57874298095703, 59.10783004760742, 56.09864807128906, 54.66015625, 27.459980010986328, 23.468555450439453 ], "content": [ "Question : I am using PostgreSQL foreign-data-wrapper Multicorn http : multicorn.org foreign-data-wrappers which uses SQLAlchemy to map tables from external MySQL database . Everything seems to be working fine so far except one issue : if I run an insert-query on my foreign mysql table without specifying primary ID because it s set to auto-increment foreign-data-wrapper tries to append and starts the increment from 1 even though such a key already exists in the remote MySQL table . This is better explained by example : .. . .. . MySQL table : .. . .. . MySQL table data : .. . .. . PostgreSQL FDW server : .. . .. . PostgreSQL FDW table : .. . .. . This is the insert statement that I ve tried : .. . .. . It throws this error : .. . .. . For some reason there is an attempt to manually insert a primary ID which I ve specified as auto-increment on both databases tables . Why is this happening and how can I fix it What is causing this is it Postgres FDW plugin Multicorn or SQLAlchemy .. . Answer : What if you use int instead of serial on the PostgreSQL side Comment : Amazingly simple .", "Question : We have a large table in our Postgres production database which we want to start sharding using foreign tables and inheritance . The desired architecture will be to have 1 empty table that defines the schema and several foreign tables inheriting from the empty parent table . possible with Postgres 9.5 .. . .. . I found this well written article https : www.depesz.com 2015 04 02 waiting-for-9-5-allow-foreign-tables-to-participate-in-inheritance that explains everything on how to do it from scratch . My question is how to reduce the needed migration of data to a minimum . We have this 100+ GB table now that should become our first shard . And in the future we will regulary add new shards . At some point the older shards will be moved to another tablespace on cheaper hardware since they become less important . My question now : Is there a way to ALTER an existing table to be a foreign table instead .. . Answer : No way to use alter table to do this . You really have to basically do it manually . This is no different really than doing table partitioning . You create your partitions you load the data . You direct reads and writes to the partitions . Now in your case in terms of doing sharding there are a number of tools I would look at to make this less painful . First if you make sure your tables are split the way you like them first you can use a logical replication solution like Bucardo to replicate the writes while you are moving everything over . There are some other approaches parallelized readers and writers that may save you some time at the expense of db load but those are niche tools . There is no native solution for shard management of standard PostgreSQL and I don t know enough about Postgres-XL in this regard to know how well it can manage changing shard criteria . However pretty much anything is possible with a little work and knowledge .", "Question : null .. . Answer : I want to create a foreign table and add a column with a constraint . It would look something like this : .. . .. . It gives me the error : .. . .. . So apparently at the moment this is not possible . Is there any workaround for this If not then will this work in the future at some point I m on PostgreSQL 9.3.3 using FDW plugin Multicorn http : multicorn.org and my foreign table is on MySQL database . Comment : You ll have to enforce the constraint on the remote side for now . There s been discussion of supporting check-constraints on foreign tables but the problem is that Pg has no way to know if they re valid or to enforce them on the remote data . The planner makes assumptions based on check-constraints that could cause it to generate an incorrect plan if the check-constraint doesn t actually match the data in the foreign table . So for now it s not supported . Comment : @CraigRinger What about using user defined function to check the constraint manually Wouldn t this be a good solution to this problem Example : CHECK someFunction field IS TRUE", "Question : The Citus documentation https : www.citusdata.com docs citus 5.0 reference user defined functions.html master-get-table-metadata for the master get table metadata function states : .. . .. . part storage type : Type of storage used for the table . May be t standard table f foreign table or c columnar table . But I searched the entire documentation and found no examples of how to work with tables distributed using the f foreign table partition storage type . I suppose the initial foreign table could be created using : .. . .. . But how do I distribute such a table after creating it How will the shards be created Update .. . .. . I have found this https : www.citusdata.com docs citus 5.0 reference metadata tables.html shard-storage-types .. . .. . FOREIGN f Indicates that shard stores foreign data . Used by distributed file fdw tables .. . .. . So my question remains : is it possible to use other foreign data wrappers such as mysql fdw .. . Answer : Creating distributed foreign tables has only partial support right now within Citus . Let s take your example : .. . .. . You can now distribute this using : .. . .. . And create shards using : .. . .. . However each shard created on the worker node will inherit the same options as the master node . Thus each shard will point in this example to dbname constructor and foreign table audit . There would be limited value in creating such a distribution since even though Citus will issue parallel queries they will all again be sent to a single node and table . To construct a more useful example let s say you already have some let s say 8 sharded MySQL tables e.g . audit 1 audit 2 .. . audit 8 . You can construct the same table as above and create a distributed setup like so : .. . .. . And create shards using : .. . .. . You would now need to log into each Citus worker node and update each shard to point to it s relevant MySQL shard . e.g : ALTER TABLE audit 100208 OPTIONS SET table name audit 1 .. . .. . If you have tables spread across multiple nodes or databases you d need to manually create specific servers for each foreign node on every Citus worker node . There are caveats here to be careful of . For one we marked the distribution as append because we don t know the underlying distribution of the foreign table . If you use hash you may get wrong partition pruning via Citus . There may be other caveats too as this isn t a use-case we actively support or have tested . From a historical perspective we primarily used this as a proof-of-concept to try reading flat-files spread across multiple nodes . Edit Adding responses to the other questions by Eugen . Also please note such Q A is best suited for the mailing list here : https : groups.google.com forum forum citus-users .. . .. . By partial support I meant we will push down the foreign table creation but will not automatically map different foreign table settings to different shards . SQL and PostgreSQL has a wide range of features and we don t currently support all of them . We are compiling a list of available features but in the meantime let us know if there is any features you are interested in . We do automatically create shards with storage-type f when you issue master create distributed table . Comment : What is the partial support for Creating distributed foreign tables Comment : What feature citus lack Comment : You miss info about pg dist shard.shardstorage flag . Why you do not update it from t to f", "Question : null .. . Answer : I am implementing mysql fdw in PostgreSQL 9.4.4 . I have created foreign table and they are working fine except for one thing : For some of the rows in column idvisitor with datatype bytea it is throwing the following error .. . .. . ERROR : invalid input syntax for type bytea Error .. . .. . ERROR : invalid input syntax for type bytea SQL state : 22P02 .. . .. . Example : A table visits with two columns : id SERIAL idvisitor bytea Thousand rows with id from 1 to 1000 .. . .. . SELECT FROM visits ERROR .. . SELECT FROM visits WHERE id BETWEEN 1 and 900 NO ERROR .. . SELECT FROM visits WHERE id 901 ERROR .. . SELECT FROM visits WHERE id BETWEEN 902 AND 1000 NO ERROR .. . SELECT id FROM visits WHERE id 901 NO ERROR .. . .. . Proceeding like this I could identify rows which are triggering the error . If I execute the same query in MySQL it executes silently without throwing any error . Comment : MySQL doesn t have a bytea data type . What is the MySQL data type you are mapping VARBINARY Comment : Its binary 8 in MySQL table mapped to bytea in PostgreSQL . Comment : Seems like mysql fdw needs a format conversion function for binary to support this . MySQL s binary representation is different to the representation PostgreSQL expects for bytea . Comment : Could you please guide me to write this format conversion function How to integrate it with mysql fdw Comment : It ll be a modification to the mysql fdw C code if I m right about what the problem is . I haven t done anything with mysql fdw so I can t really give much advice there . Consider filing a bug at github.com EnterpriseDB mysql fdw issues https : github.com EnterpriseDB mysql fdw issues including the MySQL table definition the PostgreSQL foreign table definition the problem data rows etc .", "Question : null .. . Answer : I have make correctly it connects me a Server with foreign data this way : .. . .. . Then i make a foreign table like this : .. . .. . When i make a Select to pt test it gives me this error : .. . .. . I dont now what is layer . Any help", "Question : I m trying to install Multicorn http : multicorn.org extension on PostgreSQL 9.3.3 but the problem I have that this extension only works with Python 2.7 or 3.3 whereas default version of python on my OS Centos 6.5 is 2.6 and I can t change it without breaking the whole system . I ve installed python-2.7 alongside the default version and compiled Multicorn extension from source https : github.com Kozea Multicorn changing python references paths in makefile to python-2.7 however I m having trouble using the extension in Postgres . Create extension command works just fine : .. . .. . Creating the server however fails : .. . .. . Is there a fix for this or at least a hint what to look for My assumption is that even though the extension itself was compiled with references to python-2.7 and all the files copied to the right folder usr local lib python2.7 dist-packages multicorn-1.0.2-py2.7-linux-x86 64.egg multicorn PostgreSQL itself still uses the system default python-2.6 version and therefor fails to load the module . Is there any way to override python version that Postgres uses Would that solve the problem .. . Answer : You ll need to recompile PL Python against Python 2.7 . Right now PL Python will keep using Python 2.6 . They aren t binary compatible and have separate sonames libpython2.7.so and libpython2.6.so . So just changing the PATH and LD LIBRARY PATH will do nothing . I would do this by downloading the PostgreSQL SRPM modifying the spec file so it targets python-2.7 and rebuilding the RPMs .", "Question : I wrote this PostgreSQL code lines but I m having the following error : .. . .. . ERROR : could not connect to server server sqlexpress .. . .. . SQL state : 08001 .. . .. . What am I doing wrong My code : .. . .. . USING PostgreSQL 9.3 on Windows 8.1 and MS SQL Express 2012 on same windows .. . Answer : postgres fdw connects to another PostgreSQL server not MS SQL Server . If you want to connect to MS SQL you need to use an ODBC or JDBC FDW with an MS SQL ODBC or JDBC driver or to use a dedicated MS SQL FDW . See : http : wiki.postgresql.org wiki Foreign data wrappers" ] }
[ "yes-answer-long", "yes-answer-short" ]
database-table
UNK_RELATION
attach-api@virtual-machine@110
attach-api -- the attach-api is a sun microsystems extension that provides a mechanism to attach to a javatm @placeholder .
{ "confidence": [ 55.01678466796875, 54.73299026489258, 47.55367660522461, 46.89847183227539, 46.6972770690918, 44.80267333984375, 41.19923400878906, 40.68914031982422, 37.711181640625, 37.711181640625, 35.408756256103516, 33.8044319152832, 33.8044319152832, 31.376506805419922, 28.046123504638672, 22.46036148071289, 21.506629943847656, 19.66672134399414, 17.720874786376953, 17.720874786376953, 17.720874786376953, 17.720874786376953, 17.720874786376953, 17.720874786376953, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 14.117436408996582, 12.21594524383545, 12.21594524383545, 12.21594524383545, 12.21594524383545, 12.21594524383545 ], "content": [ "I have a native JVMTI agent that I attach with the Java Attach API .", "For this reason I am using the attach API .", "I am trying to attach a Java agent to a running Java instance using the attach API .", "While using attach API in Eclipse error is thrown in console .", "The only mention I found was here http : docs.oracle.com javase 8 docs jdk api attach spec com sun tools attach spi AttachProvider.html where it refers to the DOORS interprocess communication mechanism developed some time ago by Sun .", "My current problem is that the attach API cannot load a DLL I have in a separate folder .", "So how does the interprocess communication for the Java Attach API work on each of the mainstream operating systems", "I am trying to find out the interprocess communication mechanism used by the Java Attach API on the main operating systems but I can t seem to find much reference to the underlying mechanism .", "In order to use attach API I went to installed JRE in eclipse and then using edit option included the tools.jar in the external jars option in current JRE .", "@SanyamGoel try looking at this stackoverflow.com questions 5565356 http : stackoverflow.com questions 5565356 java-attach-api-changing-java-library-path-dynamically", "Is it so that we cannot attach a Java agent to an already running process .", "Most of the articles describe the Java Attach API and how shared-libraries DLLs are loaded but stop short of stating how communication between say jvisualvm and a local JVM process actually works .", "Here http : www.oracle.com technetwork java javase jrereadme-182762.html there is a mention that tools.jar and libattach.so on Unix systems or attach.dll on Windows are responsible to support the Attach API but I couldn t find much details of how they work internally .", "Here requirement is to attach a Java agent to a already running VM instance like JMonitor and other analysis tools does .", "But it throws the following error when i try to execute a simple program such as .. . .. . java.lang.UnsatisfiedLinkError : no attach in java.library.path com.sun.tools.attach.AttachNotSupportedException : no providers installed at com.sun.tools.attach.VirtualMachine.attach VirtualMachine.java : 190 at dynamicLoadingTest.VMAttach.main VMAttach.java : 17 .. . .. . This is the simple program executed .", "Does it use some other kernel mechanism", "Well I want to know the actual underlying OS-level mechanism .", "Instead you can use the VMInit event : .. . .. . This provides you access to the JNI and thus lets you execute java code .", "I am doing bytecode-manipulation in java but it is being done on an external running JAR file .", "I have proviously had problems with file location but I fixed those and so I know it can see the file it just can t load it .", "My stack-trace is as follows : .. . .. . And here is my source code :", "You could examine the DLL s dependencies with Dependeny Walker : dependencywalker.com depends22 x64.zip http : www.dependencywalker.com depends22 x64.zip", "It turns out my problem was that I didn t add my DLL to the java.library.path .", "Problem solved .", "But I doubt this is used on Windows or Mac .", "That is Windows Mac OSX and Linux .", "I believe you re looking for JPDA http : docs.oracle.com javase 7 docs technotes guides jpda .", "For instance on linux does it used Unix Sockets", "What about windows", "@ElliottFrisch thanks for the nudge in the right direction I believe I found my answer docs.oracle.com javase 8 docs technotes guides jpda http : docs.oracle.com javase 8 docs technotes guides jpda conninv.html", "Seems this is implemented on top of the Java Platform Debugger Architecture JPDA http : docs.oracle.com javase 8 docs technotes guides jpda as Elliott Frisch indicated .", "On Windows OS a Shared Memory transport is used .", "On Linux based systems a Socket transport is used .", "More details can be found here http : docs.oracle.com javase 8 docs technotes guides jpda conninv.html .", "The agent basically just runs Agent OnAttach and then exists .", "I would like to pass information from the agent to the VM that attached the agent .", "Even just writing to stdout of the VM that attached the agent would be fine .", "I m aware that I could use out of band means like sockets or named-pipes but I m looking for something built-in .", "Do you really want to communicate with the JVM or with the application running inside", "If you want to talk to your application Agent Onload would be to early because your app has not yet been loaded .", "You could use this for example to set a system property that can later be read by your classes .", "If you want to communicate with any particular class this event might still be to early and you might wait for the respective ClassPrepare event and check when your class becomes available : .. . .. . If you want to write to stdout you can of course use the JNI to call System.println.. .", "I want to communicate with the agent .", "The agent collects a bunch of data iterates over several objects looking for specific ones .", "The attaching VM not the one where the agent runs needs this information .", "To my best knowledge you cannot directly communicate with the agent from your VM especially if it s a different process .", "I think the easiest thing would be just to create a network socket in your agent and connect to this from your other VM .", "Then you are free to exchange whatever information you like", "That s what I assumed thanks .", "import java.io.IOException .. . .. . The process id mentioned 6832 is of a Java application running on the system .. . .. . On changing the installed jre to jdk following error is produced", "Seems you need to add library again", "yeah this problem is also originating on my system also .", "@sansix i have done it again but the the problem remains", "@sanix i have checked the java library path it contains the path to jdk library where the tools.jar is located", "Actually This problem orignates when you have diffrent jdks in your system and all are included on the class path .", "For me the solution was to put attach.dll from the JDK same version as your JRE into the JRE s bin directory .", "Thanks @Evgeni for the suggestion I will also try it : 0", "I tried the same with JDK1.7 and it is working fine .", "With JDK1.6 the problem remains .", "The problem I am getting is when I check a process id of an already running Java process in Windows Task Manager and hard code it into the program attaching the java agent .", "Nothing happens .", "I went through the dynamic agent loading tutorial http : dhruba.name 2010 02 07 creation-dynamic-loading-and-instrumentation-with-javaagents it works fine but the only problem I see is it detects the VM instance and dynamically attaches the Java agent to it .", "This instance none other than the one in which the current program for doing so is being launched .", "How to proceed kindly provide some direction ." ] }
{ "confidence": [ 62.095054626464844, 47.321746826171875, 46.756980895996094, 46.756980895996094, 46.756980895996094, 44.061668395996094, 39.28367614746094 ], "content": [ "Question : I am trying to find out the interprocess communication mechanism used by the Java Attach API on the main operating systems but I can t seem to find much reference to the underlying mechanism . The only mention I found was here http : docs.oracle.com javase 8 docs jdk api attach spec com sun tools attach spi AttachProvider.html where it refers to the DOORS interprocess communication mechanism developed some time ago by Sun . But I doubt this is used on Windows or Mac . Most of the articles describe the Java Attach API and how shared-libraries DLLs are loaded but stop short of stating how communication between say jvisualvm and a local JVM process actually works . Here http : www.oracle.com technetwork java javase jrereadme-182762.html there is a mention that tools.jar and libattach.so on Unix systems or attach.dll on Windows are responsible to support the Attach API but I couldn t find much details of how they work internally . So how does the interprocess communication for the Java Attach API work on each of the mainstream operating systems That is Windows Mac OSX and Linux . Comment : I believe you re looking for JPDA http : docs.oracle.com javase 7 docs technotes guides jpda . Comment : Well I want to know the actual underlying OS-level mechanism . For instance on linux does it used Unix Sockets Does it use some other kernel mechanism What about windows Comment : @ElliottFrisch thanks for the nudge in the right direction I believe I found my answer docs.oracle.com javase 8 docs technotes guides jpda http : docs.oracle.com javase 8 docs technotes guides jpda conninv.html .. . Answer : Seems this is implemented on top of the Java Platform Debugger Architecture JPDA http : docs.oracle.com javase 8 docs technotes guides jpda as Elliott Frisch indicated . On Windows OS a Shared Memory transport is used . On Linux based systems a Socket transport is used . More details can be found here http : docs.oracle.com javase 8 docs technotes guides jpda conninv.html .", "Question : I am doing bytecode-manipulation in java but it is being done on an external running JAR file . For this reason I am using the attach API . My current problem is that the attach API cannot load a DLL I have in a separate folder . I have proviously had problems with file location but I fixed those and so I know it can see the file it just can t load it . My stack-trace is as follows : .. . .. . And here is my source code : Comment : You could examine the DLL s dependencies with Dependeny Walker : dependencywalker.com depends22 x64.zip http : www.dependencywalker.com depends22 x64.zip .. . Answer : It turns out my problem was that I didn t add my DLL to the java.library.path . Problem solved .", "Question : While using attach API in Eclipse error is thrown in console . In order to use attach API I went to installed JRE in eclipse and then using edit option included the tools.jar in the external jars option in current JRE . But it throws the following error when i try to execute a simple program such as .. . .. . java.lang.UnsatisfiedLinkError : no attach in java.library.path com.sun.tools.attach.AttachNotSupportedException : no providers installed at com.sun.tools.attach.VirtualMachine.attach VirtualMachine.java : 190 at dynamicLoadingTest.VMAttach.main VMAttach.java : 17 .. . .. . This is the simple program executed . import java.io.IOException .. . .. . The process id mentioned 6832 is of a Java application running on the system .. . .. . On changing the installed jre to jdk following error is produced Comment : Seems you need to add library again Comment : yeah this problem is also originating on my system also . Comment : @sansix i have done it again but the the problem remains Comment : @SanyamGoel try looking at this stackoverflow.com questions 5565356 http : stackoverflow.com questions 5565356 java-attach-api-changing-java-library-path-dynamically Comment : @sanix i have checked the java library path it contains the path to jdk library where the tools.jar is located .. . Answer : Actually This problem orignates when you have diffrent jdks in your system and all are included on the class path .", "Question : While using attach API in Eclipse error is thrown in console . In order to use attach API I went to installed JRE in eclipse and then using edit option included the tools.jar in the external jars option in current JRE . But it throws the following error when i try to execute a simple program such as .. . .. . java.lang.UnsatisfiedLinkError : no attach in java.library.path com.sun.tools.attach.AttachNotSupportedException : no providers installed at com.sun.tools.attach.VirtualMachine.attach VirtualMachine.java : 190 at dynamicLoadingTest.VMAttach.main VMAttach.java : 17 .. . .. . This is the simple program executed . import java.io.IOException .. . .. . The process id mentioned 6832 is of a Java application running on the system .. . .. . On changing the installed jre to jdk following error is produced Comment : Seems you need to add library again Comment : yeah this problem is also originating on my system also . Comment : @sansix i have done it again but the the problem remains Comment : @SanyamGoel try looking at this stackoverflow.com questions 5565356 http : stackoverflow.com questions 5565356 java-attach-api-changing-java-library-path-dynamically Comment : @sanix i have checked the java library path it contains the path to jdk library where the tools.jar is located .. . Answer : For me the solution was to put attach.dll from the JDK same version as your JRE into the JRE s bin directory . Comment : Thanks @Evgeni for the suggestion I will also try it : 0", "Question : While using attach API in Eclipse error is thrown in console . In order to use attach API I went to installed JRE in eclipse and then using edit option included the tools.jar in the external jars option in current JRE . But it throws the following error when i try to execute a simple program such as .. . .. . java.lang.UnsatisfiedLinkError : no attach in java.library.path com.sun.tools.attach.AttachNotSupportedException : no providers installed at com.sun.tools.attach.VirtualMachine.attach VirtualMachine.java : 190 at dynamicLoadingTest.VMAttach.main VMAttach.java : 17 .. . .. . This is the simple program executed . import java.io.IOException .. . .. . The process id mentioned 6832 is of a Java application running on the system .. . .. . On changing the installed jre to jdk following error is produced Comment : Seems you need to add library again Comment : yeah this problem is also originating on my system also . Comment : @sansix i have done it again but the the problem remains Comment : @SanyamGoel try looking at this stackoverflow.com questions 5565356 http : stackoverflow.com questions 5565356 java-attach-api-changing-java-library-path-dynamically Comment : @sanix i have checked the java library path it contains the path to jdk library where the tools.jar is located .. . Answer : I tried the same with JDK1.7 and it is working fine . With JDK1.6 the problem remains .", "Question : null .. . Answer : I am trying to attach a Java agent to a running Java instance using the attach API . The problem I am getting is when I check a process id of an already running Java process in Windows Task Manager and hard code it into the program attaching the java agent . Nothing happens . Is it so that we cannot attach a Java agent to an already running process . I went through the dynamic agent loading tutorial http : dhruba.name 2010 02 07 creation-dynamic-loading-and-instrumentation-with-javaagents it works fine but the only problem I see is it detects the VM instance and dynamically attaches the Java agent to it . This instance none other than the one in which the current program for doing so is being launched . Here requirement is to attach a Java agent to a already running VM instance like JMonitor and other analysis tools does . How to proceed kindly provide some direction .", "Question : I have a native JVMTI agent that I attach with the Java Attach API . The agent basically just runs Agent OnAttach and then exists . I would like to pass information from the agent to the VM that attached the agent . Even just writing to stdout of the VM that attached the agent would be fine . I m aware that I could use out of band means like sockets or named-pipes but I m looking for something built-in . .. . Answer : Do you really want to communicate with the JVM or with the application running inside If you want to talk to your application Agent Onload would be to early because your app has not yet been loaded . Instead you can use the VMInit event : .. . .. . This provides you access to the JNI and thus lets you execute java code . You could use this for example to set a system property that can later be read by your classes . If you want to communicate with any particular class this event might still be to early and you might wait for the respective ClassPrepare event and check when your class becomes available : .. . .. . If you want to write to stdout you can of course use the JNI to call System.println.. . Comment : I want to communicate with the agent . The agent collects a bunch of data iterates over several objects looking for specific ones . The attaching VM not the one where the agent runs needs this information . Comment : To my best knowledge you cannot directly communicate with the agent from your VM especially if it s a different process . I think the easiest thing would be just to create a network socket in your agent and connect to this from your other VM . Then you are free to exchange whatever information you like Comment : That s what I assumed thanks ." ] }
[ "yes-answer-long", "yes-answer-short" ]
virtual-machine
UNK_RELATION
mvcrazortopdf -- used create pdf documents within an asp @placeholder mvc project by generating your views as normal then returning a pdfactionresult.https : github.com andyhutch77 mvcrazortopdf .
{ "confidence": [ 68.0821762084961, 59.677188873291016, 57.099021911621094, 56.373321533203125, 54.17247009277344, 53.48091506958008, 52.5645751953125, 50.98333740234375, 49.81501388549805, 44.63926315307617, 44.39860916137695, 43.147972106933594, 42.79423522949219, 42.62346267700195, 40.738285064697266, 40.413108825683594, 39.48764419555664, 39.48764419555664, 38.80210494995117, 34.84605407714844, 33.3525390625, 33.058284759521484, 33.058284759521484, 30.040752410888672, 29.410568237304688, 29.20136260986328, 29.144977569580078, 28.8338623046875, 28.159927368164062, 28.159927368164062, 26.928003311157227, 26.276199340820312, 24.982479095458984, 22.892566680908203, 22.535831451416016, 21.777790069580078, 20.415712356567383, 20.047176361083984, 19.808698654174805, 19.790267944335938, 19.790267944335938, 19.396236419677734, 18.943071365356445, 18.943071365356445, 18.943071365356445, 18.887779235839844, 18.790498733520508, 18.49108123779297, 17.801898956298828, 17.692432403564453, 17.692432403564453, 17.103479385375977, 17.103479385375977, 16.70348358154297, 16.703475952148438, 16.702777862548828, 16.516124725341797, 16.32122230529785, 16.19350814819336, 16.19350814819336, 16.19350814819336, 16.19350814819336, 15.706789016723633, 15.097034454345703, 15.097034454345703, 15.097034454345703, 15.052337646484375, 14.911480903625488, 14.797717094421387, 14.648977279663086, 14.624526977539062, 14.624526977539062, 14.623174667358398, 14.435201644897461, 14.35391616821289, 14.34133529663086, 14.335341453552246, 14.264430046081543, 14.264430046081543, 14.264430046081543, 14.264430046081543, 14.264430046081543, 14.264430046081543, 14.264430046081543, 14.221288681030273, 14.03403091430664, 13.846395492553711, 13.802239418029785, 13.497553825378418, 13.37388801574707, 13.37388801574707 ], "content": [ "Has anyone worked on styling the pdf with MvcRazorToPdf https : github.com andyhutch77 MvcRazorToPdf librabry", "However there s an open issue https : github.com andyhutch77 MvcRazorToPdf issues 21 regarding this that includes a fix https : github.com andyhutch77 MvcRazorToPdf issues 21 issuecomment-129858670 so if you re willing to compile from source https : github.com andyhutch77 MvcRazorToPdf you can apply that change and you should be all set .", "I have below view which generates PDF invoice using MvcRazorToPdf https : github.com andyhutch77 MvcRazorToPdf library .. . .. . Above code generates below view in pdf .. . .. .", "I am trying to use this https : github.com andyhutch77 MvcRazorToPdf package in a project of mine and would like to display the page number .", "I copied the snippet above from the example view at : https : github.com andyhutch77 MvcRazorToPdf blob master MvcRazorToPdfExample Views Pdf Index.cshtml", "I m Generating my PDF file using MvcRazorToPdf and ITextSharp .", "According to this link https : github.com andyhutch77 MvcRazorToPdf issues 15 you can achieve what you want by using this code :", "If you look at the source https : github.com andyhutch77 MvcRazorToPdf blob master MvcRazorToPdf MvcRazorToPdf.cs you ll see this : .. . .. . If you re dead-set on using the NuGet version then you re stuck with this implementation and you re not going to be able to register a custom font .", "I am using this library https : github.com andyhutch77 MvcRazorToPdf .. . .. . Is there any way to get some of my content to the bottom of the page", "I have followed the below link : .. . https : github.com andyhutch77 MvcRazorToPdf .. . .. . View .. . .. . I can see that the div is occupying the width and height but it is not showing the image inside of it .", "or do floats absolute positioning etc not work with MvcRazorToPdf", "I am trying to check out MvcRazorToPdf .", "Does anybody know if it is possible to save the PDF with MvcRazorToPdf as a MemoryStream or Byte", "I use itextsharp mvcrazortopdf to generate pdfs in azure websites .", "I have that installed - it gets downloaded as part of the MvcRazorToPdf package", "I m using MvcRazorToPdf in my Asp.net MVC5 project to create pdfs from model .", "Does anyone know how this can be done or why it won t work with MvcRazorToPdf", "iTextSharp seems to support it AFAIK which is what MvcRazorToPdf uses internally .", "MVCRazorToPdf https : www.nuget.org packages MvcRazorToPdf is a very very simple wrapper around iTextSharp s XMLWorker and uses the even simpler XMLWorkerHelper with all defaults to do its work .", "I m using MvcRazorToPdf in a Azure website and create my PDF s and output them in the browser .", "I am trying to add a custom font to my pdf output using the nuget-package MVCRazorToPdf but I am having trouble with how to do this as the documentation for iTextSharp isn t great and all seems to be outdated .", "It s not very neat but I doubt there are other ways since MvcRazorToPdf does not support the margin and position styles .", "I tried to use MvcRazorToPdf i can able to generate mail merge letters .", "In MvcRazorToPdf you can only use the full local path to the image file like this : .. . .. . Base64 images are not supported as far as I know .", "This is my code : .. . .. . I m testing using this official tool : .. . http : demo.itextsupport.com xmlworker Click html button under font-size and paste code .. . .. . I m also testing using iTextSharp + MvcRazorToPdf two C libraries .", "I had this problem too and in the end I used TuesPechkin library for some things but I still use MvcRazorToPdf for other things like print pages with dynamic-content .", "When I attempt to build the project I get this error message : .. . .. . Error 5 Assembly MvcRazorToPdf Version 1.0.0.0 Culture neutral PublicKeyToken null uses itextsharp Version 5.5.3.0 Culture neutral PublicKeyToken 8354ae6d2174ddca which has a higher version than referenced assembly itextsharp Version 5.5.0.0 Culture neutral PublicKeyToken 8354ae6d2174ddca d : PROJECTS Crowdiet packages MvcRazorToPdf.1.0.2 lib 40 MvcRazorToPdf.dll Crowdiet .. . .. . In order to solve it I installed the latest version of iTextSharp from Nuget .", "Can i make a header and footer on every pages created using MVCRazorToPDF Library On PDFLayout.cshtml file i am making a section for the body of PDF as .. . .. . And in controller i am calling the action like .. . .. . And my View.cshtml is like a normla html page", "I have a table that shows and hides certain rows based on some data so I was hoping to do the row style with CSS a la : .. . .. . However it seems MvcRazorToPdf can t apply these styles correctly to a table .", "However when trying to execute MvcRazorToPdf code I get the following error message : .. . .. . Could not load file or assembly itextsharp.xmlworker Version 5.5.3.0 Culture neutral PublicKeyToken 8354ae6d2174ddca or one of its dependencies .", "Here is my code in the controller in generating the PDF file .", "the code above is basicly generating a pdf from a razor view and I would like page number to be displayed on that pdf", "What I have done is used restsharp to make request at URL where I get PDF then what you have is in lines of this is partial code only so you can get idea .. . .. . Otherwise you can use my answer from here http : stackoverflow.com questions 26121823 mvcrazortopdf-save-pdf-to-location-or-blob-and-then-download 29387409 29387409 where I discussed directly returning a file .", "I had issues trying to use itextsharp when generating pdfs for my mvc application .", "Working fine if showing the image in a normal view but the pdf doesn t show the image .", "Invoice PDF http : i.stack.imgur.com 6CV22.png .. . .. . But how much ever I style the above div within td for invoice I am not able to move the Invoice text to the right side of the pdf .", "How is it possible that the PDF will be in landscape form", "Yes but you should be able to inspect it from the view that your rendering before its converted to the pdf .", "I have a webjob generating those files and saving them automatically on blob .", "I need to convert data from database to pdf .", "Are you saying its correct in the view but not in the pdf", "I am working on PDF s and basically the library I mentioned converts razor view to PDF and hence I cannot inspect this on browser .", "When I clicked the link it should show the data in PDF Form .", "I am passing the check to display the data in my PDF .", "There is a separate view with separate layout for the PDF and no extra CSS added. .", "Unfortunately the PDF specification doesn t allow you to change this printer setting in the PDF viewer .", "The current code I have for creating the pdf is : .. . .. . Where writer is a PdfWriter and document is a Document .. . .. . All the examples of using the FontFactory show that you need to use the XmlWorker but I don t have access to that so I was wondering if there was any way to change the documents font using the writer or document", "But now I want to add a image on PDF as well.How to add a image on PDF .", "Or do you want to modify an existing PDF and add page numbers to it http : stackoverflow.com a 9845722 231316", "That s caused by a printer setting in the PDF viewer you are using .", "I would like to generate a PDF file for my reporting module .", "Below is my code : .. . .. . This above code gives the PDF file for download.But I want to Save it Automatically to specific path or Blob before downloading it .", "The mvctrazortopdf package converts the razor view to a pdf using the above function it only exposes the writer and the document and does all the worker stuff behind the scenes .", "If you want to convert HTML to PDF without any issue just use Pechkin https : github.com gmanny Pechkin here is the Fluent API : .. . .. . In less code you can get better results .", "checkout this link for gudiance github.com webgio Rotativa https : github.com webgio Rotativa if you need any help just let me know", "This link should help address your azure query SO http : stackoverflow.com questions 28940062 i-am-using-rotativa-tool-to-display-pdf-it-works-fine-on-localhost-but-does-no .", "You have 2 options : 1 change the printer setting manually in your PDF viewer or 2 2-up your PDF 2-up is a special case of N-up N-upping is a process in which you copy several pages to a single page : 2-up 4-up 8-up 16-up and so on .", "Brilliant that s exactly what I needed - I had to edit the source anyway as I needed to merge it with an existing pdf I just couldn t figure out how to change that xmlworkerhelper to use the new fontfactory", "I am trying to get a footer in a generated pdf file .", "Unfortunately pdf does not respond to position : absolute bottom : 0px or margin-bottom .", "I have this following codes before and pdf-generation went well .", "Then I ve encounter this error when I tried to generate PDF .", "I really need your help .", "Is there any reason your using a table for non-tabular data", "Not sure how your getting the layouts in the images you have shown .", "You must have other css affecting your elements .", "I am not including the rest of the View which renders fine but in the pdf the image is missing .", "Your text-alignment is being respected its just that by default you table and its cells will be collapsed to fit the content easy to check by using your browser tools to inspect the elements .", "This should save into your program files in your standard drive .", "Is your issue resolved", "I am confused in your question you wrote that you do not have access to xmlworker", "You will need to use your browser tools to inspect the styles being generated for each element", "I used Rotativa to produce my pdfs it s very easy to setup and implement .", "So basically I have not been changing my method to output PDF .", "Show us the HTML you re trying to add not the script that creates the HTML and show us how you re converting the HTML to PDF using iTextSharp .", "When you ve got these three files add these to your existing rotativa folder inside your solution .", "Give your table or its cells a width for example .. . .. . However using table elements is not good practice refer Why not use tables for layout in HTML", "nested lists in div tags or table cell cannot be rendered correctly - they become one single line .", "here is a example : .. . .. . http : demo.itextsupport.com xmlworker in the demo page it is rendered as : .. . .. . test1 test1.1 .. . test2 .. . .. . Any help is appreciated", "Nested lists are not supported in that context .", "This is a won t fix .", "Hello I am also facing the same problem .", "Did you get something to accomplish this", "Thanks .", "My code is like this : .. . .. . When PDf is generated it will display for example 2 landscape pages that is a half of letter size sheet that you will see in this line of code : .. . .. . But when i print it the first page is printed in a whole sheet and the second page also printed in a whole sheet .", "Your use of using structures and explicit close calls most likely is wrong as the exception is an ObjectDisposedException most probably in your PdfActionResult implementation .", "This download will save a setup program to your computer which contains the 3 files .", "For instance : we can t see if you re using the old HTMLWorker deprecated unsupported not working no longer used or iTextSharp s XML Worker that should work if your HTML is OK .", "I can t help you with the MVC part but the last line of code in PdfActionResult.cs has the byte array and MemoryStream that you re looking for .", "There s 2 things that you can do when the download has finished in order to get these new files into your solution .", "Right click on your download and use the extraction tool to extract and save the 3 updated files ." ] }
{ "confidence": [ 91.14325714111328, 80.56600952148438, 72.00140380859375, 70.48600006103516, 69.68822479248047, 64.9990463256836, 64.6211929321289, 63.62453842163086, 61.68474197387695, 59.67259979248047, 52.486331939697266, 52.26374816894531, 51.71392822265625, 49.31446075439453, 45.73976516723633, 44.48788833618164, 43.1649284362793, 36.43479919433594, 23.774272918701172 ], "content": [ "Question : I m using MvcRazorToPdf in my Asp.net MVC5 project to create pdfs from model . That works fine but I want to include an image from a base64 string because I don t want to save the generated image . .. . Working fine if showing the image in a normal view but the pdf doesn t show the image . Thank you for help or alternatives . .. . Answer : In MvcRazorToPdf you can only use the full local path to the image file like this : .. . .. . Base64 images are not supported as far as I know . I copied the snippet above from the example view at : https : github.com andyhutch77 MvcRazorToPdf blob master MvcRazorToPdfExample Views Pdf Index.cshtml", "Question : I am trying to add a custom font to my pdf output using the nuget-package MVCRazorToPdf but I am having trouble with how to do this as the documentation for iTextSharp isn t great and all seems to be outdated . The current code I have for creating the pdf is : .. . .. . Where writer is a PdfWriter and document is a Document .. . .. . All the examples of using the FontFactory show that you need to use the XmlWorker but I don t have access to that so I was wondering if there was any way to change the documents font using the writer or document I ve seen that there is the document.HtmlStyleClass property but can t find anything about how to use this anywhere . Any help with this would be greatly appreciated Comment : Most of the itextpdf examples are for the Java version but a developer shouldn t have any problems porting Java to C . The itext specific things are identical between Java and C . Comment : Xmlworker is also available as a NuGet package nuget.org packages itextsharp.xmlworker https : www.nuget.org packages itextsharp.xmlworker Comment : I have that installed - it gets downloaded as part of the MvcRazorToPdf package Comment : I am confused in your question you wrote that you do not have access to xmlworker Comment : The mvctrazortopdf package converts the razor view to a pdf using the above function it only exposes the writer and the document and does all the worker stuff behind the scenes . .. . Answer : MVCRazorToPdf https : www.nuget.org packages MvcRazorToPdf is a very very simple wrapper around iTextSharp s XMLWorker and uses the even simpler XMLWorkerHelper with all defaults to do its work . If you look at the source https : github.com andyhutch77 MvcRazorToPdf blob master MvcRazorToPdf MvcRazorToPdf.cs you ll see this : .. . .. . If you re dead-set on using the NuGet version then you re stuck with this implementation and you re not going to be able to register a custom font . However there s an open issue https : github.com andyhutch77 MvcRazorToPdf issues 21 regarding this that includes a fix https : github.com andyhutch77 MvcRazorToPdf issues 21 issuecomment-129858670 so if you re willing to compile from source https : github.com andyhutch77 MvcRazorToPdf you can apply that change and you should be all set . If you want to go one step further I d recommend reading this great post http : stackoverflow.com q 25164257 231316 that shows how simple parsing HTML with iTextSharp is as well Bruno s post here http : stackoverflow.com a 26220259 231316 that shows how to register fonts . EDIT .. . .. . As per the post in the includes a fix link just in case the link breaks in future change the above using-statement to : .. . .. . And then the font factory as registered in the question above will work when using style font-family : VegurRegular Comment : Brilliant that s exactly what I needed - I had to edit the source anyway as I needed to merge it with an existing pdf I just couldn t figure out how to change that xmlworkerhelper to use the new fontfactory Comment : Thanks for the edit @Pete", "Question : I am trying to use this https : github.com andyhutch77 MvcRazorToPdf package in a project of mine and would like to display the page number . There is a property on the Document object that has the PageNumber but . I have no clue how to access it from the view .. . .. . Current code : Comment : Where would you display this page number On a web page Or do you want to modify an existing PDF and add page numbers to it http : stackoverflow.com a 9845722 231316 Comment : the code above is basicly generating a pdf from a razor view and I would like page number to be displayed on that pdf .. . Answer : Ok if someone has the same problem here is my solution : .. . .. . StandardPrintHelper : Comment : For those without PrintManager return new PdfActionResult viewName viewModel writer document writer.PageEvent new StandardPrintHelper document.NewPage Will do the trick", "Question : I have below view which generates PDF invoice using MvcRazorToPdf https : github.com andyhutch77 MvcRazorToPdf library .. . .. . Above code generates below view in pdf .. . .. . Invoice PDF http : i.stack.imgur.com 6CV22.png .. . .. . But how much ever I style the above div within td for invoice I am not able to move the Invoice text to the right side of the pdf . I ve tried adding link-to bootstrap.css which doesn t work either . Anyone have any solution for this Has anyone worked on styling the pdf with MvcRazorToPdf https : github.com andyhutch77 MvcRazorToPdf librabry Comment : Give the td elements a width or the table width : 100 Comment : @StephenMuecke Come on man. . So simple was the answer. . : Thank you so much brother. . : Please add it as answer and I shall accept it. . : Comment : Is there any reason your using a table for non-tabular data or do floats absolute positioning etc not work with MvcRazorToPdf Comment : No there isn t @StephenMuecke. . Was just trying my luck with all forms of elements possible and ended up with table . . Is it not a good option to have table here Comment : Why not use tables for layout in HTML http : stackoverflow.com questions 83073 why-not-use-tables-for-layout-in-html and Why Tables Are Bad For Layout Compared to Semantic HTML + CSS http : phrogz.net css WhyTablesAreBadForLayout.html . No time just now but I ll add an answer later with a few suggest alternatives .. . Answer : Your text-alignment is being respected its just that by default you table and its cells will be collapsed to fit the content easy to check by using your browser tools to inspect the elements . Give your table or its cells a width for example .. . .. . However using table elements is not good practice refer Why not use tables for layout in HTML http : stackoverflow.com questions 83073 why-not-use-tables-for-layout-in-html and Why Tables Are Bad For Layout Compared to Semantic HTML + CSS http : phrogz.net css WhyTablesAreBadForLayout.html . . Instead you can use floats or relative absolute positioning for example .. . .. . or Comment : Thank you bro but there is slight difference between Table option https : s32.postimg.org v3uh487t1 Table.png you suggested and above 2 using divs . The Second option https : s31.postimg.org gzigsdg7v Second Option.png is quite better compared to First Option https : s31.postimg.org yxkloxj4r First Option.png . But it would have been good if I get to go with Table option type design. . : Also any ideas how we can integrate bootstrap CSS with this If and only if you can help on this. . : Comment : Not sure how your getting the layouts in the images you have shown . You must have other css affecting your elements . See this fiddle https : jsfiddle.net 4agy4v9t for examples of both alternatives I suggested . You will need to use your browser tools to inspect the styles being generated for each element Comment : Oops Sorry if am not clear. . I am working on PDF s and basically the library I mentioned converts razor view to PDF and hence I cannot inspect this on browser . There is a separate view with separate layout for the PDF and no extra CSS added. . Comment : Yes but you should be able to inspect it from the view that your rendering before its converted to the pdf . Are you saying its correct in the view but not in the pdf Comment : Ahh I have just found this CSS conformance list http : demo.itextsupport.com xmlworker itextdoc CSS-conformance-list.htm which indicates floats and positioning are not supported so I guess you are stuck with using a table", "Question : I need to convert data from database to pdf . I am getting the data using the specified ID . When I clicked the link it should show the data in PDF Form . I am passing the check to display the data in my PDF . How is it possible that the PDF will be in landscape form I really need your help . Thank you .. . Answer : According to this link https : github.com andyhutch77 MvcRazorToPdf issues 15 you can achieve what you want by using this code : Comment : Thank you for this one but the error says that there s something to do with the arguments in PdfActionResult", "Question : I have been trying to render an image but with no positive result . Is there anything specific I need to add to make it work . I am not including the rest of the View which renders fine but in the pdf the image is missing . I have followed the below link : .. . https : github.com andyhutch77 MvcRazorToPdf .. . .. . View .. . .. . I can see that the div is occupying the width and height but it is not showing the image inside of it . Comment : Any luck with this .. . Answer : I had the same problem . My solution is this : in the controller try to put in the model the complete image path with Server.MapPath : .. . .. . then use .. . .. . where ImagePage is the .cshtml view I used for the purpose . Remember to set the margins . Then in the view do something like this : .. . .. . So in your case another problem maybe the use of div properties especially the percentage . I had this problem too and in the end I used TuesPechkin library for some things but I still use MvcRazorToPdf for other things like print pages with dynamic-content . Depends on the purpose . Try to remove div properties . I hope this will help you Comment : vola its working like breeze :", "Question : I m using MvcRazorToPdf in a Azure website and create my PDF s and output them in the browser . Now i m creating a new function to directly email the PDF as attachment without output them in the browser . Does anybody know if it is possible to save the PDF with MvcRazorToPdf as a MemoryStream or Byte Comment : I can t help you with the MVC part but the last line of code in PdfActionResult.cs has the byte array and MemoryStream that you re looking for . .. . Answer : I have implemented something like that . So basically I have not been changing my method to output PDF . What I have done is used restsharp to make request at URL where I get PDF then what you have is in lines of this is partial code only so you can get idea .. . .. . Otherwise you can use my answer from here http : stackoverflow.com questions 26121823 mvcrazortopdf-save-pdf-to-location-or-blob-and-then-download 29387409 29387409 where I discussed directly returning a file . Hope this helps", "Question : I am trying to get a footer in a generated pdf file . I am using this library https : github.com andyhutch77 MvcRazorToPdf .. . .. . Is there any way to get some of my content to the bottom of the page Unfortunately pdf does not respond to position : absolute bottom : 0px or margin-bottom . The page shows an unknown amount of records on the page so I cannot do it statically . .. . Answer : I found a way to solve this problem . It s not very neat but I doubt there are other ways since MvcRazorToPdf does not support the margin and position styles . Comment : I would recommend creating a new table below the site content and then giving it valign bottom Comment : @NikiteshKolpe but will the table resize to the rest of the content on the page Comment : Yeah it does i had implemented a complex structure containing 80 tables it worked properly i had to insert br to pull it down a bit Comment : @NikiteshKolpe thanks that s a better solution than my current one then :", "Question : I have been trying to render an image but with no positive result . Is there anything specific I need to add to make it work . I am not including the rest of the View which renders fine but in the pdf the image is missing . I have followed the below link : .. . https : github.com andyhutch77 MvcRazorToPdf .. . .. . View .. . .. . I can see that the div is occupying the width and height but it is not showing the image inside of it . Comment : Any luck with this .. . Answer : If you want to convert HTML to PDF without any issue just use Pechkin https : github.com gmanny Pechkin here is the Fluent API : .. . .. . In less code you can get better results . It also works on IIS8 whothout any issue what else you want : - FYI I am not the committer of Pechkin .", "Question : I m using MvcRazorToPdf in a Azure website and create my PDF s and output them in the browser . Now i m creating a new function to directly email the PDF as attachment without output them in the browser . Does anybody know if it is possible to save the PDF with MvcRazorToPdf as a MemoryStream or Byte Comment : I can t help you with the MVC part but the last line of code in PdfActionResult.cs has the byte array and MemoryStream that you re looking for . .. . Answer : I think you can handle this in ResultFilter I used below code to allow user to download file and prompt for download popup in this way you can grab all your memory stream and store somewhere to send email afterwords . public class ActionDownloadAttribute : ActionFilterAttribute public override void OnResultExecuted ResultExecutedContext filterContext filterContext.HttpContext.Response.AddHeader content-disposition attachment filename + Report.pdf base.OnResultExecuted filterContext", "Question : null .. . Answer : Can i make a header and footer on every pages created using MVCRazorToPDF Library On PDFLayout.cshtml file i am making a section for the body of PDF as .. . .. . And in controller i am calling the action like .. . .. . And my View.cshtml is like a normla html page", "Question : null .. . Answer : I have a table that shows and hides certain rows based on some data so I was hoping to do the row style with CSS a la : .. . .. . However it seems MvcRazorToPdf can t apply these styles correctly to a table . Does anyone know how this can be done or why it won t work with MvcRazorToPdf Comment : Strange . iTextSharp seems to support it AFAIK which is what MvcRazorToPdf uses internally . But I can t comment further . Comment : AFAIK Razor uses an unofficial unsupported unpaid version of iTextSharp hence nobody at iText Software can comment on the problem you re experiencing .", "Question : I m using MvcRazorToPdf in my Asp.net MVC5 project to create pdfs from model . That works fine but I want to include an image from a base64 string because I don t want to save the generated image . .. . Working fine if showing the image in a normal view but the pdf doesn t show the image . Thank you for help or alternatives . .. . Answer : Probably I m answering too late . If your needs for a base64 string based image is to avoid store the image in the filesystem you can write an Action that returns the image file and reference that url in the img tag : .. . .. . And then your razor will look like : .. . .. . Note the use of Request.Url.Scheme Url.Action overload is VERY important because iTextSharp needs the full qualified URL .", "Question : I am trying to check out MvcRazorToPdf . I m installing it from Nuget Manager . When I attempt to build the project I get this error message : .. . .. . Error 5 Assembly MvcRazorToPdf Version 1.0.0.0 Culture neutral PublicKeyToken null uses itextsharp Version 5.5.3.0 Culture neutral PublicKeyToken 8354ae6d2174ddca which has a higher version than referenced assembly itextsharp Version 5.5.0.0 Culture neutral PublicKeyToken 8354ae6d2174ddca d : PROJECTS Crowdiet packages MvcRazorToPdf.1.0.2 lib 40 MvcRazorToPdf.dll Crowdiet .. . .. . In order to solve it I installed the latest version of iTextSharp from Nuget . Version 5.5.7 Now I m building and so it runs . However when trying to execute MvcRazorToPdf code I get the following error message : .. . .. . Could not load file or assembly itextsharp.xmlworker Version 5.5.3.0 Culture neutral PublicKeyToken 8354ae6d2174ddca or one of its dependencies . The located assembly s manifest definition does not match the assembly reference . Exception from HRESULT : 0x80131040 .. . .. . 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 itextsharp.xmlworker Version 5.5.3.0 Culture neutral PublicKeyToken 8354ae6d2174ddca or one of its dependencies . The located assembly s manifest definition does not match the assembly reference . Exception from HRESULT : 0x80131040 .. . .. . Any ideas how to deal with this Thanks . Comment : I had issues trying to use itextsharp when generating pdfs for my mvc application . I used Rotativa to produce my pdfs it s very easy to setup and implement . Have you tried it Comment : @Scanner Thank you . I didn t check it out . I ll take a look at it right now . Comment : checkout this link for gudiance github.com webgio Rotativa https : github.com webgio Rotativa if you need any help just let me know Comment : @Scanner Man that worked beautifully . However at some point my firewall asked me for a permission for some wkhtml...something . Will it not be a problem to put it on Azure website Comment : Knew it would buddy . Are you using this for work purposes .. . Answer : DSB I ve written this as theres too much to place in a comment . This link should help address your azure query SO http : stackoverflow.com questions 28940062 i-am-using-rotativa-tool-to-display-pdf-it-works-fine-on-localhost-but-does-no . In regards to what I had said about updating your wkhtml files you need to click this link wkhtml download http : download.gna.org wkhtmltopdf 0.12 0.12.2.4 wkhtmltox-0.12.2.4 msvc2013-win64.exe this is a link for the site wkhtml page http : wkhtmltopdf.org downloads.html as this will provide you with the 3 updated files you need for rotativa . There s 2 things that you can do when the download has finished in order to get these new files into your solution . This download will save a setup program to your computer which contains the 3 files . When you are saving the files make a note of where you are saving them to . 1 . Download 7 zip found at 7zip http : www.7-zip.org download.html or any file extracting tool if you don t already have one . Right click on your download and use the extraction tool to extract and save the 3 updated files . 2 . If you can t download or don t have an extraction tool then run the setup of the downloaded file . This should save into your program files in your standard drive . Navigate through program files to the wkhtmltopdf folder click on it then click the bin folder and inside this you ll find the 3 updated wkhtml files . When you ve got these three files add these to your existing rotativa folder inside your solution . Do a rebuild of the soultion if necessary just to update it . Hope this helps Comment : thank you so much friend . Comment : you re welcome dsb . Is your issue resolved", "Question : null .. . Answer : I use itextsharp mvcrazortopdf to generate pdfs in azure websites . nested lists in div tags or table cell cannot be rendered correctly - they become one single line . here is a example : .. . .. . http : demo.itextsupport.com xmlworker in the demo page it is rendered as : .. . .. . test1 test1.1 .. . test2 .. . .. . Any help is appreciated Comment : Nested lists are not supported in that context . This is a won t fix . Comment : Hello I am also facing the same problem . Did you get something to accomplish this Thanks .", "Question : null .. . Answer : I tried to use MvcRazorToPdf i can able to generate mail merge letters . My aim is after downloading file i want to return json message from controller . how to do I appreciate your help . thanks", "Question : null .. . Answer : I m Generating my PDF file using MvcRazorToPdf and ITextSharp . My code is like this : .. . .. . When PDf is generated it will display for example 2 landscape pages that is a half of letter size sheet that you will see in this line of code : .. . .. . But when i print it the first page is printed in a whole sheet and the second page also printed in a whole sheet . How can i print this 2 landscape pages in one sheet Thanks in advance . Comment : That s caused by a printer setting in the PDF viewer you are using . Unfortunately the PDF specification doesn t allow you to change this printer setting in the PDF viewer . You have 2 options : 1 change the printer setting manually in your PDF viewer or 2 2-up your PDF 2-up is a special case of N-up N-upping is a process in which you copy several pages to a single page : 2-up 4-up 8-up 16-up and so on . Comment : Thanks @Bruno Lowagie but how to use N-up Comment : By using NUpTool http : itextpdf.com examples iia.php id 115 as an example . Comment : Wow you wrote the code of NUpTool I m sorry but can you give me an example on how to implement NUpTool.cs on my code Comment : All the examples of the iText in Action book were ported to C . The NUpTool is part of chapter 6 hence you can find the iTextSharp version of that example here : tinyurl.com itextsharpIIA2C06 http : tinyurl.com itextsharpIIA2C06", "Question : XmlWorker does not recognize border-bottom on table cell . This is my code : .. . .. . I m testing using this official tool : .. . http : demo.itextsupport.com xmlworker Click html button under font-size and paste code .. . .. . I m also testing using iTextSharp + MvcRazorToPdf two C libraries . Question : .. . How can I get the border-bottom to work .. . .. . Edit : .. . Acording to this compatibility summary : http : demo.itextsupport.com xmlworker itextdoc CSS-conformance-list.htm the css property border-bottom should work fine with the html element td cell .. . Answer : XMLWorker does not support for shorthand CSS properties in case side specific border styles . The global property border should be supported . It looks like a typo in the conformance list . Please use the property full names instead : td style .. . border-bottom-width : 1px border-bottom-style : solid border-bottom-color : gray .. . Comment : We will add support for this shorthands in the next iText release Comment : its nice to see someone from iText answering . Thanks . Comment : @EugeneMarkovski worked perfectly as you stated .", "Question : null .. . Answer : I would like to generate a PDF file for my reporting module . Here is my code in the controller in generating the PDF file . I have include this following in my controller : .. . .. . Now when I try to run this code I got this error displayed in the browser . enter image description here http : i.stack.imgur.com lItFZ.jpg .. . .. . Please advice . Thanks in advance . Comment : Your use of using structures and explicit close calls most likely is wrong as the exception is an ObjectDisposedException most probably in your PdfActionResult implementation . Comment : Any solution to this issue I am also struggling with same Comment : PDFHelpers MvcRazorToPdf.cs : 47 Reason for error Causing this error and cod is on this pastebin pastebin.com JqJ4hfpW http : pastebin.com JqJ4hfpW @mki can any one help" ] }
[ "yes-answer-long", "yes-answer-short" ]
.net
UNK_RELATION
can@can-bus@39
can -- controller area network can or @placeholder is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other within a vehicle without a host computer.can is a message based protocol designed specifically for automotive applications but now also used in other areas such as industrial automation and medical equipment .
{ "confidence": [ 45.48877716064453, 42.81805419921875, 39.47235870361328, 36.77754211425781, 36.69239807128906, 36.070098876953125, 34.775840759277344, 34.461544036865234, 33.230712890625, 32.419795989990234, 32.36442565917969, 32.246192932128906, 31.79050636291504, 30.929059982299805, 30.701799392700195, 30.658140182495117, 30.642887115478516, 30.254322052001953, 30.081811904907227, 29.845191955566406, 29.75421714782715, 29.668289184570312, 29.25199317932129, 29.25199317932129, 29.066402435302734, 28.88715362548828, 28.842117309570312, 28.816179275512695, 28.722970962524414, 28.66220474243164, 28.619976043701172, 28.470600128173828, 28.456218719482422, 28.38205337524414, 28.335819244384766, 28.303359985351562, 28.254329681396484, 28.189468383789062, 27.984949111938477, 27.565872192382812, 27.410423278808594, 27.403837203979492, 27.291351318359375, 27.242725372314453, 27.242725372314453, 27.077531814575195, 26.879215240478516, 26.84792137145996, 26.804332733154297, 26.742469787597656, 26.55545997619629, 26.285873413085938, 26.23373794555664, 26.21295738220215, 26.145586013793945, 26.145586013793945, 26.036537170410156, 26.00438690185547, 25.906200408935547, 25.660533905029297, 25.626052856445312, 25.577360153198242, 25.558055877685547, 25.55709457397461, 25.505016326904297, 25.469573974609375, 25.353771209716797, 25.323238372802734, 25.222766876220703, 25.175888061523438, 25.094528198242188, 25.012977600097656, 24.91771125793457, 24.881595611572266, 24.833131790161133, 24.79401397705078, 24.769020080566406, 24.756498336791992, 24.73420524597168, 24.67329978942871, 24.618032455444336, 24.618032455444336, 24.38901138305664, 24.33179473876953, 24.326030731201172, 24.308536529541016, 24.247802734375, 24.22153091430664, 24.178848266601562, 24.135269165039062, 24.124496459960938, 24.09699249267578, 24.09699249267578, 24.09699249267578, 24.065383911132812, 24.041851043701172, 24.035884857177734, 24.025772094726562, 23.98202896118164, 23.951854705810547 ], "content": [ "If you want to send real vehicle data you could log the CAN bus of a vehicle and use BUSMATER to replay it .", "This aplication is connected to OBD2 compliant vehicle CAN BUS and read data from it .", "Another way is to use a CAN bus to Android http : www.gwentechembedded.com product gt1026-android-can-bus-usb-adapter dongle specifically designed for this application .", "Very crudely the statement API is designed to be used for reporting and the state and other document APIs are designed for bookmarking .", "Additionally if anyone knows of something that would generate authentic vehicle CAN bus messages or even just a database of real CAN messages that would help .", "With colleague we are working with electric vehicle project and we are able to monitor and control using Arduino and CAN bus shield .", "If your vehicle uses the CAN protocol then you shold be able to issue atma from the elm327 device .", "The vcan devices are designed for testing software that communicates over the bus without requiring an actual physical connection they re not actually supplied by the hypervisor but are a part of SocketCAN .", "This is Kishore .. . .. . I use ELM327 based OBDII to Bluetooth adapter to monitor the CAN traffic in the Passenger Vehicle .", "what are other effects of this scenario on CAN bus as well as others nodes", "Does anyone have an idea about how to implement a residual bus simulation in CAPL under CANoe that handles both CAN and Flexray signals hybrid network based on a pure CAN risidual bus simulation having in mind that CAN is an event based protocol and Flexray a time based one", "At the CAN protocol level all nodes in a CAN network are equal and make a decision about whether to process a message or not .", "Is there a step by step guide about how to use CAN bus with AT90can32 64 128 microcontrollers .", "Bosch CAN http : esd.cs.ucr.edu webres can20.pdf .. . .. . Introduction to the Controller Area Network http : www.ti.com lit an sloa101a sloa101a.pdf", "A CAN controller is a higher-level concept it still needs to examine the message identifier like any other node .", "How a CAN Bus controller decides based on message identifier that this particular message belongs-to it Is it like the receiver already know that if identifier has suppose value 5 then its for me .", "See page 15 of the ELM327 datasheet : .. . .. . CSM0 and CSM1 CAN Silent Monitoring off or on .. . .. . The ELM327 was designed to be comptetely silent shile monitoring a CAN bus .", "And you don t want to try to access the CAN bus without using a CAN controller at all.. .", "Note that processing a message is different to the CAN protocol message check and acknowledgement .", "It sends receives when I send a message with my laptop but doesn t receives the messages from the other microcontrollers .", "The protocol itself is not a standard CAN protocol stack .", "Then you should check your connection speed CS by sending a CAN message on the bus - the message has to be catched by your CAN bus sniffer .", "I am new in CAN J1939 Bus protocol technology to pair with bluetooth .", "CAN bus is a communication protocol like RS485 but more reliable .", "If you march in to an automotive customer with anything other than CAN you ll end up spending all your time defending the decision not to use it .", "Then I have to be able to select a specific message from any of the buses to send it over to the other bus .", "If windows headlights or other devices are controlled with I O and I O is communicating with CAN bus then you might be able to control windows headlight etc .", "From what I understand it s a bus line where multiple devices can broadcast their messages and the priority is determined by the ID of each node .", "The software in the CAN node must decide what message IDs it is interested in based on the network specification which is usually some kind of document or other electronic representation of which messages contain what sorts of information .", "In an example case the CAN bus used for engine control may be able to communicate with the radio CAN bus so that the radio volume gets increased when the engine is revving to higher RPMs for comfort reasons .", "This can alter the Time Triggered Bus Scheduling if one is used it is in my case .", "You ve already chosen the AT90CAN128 whose standout feature compared to other AVR processors is support for the CAN bus .", "Well now that you know where I m lost after all this explain I got a question.. . : .. . .. . Where can I find Purchase CAN standards for vehicle manufacturers or it s not possible due its their private project", "I would always suggest that CAN is the best in automotive communication .", "Hi To specify the CAN bus first determine which CAN bus speed you will use then the CAN bus ID length .", "One way to confirm this would be to look for the Factory Service Manual for your particular vehicle to see how the CAN bus es are setup for your car there are actually quite a few cars that operate on only a single CAN bus in order to cut costs .", "If not does it support CAN without using other peripherals", "Yes Tin Can was designed to get around this stuff but it doesn t answer the question .", "While working on this problem I learned couple of things about CAN bus and so now I share what I think was the right answer to my original question : How to troubleshoot CAN bus communication", "For example your graphical panel can set a variable my id to the ID of a message you want to relay from bus 1 to bus 2 .", "If it is a standard OBD-II based CAN system e.g .", "All 8 bytes of the CAN bus message payload is available for your data .", "In addition it can probably not be answered because no car is the same and the data format on all the various vehicle buses out there is usually not public information .", "Does anyone know -in other words- how to implement a Flexray channel in CAPL and to integrate it in an existing CAN risidual bus simulation", "This is way too long to stop doing all the other tasks required of the CAN bus .", "I m trying to use a micro-controller board to talk to an external device using CAN-BUS .", "It has got differential line which can withstand even if there is a electrical glitch in the data-transfer in physical layer .. . it can provide reliable speed it serves 500KBaud rate speed in most of the automotive software applications .", "Standard CAN does not have node-IDs but message IDs .", "There are standard OBD diagnostic commands to interrogate ECUs but the control and sensing mechanisms are different on every platform and at the whim of the vehicle manufacturer so you ll have to reverse engineer it .", "There are 2 MCP2515 CAN Interface Chips connected to each other .", "You can subscribe to all messages from a bus by defining an on message event handler .", "Other controllers have message filtering which can be set to accept only a single message ID in a particular message box and these can be configured to accept the messages you are interested in .", "What serial communication bus would you use in a automotive embedded system if your main selection criteria were : .. . .. . Electrically robust .. . Slow speed 32 kb s .. . Easy to program .. . Easy to interface with microcontrollers .. . .. . It won t be transferring much data but it will need to be transferred periodically at high speed 100 - 500 Hz .", "Anyway why CAN bus", "Scenario .. . .. . There is a Linux-powered device connected to a CAN bus .", "CAN-bus seems interesting but I have no experience with it .", "This message format is mode + pin .. . .. . But now I have problems with CAN BUS How should I send command called message id", "I created the first version and I went in my SMART ForTwo SMART 451 vehicle and I managed to connect with the Instrument Cluster Transmit CAN ID is 782 Receive CAN ID is 783 .", "PDOs can only transfer 8 bytes at a time because that is the maximum transfer size of a CAN bus message .", "Hi How to transfer files in CAN bus protocol J1939 in android device through bluetooth", "But right now I don t understand the mechanism of CAN-BUS so clearly and how to use it on my hardware .", "Here is the device I m using : OBDIIReader http : rads.stackoverflow.com amzn click B005FEGP7I .. . .. . Along with this link : Instructions http : theksmith.com technology hack-vehicle-bus-cheap-easy-part-1", "I am interfacing two lpc2129 micro controllers using CAN bus .", "I am trying to find a virtual CAN bus simulator or some way to easily make one that will simply generate CAN bus messages .", "If CAN is a serial interface and CANopen http : en.wikipedia.org wiki CANopen doesn t have a bus master then how does the CAN protocol handle inevitable collisions of data on the bus", "Can your devices understand CAN", "CAN bus shield for Arduino has Microchip MCP2515 CAN controller with MCP2551 CAN transceiver so you do not need 2 of them .", "There really is not a better choice than CAN for an automotive application with your data rate and noise immunity requirements .", "interfacing is also easy if you know CAN controller mailbox and register structure .", "Trying to pull data from an ECU or communicate with embedded hardware that has a CAN controller", "Some time later the CAN bus connection is restored and all the accumulated messages are being kicked on the bus one by one .", "I know that there is socket CAN but to my knowledge it can t simulate multiple nodes on the CAN bus like CANoe can .", "CAN uses its own physial bus .", "For example if you remove the radio from your car to expose the radio harness you can usually tap directly into the CAN lines for the radio bus with the correct equipment .", "And only on a fairly modern vehicle will things like the aircon wipers etc be controllable I m afraid .", "The two examples are very different from each other .", "Via the bus a lot of devices modules are connected .", "Any other participant can then define a number of nodes it wants to find on the network plus the maximum time there may be between two consecutive heartbeat-messages .", "As mentioned in the Bosch CAN specification document all the CAN nodes can start to send pending frames when Bus Idle condition occurs no dominant bit found on the bus .", "I ve found Gwentech s GT1026 to work well for can-bus to android http : www.gwentechembedded.com android-can-bus-adapter .", "Are there any CAN bus simulations software like CANoe for linux", "I am aware of the way CAN bus does its arbitration .", "The stuffing is needed because CAN is an asynchronous bus and it needs a falling or rising edge every 5 bits for clock resynchronisation between the different CAN controllers .", "Now build a simplistic protocol stack on your microcontroller that can send the SDO download upload requests and process the answers .", "Then the device in question is being disconnected from the CAN bus for some amount of time that is much longer than the interval between subsequent message transmissions .", "I m trying to communicate with a USB-to-CAN device .", "0x88888888 indicates that a CAN message is about to be processed by interpretMessage within the timer IRQ .", "PDOs can certainly be used without SYNC .", "Yes Transfer Protocol is used .", "Here are the conditions I met to get an ATMA dump : .. . my vehicle supports protocol 6 -- iso 15765-4 can-11 500 kbaud .. . .. . ATSP6 I am using protocol 6 not auto mode .. . ATSH7E0 now I am talking to the engine ECU .. . ATMA returned a page full of data before getting a buffer full message", "Two other excellent choices other than CAN http : en.wikipedia.org wiki Controller Area Network are LIN and FlexRay .", "I am new to CAN bus so I appreciate any help regarding how to identify the problem .", "Can you read status flags so that you could tell if device is in a bus error state", "How does the receiving node CAN-BUS know that a bit stuffing is not a actual bit part of the data", "Some CAN controllers ie the part of the chip which does the CAN protocol transmission and reception have message filtering which means that uninteresting messages can be dropped before they reach the software .", ".. . .. . Remember that SCORM is now quite an old specification so wasn t designed with the modern world in mind .", "The below code belongs-to CAN controller area network library code of stm32f discovery board .. . .. . in Filename can.c .. . .. . When I went to definition of CAN Typedef it throws me here .", "I suggest to take a PC software that can read and write SDOs and has a CAN Bus Monitor .", "You could then write : .. . .. . The additional condition this.dir rx is necessary if you want to relay the same message from bus 1 to bus 2 and vice versa .", "And you won t have to go throw CAN bus ." ] }
{ "confidence": [ 60.69056701660156, 58.820804595947266, 58.16911697387695, 57.26539611816406, 57.130191802978516, 56.39915084838867, 55.80963897705078, 52.63597869873047, 52.35979461669922, 50.849266052246094, 50.74112319946289, 50.15259552001953, 50.118221282958984, 49.162208557128906, 46.280941009521484, 45.2275276184082, 44.55952072143555, 44.4194450378418, 44.08759307861328, 42.058876037597656 ], "content": [ "Question : What serial communication bus would you use in a automotive embedded system if your main selection criteria were : .. . .. . Electrically robust .. . Slow speed 32 kb s .. . Easy to program .. . Easy to interface with microcontrollers .. . .. . It won t be transferring much data but it will need to be transferred periodically at high speed 100 - 500 Hz . I find that RS-232 is just not reliable enough if you have noise in your ground line . CAN-bus seems interesting but I have no experience with it . We are currently interested in a combination of AVR AT90CAN128 microcontrollers . .. . Answer : I would always suggest that CAN is the best in automotive communication . It has got differential line which can withstand even if there is a electrical glitch in the data-transfer in physical layer .. . it can provide reliable speed it serves 500KBaud rate speed in most of the automotive software applications . interfacing is also easy if you know CAN controller mailbox and register structure .", "Question : I am trying to connect control multiple device on the network centrally via a tablet android device and have some issues trying to find the right protocol for secure communication . Is there a api available for coding utilizing CAN network on android over Ethernet Bluetooth Wifi Or is there another protocol that is more suitable for my application Thank you . Comment : Can your devices understand CAN Ignoring CAN Can they support Wireless communication Answers of these two questions might help you .. . Answer : Another way is to use a CAN bus to Android http : www.gwentechembedded.com product gt1026-android-can-bus-usb-adapter dongle specifically designed for this application . It uses Google s USB open accessory to communicate through USB .", "Question : Linux is supporting virtual can interface . it was enabled by : .. . .. . While using cam-utils such as camsniffer and cansend .. . .. . I could able to see can packets but only within same host . I tried Ubuntu VirtualBox machine . Both guest and host OS are interconnected using host-only adapter vboxnet0 . Also tried SocketCAN socket PF CAN SOCK RAW CAN RAW but not able to receive on other machine works within same machine While trying with broadcast manager socket PF CAN SOCK DGRAM CAN BCM on executing stderr says operation not supported .. . .. . Simply could one send and receive CAN packets between Linux hosts Doesn t matter its Virtual Machine vboxnet0 or physically connected Ethernet . Note : I used Ubuntu 16.04 and 12.04 as Host and Guest OS respectively . .. . Answer : CAN uses its own physial bus . The vcan devices are designed for testing software that communicates over the bus without requiring an actual physical connection they re not actually supplied by the hypervisor but are a part of SocketCAN . By the looks of it you re attempting to establish a Virtual CAN bus in Virtualbox connecting multiple machines together as though they all had CAN controllers and were connected to a physical bus . I ve looked but it appears that such functionality doesn t exist and beyond writing an extension for VirtualBox is probably not likely to . Is there a specific reason you re looking to use CAN Trying to pull data from an ECU or communicate with embedded hardware that has a CAN controller As far as desktop pc communication ethernet is much more convenient faster a nd well supported . Comment : Learning to set-up a virtual environment for car simulation . Example door lock simulation . A program is written to toggle driver door lock unlock results in 3 remaining door get CAN message and locks unlocks automatically . The programs just showing message Locked unlocked on screen .", "Question : What serial communication bus would you use in a automotive embedded system if your main selection criteria were : .. . .. . Electrically robust .. . Slow speed 32 kb s .. . Easy to program .. . Easy to interface with microcontrollers .. . .. . It won t be transferring much data but it will need to be transferred periodically at high speed 100 - 500 Hz . I find that RS-232 is just not reliable enough if you have noise in your ground line . CAN-bus seems interesting but I have no experience with it . We are currently interested in a combination of AVR AT90CAN128 microcontrollers . .. . Answer : You ve already chosen the AT90CAN128 whose standout feature compared to other AVR processors is support for the CAN bus . There really is not a better choice than CAN for an automotive application with your data rate and noise immunity requirements . If you march in to an automotive customer with anything other than CAN you ll end up spending all your time defending the decision not to use it . With that said for noise immunity in a hostile environment like a car you ll need a bus using differential signaling . That rules out i2c or SPI which is unfortunate because they meet your other requirements . RS-485 would be workable as @Andrew Edgecombe points out . If you re not building a commercial product but instead building something for your own use to put in the engine compartment you can probably get by with USB . USB will make it easy to interface with a laptop in the passenger compartment and though it isn t designed for high-noise environments it is differentially signaled at a reasonably high voltage . Comment : One note : I saw a presentation from Toyota a few years ago about using Ethernet . They wouldn t use it for engine control but everything else was possible from climate control signaling to piping audio from the radio to the speakers . They were interested in plastic optics with LED transceivers .", "Question : I m developing application Android . This aplication is connected to OBD2 compliant vehicle CAN BUS and read data from it . I ve done succesfully connection using OBDKey and read data using OBD message format . This message format is mode + pin .. . .. . But now I have problems with CAN BUS How should I send command called message id What kind of AT commands I must send Comment : is this using bluetooth .. . Answer : Hi To specify the CAN bus first determine which CAN bus speed you will use then the CAN bus ID length . If it is a standard OBD-II based CAN system e.g . 11bit ID 500 kbaud then use ATSP6 to set this protocol . Then use ATSHxxx to set the target ID e.g . ATSH7E0 The use ATCMxxx and ATCFxxx to set the CAN mask and filter to handle your receive frame filters . Let me know directly if you need more specific help .", "Question : What serial communication bus would you use in a automotive embedded system if your main selection criteria were : .. . .. . Electrically robust .. . Slow speed 32 kb s .. . Easy to program .. . Easy to interface with microcontrollers .. . .. . It won t be transferring much data but it will need to be transferred periodically at high speed 100 - 500 Hz . I find that RS-232 is just not reliable enough if you have noise in your ground line . CAN-bus seems interesting but I have no experience with it . We are currently interested in a combination of AVR AT90CAN128 microcontrollers . .. . Answer : Two other excellent choices other than CAN http : en.wikipedia.org wiki Controller Area Network are LIN and FlexRay . LIN http : en.wikipedia.org wiki Local Interconnect Network is a simpler slower interface while FlexRay http : en.wikipedia.org wiki FlexRay is more robust and designed for safety-critical systems like real-time controls of brakes . For a nice overview chart of how the various bus choices interrelate see this slide http : www.lin-subbus.de img diagram technical overview.gif .", "Question : What serial communication bus would you use in a automotive embedded system if your main selection criteria were : .. . .. . Electrically robust .. . Slow speed 32 kb s .. . Easy to program .. . Easy to interface with microcontrollers .. . .. . It won t be transferring much data but it will need to be transferred periodically at high speed 100 - 500 Hz . I find that RS-232 is just not reliable enough if you have noise in your ground line . CAN-bus seems interesting but I have no experience with it . We are currently interested in a combination of AVR AT90CAN128 microcontrollers . .. . Answer : For all out reliability you can t go past CANbus but then that was sort of implied by your choice of processor Depending on what you want to interface to this can be very simple - the base level protocol is quite straight forward . But if you want to talk to any other non-proprietary devices you ll have to implement the higher protocols eg . CANopen . But if CANbus isn t appropriate then I would recommend RS485 or RS422 depending on your topology . If all you re trying to achieve is point-to-point communications it s identical to RS232 . you ll have to put your own protocol layer on top if you re trying to support multidrop comms though .", "Question : I ve been fiddeling around with a bluetooth elm327 device I bought a few months ago and am able to get standard obd infos like vin rpm speed etc . But as I just read about recently obd2 and can are not the same . I ve tried to sniff on my can-bus with th AT MA command but I get no response so I guess the can network is decoupled from the obd2 interface . Is there any chance to get access to the can network Or might I need a different device to do so Maybe this info helps : I have a 2011 Skoda . Comment : This question might be more appropriate on electronics.stackexchange.com http : electronics.stackexchange.com Comment : @Peanut : Thanks mate I ll try there then Comment : Crosslink in case someone else stumbles upon it from here : electronics.stackexchange.com questions 167338 http : electronics.stackexchange.com questions 167338 can-i-connect-to-my-cars-can-bus-with-an-elm327-interface .. . Answer : If your vehicle uses the CAN protocol then you shold be able to issue atma from the elm327 device . Here are the conditions I met to get an ATMA dump : .. . my vehicle supports protocol 6 -- iso 15765-4 can-11 500 kbaud .. . .. . ATSP6 I am using protocol 6 not auto mode .. . ATSH7E0 now I am talking to the engine ECU .. . ATMA returned a page full of data before getting a buffer full message", "Question : I ve been fiddeling around with a bluetooth elm327 device I bought a few months ago and am able to get standard obd infos like vin rpm speed etc . But as I just read about recently obd2 and can are not the same . I ve tried to sniff on my can-bus with th AT MA command but I get no response so I guess the can network is decoupled from the obd2 interface . Is there any chance to get access to the can network Or might I need a different device to do so Maybe this info helps : I have a 2011 Skoda . Comment : This question might be more appropriate on electronics.stackexchange.com http : electronics.stackexchange.com Comment : @Peanut : Thanks mate I ll try there then Comment : Crosslink in case someone else stumbles upon it from here : electronics.stackexchange.com questions 167338 http : electronics.stackexchange.com questions 167338 can-i-connect-to-my-cars-can-bus-with-an-elm327-interface .. . Answer : On many modern vehicles there are actually multiple CAN buses controlling the numerous functions needed by the car . Some of these CAN buses are high-speed for important systems like engine control and some are low-speed for less critical functions such as climate control or in your case diagnostics through the OBD2 port . These multiple CAN buses are usually interconnected through a gateway device in the car that arbitrates which CAN messages can be sent between buses . This is a safety net that prevents lower priority CAN buses from interfering with the more critical CAN buses . In an example case the CAN bus used for engine control may be able to communicate with the radio CAN bus so that the radio volume gets increased when the engine is revving to higher RPMs for comfort reasons . This would likely be a one-way connection though the gateway though as it would be in the interest of safety to not allow the radio s CAN bus to send signals back to the engine this could lead to potential problems if using aftermarket radios for example . As a result-of everything mentioned above a connection to the OBD2 port s CAN lines most likely will not have full access to the complete CAN network on your car . One way to confirm this would be to look for the Factory Service Manual for your particular vehicle to see how the CAN bus es are setup for your car there are actually quite a few cars that operate on only a single CAN bus in order to cut costs . Keep in mind that as an alternative to using the OBD2 port you can always tap directly into the CAN bus that you are interested in . For example if you remove the radio from your car to expose the radio harness you can usually tap directly into the CAN lines for the radio bus with the correct equipment . Hope this helps", "Question : My project is to control car windows using voice recognition . I have successfully controlled some LED s using the EasyVR arduino shield using and arduino MEGA . Now I want to take control of the windows using the CAN-BUS arduino shield . Because the car that I own doesn t have an OBD-II connector I am using two arduinos with two CAN-BUS arduino shields making one a sender and the other a receiver . Now I don t know how to program the CAN-BUS arduino shield to make a simulation of the car s windows CAN-BUS shield that I am using : https : www.sparkfun.com products 10039 .. . .. . Arduino mega : https : www.sparkfun.com products 11061 Comment : Just FYI . There is a stack dedicated to Arduino arduino.stackexchange.com http : arduino.stackexchange.com Comment : It seems that you have cross-posted this question to Arduino.SE . Please don t cross-post StackExchange policy is against cross-posting http : meta.stackexchange.com questions 64068 is-cross-posting-a-question-on-multiple-stack-exchange-sites-permitted-if-the-qu . For future reference you can make a flag to the moderators to migrate a question . .. . Answer : The CAN shield can be both a receivers and a transmitter you shouldn t need two of them unless you are bridging two networks together . Unfortunately operating the windows is not something for which there is a standard message . And indeed the window controllers may actually be on a LIN http : en.wikipedia.org wiki Local Interconnect Network bus not CAN . I m not sure there is a LIN shield but it s a relatively simple physical layer http : www.eetimes.com document.asp doc id 1272421 chip and a UART so you should be able to rig something up . Then you will have to reverse engineer the messages.. . If you can find out from a workshop manual what the CAN LIN buses look like you should be able to find somewhere to tap into the right bus . Then monitor the bus and operate the window switch to see if a new message appears or if some particular bits change in a regular message . There will often be sequence counters and checksums within the messages which you will also have to understand in order to correctly replay the appropriate message . Comment : Ok so the CAN BUS doesn t have access to the car s windows what can it control can the CAN BUS control the headlights wipers or the airconditioner for example and what is the signal which will control it Thanks Comment : It might control the windows it might not . In any case there are no standard commands to control anything on the car . There are standard OBD diagnostic commands to interrogate ECUs but the control and sensing mechanisms are different on every platform and at the whim of the vehicle manufacturer so you ll have to reverse engineer it . And only on a fairly modern vehicle will things like the aircon wipers etc be controllable I m afraid .", "Question : I apologize ahead of time if this seems to similar to another question or if it seems like it has already been answered . I felt it was uniquely detailed enough to warrant its own question . I am trying to find a virtual CAN bus simulator or some way to easily make one that will simply generate CAN bus messages . I want to be able to just send the raw CAN messages bit by bit to another device using GPIO for independent analysis by another program . Additionally if anyone knows of something that would generate authentic vehicle CAN bus messages or even just a database of real CAN messages that would help . Currently I am looking at SocketCAN but I am not sure it would work . I appreciate any thoughts or advice . .. . Answer : You could look into the free software BUSMASTER by ETAS . http : www.etas.com en products applications busmaster.php .. . .. . .. . It will let you send raw CAN data . If you have a database it well let you send real world data too . If you want to send real vehicle data you could log the CAN bus of a vehicle and use BUSMATER to replay it . It supports many CAN hardware devices included those by Kvaser . https : www.kvaser.com products kvaser-leaf-light-hs-v2", "Question : This is Kishore .. . .. . I use ELM327 based OBDII to Bluetooth adapter to monitor the CAN traffic in the Passenger Vehicle . Said otherwise our intent is to deploy EML327 as a CAN2BT Dongle for CAN message Rx purposes . I would love to use the Monitor All feature to receive all messages in the Vehicle not just Diagnostics typically done over OBDII protocols . I intend to use AT-MR and AT-MT interfaces supported by ELM327 to selectively listen to messages our Application is interested in . The issue I have is that in the Lab the ELM327 is hooked to a CANCaseXL and in AT-MA or AT-MR or AT-MT modes the ELM327 does not send any acknowledgement . Because of this missing ACK though the CANcaseXL is transmitting at compatible Baudrate Transmit errors drive the CANcaseXL into Error state . Is there a way to send a sequence of Proprietary AT commands to put the ELM327 into a mode where it is not communicating over OBDII Diagnostic protocols instead listening to Raw CAN Bus activity with due ACKs Need communities kind help in this regards .. . .. . Thanks and Regards Kishore .. . Answer : Try the CSMx command . See page 15 of the ELM327 datasheet : .. . .. . CSM0 and CSM1 CAN Silent Monitoring off or on .. . .. . The ELM327 was designed to be comptetely silent shile monitoring a CAN bus . Because of this it is able to report exactly what it sees without colouring the information in any way . Occasionally when bench testing or when connecting to a dedicated CAN port it may be preferred that the ELM327 dows not operate silently ie generates ACK bits etc . and this is what the CSM command is for . CSM1 turns iton CSM0 turns it off and thedefault value is determined by PP 21 . Be careful when experimenting with this If you should choose the wrong baud-rate then monitor the CAN bus with the silent monitoring off you will disturb the flow of data . Always keep the silent monitoring on until you are certain that you have chosen the correct baud-rate .", "Question : null .. . Answer : I m developing a test bench for automotive purpose mainly powered steerings . I Can simulate it and turn it on and diagnose error codes and info about it . I did success on many units but got problems with other ones . The problem comes when the units I m trying to simulate got a multiplexor ecu . I explain this a bit . For example Fiat G.Punto in my test bench my diagnostic tool talks directly to the unit so I can turn it on and diagnose it with appropiate data . But in Peugeot 207 for example powered steering does not communicate directly it s wired to a bridge multiplexor AKA BSI BODY in automotive and when you try to diagnose the tool does directly against the BSI that is what got the info through other canbus line so it cant find the powered steering module . Well now that you know where I m lost after all this explain I got a question.. . : .. . .. . Where can I find Purchase CAN standards for vehicle manufacturers or it s not possible due its their private project I hope it doesnt I though it could follow an standart so that s why I need advice I m sure you got more knowledge than me", "Question : What serial communication bus would you use in a automotive embedded system if your main selection criteria were : .. . .. . Electrically robust .. . Slow speed 32 kb s .. . Easy to program .. . Easy to interface with microcontrollers .. . .. . It won t be transferring much data but it will need to be transferred periodically at high speed 100 - 500 Hz . I find that RS-232 is just not reliable enough if you have noise in your ground line . CAN-bus seems interesting but I have no experience with it . We are currently interested in a combination of AVR AT90CAN128 microcontrollers . .. . Answer : As others said CAN is standard robust more robust with slow speed etc . And there s even support in Linux kernel for it from version 2.6.15 if you ever need bigger system .", "Question : My project is to control car windows using voice recognition . I have successfully controlled some LED s using the EasyVR arduino shield using and arduino MEGA . Now I want to take control of the windows using the CAN-BUS arduino shield . Because the car that I own doesn t have an OBD-II connector I am using two arduinos with two CAN-BUS arduino shields making one a sender and the other a receiver . Now I don t know how to program the CAN-BUS arduino shield to make a simulation of the car s windows CAN-BUS shield that I am using : https : www.sparkfun.com products 10039 .. . .. . Arduino mega : https : www.sparkfun.com products 11061 Comment : Just FYI . There is a stack dedicated to Arduino arduino.stackexchange.com http : arduino.stackexchange.com Comment : It seems that you have cross-posted this question to Arduino.SE . Please don t cross-post StackExchange policy is against cross-posting http : meta.stackexchange.com questions 64068 is-cross-posting-a-question-on-multiple-stack-exchange-sites-permitted-if-the-qu . For future reference you can make a flag to the moderators to migrate a question . .. . Answer : 1 . CAN bus is a communication protocol like RS485 but more reliable . It does not control anything itself . 2 . If windows headlights or other devices are controlled with I O and I O is communicating with CAN bus then you might be able to control windows headlight etc . 3 . CAN bus shield for Arduino has Microchip MCP2515 CAN controller with MCP2551 CAN transceiver so you do not need 2 of them . With colleague we are working with electric vehicle project and we are able to monitor and control using Arduino and CAN bus shield . If you want to control windows i would consider possibility to try this setup : .. . .. . 1 . Disconnect windows from button and power . 2 . Put 2 relays to have H-bridge to move up and down to control window motor http : www.ebay.com itm 1pcs-5V-2-Channel-Relay-Module-for-Arduino-PIC-ARM-DSP-AVR-Electronic- 261099571172 pt LH DefaultDomain 0 hash item3ccabf47e4 http : www.ebay.com itm 1pcs-5V-2-Channel-Relay-Module-for-Arduino-PIC-ARM-DSP-AVR-Electronic- 261099571172 pt LH DefaultDomain 0 hash item3ccabf47e4 .. . 3 . Put some limit switches to turn of relay when window is closed or fully opened . 4 . Control these relays with Arduino . In my opinion this would be easiest way . And you won t have to go throw CAN bus . EDIT Also provide some specification of car . If it does not have OBD II socket maybe its not new one so the windows will be controlled with buttons i guess .", "Question : I have a project involving communication between a raspberry-pi 2 and arduino-uno does it matter of the shields are different Second when communicating do they both need to be coded in the same language Does anyone know of any tutorials on this subject Thanks Comment : Sorry but. . What do you mean by different shields and different languages As long as they use the same protocol it can be a general purpose one such as serial i2c spi can ethernet or a custom one you wrote and have the same electrical specifications which is usually not true for 5V arduino boards since rPI is a 3.3V device - you will need voltage translators or post a better question they will work . Comment : Ok sorry I m new to this does anyone know of tutorial in which it arduino and raspberry-pi have been combined in a CAN network Comment : there are many you just have to open a random site - e.g . GOOGLE - and write raspberry-pi arduino can-bus . . Anyway why CAN bus there are easier to use protocols serial i2c .. . which benefit from direct hardware support . Do you really need CAN Comment : CAN would be ideal due to the distances needed to travel i2c doesn t offer enough distance - it s for a project where one of the aims is an investigation into can I ve worked with can before in microC I have a central bode and 4 distributed nodes communicating back and forth on a schedule Comment : Obviously I have google d raspberry-pi to arduino can-bus but nothing overly beneficial comes up .. . Answer : As long as both shields comply with CAN spec and the software in both ends uses the same configuration bitrate CAN message structure CAN IDs there should be no problem in using different platforms and different languages to communicate between them . Note that in many shields the power for the CAN transceiver is provided from the vehicle and not from the platform that you use arduino RPi to provide better protection to the platform and you might need to provide such power source the arduino might do although the RPi can provide 5V from pin 2 .", "Question : null .. . Answer : I have a small Canbus network containing three hosts : two Fujitsu MB90342-microcontrollers which have been terminated and one CAN-USB-converter to my laptop with no termination . The three hosts are connected with a flatcable . The problem is that one of the MB90342 s doesn t receive from the other . It sends receives when I send a message with my laptop but doesn t receives the messages from the other microcontrollers . The other MB90342 works just fine receives all messages . The used baudrate is 250K . Does someone has an idea what goes wrong Comment : How long is the bus Are both the micros running the same software Comment : No that was the problem . One did not allowed extended ID.. .", "Question : just a small question maybe someone can help . I am looking for some CAN-Bus USB device and the posibility to create a C application with mono to handle CAN-messages with the device . May be someone had some experience with linux and CAN-USB devices . Till now i am using a PEAK PCAN-USB device like PCAN-USB http : www.peak-system.com PCAN-USB.199.0.html .. . .. . May be some of you have experience with this device Linux and Mono . Also if someone knows a better device please tell it here . BR Daniel .. . Answer : Here is the device I m using : OBDIIReader http : rads.stackoverflow.com amzn click B005FEGP7I .. . .. . Along with this link : Instructions http : theksmith.com technology hack-vehicle-bus-cheap-easy-part-1", "Question : How a CAN Bus controller decides based on message identifier that this particular message belongs-to it Is it like the receiver already know that if identifier has suppose value 5 then its for me . And we program receiver to tell it that you should be interested in value 5 .. . Answer : The software in the CAN node must decide what message IDs it is interested in based on the network specification which is usually some kind of document or other electronic representation of which messages contain what sorts of information . If a message arrives that is of no interest it simply does not process it and the software returns to what it was doing just before the message arrived assuming interrupt driven CAN handling . Some CAN controllers ie the part of the chip which does the CAN protocol transmission and reception have message filtering which means that uninteresting messages can be dropped before they reach the software . Other controllers have message filtering which can be set to accept only a single message ID in a particular message box and these can be configured to accept the messages you are interested in . Again other messages are dropped . Some controllers have both filters and message boxes .", "Question : How a CAN Bus controller decides based on message identifier that this particular message belongs-to it Is it like the receiver already know that if identifier has suppose value 5 then its for me . And we program receiver to tell it that you should be interested in value 5 .. . Answer : At the CAN protocol level all nodes in a CAN network are equal and make a decision about whether to process a message or not . A CAN controller is a higher-level concept it still needs to examine the message identifier like any other node . Note that processing a message is different to the CAN protocol message check and acknowledgement . All nodes take part in that processing unless they re in listen only mode . Update : .. . .. . How you decide which message to process depends on what you are trying to do and the higher level protocol in use over CAN . In principle you mask out the ID bits that are relevant and then test them to see whether the message should be processed . For example if you want to process all messages with 5 binary 0101 in the low order four bits your mask is 15 binary 1111 you binary-and this with the received message ID and then you compare the result with five . For example : .. . .. . is a way of coding that test . Which bits you care about and your implementation details depend on many other factors . Comment : My question is how a node make a decision about whether to process a message or not ." ] }
[ "yes-answer-long", "yes-answer-short" ]
can-bus
UNK_RELATION
delayed-job@queue@34
delayed-job -- a ruby library to @placeholder and defer processing of slow methods like sending email and image-resizing .
{ "confidence": [ 36.29199981689453, 34.28974533081055, 33.913326263427734, 32.79742431640625, 32.239784240722656, 32.08655548095703, 32.08655548095703, 31.316747665405273, 31.13311767578125, 30.86206817626953, 30.84270477294922, 30.595172882080078, 30.396228790283203, 30.036598205566406, 30.036598205566406, 30.036598205566406, 30.036598205566406, 29.99216079711914, 29.938913345336914, 29.626781463623047, 29.626781463623047, 29.56657600402832, 29.502113342285156, 29.480480194091797, 29.47850227355957, 29.47850227355957, 29.47850227355957, 29.46217155456543, 29.23644256591797, 29.193885803222656, 28.95224380493164, 28.95224380493164, 28.62811279296875, 27.833698272705078, 27.783287048339844, 27.73396110534668, 27.706802368164062, 27.45215606689453, 27.336750030517578, 27.287450790405273, 27.275314331054688, 27.275314331054688, 27.275314331054688, 27.275314331054688, 27.275314331054688, 27.275314331054688, 27.275314331054688, 27.275314331054688, 27.02227020263672, 26.820632934570312, 26.38930892944336, 26.38930892944336, 26.38930892944336, 25.999128341674805, 25.895715713500977, 25.894107818603516, 25.8031005859375, 25.7519474029541, 25.58534812927246, 25.58534812927246, 25.58534812927246, 25.58534812927246, 25.58009910583496, 25.044857025146484, 25.044857025146484, 24.983055114746094, 24.956676483154297, 24.690872192382812, 24.690872192382812, 24.690872192382812, 24.690872192382812, 24.63228416442871, 24.47989273071289, 24.442245483398438, 24.27975082397461, 24.252044677734375, 24.252044677734375, 24.238155364990234, 24.196170806884766, 24.1608829498291, 24.130718231201172, 23.840682983398438, 23.714099884033203, 23.692527770996094, 23.692527770996094, 23.692527770996094, 23.607757568359375, 23.599910736083984, 23.599910736083984, 23.599910736083984, 23.59777069091797, 23.570537567138672, 23.54875946044922, 23.51321792602539, 23.47313690185547, 23.369020462036133, 23.319873809814453, 23.257179260253906, 23.093957901000977, 23.041568756103516 ], "content": [ "I d like ExceptionNotifier to send out an email when an exception happens in a delayed-job just like for other exceptions .", "I want to call redirect to function in the Delayed job .", "Thanks a lot indeed typing H showed only one delayed-job process so it s like you said", "My project : .. . - Rails 4.2.5 .. . - Ruby 2.2.2 .. . - ActiveAdmin 1.0.0 pre2 .. . - Delayed job 4.1.1 .. . - Capistrano 3.4.0", "I am using BluePill to manage processes such as delayed-job for Rails .", "Do you have delayed-job web installed", "But jobs not firing on heroku from delayed-job table .", "There isn t a timeout set for the Delayed Job workers so this is more likely a memory usage issue .", "jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach", "Initially I have no process for delayed jobs as indicated by htop then when I run the command RAILS ENV production bin delayed-job start I got one delayed-job worker as indicated by files in tmp pids .", "I ran into an issue where if the delayed-job dies while it still has a job locked that job will not be freed .", "I ve done something like this in the past for delayed-job rake tasks : .. . .. . end", "I have a working Rails 3.2 app Ruby 1.9.2p290 on Windows Server 2008 R2 which uses delayed-job for several background jobs .", "I currently use delayed-job to process jobs asynchronously .", "You need to disable ferret from indexing during the running of the delayed-job .", "I m currently starting the delayed-job when a controller action is called eg .", "I found it was easier to create an init script for delayed-job .", "Edit : Ok I moved to PostgreSQL from SQLite the records are being inserted into Delayed : : Job but the email tests fail .", "When I run it manually it looks like this : .. . .. . When I run it with Bluepill it looks like this : .. . .. . My pill looks like this : .. . .. . And my delayed-job script looks like this :", "I think i m having a problem where engineyard is adding a timeout to some of my delayed-job workers seems to be 10 minutes .", "Delayed job probably has some master thread that governs the worker threads or just the single worker in your setup watches the queues and runs the workers if needed .", "So I want to run Delayed Job and Sidekiq in parallel and migrating one type of job at a time .", "So : is this correct expected behaviour for Delayed Job", "Since the user needs to wait until the processing is finished to see the results and Delayed Job may take up to five seconds before the job is even started I can t guarantee that the processing will happen as soon as possible .", "On every failure handler delayed-job tries to reexecute the whole array of jobs as per the declaration of reattepts .", "So how can I solve this problem .. . .. . So how can I call redirect to in delayed-job now", "I m using delayed-job to process some emails in production in development they all work perfectly when running rake jobs : work .", "This doesn t solve the problem I would still be trying to pass email variable into the delayed jobs", "Should I just roll my own off-thread processing that updates the DB during processing or is there something like Delayed Job that I can use for this and that works on Heroku", "Delayed Job is set up and processing it all in the background making the front end nice and fast as always and Mandrill SMTP is receiving it all correctly and sending out the e-mails in a speedy manner .", "After some research moving this to a delayed-job https : github.com collectiveidea delayed-job seemed reasonable as suggested in this rails cast http : railscasts.com episodes 171-delayed-job-revised view asciicast .", "Railscasts has a good episode http : railscasts.com episodes 171-delayed-job about this version of delayed-job ASCIICasts version http : asciicasts.com episodes 171-delayed-job .", "Based on this question How to reference active delayed-job within the actual job http : stackoverflow.com questions 14613122 how-to-reference-active-delayed-job-within-the-actual-job I m using Delayed : : Job with an additional progress text column to record progress of a long running task .", "Another tip is to tune the delayed-job config a bit as default you may get a lot of duplicate exception mails when job fails .", "in that case the best way I could think of is implement some kind of a server-push notification system so once the delayed-job is over it will send a push-notification to the client browser like u get the notifications in stackoverflow .", "The other delayed-job consumes memory where I don t have much of it however its TIME+ is zero so it didn t consume time so what does this means", "Ruby toolbox https : www.ruby-toolbox.com categories Background Jobs seems to be favouring Resque and Sidekiq over delayed-job though so have a look at those before settling .", "Delayed job locks the database so your app gets staved .", "I d use Mandrill for email sending instead of Gmail even for development-environment .", "I ve considered using Delayed Job to process this outside the user s thread but this doesn t seem like quite the right use-case .", "So I have a rails app where I want my delayed-job process to communicate with an SMPP server .", "Since both Delayed Job and Sidekiq offers the .delay method how can I make the distinction between the two", "I wrote a wrapper script around delayed-job that will look at the pid file and free any jobs from the dead worker .", "+1 This approach works with Rails 3.2.6 Delayed Job 3.0.3 and Exception Notification 2.6.1 .", "To see how to setup delayed-job active record in Heroku read this : https : devcenter.heroku.com articles delayed-job", "My emails are sent out using delayed-job .. . 2 . email spec is running the delayed-job before checking the emails .. . 3 .", "Is is possible to run both the delayed-job process and the clockwork process using a single heroku process using bluepill", "possible duplicate of delayed-job not logging http : stackoverflow.com questions 9507765 delayed-job-not-logging", "Having a problem with running delayed jobs in multiple queues .", "When I needed log output from Delayed Jobs I found this question http : stackoverflow.com questions 6183676 delayed-job-not-logging-in-production to be fairly helpful .", ": Delayed : : Worker.read ahead 1 .", "The delayed jobs table was created .", "Delayed : : Worker.logger is already initialized", "Another message-queue BUT this one supports DELAYED PUTS https : github.com kr beanstalkd blob master doc protocol.txt .", "In the BluePill log I am getting this message : .. . .. . So it s claiming that a pid file is missing which it is but shouldn t that pid be created when BluePill starts the Delayed Job process", "Use jquery-file-upload s client-side image-resizing https : github.com blueimp jQuery-File-Upload wiki API image-resizing .", "The problem is I can t pass instance-variables @raw html @subject into delayed jobs .", "The error is : .. . .. . Syck : : DomainType method name failed with NoMethodError : undefined method method name for .. . .. . I have tried to resolve it by adding the code to application.rb as suggested here http : stackoverflow.com questions 6766431 undefined-method-error-when-creating-delayed-job-workers-with-script-delay-job : .. . .. . But it didn t help .", "all .. . .. . I have a custom Delayed : : Job setup that uses the the success and error callbacks to change the attributes of the object that is being modified in the background .", "At least once a day my Delayed : : Job workers will randomly stop working jobs off the queue yet the processes are still alive .", "If you want the job to be performed at a specific time in the future check out sidekiq s documentation https : github.com mperham sidekiq wiki Delayed-extensions .", "We are using the now defunct db-charmer gem to do connection switching between primary and secondary database and that was not taking effect on the delayed-job model class .", "My understanding is that delayed-job uses your timezone http : www.gregbenedict.com 2009 08 19 is-delayed-job-run at-datetime-giving-you-fits but it s like it s using the wrong one .", "http : stackoverflow.com questions 37754031 what-port-to-use-sending-email-with-smtp-mailgun-in-rails-app-on-production-se", "I looked in the database at the entry created in the delayed jobs table : .. . .. . The user parameter is reloaded from the database by delayed-job before sending the email .", "So it works like .. . .. . 1 controller gets a request .. . 2 controller calls the delayed-job and pass the long running process .. . 3 controller move on without waiting for reply from delayed-job .. . .. . So in that context what you asked is kind of strange however if your requirement is to notify the user etc. . once the process is completed .. . .. . a update a database column by the delayed-job and read it from your view b use some kind of a server-push method its built-in to rails4 http : ngauthier.com 2013 02 rails-4-sse-notify-listen.html or using a gem like Faye http : net.tutsplus.com tutorials ruby how-to-use-faye-as-a-real-time-push-server-in-rails .. . .. . HTH", "Now the method that s being delayed simply calls other methods on the model instance like so : .. . .. . My question is can I call delay on those shorter methods i.e .", "I tried to creating my own delayed-job class but the mail object created by Mailer.welcome or similar is not serialized correctly .", "I tried a lot of ways to do this whether pass value or not or Delayed Job in Model or in page controller but still no avail .", "I can t get the Exception Notification gem to notify me when a Delayed Job fails .", "You don t have to change anything in your existing code-base you just use Delayed Job as normal .", "Kue is a feature rich priority job-queue for node.js backed by redis .", "It was also a memory issue because the background job renders the template for each email and stores it in memory until the job is complete .", "official document https : github.com mperham sidekiq wiki Delayed-Extensions disabling-extensions .. . .. . .. . .. . For older versions of Sidekiq : .. . .. . Put the following in config initializers sidekiq.rb .. . .. . And then you can use sidekiq delay to queue in Sidekiq and call delay to queue in Delayed Job .", "I discovered that Mandrill offers a send at https : mandrill.zendesk.com hc en-us articles 205582667-Can-I-schedule-a-message-to-send-at-a-specific-time- parameter when sending an email that will have Mandrill delay sending the email until the specified time .", "Neydroid your code worked by changing the following line : Delayed : : Worker.default priority highest priority + 1 if highest priority to Delayed : : Worker.default priority highest priority + 1 if highest priority .", "Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question .", "The job does a Feed.find id passed into feed job .update feed .", "Ignoring cost which approach is architecturally preferable having Celery delay queuing the email using countdown or sending the email to Mandrill immediately but with a send at parameter so Mandrill waits for me", "A method that runs asynchronously via delayed-job needs to access this environment variable : .. . .. . Is ENV FOO available when my method is called delayed", "Install a beanstalkd client library .", "I have tried many many solutions--including creating a startup script for init.d and calling that from bluepill as described in another monit-based posting http : stackoverflow.com questions 1226302 how-to-monitor-delayed-job-with-monit but nothing has worked .", "It seems like email would be easily done with AM or by Process.popen of something .", "However when I start up the rake jobs : work task I get an error complaining about a nil outputter : .. . .. . Anyone else successfully using log4r with delayed-job", "In my rails app I have a service that gets called by a Delayed Job worker to parse a CSV file row by row and save new records to the contacts table .", "For instance you have seen that to delay the mailing you write .. . .. . While typically you would have to write handle asynchronously after the method definition in the case of mailers this declaration for some reason prevents that delayed-job from working .", "AAF takes care of indexing on each request so if you are processing some job in the background how does that effect the index in a database", "Looking to send a delayed jobs mailer with Mailjet s API but the emails are not being sent .", "Your link takes me to a profile page not an article on delayed jobs", "How can I get the delayed mail to send properly", "You can easily do this with Toro https : github.com tombenner toro which is another job queueing system that runs on Postgres and Ruby .", "The issue in my case was that there was a locked job in the job-queue .", "With this gem you can have progress tracking directly on the Delayed : : Job object itself : https : github.com GBH delayed-job progress .. . .. . Completed jobs are no longer automatically removed so you can poll against a job until it comes back with completed state .", "I have a copy process that can run for 10 minutes and everytime it gets to that 10 minutes threshold the job is killed .", "I m trying to move my rails app s background processing library from DelayedJob to SideKiq .", "The reasons I prefer this library over the others are : .. . .. . 1 .", "For simple things like sending an email in the background or offloading some things from your front end here and there Heroku Workers are probably a good choice .", "My advice would be to add sidekiq library per job until you have moved all you jobs to it .", "Because on the beanstalkd client library list this library isn t wasn t mentioned Then again I can add entries to the list so I will add this one .", "I m using : Rails 3.0.9 Ruby 1.9.2 p290 .. . .. . Thanks : Moozly ." ] }
{ "confidence": [ 37.811729431152344, 37.496910095214844, 37.37779235839844, 36.93193054199219, 36.93193054199219, 36.881744384765625, 36.463279724121094, 36.45534896850586, 36.45534896850586, 36.45534896850586, 36.438011169433594, 36.4010009765625, 36.23118591308594, 36.2076530456543, 36.07078552246094, 35.587162017822266, 35.587162017822266, 35.5845947265625, 35.559871673583984, 35.48744201660156 ], "content": [ "Question : I am developing a mailing web application in Ruby on Rails and I am in front of an issue with delayed-job gem : .. . .. . In the settings of my application I give the ability for the customer to update the email-address from where mailing are sent . But I discovered there was something like a cache from delayed-job which doesn t use the update email-address for the from header . When I use the delayed-job task by Capistrano manually it works so I tried to add a callback after update in my model to handle the restart of delayed-job but without any success . Capistrano command : .. . .. . What I tried is to dynamically restart delayed-job from the model : .. . .. . My Mailing class : .. . .. . Does anyone knows how can I restart delayed-job from Rails Is there a way to do it exclusively in Ruby without writing shell script In order to help me to understand better is there several instance of delayed-job one by website in the server or one for all website Thanks for your help My project : .. . - Rails 4.2.5 .. . - Ruby 2.2.2 .. . - ActiveAdmin 1.0.0 pre2 .. . - Delayed job 4.1.1 .. . - Capistrano 3.4.0 .. . Answer : The solution was to move the from header into the mail function . The reason is the default from is set only once when the application-start and cannot be changed this way . Here is the answer who helped me to understand that : https : github.com collectiveidea delayed-job issues 882", "Question : Initially I have no process for delayed jobs as indicated by htop then when I run the command RAILS ENV production bin delayed-job start I got one delayed-job worker as indicated by files in tmp pids . However htop indicates now that there are two processes as shown in the picture below . enter image description here http : i.stack.imgur.com JyzLA.png .. . .. . So why is this happening The other delayed-job consumes memory where I don t have much of it however its TIME+ is zero so it didn t consume time so what does this means Comment : What type of the problem you are trying to solve Let s start with that Comment : The problem is that the other process consumes resources specifically RAM memory . .. . Answer : I guess these are actually not two processes but two threads of a single process . You can hide threads by typing the capital H key in htop . If you ll see just one line then you ll prove that it s a single process . Delayed job probably has some master thread that governs the worker threads or just the single worker in your setup watches the queues and runs the workers if needed . Threads share most of the memory http : stackoverflow.com a 11909332 1544012 so I rather don t think the resources consumption issue comes from the two lines in htop . Comment : Thanks a lot indeed typing H showed only one delayed-job process so it s like you said", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : I ran into an issue where if the delayed-job dies while it still has a job locked that job will not be freed . I wrote a wrapper script around delayed-job that will look at the pid file and free any jobs from the dead worker . The script is for rubber capistrano .. . .. . roles delayedjob delayed-job wrapper : .. . .. . roles delayedjob delayed-job wrapper", "Question : I d like ExceptionNotifier to send out an email when an exception happens in a delayed-job just like for other exceptions . How can I achieve that Comment : Interesting question in looking I came across stackoverflow.com questions 4104093 http : stackoverflow.com questions 4104093 exception-notification-for-delayed-job and groups.google.com group delayed-job browse thread thread http : groups.google.com group delayed-job browse thread thread 646314145a69360b fwc 1 pli 1 Comment : Yep I ve seen both of those but I think these solutions only work with Rails 2 . .. . Answer : For exception-notification 3.0.0 change : .. . .. . to :", "Question : I d like ExceptionNotifier to send out an email when an exception happens in a delayed-job just like for other exceptions . How can I achieve that Comment : Interesting question in looking I came across stackoverflow.com questions 4104093 http : stackoverflow.com questions 4104093 exception-notification-for-delayed-job and groups.google.com group delayed-job browse thread thread http : groups.google.com group delayed-job browse thread thread 646314145a69360b fwc 1 pli 1 Comment : Yep I ve seen both of those but I think these solutions only work with Rails 2 . .. . Answer : Another way to handle exceptions put as an initializer :", "Question : Having a problem with running delayed jobs in multiple queues . I had the same problem at the beginning when I ran all in one queue with .. . .. . But solved it by running .. . .. . Now for running different queues I m using : . script delayed-job -n 2 start .. . .. . and back to start with the error . The error is : .. . .. . Syck : : DomainType method name failed with NoMethodError : undefined method method name for .. . .. . I have tried to resolve it by adding the code to application.rb as suggested here http : stackoverflow.com questions 6766431 undefined-method-error-when-creating-delayed-job-workers-with-script-delay-job : .. . .. . But it didn t help . I m using : Rails 3.0.9 Ruby 1.9.2 p290 .. . .. . Thanks : Moozly . Comment : You probably running wrong version of rake . Paste your script content .. . Answer : well try .. . .. . Comment : lol : I somehow thought it didn t work with it but it does :", "Question : I want to call redirect to function in the Delayed job . I have file print job.rb .. . .. . but it does not work . If I just put redirect to htpp : google.com . It said that no method redirect to .. . .. . The current situation now is I am using pdf kit with delayed-job but not exporting a pdf file directly . I have link locahost print If i want to open it in format pdf just put localhost print.pdf or using link-to : action print : format pdf But if the pdf file is big it does not have well performance so I want to open localhost print.pdf in delayed-job . So how can I solve this problem .. . .. . So how can I call redirect to in delayed-job now Thank you .. . Answer : delayed-job are designed run long processes in background with out interrupting the http-request of the rails controller . So it works like .. . .. . 1 controller gets a request .. . 2 controller calls the delayed-job and pass the long running process .. . 3 controller move on without waiting for reply from delayed-job .. . .. . So in that context what you asked is kind of strange however if your requirement is to notify the user etc. . once the process is completed .. . .. . a update a database column by the delayed-job and read it from your view b use some kind of a server-push method its built-in to rails4 http : ngauthier.com 2013 02 rails-4-sse-notify-listen.html or using a gem like Faye http : net.tutsplus.com tutorials ruby how-to-use-faye-as-a-real-time-push-server-in-rails .. . .. . HTH Comment : Thanks you for your comment . The current situation now is I am using pdf kit with delayed-job but not exporting a pdf file directly . I have link locahost print http : locahost print If i want to open it in format pdf just put localhost print.pdf http : localhost print.pdf or using link-to : action print : format pdf But if the pdf file is big it does not have well performance so I want to open localhost print.pdf http : localhost print.pdf in delayed-job . So how can I solve this problem Comment : in that case the best way I could think of is implement some kind of a server-push notification system so once the delayed-job is over it will send a push-notification to the client browser like u get the notifications in stackoverflow . :", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : Since i didn t want to run as root I ended up creating a bash init script that monit used for starting and stopping PROGNAME would be the absolute path to script delayed-job :", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : For Rails 3 you may need set HOME env to make compass work properly and below config works for me :", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : to see what is going on run monit in foreground verbose mode : sudo monit -Iv .. . .. . using rvm installed under user www1 and group www1 . in file etc monit monitrc :", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : I have spent quite a bit of time on this topic . I was fed up with not having a good solution for it so I wrote the delayed-job tracer plugin that specifically addresses monitoring of delayed-job and its jobs . Here s is an article I ve written about it : http : modernagility.com articles 5-monitoring-delayed job-and-its-jobs .. . .. . This plugin will monitor your delayed-job process and send you an e-mail if delayed-job crashes or if one of its jobs fail . Comment : Your link takes me to a profile page not an article on delayed jobs", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : Thanks for the script . One gotcha -- since monit by definition has a spartan path http : mmonit.com monit documentation monit.html configuration 5Fexamples of .. . .. . .. . and for me ruby was installed linked in usr local bin I had to thrash around for hours trying to figure out why monit was silently failing when trying to restart delayed-job even with -v for monit verbose mode . In the end I had to do this :", "Question : I currently use delayed-job to process jobs asynchronously . Instead of creating workers I use the .delay method a lot . I want to move to Sidekiq but I have too many types of jobs and can t make sure all of them are thread safe . So I want to run Delayed Job and Sidekiq in parallel and migrating one type of job at a time . Since both Delayed Job and Sidekiq offers the .delay method how can I make the distinction between the two Are there any other potential issues .. . Answer : It seems that Sidekiq has mix-in https : github.com mperham sidekiq blob master lib sidekiq extensions class methods.rb that adds .delay methods to all classes . Not 100 sure how this will behave but it could result in problems if delay you are refering to is on the instance level . My advice would be to add sidekiq library per job until you have moved all you jobs to it . Meaning to avoid including both libraries at the same time again if possible .", "Question : null .. . Answer : I m using delayed-job to process some emails in production in development they all work perfectly when running rake jobs : work . Some of them run perfectly but some do not they get enqueued but never run . Only if I enter my server stop the process and then do RAILS ENV production bin delayed-job run that those enqueued jobs actually execute . There s one difference between the jobs that run and the ones that just get enqueued and maybe that s what causing the problem idk : the jobs that run I call them directly like this UserMailer.delay : queue greating mail .creation mail current user Now the jobs that don t run are the ones that are enqueued this way : Delayed : : Job.enqueue PressureTargetsJob.new @mobilization.id and them inside the PressureTargetsJob class in the perform method I m calling the email method : UserMailer.pressure mail @mobilization target .deliver later", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : I found it was easier to create an init script for delayed-job . It is available here : http : gist.github.com 408929 or below : .. . .. . Then make sure that monit is set to start restart the app so in your monitrc file : .. . .. . and that works great", "Question : I d like ExceptionNotifier to send out an email when an exception happens in a delayed-job just like for other exceptions . How can I achieve that Comment : Interesting question in looking I came across stackoverflow.com questions 4104093 http : stackoverflow.com questions 4104093 exception-notification-for-delayed-job and groups.google.com group delayed-job browse thread thread http : groups.google.com group delayed-job browse thread thread 646314145a69360b fwc 1 pli 1 Comment : Yep I ve seen both of those but I think these solutions only work with Rails 2 . .. . Answer : Adding to @MattiasWadman answer since exception-notification 4.0 there s a new way to handle manual notify https : github.com smartinez87 exception-notification tree v4.0.0 background-notifications . So instead of : .. . .. . use Comment : will this also be processed in te background Comment : @Dani lZwijnenburg The method is being called by delayed-job so yes", "Question : I d like ExceptionNotifier to send out an email when an exception happens in a delayed-job just like for other exceptions . How can I achieve that Comment : Interesting question in looking I came across stackoverflow.com questions 4104093 http : stackoverflow.com questions 4104093 exception-notification-for-delayed-job and groups.google.com group delayed-job browse thread thread http : groups.google.com group delayed-job browse thread thread 646314145a69360b fwc 1 pli 1 Comment : Yep I ve seen both of those but I think these solutions only work with Rails 2 . .. . Answer : simpler and updated answer : .. . .. . And test on console with : Comment : Is a quite outdated answer 09 . Actually log exception without notification doesn t even exists in the lasts versions Comment : @AlterLagos I think you misunderstand alias method chain . Comment : updated and simplified", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : I had to combine the solutions on this page with another script https : cloud-support.engineyard.com discussions questions 230-running-delayed job-workers-solved made by toby to make it work with monit and starting with the right user . So my delayed job.monitrc looks like this : Comment : not working it says : bin su : su : must be run from a terminal", "Question : Are there any examples on the web of how to monitor delayed-job with Monit http : mmonit.com monit Everything I can find uses God http : god.rubyforge.org but I refuse to use God since long running processes in Ruby generally suck . The most current post in the God mailing list God Memory Usage Grows Steadily http : groups.google.com group god-rb browse 5Fthread thread 836ccfdabfb7ec6c . Update : delayed-job now comes with a sample monit config http : github.com collectiveidea delayed 5Fjob blob master contrib delayed 5Fjob.monitrc based on this question . Comment : jacobrothstein.com entries delayed-job-and-monit http : www.jacobrothstein.com entries delayed-job-and-monit Not sure how good it is though I haven t tried this approach .. . Answer : I don t know with Monit but I ve written a couple Munin plugins http : helderribeiro.net p 87 to monitor Queue Size and Average Job Run Time . The changes I made to delayed-job in that patch might also make it easier for you to write Monit plugins in case you stick with that .", "Question : I d like ExceptionNotifier to send out an email when an exception happens in a delayed-job just like for other exceptions . How can I achieve that Comment : Interesting question in looking I came across stackoverflow.com questions 4104093 http : stackoverflow.com questions 4104093 exception-notification-for-delayed-job and groups.google.com group delayed-job browse thread thread http : groups.google.com group delayed-job browse thread thread 646314145a69360b fwc 1 pli 1 Comment : Yep I ve seen both of those but I think these solutions only work with Rails 2 . .. . Answer : I do this with Rails 3.2.6 delayed-job 3.0.3 and exception-notification https : rubygems.org gems exception-notification 2.6.1 gem .. . .. . It s probably a good idea to load this code in all environments to catch errors after bundle update etc before they reach production . I do this by having a config initializers delayed job.rb file but you could duplicate the code for each config environments environment . Another tip is to tune the delayed-job config a bit as default you may get a lot of duplicate exception mails when job fails . Update I had some problems with the delayed-job daemon silently exiting and it turned out to be when ExceptionNotifier fails to send mail and no one rescued the exception . Now the code rescues and log them . Comment : I d recommend using the official exception-notification gem at github.com smartinez87 exception-notification https : github.com smartinez87 exception-notification Comment : Ah ok will update to that . I was using the rails3 gem as there seamd to be some rails 3 issues with the official version at the time . Comment : +1 This approach works with Rails 3.2.6 Delayed Job 3.0.3 and Exception Notification 2.6.1 . Initially I thought adding an error method using the built-in hook would be a cleaner approach but that would have to be defined for each job class and defining it generically for PerformableMethod didn t work due to how delegate is used . Comment : I ve added a : data : job job to the method call so that I have a bit more details Comment : Has anyone gotten this working Rails 4" ] }
[ "yes-answer-long", "yes-answer-short" ]
queue
UNK_RELATION
rmic@rmi@26
rmic -- rmic is the java @placeholder compiler it generates stub skeleton and tie classes for remote objects using either the jrmp or iiop protocols .
{ "confidence": [ 53.66299057006836, 50.613765716552734, 49.68851852416992, 49.68851852416992, 48.273094177246094, 44.981422424316406, 40.766204833984375, 39.993141174316406, 39.543190002441406, 36.848899841308594, 36.76576232910156, 36.76576232910156, 36.76576232910156, 36.76576232910156, 35.35033416748047, 29.269912719726562, 29.18325424194336, 27.110248565673828, 26.98835563659668, 26.113506317138672, 20.329561233520508, 20.329561233520508, 19.44095230102539, 18.489538192749023, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 14.010364532470703, 12.594939231872559, 12.594939231872559, 12.594939231872559, 12.594939231872559, 12.594939231872559, 12.594939231872559, 12.594939231872559, 12.594939231872559 ], "content": [ "As of Java 5 rmic is no longer required .", "i put CLASSPATH to my jdk then i decided to make Stub with rmic .", "BUT : Don t use rmic at all .", "- don t use rmic", "Sorry I m not experienced with rmic .", "We generate the IDL from our Java-Interface with rmic -idl .", "I removed the rmic tasks from the build file support for Java 1.4 is not needed and compile runs through now .", "After a frustrating day of researching about the rmic I still have not an answer or idea.. . Maybe I write a IDL by myself and compile it to java with idlj-Compiler", "It isn t needed for Java 6 RMI can work perfectly well without the stubs that rmic generates unless you have clients running Java 1.4 or earlier and then you have other problems.. . .", "The RMI system in Java 5 and later can operate using dynamic proxies rather than statically pre-compiled stubs so you only need rmic if you have to support clients on Java 1.4 or earlier .", "I do : rmic RMIChatServerImpl .. . .. . then i get the following error : error : Class RMIChatServerImpl not found .", "rmic -classpath D : workspace RMIexample bin AddServer -d D : workspa ce error : Class AddServer not found .", "You re supposed to run rmic from the base directory where your package starts .", "For example : rmic -classpath D : workspace Rmi.example bin rmi.app.AddServer -d D : workspace", "Sounds like I have to look into the documentation of rmic if there ist such similar -I parameter", "I start Ant programmatically from within a Java class : .. . .. . When I debug it with Exclipse I get the following error : .. . .. . X : update jTag build buildAppl.xml : 114 : The following error occurred while executing this line : X : update jTag project buildAppl.xml : 107 : Cannot use SUN rmic as it is not available .", "Basically as long as you provide a port-number when constructing exporting your remote objects even zero a dynamic stub can be generated instead at runtime .", "I am working in a project were we write a Java RMI-IIOP Server and da CORBA-C++ client .", "rmic -classpath D : workspace Rmi.example bin rmi app AddServer -d D : workspace .. . .. . where i got such message : error : File D : workspace Rmi.example bin rmi app AddServer.class does not contai n type AddServer as expected but type rmi.app.AddServer .", "The eclipse preference Installed JREs defaults to C : Program Files Java jdk1.6.0 37 .. . The project property java.home is set to C : Program Files Java jdk1.6.0 37 see above .. . .. . The description of the rmic task in the build file looks similar to this : .. . .. . When running Ant interactively in Eclipse it builds ok . .. . .. . What can I do to circumvent this error", "I am having trouble with my rmi classes .", "After doing javac in command-line to compile the classes .", "JAVA HOME C : Program Files Java jdk1.7.0 09 bin PATH C : Program Files Java jdk1.7.0 09 bin TEMP USERPROFILE AppData Local Temp C : Program Files Java jdk1.7.0 09 bin C : Program Files Java jre7 bin .. . .. . thank you for any help", "If ur working with eclipse there s a plugin for RMI that generates stubs easily http : www.genady.net rmi v20 downloads.html .. . .. . I also faced the same prob bt i could solve it through this way", "I have researched but dont understand the problem .", "I have added the jdk path to my environmental variables .", "Well i decided to create RMI but faced with one problem .", "I wrote : 1 .", "Please remove the file or make sure it appears in the correct subdirectory of the class path .", "error : Class AddServer not found .", "2 errors", "Then i got the problem : rmic -classpath D : workspace Rmi.example b in rmi.app AddServer -d D : workspace error : Class AddServer not found .", "1 error", "It hasn t been required for about ten years .", "Read the preamble to UnicastRemoteObject .", "I understand your class AppServer is in rmi.app package", "Then your classpath must be D : workspace Rmi.example bin not D : workspace Rmi.example bin rmi app", "yeah i have rmi.app package", "Is your project directory name RMIexample or RMI.example", "Also the class name must be rmi.app.AddServer", "A common solution is to set the environment variable JAVA HOME .. . .. . I have checked the following : .. . .. . Environment variables JAVA HOME and PATH are set correctly .", "What can I do to circumvent this error", "Thanks @Ian for the hint .", "I cannot post this as an answer for lack of reputation .", "well .. .", "But I think something is wrong in our Interface because when we compile the generated idl we got following error : .. . .. . And this is our Interface : .. . .. . Has anyone an idea what exactly is wrong", "Thx", "Looks like the generated namespace parts are translated into directories for the corresponding include directory parts .", "Are those headers to be found in these directories", "If yes you might need to provide an appropriate -I option when compiling the DLL .", "Yes the missing idl are in these directories", "Yes that s what I meant .", "Ok" ] }
{ "confidence": [ 67.73976135253906, 65.18124389648438, 62.0605583190918, 58.120235443115234, 55.557857513427734, 53.84452819824219 ], "content": [ "Question : null .. . Answer : I am working in a project were we write a Java RMI-IIOP Server and da CORBA-C++ client . We generate the IDL from our Java-Interface with rmic -idl . But I think something is wrong in our Interface because when we compile the generated idl we got following error : .. . .. . And this is our Interface : .. . .. . Has anyone an idea what exactly is wrong Thx Comment : Looks like the generated namespace parts are translated into directories for the corresponding include directory parts . Are those headers to be found in these directories If yes you might need to provide an appropriate -I option when compiling the DLL . Comment : Yes the missing idl are in these directories Sounds like I have to look into the documentation of rmic if there ist such similar -I parameter Comment : Yes that s what I meant . Sorry I m not experienced with rmic . Comment : Ok After a frustrating day of researching about the rmic I still have not an answer or idea.. . Maybe I write a IDL by myself and compile it to java with idlj-Compiler", "Question : Well i decided to create RMI but faced with one problem . i put CLASSPATH to my jdk then i decided to make Stub with rmic . I wrote : 1 . rmic -classpath D : workspace Rmi.example bin rmi app AddServer -d D : workspace .. . .. . where i got such message : error : File D : workspace Rmi.example bin rmi app AddServer.class does not contai n type AddServer as expected but type rmi.app.AddServer . Please remove the file or make sure it appears in the correct subdirectory of the class path . error : Class AddServer not found . 2 errors Comment : Then i got the problem : rmic -classpath D : workspace Rmi.example b in rmi.app AddServer -d D : workspace error : Class AddServer not found . 1 error .. . Answer : BUT : Don t use rmic at all . It hasn t been required for about ten years . Read the preamble to UnicastRemoteObject . Basically as long as you provide a port-number when constructing exporting your remote objects even zero a dynamic stub can be generated instead at runtime .", "Question : I start Ant programmatically from within a Java class : .. . .. . When I debug it with Exclipse I get the following error : .. . .. . X : update jTag build buildAppl.xml : 114 : The following error occurred while executing this line : X : update jTag project buildAppl.xml : 107 : Cannot use SUN rmic as it is not available . A common solution is to set the environment variable JAVA HOME .. . .. . I have checked the following : .. . .. . Environment variables JAVA HOME and PATH are set correctly . The eclipse preference Installed JREs defaults to C : Program Files Java jdk1.6.0 37 .. . The project property java.home is set to C : Program Files Java jdk1.6.0 37 see above .. . .. . The description of the rmic task in the build file looks similar to this : .. . .. . When running Ant interactively in Eclipse it builds ok . .. . .. . What can I do to circumvent this error Comment : What can I do to circumvent this error - don t use rmic It isn t needed for Java 6 RMI can work perfectly well without the stubs that rmic generates unless you have clients running Java 1.4 or earlier and then you have other problems.. . . Comment : Thanks @Ian for the hint . I removed the rmic tasks from the build file support for Java 1.4 is not needed and compile runs through now . I cannot post this as an answer for lack of reputation . well .. . .. . Answer : As of Java 5 rmic is no longer required . The RMI system in Java 5 and later can operate using dynamic proxies rather than statically pre-compiled stubs so you only need rmic if you have to support clients on Java 1.4 or earlier .", "Question : Well i decided to create RMI but faced with one problem . i put CLASSPATH to my jdk then i decided to make Stub with rmic . I wrote : 1 . rmic -classpath D : workspace Rmi.example bin rmi app AddServer -d D : workspace .. . .. . where i got such message : error : File D : workspace Rmi.example bin rmi app AddServer.class does not contai n type AddServer as expected but type rmi.app.AddServer . Please remove the file or make sure it appears in the correct subdirectory of the class path . error : Class AddServer not found . 2 errors Comment : Then i got the problem : rmic -classpath D : workspace Rmi.example b in rmi.app AddServer -d D : workspace error : Class AddServer not found . 1 error .. . Answer : You re supposed to run rmic from the base directory where your package starts . For example : rmic -classpath D : workspace Rmi.example bin rmi.app.AddServer -d D : workspace", "Question : Well i decided to create RMI but faced with one problem . i put CLASSPATH to my jdk then i decided to make Stub with rmic . I wrote : 1 . rmic -classpath D : workspace Rmi.example bin rmi app AddServer -d D : workspace .. . .. . where i got such message : error : File D : workspace Rmi.example bin rmi app AddServer.class does not contai n type AddServer as expected but type rmi.app.AddServer . Please remove the file or make sure it appears in the correct subdirectory of the class path . error : Class AddServer not found . 2 errors Comment : Then i got the problem : rmic -classpath D : workspace Rmi.example b in rmi.app AddServer -d D : workspace error : Class AddServer not found . 1 error .. . Answer : I understand your class AppServer is in rmi.app package Then your classpath must be D : workspace Rmi.example bin not D : workspace Rmi.example bin rmi app Comment : yeah i have rmi.app package Comment : rmic -classpath D : workspace RMIexample bin AddServer -d D : workspa ce error : Class AddServer not found . 1 error Comment : Is your project directory name RMIexample or RMI.example Also the class name must be rmi.app.AddServer", "Question : I am having trouble with my rmi classes . I have researched but dont understand the problem . After doing javac in command-line to compile the classes . I do : rmic RMIChatServerImpl .. . .. . then i get the following error : error : Class RMIChatServerImpl not found . I have added the jdk path to my environmental variables . JAVA HOME C : Program Files Java jdk1.7.0 09 bin PATH C : Program Files Java jdk1.7.0 09 bin TEMP USERPROFILE AppData Local Temp C : Program Files Java jdk1.7.0 09 bin C : Program Files Java jre7 bin .. . .. . thank you for any help .. . Answer : If ur working with eclipse there s a plugin for RMI that generates stubs easily http : www.genady.net rmi v20 downloads.html .. . .. . I also faced the same prob bt i could solve it through this way" ] }
[ "yes-answer-long", "yes-answer-short" ]
rmi
UNK_RELATION
hana-xs@server@118
hana-xs -- hana-xs also known as sap hana extended application services engine or xs engine is a web and application @placeholder embedded into sap hana .
{ "confidence": [ 118.54827117919922, 114.15194702148438, 103.08531188964844, 101.0493392944336, 97.41117095947266, 95.49242401123047, 93.08600616455078, 91.35305786132812, 89.53673553466797, 85.55619049072266, 79.39431762695312, 77.03768157958984, 71.86814880371094, 71.5314712524414, 71.08506774902344, 69.84503173828125, 69.6075439453125, 69.05372619628906, 68.39964294433594, 66.41588592529297, 65.29183959960938, 62.72480773925781, 60.59619140625, 60.59619140625, 60.59619140625, 57.48838806152344, 57.48838806152344, 56.329376220703125, 55.597007751464844, 53.866485595703125, 50.73695755004883, 50.73695755004883, 50.650779724121094, 50.05697250366211, 47.36335754394531, 47.35753631591797, 44.65263366699219, 42.313655853271484, 41.555789947509766, 36.50584030151367, 36.50584030151367, 34.44410705566406, 34.29930877685547, 33.460052490234375, 30.352252960205078, 29.215435028076172, 29.18939971923828, 28.100406646728516, 27.684146881103516, 26.746967315673828, 26.48731803894043, 25.806955337524414, 25.783910751342773, 25.783910751342773, 25.783910751342773, 25.622417449951172, 25.091476440429688, 25.091064453125, 24.55930519104004, 24.55930519104004, 24.315921783447266, 24.315921783447266, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.515533447265625, 23.425701141357422, 23.394744873046875, 22.214195251464844, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695, 20.407732009887695 ], "content": [ "Have projects of SAP UI 5 MVC SAP HANA XS .", "I am trying to create some xsodata services using SAP Hana XS Engine .", "In the SAP HANA developer guide SPS 07 it also says that the OData implementation in SAP HANA XS supports only those SQL types listed in the mentioned list table .", "I m trying to implement a file-upload in a UI5 application on a HANA XS Server .", "I m trying to implement simple product catalog using HANA XS Javascript .", "I hava a SAP HANA XS Server with some DB Tables and an OData service .", "I am sure SAP HANA is wiser than that .", "You are redirected to sap hana-xs formLogin login.html where you will login as a HANA user .. . You are redirected back to some app index.html now authenticated as the user you logged in as .", "I am a newbie for SAP I am using SAP HANA Studio .", "The following example of an OData service definition for SAP HANA XS shows how to prevent any modification to the table myTable that is exposed by the OData service .", "I am trying to make an XS project in HANA which will use some of the classes and methods that can be found in a .jar file .", "I just found the Orion API https : scn.sap.com community developer-center hana blog 2014 12 10 sap-hana-sps-09-new-developer-features-rest-api", "From the SAP HANA Developer Guide http : help.sap.com hana SAP HANA Developer Guide for SAP HANA Studio en.pdf : .. . .. . By default all entity sets and associations in an OData service are writeable that is they can be modified with a CREATE UPDATE or DELETE requests .", "But HANA XS uses database users and you can create and assigns roles to them to access certain database tables views execute procedures .", "I have an XSJS page served by HANA .", "In the SAP HANA developer guide there is a list explaining SQL - EDM Type mapping .. . .. . Missing is how to map from a SQL Type to Edm.Boolean anyone know how", "Please see example below : .. . .. . host : hanacloud .. . port : 8000 80 + instance number .. . .. . .. . SAP HANA Repository tree : .. . mdo - .. . sap - .. . sflight - .. . test - .. . test.xsjs .. . .. . .. . URL : hanacloud : 8000 mdo sap sflight test test.xsjs", "In SAP HANA developer guide one of the solutions to this problem is to enable CORS Cross Origin Resources Sharing .", "Are you searching for a Rest https : de.wikipedia.org wiki Representational State Transfer Service for HANA", "But not directly consuming xs services .", "I assume you are trying to authenticate yourself as a HANA user .", "You can of course create a table in HANA DB create a column-type BLOB and then build service on XS that allows you to upload file from your front-end .", "A workaround could be to use Edm.Byte instead of Edm.Boolean which is mapped to the TinyInt HANA SQL Type .", "How can I handle dynamic URLs based on data read from HANA database", "For example http : myapp store product-slug products are stored in HANA database and have unique slugs .", "I have some code in XSJS to populate Update my Hana DB based on some conditions .", "So the flow would be something like this : .. . .. . You visit some app index.html for which you need to be authenticated by HANA .", "But how can I configure HANA XSEngine so that it times out my web session after I have left it unused for a long time", "Before that you need to change the Database Trace configuration for XS-Engine under the Trace Configuration Section .", "XS Server does not and will not support Java .", "I am new to SAP HANA and trying to expose the .xsjs file data through the webbrowser with the following url : .. . .. . However I am getting the following error when I try to access it : .. . .. . This link seems to be broken We could not find the resource you re trying to access .", "You can find a lot more information about this in this http : help.sap.com saphelp hanaplatform helpdata en fa 8fb4512594494e98a138ef8b2206a9 content.htm frameset en 05 49991ea9984835b8c06c12123b7fe2 frameset.htm current toc en 34 29fc63a1de4cd6876ea211dc86ee54 plain.htm node id 67 show children false section SAP Hana Developer Guide .", "Actually my user has the required rights to execute all of the mentioned actions I created data using the SQL command-line in HANA Studio .", "I m trying to make a simple crud view on Hana cloud platform but I m stuck on the create part .", "To use this you just have to include the following in your .xsaccess file at the root of the package : .. . .. . This would route you to a Login page that comes with HANA where you can login .", "There is no ready-to-consume service from XS that allows you to do that .", "SAP UI5 is just a bunch of UI libraries that is specific to SAP applications .", "I have registered it as an external library but I have no idea how to call it from my XS javascript source files .", "EDIT .. . .. . This seems to be the right approach jointly figured out by the OP and myself : .. . .. . .. . .. . The .web.WebRequest class http : help.sap.com hana SAP HANA XS JavaScript API Reference en 24.web.WebRequest.html sends everything you set in the .parameters collection as an URL parameter even if the request method is POST .", "To beef up your skills I could recommend learning from the SAP UI5 walkthrough and the free open.sap.com course on UI5 .", "Please follow this link from sap community network to get answer : http : scn.sap.com thread 3496997", "On my researches I couldn t find an satisfying answer.Is there and if yes What are the ways to use Membership and Role provider in SAP UI", "This is a kind o single-page-application .", "You can create a router function on your application .", "The XSJS returns the JSON string as contentType application json .", "Post successful login it will redirect you back to your application .", "@k4yaman no I need to render static web pages", "I think the destination file is used to consume external services not to explose your services", "In my application I have to make a server request through AJAX to an XSJS file that queries tables and constructs a JSON string .", "The body of a application x-www-form-urlencoded type request follows the same rules as the URL - key-value pairs separated by characters .", "destination config http : i.stack.imgur.com j3NsV.png .. . .. . Edit 1 : I wanted to show my.xsaccess file for my services : .. . .. . I also can t send a http-request via Postman https : chrome.google.com webstore detail postman fhbjgbiflinjbdggehcddcbncdddomop .", "You can also specify if users have to be authenticated to access your application using an .xsaccess file http : help.sap.com saphelp hanaplatform helpdata en 5f e3b123826d4503aa66eb955a002821 content.htm fullscreen true", "The content of the service is .. . .. . But when I hit this url : example services example.xsodata testdb I get a 403 error .", "To extend it further I added .xsaccess file in services folder and added the same content as that mentioned above .", "my aim is to create an oDataModel https : sapui5.netweaver.ondemand.com docs api symbols sap.ui.model.odata.ODataModel.html and consume my services .", "There shouldn t be any membership role involvement in developing a UI5 application since the admin should be the one doing that .", "I am utterly confused here because I want to make the services without authentication for which i set authentication as null and it is not working .", "Also endure that the files are activated .", "As a first step I would suggest to try .. . .. . Once you get this running you know that the web access works .", "I know i can use console.log for normal javascript on web browser but it does not work on XSJS .", "I have created a .xsaccess file at global folder level which has the following content : .. . .. . I have a services folder inside my parent folder where I have created a test service .", "To try this even further I made the services .xsaccess to have this content .. . .. . This prompted me for username password and when i entered the values it showed me the correct data as I expected .", "Therefore Edm.Boolean is not supported .", "If you only want to have a true false or 0 1 value I think the TinyInt SQL Type is the closest you can get to a Boolean .", "thanks - I get that the SQL Types are predefined in ABAP and other techniques you can change the default Edm mappings via config thought there may have been something similar would be handy", "I had the same thought about using 0 1 then i remembered in js x 0 x true I know", "x false but want something that works out of the box", "@Jasper 07 so in the end - did it solve your problem", "In case yes would be happy if you mark it as answered : Thanks", "Pages of the catalog should be rendered on the server-side .", "On http : myapp index.html create a javascript function called getSlug .", "This function get the path url and split string based on the result will be : 0 store 1 product-slug .. . .. . Create a function to router the content .", "You need to have column in product table with slug .", "The router function will receive an array of slugs .", "On this function you need to implement the structure of your app .", "For example every time that fisrt item is store load html of products into the div .", "Every time that load this page call this function :", "I don t know enough about mailgun to put my finger on it my answer was based on my knowledge how web servers and HTTP requests work in general .", "This also happens when I modify your example and remove the school value from any row .", "I need to resolve the same-origin-policy restriction in JavaScript client-side SAPUI5 application that is consuming an OData service from a cross origin server .", "I want to navigate from one view to another.I get a table for job details on the home page.When I click on each individual job I want to get all its attributes in the next page .", "Below is the code for my component.js .. . .. . .. . .. . Below is my 1st view that generates the table in the home page- .. . .. . Below is the controller for the 1st view- .. . .. . Below is the 2nd view- .. . .. . Control is not navigating to the 2nd view..Please help Attached is my folder structure .. . .. .", "enter image description here http : i.stack.imgur.com hhYcR.png", "Please edit your title because it s not actually a question but rather a statement which doesn t make any sense .", "I would really suggest that you pick up some UI5 basics first .", "You re basically asking the same question as in stackoverflow.com q 38263086 2493603 http : stackoverflow.com q 38263086 2493603 which was answered quite elaborately .", "If you would have followed my advice of building an app using the webide template you would have a nice modern working example now instead of being stuck with some antique -style code .", "Because of that I have down voted your question .", "It might be misspelled or currently unavailable .. . .. . These are the files which I have created in the project explorer : .. . .. . MYSCHEMA.hdbschema .. . .. . trendsData.hdbtable .. . .. . orderId.hdbsequence .. . .. . retrieveData.xsjs .. . .. . All the above files were succesfully committed and activated with out any error .", "Still the error occurs in the webrowser .", "Are you sure that the URL you ve typed in the browser is properly built", "URL s should be built-in the following way : .. . .. . server : port repository path file name .. . .. . A wrong path may be causing your problem .", "Your port-number should be 8000 instead of 80 and make sure that is not blocked on the network which is usually case especially in office network", "Your select statement does not specify a schema .", "In addition the table s catalog name is usually package name : : table name .", "In addition your table definition has two columns with the same name and an invalid primary-key specification .", "Thus I would expect that the select fails .", "My next step would be to wrap everything into some try-catch like so .. . .. . This would then allow to pinpoint where exactly your code fails .", "Please do ensure that the .xsaccess and .xsapp files are present and the syntax .", "To verify if my .xsaccess if working fine I created a dummy html file in the same folder as example.xsodata service ." ] }
{ "confidence": [ 145.1282196044922, 137.53744506835938, 136.06394958496094, 135.25953674316406, 131.76998901367188, 122.25955963134766, 116.11650085449219, 107.24027252197266, 107.24027252197266, 105.50012969970703, 100.97657775878906, 98.44520568847656, 96.18397521972656, 92.96226501464844, 90.80693054199219, 89.66295623779297, 86.49324035644531, 85.0979995727539, 75.46080780029297, 55.20743942260742 ], "content": [ "Question : I am a newbie for SAP I am using SAP HANA Studio . Have projects of SAP UI 5 MVC SAP HANA XS . On my researches I couldn t find an satisfying answer.Is there and if yes What are the ways to use Membership and Role provider in SAP UI .. . Answer : As far as i know there is no membership role provider in UI 5 . But HANA XS uses database users and you can create and assigns roles to them to access certain database tables views execute procedures . You can also specify if users have to be authenticated to access your application using an .xsaccess file http : help.sap.com saphelp hanaplatform helpdata en 5f e3b123826d4503aa66eb955a002821 content.htm fullscreen true", "Question : I am a newbie for SAP I am using SAP HANA Studio . Have projects of SAP UI 5 MVC SAP HANA XS . On my researches I couldn t find an satisfying answer.Is there and if yes What are the ways to use Membership and Role provider in SAP UI .. . Answer : Can you maybe try to elaborate more on what your scenario use-case is I don t seem to be able to fully understand what you are trying to ask . SAP UI5 is just a bunch of UI libraries that is specific to SAP applications . There shouldn t be any membership role involvement in developing a UI5 application since the admin should be the one doing that .", "Question : I hava a SAP HANA XS Server with some DB Tables and an OData service . I am able to connect to the OData service and to read data . As soon as I try to Create Update Delete data I get the 403 - Forbidden Error . Actually my user has the required rights to execute all of the mentioned actions I created data using the SQL command-line in HANA Studio . When I try the same with the SYSTEM user I get the same result . .. . Answer : I am guessing that your OData service is defined to not allow modifications of the data . From the SAP HANA Developer Guide http : help.sap.com hana SAP HANA Developer Guide for SAP HANA Studio en.pdf : .. . .. . By default all entity sets and associations in an OData service are writeable that is they can be modified with a CREATE UPDATE or DELETE requests . However you can prevent the execution of a modification request by setting the appropriate keyword create update or delete with the forbidden option in the OData service definition . The following example of an OData service definition for SAP HANA XS shows how to prevent any modification to the table myTable that is exposed by the OData service . Any attempt to make a modification to the indicated table using a CREATE UPDATE or DELETE request results in the HTTP response status 403 FORBIDDEN .", "Question : I m trying to implement simple product catalog using HANA XS Javascript . Pages of the catalog should be rendered on the server-side . How can I handle dynamic URLs based on data read from HANA database For example http : myapp store product-slug products are stored in HANA database and have unique slugs . Comment : Are you searching for a Rest https : de.wikipedia.org wiki Representational State Transfer Service for HANA I just found the Orion API https : scn.sap.com community developer-center hana blog 2014 12 10 sap-hana-sps-09-new-developer-features-rest-api Comment : @k4yaman no I need to render static web pages .. . Answer : You can create a router function on your application . On http : myapp index.html create a javascript function called getSlug . This function get the path url and split string based on the result will be : 0 store 1 product-slug .. . .. . Create a function to router the content . You need to have column in product table with slug . The router function will receive an array of slugs . On this function you need to implement the structure of your app . For example every time that fisrt item is store load html of products into the div . This is a kind o single-page-application . Every time that load this page call this function :", "Question : In the SAP HANA developer guide there is a list explaining SQL - EDM Type mapping .. . .. . Missing is how to map from a SQL Type to Edm.Boolean anyone know how .. . Answer : In the SAP HANA developer guide SPS 07 it also says that the OData implementation in SAP HANA XS supports only those SQL types listed in the mentioned list table . Therefore Edm.Boolean is not supported . A workaround could be to use Edm.Byte instead of Edm.Boolean which is mapped to the TinyInt HANA SQL Type . If you only want to have a true false or 0 1 value I think the TinyInt SQL Type is the closest you can get to a Boolean . Comment : thanks - I get that the SQL Types are predefined in ABAP and other techniques you can change the default Edm mappings via config thought there may have been something similar would be handy Comment : I had the same thought about using 0 1 then i remembered in js x 0 x true I know x false but want something that works out of the box Comment : @Jasper 07 so in the end - did it solve your problem In case yes would be happy if you mark it as answered : Thanks", "Question : I m trying to implement a file-upload in a UI5 application on a HANA XS Server . I can t find many informations how to do that - somebody got an idea .. . Answer : There is no ready-to-consume service from XS that allows you to do that . You can of course create a table in HANA DB create a column-type BLOB and then build service on XS that allows you to upload file from your front-end . I hope that helps .", "Question : I have an XSJS page served by HANA . When I try to access it from a browser I need to go through a basic-authentication mechanism which is fine . So far so good . But how can I configure HANA XSEngine so that it times out my web session after I have left it unused for a long time I have configured xsengine - httpserver - sessiontimeout parameter to 30 I told it is in seconds but that does not help . So long as the browser remains open the session remains live . One trick I have is to close the browser . Another trick is to delete active login sessions in the browser-history . Both force me to re-login very nice . But these are so lame because they rely on a user action . I am sure SAP HANA is wiser than that . I will greatly appreciate your help . Is there a different parameter to set I am on SP07 . I run xsengine as a separate process . Thanks a lot . .. . Answer : Firstly You shouldn t be using Basic Auth at all . Here http : security.stackexchange.com questions 988 is-basic-auth-secure-if-done-over-https are http : adrianotto.com 2013 02 why-http-basic-auth-is-bad some http : swaggadocio.com post 48223179207 why-the-hell-does-your-api-still-use-http-basic-auth resources regarding that . You should look at using the other methods of login . I assume you are trying to authenticate yourself as a HANA user . For this you can use the super simple Form based authentication . To use this you just have to include the following in your .xsaccess file at the root of the package : .. . .. . This would route you to a Login page that comes with HANA where you can login . Post successful login it will redirect you back to your application . So the flow would be something like this : .. . .. . You visit some app index.html for which you need to be authenticated by HANA . You are redirected to sap hana-xs formLogin login.html where you will login as a HANA user .. . You are redirected back to some app index.html now authenticated as the user you logged in as . When you use something like this a proper session is maintained . At this point in time your setting of xsengine httpserver sessiontimeout will work . You can find a lot more information about this in this http : help.sap.com saphelp hanaplatform helpdata en fa 8fb4512594494e98a138ef8b2206a9 content.htm frameset en 05 49991ea9984835b8c06c12123b7fe2 frameset.htm current toc en 34 29fc63a1de4cd6876ea211dc86ee54 plain.htm node id 67 show children false section SAP Hana Developer Guide . Hope this helps . Please avoid using basic-authentication . Comment : Thanks Shrayas . Good point re form . Yes we first used form-based and then reduced level hoping to find a clue . If I enter an xsjs url in the browser addr bar it forces a re-login after N seconds . However if I have a webapp which was loaded with a login and the app makes an ajax call - to the very same xsjs url - then there is no call to re-login . Since mine is an SPA I am stuck . Any hints", "Question : I m trying to implement a file-upload in a UI5 application on a HANA XS Server . I can t find many informations how to do that - somebody got an idea .. . Answer : here s the simple implementation of a plain text file-upload : .. . .. . Client side js : .. . .. . And here s the serverside xsjs service :", "Question : I m trying to implement a file-upload in a UI5 application on a HANA XS Server . I can t find many informations how to do that - somebody got an idea .. . Answer : Try https : uploadcare.com I m using it to handle user uploads and really happy that I don t have to handle this myself .", "Question : I am trying to make an XS project in HANA which will use some of the classes and methods that can be found in a .jar file . These classes and methods will do some calculations and present it to the user in the UI . The question is : How do I access methods and classes of that .jar file I have registered it as an external library but I have no idea how to call it from my XS javascript source files . .. . Answer : XS Server does not and will not support Java . Only Javascript.. . Comment : You said that because of the java tag", "Question : I am trying to create some xsodata services using SAP Hana XS Engine . I have created a .xsaccess file at global folder level which has the following content : .. . .. . I have a services folder inside my parent folder where I have created a test service . The content of the service is .. . .. . But when I hit this url : example services example.xsodata testdb I get a 403 error . To verify if my .xsaccess if working fine I created a dummy html file in the same folder as example.xsodata service . If I hit that link it works fine and does not ask me any authentication . To extend it further I added .xsaccess file in services folder and added the same content as that mentioned above . It still gives 403 error to my example.xsodata service . To try this even further I made the services .xsaccess to have this content .. . .. . This prompted me for username password and when i entered the values it showed me the correct data as I expected . I am utterly confused here because I want to make the services without authentication for which i set authentication as null and it is not working . Please help me understand what am I missing here . Any help is really appreciable . .. . Answer : Answering my own question . Please follow this link from sap community network to get answer : http : scn.sap.com thread 3496997", "Question : I am trying to make an XS project in HANA which will use some of the classes and methods that can be found in a .jar file . These classes and methods will do some calculations and present it to the user in the UI . The question is : How do I access methods and classes of that .jar file I have registered it as an external library but I have no idea how to call it from my XS javascript source files . .. . Answer : there s no way to invoke external .jar package from XS s server-side JavaScript . You can use an external library using function .import but this is only valid for JavaScript library .", "Question : I am new to SAP HANA and trying to expose the .xsjs file data through the webbrowser with the following url : .. . .. . However I am getting the following error when I try to access it : .. . .. . This link seems to be broken We could not find the resource you re trying to access . It might be misspelled or currently unavailable .. . .. . These are the files which I have created in the project explorer : .. . .. . MYSCHEMA.hdbschema .. . .. . trendsData.hdbtable .. . .. . orderId.hdbsequence .. . .. . retrieveData.xsjs .. . .. . All the above files were succesfully committed and activated with out any error . Still the error occurs in the webrowser . .. . Answer : Are you sure that the URL you ve typed in the browser is properly built URL s should be built-in the following way : .. . .. . server : port repository path file name .. . .. . A wrong path may be causing your problem . Please see example below : .. . .. . host : hanacloud .. . port : 8000 80 + instance number .. . .. . .. . SAP HANA Repository tree : .. . mdo - .. . sap - .. . sflight - .. . test - .. . test.xsjs .. . .. . .. . URL : hanacloud : 8000 mdo sap sflight test test.xsjs", "Question : I am trying to make an XS project in HANA which will use some of the classes and methods that can be found in a .jar file . These classes and methods will do some calculations and present it to the user in the UI . The question is : How do I access methods and classes of that .jar file I have registered it as an external library but I have no idea how to call it from my XS javascript source files . .. . Answer : If you want to outsource some of your xsjs functions to an external library xsengine provides a special format for this called .xsjslib . You can import a library using the following code : .. . .. . access functions inside your lib by this path : Comment : Can you please explain this with an example . I m facing issues with importing even the existing packages like util .", "Question : I have some code in XSJS to populate Update my Hana DB based on some conditions . I am looking for a mechanism where I can print few comments to console or to some log file . I know i can use console.log for normal javascript on web browser but it does not work on XSJS . Some other implementation of Server Side JS like node.js gives echo command . Is there something similar for XSJS Thanks in advance . Comment : Do you just want to log it temporarily .. . Answer : Use .trace.debug Type your log comments here within the xsjs file and then you can see the logs in trace file under the Diagnosis File section for system . Before that you need to change the Database Trace configuration for XS-Engine under the Trace Configuration Section . Comment : yeah figured that out . . thanks for your reply though Answer here : scn.sap.com thread 3527125 http : scn.sap.com thread 3527125", "Question : I need to resolve the same-origin-policy restriction in JavaScript client-side SAPUI5 application that is consuming an OData service from a cross origin server . In SAP HANA developer guide one of the solutions to this problem is to enable CORS Cross Origin Resources Sharing . I tried to enable CORS following the instructions from the developer guide by adding the following configuration to the .xsaccess file : .. . .. . Yet CORS is not enabled Is there any further configuration I should consider Thanks .. . Answer : Add this parameter to your ajax-call and check :", "Question : I am new to SAP HANA and trying to expose the .xsjs file data through the webbrowser with the following url : .. . .. . However I am getting the following error when I try to access it : .. . .. . This link seems to be broken We could not find the resource you re trying to access . It might be misspelled or currently unavailable .. . .. . These are the files which I have created in the project explorer : .. . .. . MYSCHEMA.hdbschema .. . .. . trendsData.hdbtable .. . .. . orderId.hdbsequence .. . .. . retrieveData.xsjs .. . .. . All the above files were succesfully committed and activated with out any error . Still the error occurs in the webrowser . .. . Answer : Please do ensure that the .xsaccess and .xsapp files are present and the syntax . Also endure that the files are activated .", "Question : I am new to SAP HANA and trying to expose the .xsjs file data through the webbrowser with the following url : .. . .. . However I am getting the following error when I try to access it : .. . .. . This link seems to be broken We could not find the resource you re trying to access . It might be misspelled or currently unavailable .. . .. . These are the files which I have created in the project explorer : .. . .. . MYSCHEMA.hdbschema .. . .. . trendsData.hdbtable .. . .. . orderId.hdbsequence .. . .. . retrieveData.xsjs .. . .. . All the above files were succesfully committed and activated with out any error . Still the error occurs in the webrowser . .. . Answer : Your port-number should be 8000 instead of 80 and make sure that is not blocked on the network which is usually case especially in office network", "Question : I am new to SAP HANA and trying to expose the .xsjs file data through the webbrowser with the following url : .. . .. . However I am getting the following error when I try to access it : .. . .. . This link seems to be broken We could not find the resource you re trying to access . It might be misspelled or currently unavailable .. . .. . These are the files which I have created in the project explorer : .. . .. . MYSCHEMA.hdbschema .. . .. . trendsData.hdbtable .. . .. . orderId.hdbsequence .. . .. . retrieveData.xsjs .. . .. . All the above files were succesfully committed and activated with out any error . Still the error occurs in the webrowser . .. . Answer : Your select statement does not specify a schema . In addition the table s catalog name is usually package name : : table name . In addition your table definition has two columns with the same name and an invalid primary-key specification . Thus I would expect that the select fails . As a first step I would suggest to try .. . .. . Once you get this running you know that the web access works . My next step would be to wrap everything into some try-catch like so .. . .. . This would then allow to pinpoint where exactly your code fails .", "Question : null .. . Answer : I m trying to make a simple crud view on Hana cloud platform but I m stuck on the create part . I have my hdbdata defined in the following way .. . .. . And i have the method in my controller defined like this .. . .. . But no matter how i try to set Name i get an error .. . .. . 31 15 : 01 : 34 The following problem occurred : HTTP request failed400 Bad Request error : code : message : lang : en-US value : Request contains properties that do not exist in entity UsersType . - .. . .. . .. . Can anyone help me out on how to get the name across to the create procedure Comment : The error seems to point to properties mismatch between what is sent by the client and what the server is expecting . I would start by checking the create procedure works without the name property . If so then I would try adding a sample Initials property to the request to see if that helps ." ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
underscore.js-templating@templating@62
underscore.js-templating -- this tag is specifically for the @placeholder system questions with underscore.js s .template function .
{ "confidence": [ 49.242218017578125, 43.252262115478516, 42.08208465576172, 41.6234130859375, 41.6234130859375, 39.50358963012695, 39.4737548828125, 37.3773078918457, 36.58366775512695, 36.540008544921875, 36.53151321411133, 35.61623001098633, 34.9622917175293, 33.16870880126953, 32.04694366455078, 31.76909637451172, 30.870237350463867, 29.947860717773438, 29.9425106048584, 29.76898956298828, 29.69455337524414, 28.977516174316406, 28.827129364013672, 28.213438034057617, 28.181114196777344, 28.11557388305664, 28.108875274658203, 27.99230194091797, 27.86102294921875, 27.86102294921875, 27.7352294921875, 27.585514068603516, 27.585514068603516, 27.460857391357422, 27.460857391357422, 27.311431884765625, 27.22999382019043, 26.881229400634766, 26.641887664794922, 26.4210205078125, 26.4210205078125, 26.4210205078125, 26.11677360534668, 26.111413955688477, 25.999832153320312, 25.989177703857422, 25.9605712890625, 25.877361297607422, 25.877361297607422, 25.825498580932617, 25.75218963623047, 25.667869567871094, 25.66580581665039, 25.4207706451416, 25.2847900390625, 25.091655731201172, 25.080333709716797, 25.05712127685547, 25.015155792236328, 25.007572174072266, 24.994321823120117, 24.937732696533203, 24.937732696533203, 24.75727653503418, 24.75727653503418, 24.75727653503418, 24.75727653503418, 24.75727653503418, 24.75727653503418, 24.6274356842041, 24.519851684570312, 24.443021774291992, 24.443021774291992, 24.443021774291992, 24.443021774291992, 24.443021774291992, 24.443021774291992, 24.443021774291992, 24.206249237060547, 24.206249237060547, 24.138330459594727, 24.087350845336914, 24.087350845336914, 23.95860481262207, 23.95860481262207, 23.851049423217773, 23.808048248291016, 23.77593231201172, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.67830467224121, 23.63435173034668 ], "content": [ "I m currently using underscore.js for templating in a project templates are stored in script tags with a type of text template and loaded by id .", "I am new to underscore.js .", "I am doing this in underscore.js using their templating system but I ve also tested this with just jquery as well to the same effect .", "Try to do var require cloud underscore.js", "Try to do var require cloud underscore.js", "Below is my underscore.js template that populates my calendar : .. . .. . You can see in those code that I m trying to utilise the event.class inside the day function .", "I m building a webapp using underscore.js to create the templates .", "CSP complains with an error message whenever templating occurs in underscore.js as I believe it makes use of a no-no being the js code new Function .. . .", "For example if you wanted to use .. . instead of .. . then do this after underscore.js is loaded and before you use .template : .. . .. . Demo : http : jsfiddle.net ambiguous TfB5M", "The issue was a result-of PDFMake also including underscore.js however at a lower version .", "Working example : .. . .. . HTML : .. . .. . JavaScript+Underscore.js : .. . .. . You will notice that this console logs the div with the filtered model id : 1 inside it .", "So I ve looked at relevant seeming questions on stack-overflow such as underscore.js nested templates http : stackoverflow.com questions 8938841 underscore-js-nested-templates and googled around a bit .", "The documentation http : underscorejs.org template isn t explicit about what order the regexes are applied in but the source code is https : github.com jashkenas underscore blob 1.5.2 underscore.js L1171 : .. . .. . In particular interpolate will be matched before evaluate .", "You can change underscore.js delimiters as it says it their site : .. . .. . If ERB-style delimiters aren t your cup of tea you can change Underscore s template settings to use different symbols to set off interpolated code .", "I am trying to include underscore.js in my parse cloud-code as below .. . .. . And this is the code that use its function .. . .. . But it s giving me following response .. . .. . Any idea why", "I can t figure out how to make the underscore loop work.. . .. . .. . in success I ve this this code : .. . .. . I use underscore.js for the templating part but I can t figure out why my data isn t available outside that .each loop.. . .. . .. . here my template :", "With those template settings a template like this : .. . .. . should work .", "Try passing an object to .template instead of just a value like so .. . .. . .. . var result user : a user : b .. . cc test .html .template tpl vgroup row test .html result : result .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.0 jquery.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.3 underscore-min.js script .. . .. . div id cc test div .. . script type text template id tpl vgroup row test .. . result .. . result 0 .user .. . result 1 .user .. . script", "In this case better format data before send it to template .. . .. . .. . var data .. . id : 1 .. . deleteSessions : X0101 .. . mappedSessions : ABC123 EDF092 X0101 .. . .. . .. . var template .template tmpl .html .. . var sessions .map data.mappedSessions function session .. . return .. . isHidden : .indexOf data.deleteSessions session 0 .. . value : session .. . .. . .. . .. . .js-output .html template sessions : sessions .. . .. . .. . .is-hidden .. . color : red .. . .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.0 jquery.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.3 underscore.js script .. . .. . script type text html id tmpl .. . .each sessions function session .. . p class if session.isHidden is-hidden .. . Mapped Entry u session.value u Available .. . p .. . .. . script .. . .. . div class js-output div", "this would allow you to have a more generic templating system less cumbersome but more difficult to code .", "First of all I suggest you to keep your template in script type text template .. . script-tag .", "While in the process of adding HTML5 export functionality https : datatables.net extensions buttons examples html5 simple.html to jQuery s dataTables I noticed that one of the required plugins PDFMake http : pdfmake.org conflicts with my current usage of underscore.js-templating .", "For example : .. . .. . I gave it a try but underscorejs template evaluates it as a literal instead of variable is there any way to do templating with underscore if the provided variable contains such integer key in it", "In general : .. . .. . You re just passing the template function to jQuery s html : .. . .. . When you hand html http : api.jquery.com html html-function a function it calls the function but not with the arguments a template function expects : .. . .. . .html function .. . Type : Function Integer index htmlString oldhtml htmlString .. . .. . A function returning the HTML content to set .", "Everything in your template is inside that function .", "In your example you can access property through a . - .. . .. . Check this fiddle https : jsfiddle.net xjz2qh13 .. . .. . If you want to use Backbone.Collection when you should create Car Collection and Car Model : .. . .. . .. . var data .. . id : 1 .. . model : ford .. . .. . id : 2 .. . model : kia .. . .. . .. . var CarView Backbone.View.extend .. . el : main .. . template : .template templ .html .. . initialize : function .. . this.render .. . .. . render : function .. . return this . el.html this.template new CarCollection data .. . .. . .. . .. . var CarModel Backbone.Model.extend .. . defaults : .. . id : .. . model : .. . .. . .. . .. . var CarCollection Backbone.Collection.extend .. . model : CarModel .. . .. . .. . var carView new CarView .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.3 underscore.js script .. . script src https : cdnjs.cloudflare.com ajax libs backbone.js 1.3.3 backbone.js script .. . .. . div class container .. . div class form-inline panel panel-default .. . div class form-group id main .. . .. . div .. . div .. . div .. . .. . script type text template id templ .. . .each models function car .. . div class form-group .. . input class form-control .. . car.get model .. . div .. . .. . script", "If I feed underscore template with an object like .. . .. . then in template I can iterate over it using .each key2 function .", "Probable duplicate : stackoverflow.com questions 8366733 http : stackoverflow.com questions 8366733 external-template-in-underscore", "Right now I have my template inside a tag in my index.html.. .", "But it wraps the option tag within the ClientData template within another option .", "It returns a template function that accepts the data and returns the actual HTML .", "It seems I m missing something cause I see the template tag rendered but none of my items are there .", "Your problem is that the template you are using to render each model contains the form tag which shouldn t be repeated for every model .", "As far as you hasn t overwritten the Underscore.templateSettings.evaluate https : github.com documentcloud underscore blob master underscore.js L938-942 setting you should still can use : .. . for evaluate code .", "The best way to get around this limitation seems to be overriding Underscore s .escape and .unescape https : github.com jashkenas underscore blob a315e9f4473005a8310540b16d565519a9556106 underscore.js L1191-L1198 but that actually seems like a terrible idea and not something I want to do .", "index.jsp .. . .. . You can see that for binding I m using symbol .. . .. . rather than .. . .. . for that I have modified my underscore js file : .. . .. . underscore.js .. . .. . I can see when I receive index.jsp in a browser the code of template is unresolved : .. . .. .", "Here s my template : .. . .. . Here s my function :", "underscorejs.org template http : underscorejs.org template", "For example to perform Mustache.js-style templating : .. . .. . .. . .templateSettings .. . interpolate : .+", "The solution was simple : .. . var template .template .unescape this.el.innterHTML .", "@B lint underscorejs.org template http : underscorejs.org template", "See the .template documentation http : underscorejs.org template for details .", "The .template http : underscorejs.org template method has a breaking change in recent versions 1.7.0 onward .. . .. . Now the second argument of .template is a settings object not the data for template .", ".template converts your template text to a function so you ll have something like function var myVar 1 .. . and you can only access myVar from inside the function .", "What you re doing is the same as saying : .. . .. . You want to say : .. . .. . so that the stuff in data is passed to the template function .", "Then in your template", "This question already has an answer here : .. . .. . Underscore template throwing variable not defined error questions 25881041 underscore-template-throwing-variable-not-defined-error 2 answers .. . .. . Just playing with Backbone and Underscore I ran across this error : .. . .. . Here s the whole code : .. . .. . .. . DOCTYPE html .. . head .. . title Router Example title .. . script src https : code.jquery.com jquery-2.1.3.min.js type text javascript script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.2 underscore-min.js type text javascript script .. . script src https : cdnjs.cloudflare.com ajax libs backbone.js 1.1.2 backbone-min.js type text javascript script .. . head .. . body .. . script type text template id search template .. . label search label label .. . input type text id search input .. . input type button id search button value Search .. . script .. . div id search container div .. . script type text javascript .. . var SearchView Backbone.View.extend .. . initialize : function .. . this.render .. . .. . .. . render : function .. . var variables search label : My Search .. . .. . var my template .template search template .html variables .. . .. . this . el.html my template .. . .. . .. . .. . var search view new SearchView el : search container .. . script .. . body .. . html .. . .. . Why is it complaining about the search label and how can it be resolved", "Do I do something like : .. . .. . or do I bind the input elements directly in the template and then set the value for the select s in the view", ".. . .. . Note that this semicolon trickery is also why your if s must include braces in an Underscore template even if JavaScript doesn t require them .", "I tried with this question http : stackoverflow.com questions 13057330 set-lodash-underscore-template-settings-globally-using-require-js to override template function globally using require function and it works well for templateSetting .", "How to use underscore java template library for using template in java .", "But getting with plain template not parsed template like this title .. . .. . How do we acheive adding wrap some HTML tag with .template string content", "For example if you say this : .. . .. . and then look at t.source which .template http : underscorejs.org template conveniently sets for you you ll see something like this : .. . .. . so your var myVar is inside the template function and myVar only exists within the scope of that function and you can t get at it from outside the function .", "Need some opinions on the best way to manage templating in Underscore .", "For outputting a simple variable EJS and underscore have a great syntax of .. . .. . Where the is the critical part that document.write s it out into the template .", "e.g .. . .. . Sample object within my templateData object .. . .. . I can get the .where function to work externally but there is something about the format that that the template function requires that is getting tripped up .", "You need to keep a reference to the original template function :", "stackoverflow.com questions 4778881 http : stackoverflow.com questions 4778881 how-to-use-underscore-js-as-a-template-engine has quite a few solutions too .", "Second parameter of underscore s template http : underscorejs.org template is template settings not the data .", "My template is : .. . .. . The error raised in Firebug is : .. . .. .", "Underscore templates have three distinct regexes http : underscorejs.org template : .. . .. . Define an interpolate regex to match expressions that should be interpolated verbatim an escape regex to match expressions that should be inserted after being HTML escaped and an evaluate regex to match expressions that should be evaluated without insertion into the resulting string .", "I found out the problem : I used .innerHTML function to retrieve my template content and it was converting some characters to html-entities : being one of them .", "Both of these pages are calling the same generic function using exactly the same data but one works fine and the other throws a reference error for one of the template variables .", "you can pass .values data to template can you show your template", "Since my template was an actual HTML element retrieving the template code using innterHTML returned a string with html-entities encoded .", "why does template is still returning the template with the former model whereas I passed it the updated one .", "A ReferenceError from a compiled template generally means that you re not supplying values for everything the template uses but that doesn t seem to be the case here .", "Library : https : github.com javadev underscore-java .. . .. . Sample Template : .. . .. . How can populate this template in java .", "For simple requirements I might just go with the intermediate solution having a template for the overall form and a template for individual TimesheetRows", "g .. . .. . .. . var template .template Hello name", "I am using the brackets IDE and when I copy and paste the source code from GITHUB in a file name underscore.js in my local directory to use it in my page and save it it shows errors...I have attached the screen shot of the errors below. .", "And how would you do it inside a template", "Your templateSettings don t match your template .", "What does your template really look like", "Finally I compile the template with the model and I render it .", "And why the browser doesn t display the string returned by template", "How do I write this in the underscore template", "On AddMyModel render the child template and append it inside the form .", "Long answer : when you compile an Underscore template you get a function back .", "As shown I worked it out injecting the translate function into all the template as a view helper .", "what you are looking at is strictly speaking not backbone but an underscore template : underscorejs.org template http : underscorejs.org template", "for instance if we say we have this in our javascript file : .. . .. . And in our html template file .. . .. . Would it be better not to evaluate the data in the template", "@Kneel-Before-ZOD by the way have template : .template search template .html in view definition and do this . el.html this.template variables inside render.. .", "Then it is complete by this template being added to the TimesheetForm template which it already does .", "I have HTML template files underscore template syntax .. . 2 .", "This question already has an answer here : .. . .. . Underscore template throwing variable not defined error questions 25881041 underscore-template-throwing-variable-not-defined-error 2 answers .. . .. . I have spent 2 days on the issue and can t seem to find the reason why the name value is not being passed to the underscore template .", "You used to be able to parse and fill in an Underscore template in one go like this : .. . .. . But as of Underscore 1.7.0 the second argument to .template http : underscorejs.org template contains template options : .. . .. . template .template templateString settings .. . .. . Compiles JavaScript templates into functions that can be evaluated for rendering .", "Anyway this does not seem to be connected to backbone which to be precise does not come with a templating-engine .", "The list is populated by a nested template that takes care of the list items .", "Here is the JS logic : .. . .. . Here is the template : .. . .. . NOTE : Both of these code-snippets are simplified", "Why do you have a newline after the return in get template", "Your template should be inside a script as mu is too short mentioned .", "How would I do an item lookup in the underscore template", "I console.log the model and the string that template returns and they do NOT match .", "But the issue doesn t appear to be with the data it appears to be it can t find the template variable right", "Render the master template on view initialize and keep listening to collection add events .", "I can t get a simple switch-statement working in my underscore template .", "The problem is that Underscore will add semicolon terminators when converting your template to JavaScript .", "Handlebars Template .. . .. . JS" ] }
{ "confidence": [ 51.54911804199219, 50.1771125793457, 49.747962951660156, 47.64933776855469, 47.35488510131836, 46.27325439453125, 45.619590759277344, 45.070404052734375, 44.97614669799805, 44.21647644042969, 43.76689910888672, 42.39192199707031, 42.00871276855469, 41.8583984375, 41.51839065551758, 40.144779205322266, 38.85681915283203, 38.027103424072266, 37.99497985839844, 37.266204833984375 ], "content": [ "Question : I m currently using underscore.js for templating in a project templates are stored in script tags with a type of text template and loaded by id . I m wondering if it s possible to continue to use the same system but move the templates to a separate file The only way I can think about doing this is declaring the templates as global vars in a separate file but that seems ugly . Note : I don t want to use Jammit or some other build-system for mashing everything together into a single file at deployment time wondering if there s another solution . Comment : Probable duplicate : stackoverflow.com questions 8366733 http : stackoverflow.com questions 8366733 external-template-in-underscore .. . Answer : I personally use RequireJS to load my templates into a module but if you re looking for something else you can use Ajax . As long as your templates are located on the same domain you can get them through an ajax request . I fail back to the following code if whomever using my widget isn t using an AMD compatible library : .. . .. . This assumes you re using jQuery as well but the principle is the same if you re using something else .", "Question : I m using the CLNDR.js plugin to create a nice mini calendar . I need to be able to access a value in an event function inside a day function . Let me try and explain below : .. . .. . This is my JS code that populates the calendar . You ll see inside my JSON that I m trying to add a class : bank-holiday to the array of properties . Below is my underscore.js template that populates my calendar : .. . .. . You can see in those code that I m trying to utilise the event.class inside the day function . Is there a way to do this You can see in the above code that the event function is being used to show event.url event.title etc . .each days function day div class event.class day.classes id day.id day.day div .. . .. . Thanks in advance for any help with this .. . .. . Andy .. . Answer : You can change underscore.js delimiters as it says it their site : .. . .. . If ERB-style delimiters aren t your cup of tea you can change Underscore s template settings to use different symbols to set off interpolated code . Define an interpolate regex to match expressions that should be interpolated verbatim an escape regex to match expressions that should be inserted after being HTML-escaped and an evaluate regex to match expressions that should be evaluated without insertion into the resulting string . You may define or omit any combination of the three . For example to perform Mustache.js-style templating : .. . .. . .. . .templateSettings .. . interpolate : .+ g .. . .. . .. . var template .template Hello name .. . template name : Mustache .. . Hello Mustache .. . .. . Source : http : underscorejs.org Comment : Not sure this is the right thing to use The data is already being loaded inside the event function further down the page . There s no issue with the delimiters I just want to use a different functions properties inside another Comment : I misinterpreted your question then but I still don t understand the issue . Maybe you want to loop-load loading A using B but you need A to load B Comment : In the code you can see that i ve used event . and day . properties to display data . I need to use event.class inside the day template", "Question : I m retrieving a JSONp file with jQuery s .ajax . I can t figure out how to make the underscore loop work.. . .. . .. . in success I ve this this code : .. . .. . I use underscore.js for the templating part but I can t figure out why my data isn t available outside that .each loop.. . .. . .. . here my template : .. . Answer : You have use the var keyword twice . Inside the loop you have : .. . .. . var dataResp response which creates a new variable called dataResp . Since variables have function scope in js this variable only exists in the function in which it is created . The solution is to switch it to dataResp response without the var", "Question : I m trying to use backbone to show on a page the result from an API call I would like to iterate over the collection and create one entry for every element of the collection within my html . It seems I m missing something cause I see the template tag rendered but none of my items are there . What s the problem with my code here the html .. . .. . and here js .. . .. . here the fiddle : https : jsfiddle.net e5hg6rzp 3 Comment : Your code working with barely any modifications : jsfiddle.net 962djtp1 https : jsfiddle.net 962djtp1 -- i should state : please move your template into a script Comment : @JavierBuzzi thanks looking through your fiddle helped me fix mine and now everything seems to work very well .. . Answer : First of all I suggest you to keep your template in script type text template .. . script-tag . Secondly you are using .get method inside your template on plain objects which are do not have this method . In your example you can access property through a . - .. . .. . Check this fiddle https : jsfiddle.net xjz2qh13 .. . .. . If you want to use Backbone.Collection when you should create Car Collection and Car Model : .. . .. . .. . var data .. . id : 1 .. . model : ford .. . .. . id : 2 .. . model : kia .. . .. . .. . var CarView Backbone.View.extend .. . el : main .. . template : .template templ .html .. . initialize : function .. . this.render .. . .. . render : function .. . return this . el.html this.template new CarCollection data .. . .. . .. . .. . var CarModel Backbone.Model.extend .. . defaults : .. . id : .. . model : .. . .. . .. . .. . var CarCollection Backbone.Collection.extend .. . model : CarModel .. . .. . .. . var carView new CarView .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.3 underscore.js script .. . script src https : cdnjs.cloudflare.com ajax libs backbone.js 1.3.3 backbone.js script .. . .. . div class container .. . div class form-inline panel panel-default .. . div class form-group id main .. . .. . div .. . div .. . div .. . .. . script type text template id templ .. . .each models function car .. . div class form-group .. . input class form-control .. . car.get model .. . div .. . .. . script Comment : Thanks I put the template tags and I m rendering my collection now with .toJSON method I can access objects attributes . I needed to add some other stuff like rendering the view after the collection is reset . Now everything seems just right . Comment : @MattiaProcopio please check answer as correct if it was helpful thanks .", "Question : I have some dummy-data with 2 arrays the arrays will have some duplicated values . In my template I want to compare the 2 arrays and add a visibility class is-hidden to any that match as duplicates but I m not sure how to loop both arrays and do the matching Can I run isEqual against the 2 in some kind of each loop Handlebars Template .. . .. . JS .. . Answer : In this case better format data before send it to template .. . .. . .. . var data .. . id : 1 .. . deleteSessions : X0101 .. . mappedSessions : ABC123 EDF092 X0101 .. . .. . .. . var template .template tmpl .html .. . var sessions .map data.mappedSessions function session .. . return .. . isHidden : .indexOf data.deleteSessions session 0 .. . value : session .. . .. . .. . .. . .js-output .html template sessions : sessions .. . .. . .. . .is-hidden .. . color : red .. . .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.0 jquery.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.3 underscore.js script .. . .. . script type text html id tmpl .. . .each sessions function session .. . p class if session.isHidden is-hidden .. . Mapped Entry u session.value u Available .. . p .. . .. . script .. . .. . div class js-output div", "Question : I m retrieving a JSONp file with jQuery s .ajax . I can t figure out how to make the underscore loop work.. . .. . .. . in success I ve this this code : .. . .. . I use underscore.js for the templating part but I can t figure out why my data isn t available outside that .each loop.. . .. . .. . here my template : .. . Answer : you can use the .map function which returns a new array . I am assuming you want an object returned with those values . This code will return an array of objects each object will contain the prodName prodUri prodPrice and prodImg . Comment : thank you . Didn t know about the mapping . Mapping works but when I try to loop and then append data it appends 1 object and it s empty.. . Comment : whoa never mind I ve found out what was the error . Thank you again fayzaan Comment : alright good to know . no problem .", "Question : While in the process of adding HTML5 export functionality https : datatables.net extensions buttons examples html5 simple.html to jQuery s dataTables I noticed that one of the required plugins PDFMake http : pdfmake.org conflicts with my current usage of underscore.js-templating . I was wondering if anyone else had encountered this issue or has any insight as to how to resolve this conflict . .. . Answer : The issue was a result-of PDFMake also including underscore.js however at a lower version . I was able to resolve this conflict by simply including the newer version of underscore after the inclusion of PDFMake . This restored functionality for the rest of the app and didn t seem to effect PDFMake . Comment : I had the same problem . It s related to github.com bpampuch pdfmake pull 443 https : github.com bpampuch pdfmake pull 443 . This pull request solved it . Too bad that it s not yet committed.. .", "Question : I m having an issue where JavaScript operators in my UnderscoreJS Template are escaped and therefore unusable . Escaped characters that I found are . I ve looked for another similar issue but couldn t find any . Where is the problem My template is : .. . .. . The error raised in Firebug is : .. . .. . Firebug error http : i.stack.imgur.com hN9OM.png .. . .. . Here s my view : .. . .. . Thanks .. . Answer : Your template should be inside a script as mu is too short mentioned . Additionally your evaluate regular expression is incorrect because . doesn t match newlines . You can try : . n instead . Finally you should close your function body with a bracket and your function-call list with a parentheses . Working example : .. . .. . HTML : .. . .. . JavaScript+Underscore.js : .. . .. . You will notice that this console logs the div with the filtered model id : 1 inside it .", "Question : I am trying to include underscore.js in my parse cloud-code as below .. . .. . And this is the code that use its function .. . .. . But it s giving me following response .. . .. . Any idea why Comment : it looks like the variable is not present or assigned . var require .. . Or did you do the assignment at a different place in code Comment : It point to error where .uniq 1 5 4 4 5 2 1 1 3 2 2 3 4 1 is defined . Comment : you try to execute uniq on and since seems not to be defined .uniq will not work . Try to do var require cloud underscore.js Comment : Thank u now it s working.. . .. . Answer : To make it more obvious for others and to give you a chance to mark this as answered : .. . .. . It looks like the variable is not assigned . You try to execute uniq on and since seems not to be defined .uniq will not work . Try to do var require cloud underscore.js", "Question : This is my js code : .. . task.js .. . .. . template.html .. . .. . But chrome console shows me this : .. . .. . What s wrong .. . Answer : Try passing an object to .template instead of just a value like so .. . .. . .. . var result user : a user : b .. . cc test .html .template tpl vgroup row test .html result : result .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.0 jquery.min.js script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.3 underscore-min.js script .. . .. . div id cc test div .. . script type text template id tpl vgroup row test .. . result .. . result 0 .user .. . result 1 .user .. . script Comment : @ Alexander thanks", "Question : I had to replace the default underscore teplating delimiters Interpolate regex for compatibility with asp.net webforms.From the website i opted for mustache like syntax .. . .. . tried this .. . .. . .template if loggedIn Welcome name name : James completed : true .. . .. . but seems this is not the way since a error occurred to check boolean-expression using a templating system . But from the docs seems it is possible .. . .. . as well as execute arbitrary JavaScript code with .. . .. . So how do i execute arbitrary js code with the above mentioned interpolation .. . Answer : As far as you hasn t overwritten the Underscore.templateSettings.evaluate https : github.com documentcloud underscore blob master underscore.js L938-942 setting you should still can use : .. . for evaluate code . I have seen attempts to also define the Underscore.templateSettings.evaluate setting to match with Mustache syntax but Mustache fights very strong against template evaluations so is gonna be difficult . Comment : hmm so using a dedicated templating library is best i got to do : Comment : If you really want Mustache then without a doubt you need use a dedicated templating library . But remember the origin of this thread was your need of execute arbitrary js code in your templates and Mustache is not gonna like this : . . although Mustache is very friendly with simple boolean blocks . Comment : Yeah i am not going to hijack the post . I will look for solution until this gets answered Surprisingly this too does not work . hmm seems i am doing something terribly wrong here .template if completed Welcome name name : James completed : true Comment : I have found how it works you have to do below .template if completed Welcome name name : James completed : false", "Question : null .. . Answer : So I ve looked at relevant seeming questions on stack-overflow such as underscore.js nested templates http : stackoverflow.com questions 8938841 underscore-js-nested-templates and googled around a bit . However I haven t been able to get the answer I m looking for or perhaps I don t understand it . But here what I m working with : .. . .. . I have a container template that has a search-box and a wrapper for a list . The list is populated by a nested template that takes care of the list items . The search-box filters the list down . However as I do this I also want to remove the nested views that do not match the search criteria . I have the working but the problem is that every time I type a character both templates get updated which means even the search control itself gets reset every time . I ve managed to hack around this by passing the value of the search-box back around and programatically injecting it into the search again . This method feels dirty though and is error prone . Ideally I d like to just refresh the lists and leave everything in the containing template alone . Here is the JS logic : .. . .. . Here is the template : .. . .. . NOTE : Both of these code-snippets are simplified Comment : Yes I guess I m a little unfamiliar on how to do exactly that .", "Question : I m using the CLNDR.js plugin to create a nice mini calendar . I need to be able to access a value in an event function inside a day function . Let me try and explain below : .. . .. . This is my JS code that populates the calendar . You ll see inside my JSON that I m trying to add a class : bank-holiday to the array of properties . Below is my underscore.js template that populates my calendar : .. . .. . You can see in those code that I m trying to utilise the event.class inside the day function . Is there a way to do this You can see in the above code that the event function is being used to show event.url event.title etc . .each days function day div class event.class day.classes id day.id day.day div .. . .. . Thanks in advance for any help with this .. . .. . Andy .. . Answer : It looks like you need to loop through the days variable and then there is an events key . Using this you can access the classes .", "Question : This question already has an answer here : .. . .. . Underscore template throwing variable not defined error questions 25881041 underscore-template-throwing-variable-not-defined-error 2 answers .. . .. . Just playing with Backbone and Underscore I ran across this error : .. . .. . Here s the whole code : .. . .. . .. . DOCTYPE html .. . head .. . title Router Example title .. . script src https : code.jquery.com jquery-2.1.3.min.js type text javascript script .. . script src https : cdnjs.cloudflare.com ajax libs underscore.js 1.8.2 underscore-min.js type text javascript script .. . script src https : cdnjs.cloudflare.com ajax libs backbone.js 1.1.2 backbone-min.js type text javascript script .. . head .. . body .. . script type text template id search template .. . label search label label .. . input type text id search input .. . input type button id search button value Search .. . script .. . div id search container div .. . script type text javascript .. . var SearchView Backbone.View.extend .. . initialize : function .. . this.render .. . .. . .. . render : function .. . var variables search label : My Search .. . .. . var my template .template search template .html variables .. . .. . this . el.html my template .. . .. . .. . .. . var search view new SearchView el : search container .. . script .. . body .. . html .. . .. . Why is it complaining about the search label and how can it be resolved Thank you . .. . Answer : The .template http : underscorejs.org template method has a breaking change in recent versions 1.7.0 onward .. . .. . Now the second argument of .template is a settings object not the data for template . It returns a template function that accepts the data and returns the actual HTML . So you should do Comment : Thanks.....that simple knowledge fixed the issue . Comment : @Kneel-Before-ZOD by the way have template : .template search template .html in view definition and do this . el.html this.template variables inside render.. . Somewhat more readable and consistent imo.. . Comment : Okay.....will keep that in mind", "Question : I have been working on a web application for the past couple of years and have recently gone to make it more secure by adding Content Security Policy . I have been able to remedy most of the issues I have found but I have been unable to solve one remaining issue . CSP complains with an error message whenever templating occurs in underscore.js as I believe it makes use of a no-no being the js code new Function .. . . I have seen other recommendations on the web being basically : .. . .. . Use an engine to precompile the template eg Grunt-inline-template-compile https : www.npmjs.com package grunt-inline-template-compile This is useful for when you have your template strings inline mine are all in the actual html in tags so this wouldn t be possible without drastic content moving around . Switch to another templating-engine this option would be more appealing to the previous but I am afraid it will break all the many lines of templating syntax of underscore and be a huge job in itself . Are there any other options people are aware of .. . Answer : Try setting the Content-Security-Policy header to unsafe-eval for scripts from your domain as a temporary workaround . http : content-security-policy.com Then move to a template-engine such as Handlebars as soon as possible . You can have your templates in separate html files and compile them into javascript as part of your build . This gives you a nice separation between html and js as you develop but good performance in the browser for your users in the production version", "Question : I get a compilation error at runtime when I attempt to render the following template : .. . .. . .. . Answer : You have two problems : .. . .. . 1 . Your templateSettings regexes overlap in a bad way . 2 . Your templateSettings don t match your template . The documentation http : underscorejs.org template isn t explicit about what order the regexes are applied in but the source code is https : github.com jashkenas underscore blob 1.5.2 underscore.js L1171 : .. . .. . In particular interpolate will be matched before evaluate . Your interpolate is looking for things like .. . so it will pick up things like .. . before your evaluate regex can see them . The result will be stray in the generated source code . So your interpolate regex can t match things that your evaluate will be looking for . You probably want to use these regexes : .. . .. . Note that I ve switched who looks for .. . and .. . . Then your template needs to use the Mustache-style delimiters rather than the default Underscore ones : .. . .. . Fixing those two issues should make things work . Demo : http : jsfiddle.net ambiguous my49N Comment : Thank you works perfectly .", "Question : I was just wondering how you use the underscore templates in a .aspx view since the tags that underscore uses get picked up by the .aspx rendering engine and give me errors . For instance : .. . .. . This template gives me an error since the .aspx rendering engine thinks I m trying to bind this stuff to the Model . Thanks . .. . Answer : From the fine manual http : underscorejs.org template : .. . .. . template .template templateString data settings .. . .. . .. . If ERB-style delimiters aren t your cup of tea you can change Underscore s template settings to use different symbols to set off interpolated code . Define an interpolate regex to match expressions that should be interpolated verbatim an escape regex to match expressions that should be inserted after being HTML escaped and an evaluate regex to match expressions that should be evaluated without insertion into the resulting string . So if the default .. . -.. . and .. . delimiters aren t working for you then you can use different ones with a simple configuration change . For example if you wanted to use .. . instead of .. . then do this after underscore.js is loaded and before you use .template : .. . .. . Demo : http : jsfiddle.net ambiguous TfB5M", "Question : I m building a webapp using underscore.js to create the templates . The thing is when I render a simple template like this : .. . .. . If i try to use the person s id to do something with my javascript . The function isn t working and there is no error on the console . Example : .. . .. . I also tried this but it doesn t work : .. . .. . document .ready function.. . .. . container .find .username .on click function.. . .. . It works with a window.setTimeout funciton .. . 1500 but I want a better way to do it . By the way this is a very simple example just to explain the problem . Comment : The template renders perfect . The problem is that I can t interact with it after the render . Why is important the type of loop here @jisaak Comment : have you tried passing the rendered html into a and then applying the event-listeners so container .find person .on click .. . Comment : In your case all the anchor tags have the same id may be it is because of that . Comment : Also tried right now but it doesn t work . I ll update the question with this case . @JohnProestakes Comment : @Neelesh it is just a simple example the real app is different . I ll change it in the question . .. . Answer : Try to use : .. . .. . This will work for all elements with username class in the body whether already present or dynamically added later .", "Question : I am new to underscore.js . I am using the brackets IDE and when I copy and paste the source code from GITHUB in a file name underscore.js in my local directory to use it in my page and save it it shows errors...I have attached the screen shot of the errors below. . enter image description here http : i.stack.imgur.com 2cWBR.png Comment : They re JSLint errors not JavaScript errors....... . Comment : in other words the code will run but if you fix those JSLint errors as well your code will be a bit better . Comment : The code will not necessarily be better if you fix it . Underscore is using EsLint and it s probably configured differently . .. . Answer : They are not real errors just JSLint JSHint errors . They are just static code analiyzer . Just ignore it to have checked by JSLint and everything will be just fine . JSLint : http : www.jslint.com help.html Comment : thank you so much :", "Question : null .. . Answer : I m using Underscore templates and would like to leverage their HTML escaping functionality while allowing some tags to still come through . Looking over their implementation though it appears that it s an all-or-nothing situation : with escaping turned on all HTML entities are escaped . I can t for example escape everything except some safe tags like say p or strong etc . The best way to get around this limitation seems to be overriding Underscore s .escape and .unescape https : github.com jashkenas underscore blob a315e9f4473005a8310540b16d565519a9556106 underscore.js L1191-L1198 but that actually seems like a terrible idea and not something I want to do . There s got to be a simpler more direct way even if it means using another template-engine . Comment : Just unescape the part which doesn t need escaping . Comment : I guess it would help to see some context code as to what you re trying to do . I get the feeling that maybe you re trying to save some string with tag elements to persist the stylistic intention of the author but don t want to render it unescaped lest some baddies decide to include script etc" ] }
[ "yes-answer-long", "yes-answer-short" ]
templating
UNK_RELATION
build-pipeline-plugin@continuous-delivery@58
build-pipeline-plugin -- a jenkins plugin for setting up @placeholder pipelines .
{ "confidence": [ 55.01166915893555, 52.62128448486328, 51.47031021118164, 50.74870681762695, 44.57926559448242, 41.688899993896484, 40.644989013671875, 39.81922149658203, 39.22462463378906, 38.71123504638672, 38.30229187011719, 38.246070861816406, 37.433597564697266, 37.011905670166016, 35.91190719604492, 35.91190719604492, 35.91190719604492, 35.442039489746094, 35.17803192138672, 33.65335464477539, 33.31450653076172, 33.107872009277344, 32.82090759277344, 32.44453048706055, 32.30930709838867, 32.30930709838867, 32.04191589355469, 31.868431091308594, 31.708847045898438, 30.671802520751953, 30.460437774658203, 30.460437774658203, 28.744407653808594, 28.539031982421875, 27.251705169677734, 27.13357162475586, 27.032093048095703, 26.339092254638672, 26.324111938476562, 26.266448974609375, 26.266448974609375, 25.828428268432617, 25.75830078125, 25.362276077270508, 25.251129150390625, 25.251129150390625, 24.855392456054688, 24.44327163696289, 24.42344093322754, 24.3466739654541, 23.43804168701172, 23.43804168701172, 23.43804168701172, 23.075481414794922, 22.499101638793945, 22.068145751953125, 22.03305435180664, 21.725021362304688, 21.203744888305664, 21.203744888305664, 21.142484664916992, 20.676485061645508, 20.634010314941406, 20.634010314941406, 20.210073471069336, 20.13123321533203, 20.121849060058594, 19.59018898010254, 19.59018898010254, 19.229022979736328, 18.77482032775879, 18.762218475341797, 17.747180938720703, 17.747180938720703, 17.747180938720703, 17.747180938720703, 17.747180938720703, 17.747180938720703, 17.747180938720703, 17.747180938720703, 17.747180938720703, 17.40604019165039, 16.240907669067383, 15.958186149597168, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121, 15.356795310974121 ], "content": [ "I m using Build Pipeline plugin in Jenkins .", "I am using build-pipeline-plugin in Jenkins .", "The Jenkins pipeline plugin is awesome .", "We are setting up a continuous-delivery pipeline in Jenkins using the build-pipeline-plugin .", "If you have separate jobs that run pipelines you could just call build job name to invoke subsequent pipelines", "Source : Build Pipeline Plugin https : wiki.jenkins-ci.org display JENKINS Build+Pipeline+Plugin BuildPipelinePlugin-JobConfiguration .. . .. . The problem is : I can t seem to find a way to trigger this downstream build through a URL .", "I have the latest version of Build pipeline plugin .", "Jenkins 1.573 .. . .. . Build Pipeline plugin : 1.4.7 1.4.5 claims that the issue has fixed but it s not .", "But is it also possible to aggregate pipelines of dependent projects e.g .", "Check if your plugin is supported https : github.com jenkinsci pipeline-plugin blob master COMPATIBILITY.md by Pipeline job .", "I am customizing the buildpipeline plugin to publish the SVN revision number for each job of each build number at pipeline .", "I m using the pipeline plugin for jenkins and I d like to generate code-coverage report for each run and display it along with the pipeline ui .", "Is this behavior working for you using the latest Build pipeline plugin version", "Jenkins has a REST API to build a project : JENKINS view PIPELINE NAME job PROJECT NAME buildWithParameters .. . .. . However jenkins starts a new build outside the pipeline view .", "I can manually trigger this project using the build-pipeline-plugin icon trigger .", "I have a complex workflow for which I am getting incorrect results via Build Pipeline plugin .", "I have used various options to try and achieve the above but none of them is giving the correct display in Build Pipeline plugin .", "I have developed groovy classes in IntelliJ IDE I want to instantiate one of these classes in Pipeline script of Pipeline plugin in Jenkins .", "stackoverflow.com questions 32183061 http : stackoverflow.com questions 32183061 jenkins-build-pipeline-plugin-doesnt-reflect-manually-triggered-downstream-job that s mine a bit different but related", "I have a Jenkins pipeline with several projects .", "Thus Build pipeline plugin works for the first job input parameters and prompts the user to enter a value .. . .. . The same is not working prompt is not coming for user input when I m running Job B in the pipeline using Build Pipeline Plugin .", "The issue is either with the Build Pipeline plugin not using compatible with Chrome browser OR it s a Chrome browser issue .", "sure but is it possible similar to concourse.ci http : concourse.ci to get a picture of the status of all the pipelines", "Looks like there s an issue open against the Cobertura plugin here : issues.jenkins-ci.org browse JENKINS-30700 https : issues.jenkins-ci.org browse JENKINS-30700", "I am using the Delivery pipeline plugin for grouping my jobs into stages .", "the Pipeline plugin groovy sand box is simply unable to identify the class .", "Apparentely this is a bug in Maven Project plugin .", "Build Pipeline plugin : 1.4.8 latest .. . .. . Till last week everything was OK today I m seeing that when I click on the first job in the Build Pipeline dashboard view to run a process it used to prompt parameters but not anymore .", "Create resusable jenkins-pipeline script http : stackoverflow.com questions 38695237 create-resusable-jenkins-pipeline-script .. . .. . Br .. . .. . Tim", "The jenkins setup for this is obvious : .. . .. . For a Manually Triggered downstream build step : To add a build step that will wait for a manual trigger : .. . .. . Select the Build Pipeline Plugin Manually Execute Downstream Project check-box .. . Enter the name s of the downstream projects in the Downstream Project Names field .", "It s a known challenge as far as I see to have a job that runs an external application script in Async mode and reflect that properly on build-pipeline-plugin overview .", "One of the solutions is to have a Done anchor job that is downstream to a deploy upstream one and is being scheduled as Manually trigger build via pipeline plugin .", ".. . .. . I am trying to use Jenkins Pipeline to take input from the user which is passed to the job as json string .", "Is there a plugin I can use to do that e.g .", "enter image description here http : i.stack.imgur.com BvPnW.png .. . .. . I can see the jobs are displayed with the correct build titles the pipeline version .", "Jenkins team claims that they solved the user prompt issue and the fix is in plugin version 1.4.5 but I m not sure if I have to use a later version of Jenkins or what as the prompting is not working for Job B .", "I might have missed a trick somewhere while using the plugin s .", "I also tried to achieve the above behavior via some other pipeline plugins i.e Build pipeline etc .", "Jenkins administrator will need to navigate to Manage Jenkins In-process Script Approval .", "This is the display that I am getting in build pipeline view : .. . .. . which is confusing to say the least .", "However after switching to pipeline I don t get the post build UI to setup Cobertura for the project .", "I ve set a job and configured it to create the delivery pipeline version .", "It is possible to use the button on pipeline to schedule a build like on the picture : .. . .. .", "I was thinking to use groovy script to manually set build dependency and imitate it scheduled from upstream project but can t figure out too deep Jenkins Pipeline internals to access to make that possible .", "But the Pipeline never gave the correct display .", "Cobertura but it doesn t seem to be supported by pipeline", "I wanted to provide a provide a mechanism posssibly a link in the Initial job JobI of the pipeline so that whenever I click on a particular build of the JobI it should redirect me to that particular pipeline instance of the pipeline view directly .", "One of the solutions is having AsyncJob type plugin that does some continuously status for a job but what if it is not possible to check the status of an AsyncJob and there is only way to make a callback from that external application to Jenkins back .", "I ve updated both Maven Project and Delivery Pipeline plugins and now the PIPELINE VERSION works .", "enter image description here http : i.stack.imgur.com F0XPo.png .. . .. . And if you check build details you will see output : .. . .. . But if I run that job via REST it is not being reflected on the pipeline and it makes sense because it is not connected to the pipeline anyhow so pipeline doesn t know that build scheduled via REST manually is related to it .", "Pipeline then parses this using the slurper and I pick out the important information .", "This makes it unusable outside of @NonDSL functions in pipeline DSL scripts .", "Any pointers to achieve the above desired view using the pipeline", "Jenkins console output :", "Jenkins 1.573 1.628 or latest version .", "Since Groovy 2.3 note : Jenkins 2.7.1 uses Groovy 2.4.7 JsonSlurper returns LazyMap instead of HashMap .", "To achieve this the pipeline and its data must be fully serializable - IE it needs to be able to save the state of everything .", "Are there any Jenkins ninjas who can assist on that challenge", "Probably best to start with the why : .. . .. . Jenkins has a paradigm where all jobs can be interrupted paused and resumable through server reboots .", "There are plenty of answers out there about how one may fix this properly though I do not know how applicable they are to Groovy and Jenkins .", "What build tool do you prefer", "https : issues.jenkins-ci.org browse JENKINS-19121 I just re-opened it .", "Currently there seems no mechanism to directly go to a particular older pipeline instance in the view .", "So our deploy tool will need to trigger the last pipeline step .", "However you can fall-back to groovy.json.JsonSlurperClassic which supports old behavior https : issues.apache.org jira browse GROOVY-6934 and could be safely used within pipeline scripts .", "Similarly it needs to be able to serialize the state of global-variables between nodes and sub-jobs in the build which is what I think is happening for you and I and why it only occurs if you add that additional build step .", "Our deployment steps uses a proprietary deploy tool triggered by a HTTP request from jenkins but we need to have an additional Jenkins step for acceptance tests on the then deployed project .", "I could try-catch around the build job : however I want the main job to wait for the triggered job to finish .", "I have used MultiJob Parameterized Triggers Join Build Flow plugins and was able to achieve the the desired flow .", "I can bring them in scope on any pipeline step in any node but not inside of a function .", "you can t enter blank value as pattern used is : w.+ .. . .. . When I launch Job A using either Build Pipeline plugin or directly from the job itself aka using Build with Parameters it always prompt me to enter for parameter mode .", "Up until I add the code below Error when below here is added the script will run fine .", "The result will be something like : 3.0.0 r119723 b5 .. . .. .", "After that I need to pass this variable to Maven but the PIPELINE VERSION always arrives empty .", "I ve already tried to remove the and but it didn t work .", "Any thoughts", "I found one hudson package .. . .. . hudson.scm.SubversionChangeLogSet.LogEntry .. . .. . which has the method getRevision to get the last commit number .", "Is this the right package to get the revision number or any other packages need to be used to support this package", "How can I get the SVN revision through code", "We are using something like the following which we learned from Cloudbees excellent support .", "Note that depending on whether your script is sandboxed or not you will have to make some security exceptions on the script security config page .", "I somehow had Chrome session opened the other day and when I click on Run top section to start the pipeline job run it shows me a BLANK modal window and doesn t show me any parameters .", "Setup : .. . .. . Job A : calls Job B post build action - manual step and prompts for a parameter mode possible values are test or live .", "Version 46.0.2490.86 m .. . Google Chrome is up to-date . .. . .. . While the same is working in IE or Firefox I have the latest versions .", "Solved : Thanks to below answer http : stackoverflow.com a 37897833 3318642 from S.Richmond .", "I needed to unset all stored maps of the groovy.json.internal.LazyMap type which meant nullifying the variables envServers and object after use .", "It will then use that information to run 1 job multiple times in parallel with differeing job parameters .", "Even the code below that point will run on its own .", "But when combined I get the below error .", "I should note that the triggered job is called and does run succesfully but the below error occurs and fails the main job .", "Because of this the main job does not wait for the return of the triggered job .", "Can anyone assist here", "If you need anymore information let me know .", "Cheers .. . .. . Error :", "Just ran into this myself .", "Did you make any further progress yet", "I ran into this myself today and through some bruteforce I ve figured out both how to resolve it and potentially why .", "For whatever reason JSONObject s aren t serializable by default .", "I m not a Java dev so I cannot say much more on the topic sadly .", "See this post http : stackoverflow.com a 25326211 420787 for a little more info ." ] }
{ "confidence": [ 73.30532836914062, 54.95158767700195, 51.9091796875, 51.29322814941406, 51.11491775512695, 48.65570068359375, 48.56595230102539, 48.363525390625, 44.94241714477539, 43.752830505371094, 37.028480529785156, 36.88163757324219, 35.39889907836914, 32.99965286254883, 24.426815032958984 ], "content": [ "Question : The Jenkins pipeline plugin is awesome . But is it also possible to aggregate pipelines of dependent projects e.g . micro-services .. . Answer : If you have separate jobs that run pipelines you could just call build job name to invoke subsequent pipelines Comment : sure but is it possible similar to concourse.ci http : concourse.ci to get a picture of the status of all the pipelines Comment : You could make a job just to aggregate jobs and define each job as a stage . That d let you visualize the entire sequence .", "Question : null .. . Answer : We are setting up a continuous-delivery pipeline in Jenkins using the build-pipeline-plugin . Our deployment steps uses a proprietary deploy tool triggered by a HTTP request from jenkins but we need to have an additional Jenkins step for acceptance tests on the then deployed project . So our deploy tool will need to trigger the last pipeline step . The jenkins setup for this is obvious : .. . .. . For a Manually Triggered downstream build step : To add a build step that will wait for a manual trigger : .. . .. . Select the Build Pipeline Plugin Manually Execute Downstream Project check-box .. . Enter the name s of the downstream projects in the Downstream Project Names field . n.b . Multiple projects can be specified by using comma like abc def . Source : Build Pipeline Plugin https : wiki.jenkins-ci.org display JENKINS Build+Pipeline+Plugin BuildPipelinePlugin-JobConfiguration .. . .. . The problem is : I can t seem to find a way to trigger this downstream build through a URL . In fact I d need the URL in the deploy job so I can send it to the deploy tool as a callback URL . Can anybody help", "Question : null .. . Answer : I have a Jenkins pipeline with several projects . The first one triggers the second one and then it stops because the next project is manually triggered . I would like to trigger this third project using a REST Webservice . I can manually trigger this project using the build-pipeline-plugin icon trigger . Jenkins has a REST API to build a project : JENKINS view PIPELINE NAME job PROJECT NAME buildWithParameters .. . .. . However jenkins starts a new build outside the pipeline view . Thanks Comment : I m in the same situation and looking for a solution . Comment : Same here I am looking with a possibilities to manually set dependencies via groovy . Haven t resolved yet . Comment : stackoverflow.com questions 32183061 http : stackoverflow.com questions 32183061 jenkins-build-pipeline-plugin-doesnt-reflect-manually-triggered-downstream-job that s mine a bit different but related", "Question : null .. . Answer : I m using the pipeline plugin for jenkins and I d like to generate code-coverage report for each run and display it along with the pipeline ui . Is there a plugin I can use to do that e.g . Cobertura but it doesn t seem to be supported by pipeline Comment : You should have provided more information . What programming language do you use What build tool do you prefer Comment : I have python javascript and other sorts of projects and I have been using Cobertura on freestyle projects to display code-coverage reports . However after switching to pipeline I don t get the post build UI to setup Cobertura for the project . Comment : Check if your plugin is supported https : github.com jenkinsci pipeline-plugin blob master COMPATIBILITY.md by Pipeline job . Comment : Looks like there s an issue open against the Cobertura plugin here : issues.jenkins-ci.org browse JENKINS-30700 https : issues.jenkins-ci.org browse JENKINS-30700", "Question : I m using Build Pipeline plugin in Jenkins . I ve set a job and configured it to create the delivery pipeline version . The result will be something like : 3.0.0 r119723 b5 .. . .. . enter image description here http : i.stack.imgur.com BvPnW.png .. . .. . I can see the jobs are displayed with the correct build titles the pipeline version . After that I need to pass this variable to Maven but the PIPELINE VERSION always arrives empty . I ve already tried to remove the and but it didn t work . Any thoughts .. . Answer : Apparentely this is a bug in Maven Project plugin . I ve updated both Maven Project and Delivery Pipeline plugins and now the PIPELINE VERSION works .", "Question : null .. . Answer : Jenkins 1.573 .. . .. . Build Pipeline plugin : 1.4.7 1.4.5 claims that the issue has fixed but it s not . Setup : .. . .. . Job A : calls Job B post build action - manual step and prompts for a parameter mode possible values are test or live . There is no DEFAULT value set . I don t want it as a Choice parameter . Job B : has user input parameters password and releaseNumber . There is no default-value set . Parameter releaseNumber is of type validating string parameter i.e . you can t enter blank value as pattern used is : w.+ .. . .. . When I launch Job A using either Build Pipeline plugin or directly from the job itself aka using Build with Parameters it always prompt me to enter for parameter mode . Thus Build pipeline plugin works for the first job input parameters and prompts the user to enter a value .. . .. . The same is not working prompt is not coming for user input when I m running Job B in the pipeline using Build Pipeline Plugin . 1 . I have the latest version of Build pipeline plugin . Jenkins team claims that they solved the user prompt issue and the fix is in plugin version 1.4.5 but I m not sure if I have to use a later version of Jenkins or what as the prompting is not working for Job B . https : issues.jenkins-ci.org browse JENKINS-19121 I just re-opened it . 2 . Also while the job is in progress either Job A or Job B I can see the live screenshot of the console log by clicking on the little black monitor icon . This used to work in past . Is this behavior working for you using the latest Build pipeline plugin version", "Question : null .. . Answer : It s a known challenge as far as I see to have a job that runs an external application script in Async mode and reflect that properly on build-pipeline-plugin overview . One of the solutions is having AsyncJob type plugin that does some continuously status for a job but what if it is not possible to check the status of an AsyncJob and there is only way to make a callback from that external application to Jenkins back . One of the solutions is to have a Done anchor job that is downstream to a deploy upstream one and is being scheduled as Manually trigger build via pipeline plugin . It is possible to use the button on pipeline to schedule a build like on the picture : .. . .. . enter image description here http : i.stack.imgur.com F0XPo.png .. . .. . And if you check build details you will see output : .. . .. . But if I run that job via REST it is not being reflected on the pipeline and it makes sense because it is not connected to the pipeline anyhow so pipeline doesn t know that build scheduled via REST manually is related to it . I was thinking to use groovy script to manually set build dependency and imitate it scheduled from upstream project but can t figure out too deep Jenkins Pipeline internals to access to make that possible . Are there any Jenkins ninjas who can assist on that challenge Thanks", "Question : null .. . Answer : I am using build-pipeline-plugin in Jenkins . I have a complex workflow for which I am getting incorrect results via Build Pipeline plugin . To simplify the case : I have 4 jobs A B C D and they are supposed to execute in the following manner : .. . .. . i.e . Job A would trigger Jobs B and C B and C should run in parallel . and only after both of them have completed Job D should start . I have used various options to try and achieve the above but none of them is giving the correct display in Build Pipeline plugin . I have used MultiJob Parameterized Triggers Join Build Flow plugins and was able to achieve the the desired flow . But the Pipeline never gave the correct display . This is the display that I am getting in build pipeline view : .. . .. . which is confusing to say the least . I might have missed a trick somewhere while using the plugin s . Any pointers to achieve the above desired view using the pipeline", "Question : I have developed groovy classes in IntelliJ IDE I want to instantiate one of these classes in Pipeline script of Pipeline plugin in Jenkins . I tried to follow the examples of Eval.me and class.forName .. . .. . Tried Below as well : Comment : the Pipeline plugin groovy sand box is simply unable to identify the class . .. . Answer : I think the post I asked two weeks ago can answer your question . Create resusable jenkins-pipeline script http : stackoverflow.com questions 38695237 create-resusable-jenkins-pipeline-script .. . .. . Br .. . .. . Tim", "Question : Jenkins 1.573 1.628 or latest version . Build Pipeline plugin : 1.4.8 latest .. . .. . Till last week everything was OK today I m seeing that when I click on the first job in the Build Pipeline dashboard view to run a process it used to prompt parameters but not anymore . It s giving me a BLANK white modal window popup page and there are no input parameters visible . Any idea what I may be missing . http : s000.tinyupload.com download.php file id 03793493629898722609 t 0379349362989872260930671 http : s000.tinyupload.com download.php file id 03793493629898722609 t 0379349362989872260930671 .. . .. . http : s000.tinyupload.com index.php file id 03793493629898722609 http : i.stack.imgur.com W13DC.jpg .. . Answer : Finally found the issue . The issue is either with the Build Pipeline plugin not using compatible with Chrome browser OR it s a Chrome browser issue . I somehow had Chrome session opened the other day and when I click on Run top section to start the pipeline job run it shows me a BLANK modal window and doesn t show me any parameters . Version 46.0.2490.86 m .. . Google Chrome is up to-date . .. . .. . While the same is working in IE or Firefox I have the latest versions . I guess I ll use FF IE for now .", "Question : Solved : Thanks to below answer http : stackoverflow.com a 37897833 3318642 from S.Richmond . I needed to unset all stored maps of the groovy.json.internal.LazyMap type which meant nullifying the variables envServers and object after use . .. . .. . I am trying to use Jenkins Pipeline to take input from the user which is passed to the job as json string . Pipeline then parses this using the slurper and I pick out the important information . It will then use that information to run 1 job multiple times in parallel with differeing job parameters . Up until I add the code below Error when below here is added the script will run fine . Even the code below that point will run on its own . But when combined I get the below error . I should note that the triggered job is called and does run succesfully but the below error occurs and fails the main job . Because of this the main job does not wait for the return of the triggered job . I could try-catch around the build job : however I want the main job to wait for the triggered job to finish . Can anyone assist here If you need anymore information let me know . Cheers .. . .. . Error : Comment : Just ran into this myself . Did you make any further progress yet .. . Answer : Use JsonSlurperClassic instead . Since Groovy 2.3 note : Jenkins 2.7.1 uses Groovy 2.4.7 JsonSlurper returns LazyMap instead of HashMap . This makes new implementation of JsonSlurper not thread safe and not serializable . This makes it unusable outside of @NonDSL functions in pipeline DSL scripts . However you can fall-back to groovy.json.JsonSlurperClassic which supports old behavior https : issues.apache.org jira browse GROOVY-6934 and could be safely used within pipeline scripts . Example .. . .. . ps . You still will need to approve JsonSlurperClassic before it could be called . Comment : Could you please tell me how to approve JsonSlurperClassic Comment : Jenkins administrator will need to navigate to Manage Jenkins In-process Script Approval .", "Question : I am customizing the buildpipeline plugin to publish the SVN revision number for each job of each build number at pipeline . I found one hudson package .. . .. . hudson.scm.SubversionChangeLogSet.LogEntry .. . .. . which has the method getRevision to get the last commit number . Is this the right package to get the revision number or any other packages need to be used to support this package How can I get the SVN revision through code .. . Answer : We are using something like the following which we learned from Cloudbees excellent support . Note that depending on whether your script is sandboxed or not you will have to make some security exceptions on the script security config page .", "Question : null .. . Answer : I am using the Delivery pipeline plugin for grouping my jobs into stages . Currently there seems no mechanism to directly go to a particular older pipeline instance in the view . I wanted to provide a provide a mechanism posssibly a link in the Initial job JobI of the pipeline so that whenever I click on a particular build of the JobI it should redirect me to that particular pipeline instance of the pipeline view directly . I also tried to achieve the above behavior via some other pipeline plugins i.e Build pipeline etc . but no solution . The idea is to make the view easy to use for a user so that he does not have to take the pain of scrolling through all the instances to get to a particular instance . I want to replicate the behavior of the builds in the jobs for the versions of the view or similar to that . enter image description here http : i.stack.imgur.com Tdr8H.jpg .. . .. . Any help suggestions would be great .", "Question : Solved : Thanks to below answer http : stackoverflow.com a 37897833 3318642 from S.Richmond . I needed to unset all stored maps of the groovy.json.internal.LazyMap type which meant nullifying the variables envServers and object after use . .. . .. . I am trying to use Jenkins Pipeline to take input from the user which is passed to the job as json string . Pipeline then parses this using the slurper and I pick out the important information . It will then use that information to run 1 job multiple times in parallel with differeing job parameters . Up until I add the code below Error when below here is added the script will run fine . Even the code below that point will run on its own . But when combined I get the below error . I should note that the triggered job is called and does run succesfully but the below error occurs and fails the main job . Because of this the main job does not wait for the return of the triggered job . I could try-catch around the build job : however I want the main job to wait for the triggered job to finish . Can anyone assist here If you need anymore information let me know . Cheers .. . .. . Error : Comment : Just ran into this myself . Did you make any further progress yet .. . Answer : I ran into this myself today and through some bruteforce I ve figured out both how to resolve it and potentially why . Probably best to start with the why : .. . .. . Jenkins has a paradigm where all jobs can be interrupted paused and resumable through server reboots . To achieve this the pipeline and its data must be fully serializable - IE it needs to be able to save the state of everything . Similarly it needs to be able to serialize the state of global-variables between nodes and sub-jobs in the build which is what I think is happening for you and I and why it only occurs if you add that additional build step . For whatever reason JSONObject s aren t serializable by default . I m not a Java dev so I cannot say much more on the topic sadly . There are plenty of answers out there about how one may fix this properly though I do not know how applicable they are to Groovy and Jenkins . See this post http : stackoverflow.com a 25326211 420787 for a little more info . How you fix it : .. . .. . If you know how you can possibly make the JSONObject serializable somehow . Otherwise you can resolve it by ensuring no global-variables are of that type . Try unsetting your object var or wrapping it in a method so its scope isn t node global . Comment : Thanks That s the clue I ve needed to solve this . Whilst I had tried your suggesion already It made me look again and I hadn t considered that I was storing parts of the map in other variables - these were causing the errors . So I needed to unset them as well . Will amend my question to include the correct changes to the code . Cheers Comment : This is viewed 8 times a day . Would you guys mind providing a more detailed example of how to implement this solution Comment : There is no simple solution as it depends on what you ve done . The information provided here as well as the solution @Sunvic added at the top of his post aught to be enough to led one to a solution for their own code .", "Question : I m trying to use environment-variables defined outside any node in a Jenkinsfile . I can bring them in scope on any pipeline step in any node but not inside of a function . The only solution I can think of for now is to pass them in as parameters . But I would like to reference the env variables directly inside the function so I don t have to pass so many parameters in . Here is my code . How can I get the function to output the correct value of BRANCH TEST Jenkins console output : .. . Answer : Solutions are .. . .. . 1 . Use @Field annotation .. . .. . 2 . Remove def from declaration . See Ted s answer http : stackoverflow.com a 185879 6020034 for an explanation on using def . Solution 1 using @Field .. . .. . Solution 2 removing def .. . .. . Explanation is here .. . .. . https : groups.google.com d msg jenkinsci-users P7VMQQuMdsY bHfBDSn9GgAJ .. . .. . Also answered in how-do-i-create-and-access-the-global-variables-in-groovy http : stackoverflow.com questions 6305910 how-do-i-create-and-access-the-global-variables-in-groovy Comment : You need to remove duplicate import statement in the answer ." ] }
[ "yes-answer-long", "yes-answer-short" ]
continuous-delivery
UNK_RELATION
linq-to-objects@linq@172
linq-to-objects -- the term linq-to-objects refers to the use of linq queries with any ienumerable or ienumerable t collection directly without the use of an intermediate @placeholder provider or api such as linq-to-sql https : msdn.microsoft.com en-us library bb386976.aspx or linq-to-xml .
{ "confidence": [ 144.43063354492188, 88.63992309570312, 87.68053436279297, 86.58162689208984, 86.2330551147461, 84.39859008789062, 82.75860595703125, 81.51260375976562, 79.71345520019531, 76.77140808105469, 76.5664291381836, 75.80241394042969, 75.72572326660156, 75.4577407836914, 75.34912872314453, 74.8414306640625, 74.26473999023438, 73.40704345703125, 73.34896087646484, 71.72306823730469, 71.47069549560547, 70.98303985595703, 70.69424438476562, 70.36824035644531, 70.06008911132812, 69.838134765625, 69.77470397949219, 69.6586685180664, 69.03131103515625, 68.87947082519531, 68.80432891845703, 68.69961547851562, 68.43472290039062, 67.95455932617188, 67.95455932617188, 67.9277114868164, 66.97078704833984, 66.89640808105469, 66.72993469238281, 66.62481689453125, 66.5924072265625, 65.84265899658203, 65.81060791015625, 65.81060791015625, 65.598876953125, 65.31399536132812, 65.27328491210938, 65.10851287841797, 64.91761779785156, 64.54019165039062, 64.519775390625, 64.35460662841797, 64.31985473632812, 64.27176666259766, 64.25540161132812, 64.25540161132812, 64.25540161132812, 64.25540161132812, 64.25540161132812, 64.25540161132812, 64.25540161132812, 64.17286682128906, 63.969566345214844, 63.915775299072266, 63.700077056884766, 63.66111373901367, 63.63265609741211, 63.63265609741211, 63.23910140991211, 63.23910140991211, 63.23910140991211, 63.23910140991211, 63.219520568847656, 63.17668533325195, 62.87404251098633, 62.87404251098633, 62.87404251098633, 62.66608428955078, 62.29303741455078, 62.29061508178711, 62.25130081176758, 61.881141662597656, 61.789642333984375, 61.76593017578125, 61.5766716003418, 61.48788833618164, 61.48476791381836, 61.29952621459961, 61.21845245361328, 61.21845245361328, 61.21845245361328, 61.21845245361328, 61.21845245361328, 61.21845245361328, 61.21845245361328, 61.21845245361328, 61.19078826904297, 61.13591766357422, 60.87882995605469, 60.59571075439453 ], "content": [ "Linq to Objects The term LINQ to Objects refers to the use of LINQ queries with any IEnumerable or IEnumerable collection directly without the use of an intermediate LINQ provider or API such as LINQ to SQL or LINQ to XML .", "Linq to entities is intended to be used with Entity Framework while Linq to objects is for any IEnumerable collection .", "Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx", "Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object .", "Right I meant LINQ to Objects not LINQ to SQL .", "If you have an IEnumerable T then you ll be using LINQ-to-Objects .", "@vrvictor : linq methods as in the standard IEnumerable extension-methods used by LINQ", "Linq to SQL to EF to Objects etc", "I assume your enumerations collections are LINQ-to-Objects and not LINQ-to-SQL entities", "Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx .. . 2 .", "LINQ-to-Entities is a LINQ provider that has a set of extension-methods on IQueryable T .", "LINQ to XML", "see also Differences between LINQ to Objects and LINQ to SQL queries http : stackoverflow.com questions 1718195 differences-between-linq-to-objects-and-linq-to-sql-queries .. . .. . We are using the some queries over our database and our in memory objects .", "LINQ-to-Objects is a set of extension-methods on IEnumerable T that allow you to perform in-memory query operations on arbitrary sequences of objects .", "It will work with linq-to-objects however .", "But here s a way to do it with LINQ-to-Objects .", "@Neil : Yes it s LINQ-To-Dataset a subform of LINQ-To-Objects added tag .", "LINQ to Objects .. . 2 .", "What is the best way to do a conditional query using linq-to-objects not linq-to-sql .", "Then you can use the normal LINQ queries .", "You can use Dynamic linq without Linq to Sql to do what he needs...I love it", "Basically the way L2S works is to parse the linq-expressions the way any LINQ provider does http : msdn.microsoft.com en-us library bb546158.aspx and then convert the result into SQL .", "Here are the list of supported string operations in LINQ to SQL which would obviously work in LINQ to objects : http : msdn.microsoft.com en-us library bb882672.aspx .. . .. . I personally haven t evaluated each for performance but ToLower and ToUpper aren t supported in LINQ to SQL so it seems like Compare is a good candidate .", "LINQ to Entities converts Language-Integrated Queries LINQ queries to command tree queries executes the queries against the Entity Framework and returns objects that can be used by both the Entity Framework and LINQ .", "I am trying to write a LINQ to Objects XML query that will create objects .", "If you re not working with a database then I d still prefer LINQ specifically known as LINQ to Objects http : msdn.microsoft.com en-us library bb397919.aspx in this scenario over datasets .", "Hmm are you comparing datasets with LINQ to SQL http : msdn.microsoft.com en-us library bb425822.aspx", "I usually use the term entity to represent a business data object and in my mind the linq-to-entities and linq-to-objects were the same .", "You could achieve what you d like by converting it into an IEnumerable first as then you ll be free to use LINQ to Objects http : msdn.microsoft.com en-us library bb397919.aspx .", "Actually I know Linq very well but the IEnumerable was confusing since regularly work with IEnumerable T .", "So I am not talking about LINQ 2 SQL but LINQ to Dataset .", "It uses Linq-to-objects to select from a Dictionary .", "It doesn t use LINQ fully granted .", "How is that LINQ", "Not with standard LINQ .", "I will need to use Lambda Linq to sort the list of objects .", "Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner .", "A few LINQ Tips : .. . .. . Apply filters before a join to improve query-performance .. . Filter LINQ queries using object-reference comparison .. . Apply aggregates to empty collections in LINQ to SQL queries .. . Delay loading a property in LINQ to SQL .. . Use table-valued functions with eager-loading turned on .. . Put joins in the correct order in a LINQ to Objects query .. . Compose a LINQ query inside a loop .. . .. . http : www.aspnetpro.com articles 2009 04 asp200904zh f asp200904zh f.asp", "I would use your extension method with IEnumerable T implementations but it has a disadvantage in that it is not compatible with an IQueryable T which is the reason that bending built-in LINQ methods sometimes makes sense - to be compatible with existing LINQ providers .", "But for that specific question we can combine LINQ and ExpandoObject https : msdn.microsoft.com en-us library system.dynamic.expandoobject.aspx to achieve this .", "A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ", "It depends on the datasource and LINQ provider you re using .", ".. . This project will enhance LINQ to Objects with extra methods in a manner which keeps to the spirit of LINQ .", "NB : this is LINQ to objects I am not 100 sure if it work in LINQ to entities and have no time to check it right now .", "Where and FirstOrDefault were added as extension-methods for IEnumerable T with Linq which is a later .NET version .", "Can anyone resolve this purely with Linq to Object queries", "The following is the process for creating and executing a LINQ to Entities query : Ref : http : msdn.microsoft.com en-us library bb386964.aspx", "MattK - so how can I use linq-to-objects to perform a query that results in an IEnumerable Clazz that I can return from a WCF-exposed method", "What is LINQ", "My pre-linq code : .. . .. . My attempt s at a linq alternative : .. . .. . Is there a null friendly way in linq to get children of children .. .", "ref : http : msdn.microsoft.com en-us library bb397919.aspx .. . .. . Linq to Entity LINQ to Entities provides Language-Integrated Query LINQ support that enables developers to write queries against the Entity Framework conceptual-model using Visual Basic or Visual C .", "I have a set of objects and I d like the user to write custom queries in LINQ to objects .", "Since you are not using LINQ to SP you can create temporary variables or even use let statements in LINQ to store temporary objects for inspection .", "Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents .", "What kind of linq", "...but he s looking for LINQ", "Here s a LINQ way to do it", "Is there really no better Linq way", "Here is another LINQ solution .", "Find predates LINQ .", "Is this possible using LINQ", "It s not pure LINQ but it does use Linq s Aggregate .", "I understand AsEnumerable is used to switch from LINQ to SQL to LINQ to Object so we can use some extra mostly user defined methods in our LINQ queries .", "Similar to SQL injection let s call it LINQ injection .", "I would much rather use LINQ to SQL or LINQ if not possible with LINQ to SQL to figure out the running totals so I can just set DataGridView.DataSource to my data .", "@DanielHilgarth : yield is an integral part of LINQ without it there would be no deferred execution another essential component of LINQ .", "Why are you building the query using expressions if it s a linq-to-objects query", ": .. . .. . Is there an easy way to do obtain this new enumerable with LINQ to Objects", "LINQ to SQL even manages to translate the entire LINQ query into a single SQL query .", "Some caveats about using LINQ to SQL : .. . .. . Has Microsoft really killed LINQ to SQL", "http : stackoverflow.com questions 253263 has-microsoft-really-killed-linq-to-sql .. . .. . Is LINQ to SQL DOA", "possible duplicate of Understanding .AsEnumerable in LINQ to SQL http : stackoverflow.com questions 3311244 understanding-asenumerable-in-linq-to-sql", "FYI : Sort is a method of List T and is not a Linq extension .", "WhereListIterator is not your code it s a LINQ API .", "@David they have linq methods", "That s easy : .. . .. . Think LINQ", "And can LINQ do it for you", "But I m looking for a LINQ solution if there is any .", "Linq-to-SQL and Entity Framework make use if the IQueryable and will actually translate your Linq query to SQL and let the server handle the indexing sorting filtering etc .", "The LINQ-to-Entities provider will translate that into SQL that both selects and filters .", "@Gabe - Actually the title of that article is What can we not optimize in LINQ to Objects", "And also there is an excellent series of blog posts by Matt Warren on how to create your own LINQ Provider : LINQ : Building an IQueryable provider series http : blogs.msdn.com mattwar pages linq-links.aspx", "Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx .", "My 2 cents Read chapters 11 Query expressions and LINQ to Objects and 12 LINQ beyond collections in C in Depth book to understand how LINQ works .", "This question already has an answer here : .. . .. . How to use LINQ to select-object with minimum or maximum property value questions 914109 how-to-use-linq-to-select-object-with-minimum-or-maximum-property-value 6 answers .. . LINQ : How to perform .Max on a property of all objects in a collection and return the object with maximum value duplicate questions 1101841 linq-how-to-perform-max-on-a-property-of-all-objects-in-a-collection-and-ret 9 answers .. . .. . If I have a class that looks like : .. . .. . And a collection of those items.. . .. . .. . How can I use LINQ to return the single Item object which has the highest ID", "Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx .", "In LINQ syntax the GroupJoin is achieved by into clause .", "I hate the special linq syntax but conceptually the join is probably the way to go with linq-to-sql .", "LINQ is not always the solution .", "LINQ has OfType built-in for this .", "See also : what is linq", "Nice trick for linq to object .", "What flavours of LINQ are there", "There is no DistinctBy method with Linq .", "LINQ drives me crazy .", "way to do it using Linq .", "I need to implement the following T-SQL clause ... . .. . .. . ...in C LINQ .", "Feed a lambda in to a string and use it in a Linq Query", "For LINQ-to-SQL I would expect hope", "In a basic sense LINQ to Objects represents a new approach to collections ." ] }
{ "confidence": [ 153.14456176757812, 125.88794708251953, 112.59662628173828, 110.84558868408203, 110.2743148803711, 108.99787139892578, 107.9354476928711, 107.51476287841797, 107.28905487060547, 106.69912719726562, 106.4308090209961, 106.4308090209961, 106.4308090209961, 103.82537078857422, 101.84978485107422, 100.0989990234375, 98.50712585449219, 96.25941467285156, 96.07617950439453, 95.25484466552734 ], "content": [ "Question : I usually use the term entity to represent a business data object and in my mind the linq-to-entities and linq-to-objects were the same . Is that not correct Comment : See also : what is linq stackoverflow.com questions 471502 what-is-linq 471592 471592 http : stackoverflow.com questions 471502 what-is-linq 471592 471592 .. . Answer : Linq to Objects The term LINQ to Objects refers to the use of LINQ queries with any IEnumerable or IEnumerable collection directly without the use of an intermediate LINQ provider or API such as LINQ to SQL or LINQ to XML . You can use LINQ to query any enumerable collections such as List Array or Dictionary . The collection may be user-defined or may be returned by a .NET Framework API . In a basic sense LINQ to Objects represents a new approach to collections . In the old way you had to write complex foreach loops that specified how to retrieve data from a collection . In the LINQ approach you write declarative code that describes what you want to retrieve . ref : http : msdn.microsoft.com en-us library bb397919.aspx .. . .. . Linq to Entity LINQ to Entities provides Language-Integrated Query LINQ support that enables developers to write queries against the Entity Framework conceptual-model using Visual Basic or Visual C . Queries against the Entity Framework are represented by command tree queries which execute against the object context . LINQ to Entities converts Language-Integrated Queries LINQ queries to command tree queries executes the queries against the Entity Framework and returns objects that can be used by both the Entity Framework and LINQ . The following is the process for creating and executing a LINQ to Entities query : Ref : http : msdn.microsoft.com en-us library bb386964.aspx", "Question : I usually use the term entity to represent a business data object and in my mind the linq-to-entities and linq-to-objects were the same . Is that not correct Comment : See also : what is linq stackoverflow.com questions 471502 what-is-linq 471592 471592 http : stackoverflow.com questions 471502 what-is-linq 471592 471592 .. . Answer : Linq to entities is intended to be used with Entity Framework while Linq to objects is for any IEnumerable collection . More details : .. . .. . 1 . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx .. . 2 . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx", "Question : I usually use the term entity to represent a business data object and in my mind the linq-to-entities and linq-to-objects were the same . Is that not correct Comment : See also : what is linq stackoverflow.com questions 471502 what-is-linq 471592 471592 http : stackoverflow.com questions 471502 what-is-linq 471592 471592 .. . Answer : That is definitely not the case . LINQ-to-Objects is a set of extension-methods on IEnumerable T that allow you to perform in-memory query operations on arbitrary sequences of objects . The methods accept simple delegates when necessary . LINQ-to-Entities is a LINQ provider that has a set of extension-methods on IQueryable T . The methods build up an expression tree which is why delegates are actually passed as Expression s and the provider will build up a SQL query based on its parsing of that expression tree . As an example consider the following queries : .. . .. . The first query is will build up an expression tree consisting of a select and a where with the two lambdas actually considered as LambdaExpression s . The LINQ-to-Entities provider will translate that into SQL that both selects and filters . The second query inserts an AsEnumerable which will force the remainder of the query to use LINQ-to-Objects . In that case the provider will generate SQL based on only the selection return all those records from the database and then the filtering will occur in-memory . Obviously that s likely going to be much slower . Comment : is there any way to filter on both conditions for a linq to object query or is it always narrowing down to the first action before processing the next Comment : It depends if you just want to get all the records from a database and then perform actions on them in memory you can put the AsEnumerable before the Select and then do what you want . In general though it s a better idea to keep things separate . If you have an IEnumerable T then you ll be using LINQ-to-Objects . If not then the database will likely be more efficient . Comment : @dlev you didn t answer what he asked .", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : I think the answer to What flavors of LINQ are there is incomplete . First of all you can create your own flavor . Yes it is an advanced task but there are a lot of different LINQ implementations now . Here is the list of existing LINQ providers plus some more resources on learning LINQ on Charlie Calvert s blog : Links to LINQ http : blogs.msdn.com charlie archive 2006 10 05 Links-to-LINQ.aspx . And also there is an excellent series of blog posts by Matt Warren on how to create your own LINQ Provider : LINQ : Building an IQueryable provider series http : blogs.msdn.com mattwar pages linq-links.aspx", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : A few LINQ Tips : .. . .. . Apply filters before a join to improve query-performance .. . Filter LINQ queries using object-reference comparison .. . Apply aggregates to empty collections in LINQ to SQL queries .. . Delay loading a property in LINQ to SQL .. . Use table-valued functions with eager-loading turned on .. . Put joins in the correct order in a LINQ to Objects query .. . Compose a LINQ query inside a loop .. . .. . http : www.aspnetpro.com articles 2009 04 asp200904zh f asp200904zh f.asp", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : Some caveats about using LINQ to SQL : .. . .. . Has Microsoft really killed LINQ to SQL http : stackoverflow.com questions 253263 has-microsoft-really-killed-linq-to-sql .. . .. . Is LINQ to SQL DOA http : stackoverflow.com questions 252683 is-linq-to-sql-doa .. . .. . There s also some controversy http : blogs.zdnet.com microsoft p 1457 about the first version of Entity Framework including a petition http : efvote.wufoo.com forms ado-net-entity-framework-vote-of-no-confidence .", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : My 2 cents Read chapters 11 Query expressions and LINQ to Objects and 12 LINQ beyond collections in C in Depth book to understand how LINQ works .", "Question : I found an example in the VS2008 Examples http : msdn2.microsoft.com en-us bb330936.aspx for Dynamic LINQ that allows you to use a sql-like string e.g . OrderBy Name Age DESC for ordering . Unfortunately the method included only works on IQueryable T . Is there any way to get this functionality on IEnumerable T .. . Answer : Here s something else I found interesting . If your source is a DataTable you can use dynamic sorting without using Dynamic Linq .. . .. . reference : http : msdn.microsoft.com en-us library bb669083.aspx Using DataSetExtensions .. . .. . Here is one more way to do it by converting it to a DataView :", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : Another good site for Linq is Hooked on Linq http : www.hookedonlinq.com MainPage.ashx and here are 101 Linq samples http : msdn.microsoft.com en-us vcsharp aa336746.aspx which are a great reference if you just want a quick syntactical example . Let s also not forget LinqPad http : www.linqpad.net :", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : Get the book Linq in Action it is an easy read for a coding book and really teaches you how to use Linq and the new features of .NET 3.5 some of the cool parts they put in for the language .", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : LINQ to entities : .. . .. . Video walkthroughs http : blogs.msdn.com adonet archive 2008 05 20 how-do-i-new-entity-framework-videos.aspx .. . Channel 9 video http : channel9.msdn.com shows Going+Deep ADONET-Entity-Framework-What-How-Why .. . Entity framework FAQ http : blogs.msdn.com dsimmons pages entity-framework-faq.aspx .. . Entity framework performance http : blogs.msdn.com adonet archive 2008 03 27 ado-net-entity-framework-performance-comparison.aspx .. . .. . I ve got a lot more I tagged on Delicious.com http : delicious.com mrshrinkray entityframework .", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : Mention LINQ to Entities since ADO.NET Entity Framework will be an important .NET module .", "Question : Overview .. . .. . One of the things I ve asked a lot about on this site is LINQ http : msdn.microsoft.com en-us netframework aa904594.aspx . The questions I ve asked have been wide and varied and often don t have much context behind them . So in an attempt to consolidate the knowledge I ve acquired on Linq I m posting this question with a view to maintaining and updating it with additional information as I continue to learn about LINQ . I also hope that it will prove to be a useful resource for other people wanting to learn about LINQ . What is LINQ From MSDN http : msdn.microsoft.com en-us netframework aa904594.aspx : .. . .. . The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query set and transform operations . It extends C and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities . What this means is that LINQ provides a standard way to query a variety of datasources using a common syntax . What flavours of LINQ are there Currently there are a few different LINQ providers provided by Microsoft : .. . .. . Linq to Objects http : msdn.microsoft.com en-us library bb397919.aspx which allows you to execute queries on any IEnumerable object . Linq to SQL http : msdn.microsoft.com en-us library bb425822.aspx which allows you to execute queries against a database in an object oriented manner . Linq to XML http : msdn.microsoft.com en-us library bb387098.aspx which allows you to query load validate serialize and manipulate XML documents . Linq to Entities http : msdn.microsoft.com en-us library bb386964.aspx as suggested by Andrei http : stackoverflow.com questions 16322 all-about-linq 33588 .. . Linq to Dataset http : msdn.microsoft.com en-us library bb399399.aspx .. . .. . There are quite a few others many of which are listed here http : blogs.microsoft.co.il blogs vardi archive 2008 10 09 the-linq-list-projects.aspx . What are the benefits Standardized way to query multiple datasources .. . Compile time safety of queries .. . Optimized way to perform set based operations on in memory objects .. . Ability to debug queries .. . .. . So what can I do with LINQ Chook http : stackoverflow.com users 489 ch00k provides a way to output CSV files http : stackoverflow.com questions 4432 csv-string-handling 4441 .. . Jeff http : stackoverflow.com users 1 jeff-atwood shows how to remove duplicates from an array http : stackoverflow.com questions 9673 remove-duplicates-from-array 9685 .. . Bob gets a distinct ordered list from a datatable http : stackoverflow.com questions 59 how-do-i-get-a-distinct-ordered-list-of-names-from-a-datatable-using-linq 62 .. . Marxidad http : stackoverflow.com users 1659 marxidad shows how to sort an array http : stackoverflow.com questions 15486 sorting-an-ilist-in-c 15495 .. . Dana gets help implementing a Quick Sort Using Linq http : stackoverflow.com questions 185072 learning-linq-quicksort .. . .. . Where to start A summary of links from GateKiller s question http : stackoverflow.com questions 8050 beginners-guide-to-linq are below : .. . Scott Guthrie provides an intro to Linq on his blog http : weblogs.asp.net scottgu archive 2007 05 19 using-linq-to-sql-part-1.aspx .. . An overview of LINQ on MSDN http : msdn.microsoft.com en-us library bb308959.aspx .. . .. . ChrisAnnODell http : stackoverflow.com users 1758 ChrisAnnODell suggests checking out : .. . .. . Hooked on Linq http : www.hookedonlinq.com MainPage.ashx .. . 101 Linq Samples http : code.msdn.microsoft.com 101-LINQ-Samples-3fb9811b .. . LinqPad http : www.linqpad.net .. . .. . What do I need to use LINQ Linq is currently available in VB.Net 9.0 and C 3.0 so you ll need Visual Studio 2008 or greater to get the full benefits . You could always write your code in notepad and compile using MSBuild .. . .. . There is also a tool called LinqBridge http : stackoverflow.com questions 7652 querying-like-linq-when-you-dont-have-linq 7710 which will allow you to run Linq like queries in C 2.0 . Tips and tricks using LINQ .. . .. . This question http : stackoverflow.com questions 28858 coolest-c-linqlambdas-trick-youve-ever-pulled has some tricky ways to use LINQ Comment : +1 for a great post and the reference to ScottGu s blog . It s a great resource and where I initially learned LINQ . .. . Answer : IMHO an overlooked but important benefit is the coding efficiency of LINQ e.g how much can be accomplished with so little code . I personally find the query syntax easy to read and comprehend .", "Question : LINQ to Objects supports queries on string objects but when I use code such as below : .. . .. . All I get is : .. . .. . This is discussed as an accident in this question http : stackoverflow.com questions 2702390 how-can-i-evaluate-a-deferred-linq-statement-when-debugging but this is what I am actually trying to do and I cannot find it through search anywhere . I know there are other ways to manipulate strings but then I also know you can do some really cool tricks with LINQ and I just would like to know if there is a way to trim a string to a certain length with LINQ .. . Answer : SomeText.Take 6 will returns an IEnumerable http : msdn.microsoft.com en-us library 9eekhta0.aspx of char of char and ToString method will not return the suspected string you need to call it like the following :", "Question : I found an example in the VS2008 Examples http : msdn2.microsoft.com en-us bb330936.aspx for Dynamic LINQ that allows you to use a sql-like string e.g . OrderBy Name Age DESC for ordering . Unfortunately the method included only works on IQueryable T . Is there any way to get this functionality on IEnumerable T .. . Answer : Just stumbled into this oldie.. . .. . .. . To do this without the dynamic LINQ library you just need the code as below . This covers most common scenarios including nested properties . To get it working with IEnumerable T you could add some wrapper methods that go via AsQueryable - but the code below is the core Expression logic needed . .. . .. . Edit : it gets more fun if you want to mix that with dynamic - although note that dynamic only applies to LINQ-to-Objects expression-trees for ORMs etc can t really represent dynamic queries - MemberExpression doesn t support it . But here s a way to do it with LINQ-to-Objects . Note that the choice of Hashtable is due to favorable locking semantics : Comment : Best damn piece of code I have seen : Just solved a million problems in my project : Comment : @Dave - you need to start with IQueryable T so if you have something like List T which is IEnumerable T you may need to use AsQueryable - for example var sorted someList.AsQueryable .OrderBy Foo.Bar Comment : Have you seen this.. . it might help some people.. . stackoverflow.com questions 557819 http : stackoverflow.com questions 557819 strongly-typed-dynamic-linq-sorting 2794039 2794039 its a more strongly typed solution . Comment : Is there any example of query using this code Comment : @MGOwen you seem to misunderstand the nature of code . The 40 lines is the same no matter whether it is 40 lines that you put somewhere in your project or if those lines come pre-compiled or as source in an external library . It would have been pretty amazing if I had linked in Oct 08 to a library on nuget that has existed since Dec 11 not least because nuget didn t exist then either but the fundamental what it is doing is the same . Also you use the phrase actual solution as though there is some well-defined agreed single route to every coding question : there is not .", "Question : I found an example in the VS2008 Examples http : msdn2.microsoft.com en-us bb330936.aspx for Dynamic LINQ that allows you to use a sql-like string e.g . OrderBy Name Age DESC for ordering . Unfortunately the method included only works on IQueryable T . Is there any way to get this functionality on IEnumerable T .. . Answer : Thanks to Maarten Query a collection using PropertyInfo object in LINQ http : stackoverflow.com questions 11431546 query-a-collection-using-propertyinfo-object-in-linq I got this solution : .. . .. . In my case I was working on a ColumnHeaderMouseClick WindowsForm so just found the specific Column pressed and its correspondent PropertyInfo : .. . .. . OR .. . .. . be sure to have your column Names matching the object Properties .. . .. . Cheers", "Question : Any advice on when DataTable.Select http : msdn.microsoft.com en-us library system.data.datatable.select.aspx should be used versus LINQ Select http : msdn.microsoft.com en-us library system.linq.enumerable.select.aspx when dealing with an in-memory DataTable I find LINQ syntax easier and more powerful but I m not sure if there are performance or other issues which make a DataTable select preferable . I m using a third party API that provides a DataTable that has been pre-populated from the database . I need to filter that further in-memory . .. . Answer : Hmm are you comparing datasets with LINQ to SQL http : msdn.microsoft.com en-us library bb425822.aspx If you are then I d say just ditch datasets and go with L2S . DataTable.Select assumes you ve already populated the datatable with data . This can lead to bad designs where you load more data than you need just to filter in the client . Get SQL Server to do your querying for you and work on the resultset it gives you . L2S will read from the database only when you iterate the collection so it s much easier to formulate your queries before hitting the database . LINQ to SQL introduces some debugging overhead because it can be awkward to get the dynamically-generated SQL out of it whereas in datasets you are supplying the SQL in the first place but in almost all other situations it s far more elegant . The deferred loading http : msdn.microsoft.com en-us library bb425822.aspx linqtosql 5Ftopic15 functionality is especially useful . If you re not working with a database then I d still prefer LINQ specifically known as LINQ to Objects http : msdn.microsoft.com en-us library bb397919.aspx in this scenario over datasets . The syntax is just much easier and because there are no magic strings i.e . SQL statements then it s easier to test and you get compile-time warnings for typos etc . Comment : Thanks for your answer . I should have made clear that I don t have interaction with the database . I ll update the question . Comment : Ahh fair enough . I ve updated my answer on that basis .", "Question : I have 2 lists . 1 is a collection of products . And the other is a collection of products in a shop . I need to be able to return All shopProducts if the names match any Names in the products . I have this but it doesn t seem to work . Any ideas I really need to say give me all the shopproducts where name exists in the other list . Any help really appreciated .. . .. . Thanks Comment : Thanks everyone for there comments I have it working now.. . Thanks again. . Answer accepted . .. . Answer : For LINQ-to-Objects if listOfProducts contains many items then you might get better performance if you create a HashSet T containing all the required names and then use that in your query . HashSet T has O 1 lookup performance compared to O n for an arbitrary IEnumerable T . For LINQ-to-SQL I would expect hope that the provider could optimise the generated SQL automatically without needing any manual tweaking of the query . Comment : Nice trick for linq to object . Comment : Thanks . It was really helpful .", "Question : I found an example in the VS2008 Examples http : msdn2.microsoft.com en-us bb330936.aspx for Dynamic LINQ that allows you to use a sql-like string e.g . OrderBy Name Age DESC for ordering . Unfortunately the method included only works on IQueryable T . Is there any way to get this functionality on IEnumerable T .. . Answer : You could add it : .. . .. . The GetPropertyValue function is from Kjetil Watnedal s answer http : stackoverflow.com questions 41244 dynamic-linq-orderby 41262 .. . .. . The issue would be why Any such sort would throw exceptions at run-time rather than compile-time like D2VIANT s answer . If you re dealing with Linq to Sql and the orderby is an expression tree it will be converted into SQL for execution anyway . Comment : GetPropertyValue mehotod will be executed for all elements it s bad solution . Comment : OrderBy don t maintain the previous order", "Question : Let s say we have a sorted collection such as SortedSet http : msdn.microsoft.com en-us library dd412070.aspx or SortedList http : msdn.microsoft.com en-us library system.collections.sortedlist.aspx with many 10M+ elements . Lots of querying is happening so performance matters . From runtime comparisons I m under the impression that LINQ to Objects doesn t take advantage of the sorting therefore not taking advantage of potential performance gains . First example - counting the elements in a range : .. . .. . Not exactly sure what LINQ to Objects does here internally worst case it s checking every single element which would be O n . The can be done a lot faster by taking advantage of the sorting with a binary-search for the lower and upper bound in O log n . Second example - SelectMany over list of sets : .. . .. . If LINQ to strike SQL strike Objects were to take advantage of the sorting it could effectively zipper-merge all the sorted sets into one large sorted list in O n . The .OrderBy on the result could then be ignored as the list is already sorted . Instead SelectMany concatenates all the sorted sets into one large now unsorted list which will required another O n log n sort . This can easily be verified by removing the .OrderBy and observing the order in which the elements are written to the console . My question is : is there already an alternative more efficient implementation of LINQ to SortedSet SortedList out there .. . .. . i4o http : i4o.codeplex.com looks very interesting but it seems to require secondary index collections to improve query-performance on the original collection . I just want queries on my sorted collections to run faster by taking advantage of the sorting . Comment : The Where method in Linq to object check each element . So there is no performance gain using SortedList in this case . Comment : What query do you exactly want to do Because asserting LINQ is stupid is not really useful.. . Comment : The examples above are very typical for the kind of queries I want to run . I m sure there are more instances where LINQ to Objects could use the sorting but doesn t e.g . find min max so my question is if there s already a generic LINQ provider for sorted collections out there . Comment : Nice question I wonder how such a provider can be implemented . I ll investigate . Comment : This doesn t answer the question as stated but since you re using a SortedSet why not explicitly use the methods it provides instead of relying on LINQ to try to do the best thing E.g . for your first example int rangeCount mySortedSet1.GetViewBetween 1000000000 2000000000 .Count is always going to be faster no matter how optimised LINQ is . .. . Answer : The problem for LINQ is that it can t know the sorted set is ordered exactly the same way as the query expects . Since any ordered collection can be created with an IComparer IComparable Comparison T there is no knowing that 500000 actually makes sense . Maybe you ve got a custom method on the comparer that first sorts by Odd Even then by number . In which case the order would be completely messed up and O n is required in all cases . So to be on the safe side LINQ will need to iterate through all elements in the Collection even when it is sorted in some way . The default .Where implementation does not contain an optimization for ordered collections . It might be possible to create an optimized version which keeps the existing ordering in mind while iterating but it will be very difficult to do and to make it work in all cases . You could create a Between method that uses the GetViewBetween method of SortedSet to return a new pre-ordered collection . Or would add the standard .Where as you d normally would for any non-pre-sorted set . Linq-to-SQL and Entity Framework make use if the IQueryable and will actually translate your Linq query to SQL and let the server handle the indexing sorting filtering etc . Comment : Right I meant LINQ to Objects not LINQ to SQL . Comment : Even if the IComparer problem could be solved it would mean LINQ to objects would need Expression s not just Func delegates . Comment : It wouldn t as long as you d be able to detect which IComparer is being used . Which would at least solve the default sorting issues . Any custom sorting makes this whole topic an instant mess ." ] }
[ "yes-answer-long", "yes-answer-short" ]
linq
UNK_RELATION
azure-xplat-cli@azure@161
azure-xplat-cli -- azure-xplat-cli provides a cross-platform command-line interface for developers and it administrators to develop deploy and manage microsoft @placeholder applications .
{ "confidence": [ 81.51274871826172, 73.73941040039062, 72.3140869140625, 68.61437225341797, 68.26374816894531, 67.24161529541016, 63.611412048339844, 63.157875061035156, 58.19441223144531, 47.72736358642578, 47.690826416015625, 43.968963623046875, 43.818206787109375, 42.33957290649414, 41.927703857421875, 41.923362731933594, 40.932064056396484, 40.185821533203125, 40.11494445800781, 38.37139892578125, 37.15953063964844, 36.39308166503906, 35.44489288330078, 34.807899475097656, 34.69457244873047, 34.297584533691406, 34.15614318847656, 34.10641098022461, 34.05373001098633, 33.291141510009766, 31.852243423461914, 31.794692993164062, 31.390117645263672, 31.390117645263672, 29.48200225830078, 29.22882843017578, 28.829452514648438, 28.829452514648438, 28.829452514648438, 27.689437866210938, 27.137638092041016, 26.203542709350586, 25.50696563720703, 25.50696563720703, 23.556278228759766, 23.556278228759766, 23.556278228759766, 23.556278228759766, 23.556278228759766, 23.280471801757812, 22.828577041625977, 22.740707397460938, 22.3102970123291, 21.664560317993164, 20.794755935668945, 20.794755935668945, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 20.383459091186523, 18.349416732788086, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773, 16.661596298217773 ], "content": [ "I want to create jobs that will kick-off Azure xplat-cli commands .", "I am using the azure xplat client .", "I am using ansible hosted on linux to manage both Linux and windows VMs hosted on azure and use azure xplat-cli commandline to create VMs .", "xplat cli confirms that the command has been executed properly .", "Therefore my question : How to execute a PowerShell script after creating a Windows VM in Azure using the xplat cli", "EDIT : I created an detailed article that explains how to provision windows servers with xplat-cli in Azure http : blog.manageacloud.com entry azure-provision-windows-automatically .", "I found several examples for PowerShell but no examples for Xplat cli .", "There are some references and documentation such as MSDN https : msdn.microsoft.com en-us library azure dn781373.aspx and Github https : github.com Azure azure-xplat-cli issues 1539 but no examples .", "I am creating Windows VMs from the azure-xplat-cli using the following command : .. . .. . After the Windows VM is created I would like to execute a powershell script to configure the server .", "I use the azure xplat command-line tools and some bash scripts to spawn worker VMs process CPU memory bound computing workloads on them and tear them down again .", "According to the official doc https : azure.microsoft.com en-us documentation articles xplat-cli-connect and according to the experience there are two ways to do that - using azure login auth using dialogue not the dynamic as you describe that and using publish settings file which you may use for management without need to login in the browser .", "A couple of example article I ve looked at are here : .. . .. . https : azure.microsoft.com en-gb documentation articles virtual-machines-docker-with-xplat-cli .. . http : blog.siliconvalve.com 2015 01 07 get-started-with-docker-on-azure .. . .. . However there s plenty of other articles saying the same thing .", "If you insist on using the docker client approach my alternative suggestion would be to update your azure-cli and try azure vm docker create again .", "We achieved the same using this article : https : azure.microsoft.com en-us documentation articles resource-group-authenticate-service-principal authenticate-service-principal-with-password---azure-cli .. . .. . Briefly you have to create a new application record within Azure Active Directory that will have its own login and password .", "I m trying to automate detection of current user s oid using Azure CLI in order to perform queries on my application data .", "Another helpful article based on @izzekil s article manesh.me 2015 10 15 https : manesh.me 2015 10 15 options-for-azure-cli-logins-step-by-step-guidance Login with Service", "I am migrating a site to azure it has about 200 domains attached to it .", "azure account set MY SUB If you have multiple", "After I run the command azure vm extension .. . : .. . .. . 1 .", "I tried azure site domain add domain1.com domain2.com azuresitename but that didn t work .", "I am trying to connect to authenticate to our Azure platform dynamically to run the following commands .. . .. . To run these commands It seems I have to authenticate manually via a browser using Azure s dynamically generated code returned from the execution of the Azure login command .", "I was expecting these to have been created by the azure vm docker create command .", "For the time being my solution is to : .. . .. . 1 Launch a Ubuntu VM WITHOUT using the Azure docker extension .. . .. . 2 SSH into the VM and install docker with these lines : .. . .. . 3 Run docker within this VM directly without relying on a client and in particular the azure cli .", "I found great article by David Ebbo that explains how to achive this using combination of Azure Portal old and Powershell Cmdlets : blog.davidebbo.com 2014 12 azure-service-principal.html http : blog.davidebbo.com 2014 12 azure-service-principal.html This gave me the insight to the process I moved on and installed Jenkins on Windows so I can run Powershell on it so this awesome article fixed my problem .", "azure storage account set is not required .", "Microsoft Account authentication you are reffering to is the consumer one and have nothing at least external in connection with the Azure AD .", "I could run the script 200 times but I remember doing this via a command-line before .", "NOTE : I decided to upload the script to Azure as I read in a post https : social.msdn.microsoft.com Forums azure en-US f409fd49-82eb-4982-b416-6914d65d6813 customscriptextension-fileuri forum WAVirtualMachinesforWindows and in the documentation that is mandatory .", "I was able to install CustomScript extension using below command .. . .. . azure vm extension set .. . .. . I have uploaded my scripts to azure blob storage account and i need to trigger scripts using the extension and i don t find any proper documentation documentation was only for powershell .", "Will also post an issue with the azure-docker team about it then .", "Is there anyway to add multiple-domains in one command", "Are you getting an error when you make the call via the cli tool or is the extension being added and the script itself isn t running", "I m trying to write a Powershell script to create a VM in Azure with Docker installed .", "I believe it is a bug that the azure-docker team has to fix .", "For being able to do what you are trying to do i think you can try to join the machine into the domain or authenticate to the Azure using the AAD credentials not the Microsoft Account .", "As per MSDN documentation https : msdn.microsoft.com en-us library azure dn781373.aspx the folder C : Packages Plugins Microsoft.Compute.CustomScriptExtension is created but there is no script downloaded to C : Packages Plugins Microsoft.Compute.CustomScriptExtension version-number Downloads iteration .. . 3 .", "Then set the storage account for your susbscription .. . .. . Then create your virtual-machine using azure vm create .", "I re-created my docker host using azure vm docker create but it does not work any more .", "Check https : msdn.microsoft.com en-us library azure b7727a57-b002-4d84-a20c-3192b1d6b1b4 BKMK ManageUsers for guidance .", "After that you can perform a fully non-interactive login command that works for ARM model .", "And the final command is : .. . .. . This command successfully creates the C : HelloWorld directory .", "thanks", "Logging onto Azure portal and viewing the created VM - the Docker VM Extension doesn t seem to have been added and there s no endpoints other than the default SSH one .", "Then install the Azure Active Directory Module for Windows PowerShell 64-bit version https : bposast.vo.msecnd.net MSOPMW Current amd64 AdministrationConfig-zh-hans.msi and click Run to run the installer package .", "I have a Jenkins running on Ubuntu .", "How do I authenticate Jenkins", "The commands that I want to perform are the ARM commands not Service Management if that makes any difference .", "Then you should grant required permissions to that account .", "After logging in non-interactive be sure to set the current account to the Subscription that you gave the sp permissions to .", "So try to use for your situation only AAD users not Microsoft Account .", "Note that before running the above powershell you need to first install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW https : www.microsoft.com en-us download details.aspx id 41950 from the Microsoft Download Center .", "I would like for example to run the following HelloWorld PowerShell script https : gist.githubusercontent.com tk421 8b7dd37145eaa8f82e2f raw 36c11aafd3f5d6b4af97aab9ef5303d80e8ab29b azureCustomScriptExtensionTest : .. . .. . After reading documentation I should be able to run a CustomExtensionScript by executing something like this the following command does not work : .. . .. . I think that the problem is the parameter -i .", "Here is the help for the command that explains its purpose :", "If I use the command account show I get this : .. . .. . Look at [email protected] .", "To add an additional answer to my question it turns out you can do the same using the docker create command .. .", "Now if I use the command ad user list I get this : .. . .. . The principal name is peter parker outlook.com EXT @peter parkeroutlook.onmicrosoft.com .", "When i create windows-server-2008 I need to trigger few startup scripts so that those are preconfigured while windows-server is up .", "Can you please help", "As far I understand this is done by executing a CustomScriptExtension .", "I have not been able to find an example on Internet .", "Please note that the my current approach is a CustomScriptExtension but anything that allows to bootstrap a configuration script will be considered", "EDIT How do I know it is failing", "2 .", "The folder C : HelloWorld is not created which means that the contents of the script has not been executed .", "4 .", "I cannot find any sort of logs or a trace to know what happened .", "Does anyone knows where can I find this information", "It might help if you include why it s not working .", "@MikeWo the description has been updated .", "The extension is added the script is not running and I can t find any sort of logs or trace of why .", "The parameters The Json that I used after reading the MSDN documentation were not correct .", "However you can get clues of the correct parameters by reading the C code .", "However I just made a test to download the original script from Github and it is working fine so I guess that the documentation is a bit outdated .", "Is there a way to authenticate dynamically without manual intervention", "We would ideally like to do this via a BASH script if possible .", "Note : We don t need to do this with AD accounts .", "From everything I ve read I should be able to do the following : .. . .. . The vm creation works however the docker command fails with the following error : .. . .. . An error occurred trying to connect : Get https : myvmname.cloudapp.net : 4243 v1.20 info : dial tcp 40.127.169.184 : 4243 : ConnectEx tcp : A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond .", "I spawn the machines like this : .. . .. . This all works OK so far .", "Looking at my Pay-As-You-Go subscription lists I see quite a bit of geo-redundant storage used i.e .", "the second most expensive storage option .", "How can I tune my setup to use the cheapest blob storage option locally redundant if I recall correctly instead", "Semi-related : I also am glad for other tips on how to save money with this kind of workload i.e .", "maybe creating and using a minimal Linux image not 30gb could help", "Create your storage account first with the settings that you want such as geo-replication disabled .", "For example here is how you would create a storage account in East US with geo-replication disabled .", "It is used to set update the properties of storage-account .", "There is no concept of setting a specific storage account as the default one for that subscription .", "Does that mean geo-redundancy is the default if you haven t created a storage account yourself", "Because after following @Rick s answer my VHDs were stored in the new only locally redundant container as intended .", "Some articles I ve found refer to port 2376 - but that doesn t work either .", "Although I could be wrong with that bit .", "Does anyone know what I m doing wrong", "I know you are doing nothing wrong .", "My azurecli-dockerhost connection had been working for months and failed recently .", "Let me know how it goes .", "Thanks I ll give that a try later today .", "Brilliant - this works : I ve gone with your first suggestion .", "I m using plink in my PowerShell script to SSH into it and run a script file with your example .", "Then in that same linux script I m creating the docker containers .", "Then back in the Powershell script I m creating an endpoint for app I m installing Neo4j in this case ." ] }
{ "confidence": [ 93.19083404541016, 89.62661743164062, 83.61984252929688, 81.69359588623047, 78.77439880371094, 69.21817779541016, 64.36995697021484, 59.57453155517578, 58.631046295166016, 54.37661361694336, 53.64080810546875 ], "content": [ "Question : I am creating Windows VMs from the azure-xplat-cli using the following command : .. . .. . After the Windows VM is created I would like to execute a powershell script to configure the server . As far I understand this is done by executing a CustomScriptExtension . I found several examples for PowerShell but no examples for Xplat cli . I would like for example to run the following HelloWorld PowerShell script https : gist.githubusercontent.com tk421 8b7dd37145eaa8f82e2f raw 36c11aafd3f5d6b4af97aab9ef5303d80e8ab29b azureCustomScriptExtensionTest : .. . .. . After reading documentation I should be able to run a CustomExtensionScript by executing something like this the following command does not work : .. . .. . I think that the problem is the parameter -i . I have not been able to find an example on Internet . There are some references and documentation such as MSDN https : msdn.microsoft.com en-us library azure dn781373.aspx and Github https : github.com Azure azure-xplat-cli issues 1539 but no examples . Therefore my question : How to execute a PowerShell script after creating a Windows VM in Azure using the xplat cli Please note that the my current approach is a CustomScriptExtension but anything that allows to bootstrap a configuration script will be considered EDIT How do I know it is failing After I run the command azure vm extension .. . : .. . .. . 1 . xplat cli confirms that the command has been executed properly . 2 . As per MSDN documentation https : msdn.microsoft.com en-us library azure dn781373.aspx the folder C : Packages Plugins Microsoft.Compute.CustomScriptExtension is created but there is no script downloaded to C : Packages Plugins Microsoft.Compute.CustomScriptExtension version-number Downloads iteration .. . 3 . The folder C : HelloWorld is not created which means that the contents of the script has not been executed . 4 . I cannot find any sort of logs or a trace to know what happened . Does anyone knows where can I find this information Comment : It might help if you include why it s not working . Are you getting an error when you make the call via the cli tool or is the extension being added and the script itself isn t running Comment : @MikeWo the description has been updated . The extension is added the script is not running and I can t find any sort of logs or trace of why . .. . Answer : The parameters The Json that I used after reading the MSDN documentation were not correct . However you can get clues of the correct parameters by reading the C code . And the final command is : .. . .. . This command successfully creates the C : HelloWorld directory . NOTE : I decided to upload the script to Azure as I read in a post https : social.msdn.microsoft.com Forums azure en-US f409fd49-82eb-4982-b416-6914d65d6813 customscriptextension-fileuri forum WAVirtualMachinesforWindows and in the documentation that is mandatory . However I just made a test to download the original script from Github and it is working fine so I guess that the documentation is a bit outdated . EDIT : I created an detailed article that explains how to provision windows servers with xplat-cli in Azure http : blog.manageacloud.com entry azure-provision-windows-automatically .", "Question : null .. . Answer : I am using ansible hosted on linux to manage both Linux and windows VMs hosted on azure and use azure xplat-cli commandline to create VMs . When i create windows-server-2008 I need to trigger few startup scripts so that those are preconfigured while windows-server is up . I was able to install CustomScript extension using below command .. . .. . azure vm extension set .. . .. . I have uploaded my scripts to azure blob storage account and i need to trigger scripts using the extension and i don t find any proper documentation documentation was only for powershell . Can you please help", "Question : I am trying to connect to authenticate to our Azure platform dynamically to run the following commands .. . .. . To run these commands It seems I have to authenticate manually via a browser using Azure s dynamically generated code returned from the execution of the Azure login command . Is there a way to authenticate dynamically without manual intervention We would ideally like to do this via a BASH script if possible . Note : We don t need to do this with AD accounts . .. . Answer : According to the official doc https : azure.microsoft.com en-us documentation articles xplat-cli-connect and according to the experience there are two ways to do that - using azure login auth using dialogue not the dynamic as you describe that and using publish settings file which you may use for management without need to login in the browser .", "Question : null .. . Answer : I am using the azure xplat client . I am migrating a site to azure it has about 200 domains attached to it . Is there anyway to add multiple-domains in one command I tried azure site domain add domain1.com domain2.com azuresitename but that didn t work . I could run the script 200 times but I remember doing this via a command-line before . thanks", "Question : I have a Jenkins running on Ubuntu . I want to create jobs that will kick-off Azure xplat-cli commands . How do I authenticate Jenkins Comment : The commands that I want to perform are the ARM commands not Service Management if that makes any difference . Comment : I found great article by David Ebbo that explains how to achive this using combination of Azure Portal old and Powershell Cmdlets : blog.davidebbo.com 2014 12 azure-service-principal.html http : blog.davidebbo.com 2014 12 azure-service-principal.html This gave me the insight to the process I moved on and installed Jenkins on Windows so I can run Powershell on it so this awesome article fixed my problem . .. . Answer : We achieved the same using this article : https : azure.microsoft.com en-us documentation articles resource-group-authenticate-service-principal authenticate-service-principal-with-password---azure-cli .. . .. . Briefly you have to create a new application record within Azure Active Directory that will have its own login and password . Then you should grant required permissions to that account . After that you can perform a fully non-interactive login command that works for ARM model . Comment : Another helpful article based on @izzekil s article manesh.me 2015 10 15 https : manesh.me 2015 10 15 options-for-azure-cli-logins-step-by-step-guidance Login with Service Comment : After logging in non-interactive be sure to set the current account to the Subscription that you gave the sp permissions to . azure account set MY SUB If you have multiple", "Question : I m trying to write a Powershell script to create a VM in Azure with Docker installed . From everything I ve read I should be able to do the following : .. . .. . The vm creation works however the docker command fails with the following error : .. . .. . An error occurred trying to connect : Get https : myvmname.cloudapp.net : 4243 v1.20 info : dial tcp 40.127.169.184 : 4243 : ConnectEx tcp : A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond . Some articles I ve found refer to port 2376 - but that doesn t work either . Logging onto Azure portal and viewing the created VM - the Docker VM Extension doesn t seem to have been added and there s no endpoints other than the default SSH one . I was expecting these to have been created by the azure vm docker create command . Although I could be wrong with that bit . A couple of example article I ve looked at are here : .. . .. . https : azure.microsoft.com en-gb documentation articles virtual-machines-docker-with-xplat-cli .. . http : blog.siliconvalve.com 2015 01 07 get-started-with-docker-on-azure .. . .. . However there s plenty of other articles saying the same thing . Does anyone know what I m doing wrong .. . Answer : I know you are doing nothing wrong . My azurecli-dockerhost connection had been working for months and failed recently . I re-created my docker host using azure vm docker create but it does not work any more . I believe it is a bug that the azure-docker team has to fix . For the time being my solution is to : .. . .. . 1 Launch a Ubuntu VM WITHOUT using the Azure docker extension .. . .. . 2 SSH into the VM and install docker with these lines : .. . .. . 3 Run docker within this VM directly without relying on a client and in particular the azure cli . If you insist on using the docker client approach my alternative suggestion would be to update your azure-cli and try azure vm docker create again . Let me know how it goes . Comment : Thanks I ll give that a try later today . Will also post an issue with the azure-docker team about it then . Comment : Brilliant - this works : I ve gone with your first suggestion . I m using plink in my PowerShell script to SSH into it and run a script file with your example . Then in that same linux script I m creating the docker containers . Then back in the Powershell script I m creating an endpoint for app I m installing Neo4j in this case . Works great : Comment : I ve added another answer which a colleague found today . Just commenting here so you get notified about it as it might help you too .", "Question : I m trying to write a Powershell script to create a VM in Azure with Docker installed . From everything I ve read I should be able to do the following : .. . .. . The vm creation works however the docker command fails with the following error : .. . .. . An error occurred trying to connect : Get https : myvmname.cloudapp.net : 4243 v1.20 info : dial tcp 40.127.169.184 : 4243 : ConnectEx tcp : A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond . Some articles I ve found refer to port 2376 - but that doesn t work either . Logging onto Azure portal and viewing the created VM - the Docker VM Extension doesn t seem to have been added and there s no endpoints other than the default SSH one . I was expecting these to have been created by the azure vm docker create command . Although I could be wrong with that bit . A couple of example article I ve looked at are here : .. . .. . https : azure.microsoft.com en-gb documentation articles virtual-machines-docker-with-xplat-cli .. . http : blog.siliconvalve.com 2015 01 07 get-started-with-docker-on-azure .. . .. . However there s plenty of other articles saying the same thing . Does anyone know what I m doing wrong .. . Answer : To add an additional answer to my question it turns out you can do the same using the docker create command .. . This method works for me .", "Question : I use the azure xplat command-line tools and some bash scripts to spawn worker VMs process CPU memory bound computing workloads on them and tear them down again . I spawn the machines like this : .. . .. . This all works OK so far . Looking at my Pay-As-You-Go subscription lists I see quite a bit of geo-redundant storage used i.e . the second most expensive storage option . How can I tune my setup to use the cheapest blob storage option locally redundant if I recall correctly instead Semi-related : I also am glad for other tips on how to save money with this kind of workload i.e . maybe creating and using a minimal Linux image not 30gb could help .. . Answer : azure storage account set is not required . It is used to set update the properties of storage-account . There is no concept of setting a specific storage account as the default one for that subscription . Here is the help for the command that explains its purpose : Comment : Does that mean geo-redundancy is the default if you haven t created a storage account yourself Because after following @Rick s answer my VHDs were stored in the new only locally redundant container as intended .", "Question : I use the azure xplat command-line tools and some bash scripts to spawn worker VMs process CPU memory bound computing workloads on them and tear them down again . I spawn the machines like this : .. . .. . This all works OK so far . Looking at my Pay-As-You-Go subscription lists I see quite a bit of geo-redundant storage used i.e . the second most expensive storage option . How can I tune my setup to use the cheapest blob storage option locally redundant if I recall correctly instead Semi-related : I also am glad for other tips on how to save money with this kind of workload i.e . maybe creating and using a minimal Linux image not 30gb could help .. . Answer : Create your storage account first with the settings that you want such as geo-replication disabled . For example here is how you would create a storage account in East US with geo-replication disabled . Then set the storage account for your susbscription .. . .. . Then create your virtual-machine using azure vm create .", "Question : I m trying to automate detection of current user s oid using Azure CLI in order to perform queries on my application data . If I use the command account show I get this : .. . .. . Look at [email protected] . Now if I use the command ad user list I get this : .. . .. . The principal name is peter parker outlook.com EXT @peter parkeroutlook.onmicrosoft.com . It doesn t match . Any idea on how can I get the current user s object id Comment : You are using a live ID and I can see that the principal name is following the naming policy of a principal name to a live id . Why do you say it doesn t match .. . Answer : I believe you can t . Microsoft Account authentication you are reffering to is the consumer one and have nothing at least external in connection with the Azure AD . For being able to do what you are trying to do i think you can try to join the machine into the domain or authenticate to the Azure using the AAD credentials not the Microsoft Account . I strongly suspect there is no way to get the OID if that even exists with the MS Account and externally available of the user you are referring to in your question . So try to use for your situation only AAD users not Microsoft Account .", "Question : I m trying to automate detection of current user s oid using Azure CLI in order to perform queries on my application data . If I use the command account show I get this : .. . .. . Look at [email protected] . Now if I use the command ad user list I get this : .. . .. . The principal name is peter parker outlook.com EXT @peter parkeroutlook.onmicrosoft.com . It doesn t match . Any idea on how can I get the current user s object id Comment : You are using a live ID and I can see that the principal name is following the naming policy of a principal name to a live id . Why do you say it doesn t match .. . Answer : You can get the current user s object id through powershell cmdlets . Note that before running the above powershell you need to first install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW https : www.microsoft.com en-us download details.aspx id 41950 from the Microsoft Download Center . Then install the Azure Active Directory Module for Windows PowerShell 64-bit version https : bposast.vo.msecnd.net MSOPMW Current amd64 AdministrationConfig-zh-hans.msi and click Run to run the installer package . Check https : msdn.microsoft.com en-us library azure b7727a57-b002-4d84-a20c-3192b1d6b1b4 BKMK ManageUsers for guidance ." ] }
[ "yes-answer-long", "yes-answer-short" ]
azure
UNK_RELATION
jamvm@virtual-machine@78
jamvm -- jamvm is an open-source small clearly written interpreter-only java @placeholder ported to a wide variety of different platforms .
{ "confidence": [ 50.953346252441406, 46.99301528930664, 45.48602294921875, 44.131568908691406, 41.996978759765625, 41.81886291503906, 41.248924255371094, 40.81987762451172, 39.879066467285156, 36.879215240478516, 36.879215240478516, 35.52476119995117, 32.501590728759766, 32.501590728759766, 32.02363967895508, 30.469987869262695, 18.08412742614746, 17.519733428955078, 17.407310485839844, 16.894729614257812, 16.421676635742188, 16.10341453552246, 16.052854537963867, 15.631669044494629, 15.556427001953125, 15.537610054016113, 14.333967208862305, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 13.406864166259766, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105, 12.052409172058105 ], "content": [ "The FX9500 comes preloaded with JamVM that supports java 1.5 .", "Following the JamVM readme I did configure make make install on the jamVM and it worked .", "I then added jamvm and Sun javac to the path .", "I currently have Jamvm on my board but not JRE .", "I compiled openjdk-8 and jamvm 2.0.0 .. . .. . I can run simple programs using java -jamvm test.jar .. . .. . However when I run anything with log4J and jamvm I get a : .. . .. . If I run the same program using the default ZeroVM it runs without error .. . .. . I can also run this same program using java -jamvm with openjdk-7 without issue .", "I m trying to build GNU Classpath 0.98 and JamVM 1.5.2 .", "When I type java -version the gumstix returns : java version 1.5.0 JamVM version 1.5.3 .", "Then with GNU Classpath I did this : .. . .. . I got this error : .. . .. . The javac failed see config.log .. . .. . On the config.log I see that javac can t find VMStackWalker which is jamvm-specific I added the jamvm classes to the CLASSPATH then I got this error : .. . .. . The Java VM jamvm failed see config.log .. . .. . On the config.log I see that jamvm cannot find java.lang.Class .", "My Mac OS X 10.11 adventures : .. . .. . JamVM .. . .. . built with http : stackoverflow.com questions 9940503 building-jamvm-1-5-4-on-os-x-lion make clean CFLAGS -m32 . configure .", "The performance of Zero over JamVM is about 7 to 1 so please refrain from telling me to use another VM .", "Below is my connect method : .. . .. . Unsure if this is code related my code or LLRP Toolkit or something specific to JamVM FX9500 .", "When I do so jamvm -jar MyApp.jar I get the error mentioned above .", "So far I have installed JamVm jvm jikes compiler and classpath libraries as per instructions in this tutorial http : wiki.gumstix.org index.php title Onboard Java Compiler .", "I am setting BOOTCLASSPATH usr share jamvm classes.zip : usr share classpath glibj.zip but I am not setting any other variable .", "I have tried putting this file at various locations 1.the folder containing the java app 2 . in usr lib 3 . in the folder containing jamvm classes but to no avail .", "Steps to compiling GNU Classpath for Ubuntu12.04 : https : groups.google.com forum topic jruby-gsoc -fnKnP7zxbI .. . .. . Steps to compiling JamVM for Ubuntu 12.04 : https : groups.google.com forum topic jruby-gsoc uJ6RlVvHR-0", "I grepped all the Makefiles that . configure generated for -fsource and then either commented out lines with -fsource it s a gcj-specific flag if there was an alternate lines with -source argument or just replaced fsource with source .", "For some reason Java decides to use gnu.java.awt.peer.gtk.GtkToolkit .", "try ecj classpath need a java compiler and sun sdk seems to be no good here", "For some reason my java application still can t find it .", "I ended up googling what that symbol is http : lxr.free-electrons.com ident i IUCLC - it s an octal 01000 and added it right to the source : .. . .. . After that . configure keeps complaining about your javac not being GCJ .", "I got errors running it but that s a totally different story http : stackoverflow.com questions 19776571 error-dlopen-library-not-loaded-reason-image-not-found .. . .. . .. . I ll update the answer if I manage to run it", "I am trying to run a java application on a Gumstix overo board linux-kernel 2.6.34 .", "I am working on an embedded Linux device that has only qt .", "That said this breaks the rules for link-only answers on StackOverflow : An answer should copy in enough information from behind any links it uses to still remain useful even if that link breaks .", "the api http : java.sun.com javase 6 docs api java awt Toolkit.html getDefaultToolkit 28 29 suggests setting the system property awt.toolkit .. . .. . or", "It generated a dist folder whose structure is this : .. . .. . dist : -- MyApp.jar -- Readme -- lib folder --- -- jpcap.jar --- -- swing-layout-1.0.4.jar .. . .. . The readme says that in order to deploy this application one should go to the dist folder and type java -jar MyApp.jar .", "This is an armv5 system which uses Swing headed code Sun doesn t support headed on armv5 .", "What s wrong", "Fount it", "http : sourceforge.net forum message.php msg id 7193290", "you vote your own answer as the best one", "Yes as this is the solution for the problem and no one else has found it .", "See also the provide context for links section in stackoverflow.com help how-to-answer http : stackoverflow.com help how-to-answer", "indeed reading that thread I have no idea which of the answers proposed and by which person in the discussion is the one that solved your problem", "Thanks but the link above shows the solution .", "This does not provide an answer to the question .", "To critique or request clarification from an author leave a comment below their post - you can always comment on your own posts and once you have sufficient reputation http : stackoverflow.com faq reputation you will be able to comment on any post http : stackoverflow.com privileges comment .", "GNU Classpath .. . .. . took a bit more : .. . .. . If you make now compilation fails with java-io VMConsole.c : 80 : 19 : error : use of undeclared identifier IUCLC .", "It looks like an old bug of GNU Classpath I ve found mentions of similar problems .", "As you see below . configure is broken and won t work with any javac other than gcj .", "I ended up just editing . configure : .. . .. . in the beginning I added a line export JAVAC which javac .. . I replaced conditional assignment with JAVAC IS GCJ no .. . .. . Now . configure should pass but make won t .", "Last step I had to edit top-level Makefile and delete EXAMPLESDIR from SUBDIRS .. . line - it didn t compile with an error : .. . .. . It built", "I m working with a Motorola Zebra FX9500 RFID reader and trying to get a user application running that integrates with the LLRP Toolkit .", "My test application is simple : connects to the reader deletes any RO SPECs then disconnects .", "When I run the application from my dev machine I m able to execute with no issue .", "When I upload and run the program as a User Application on the FX9500 I get the message below when trying to connect to the LLRP server on the reader : .. . .. . I get this message after about 4 seconds - not the full 10 seconds timeout specified .", "How can I force it to use gnu.java.awt.peer.qt.QtToolkit instead or change the default behavior", "Haven t tired the first option but the second works like a charm .", "Thank you", "Also you can set the Default Toolkit inside of swing directly in a compiler-friendly way .", "A newbie here so apologies in advance for asking anything silly obvious .", "I have run a HelloWorld program and it seemed fine .", "Now when I try to run another application say MyApp that uses jpcap libraries the jvm gives me an error that looks like this : Exception during event dispatch : java.lang.UnsatisfiedLinkError : Native libarary jpcap not found as file libjpcap.so in gnu.classpath.boot.library.path and java.library.path .", ".", ".. . .. . This application was compiled using Netbeans 7.1 .", "My gumstix board has got libpcap-1.1.1-r1.6 installed .", "I found usr lib libpcap.so.1 on my board .", "Does anyone know what s going wrong", "Any advice would be highly appreciated .", "Ps : I have posted this question on gumstix-users list just a few minutes ago .", "I am posting here as well just to have a better chance of a reply .", "Hope this is ok with everyone here .", "Where on the target did you put the file libjpcap.so", "@ErikEkman I don t have that file .", "I thought that the jar file in the dist folder should have everything I need .", "So I guess I should find this file for my linux-distro angstrom and simply copy it over into my board .", "I guess it would go in usr lib", "@ErikEkman thanks Erik .", "I haven t actually managed to find the libjpcap.so file .", "I do have a jpcap tar ball but I am not sure if it s safe to copy it on Gumstix and then do a make install .", "All the documentation on Gumstix suggests either i using opkg or ii cross-compiling using openEmbedded .", "However that is a separate question and should be asked in a new thread .", "I have accepted your answer .", "many thanks", "The libjpcap.so should be in gnu.classpath.boot.library.path or java.library.path as the error states .", "You can print these paths by getting them with System.getProperty java.library.path but usr lib is a good guess .", "thanks a lot for answering .", "I don t seem to find this file for my linux-distro .", "The rpms here http : rpmfind.net linux rpm2html search.php query libjpcap.so do not include anything for angstrom linux .", "The opkg utility on gumstix doesn t find jpcap either .", "Sorry this is off-topic", "It is not that important that it is for your distro as long as the architecture is the same .", "Run ldd libjpcap.so on target and if all dependencies are found you should be fine .", "I have now got libjpcap.so on my Gumstix I compiled jpcap natively using make .", "I have a suspicion that I m not setting some library paths correctly .", "Can someone help me with this problem", "did you compile it on your pc", "In that case you need to crosscompile for your target architecture .", "Run file libjpcap.so and make sure it does not say i386 or x86-64 but the mips arm whatever of your target .", "thank you Erik for staying with me .", "No I compiled it directly on my Gumstix board using the Makefile in jpcap src c .", "I am wondering if I need to have jre6 or jdk6 on my board .", "I thought they re the same but I now know they are not .", ".. . and some more stuff ." ] }
{ "confidence": [ 63.852134704589844, 62.01818084716797, 61.2054443359375, 61.08233642578125, 60.85161590576172, 51.237396240234375, 46.85540771484375, 17.398120880126953, 16.981746673583984 ], "content": [ "Question : I m trying to build GNU Classpath 0.98 and JamVM 1.5.2 . Following the JamVM readme I did configure make make install on the jamVM and it worked . I then added jamvm and Sun javac to the path . Then with GNU Classpath I did this : .. . .. . I got this error : .. . .. . The javac failed see config.log .. . .. . On the config.log I see that javac can t find VMStackWalker which is jamvm-specific I added the jamvm classes to the CLASSPATH then I got this error : .. . .. . The Java VM jamvm failed see config.log .. . .. . On the config.log I see that jamvm cannot find java.lang.Class . What s wrong .. . Answer : My Mac OS X 10.11 adventures : .. . .. . JamVM .. . .. . built with http : stackoverflow.com questions 9940503 building-jamvm-1-5-4-on-os-x-lion make clean CFLAGS -m32 . configure . GNU Classpath .. . .. . took a bit more : .. . .. . If you make now compilation fails with java-io VMConsole.c : 80 : 19 : error : use of undeclared identifier IUCLC . I ended up googling what that symbol is http : lxr.free-electrons.com ident i IUCLC - it s an octal 01000 and added it right to the source : .. . .. . After that . configure keeps complaining about your javac not being GCJ . It looks like an old bug of GNU Classpath I ve found mentions of similar problems . As you see below . configure is broken and won t work with any javac other than gcj . I ended up just editing . configure : .. . .. . in the beginning I added a line export JAVAC which javac .. . I replaced conditional assignment with JAVAC IS GCJ no .. . .. . Now . configure should pass but make won t . I grepped all the Makefiles that . configure generated for -fsource and then either commented out lines with -fsource it s a gcj-specific flag if there was an alternate lines with -source argument or just replaced fsource with source . Last step I had to edit top-level Makefile and delete EXAMPLESDIR from SUBDIRS .. . line - it didn t compile with an error : .. . .. . It built I got errors running it but that s a totally different story http : stackoverflow.com questions 19776571 error-dlopen-library-not-loaded-reason-image-not-found .. . .. . .. . I ll update the answer if I manage to run it", "Question : I m trying to build GNU Classpath 0.98 and JamVM 1.5.2 . Following the JamVM readme I did configure make make install on the jamVM and it worked . I then added jamvm and Sun javac to the path . Then with GNU Classpath I did this : .. . .. . I got this error : .. . .. . The javac failed see config.log .. . .. . On the config.log I see that javac can t find VMStackWalker which is jamvm-specific I added the jamvm classes to the CLASSPATH then I got this error : .. . .. . The Java VM jamvm failed see config.log .. . .. . On the config.log I see that jamvm cannot find java.lang.Class . What s wrong .. . Answer : Steps to compiling GNU Classpath for Ubuntu12.04 : https : groups.google.com forum topic jruby-gsoc -fnKnP7zxbI .. . .. . Steps to compiling JamVM for Ubuntu 12.04 : https : groups.google.com forum topic jruby-gsoc uJ6RlVvHR-0", "Question : null .. . Answer : I compiled openjdk-8 and jamvm 2.0.0 .. . .. . I can run simple programs using java -jamvm test.jar .. . .. . However when I run anything with log4J and jamvm I get a : .. . .. . If I run the same program using the default ZeroVM it runs without error .. . .. . I can also run this same program using java -jamvm with openjdk-7 without issue . This is an armv5 system which uses Swing headed code Sun doesn t support headed on armv5 . The performance of Zero over JamVM is about 7 to 1 so please refrain from telling me to use another VM .", "Question : I m trying to build GNU Classpath 0.98 and JamVM 1.5.2 . Following the JamVM readme I did configure make make install on the jamVM and it worked . I then added jamvm and Sun javac to the path . Then with GNU Classpath I did this : .. . .. . I got this error : .. . .. . The javac failed see config.log .. . .. . On the config.log I see that javac can t find VMStackWalker which is jamvm-specific I added the jamvm classes to the CLASSPATH then I got this error : .. . .. . The Java VM jamvm failed see config.log .. . .. . On the config.log I see that jamvm cannot find java.lang.Class . What s wrong .. . Answer : Fount it http : sourceforge.net forum message.php msg id 7193290 Comment : you vote your own answer as the best one Comment : Yes as this is the solution for the problem and no one else has found it . Comment : That said this breaks the rules for link-only answers on StackOverflow : An answer should copy in enough information from behind any links it uses to still remain useful even if that link breaks . See also the provide context for links section in stackoverflow.com help how-to-answer http : stackoverflow.com help how-to-answer Comment : indeed reading that thread I have no idea which of the answers proposed and by which person in the discussion is the one that solved your problem", "Question : I m trying to build GNU Classpath 0.98 and JamVM 1.5.2 . Following the JamVM readme I did configure make make install on the jamVM and it worked . I then added jamvm and Sun javac to the path . Then with GNU Classpath I did this : .. . .. . I got this error : .. . .. . The javac failed see config.log .. . .. . On the config.log I see that javac can t find VMStackWalker which is jamvm-specific I added the jamvm classes to the CLASSPATH then I got this error : .. . .. . The Java VM jamvm failed see config.log .. . .. . On the config.log I see that jamvm cannot find java.lang.Class . What s wrong .. . Answer : try ecj classpath need a java compiler and sun sdk seems to be no good here Comment : Thanks but the link above shows the solution . Comment : This does not provide an answer to the question . To critique or request clarification from an author leave a comment below their post - you can always comment on your own posts and once you have sufficient reputation http : stackoverflow.com faq reputation you will be able to comment on any post http : stackoverflow.com privileges comment .", "Question : null .. . Answer : I m working with a Motorola Zebra FX9500 RFID reader and trying to get a user application running that integrates with the LLRP Toolkit . The FX9500 comes preloaded with JamVM that supports java 1.5 . My test application is simple : connects to the reader deletes any RO SPECs then disconnects . When I run the application from my dev machine I m able to execute with no issue . When I upload and run the program as a User Application on the FX9500 I get the message below when trying to connect to the LLRP server on the reader : .. . .. . I get this message after about 4 seconds - not the full 10 seconds timeout specified . Below is my connect method : .. . .. . Unsure if this is code related my code or LLRP Toolkit or something specific to JamVM FX9500 .", "Question : A newbie here so apologies in advance for asking anything silly obvious . I am trying to run a java application on a Gumstix overo board linux-kernel 2.6.34 . So far I have installed JamVm jvm jikes compiler and classpath libraries as per instructions in this tutorial http : wiki.gumstix.org index.php title Onboard Java Compiler . I have run a HelloWorld program and it seemed fine . Now when I try to run another application say MyApp that uses jpcap libraries the jvm gives me an error that looks like this : Exception during event dispatch : java.lang.UnsatisfiedLinkError : Native libarary jpcap not found as file libjpcap.so in gnu.classpath.boot.library.path and java.library.path . . . .. . .. . This application was compiled using Netbeans 7.1 . It generated a dist folder whose structure is this : .. . .. . dist : -- MyApp.jar -- Readme -- lib folder --- -- jpcap.jar --- -- swing-layout-1.0.4.jar .. . .. . The readme says that in order to deploy this application one should go to the dist folder and type java -jar MyApp.jar . When I do so jamvm -jar MyApp.jar I get the error mentioned above . My gumstix board has got libpcap-1.1.1-r1.6 installed . I found usr lib libpcap.so.1 on my board . Does anyone know what s going wrong Any advice would be highly appreciated . Ps : I have posted this question on gumstix-users list just a few minutes ago . I am posting here as well just to have a better chance of a reply . Hope this is ok with everyone here . Comment : Where on the target did you put the file libjpcap.so Comment : @ErikEkman I don t have that file . I thought that the jar file in the dist folder should have everything I need . So I guess I should find this file for my linux-distro angstrom and simply copy it over into my board . I guess it would go in usr lib Comment : @ErikEkman thanks Erik . I haven t actually managed to find the libjpcap.so file . I do have a jpcap tar ball but I am not sure if it s safe to copy it on Gumstix and then do a make install . All the documentation on Gumstix suggests either i using opkg or ii cross-compiling using openEmbedded . However that is a separate question and should be asked in a new thread . I have accepted your answer . many thanks .. . Answer : The libjpcap.so should be in gnu.classpath.boot.library.path or java.library.path as the error states . You can print these paths by getting them with System.getProperty java.library.path but usr lib is a good guess . Comment : thanks a lot for answering . I don t seem to find this file for my linux-distro . The rpms here http : rpmfind.net linux rpm2html search.php query libjpcap.so do not include anything for angstrom linux . The opkg utility on gumstix doesn t find jpcap either . Sorry this is off-topic Comment : It is not that important that it is for your distro as long as the architecture is the same . Run ldd libjpcap.so on target and if all dependencies are found you should be fine . Comment : I have now got libjpcap.so on my Gumstix I compiled jpcap natively using make . For some reason my java application still can t find it . I have tried putting this file at various locations 1.the folder containing the java app 2 . in usr lib 3 . in the folder containing jamvm classes but to no avail . I have a suspicion that I m not setting some library paths correctly . I am setting BOOTCLASSPATH usr share jamvm classes.zip : usr share classpath glibj.zip but I am not setting any other variable . Can someone help me with this problem Comment : did you compile it on your pc In that case you need to crosscompile for your target architecture . Run file libjpcap.so and make sure it does not say i386 or x86-64 but the mips arm whatever of your target . Comment : thank you Erik for staying with me . No I compiled it directly on my Gumstix board using the Makefile in jpcap src c . I am wondering if I need to have jre6 or jdk6 on my board . I currently have Jamvm on my board but not JRE . I thought they re the same but I now know they are not . When I type java -version the gumstix returns : java version 1.5.0 JamVM version 1.5.3 . .. . and some more stuff .", "Question : I am working on an embedded Linux device that has only qt . For some reason Java decides to use gnu.java.awt.peer.gtk.GtkToolkit . How can I force it to use gnu.java.awt.peer.qt.QtToolkit instead or change the default behavior .. . Answer : the api http : java.sun.com javase 6 docs api java awt Toolkit.html getDefaultToolkit 28 29 suggests setting the system property awt.toolkit .. . .. . or Comment : Haven t tired the first option but the second works like a charm . Thank you", "Question : I am working on an embedded Linux device that has only qt . For some reason Java decides to use gnu.java.awt.peer.gtk.GtkToolkit . How can I force it to use gnu.java.awt.peer.qt.QtToolkit instead or change the default behavior .. . Answer : Also you can set the Default Toolkit inside of swing directly in a compiler-friendly way ." ] }
[ "yes-answer-long", "yes-answer-short" ]
virtual-machine
UNK_RELATION
greasyspoon@icap@83
greasyspoon -- greasyspoon icap server is an internet content adaptation protocol @placeholder server .
{ "confidence": [ 63.215606689453125, 53.23338317871094, 50.27703094482422, 48.736717224121094, 46.272483825683594, 41.63245391845703, 40.87838363647461, 39.33807373046875, 37.57707977294922, 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 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 .", "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 .", "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": [ 85.72570037841797, 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" ]
icap
UNK_RELATION
gpars@groovy@220
gpars -- the gpars project offers developers new intuitive and safe ways to handle java or groovy tasks concurrently asynchronously and distributed by utilizing the power of the java platform and the flexibility of the @placeholder language .
{ "confidence": [ 56.94918441772461, 45.14778137207031, 42.28706359863281, 40.95662307739258, 40.818145751953125, 36.49028778076172, 31.800182342529297, 30.588598251342773, 30.588598251342773, 30.588598251342773, 23.48471450805664, 19.660625457763672, 19.14240837097168, 18.721555709838867, 17.717037200927734, 17.574792861938477, 17.527790069580078, 17.207557678222656, 17.207557678222656, 17.126413345336914, 16.68844985961914, 15.414177894592285, 14.873146057128906, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.135722160339355, 14.118814468383789, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.152565002441406, 10.018985748291016, 10.018985748291016, 10.018985748291016, 10.018985748291016 ], "content": [ "I m trying to use GPars in Java to handle messages of a few types .", "How do I know if an GPars actor is busy", "a simple wrapper for dynamicRule and one with ActiveObject GPARS support .", "I want this entity to be indexed in an actor using GPars that will be triggered asynchronously once the entity was inserted .", "Groovy : 1.8.6 .. . .. . GPars : 0.12 or 1.2.1 .. . .. . OS : Ubuntu 14.04 LTS .. . .. . When this code is executed NullPointerException is occurred often .", "Looking at your answer I managed find out that the gpars dependency in grooyy-all s pom.xml is set to optional true .", "I need to implement the concurrency functionality with for example : GPars but I don t know how I can do it .", "i ve just tried to watch in the debugger again and when i step past the line .. . .. . the debugger jumps off into InternalActor.handleCurrentMessage error handler somewhere in GPARs .", "Do i have to do something clever to write a spock test with Mocks for async code like GPARs - or is this something that should work but doesnt .", "test with AOWrapper fails to execute correctly - dont know where to go now - is this a bug for gpars or cant i test async code like this with spock", "I have got stuck trying to do some testing and cant figure out what the problem is .. . .. . in my code i have two classes one a thing called DynamicRule and the other a wrapper for this called AORule which provides a GPARS activeObject wrapper for a rule instance .", "the DynamicRule looks a bit like this - with a method called dynamicExecute .. . .. . I have a wrapper class for this AORule thats using GPARS activeObject to manage the state of DynamicRule rule reference like this where the execute method calls the async activeObject method to trigger the action on the internal rule reference .. . .. . I have been trying to write some tests to show this is working to myself and it fails .", "When I run the following code in the console groovy 2.1.3 : .. . .. . I get : .. . .. . Anyone can tell me what I am doing wrong", "Open-Dolphin is a powerful library there are groups around the world with the eyes on her and as far as i know has an elite group of developers .", "Ok - i have cheated and dumbed this down so that it all the classes and the tests are in one groovy file - that way you can see the structure - and then the tests - see new addendum to question above to see this", "The majority of the processing is done concurrently with the map filter and sum methods .", "The web page is to be replaced soon with a totally new one .", "Also can you use a version of groovy that s newer than 3 years old", "Even though you don t explicitly return a value in Groovy the last line within a Closure is the return statement .", "Given today s IDEs with their very nice management of imports for you there s not much justification for being lazy about your import statements and potentially making problems for future developers on your codebase especially if it s you .", "I m voting to close this question as off-topic because Stack Overflow does not maintain the Open-Dolphin project .", "I solved my problem by changing .. . .. . def json new JsonBuilder data : message.data .toString .. . .. . to .. . .. . def json new JsonBuilder data : message.data .toString .replace u0000", "Note : I chose to go with a map - sum pair instead of using anyParallel to avoid having to convert the parallel array produced by map to a regular Groovy collection perform the anyParallel which creates a parallel array and then converts it back to a Groovy collection .", "I think I got this wrong from the docs .", "I have two actors XMLActor and HttpActor .", "XMLActor reads xmlFiles and then sends a message to HTTPActor to process .", "XMLActor will finish way sooner than HttpActor .", "My main class calls join on both actors .", "I was expecting that the main thread would only terminate after both actors were done .", "But what is actually happening is that as soon as all messages are processed by XMLActor the system terminates and a lot of messages are not processed by HttpActor .", "I could use some latch or even an AtomicInteger to wait for all messages to be consumed but I was wondering if there s a more elegant way for it .", "The join method will certainly wait for both actors to finish .", "I don t see how you stop the two actors so can t really comment on that .", "Do you send so sort of poison message", "Or call stop on actors", "For example the following simulation of your case stops correctly :", "You are right what was happening was an exception in HTTPActor that was silently killing the process .", "Took me a while to figure it out as the script was running in the background and sending output to dev-null : D", "One question is it mandatory to call stop", "I ran into another issue OOM errors I wonder if this was due the fact that I never stopped the actors and I was left with a few hundred thousand active actors in memory", "I added two new tests to the spock test script .", ".. . .. . Addendum clarification to question -- 10-3-2016 .. . .. . I have tried and dumbed this down into single groovy test file - with classes being tested and the tests in the same file so that you can hopefully see what s going on .. . .. . the key point to note is the last test .", "What is the status of this library at August 24 2015", "The web page http : open-dolphin.org has some months without moves .", "What does maintain mean in this context", "I don t know what you mean with your comment .", "OpenDolphin is in 1.0-RC1 .", "There was not much point in making changes to the old one .", "For the updated web site please have a look at dolphin-platform.io http : dolphin-platform.io", "There is one actor for each message type .", "But message processing takes a lot of time while messages keep coming .", "I need to ignore upcoming messages just throw them away while the actor is busy .", "I know about Actor.isActive method but I m not too sure that it is the thing the JavaDoc is pretty ambiguous and unclear and I couldn t find any useful info ether .", "There s no built-in way to determine this I m afraid .", "You d have to implement a busy-controlling algorithm yourself perhaps based on CountdownLatches .", "I think you are missing the set up .", "Try", "Edited in case the dependency is not resolved yet .", "Thanks for that Michael .", "You did put me on the right track even-though I was unable to run the Grab as I am behind a proxy .", "And this causes the gpar dependency not to be included by default .", "So adding the gpar dependency explicitly to my pom fixed that issue for me .", "Is it appropriate to use just the following import", "So that I can just do : .. . .. . Instead of : .. . .. . Doing so I wouldn t have to mention every import like import static groovyx.gpars.actor.Actors.actor separately like in this Hello World Example http : www.gpars.org 1.0.0 guide guide gettingStarted.html gettingStarted aHelloWorldExample .", "It s really a style issue but at our company we ve decided that using in import statements is asking for trouble later on .", "Using you re importing quite a few things and you probably don t know what they all are .", "In this case it might not be an issue but using wildcard imports is pretty much guaranteed at some point to have you using a Utils class or some sort and having no idea which package you re getting that from .", "We even have a style violation for unused imports .", "I agree but with the one caveat .", "There are a limited number of places where a generic static import is appropriate or even the standard idiom junit test cases being the most obvious .", "Except in these limited cases I always list everything explicitly .", "If nothing else a huge list of imports is a hint that your class may be doing too much .", "I m trying to make a simple UDP socket server for a Unity3D game I m making and I ve got it mostly working .", "I can send messages to it and read the messages .", "But when I m trying to send the message back to the client for testing purposes at the moment I get a BufferOverFlowException .", "Before sending the data back I m converting it to json using groovy.json.JsonBuilder .", "The data has a very simple structure : .. . .. . data : Hello World .. . .. . But for whatever reason JsonBuilder is building it as .. . .. . data : Hello World u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 .. . .. . .. . the u0000 s go on for a while .", "Long enough to make my 1024 byte long ByteBuffer overflow .", "This is the class that s responsible for sending the data back to the client : .. . .. . And this is the stack-trace I get : .. . .. . The data in question is encoded as UTF-8 if that helps .", "This is the client code that is responsible for sending data to the server written in C :", "Does the non-pretty version work correctly", "In general the prettified version isn t the greatest idea in terms of performance anyway .", "@Dave No the regular toString still adds the u0000 s .", "Also good to know about the performance thing :", "it may be possible that the character for which u0000 is the escape sequence is actually in your source data but you do not see it because it s a whitespace or some other special character and it s not escaped in whatever viewer you use to see your input data", "@Michal I m not really sure how that could have happened .", "I ll add the client code responsible for sending the data to my question though .", "I dunno I ve never seen this behavior sorry .", "That s not solving the problem that s just hiding it .", "Your string is packed with null chars for some reason that s why it s padding the end with utf null char representations", "@tim yates How would you go about solving this particular problem", "Remove the null characters from the end of message.data .", "I m not sure how it s being generated you don t say", "It s generated in the second line of the client code at the end of the question .", "It s just a hardcoded string which is what had me confused about how the null characters are being generated .", "Each of these methods does the same thing : it executes a closure for each item in a list and builds a new list from the return-value of the closure .", "i ve tried to do two simple tests one for dynamicRule by itself which works - i setup the expectation and ask the Mock to call a closure and test the side effect of that closure on the mockres variable - all works ok as expected .. . .. . in my second test i set up the Mock and set it on the aorule.rule instance and set the expectation for the mock call the aorule.execute method which invokes the activeExecute active method which calls my mock .. . .. . This fails - why closure is not run on the mock and the then : assertion test fails .. . .. . i ve included part of the output trace here - you can see that aorule.execute triggers the activeObject method and i can see the log trace for the activeExec : rule dump looks like - however after that it all seems to stop no extra trace output i was expecting to see value of val for example and the stub closure IS NOT called and mockres does not get set - test fails .. . .. . I have been round the houses trying to trace this or watch in debugger to no avail .", "my stubs closure is not triggered - test fails .", "Makes to difference if i change this to .. . .. . I dont get this I am doing something silly daft not sure but i cant write a test for my @ActiveMethod - activeExecute to test code using Mocks i v tried to do this via hand crafted classes etc and cannot get the simulated tests to work .", "does any one have any ideas what i m doing wrong and how to correct and run the tests properly ." ] }
{ "confidence": [ 60.08373260498047, 52.0153923034668, 50.26542663574219, 47.7720947265625, 38.019012451171875, 35.35291290283203, 22.33116912841797, 16.5864200592041, 15.104964256286621, 13.475244522094727 ], "content": [ "Question : I m trying to use GPars in Java to handle messages of a few types . There is one actor for each message type . But message processing takes a lot of time while messages keep coming . I need to ignore upcoming messages just throw them away while the actor is busy . How do I know if an GPars actor is busy I know about Actor.isActive method but I m not too sure that it is the thing the JavaDoc is pretty ambiguous and unclear and I couldn t find any useful info ether . .. . Answer : There s no built-in way to determine this I m afraid . You d have to implement a busy-controlling algorithm yourself perhaps based on CountdownLatches .", "Question : null .. . Answer : I am using the Grails searchable plugin to index an entity with a custom text representation . I want this entity to be indexed in an actor using GPars that will be triggered asynchronously once the entity was inserted . Is there any way to realize this using the searchable compass framework with Grails", "Question : When I run the following code in the console groovy 2.1.3 : .. . .. . I get : .. . .. . Anyone can tell me what I am doing wrong .. . Answer : I think you are missing the set up . Try Comment : Edited in case the dependency is not resolved yet . Comment : Thanks for that Michael . You did put me on the right track even-though I was unable to run the Grab as I am behind a proxy . Looking at your answer I managed find out that the gpars dependency in grooyy-all s pom.xml is set to optional true . And this causes the gpar dependency not to be included by default . So adding the gpar dependency explicitly to my pom fixed that issue for me .", "Question : null .. . Answer : I have got stuck trying to do some testing and cant figure out what the problem is .. . .. . in my code i have two classes one a thing called DynamicRule and the other a wrapper for this called AORule which provides a GPARS activeObject wrapper for a rule instance . the DynamicRule looks a bit like this - with a method called dynamicExecute .. . .. . I have a wrapper class for this AORule thats using GPARS activeObject to manage the state of DynamicRule rule reference like this where the execute method calls the async activeObject method to trigger the action on the internal rule reference .. . .. . I have been trying to write some tests to show this is working to myself and it fails . i ve tried to do two simple tests one for dynamicRule by itself which works - i setup the expectation and ask the Mock to call a closure and test the side effect of that closure on the mockres variable - all works ok as expected .. . .. . in my second test i set up the Mock and set it on the aorule.rule instance and set the expectation for the mock call the aorule.execute method which invokes the activeExecute active method which calls my mock .. . .. . This fails - why closure is not run on the mock and the then : assertion test fails .. . .. . i ve included part of the output trace here - you can see that aorule.execute triggers the activeObject method and i can see the log trace for the activeExec : rule dump looks like - however after that it all seems to stop no extra trace output i was expecting to see value of val for example and the stub closure IS NOT called and mockres does not get set - test fails .. . .. . I have been round the houses trying to trace this or watch in debugger to no avail . my stubs closure is not triggered - test fails . i ve just tried to watch in the debugger again and when i step past the line .. . .. . the debugger jumps off into InternalActor.handleCurrentMessage error handler somewhere in GPARs . Makes to difference if i change this to .. . .. . I dont get this I am doing something silly daft not sure but i cant write a test for my @ActiveMethod - activeExecute to test code using Mocks i v tried to do this via hand crafted classes etc and cannot get the simulated tests to work . does any one have any ideas what i m doing wrong and how to correct and run the tests properly . So far as i can tell - when i run the code in scripts live tests the code appears to do what i want it to do etc but i cant make unit test to show that .. . .. . Postcript : its to do with ActiveMethod wrapping - not sure what .. . .. . i created two dummay wrapper classes in the test script as follows - one without ActiveObject and one with ActiveObject support - both call the dynamicExecute method on the embedded rule . AOWrappers is @ActiveMethod .. . .. . the two tests in same script file look this .. . .. . when i run the tests - the first one passes just fine the second one fails and my clos is not called . Any one know what i should do next .. . .. . Addendum clarification to question -- 10-3-2016 .. . .. . I have tried and dumbed this down into single groovy test file - with classes being tested and the tests in the same file so that you can hopefully see what s going on .. . .. . the key point to note is the last test . I set the expectation on the Mock to run the output the closure that will update the mockres variable that i can assert has been set in the then : clause . when you call the @ActiveMethod execute the test will fail like this .. . .. . which shows that mockres was not set by the closure call . if you uncomment the aowrule.exec line that follows - this then calls the delegated exec call directly - not using the hidden actor which the ActiveMethod uses . When you run that next line the closure is called correctly and the mockres is set . so the issue has something to do which trying to test that the mock works when its doing this through the hidden actor behind that @ActiveMothod . I think in reality the code is doing what i expect if just run as a script real use in code . However i seem unable to write the test that proves the expected behaviour when the ActiveMethod is being invoked . Do i have to do something clever to write a spock test with Mocks for async code like GPARs - or is this something that should work but doesnt . I hope that clarifies my question for you Comment : I added two new tests to the spock test script . a simple wrapper for dynamicRule and one with ActiveObject GPARS support . test without active objects works fine . test with AOWrapper fails to execute correctly - dont know where to go now - is this a bug for gpars or cant i test async code like this with spock Comment : you should maybe try to extract a reproducible example a little smaller. . your question is very long to read and understand - Comment : Ok - i have cheated and dumbed this down so that it all the classes and the tests are in one groovy file - that way you can see the structure - and then the tests - see new addendum to question above to see this", "Question : I am using the plugin : Grails CSV Plugin in my application with Grails 2.5.3 . I need to implement the concurrency functionality with for example : GPars but I don t know how I can do it . Now the configuration is sequential processing . Example of my code fragment : .. . .. . Thanks . .. . Answer : Implementing concurrency in this case may not give you much of a benefit . It really depends on where the bottleneck is . For example if the bottleneck is in reading the CSV file then there would be little advantage because the file can only be read in sequential order . With that out of the way here s the simplest example I could come up with : .. . .. . As you can see the entire file is read first hence the main bottleneck . The majority of the processing is done concurrently with the map filter and sum methods . At the very end the transaction is rolled back if any of the Department s failed to save . Note : I chose to go with a map - sum pair instead of using anyParallel to avoid having to convert the parallel array produced by map to a regular Groovy collection perform the anyParallel which creates a parallel array and then converts it back to a Groovy collection . Improvements .. . .. . As I already mentioned in my example the CSV file is first read completely before the concurrent execution begins . It also attempts to save all of the Department instances even if one failed to save . You may want that which is what you demonstrated or not . Comment : Ok thanks . I have not copied all code only the main section . I will try it with this example . PD : When a row fails the execution is stopped doing a setRollbackOnly also . Comment : What is the difference between eachParallel collectParallel and anyParallel Comment : They are the concurrent equivalent of Groovy s each collect and any . Comment : OK allow me to elaborate . Let s take the methods collect collectParallel and map . Each of these methods does the same thing : it executes a closure for each item in a list and builds a new list from the return-value of the closure . The difference is that collect iterates through the list in sequential order . collectParallel breaks up the list and hands it off indirectly to threads and then joins the list back together so it looks like the output of collect . map is like collectParallel except it doesn t do the join step.. . Comment : For example map it 0 .trim is able to execute the closure and immediately pass the result down to the next step without having to wait to process the entire list . On the other hand collectParallel it 0 .trim must wait for the entire list to process before it can proceed to the next step .", "Question : Groovy : 1.8.6 .. . .. . GPars : 0.12 or 1.2.1 .. . .. . OS : Ubuntu 14.04 LTS .. . .. . When this code is executed NullPointerException is occurred often . Wider and wider the range of a and b is more and more easily this error is occurred . But the error is never occurred when the range is limited . I cannot understand why the error is occurred . Comment : Can you put the exception into your question Comment : Also can you use a version of groovy that s newer than 3 years old .. . Answer : From the code example you ve provided I m not 100 sure what you are trying to accomplish . It appears you are trying to an Actor for each value within the range provided and react to the message by printing out the value provided . Given that your code has some issues . The main issue is the lack of the loop closure which insures the Actor waits for the next incoming message after processing one . Secondly invoking stop doesn t help either . It simply stops the Actor from receiving additional messages . It doesn t hurt anything in your case since you immediately call join but adds to the confusion . To get this working here is your code simplified into a working example : .. . .. . In this example for each value in the range a message is added to the actor which reacts to the message by printing the value and then because of the loop closure waits for the next incoming message . So that example should accomplish what you want . However to give some clarity into what is going on in your code here is an explanation . When your Actor reacts to a message you are sending a message to a Reactor . Even though you don t explicitly return a value in Groovy the last line within a Closure is the return statement . As a result since your last line within the Closure is a println the return of that is null . So your Reactor returns null which is treated as a message to the Actor and again processed . To avoid this scenario you need to evaluate the return message and only delegate the message or print it if it has not yet been processed . I have updated your code intentionally return done as the return message for clarity . You could change the code to just check for a null message before processing it : .. . .. . import groovyx.gpars.actor.Actors", "Question : What is the status of this library at August 24 2015 The web page http : open-dolphin.org has some months without moves . Comment : I m voting to close this question as off-topic because Stack Overflow does not maintain the Open-Dolphin project . Comment : What does maintain mean in this context Comment : Open-Dolphin is a powerful library there are groups around the world with the eyes on her and as far as i know has an elite group of developers . I don t know what you mean with your comment . .. . Answer : OpenDolphin is in 1.0-RC1 . The web page is to be replaced soon with a totally new one . There was not much point in making changes to the old one . Comment : For the updated web site please have a look at dolphin-platform.io http : dolphin-platform.io", "Question : Is it appropriate to use just the following import So that I can just do : .. . .. . Instead of : .. . .. . Doing so I wouldn t have to mention every import like import static groovyx.gpars.actor.Actors.actor separately like in this Hello World Example http : www.gpars.org 1.0.0 guide guide gettingStarted.html gettingStarted aHelloWorldExample . .. . Answer : It s really a style issue but at our company we ve decided that using in import statements is asking for trouble later on . Using you re importing quite a few things and you probably don t know what they all are . In this case it might not be an issue but using wildcard imports is pretty much guaranteed at some point to have you using a Utils class or some sort and having no idea which package you re getting that from . We even have a style violation for unused imports . Given today s IDEs with their very nice management of imports for you there s not much justification for being lazy about your import statements and potentially making problems for future developers on your codebase especially if it s you . Comment : I agree but with the one caveat . There are a limited number of places where a generic static import is appropriate or even the standard idiom junit test cases being the most obvious . Except in these limited cases I always list everything explicitly . If nothing else a huge list of imports is a hint that your class may be doing too much .", "Question : I think I got this wrong from the docs . I have two actors XMLActor and HttpActor . XMLActor reads xmlFiles and then sends a message to HTTPActor to process . XMLActor will finish way sooner than HttpActor . My main class calls join on both actors . I was expecting that the main thread would only terminate after both actors were done . But what is actually happening is that as soon as all messages are processed by XMLActor the system terminates and a lot of messages are not processed by HttpActor . I could use some latch or even an AtomicInteger to wait for all messages to be consumed but I was wondering if there s a more elegant way for it . .. . Answer : The join method will certainly wait for both actors to finish . I don t see how you stop the two actors so can t really comment on that . Do you send so sort of poison message Or call stop on actors For example the following simulation of your case stops correctly : Comment : You are right what was happening was an exception in HTTPActor that was silently killing the process . Took me a while to figure it out as the script was running in the background and sending output to dev-null : D Comment : One question is it mandatory to call stop I ran into another issue OOM errors I wonder if this was due the fact that I never stopped the actors and I was left with a few hundred thousand active actors in memory", "Question : I m trying to make a simple UDP socket server for a Unity3D game I m making and I ve got it mostly working . I can send messages to it and read the messages . But when I m trying to send the message back to the client for testing purposes at the moment I get a BufferOverFlowException . Before sending the data back I m converting it to json using groovy.json.JsonBuilder . The data has a very simple structure : .. . .. . data : Hello World .. . .. . But for whatever reason JsonBuilder is building it as .. . .. . data : Hello World u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 u0000 .. . .. . .. . the u0000 s go on for a while . Long enough to make my 1024 byte long ByteBuffer overflow . This is the class that s responsible for sending the data back to the client : .. . .. . And this is the stack-trace I get : .. . .. . The data in question is encoded as UTF-8 if that helps . This is the client code that is responsible for sending data to the server written in C : Comment : Does the non-pretty version work correctly In general the prettified version isn t the greatest idea in terms of performance anyway . Comment : @Dave No the regular toString still adds the u0000 s . Also good to know about the performance thing : Comment : it may be possible that the character for which u0000 is the escape sequence is actually in your source data but you do not see it because it s a whitespace or some other special character and it s not escaped in whatever viewer you use to see your input data Comment : @Michal I m not really sure how that could have happened . I ll add the client code responsible for sending the data to my question though . Comment : I dunno I ve never seen this behavior sorry . .. . Answer : I solved my problem by changing .. . .. . def json new JsonBuilder data : message.data .toString .. . .. . to .. . .. . def json new JsonBuilder data : message.data .toString .replace u0000 Comment : That s not solving the problem that s just hiding it . Your string is packed with null chars for some reason that s why it s padding the end with utf null char representations Comment : @tim yates How would you go about solving this particular problem Comment : Remove the null characters from the end of message.data . I m not sure how it s being generated you don t say Comment : It s generated in the second line of the client code at the end of the question . It s just a hardcoded string which is what had me confused about how the null characters are being generated ." ] }
[ "yes-answer-long", "yes-answer-short" ]
groovy
UNK_RELATION
rubberduck@add-in@48
rubberduck -- rubberduck is an open-source com @placeholder project for the vba ide written in c .
{ "confidence": [], "content": [] }
{ "confidence": [], "content": [] }
[ "yes-answer-long", "yes-answer-short" ]
add-in
UNK_RELATION
cx-oracle@python@112
cx-oracle -- cx-oracle is a python extension module that allows access to oracle databases and conforms to the @placeholder database api specification .
{ "confidence": [ 66.96643829345703, 56.366485595703125, 56.22828674316406, 54.73365020751953, 54.610130310058594, 54.42976760864258, 53.18826675415039, 52.890403747558594, 52.113197326660156, 51.75340270996094, 48.127113342285156, 47.576175689697266, 47.51129150390625, 47.335540771484375, 46.6922492980957, 46.333595275878906, 46.293418884277344, 46.21848678588867, 45.615814208984375, 45.49343490600586, 44.99802780151367, 44.90705490112305, 44.45865249633789, 44.4180908203125, 42.98322677612305, 42.88333511352539, 42.88333511352539, 42.632083892822266, 42.42062759399414, 42.01707458496094, 41.92729949951172, 41.915470123291016, 41.90625762939453, 41.89043426513672, 41.340660095214844, 41.2327880859375, 41.16360855102539, 41.16360855102539, 40.678401947021484, 40.48060607910156, 40.4457893371582, 40.40906524658203, 40.243350982666016, 40.17512512207031, 40.17512512207031, 40.17070770263672, 40.03165054321289, 40.02073287963867, 39.90579605102539, 39.90579605102539, 39.84837341308594, 39.487850189208984, 39.33156967163086, 39.272422790527344, 39.01092529296875, 39.01092529296875, 39.01092529296875, 39.00242614746094, 38.96910858154297, 38.77939224243164, 38.645111083984375, 38.59678649902344, 38.59678649902344, 38.45176315307617, 38.41932678222656, 38.17775344848633, 38.108848571777344, 38.046119689941406, 37.896705627441406, 37.857852935791016, 37.857852935791016, 37.53424072265625, 37.447105407714844, 37.29119873046875, 37.29119873046875, 37.29119873046875, 37.29119873046875, 37.29119873046875, 37.25447463989258, 37.02053451538086, 36.98401641845703, 36.87705993652344, 36.87705993652344, 36.69960403442383, 36.69960403442383, 36.69960403442383, 36.42763900756836, 36.42298889160156, 36.42298889160156, 36.42298889160156, 36.42298889160156, 36.411067962646484, 36.35567855834961, 36.176979064941406, 36.176979064941406, 36.176979064941406, 36.16875457763672, 35.88618469238281, 35.88323974609375, 35.88323974609375 ], "content": [ "Is the problem with the cx-Oracle driver", "Why don t you use a binary package like Windows Installer Oracle 10g Python 2.6 http : prdownloads.sourceforge.net cx-oracle cx 5FOracle-5.0.2-10g.win32-py2.6.msi download", "I ve been going through the discussions on the cx-oracle-users http : comments.gmane.org gmane.comp.python.db.cx-oracle 2302 list but no luck yet .", "http : cx-oracle.sourceforge.net html session pool.html .. . .. . Note This object is an extension the DB API and is only available in Oracle 9i .", "Create a connection pool of maximum 8 connections I m using Cx-Oracle .", "just having the same problem seems you do need a local oracle client installation see stackoverflow.com questions 1711408 help-installing-cx-oracle http : stackoverflow.com questions 1711408 help-installing-cx-oracle", "32 http : prdownloads.sourceforge.net cx-oracle cx Oracle-5.1.2-11g.win32-py2.7.msi download or 64 http : prdownloads.sourceforge.net cx-oracle cx Oracle-5.1.2-11g.win-amd64-py2.7.msi download bit", "Download cx Oracle tar.gz from http : sourceforge.net projects cx-oracle files .", "Do I need to set the WITH UNICODE environment variable when building the cx-Oracle module and how would I do that", "I uninstalled then installed it : site-packages git : master FORCE RPATH 1 pip install cx-oracle Collecting cx-oracle Installing collected packages : cx-oracle Successfully installed cx-oracle-5.2.1 Nothing changed :", "See if this helps : gis.stackexchange.com questions 124574 http : gis.stackexchange.com questions 124574 bulk-insert-with-python-and-cx-oracle-into-st-geometry-enabled-table", "You ll find relevant information of how to access databases in Python by looking at PEP-249 : Python Database API Specification v2.0 http : www.python.org dev peps pep-0249 .", "This is a bit of a continuation from my previous question : cx Oracle does not recognize location of Oracle software installation for installation on Linux http : stackoverflow.com questions 30928203 cx-oracle-does-not-recognize-location-of-oracle-software-installation-for-instal .", "You can find all versions of cx Oracle here http : sourceforge.net projects cx-oracle files source directory .", "stackoverflow.com questions 25238423 http : stackoverflow.com questions 25238423 python-cx-oracle-expecting-string-unicode-or-buffer-object noredirect 1 comment39317797 25238423", "built for the right Python Oracle versions", "I also tried easy install http : prdownloads.sourceforge.net cx-oracle cx Oracle-5.1.2-11g.win-amd64-py2.7.msi download the URL is sourceForge s link for cx Oracle Windows amd64 Installer Oracle 11g Python 2.7 .", "How can I access Oracle from Python", "Got error : .. . .. . Downloading unpacking cx-Oracle .. . .. . Could someone advise me right solution", "I found a related post at Here http : stackoverflow.com questions 6788937 error-when-importing-cx-oracle-module-python so I am wondering if I anyway have to have an Oracle client at my side where the python script is invoked .", "File line 1 in File workplace applications python2.7 lib python2.7 site-packages sqlalchemy engine base.py line 1613 in execute .. . .. . Setup : .. . .. . Python 2.7 .. . SqlAlchemy 0.9.7 and 0.8.7 .. . Cx Oracle latest version .. . Oracle Database 10g Release 10.2.0.2.0", "So I started hunting around looking to better understand how cx-Oracle handles unicode and found this in the HISTORY.txt of the cx-Oracle source I downloaded from sourceforge.net .. . .. . Changes from 5.0.4 to 5.1 .. . 1 Remove support for UNICODE mode and permit Unicode to be passed through in everywhere a string may be passed in .", "See http : cx-oracle.sourceforge.net for other binary packages .. . .. . .. . .. . Addendum as requested : you must ensure to use the cx Oracle that : .. . .. . set ORACLE HOME if this environment variable doesn t exist see this Oracle FAQ http : www.orafaq.com wiki ORACLE 5FHOME .. . python can find oraocci11.dll for Oracle 11g oraocci10.dll for Oracle 10g or oraclient9.dll for Oracle 9i by adding the folder should be ORACLE HOME bin where the DLL is in you PATH environment variable .. . use the correct binary package i.e .", "Valid Oracle Clients include a full Oracle installation like Standard or XE or the Instant Client http : www.oracle.com technology tech oci instantclient index.html .. . .. . From the README http : cx-oracle.sourceforge.net README.txt : .. . .. . Please note that an Oracle client or server installation is required in order to use cx Oracle .", "Updated .. . .. . As Petriborg suggested http : stackoverflow.com questions 30928203 cx-oracle-does-not-recognize-location-of-oracle-software-installation-for-instal 30949105 noredirect 1 comment49932383 30949105 setting LD RUN PATH at build time will include the path to the Oracle shared library files in the cx Oracle shared library that is built during installation .", "From the cx ORacle README http : cx-oracle.sourceforge.net README.txt .. . .. . Please note that an Oracle client or server installation is required in order to use cx Oracle .", "also helpful stackoverflow.com questions 20159566 http : stackoverflow.com questions 20159566 cx-oracle-importerror-dll-load-failed-this-application-has-failed", "I m trying to import cx Oracle in Python and getting an : .. . .. . This post http : stackoverflow.com questions 24124110 cx-oracle-dll-load-failed suggests that there s a mismatch between the bits of cx Oracle and the Oracle Client but I don t believe that s the case in my situation .", "cx Oracle conforms to this specification as do many database drivers for Python .", "You need to install an Oracle client .", "I m working with Python2.7 Celery and cx Oracle to access the Oracle database .", "Need help from someone who has got Apache Python and cx Oracle Lib to run Oracle database using python .", "I have little experience with Oracle and have never worked with Oracle and python together .", "Welcome to Oracle .", "oracle is a complete pain .", "That said pypy s oracle module is not all that well maintained .", "So I found Help installing cx Oracle http : stackoverflow.com questions 1711408 help-installing-cx-oracle but am still stuck .", "I m using the following libraries : .. . .. . I found this situation http : stackoverflow.com questions 32500416 pyinstaller-package-cx-oracle-issue-on-centos on S.O .", "Python Oracle instantclient and cx Oracle are 32-bit .", "I m a python newbie using the cx Oracle python package to execute a sql query : .. . .. . to retrieve a list from an oracle 11g database .", "I m running the instant client for Oracle 11g and Python 2.7 .", "You also need some type of Oracle client installed on your machine since cx Oracle is just a bridge between Python and the Oracle Client .", "I m trying to access a remote Oracle server .", "I have a function that inserts a chunk of data into oracle database .", "How can I use cx Oracle to insert a CLOB into an Oracle database", "Freaking Oracle.. .", "I m working on a Python Script that runs queries against an Oracle Database and saves the results to csv .", "The server is Oracle 10g which may be significant .", "Yes everything is this complicated with Oracle .", "Is the issue with the Oracle instance", "I m having problems when connecting to Oracle database using DataBase libary http : franz-see.github.com Robotframework-Database-Library and cx Oracle module .", ".. . Unzip oracle sdk instant client and copy folder sdk into the directory C : oracle instant client 11 1 consequently we have a directory as C : oracle instant client 11 1 sdk .", "http : stackoverflow.com questions 7532534 execute-a-sql-script-file-from-cx-oracle because both the comment will be split and will cause an error and the PL SQL block will not be executed as single command thus causing an error .", "I m using python 2.6.1 on OS X 10.6.8 this is the system verison of python and am using the cx-Oracle driver module version 5.1 downloaded from sourceforge.net built and installed to a virtualenv 1.6.1 instance with site packages visible .", "I am trying to call a stored procedure between python and an oracle db .", "I m using : Cx Oracle 5.1.2 python 2.7.3 Oracle 10.2.0.1.0 .. . .. . Any ideas", "Yes the oracle client and the Python must match in bits for them to work together .", "I recently installed cx Oracle module on my machine in order to connect to a remote Oracle database server .", "My ORACLE HOME is as follows : Oracle app oracle product 11.2.0 server as it should be and the path is the correct bin folder.. .", "I am having an issue inserting unicode into an Oracle schema I think the database is an Oracle 11g instance but am not certain at this point .", "I have downloaded oracle basic instant client and oracle sdk instant client for windows from Oracle Official Website and installed it via following steps : .. . .. . Unzip oracle basic instant client into directory C : oracle instant client 11 1 .", "I am trying to write a Python script that will read data from an Excel document and then write it to a single table in an Oracle database .", "I can also connect to the database when using Oracle SQL Developer it s simply not working from Python .", "There was a previous post which listed as an answer connecting to Oracle via cx Oracle module with the following code :", "export ORACLE HOME your oracle dir", "I had been happily using the driver that comes with the oracle client to query oracle databases with the following connection : .. . .. . .. . that is until I had to start connecting to the same database via python s cx Oracle .", "There are many http : cx-oracle.sourceforge.net .", "In my case it doesn t work with Oracle InstantClient 11g and Python 2.6 on 64-bit Windows 7 .", "I found this page http : www.oracle.com technetwork articles tuininga-cx-oracle-084866.html which had the code as os.environ NLS LANG .AL32UTF8 and that did the trick for me .", "The problem is loading oracle dll I assume .", "Check if c : Oracle is in you PATH environment variable", "According to the mailing list http : comments.gmane.org gmane.comp.python.db.cx-oracle 2390 it may be a bug in Oracle that shows only in cx Oracle with Unicode support .", "I am retrieving a load of data from one oracle database and then inserting it into another non linked database that is structurally the same .", "I ve downloaded cx Oracle Windows x86 Installer Oracle 10g Python 3.1 .", "try turning the value into a str or int on the python side before loading it into oracle .", "As far as I understand neither Oracle nor Python support year 0 .", "How do Oracle and Python both support year 0 despite their documentation", "Take Data from an Oracle DB using Python and cx Oracle .", "I am leveraging cx Oracle as the driver to pull the Oracle data but I am running into some strange issues with Oracle Date and Python datetime and year 0 .", "I am trying to export a Pandas DataFrame to an Oracle database .", "Accepted answer to this question How to install use cx Oracle in PyPy http : stackoverflow.com questions 9230206 how-to-install-use-cx-oracle-in-pypy says that in order to install cx Oracle on pypy I need to compile it with --withmod-oracle parameter .", "I m working on a Python script that reads in a CSV writes the contents out to an Oracle database using cx Oracle .", "I m using Python 2.7 with a Oracle Database to run various scripts at different times .", "Oracle Home is not needed at all .. . 3 .", "connecting to Oracle via Tableau or pandas.read sql .", "Download the Oracle Instant Client package .", "It allowed me to add things like abstracting the database Oracle MySQL Access etc adding logging error-handling with transaction rollbacks etc .", "In order for cx Oracle to work an Oracle client is required .", "Do I set ORACLE HOME to be usr lib oracle", "It s actually a bug in the Oracle 10.5.0.2 and 11.2.0.1 .", "I have no Oracle client at my side .", "http : stackoverflow.com questions 7465889 cx-oracle-and-exception-handling-good-practices .. . .. . And this is my calling routine .. . .. . On a related note : I can t seem to get Python to find my Oracle.py class unless it s in the same directory as the calling function .", "Only now install cx Oracle http : cx-oracle.sourceforge.net .", "http : sourceforge.net p cx-oracle mailman message 34534872 http : stefanoapostolico.com 2015 10 08 install cx-oracle with sip enabled.html .. . .. . Putting all this together here was my best shot at installing it to my virtualenv but alas still no good .", "HOWTO Install cx Oracle .. . .. . Assuming we have installed Oracle Instant Client 10 you have different alternatives to install cx Oracle http : cx-oracle.sourceforge.net : .. . .. . 1 .", "I ve tried setting the NLS LANG environment variable to things like .AL16UTF16 .AL16UTF16 and AMERICAN AMERICA.WE8MSWIN1252 per this post http : stackoverflow.com questions 14238824 cannot-insert-unicode-using-cx-oracle but I still get the same error .", "Oracle doesn t get interrupted .", "A connection made with user pass@host : port dbname ends up using dbname as the SERVICE NAME instead of the SID which fails for Oracle InstantClient 11g when talking to an Oracle 10g server .", "I m trying to load a large number of records into an Oracle DB using Python and cx Oracle .", "I have an SQL file which I want to parse and execute in oracle using cx Oracle python library ." ] }
{ "confidence": [ 74.08114624023438, 70.53224182128906, 69.09182739257812, 68.8154296875, 67.11984252929688, 66.67860412597656, 64.85902404785156, 64.33732604980469, 62.6531867980957, 62.32289505004883, 61.51111602783203, 60.71609878540039, 60.65158462524414, 60.40756607055664, 60.20707321166992, 59.02677917480469, 58.801021575927734, 58.64356994628906, 57.890933990478516, 56.38608932495117 ], "content": [ "Question : I recently installed cx Oracle module on my machine in order to connect to a remote Oracle database server . I have no Oracle client at my side . Python : Version 2.7 x86 .. . Oracle : Verision 11.1.X x64 .. . Cx Oracle : Verion-5.1.2-11g.win32-py2.7 .. . .. . Then everytime I run my script it fails and print the following message : .. . .. . ImportError : DLL load failed : The specified module could not be found . I found a related post at Here http : stackoverflow.com questions 6788937 error-when-importing-cx-oracle-module-python so I am wondering if I anyway have to have an Oracle client at my side where the python script is invoked . Can anyone help me out Thanks in advance . .. . Answer : Yes you have to have an Oracle client installed at your side . From the cx ORacle README http : cx-oracle.sourceforge.net README.txt .. . .. . Please note that an Oracle client or server installation is required in order to use cx Oracle . If you do not require the tools that come with a full client installation it is recommended to install the Instant Client which is far easier to install . EDIT link-to Instant Client : http : www.oracle.com technetwork database features instant-client index-097480.html Comment : Thanks for the reply which is really helpful . Another question stands out after that as I moved my script into another environment where an X64 version Oracle is installed the script failed . I did some research and found that might be due to the fact that the oracle client is 64bit and the python version is 32bit . Comment : The aforementioned issue solved by having a dummy 32bit Oracle client and set up the environment variable ORACLE HOME properly to the dummy client path . Comment : Yes the oracle client and the Python must match in bits for them to work together . Comment : also helpful stackoverflow.com questions 20159566 http : stackoverflow.com questions 20159566 cx-oracle-importerror-dll-load-failed-this-application-has-failed", "Question : I am having an issue inserting unicode into an Oracle schema I think the database is an Oracle 11g instance but am not certain at this point . I m using python 2.6.1 on OS X 10.6.8 this is the system verison of python and am using the cx-Oracle driver module version 5.1 downloaded from sourceforge.net built and installed to a virtualenv 1.6.1 instance with site packages visible . My script is as follows .. . .. . I create a connection create the cursor execute a statment to create a test table with an id and text field of types NUMBER and NCLOB . I open a file containing what I know to be text encoded in UTF-8 decode the string to unicode . Create an insert statment in a unicode string and execute that statement and the result is this error . Something is trying to encode my statement as ASCII before inserting it into the Oracle schema . So I started hunting around looking to better understand how cx-Oracle handles unicode and found this in the HISTORY.txt of the cx-Oracle source I downloaded from sourceforge.net .. . .. . Changes from 5.0.4 to 5.1 .. . 1 Remove support for UNICODE mode and permit Unicode to be passed through in everywhere a string may be passed in . This means that strings will be passed through to Oracle using the value of the NLS LANG environment variable in Python 3.x as well . Doing this eliminated a bunch of problems that were discovered by using UNICODE mode and also removed an unnecessary restriction in Python 2.x that Unicode could not be used in connect strings or SQL statements for example . .. . .. . .. . My assumption is that the NLS LANG environment variable is set to ascii or some equivalent so I try setting NLS LANG to AL32UTF8 which I believe is the correct value for unicode and set the new value before creating my connection . But I get this error . So it looks like I cannot tamper with the NLS LANG value . Here are my questions as of now . Am I missing something simple like an incorrect column type Is the problem with the cx-Oracle driver Do I need to set the WITH UNICODE environment variable when building the cx-Oracle module and how would I do that Is the issue with the Oracle instance I have little experience with Oracle and have never worked with Oracle and python together . I ve spend two days working on this issue and would like a better understanding of what the issue is before I go to the DBA group with . Thanks .. . Answer : Setting environment variable is the right way but AL32UTF8 is not the right value for NLS LANG . To get the right value of the NLS LANG used in your instance of Oracle execute Comment : Thanks for the reply I finally received a response from my DBAs . For our 11gR2 installation the CHARACTER SET is WE8MSWIN1252 and the NATIONAL CHARACTER SET is AL16UTF16 . It appears that the driver is not detecting the encoding set in the above variables correctly . Checking the encoding and nencoding attributes on the connection yields US-ASCII in both cases which is incorrect . I still get the same DatabaseError when trying to NLS LANG to AL16UTF16 which since my connection to the schema is remove and will be in production also explains why those files cannot be accessed . Comment : In my situation my result from the above query being AMERICAN AMERICA.US7ASCII . However my Unicode inserts started working correctly once my NLS LANG was set to .AL32UTF8 without quotes . Comment : My result from the above query is AMERICAN AMERICA.WE8MSWIN1252 . @davidjb how do you set it to that value without quotes . What have you imported into your scope to get it Comment : I found this page http : www.oracle.com technetwork articles tuininga-cx-oracle-084866.html which had the code as os.environ NLS LANG .AL32UTF8 and that did the trick for me . Note the leading dot but no underscore .", "Question : I m using Python 3.1.2 . I ve downloaded cx Oracle Windows x86 Installer Oracle 10g Python 3.1 . I m using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64-bit . I m trying to access a remote Oracle server . I haven t installed any Oracle client . However I use SQLTools 1.5.0 which I manually copy-pasted from some place . I came to know cx Oracle needs a DLL file from an Oracle client to access a remote database so I copied all the DLL files from the folder of SQLTools to a location . I added the location where I kept the ora.dll into the system s environment variable PATH and ORACLE HOME . But it doesn t seem to work . I get the same error : .. . .. . ImportError : DLL load failed : The specified module could not be found . I m missing something . Will this manual work do the job or do I have to install an Oracle client Comment : Why are you copying .DLL files around Why aren t you running the proper installers Comment : Because I don t have the rights to install in my computer . Will the proper installer do the job Comment : just having the same problem seems you do need a local oracle client installation see stackoverflow.com questions 1711408 help-installing-cx-oracle http : stackoverflow.com questions 1711408 help-installing-cx-oracle .. . Answer : The Oracle client isn t an installer but a series of zip packages . Download the appropriate Instant Client from this here http : www.oracle.com technetwork database features instant-client index-097480.html http : www.oracle.com technetwork database features instant-client index-097480.html unzip them stick them on your C drive or anywhere you prefer and add it to your LD LIBRARY PATH and ORACLE HOME env vars .", "Question : I cannot install cx-oracle neither by pip nor from sources . An error is the same . From sources : Traceback most recent call last : File setup.py line 174 in module raise DistutilsSetupError cannot locate an Oracle software distutils.errors.DistutilsSetupError : cannot locate an Oracle software installation .. . .. . by pip : .. . .. . OS X El Capitan Version 10.11.5 .. . Answer : I forget to add path of Oracle Instant Client 12.1 Basic SDK packages to PATH var . Then I have to make several more symlinks : .. . .. . After I successfully installed : .. . .. . But I cannot import the module : Comment : Try exporting FORCE RPATH 1 before running the install . Comment : I uninstalled then installed it : site-packages git : master FORCE RPATH 1 pip install cx-oracle Collecting cx-oracle Installing collected packages : cx-oracle Successfully installed cx-oracle-5.2.1 Nothing changed : Comment : With the system Python 2.7.10 and cx Oracle 5.2 which I had already downloaded : sudo su - export FORCE RPATH 1 export ORACLE HOME opt oracle instantclient python setup.py config python setup.py install", "Question : I recently installed cx Oracle module on my machine in order to connect to a remote Oracle database server . I have no Oracle client at my side . Python : Version 2.7 x86 .. . Oracle : Verision 11.1.X x64 .. . Cx Oracle : Verion-5.1.2-11g.win32-py2.7 .. . .. . Then everytime I run my script it fails and print the following message : .. . .. . ImportError : DLL load failed : The specified module could not be found . I found a related post at Here http : stackoverflow.com questions 6788937 error-when-importing-cx-oracle-module-python so I am wondering if I anyway have to have an Oracle client at my side where the python script is invoked . Can anyone help me out Thanks in advance . .. . Answer : After having been trying to solve this issue for days I found out that set PATH PATH : insert Oracle home here did not do the trick for me . I had to go into my Windows XP system-properties and append the Oracle home to the path variable under System variables . Comment : didnt work for me .", "Question : I recently installed cx Oracle module on my machine in order to connect to a remote Oracle database server . I have no Oracle client at my side . Python : Version 2.7 x86 .. . Oracle : Verision 11.1.X x64 .. . Cx Oracle : Verion-5.1.2-11g.win32-py2.7 .. . .. . Then everytime I run my script it fails and print the following message : .. . .. . ImportError : DLL load failed : The specified module could not be found . I found a related post at Here http : stackoverflow.com questions 6788937 error-when-importing-cx-oracle-module-python so I am wondering if I anyway have to have an Oracle client at my side where the python script is invoked . Can anyone help me out Thanks in advance . .. . Answer : You can find out arch 32 or 64-bit for : .. . .. . python by just running the python in interactive mode on command-line . cx Oracle : look at the name of downloaded file . Oracle Client : .. . run the sqlplus that s part of your client package .. . start Task Manager and see if sqlplus.exe has 32 next to it 32-bit or not 64 bit .. . if you don t have sqlplus use dumpbin headers oraocciXX.dll .. . If you re using POSIX you probably would already know . Use file oraocciXX.so .. . .. . Finally if you still don t understand here is really for dummies instructions : .. . .. . Ensure you ve installed 32-bit versions of python cx Oracle and Oracle Instant Client . These could also be 64-bit but must be same for all 3 . Can not mix and match . Links : .. . Oracle Instant Client http : www.oracle.com technetwork database features instant-client index-097480.html Lets say it s installed in C : ProgFiles OraClient 11 2 .. . cx Oracle http : cx-oracle.sourceforge.net .. . Python http : www.python.org getit .. . Windows : .. . set PATH PATH C : ProgFiles OraClient 11 2 .. . POSIX Linux Unix Solaris.. . -- Untested. . .. . export LD LIBRARY PATH path to your 32bit oraocciXX.so .. . 64 bit export LD LIBRARY PATH64 path to your 64bit oraocciXX.so .. . run path-to-python python.exe -c import cx Oracle to test whether your setup is working or not . if it prints .. . nothing : then it s successful . ImportError : DLL load failed : The specified module could not be found : then oraocciXX is not found . Setup the env vars correctly . ImportError : DLL load failed : 1 is not a valid Win32 application : You have a 32 64 bit mismatch . Comment : To check whether a binary file dll or exe is 32-bit or 64-bit you could also use sigcheck by SysInternals . More info at http : superuser.com a 808127 283407", "Question : I m trying to install the cx Oracle for Python 2.6 but it is failing . I don t know enough about C or MS Vis . Studio s compiler to even approach fixing it myself . This is what is output on the command-line : .. . .. . Does anyone have any idea how to fix this I also may have an issue with that cl.exe file I think I remember seeing this as a problem somewhere else but I have four Windows machines which could have had issue there . . ----------------------------- EDIT ----------------------------- .. . .. . The reason I do not use the pre-compiled installer is because when I try to run the module I get the following : .. . .. . I assume that means that it has not been properly installed . If someone can tell me what I did wrong here that would also be a perfectly acceptable answer . ----------------------------- EDIT2 ----------------------------- .. . .. . I have retrieved all files from Oracle s Basic Client http : www.oracle.com technology software tech oci instantclient htdocs winsoft.html version 11.1.0.7 . I have not tried installing a more substantial client . I am downloading one now . More information .. . .. . The current directory for the cx Oracle s setup.py is C : pydev cx Oracle-5.0.1 .. . The version of Python is 2.6.3 .. . The current directory for Python is C : Python26 -- to access python-2.6 - type py26 on the command-line and it will map to C : python26 python Comment : The errors in the compiler are only warnings and should not have stopped the build - are there other errors still use the prebuilt one as I suspect you will have the same issues in the end Comment : For the prebuilt one - what is your path and where are your cx-oracle and oracle DLLS installed .. . Answer : Why don t you use a binary package like Windows Installer Oracle 10g Python 2.6 http : prdownloads.sourceforge.net cx-oracle cx 5FOracle-5.0.2-10g.win32-py2.6.msi download See http : cx-oracle.sourceforge.net for other binary packages .. . .. . .. . .. . Addendum as requested : you must ensure to use the cx Oracle that : .. . .. . set ORACLE HOME if this environment variable doesn t exist see this Oracle FAQ http : www.orafaq.com wiki ORACLE 5FHOME .. . python can find oraocci11.dll for Oracle 11g oraocci10.dll for Oracle 10g or oraclient9.dll for Oracle 9i by adding the folder should be ORACLE HOME bin where the DLL is in you PATH environment variable .. . use the correct binary package i.e . built for the right Python Oracle versions Comment : +1 because it is a correct answer and could have easily been overlooked -- I even forgot to write that I ve tried it but unfortunately it does not actually solve my problem.. . This is one of those cases where I really wish I had been stupid enough to overlook the obvious.. . Comment : The problem is loading oracle dll I assume . Check if c : Oracle is in you PATH environment variable Comment : TECHNICALLY this answer is incomplete . Could you put the suggestion to include ORACLE HOME in my PATH variable Comment : Thank you so much . You are a lifesaver . Comment : I could be wrong about this but I don t believe that setting the ORACLE HOME environment variable is the preferred way to do this on windows . Instead you should probably use the Home selector : download.oracle.com docs cd E11882 01 em.112 e12255 http : download.oracle.com docs cd E11882 01 em.112 e12255 oui2 manage oracle homes.htm i1006001", "Question : I need install cx Oracle for Python 2.5 on Linux Linux 2.6.18-371.1.2.el5 i686 . I have installed Oracle client 10.2.0.4 . I have tried following : 1 . Download cx Oracle tar.gz from http : sourceforge.net projects cx-oracle files . I don t know which of listed version are suitable for python-2.5 and Oracle client 10.2.0.4 so try cx Oracle-5.1.tar.gz . Unpacked tar go to unpacked folder and run python setup.py install . I got error : .. . .. . In .bash-profile I have setted oracle path : .. . .. . How fix such error maybe I need another version of cx Oracle tar 1 . Run pip install cx Oracle . Got error : .. . .. . Downloading unpacking cx-Oracle .. . .. . Could someone advise me right solution Update After suggestion in response I got following error : .. . Answer : Make sure you install the instant client sdk for you OS . http : www.oracle.com technetwork database features instant-client index-097480.html", "Question : next code works correct with instant client 10g but hang up when using oracle instant client 11g hangs on pool.release conN .. . .. . PS : I take look into cx Oracle source code it s hands in seesionpool.c on line .. . .. . Any ideas how to solve it PPS : OS Windows XP and 2008R2 .. . Answer : http : cx-oracle.sourceforge.net html session pool.html .. . .. . Note This object is an extension the DB API and is only available in Oracle 9i .", "Question : I need install cx Oracle for Python 2.5 on Linux Linux 2.6.18-371.1.2.el5 i686 . I have installed Oracle client 10.2.0.4 . I have tried following : 1 . Download cx Oracle tar.gz from http : sourceforge.net projects cx-oracle files . I don t know which of listed version are suitable for python-2.5 and Oracle client 10.2.0.4 so try cx Oracle-5.1.tar.gz . Unpacked tar go to unpacked folder and run python setup.py install . I got error : .. . .. . In .bash-profile I have setted oracle path : .. . .. . How fix such error maybe I need another version of cx Oracle tar 1 . Run pip install cx Oracle . Got error : .. . .. . Downloading unpacking cx-Oracle .. . .. . Could someone advise me right solution Update After suggestion in response I got following error : .. . Answer : Make sure that you ve a client sdk present in your path . Also I had to do add this to my .bash rc .. . .. . In addition to this Python 2.7 does not come with Python.h which is available by default in Python 3.4 . So I would also suggest to install python-devel package .. . .. . That should resolve the issue .", "Question : I m trying to install cx Oracle on my Windows 7 - 64 bit version . I previously had a question here http : stackoverflow.com questions 20472060 deploying-cx-oracle-in-windows about installing cx Oracle on Windows and I solved the issue by myself but it was a 32-bit version of Windows 7 here I faced a new problem installing it . I should mention that I deployed 64 bit version of MinGW and also Microsoft Visual Studio 2008 . For both I got command gcc failed with exit status 1 . I tried easy install cx Oracle in Microsoft Visual Studio 2008 console and I got this output it is what I exactly got when I ran the command from windows default command-line : .. . .. . I also tried to install it from source with python setup.py build --compiler mingw32 install and I got the same error . I also tried easy install http : prdownloads.sourceforge.net cx-oracle cx Oracle-5.1.2-11g.win-amd64-py2.7.msi download the URL is sourceForge s link for cx Oracle Windows amd64 Installer Oracle 11g Python 2.7 . I got this : .. . .. . For completeness I should say that I m using oracle instant client 11 . I have set PATH and ORACLE HOME environment-variables . Other database apps like Navicat in my machine work well with this client . Any idea what s wrong with this installation .. . Answer : Actually you re trying to download the binary of cx Oracle in the url you re refering to .. . .. . http : prdownloads.sourceforge.net cx-oracle cx Oracle-5.1.2-11g.win-amd64-py2.7.msi .. . .. . the pointed file is a .msi one which stands for Microsoft Installer and contains the pre-compiled stuff . So instead of using pip easy install to perform the setup of cx Oracle just double click on the msi file that will install all the needed files the .pyd and the .so one . Comment : Yes it was actually the solution . I was just so astray about it maybe because of the process that I ve been through in the 32-bit version of windows . BTW thank you for the answer .", "Question : I m trying to load a large number of records into an Oracle DB using Python and cx Oracle . The consensus seems to be that you should prepare a cursor and executemany against a list of rows per this https : www.google.com url sa t rct j q esrc s source web cd 1 cad rja uact 8 ved 0ahUKEwjnho6J6 LMAhUjUaYKHZ-uAPcQFggdMAA url http 3A 2F 2Fstackoverflow.com 2Fquestions 2F14904033 2Fhow-can-i-do-a-batch-insert-into-an-oracle-database-using-python usg AFQjCNGOvdfih-9v1V5TI 2l7c6teqy qA post . So my code looks like : .. . .. . The values I m passing in look like this : .. . .. . The problem is that the SDE.ST Geometry database function is being treated as a literal string rather than being evaluated so I get a cx Oracle.DatabaseError : ORA-00932 : inconsistent datatypes : expected SDE.ST GEOMETRY got CHAR . Is it not possible to pass in database functions to a prepared cursor with cx Oracle Comment : See if this helps : gis.stackexchange.com questions 124574 http : gis.stackexchange.com questions 124574 bulk-insert-with-python-and-cx-oracle-into-st-geometry-enabled-table Comment : That led me in the right direction thanks @PatrickMarchand .. . Answer : In the end I got around this by embedding the function-call in the prepared-statement : .. . .. . Hat tip to PatrickMarchand for the hint .", "Question : There is a Java paradigm for database access implemented in the Java DataSource . This object-create a useful abstraction around the creation of database connections . The DataSource object keeps database configuration but will only create database connections on request . This is allows you to keep all database configuration and initialization code in one place and makes it easy to change database implementation or use a mock database for testing . I currently working on a Python project which uses cx Oracle . In cx Oracle one gets a connection directly from the module : .. . .. . I am trying to find a parallel to the DataSource in cx Oracle . I can easily create this by creating a new class and wrapping cx Oracle but I was wondering if this is the right way to do it in Python . .. . Answer : You ll find relevant information of how to access databases in Python by looking at PEP-249 : Python Database API Specification v2.0 http : www.python.org dev peps pep-0249 . cx Oracle conforms to this specification as do many database drivers for Python . In this specification a Connection object represents a database-connection but there is no built-in pooling . Tools such as SQLAlchemy http : www.sqlalchemy.org do provide pooling facilities and although SQLAlchemy is often billed as an ORM it does not have to be used as such and offers nice abstractions for use on top of SQL engines . If you do want to do object-relational-mapping then SQLAlchemy does the business and you can consider either its own declarative syntax or another layer such as Elixir http : elixir.ematia.de which sits on top of SQLAlchemy and provides increased ease of use for more common use cases .", "Question : How can I access Oracle from Python I have downloaded a cx Oracle msi installer but Python can t import the library . I get the following error : .. . .. . I will be grateful for any help . Comment : Which cx Oracle did you download There are many http : cx-oracle.sourceforge.net . Also which version of Python which version of Oracle and which operating-system are you using Comment : cx Oracle-5.0.2-10g.win32-py26 Comment : Sounds like it may not be extracted into the PATH python is using to look for modules . Have you tried installing it using easy install rather than explicitly it could be missing another dependency . .. . Answer : Ensure these two and it should work : - .. . .. . 1 . Python Oracle instantclient and cx Oracle are 32-bit . 2 . Set the environment-variables . Fixes this issue on windows like a charm . Comment : that was not intentional not sure how that came in though .", "Question : How can I access Oracle from Python I have downloaded a cx Oracle msi installer but Python can t import the library . I get the following error : .. . .. . I will be grateful for any help . Comment : Which cx Oracle did you download There are many http : cx-oracle.sourceforge.net . Also which version of Python which version of Oracle and which operating-system are you using Comment : cx Oracle-5.0.2-10g.win32-py26 Comment : Sounds like it may not be extracted into the PATH python is using to look for modules . Have you tried installing it using easy install rather than explicitly it could be missing another dependency . .. . Answer : In addition to cx Oracle you need to have the Oracle client library installed and the paths set correctly in order for cx Oracle to find it - try opening the cx Oracle DLL in Dependency Walker http : www.dependencywalker.com to see what the missing DLL is .", "Question : So I found Help installing cx Oracle http : stackoverflow.com questions 1711408 help-installing-cx-oracle but am still stuck . I downloaded the latest instantclient from oracle and set ORACLE HOME to the location of the extracted files both direct and with a bin folder between the ORACLE HOME value and the files but easy install is popping an error when running setup.py saying it can t locate the Oracle include files . I did notice that only the 11g dll is in the folder do I need all 3 drivers present for setup to complete If so where do I even get them .. . Answer : Honestly it is a hell of a lot easier to install cx Oracle from one of the binary installers http : cx-oracle.sourceforge.net they have than from source . HOWTO for nix : .. . .. . 1 . Browse to Instant Client for Linux x86 download page . http : www.oracle.com technetwork topics linuxx86-64soft-092277.html .. . .. . 2 . Download the latest version of basic sqlplus and sdk packages that fit your architecture 32 or 64bits : .. . .. . oracle-instantclient version -basic- version full . arch .rpm .. . oracle-instantclient version -sqlplus- version full . arch .rpm .. . oracle-instantclient version -devel- version full . arch .rpm . 3 . Install the RPMs using alien . For example at the time of this writing : .. . .. . sudo alien -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86 64.rpm .. . .. . .. . 4 . Add necessary environment-variables I personally did put it in etc environment then logoff back in to reload the env : .. . .. . ORACLE HOME usr lib oracle version client64 lib .. . LD LIBRARY PATH usr lib oracle version client64 lib .. . .. . .. . 5 . Fix oracle s includes http : stackoverflow.com a 24550818 1030960 : .. . .. . sudo ln -s usr include oracle version client ORACLE HOME include for 32bits arch OR .. . sudo ln -s usr include oracle version client64 ORACLE HOME include for 64bits arch .. . .. . .. . 6 . Create etc ld.so.conf.d oracle-instantclient version -basic.conf and etc ld.so.conf.d oracle.conf for more recent versions at least since 12.1 containing : .. . .. . lib .. . usr lib oracle version client lib for 32bits arch OR .. . usr lib oracle version client64 lib for 64bits arch .. . .. . .. . 7 . Reload ldconfig cache use -v flag if you want some verbose : .. . .. . sudo ldconfig .. . .. . .. . You might need to install libaio1 . HOWTO Install cx Oracle .. . .. . Assuming we have installed Oracle Instant Client 10 you have different alternatives to install cx Oracle http : cx-oracle.sourceforge.net : .. . .. . 1 . Install with pip https : pypi.python.org pypi pip : pip install cx-oracle linux only .. . 2 . Download the installer .tar.gz file from the cx-oracle PyPI https : pypi.python.org pypi cx Oracle site .. . .. . Older versions version less than 5.1.2 are .msi and .rpm files can be downloaded from here http : sourceforge.net projects cx-oracle files . Install the RPMs using alien . For example at the time of this writing : sudo alien -i cx Oracle-5.0-10g-py25-1.x86.rpm .. . .. . To test python -c import cx Oracle print cx Oracle should return the modules with its version . Comment : It seems like this should be as easy as getting MySQL working . Freaking Oracle.. . Comment : You haven t felt pain until you ve tried to install cx Oracle from source on a nix machine . It s a pity it s such a PITA . Comment : Oh joy I can t wait . That task is in my future . Why does it not surprise me that this is the toolset from the same company that tried to de-opensource Java Comment : I ll dig up my old cx Oracle install HOWTO for nix and add it to the post when I find it if you like . Comment : Added my HOWTO for nix should make your life easier .", "Question : How can I access Oracle from Python I have downloaded a cx Oracle msi installer but Python can t import the library . I get the following error : .. . .. . I will be grateful for any help . Comment : Which cx Oracle did you download There are many http : cx-oracle.sourceforge.net . Also which version of Python which version of Oracle and which operating-system are you using Comment : cx Oracle-5.0.2-10g.win32-py26 Comment : Sounds like it may not be extracted into the PATH python is using to look for modules . Have you tried installing it using easy install rather than explicitly it could be missing another dependency . .. . Answer : In addition to the Oracle instant client you may also need to install the Oracle ODAC components and put the path to them into your system path . cx Oracle seems to need access to the oci.dll file that is installed with them . Also check that you get the correct version 32bit or 64bit of them that matches your : python cx Oracle and instant client versions .", "Question : I am trying to run following code snippet in python to connect to oracle but constantly running into following error . I have tried a lot of combinations but it doesn t seem to work . I understand the error but don t understand what is incompatible here . Has anyone come across this issue How do I fix it File line 1 in File workplace applications python2.7 lib python2.7 site-packages sqlalchemy engine base.py line 1613 in execute .. . .. . Setup : .. . .. . Python 2.7 .. . SqlAlchemy 0.9.7 and 0.8.7 .. . Cx Oracle latest version .. . Oracle Database 10g Release 10.2.0.2.0 Comment : Did you try to remove the u unicode from the connection-string Comment : yes It didn t make a difference . Comment : this actually disappeared after I added arguments required in cx-oracle constructor to create engine as kwargs which get passed to underlying cx-oracle call transparently . It was lacking those . .. . Answer : If you are running into this problem most likely the cause is that you are not passing in arguments required by the underlying dbapi call . In my case I added additional arguments of user password and dsn to the create engine call along with existing ones which got passed to cx-oracle call and it worked . something like this should work", "Question : I m trying to install the cx Oracle for Python 2.6 but it is failing . I don t know enough about C or MS Vis . Studio s compiler to even approach fixing it myself . This is what is output on the command-line : .. . .. . Does anyone have any idea how to fix this I also may have an issue with that cl.exe file I think I remember seeing this as a problem somewhere else but I have four Windows machines which could have had issue there . . ----------------------------- EDIT ----------------------------- .. . .. . The reason I do not use the pre-compiled installer is because when I try to run the module I get the following : .. . .. . I assume that means that it has not been properly installed . If someone can tell me what I did wrong here that would also be a perfectly acceptable answer . ----------------------------- EDIT2 ----------------------------- .. . .. . I have retrieved all files from Oracle s Basic Client http : www.oracle.com technology software tech oci instantclient htdocs winsoft.html version 11.1.0.7 . I have not tried installing a more substantial client . I am downloading one now . More information .. . .. . The current directory for the cx Oracle s setup.py is C : pydev cx Oracle-5.0.1 .. . The version of Python is 2.6.3 .. . The current directory for Python is C : Python26 -- to access python-2.6 - type py26 on the command-line and it will map to C : python26 python Comment : The errors in the compiler are only warnings and should not have stopped the build - are there other errors still use the prebuilt one as I suspect you will have the same issues in the end Comment : For the prebuilt one - what is your path and where are your cx-oracle and oracle DLLS installed .. . Answer : You also need some type of Oracle client installed on your machine since cx Oracle is just a bridge between Python and the Oracle Client . Valid Oracle Clients include a full Oracle installation like Standard or XE or the Instant Client http : www.oracle.com technology tech oci instantclient index.html .. . .. . From the README http : cx-oracle.sourceforge.net README.txt : .. . .. . Please note that an Oracle client or server installation is required in order to use cx Oracle . If you do not require the tools that come with a full client installation it is recommended to install the Instant Client which is far easier to install . I have not installed on Windows before but you may have to set the ORACLE HOME environment variable so that cx Oracle knows where to look . Comment : I m trying to install the more substantial version but I already have basic installed there is no .msi or .exe . Comment : if you haven t installed on Windows have you installed on Ubuntu Debian I want to do that next . Comment : I looked at this guide and made some minor tweaks I am not using XE but Standard with Instant Client : catherinedevlin.blogspot.com 2008 06 http : catherinedevlin.blogspot.com 2008 06 cxoracle-and-oracle-xe-on-ubuntu.html", "Question : I m getting the standard DLL load failed module not found error when trying to import cx Oracle . I have the proper instant client installed the paths are all correct.. . running Dependency Walker tells me I m missing the following .dll s MSVCR90 GPSVC IESHIMS . I m running the instant client for Oracle 11g and Python 2.7 . Anyone have any ideas Most of the answers I have found entail an incorrect path but that doesn t seem to be the case.. . additionally I can t find any of those .dll s anywhere else on my system . EDIT : I ended up installing Oracle XE 11g 32-bit both Python 2.7 and the cx Oracle are also 32-bit I should also add that I m on Windows . cx Oracle now installs cleanly however upon connection I receive an error : .. . .. . The ORACLE HOME path is correct as is the bin in the PATH folder.. . .. . Answer : What version of Windows are you running Is it 32 or 64 bit Is your Oracle Instant Client 32 http : www.oracle.com technetwork topics winsoft-085727.html or 64 http : www.oracle.com technetwork topics winx64soft-089540.html bit Is your Python installation 32 http : www.python.org ftp python 2.7.3 python-2.7.3.msi or 64 http : www.python.org ftp python 2.7.3 python-2.7.3.amd64.msi bit Is your cx-oracle the correct version 32 http : prdownloads.sourceforge.net cx-oracle cx Oracle-5.1.2-11g.win32-py2.7.msi download or 64 http : prdownloads.sourceforge.net cx-oracle cx Oracle-5.1.2-11g.win-amd64-py2.7.msi download bit MSVCR90.dll is part of the Microsoft Visual C++ 2008 SP1 Redistributable package . 32-bit version available here http : www.microsoft.com en-us download details.aspx id 5582 64 bit version available here http : www.microsoft.com en-us download details.aspx id 2092 . IESHIMS.dll will be located in C : Program Files Internet Explorer Ieshims.dll 32-bit Windows location or 64 bit Windows Location or C : Program Files Internet Explorer x86 Ieshims.dll 32-bit Windows Location on 64 bit Windows if your version of Windows is Vista or newer . GPSVC.dll should live in C : Windows System32 . Dependency Walker reports these last 2 DLLs as missing because there are used by Windows Error Reporting which use IEFrame.DLL and are delay loaded which means they may never actually be needed . I found that in order to get cx-oracle to import cleanly you need to ensure that the versions of its dependencies match . You also need to ensure that the Oracle client installation matches your ORACLE HOME and your PATH variable contains ORACLE HOME bin which is set as an Environment variable or in the registry and that your tnsnames.ora file lives in the value TNS ADMIN is set to . As stated in Emmanuel s answer the default-value for an unset TNS ADMIN setting is ORACLE HOME network admin . I also rarely used the instant client version of the oracle installer unless absolutely necessary because unlike the other versions it doesn t set always ensure are set or maintained Path ORACLE HOME or TNS ADMIN correctly which lead to tnsnames.ora and OCI.dll not being found . This gets more complicated when you have multiple Python versions or Oracle versions on the same machine . To explicit set them you can use Environment Variables either User or System which live in the Control Panel under the System Icon Advanced system settings task Advanced Tab Environment button . Regarding InterfaceError : Unable to acquire Oracle environment handle this occurs specifically when opposed to not resolving OCI.dll cx Oracle doesn t know which OCI.dll to use normally this is the case because of the PATH variable containing two or more search directories that contain OCI.dll . Specifically ensuring your PATH only contains one instant of OCI.dll either from the instant client installation or the Oracle 11G XE instllation should fix your problem . Did you uninstall the instant client before installing Oracle 11G XE Paste the following in a Command Prompt . echo The current ORACLE HOME is ORACLE HOME .. . .. . echo The current TNS ADMIN is TNS ADMIN .. . .. . echo The current PATH is PATH .. . .. . To see the current value of these variables . Further resources .. . .. . Example picture of setting environment variable http : lh5.ggpht.com 0E9WO5RZWuc TTSeprYupvI AAAAAAAACSU KVeURAM90Is image thumb 5B3 5D.png imgmax 800 .. . cx-oracle mailing post regarding missing TNS ADMIN http : comments.gmane.org gmane.comp.python.db.cx-oracle 2173 .. . Installation instructions for cx-oracle on Windows http : mostperfect.net blog 2010 07 28 installing-cx oracle-on-windows Comment : My ORACLE HOME is as follows : Oracle app oracle product 11.2.0 server as it should be and the path is the correct bin folder.. . I m now getting Unable to acquire oracle environment handle .. . see edits to main question ...also I can connect with SQL Plus ." ] }
[ "yes-answer-long", "yes-answer-short" ]
python
UNK_RELATION
scribunto@scripting@73
scribunto -- scribunto is a parser extension which allows for embedding @placeholder languages in mediawiki .
{ "confidence": [ 56.97322463989258, 52.00876998901367, 50.73069763183594, 50.32330322265625, 45.16608810424805, 41.85160827636719, 41.75424575805664, 40.97821807861328, 40.47616958618164, 38.62092590332031, 38.07305145263672, 36.69438934326172, 36.69438934326172, 36.69438934326172, 35.416316986083984, 35.416316986083984, 35.00958251953125, 32.319576263427734, 28.238628387451172, 26.363492965698242, 24.831890106201172, 23.613325119018555, 23.346046447753906, 22.95083999633789, 22.95083999633789, 21.627277374267578, 21.12252426147461, 21.12252426147461, 21.12252426147461, 21.12252426147461, 21.12252426147461, 21.12252426147461, 20.031394958496094, 19.015838623046875, 18.752117156982422, 17.615280151367188, 17.482454299926758, 17.234098434448242, 17.047454833984375, 16.82817840576172, 16.52996826171875, 15.865735054016113, 15.829252243041992, 15.307562828063965, 14.58212947845459, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.029488563537598, 14.029488563537598, 14.029488563537598, 13.735733032226562, 13.687309265136719, 13.304055213928223, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598 ], "content": [ "I have a MediaWiki installation 1.23 with the Scribunto extension and Module : Listen .", "I do have control over the Mediawiki LocalSettings.php and the Scribunto source code .", "Scribunto https : www.mediawiki.org wiki Extension : Scribunto Lua reference manual is a MediaWiki-hosted version of Lua .", "The Scribunto extension for Mediawiki will not work properly with a PCRE version earlier than 8.10 and I m stuck with 7.8 .", "I have been to the Mediawiki Scribunto page .. . .. . I have added these lines to my LocalSettings.php file : .. . .. . This has not fixed things .", "From what I ve read online the Lua engines used by the Scribunto extension are very finnicky and are a likely culprit .", "I have installed Scribunto and checked it is installed correctly on the list of extensions .", "Such as at User : YourUsername vector.js .. . .. . MediaWiki has also had an embedded Lua called Scribunto http : www.mediawiki.org wiki Extension : Scribunto for a little while now .", "Unless I m mistaken I don t think Scribunto or Module : Listen depend on it .", "I am working on a Scribunto module that accepts a variable amount of arguments to produce a table .", "I m trying to create a Scribunto module which among other things can create a section header in its output .", "The log is telling me that : var www extensions Scribunto engines LuaStandalone binaries lua5 1 5 linux 32 g eneric lua : Syntax error : unexpected", "I did : .. . .. . Then added the following to my LocalSettings.php .. . .. . I assume the lua binary included with Scribunto is not ok with the Raspberry Pi", "Is there some modification I can make to the Scribunto source to work around this PCRE dependency issue", "I have tried with Scribunto 1.20 1.21 and master making changes to the engines to fit with 1.20 .", "Is there any way for me to get my arbitrary edit link in there or do I have to live with the editsection-less Scribunto sections", "Is there any way like an undocumented magic word perhaps to get the current query-string or full URL including query-string from within a Mediawiki template or Scribunto Lua module", "I want to convert geographic coordinates http : transition.fcc.gov mb audio bickel DDDMMSS-decimal.html from this format : .. . .. . .. . to this format : .. . .. . How to do this in Scribunto", "Start by logging in as root using the password you created earlier .. . .. . Here we are adding database mediawikidb user mediawikiuser and password mediawikipassword : .. . .. . Now we can make some changes to php.ini so we can increase the maximum file size and memory limit .. . .. . cd etc php5 apache2 nano php.ini .. . .. . Replace upload max filesize 2M with upload max filesize 64M .. . .. . Replace post max size 8M with post max size 64M .. . .. . Save the file .. . .. . Now we are going to empty the var www folder and change its ownership to pi .. . .. . Now we can download MediaWiki uncompress it and copy it into var www .. . .. . Now we can restart the relevant services .. . .. . Now open a browser and go to localhost and start the installation .. . .. . To Complete Installation copy LocalSettings.php to var www mediawiki .. . .. . Now install Scribunto .. . .. . Download from http : www.mediawiki.org wiki Special : ExtensionDistributor Scribunto .. . .. . sudo nano etc mediawiki LocalSettings.php .. . .. . add these lines at the end of the file and save .. . .. . require-once IP extensions Scribunto Scribunto.php .. . .. . wgScribuntoDefaultEngine luastandalone .. . .. . wgScribuntoEngineConf luastandalone memoryLimit 209715200 bytes .. . .. . wgMaxShellMemory 204800 in KB .. . .. . wgScribuntoEngineConf luastandalone errorFile var tmp luaerror.log .. . .. . Now visit http : en.wikipedia.org wiki Special : Export and enter Template : Infobox in the big box .", "With the earlier version of PCRE attempting to use a Scribunto-dependent template generates this error message : .. . .. . preg-replace-callback : Compilation failed : unknown property name after P or p at offset 7 .. . .. . The call is made at the end of the function ustringGsub in engines LuaCommon UstringLibrary.php .", "How do I prevent MediaWiki from translating these tags into html-entities", "What you can do is to use the MediaWiki API from JS https : doc.wikimedia.org mediawiki-core master js api mw.Api to invoke the module .", "I enclose a link 2 to my php.ini file and my LocalSettings.php file Zipped together .. . .. . UPDATE - I have now managed to add a log file and the error in the log file is : .. . .. . var www extensions Scribunto engines LuaStandalone binaries lua5 1 5 linux 32 generic lua : Syntax error : unexpected .. . .. . UPDATE TWO .. . .. . These are the full steps I take to replicate the error : .. . .. . Start by checking for any package updates available and installing them .. . .. . Now install Apache PHP and MySQL .. . .. . We can check the internal IP address of our Raspberry Pi with the following command Make a note of it .. . .. . hostname -I .. . .. . We can now create a database for our new MediaWIki installation .", "My server is running MediaWiki 1.20 if that makes a difference .", "It should perform quite well as MediaWiki caches a lot .", "I m trying to set up a MediaWiki and trying to use the Navbox template .", "On MediaWiki wikis each user has a user JavaScript page they can put code in much like GreaseMonkey but without extensions .", "I know Lua modules can be called from MediaWiki templates and I suppose that s their main use .", "Can I use jquery.uls on a MediaWiki wiki to get a language code from the name of a language in English", "I have done a fresh installation on my local development-machine of MediaWiki 1.24.2 .", "I would try one of the MediaWiki mailing lists https : www.mediawiki.org wiki Mailing lists or possibly ask at ServerFault http : serverfault.com .", "I m working with a Mediawiki installation on a machine running Red Hat Enterprise Linux 6.5 .", "Many templates on my MediaWiki installation contain the following error : Script error : Lua error : Internal error : Error reading from pipe .", "This should be simpler than writing an extension .", "With Labeled Section Transclusion http : www.mediawiki.org wiki Extension 3aLabeled Section Transclusion extension you mentioned this should work .", "I don t have TimedMediaHandler but it looks like this is a separate extension .", "Tick all three boxes and click Export .. . .. . Open the file in Notepad or similar and do a find and replace text plain with CONTENT FORMAT TEXT .. . .. . Login to MediaWiki and go to Special : Import .. . .. . Once everything has imported correctly go to the homepage and enter this at the top of the page : .. . .. . Many thanks", "However one of the components will always be outside of a table context which in turn seem to escape tr and td tags .", "This invocation with explicit parameter would already be less fragile : .. . .. . Better yet usually people avoid nesting the templates at all and just do : .. . .. . Alternatively if using Lua you should make a template which passes an unlimited number of parameters to a module which produces wikitext for the entire table header included .", ".. . .. . I need to map names of languages to language codes in my JS and there s a Lua module to do just that without me duplicating the code mainly data in a second language .", "The list of available builtins functions is here https : www.mediawiki.org wiki Extension 3aScribunto Lua reference manual .", "The Semantic Forms extension appears to support a similar approach but only for POST requests and it seems a bit heftier than what I need .", "I want to allow users to submit forms via GET method for which I think I need to build an extension as the current form extensions did not appear to fit the bill so that they can specify a subset range of paragraphs to display using the Labeled Section Transclusion section and then share bookmark the result .", "Note that this code snippet is an obviously reusable function which one might call getDefaultTimezone .", "I want to know if it is possible currently or planned to invoke that code directly on the same page rather than creating a module with only one function which job is to call that code .", "I have a template that invokes the module and a separate template for the rows in the table .", "the invoking template contains nothing but invoke : Module module .. . .. . the row template contains the following example code : .. . .. . Any pages that uses this template includes it with .. . .. . I tried creating the table in the lua module .. . .. . At this point the row template was not in a table context thus making the row template go unrendered .", "Then I tried using HTML in the row template but the tags were translated to entities .", "Finally I tried adding the table creation tags into the invoking template using and and modifying the lua module to t mw.create.html but while the row template tags was fine the tags in the lua module were translated .", "Have you tried feeding it HTML entities", "123 124 125 This worked well for me when using templates inside templates .", "And sometimes MW is just weird :", "In addition to what Kasper said : AFAIK your module should output wikitext not HTML .", "Also nested template invocation makes teh whole thing quite fragile probably compensating any gain produced by using Lua .", "But then from your example it s not clear at all why you need templates etc .", "to hide the table syntax so it s harder to suggest a specific solution .", "https : meta.wikimedia.org wiki Help : Advanced templates can help with many template quirks .", "os.date Z returns CEST if your system is using Central European Summer Time which is what France is using now .", "In addition to the other two answers by @lhf and @Yu Hao which are right note that dealing correctly with time is complicated .", "Ah so you do -- I just installed TimedMediaHandler and MwEmbedSupport on which it depends and it s now working .", "Also reported for CentOS 6 at centos.org forums viewtopic.php f 14 t 43102 https : www.centos.org forums viewtopic.php f 14 t 43102 Given mediawiki.org wiki https : www.mediawiki.org wiki Extension : Scribunto PCRE version compatibility it seems that PCRE before 8.33 has other issues as well which probably don t make it advisable to use older versions .", "It was due to the metatable s index http : www.lua.org pil 13.4.1.html field lacking an underscore which of course means that it would not be recognized at all .", "attr is nil and from what I can tell by reading the Wikipedia documentation this means that the HtmlBuilder.create table call is returning you a Lua table without that field which can only mean that it isn t setting the builder metatable .", "But Googling and hunting around the MediWiki docs I can t find whether there s a way to call a Lua module from your user JavaScript .", "BTW jquery.uls ships a langdb taken from CLDR .", "@Nemo : That looks interesting - digging into it now .. .", "http : stackoverflow.com questions 29485489", "You can t do this directly because JS runs on the client and Lua on the server .", "Specifically using the expandtemplates API module http : en.wikipedia.org w api.php action help modules expandtemplates .", "For example if you wanted to call the function h2d from Module : Hex https : en.wikipedia.org wiki Module : Hex with the parameter FF invoke : hex h2d FF in wikitext and alert the result then the JS would look like this : .. . .. . .. . .. . And for the OP s specific case running on the English Wiktionary : .. . .. . prop : wikitext avoids a warning from the API and lets you access the result as data.expandtemplates.wikitext rather than the slightly mystifying data.expandtemplates .", "Otherwise there s no difference .", "Yes I experimented and found this myself .", "Would you mind if I add the code that solves my specific problem to your answer since it wouldn t work in a comment but probably doesn t warrant a separate answer anyway", "@hippietrail I don t mind .", "I m getting an error when I try and create an InfoBox .", "The error is : .. . .. . Lua error : Internal error : The interpreter exited with status 2 .. . .. . These are the steps I have taken the following steps to try and fix this .", "I m a but confused as to how to switch on error logging .", "The help page just says : .. . .. . Assigning a file path to wgScribuntoEngineConf luastandalone errorFile and examining that output can be valuable in diagnosing memory allocation errors .", "How do I assign a file path", "- Solved Thanks for the help with this .", "status 2 means memory allocation error so try raising available memory for Lua and for PHP .", "I m also flagging this as OT as it is not a programming question", "Hi .", "I assume OT is off topic", "I would have thought the part of the question about error logging is OK", "Can you suggest where I might log my question", "Best wishes", "BTW the wgScribuntoEngineConf luastandalone errorFile is just the name of a log file .", "You can use anything e.g .", "wgScribuntoEngineConf luastandalone errorFile var log luaerror.log", "Just to note that you need quotes around the log path and an semi-colon at the end of the line .", "I have raised a bug here phabricator.wikimedia.org T95716 https : phabricator.wikimedia.org T95716", "Finally fixed .", "I do not have superuser control over this system so installing PCRE 8.xx is not an option .", "Are you sure you can t ask your superuser to upgrade", "Just install a PCRE RPM http : rpmfind.net linux rpm2html search.php query pcre from fedora 20+ repos cf .", "stackoverflow.com a 12758289 1333493 http : stackoverflow.com a 12758289 1333493", "However I have already replaced the Lua files with the latest available and made sure everything was 777 .", "Not sure what else to try .", "I have a very short piece of lua code example : os.date Z ." ] }
{ "confidence": [ 64.83050537109375, 60.22807693481445, 60.13518524169922, 58.763328552246094, 56.61988067626953, 49.575904846191406, 45.67720031738281, 43.818626403808594, 42.569759368896484, 37.98499298095703, 34.10520553588867, 16.072330474853516, 15.714200973510742, 15.234614372253418, 13.941397666931152 ], "content": [ "Question : null .. . Answer : I m working with a Mediawiki installation on a machine running Red Hat Enterprise Linux 6.5 . The Scribunto extension for Mediawiki will not work properly with a PCRE version earlier than 8.10 and I m stuck with 7.8 . I do not have superuser control over this system so installing PCRE 8.xx is not an option . I do have control over the Mediawiki LocalSettings.php and the Scribunto source code . With the earlier version of PCRE attempting to use a Scribunto-dependent template generates this error message : .. . .. . preg-replace-callback : Compilation failed : unknown property name after P or p at offset 7 .. . .. . The call is made at the end of the function ustringGsub in engines LuaCommon UstringLibrary.php . Is there some modification I can make to the Scribunto source to work around this PCRE dependency issue Comment : Also reported for CentOS 6 at centos.org forums viewtopic.php f 14 t 43102 https : www.centos.org forums viewtopic.php f 14 t 43102 Given mediawiki.org wiki https : www.mediawiki.org wiki Extension : Scribunto PCRE version compatibility it seems that PCRE before 8.33 has other issues as well which probably don t make it advisable to use older versions . Are you sure you can t ask your superuser to upgrade Just install a PCRE RPM http : rpmfind.net linux rpm2html search.php query pcre from fedora 20+ repos cf . stackoverflow.com a 12758289 1333493 http : stackoverflow.com a 12758289 1333493", "Question : I have done a fresh installation on my local development-machine of MediaWiki 1.24.2 . I have installed Scribunto and checked it is installed correctly on the list of extensions . I m getting an error when I try and create an InfoBox . The error is : .. . .. . Lua error : Internal error : The interpreter exited with status 2 .. . .. . These are the steps I have taken the following steps to try and fix this . I have been to the Mediawiki Scribunto page .. . .. . I have added these lines to my LocalSettings.php file : .. . .. . This has not fixed things . I m a but confused as to how to switch on error logging . The help page just says : .. . .. . Assigning a file path to wgScribuntoEngineConf luastandalone errorFile and examining that output can be valuable in diagnosing memory allocation errors . How do I assign a file path - Solved Thanks for the help with this . I enclose a link 2 to my php.ini file and my LocalSettings.php file Zipped together .. . .. . UPDATE - I have now managed to add a log file and the error in the log file is : .. . .. . var www extensions Scribunto engines LuaStandalone binaries lua5 1 5 linux 32 generic lua : Syntax error : unexpected .. . .. . UPDATE TWO .. . .. . These are the full steps I take to replicate the error : .. . .. . Start by checking for any package updates available and installing them .. . .. . Now install Apache PHP and MySQL .. . .. . We can check the internal IP address of our Raspberry Pi with the following command Make a note of it .. . .. . hostname -I .. . .. . We can now create a database for our new MediaWIki installation . Start by logging in as root using the password you created earlier .. . .. . Here we are adding database mediawikidb user mediawikiuser and password mediawikipassword : .. . .. . Now we can make some changes to php.ini so we can increase the maximum file size and memory limit .. . .. . cd etc php5 apache2 nano php.ini .. . .. . Replace upload max filesize 2M with upload max filesize 64M .. . .. . Replace post max size 8M with post max size 64M .. . .. . Save the file .. . .. . Now we are going to empty the var www folder and change its ownership to pi .. . .. . Now we can download MediaWiki uncompress it and copy it into var www .. . .. . Now we can restart the relevant services .. . .. . Now open a browser and go to localhost and start the installation .. . .. . To Complete Installation copy LocalSettings.php to var www mediawiki .. . .. . Now install Scribunto .. . .. . Download from http : www.mediawiki.org wiki Special : ExtensionDistributor Scribunto .. . .. . sudo nano etc mediawiki LocalSettings.php .. . .. . add these lines at the end of the file and save .. . .. . require-once IP extensions Scribunto Scribunto.php .. . .. . wgScribuntoDefaultEngine luastandalone .. . .. . wgScribuntoEngineConf luastandalone memoryLimit 209715200 bytes .. . .. . wgMaxShellMemory 204800 in KB .. . .. . wgScribuntoEngineConf luastandalone errorFile var tmp luaerror.log .. . .. . Now visit http : en.wikipedia.org wiki Special : Export and enter Template : Infobox in the big box . Tick all three boxes and click Export .. . .. . Open the file in Notepad or similar and do a find and replace text plain with CONTENT FORMAT TEXT .. . .. . Login to MediaWiki and go to Special : Import .. . .. . Once everything has imported correctly go to the homepage and enter this at the top of the page : .. . .. . Many thanks Comment : status 2 means memory allocation error so try raising available memory for Lua and for PHP . I m also flagging this as OT as it is not a programming question Comment : Hi . I assume OT is off topic I would have thought the part of the question about error logging is OK Can you suggest where I might log my question Best wishes Comment : I would try one of the MediaWiki mailing lists https : www.mediawiki.org wiki Mailing lists or possibly ask at ServerFault http : serverfault.com . BTW the wgScribuntoEngineConf luastandalone errorFile is just the name of a log file . You can use anything e.g . wgScribuntoEngineConf luastandalone errorFile var log luaerror.log Comment : Just to note that you need quotes around the log path and an semi-colon at the end of the line . The log is telling me that : var www extensions Scribunto engines LuaStandalone binaries lua5 1 5 linux 32 g eneric lua : Syntax error : unexpected Comment : I have raised a bug here phabricator.wikimedia.org T95716 https : phabricator.wikimedia.org T95716 .. . Answer : Finally fixed . I did : .. . .. . Then added the following to my LocalSettings.php .. . .. . I assume the lua binary included with Scribunto is not ok with the Raspberry Pi", "Question : null .. . Answer : Many templates on my MediaWiki installation contain the following error : Script error : Lua error : Internal error : Error reading from pipe . From what I ve read online the Lua engines used by the Scribunto extension are very finnicky and are a likely culprit . However I have already replaced the Lua files with the latest available and made sure everything was 777 . Not sure what else to try .", "Question : I have a MediaWiki installation 1.23 with the Scribunto extension and Module : Listen . I try to invoke this module from an article like so : .. . .. . This generates the little infobox but the embedded sound player itself does not appear . I looked at the generated HTML and the module is just making a second ordinary href to the file : .. . .. . Rather than the second href to the file I d expect to see a or similar . Am I missing some template or Lua module Comment : Do you have TimedMediaHandler https : www.mediawiki.org wiki Extension : TimedMediaHandler installed Comment : I don t have TimedMediaHandler but it looks like this is a separate extension . Unless I m mistaken I don t think Scribunto or Module : Listen depend on it . Comment : They don t but you need it for the sound player to show up Comment : Ah so you do -- I just installed TimedMediaHandler and MwEmbedSupport on which it depends and it s now working . Thanks .. . Answer : You need to have TimedMediaHandler https : www.mediawiki.org wiki Extension : TimedMediaHandler installed for the sound player to show up", "Question : Scribunto https : www.mediawiki.org wiki Extension : Scribunto Lua reference manual is a MediaWiki-hosted version of Lua . I believe it is fairly standard Lua . I want to convert geographic coordinates http : transition.fcc.gov mb audio bickel DDDMMSS-decimal.html from this format : .. . .. . .. . to this format : .. . .. . How to do this in Scribunto Comment : Doesn t Module : Coordinates http : en.wikipedia.org wiki Module : Coordinates already do that Comment : @NicolBolas : Fixed Comment : @svick : Thanks convert dec2dms looks like what I am looking for .. . Answer : This assumes the input string is strictly of the form in the post . If there s any variability e.g . it can omit the minutes include seconds latitude and longitude can be separated differently or whatever the pattern will need to change . Comment : You probably need to negate the coords for S and W .", "Question : On MediaWiki wikis each user has a user JavaScript page they can put code in much like GreaseMonkey but without extensions . Such as at User : YourUsername vector.js .. . .. . MediaWiki has also had an embedded Lua called Scribunto http : www.mediawiki.org wiki Extension : Scribunto for a little while now . I know Lua modules can be called from MediaWiki templates and I suppose that s their main use . But Googling and hunting around the MediWiki docs I can t find whether there s a way to call a Lua module from your user JavaScript . .. . .. . I need to map names of languages to language codes in my JS and there s a Lua module to do just that without me duplicating the code mainly data in a second language . Comment : BTW jquery.uls ships a langdb taken from CLDR . Comment : @Nemo : That looks interesting - digging into it now .. . Comment : Can I use jquery.uls on a MediaWiki wiki to get a language code from the name of a language in English http : stackoverflow.com questions 29485489 .. . Answer : You can t do this directly because JS runs on the client and Lua on the server . What you can do is to use the MediaWiki API from JS https : doc.wikimedia.org mediawiki-core master js api mw.Api to invoke the module . Specifically using the expandtemplates API module http : en.wikipedia.org w api.php action help modules expandtemplates . For example if you wanted to call the function h2d from Module : Hex https : en.wikipedia.org wiki Module : Hex with the parameter FF invoke : hex h2d FF in wikitext and alert the result then the JS would look like this : .. . .. . .. . .. . And for the OP s specific case running on the English Wiktionary : .. . .. . prop : wikitext avoids a warning from the API and lets you access the result as data.expandtemplates.wikitext rather than the slightly mystifying data.expandtemplates . Otherwise there s no difference . Comment : Yes I experimented and found this myself . Would you mind if I add the code that solves my specific problem to your answer since it wouldn t work in a comment but probably doesn t warrant a separate answer anyway Comment : @hippietrail I don t mind .", "Question : I m trying to create a Scribunto module which among other things can create a section header in its output . If the returned string contains for example Hello World the resulting page correctly displays the section and even includes the section in the TOC . However the section has no editsection link . To some extent this is understandable the section doesn t actually exist in the page s source . But I would like to be able to put an edit link-to where the content of the section is coming from . I have tried two different versions of a buildHeader function : .. . .. . In both cases the HTML of the anchor tag was escaped eg span class mw-editsection .. . lt a href .. . title .. . gt edit lt a gt span and the whole mw-editsection span was included in the TOC text . Is there any way for me to get my arbitrary edit link in there or do I have to live with the editsection-less Scribunto sections .. . Answer : My working solution but not my preferred solution is to insert the link with JavaScript . The buildHeader function becomes : .. . .. . Then in MediaWiki : Common.js I add :", "Question : Is there any way like an undocumented magic word perhaps to get the current query-string or full URL including query-string from within a Mediawiki template or Scribunto Lua module Comment : Typically all what determines generated content is page title . I can t imagine any use-case for checking query-string . Could you describe from user s point of view what would you like to achieve Possibly you took wrong approach . Comment : I want to allow users to submit forms via GET method for which I think I need to build an extension as the current form extensions did not appear to fit the bill so that they can specify a subset range of paragraphs to display using the Labeled Section Transclusion section and then share bookmark the result . I like the idea of keeping resolution logic accessible from templates . Comment : The Semantic Forms extension appears to support a similar approach but only for POST requests and it seems a bit heftier than what I need . .. . Answer : If this is an option consider obtaining HTML content with API http : www.mediawiki.org wiki API 3aParsing wikitext . This should be simpler than writing an extension . Of course this won t be a regular page rather something composed client-side on blank article or server-side on non-wiki site . With Labeled Section Transclusion http : www.mediawiki.org wiki Extension 3aLabeled Section Transclusion extension you mentioned this should work . Alternatively consider some server-side post processing on generated HTML . It should perform quite well as MediaWiki caches a lot . AFAIK there is no magic word for checking query-string and IMO this would be a very bad thing . Article source is like a model in MVC pattern you shouldn t put presentation stuff there . Comment : I still think it would be quite convenient to have a way that people could simply add iframes to grab portions of a wiki text without additional server-side code e.g . for excerpting literature from Wikisource . Also I think you mean shouldn t put controller stuff there no I really think the already dynamic nature of templates ought to be usable from outside the site via REST . Comment : It s a pity the action render from mediawiki.org wiki Manual : Parameters to index.php Actions http : www.mediawiki.org wiki Manual : Parameters to index.php Actions doesn t work with a text argument instead of title as in the API --it shouldn t be any XSS risk as it would still be parsed . Comment : I ve submitted bugzilla.wikimedia.org show bug.cgi id 58971 https : bugzilla.wikimedia.org show bug.cgi id 58971 toward this end .", "Question : I am working on a Scribunto module that accepts a variable amount of arguments to produce a table . I have a template that invokes the module and a separate template for the rows in the table . However one of the components will always be outside of a table context which in turn seem to escape tr and td tags . the invoking template contains nothing but invoke : Module module .. . .. . the row template contains the following example code : .. . .. . Any pages that uses this template includes it with .. . .. . I tried creating the table in the lua module .. . .. . At this point the row template was not in a table context thus making the row template go unrendered . Then I tried using HTML in the row template but the tags were translated to entities . Finally I tried adding the table creation tags into the invoking template using and and modifying the lua module to t mw.create.html but while the row template tags was fine the tags in the lua module were translated . How do I prevent MediaWiki from translating these tags into html-entities Comment : Have you tried feeding it HTML entities 123 124 125 This worked well for me when using templates inside templates . And sometimes MW is just weird : .. . Answer : In addition to what Kasper said : AFAIK your module should output wikitext not HTML . Also nested template invocation makes teh whole thing quite fragile probably compensating any gain produced by using Lua . This invocation with explicit parameter would already be less fragile : .. . .. . Better yet usually people avoid nesting the templates at all and just do : .. . .. . Alternatively if using Lua you should make a template which passes an unlimited number of parameters to a module which produces wikitext for the entire table header included . But then from your example it s not clear at all why you need templates etc . to hide the table syntax so it s harder to suggest a specific solution . https : meta.wikimedia.org wiki Help : Advanced templates can help with many template quirks .", "Question : I m trying to set up a MediaWiki and trying to use the Navbox template . I had everything working fine on my local machine but when I copied it all to the server I get Lua script errors specifically : .. . .. . If I edit that file then it just gives error for all the other fields . My server is running MediaWiki 1.20 if that makes a difference . I have tried with Scribunto 1.20 1.21 and master making changes to the engines to fit with 1.20 . If anyone can help that would be great . Edited modules : Navbox http : pastebin.com eyGX0pVv HtmlBuilder http : pastebin.com RyTeRGk5 . Comment : Including the code around line 302 is going to be helpful . Comment : The code is all taken from the wikipedia modules the function that actually throws the error is : function renderMainTable local tbl HtmlBuilder.create table .attr cellspacing 0 .addClass nowraplinks .addClass args.bodyclass but if I modify the code to skip that line then the rest of the module throws the same error . en.wikipedia.org wiki Module : Navbox http : en.wikipedia.org wiki Module : Navbox Comment : attr is nil and from what I can tell by reading the Wikipedia documentation this means that the HtmlBuilder.create table call is returning you a Lua table without that field which can only mean that it isn t setting the builder metatable . Can you provide more information or code if any has been modified Comment : The code is imported straight from Wikipedia - HtmlBuilder code is here : en.wikipedia.org wiki Module : HtmlBuilder http : en.wikipedia.org wiki Module : HtmlBuilder Comment : Navbox http : pastebin.com eyGX0pVv HtmlBuilder http : pastebin.com RyTeRGk5 Thanks . .. . Answer : Let me say that it is very hard to attempt answering your question . In the original post you re not saying much that is of help to solve the issue . I ll just base upon this line of code you mentioned : .. . .. . I would probably try replacing it with this : Comment : Hi replacing that line moved the error to the next place where tbl is used . I m sorry if I haven t given enough information maybe because I ve been inside this thing for too long I don t see what it looks like from the outside any more . The code is entirely copied from these two modules : en.wikipedia.org wiki Module : Navbox http : en.wikipedia.org wiki Module : Navbox en.wikipedia.org wiki Module : HtmlBuilder http : en.wikipedia.org wiki Module : HtmlBuilder", "Question : I m trying to set up a MediaWiki and trying to use the Navbox template . I had everything working fine on my local machine but when I copied it all to the server I get Lua script errors specifically : .. . .. . If I edit that file then it just gives error for all the other fields . My server is running MediaWiki 1.20 if that makes a difference . I have tried with Scribunto 1.20 1.21 and master making changes to the engines to fit with 1.20 . If anyone can help that would be great . Edited modules : Navbox http : pastebin.com eyGX0pVv HtmlBuilder http : pastebin.com RyTeRGk5 . Comment : Including the code around line 302 is going to be helpful . Comment : The code is all taken from the wikipedia modules the function that actually throws the error is : function renderMainTable local tbl HtmlBuilder.create table .attr cellspacing 0 .addClass nowraplinks .addClass args.bodyclass but if I modify the code to skip that line then the rest of the module throws the same error . en.wikipedia.org wiki Module : Navbox http : en.wikipedia.org wiki Module : Navbox Comment : attr is nil and from what I can tell by reading the Wikipedia documentation this means that the HtmlBuilder.create table call is returning you a Lua table without that field which can only mean that it isn t setting the builder metatable . Can you provide more information or code if any has been modified Comment : The code is imported straight from Wikipedia - HtmlBuilder code is here : en.wikipedia.org wiki Module : HtmlBuilder http : en.wikipedia.org wiki Module : HtmlBuilder Comment : Navbox http : pastebin.com eyGX0pVv HtmlBuilder http : pastebin.com RyTeRGk5 Thanks . .. . Answer : Look very very carefully at your pastebinned code compared to Wikipedia s code . In fact I d recommend performing a diff of the two . Your code http : pastebin.com RyTeRGk5 .. . .. . Wikipedia https : en.wikipedia.org wiki Module 3aHtmlBuilder .. . .. . .. . .. . Do you see the difference Metamethods in Lua http : www.lua.org pil 13.html always start with two underscores not one . I m not sure how your code got to the state that it s in but this would very well explain all the troubles you ve been having even why attr was not accessible . It was due to the metatable s index http : www.lua.org pil 13.4.1.html field lacking an underscore which of course means that it would not be recognized at all . I m surprised I noticed since it s easy to miss that extra underscore when skimming . I would recommend restoring your HtmlBuilder module to its original state first then see if that fixes your issue . You might want to restore NavBox and any others you may have modified if your modifications aren t too significant but a diff https : en.wikipedia.org wiki Diff would definitely tell you what s different between your versions . Just be mindful of what you change in the future but don t be afraid to experiment so long as you have backups Comment : Wow . Thanks for that I can only guess that Wikipedia did something to correct the double underscore when exporting the modules . Thanks again and enjoy your 50 rep Comment : @yedidyak I think you have to actually click on the bounty button to award it . atm it s still showing the bounty as open . Comment : 50 points and multiple likes for a typo", "Question : According to the current date How I could know if it the hour is in summer time in Lua . For example the value in France would be actually true CEST is currently used . During winter it would be false . Forget is this is too specific : I am just expecting the rules for France . But at this point I couldn t know if Lua has a native function . The list of available builtins functions is here https : www.mediawiki.org wiki Extension 3aScribunto Lua reference manual . .. . Answer : os.date Z returns CEST if your system is using Central European Summer Time which is what France is using now . Outside summer time it returns CET . Comment : thanks this short way of doing it . Does it return a string CEST or CET If Yes I can say that this is exactly that I want my function to output . I wanted something shorter than with ifeq in wikisyntax . Comment : Yes os.date Z returns a string . Comment : It was working on command-line but finally it seems there is a kind of problem : fr.wikipedia.org wiki Module : Wrapper https : fr.wikipedia.org wiki Module : Wrapper", "Question : According to the current date How I could know if it the hour is in summer time in Lua . For example the value in France would be actually true CEST is currently used . During winter it would be false . Forget is this is too specific : I am just expecting the rules for France . But at this point I couldn t know if Lua has a native function . The list of available builtins functions is here https : www.mediawiki.org wiki Extension 3aScribunto Lua reference manual . .. . Answer : The table returned by os.date t someday has a field isdst representing if it s daylight saving time . Getting the current time is easier calling os.time without arguments will return the current date and time . Comment : just a question : how I do for having the someday variable being the current time Comment : @user2284570 See the update . Comment : The problem here is that os.time would return the time in UTC on the wikimedia s servers .", "Question : According to the current date How I could know if it the hour is in summer time in Lua . For example the value in France would be actually true CEST is currently used . During winter it would be false . Forget is this is too specific : I am just expecting the rules for France . But at this point I couldn t know if Lua has a native function . The list of available builtins functions is here https : www.mediawiki.org wiki Extension 3aScribunto Lua reference manual . .. . Answer : In addition to the other two answers by @lhf and @Yu Hao which are right note that dealing correctly with time is complicated . If I were you I would consider using a library for it such as Penlight http : stevedonovan.github.io Penlight api classes pl.Date.html . Note that even Penlight is not https : github.com stevedonovan Penlight issues 89 perfect https : github.com stevedonovan Penlight pull 90 but at least people are using it so issues get fixed eventually . Comment : Thanks you . I am sorry but i was looking for something working with mediawiki.org wiki Extension : Scribunto https : www.mediawiki.org wiki Extension : Scribunto . I don t have enough privileges to add third party libraries because I am a simple user of the wiki . Comment : Then you can just look at github.com stevedonovan Penlight blob https : github.com stevedonovan Penlight blob 62fc78dd0d4834619106797f8978ffdb302cb484 lua pl Date.lua for inspiration I guess . Comment : It was working on command-line but finally it seems there is a kind of problem : fr.wikipedia.org wiki Module : Wrapper http : fr.wikipedia.org wiki Module : Wrapper", "Question : I have a very short piece of lua code example : os.date Z . I want to know if it is possible currently or planned to invoke that code directly on the same page rather than creating a module with only one function which job is to call that code . I know creating a module with other time functions would be approach but no wiki user will need to use others functions in the future . So creating I don t think it worth creating a library module of that kind . .. . Answer : No that s not possible currently or planned . You must create a module with one function and invoke it . Note that this code snippet is an obviously reusable function which one might call getDefaultTimezone . Comment : Ok but I have small problems https : fr.wikipedia.org wiki Module : Wrapper at wrapping the example since os.date as an optional second argument but I recognize wraping function with optionals argument is an another question.. ." ] }
[ "yes-answer-long", "yes-answer-short" ]
scripting
UNK_RELATION
icviewpager@ios@53
icviewpager -- icviewpager creates sliding tabs for @placeholder apps .
{ "confidence": [ 57.79924392700195, 57.5527229309082, 44.97298049926758, 40.96296691894531, 39.467552185058594, 28.226917266845703, 22.045780181884766, 19.701095581054688, 14.802123069763184, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781, 13.306709289550781 ], "content": [ "I make use of ICViewPager to create tabs of contents .", "I m using the ICViewPager https : github.com iltercengiz ICViewPager in my iPhone App .", "How do I make the ICViewPager occupy the red spaces", "I managed to setup the plugin how do I add a UINavigationBar UIToolbar above the ICViewPager", "However the layout looks weird as there are strange spaces at the top bottom of ICViewPager s content view .", "Here is the structure : .. . .. . UITabbarController -- UINavigationController -- TabVC which contains ICViewPager -- Content views : Content1VC Content2VC Content3VC .. . .. . Here are the codes in TabVC which configs to have ViewPagerDataSource ViewPagerDelegate : .. . .. . and for the delegate methods : .. . .. . The functions look okay but the layout does not span through the whole spaces as it expects to do so .", "Then the UINavigationController is made to be one of the tabs in a UITabbar Controller .", "Note : This appears only after the view is popped back from a pushed view controller or changing tabs in UITabbarController .. . .. .", "The closet option would be ViewPagerOptionTabLocation which values are : .. . .. . 1.0 : Top 0.0 : Bottom Defaults to Top .. . .. . But does not have an option to place the view pager in between.. .", "As you can see below I have a UINavigationBar at the top of the screen which is generated by the embedding UINavigationController .", "The red spaces I made the TabVC view s background-color to red to illustrate the issue are not expected to appear .", "Screenshot http : i.stack.imgur.com 09e2y.png", "I m not entirely sure but try playing with edgesForExtendedLayout extendedLayoutIncludesOpaqueBars and automaticallyAdjustsScrollViewInsets and see if you get it fixed", "Thanks when I comment out self.edgesForExtendedLayout UIRectEdgeNone the layout problem is solved .", "Can you please put that as answer if possible can you explain why the line causes the problem", "I don t quite understand", "posted as answer .", "ur welcome .", "I think it is a conflict between automaticallyAdjustsScrollViewInsets and edgesForExtendedLayout .", "From this http : stackoverflow.com a 19585104 3894781 answer : .. . .. . edgesForExtendedLayout .. . .. . Basically with this property you set which sides of your view can be extended to cover the whole screen .", "Imagine that you push a UIViewController into a UINavigationController when the view of that view controller is laid out it will start where the navigation bar ends but this property will set which sides of the view top left bottom right can be extended to fill the whole screen .", "and .. . .. . automaticallyAdjustsScrollViewInsets .. . .. . This property is used when your view is a UIScrollView or similar like a UITableView .", "You want your table to start where the navigation bar ends because you wont see the whole content if not but at the same time you want your table to cover the whole screen when scrolling .", "In that case setting edgesForExtendedLayout to None won t work because your table will start scrolling where the navigation bar ends and it wont go behind it .", "So automaticallyAdjustsScrollViewInsets defaults to YES and thus inserts a positive inset at the top equal to the height of the nav bar .", "now when you apply self.edgesForExtendedLayout UIRectEdgeNone that inset creeps out from under the nav bar causing said issue ." ] }
{ "confidence": [ 62.70831298828125, 58.86621856689453 ], "content": [ "Question : null .. . Answer : I m using the ICViewPager https : github.com iltercengiz ICViewPager in my iPhone App . I managed to setup the plugin how do I add a UINavigationBar UIToolbar above the ICViewPager The closet option would be ViewPagerOptionTabLocation which values are : .. . .. . 1.0 : Top 0.0 : Bottom Defaults to Top .. . .. . But does not have an option to place the view pager in between.. .", "Question : I make use of ICViewPager to create tabs of contents . However the layout looks weird as there are strange spaces at the top bottom of ICViewPager s content view . As you can see below I have a UINavigationBar at the top of the screen which is generated by the embedding UINavigationController . Then the UINavigationController is made to be one of the tabs in a UITabbar Controller . Here is the structure : .. . .. . UITabbarController -- UINavigationController -- TabVC which contains ICViewPager -- Content views : Content1VC Content2VC Content3VC .. . .. . Here are the codes in TabVC which configs to have ViewPagerDataSource ViewPagerDelegate : .. . .. . and for the delegate methods : .. . .. . The functions look okay but the layout does not span through the whole spaces as it expects to do so . The red spaces I made the TabVC view s background-color to red to illustrate the issue are not expected to appear . How do I make the ICViewPager occupy the red spaces Note : This appears only after the view is popped back from a pushed view controller or changing tabs in UITabbarController .. . .. . Screenshot http : i.stack.imgur.com 09e2y.png Comment : I m not entirely sure but try playing with edgesForExtendedLayout extendedLayoutIncludesOpaqueBars and automaticallyAdjustsScrollViewInsets and see if you get it fixed Comment : Thanks when I comment out self.edgesForExtendedLayout UIRectEdgeNone the layout problem is solved . Can you please put that as answer if possible can you explain why the line causes the problem I don t quite understand Comment : posted as answer . ur welcome . .. . Answer : I think it is a conflict between automaticallyAdjustsScrollViewInsets and edgesForExtendedLayout . From this http : stackoverflow.com a 19585104 3894781 answer : .. . .. . edgesForExtendedLayout .. . .. . Basically with this property you set which sides of your view can be extended to cover the whole screen . Imagine that you push a UIViewController into a UINavigationController when the view of that view controller is laid out it will start where the navigation bar ends but this property will set which sides of the view top left bottom right can be extended to fill the whole screen . and .. . .. . automaticallyAdjustsScrollViewInsets .. . .. . This property is used when your view is a UIScrollView or similar like a UITableView . You want your table to start where the navigation bar ends because you wont see the whole content if not but at the same time you want your table to cover the whole screen when scrolling . In that case setting edgesForExtendedLayout to None won t work because your table will start scrolling where the navigation bar ends and it wont go behind it . So automaticallyAdjustsScrollViewInsets defaults to YES and thus inserts a positive inset at the top equal to the height of the nav bar . now when you apply self.edgesForExtendedLayout UIRectEdgeNone that inset creeps out from under the nav bar causing said issue ." ] }
[ "yes-answer-long", "yes-answer-short" ]
ios
UNK_RELATION
saxparser@xml@33
saxparser -- sax simple api for @placeholder is an event-based parser for xml documents .
{ "confidence": [ 46.65580368041992, 37.77197265625, 34.36299133300781, 33.143253326416016, 32.658180236816406, 32.240718841552734, 30.741985321044922, 30.597270965576172, 29.520566940307617, 29.520566940307617, 28.897441864013672, 28.86213493347168, 28.158798217773438, 28.157676696777344, 27.97265625, 27.9180908203125, 27.89775276184082, 27.72499656677246, 27.712112426757812, 27.101945877075195, 26.70193862915039, 26.602581024169922, 26.01214027404785, 26.01214027404785, 25.827255249023438, 25.465442657470703, 24.729591369628906, 24.649250030517578, 24.52043914794922, 24.325389862060547, 24.222789764404297, 24.215469360351562, 24.170345306396484, 23.927474975585938, 23.63770294189453, 23.627288818359375, 23.522838592529297, 23.493450164794922, 23.461280822753906, 22.602214813232422, 22.459131240844727, 22.459131240844727, 22.459131240844727, 22.15994644165039, 22.063365936279297, 21.91774559020996, 21.91774559020996, 21.835033416748047, 21.732460021972656, 21.708534240722656, 21.661476135253906, 21.34791374206543, 21.03875732421875, 20.832151412963867, 20.780607223510742, 20.780607223510742, 20.700475692749023, 20.700475692749023, 20.413185119628906, 20.359655380249023, 20.016576766967773, 19.995750427246094, 19.69754981994629, 19.661075592041016, 19.58698844909668, 19.4527587890625, 19.41771697998047, 19.41771697998047, 19.335002899169922, 19.23871612548828, 19.103639602661133, 19.029085159301758, 18.863601684570312, 18.858612060546875, 18.70069122314453, 18.568824768066406, 18.568824768066406, 18.35515022277832, 18.31562042236328, 18.168256759643555, 17.73293113708496, 17.73293113708496, 17.73293113708496, 17.644500732421875, 17.63028907775879, 17.63028907775879, 17.63028907775879, 17.49571990966797, 17.49571990966797, 17.49571990966797, 17.49571990966797, 17.431686401367188, 17.431686401367188, 17.37857437133789, 17.291366577148438, 17.25351905822754, 17.16190528869629, 17.16104507446289, 16.984163284301758, 16.952728271484375 ], "content": [ "XMLParser is the class of the SAX API and SAXParser is the SAX parser of the JAXP API I prefer the latter method which is more standard .", "I am parsing a xml using SAX Parser .", "And it has the characteristics of a SAX-parser", "A push-based SAX parser does not care about those issues at all", "I have written a simple hierarchical json-parser using POCO JSON to be used as a sax parser .", "Using the SAX parser you will be only be able to read the data from the XML .", "There are some graphs that show that the other two available methods - the SAX parser and Android s XML Pull-Parser - are equally slow .", "do you insist on SAX parser", "Is there any way to make SAX Parser ignore junk characters after on xml response and not throw exception and close the stream. . .. . 2 .", "I use this technique when pushing streaming XML from TCP through a SAX parser and it works very well .", "Can t believe that the SAX parser is that much faster .", "I using SAXParser .", "@JanDoggen I using this tutorial : javacodegeeks.com 2013 05 http : www.javacodegeeks.com 2013 05 parsing-xml-using-dom-sax-and-stax-parser-in-java.html .", "Using the SAX parser I can parse a 15 000-line XML file in around 10 seconds on my HTC Desire .", "Is this a problem in xml parser", "Currently everything is based on SAX in my environment .", "I use SAXParser to parse config.xml .", "I am using SAXParser .", "If you want to parse XML use an XML parser .", "The javadoc for ContentHandler.characters http : docs.oracle.com javase 1.5.0 docs api org xml sax ContentHandler.html characters 28char 5B 5D 20int 20int 29 says this : .. . .. . The Parser will call this method to report each chunk of character data .", "update : heres a few links to read if you dont mind reading : p shows cons and perks to both sides .. . .. . http : www.firstobject.com xml-reader-sax-vs-xml-pull-parser.htm .. . .. . Also another answer to maybe read into SAX parser vs XMLPull parser http : stackoverflow.com questions 5808105 sax-parser-vs-xmlpull-parser", "How I can handle this situations easily with SAXParser", "I m downloading a XML-string that contains site id description latitude-longitude and parse it with Poco SAXParser to extract the fields .", "I could parse the entire XML string with boost replace all before sending it so SAXParser but that is not very elegant nor efficient .", "Use a different parser that is tolerant to malformed xml .", "I am parsing the below string using SAXParser", "In all the XML parser s Sax parser is the fastest one so you can go for it with no doubt ....If you need to read and write the data from an XML you can go for DOM .", "I am filling an array of rooms with room objects and creatures into their respective rooms from an xml file using saxParser .", "But I feel it is DOM based function since in SAX parsing there is no xmlDocPtr .", "If your SAX parser supports a push model where you push raw data chunks into it yourself and it fires events as it parses the raw data then you can simply push your own initial XML tag at the beginning of the SAX session .", "And I cant find a way to catch the SAXException throw by the sax parser so I guess using validation during unmarshaling can t due with un-well form xml string .", "it works correctly for a simple xml file .", "DOM-based implementation of feed parser in that link .", "You can t handle invalid XML with an XML parser - you have to deal with it at source .", "You re writing an XML parser using a library that already performs XML parsing", "Next I tried to pass the inflatorReadStream which in turn takes data from socket input stream as the input stream of SAX parser without bothering to separate xml myself and relying on SAX s ability to find the end of document based on tags .", "Update : as per updated question You need to understand the role of entities in XML and thus SAX .", "sorry but SAX parser has issue with self close tag tag do you have any solution to solve that", "SAX .. . 2 .", "I am attempting to take the tags from the xml and create the correct rooms add the correct creatures with the correct neighbors using the saxparser and creating the objects from that", "use sax or xmlpullparsing .", "The best among sax and xmlpull .", "SAX : .. . .. . Sequence of events .", "It would be really great to see a comparison between say vtd-xml sax and pull parsing on Android .", "SAX is great as long as the file is well-formed .", "Trying to parse SGML using an XML parser is like trying to compile Java with a C compiler - it won t work .", "Filter the xml file before passing it to the parser - editing it on-the-fly to make it well formed .", "Once its corrected you can proceed further for parsing it with SAX .", "And I am using SAX to parse my XML .. . .. . Now my main problem is the xml response coming from server can be very large can be in the range of 3 to 4 MB .", "if it won t fit in core use sax .", "Defining these functions is what I meant by writing an XML parser .", "Is there some way I can make File open the file or is this impossible without using SAXparser or XPP", "@fernando Miguelez I have the same problem but I m using XMLParser instead of SAXParser can you give me a workaround for that too", "After catching that ExpatParserParseException I tried to read again but after throwing exception SAX Parser closes the stream so when I try to read parse again it is giving IOException saying input stream is closed .", "those ampersands are not a mistake then you probably shouldn t by trying to parse it using an XML parser .", "At least the python XML-pull parser I like to use for large-files does when materializing subtrees .", "SAX Parsing is the Best one to implement than DOM .", "In SAX Backward navigation is not possible as it sequentially processes the document .", "Otherwise you would have to do your own buffering and only parse individual documents again with using a push parser at all .", "The ContentHandler documentation for the characters method http : docs.oracle.com javase 6 docs api org xml sax ContentHandler.html characters 28char 5b 5d 20int 20int 29 mentions that SAX parsers are free to do this : .. . .. . SAX parsers may return all contiguous character data in a single chunk or they may split it into several chunks ... . .. . .. . You ll therefore need to adjust your characters method to handle being called multiple times for the same chunk of contiguous character data .", "I am writing an XML parser in C++ using libxml library which requires me to validate the XML against a DTD which is specified inline .", "retains the whole tree in memory end-user can easily provide a handler with SAX-like behavior .", "That way you can push multiple responses in the same SAX session and then in the OnTagOpen event or wheatever you are using you will know when a new response begins when you detect its tag name at level 1 .", "The application is running perfectly fine on 2.2 and is having problem working on 2.1 .. . .. . I have done changes in manifest.xml and project - properties .. . .. . My application basically uses sax parser facebook sdk twitter connect .. . .. . This is the log cat : .. . .. . And i get this message after the splash-screen .", "The library parses the XML and calls the registered functions based on events .", "the parser crashes with the next error : ParseException : undefined entity .", "After a bit of research I found this article on developer.com http : www.developer.com ws article.php 10927 3824221 2 Android-XML-Parser-Performance.htm .", "we re using the pull-parser very effectively for 1MB XML Files - and they are read in about 10-20 Seconds on my Desire .", "JBOSS-5 already has its own sax parsers .. . .. . 2 .", "Memory : It Occupies more memory DOM is only preffered in the case of small XML documents .", "There is no problem with the xml .", "Well formed relates to the XML syntax itself as opposed to being valid WRT an XML schema : .. . .. . http : en.wikipedia.org wiki Well-formed element .. . .. . If you have XML that is not well formed then you will get a ValidationEvent.FATAL ERROR and unmarshalling will not be able to continue as the underlying parser used by JAXB cannot continue .", "This question already has an answer here : .. . .. . Java Sax Parser only returning one line of a tag questions 15734418 java-sax-parser-only-returning-one-line-of-a-tag 1 answer .. . .. . I ve tried using a StringBuilder named object but I m still not getting all the CDATA from the description tag.The xml is located at Events-Ovations365 : http : feeds.feedburner.com Events-Ovations365 .. . .. . Basically it only gets the CDATA on one line : .. . .. . img is : http : www.ovations365.com sites ovations365.com images org 81 newtown medium.jpg .. . .. . alt Ocmulgee Heritage Trail Ribbon Cutting", "SAX parsers may return all contiguous character data in a single chunk or they may split it into several chunks .. . .", "As arbitrary chunks are pushed into the parser the parser buffers what it needs internally and then fires events whenever finished tags exist in the buffer .", "it works for sample xml in tutorial .", "This xml is on the remote-server .", "You might be able to use a wrapper around the reader or stream you pass to the filter that detects the newline and then closes the parser and launches a new parser that continues with the stream : your stream is NOT valid XML and you won t be able to parse it as you currently have implemented .", "Do you use a DTD in your parser", "Ampersand must be quoted in XML as amp .", "One might imply that the developers of Android guessed that SAX parsing would be much more common on Android applications hence the extra utilities provided for it .", "This time one response gets parsed successfully but then on finding the n delimiter SAX throws ExpatParserParseException saying junk after document element .", "That will become the top-level document tag then you can push the responses as you receive them and they will be second-level tags as far as SAX is concerned .", "In what sense then are you writing a parser", "you need to convert the xml string to arraylist right", "After performing XML parsing try like this", "please append the XML to give us more clues", "Means sax if good then dom for heavy data but please tell me about xmlpullparser .", "I would emphasize that SAX is more difficult to implement because you the programmer must step through the nodes .", "It s seems that has to be a bug at some place because I expected similar SAX performance .", "It s obvious that DOM is very slow on a limited memory environment but pull or SAX really aren t", "amp in well-formed XML .", "If it is not supposed to be real XML i.e .", "You might want to use a different more robust parser .", "XML is .. . .. . --------------------------continue----- .. . .. . I am not able to figure out what can be the problem here that the same xml is running fine on one machine and not on other .", "If you want to parse SGML use an SGML parser for example James Clark s SP .", "That would only be true if you are parsing the responses as top-level documents .", "With the more recent versions of Android this becomes less of a problem as they optimised the loading of timezone info .. . .. . If you have Dates that are being parsed and you don t need them then you could use a SAX parser and ignore any of the Date elements .", "Plain and simple", "DOM .. . .. . Which is the best parser to parse data" ] }
{ "confidence": [ 57.25908279418945, 55.441627502441406, 54.75635528564453, 45.31113815307617, 43.744144439697266, 42.84797668457031, 41.87822341918945, 41.06318664550781, 37.23820495605469, 37.1705436706543, 36.993011474609375, 36.822105407714844, 36.759521484375, 34.98970413208008, 34.543434143066406, 34.3339729309082, 32.8900260925293, 32.37263870239258, 32.24322509765625, 32.092464447021484 ], "content": [ "Question : I am parsing a xml using SAX Parser . Everythings working fine when the data I need to get is the body of a xml tag . The only problem I am getting is when the data I need is the attribute value of that XML tag . How do i get this attribute value Suppose this is a tag I am able to get Body but not value .. . .. . code I am using is : .. . Answer : Comment : thanks a lot : Comment : You make my day : Comment : @fernando Miguelez I have the same problem but I m using XMLParser instead of SAXParser can you give me a workaround for that too Comment : XMLParser is the class of the SAX API and SAXParser is the SAX parser of the JAXP API I prefer the latter method which is more standard . Both should have similar methods .", "Question : In my homework I should parse some sgml files . I using SAXParser . it works correctly for a simple xml file . but when I want to parse homework sgml files this error occur : .. . .. . I dont have any knowledge from dtd documents . my code is : .. . .. . How can I prevent this error excuse me for bad English Comment : How about showing us the XML that works and the SGML that fails Comment : @JanDoggen I using this tutorial : javacodegeeks.com 2013 05 http : www.javacodegeeks.com 2013 05 parsing-xml-using-dom-sax-and-stax-parser-in-java.html . it works for sample xml in tutorial . .. . Answer : If you want to parse XML use an XML parser . If you want to parse SGML use an SGML parser for example James Clark s SP . Trying to parse SGML using an XML parser is like trying to compile Java with a C compiler - it won t work .", "Question : In my homework I should parse some sgml files . I using SAXParser . it works correctly for a simple xml file . but when I want to parse homework sgml files this error occur : .. . .. . I dont have any knowledge from dtd documents . my code is : .. . .. . How can I prevent this error excuse me for bad English Comment : How about showing us the XML that works and the SGML that fails Comment : @JanDoggen I using this tutorial : javacodegeeks.com 2013 05 http : www.javacodegeeks.com 2013 05 parsing-xml-using-dom-sax-and-stax-parser-in-java.html . it works for sample xml in tutorial . .. . Answer : You can use XMLSPY kind of tool which will validate your SGML against given xsd or dtd if there is any error it will show in red color and then you can manually correct it . Once its corrected you can proceed further for parsing it with SAX .", "Question : In my homework I should parse some sgml files . I using SAXParser . it works correctly for a simple xml file . but when I want to parse homework sgml files this error occur : .. . .. . I dont have any knowledge from dtd documents . my code is : .. . .. . How can I prevent this error excuse me for bad English Comment : How about showing us the XML that works and the SGML that fails Comment : @JanDoggen I using this tutorial : javacodegeeks.com 2013 05 http : www.javacodegeeks.com 2013 05 parsing-xml-using-dom-sax-and-stax-parser-in-java.html . it works for sample xml in tutorial . .. . Answer : Your xml or dtd is malformed - see the end of the error message : .. . .. . .. . A character or an element type is required in the declaration of element type LEWIS . The error mentions lewis.dtd - perhaps that is where the fault is . You have some options : .. . .. . 1 . Fix your dtd . 2 . Manually edit the xml file so it becomes well-formed . 3 . Filter the xml file before passing it to the parser - editing it on-the-fly to make it well formed . 4 . Use a different parser that is tolerant to malformed xml . Comment : thank you . I think problem is in lewis.dtd . but I dont have any knowledge from dtd files Comment : @HamidrezaSamadi - Surely you can find lineNumber : 2 columnNumber : 17 in the dtd and look at the declaration of type LEWIS There are many http : www.w3schools.com dtd dtd examples.asp examples out there .", "Question : I am working on an android client which reads continues stream of xml data from my java-server via a TCP socket . The server sends a n character as delimiter between consecutive responses . Below given is a model implementation. . .. . .. . Well I hope the structure is clear now . This response is transmitted from server zlib compressed . So I have to first inflate whatever I am reading from the server separate on response using delimiter and parse . And I am using SAX to parse my XML .. . .. . Now my main problem is the xml response coming from server can be very large can be in the range of 3 to 4 MB . So .. . .. . to separate responses based on delimiter n I have to use a stringBuilder to store response blocks as it reads from socket and on some phones StringBuilder cannot store strings in the MegaBytes range . It is giving OutOfMemory exception and from threads like this http : stackoverflow.com questions 4729188 android-convert-stream-to-string-without-running-out-of-memory I got to know keeping large strings even on a temporary basis is not such a good idea . Next I tried to pass the inflatorReadStream which in turn takes data from socket input stream as the input stream of SAX parser without bothering to separate xml myself and relying on SAX s ability to find the end of document based on tags . This time one response gets parsed successfully but then on finding the n delimiter SAX throws ExpatParserParseException saying junk after document element . After catching that ExpatParserParseException I tried to read again but after throwing exception SAX Parser closes the stream so when I try to read parse again it is giving IOException saying input stream is closed . A code snippet of what I have done is given below removed all unrelated try-catch blocks for clarity . And now my questions are .. . .. . 1 . Is there any way to make SAX Parser ignore junk characters after on xml response and not throw exception and close the stream. . .. . 2 . If not is there any way to avoid out-of-memory error on stringBuilder . To be frank I am not excepting a positive answer on this . Any workaround .. . Answer : If your SAX parser supports a push model where you push raw data chunks into it yourself and it fires events as it parses the raw data then you can simply push your own initial XML tag at the beginning of the SAX session . That will become the top-level document tag then you can push the responses as you receive them and they will be second-level tags as far as SAX is concerned . That way you can push multiple responses in the same SAX session and then in the OnTagOpen event or wheatever you are using you will know when a new response begins when you detect its tag name at level 1 . Comment : Well @Remy thanks for the reply you will know when a new response begins when you detect its tag name at level 1 In my case second response is not getting started after SAX completely parsed first response it throws an exception on second response because of the delimiter n in between two responses. . And also it close the stream. . Comment : That would only be true if you are parsing the responses as top-level documents . XML only supports 1 tag at level 0 . You cannot have multiple top-level tags . Hense my suggestion to push the responses to level 1 by wrapping them in a custom tag at level 0 . I use this technique when pushing streaming XML from TCP through a SAX parser and it works very well . Comment : You are still not getting it . A push-based SAX parser does not care about those issues at all It is designed to work with arbitrary chunks of any size and any portion of the total data . As arbitrary chunks are pushed into the parser the parser buffers what it needs internally and then fires events whenever finished tags exist in the buffer . You will receive events for each individual response datas and data tag that is pushed into the parser regardless of how many chunks it took to receive them from the stream.. . Comment : .. . and you don t have to worry about the line break at all because it falls between tags and is thus just whitespace that can be discarded . Comment : If there are multiple doctypes then you will have to strip them off manually before then pushing the rest of the data into the parser but only if the charset is always the same or if the parser allows you to change its active charset dynamically . Otherwise you would have to do your own buffering and only parse individual documents again with using a push parser at all .", "Question : I am writing a Java program to read and XML file actually an iTunes library which is XML plist format . I have managed to get round most obstacles that this format throws up except when it encounters text containing the . The XLM file represents this ampersand as 38 and I can only manage to read the text following the 38 in any particular section of text . Is there a way to disable detection of escape codes I am using SAXParser . .. . Answer : There is something fishy about what you are trying to do . If the file-format you are trying to parse contains bare ampersand characters then it is not well-formed XML . Ampersands are represented as character entities e.g . amp in well-formed XML . If it is really supposed to be real XML then there is a bug in whatever wrote generated the file . If it is not supposed to be real XML i.e . those ampersands are not a mistake then you probably shouldn t by trying to parse it using an XML parser . .. . .. . Ah I see . The XML is actually correctly encoded but you didn t get the SO markup right . It would appear that your real problem is that your characters .. . callback is being called separately for the text before the 38 for the decoded 38 and finally for the text after the 38 . You simply have to have to deal with this by joining the text chunks back together . The javadoc for ContentHandler.characters http : docs.oracle.com javase 1.5.0 docs api org xml sax ContentHandler.html characters 28char 5B 5D 20int 20int 29 says this : .. . .. . The Parser will call this method to report each chunk of character data . SAX parsers may return all contiguous character data in a single chunk or they may split it into several chunks .. . . Comment : The XLM file is in Apples XML plist format and the is represented by 38 Sorry I forgot to mention that in my message .", "Question : I am writing a Java program to read and XML file actually an iTunes library which is XML plist format . I have managed to get round most obstacles that this format throws up except when it encounters text containing the . The XLM file represents this ampersand as 38 and I can only manage to read the text following the 38 in any particular section of text . Is there a way to disable detection of escape codes I am using SAXParser . .. . Answer : Do you have an excerpt for us Is the file itunes-generated If so it sounds like a bug in iTunes to me that forgot to encode the ampersand correctly . I would not be surprised : they clearly didn t get XML in the first place their schema of name key name string value string must make the XML inventors puke . You might want to use a different more robust parser . SAX is great as long as the file is well-formed . I do however not know how robust dom4j and jdom are . Just give them a try . For python I know that I would recomment ElementTree or BeautifulSoup which are very robust . Also have a look at http : code.google.com p xmlwise which I found mentioned here in stackoverflow did you use search . Update : as per updated question You need to understand the role of entities in XML and thus SAX . They by default a separate nodes just like text nodes . So you will likely need to join them with adjacent text nodes to get the full value . Do you use a DTD in your parser Using a proper DTD - with entity definitions - can help parsing a lot as it can contain mappings from entities such as amp to the characters they represent and the parser may be able to do the merging for you . At least the python XML-pull parser I like to use for large-files does when materializing subtrees .", "Question : I am developing an application in which the first time I am going to parse data from an xml file coming from a remote-server . But i am not able to select which parser is efficient or best suited for parsing . As there are mainly three types of parsing which i know : .. . .. . 1 . SAX .. . 2 . XMLPullParsing .. . 3 . DOM .. . .. . Which is the best parser to parse data As I searched on Google and found the positive and negative both sides of the above parsers . But I was not able to determine which is the most efficient . The XML has heavy data with a number of tags . Please guide me and suggest me which parser I should use as I am using parsing in my application for first time . Comment : use sax or xmlpullparsing . Comment : if the file size is reasonable try dom . if it won t fit in core use sax . show us your schema and tell us what kind of stuff you are doing with the data Comment : Means sax if good then dom for heavy data but please tell me about xmlpullparser . The best among sax and xmlpull . .. . Answer : SAX Parsing is the Best one to implement than DOM . See the difference between these two in the following : .. . .. . DOM : .. . .. . The Nodes are in the form of Tree Structure . Memory : It Occupies more memory DOM is only preffered in the case of small XML documents . Slower at runtime . Stored as an objects . Programmatically easy to implement . Ease of navigation and use . SAX : .. . .. . Sequence of events . It doesn t use any memory preferred for large documents . Faster at runtime because of the above mentioned point . Objects are to be created . Need to write code for creating objects . In SAX Backward navigation is not possible as it sequentially processes the document . Comment : +1 . This is an excellent comparison . I would emphasize that SAX is more difficult to implement because you the programmer must step through the nodes . But it is faster uses less memory and is far better suited to large XML data sets or streaming XML data . Comment : Exactly friend . :", "Question : I am working on an android client which reads continues stream of xml data from my java-server via a TCP socket . The server sends a n character as delimiter between consecutive responses . Below given is a model implementation. . .. . .. . Well I hope the structure is clear now . This response is transmitted from server zlib compressed . So I have to first inflate whatever I am reading from the server separate on response using delimiter and parse . And I am using SAX to parse my XML .. . .. . Now my main problem is the xml response coming from server can be very large can be in the range of 3 to 4 MB . So .. . .. . to separate responses based on delimiter n I have to use a stringBuilder to store response blocks as it reads from socket and on some phones StringBuilder cannot store strings in the MegaBytes range . It is giving OutOfMemory exception and from threads like this http : stackoverflow.com questions 4729188 android-convert-stream-to-string-without-running-out-of-memory I got to know keeping large strings even on a temporary basis is not such a good idea . Next I tried to pass the inflatorReadStream which in turn takes data from socket input stream as the input stream of SAX parser without bothering to separate xml myself and relying on SAX s ability to find the end of document based on tags . This time one response gets parsed successfully but then on finding the n delimiter SAX throws ExpatParserParseException saying junk after document element . After catching that ExpatParserParseException I tried to read again but after throwing exception SAX Parser closes the stream so when I try to read parse again it is giving IOException saying input stream is closed . A code snippet of what I have done is given below removed all unrelated try-catch blocks for clarity . And now my questions are .. . .. . 1 . Is there any way to make SAX Parser ignore junk characters after on xml response and not throw exception and close the stream. . .. . 2 . If not is there any way to avoid out-of-memory error on stringBuilder . To be frank I am not excepting a positive answer on this . Any workaround .. . Answer : 1 . You might be able to use a wrapper around the reader or stream you pass to the filter that detects the newline and then closes the parser and launches a new parser that continues with the stream : your stream is NOT valid XML and you won t be able to parse it as you currently have implemented . Take a look at http : commons.apache.org io api-release org apache-commons-io input CloseShieldInputStream.html . 2 . No . Comment : Thanks @Femi for the response...CloseShieldInputStream looks promising..Let me fool around with it...Will get back to you. . Comment : Well @Femi CloseShieldInputStream did the trick for the moment..Now I am able to catch ExpatParserParseException ignore it and read again..So for the moment my code runs well. .", "Question : In an app I m developing I get an XML string that I have to parse in the app to properly store the data in the local database . The problem is that when a field in the XML has an ampersand like a trademark Pans Company e.g . the parser crashes with the next error : ParseException : undefined entity . How I can handle this situations easily with SAXParser This is driving me crazy I read a ton of solutions but any is useful for me . Comment : check this out xmlparser developer.android.com training basics network-ops xml.html http : developer.android.com training basics network-ops xml.html Comment : You can use u0026 instead of Comment : Ampersand must be quoted in XML as amp . Similarly should be lt . .. . Answer : You can t handle invalid XML with an XML parser - you have to deal with it at source . Find out who is generating this incorrect XML and get them to fix their code . An ampersand must be written as amp .", "Question : I created a Java application which opens an xml file that looks something like this : .. . .. . And I can open it using : .. . .. . Then I can simply create a node push the object into a ListArray then do what I want with the objects as I loop through the ListArray . Plain and simple Now only in Android I cannot simply read the file res xml data.xml because File requires a String not an integer id . This is where I am lost . Is there some way I can make File open the file or is this impossible without using SAXparser or XPP both of which I really cannot understand no matter how hard I try . If I am forced to use those methods can someone show me some simple code analogous to my example .. . Answer : If it s in the resource tree it ll get an ID assigned to it so you can open a stream to it with the openRawResource function : .. . .. . InputStream is context.getResources .openRawResource R.xml.data .. . .. . As for working with XML in Android this link on ibm.com http : www.ibm.com developerworks opensource library x-android is incredibly thorough . See Listing 9 . DOM-based implementation of feed parser in that link . Once you have the input stream above you can pass it to an instance of DocumentBuilder : .. . .. . Keep in mind I haven t done this personally -- I m assuming the code provided by IBM works . Comment : I don t get it Do i then change is to a string and put that into File The IBM resource you left shows how to pull xml from online just fine . I don t understand why this is so hard Can you create a pseudo code version of what I posted above Thanks . Comment : @jeremy : updated answer Comment : That s better and I saw that on the IBM site but getInputStream is in the BaseFeedParser class which implements the FeedParser class which is not listed on the IBM site . I created the BaseFeedParser class in my code but eclipse is throwing an error at me about FeedParser . Comment : that site says : However DOM generally consumes more memory as everything is read into memory first . This can be a problem on mobile-devices that run Android but it can be satisfactory in certain use cases where the size of the XML document will never be very large . One might imply that the developers of Android guessed that SAX parsing would be much more common on Android applications hence the extra utilities provided for it . This is very bad . my XML is goind to have about 100 objects . The DOM method added 50 lines-of-code to my project this is too impractical . Comment : Are you using XML for local-storage of data I d recommend SQLite in that case . It s native to the stack .", "Question : I am developing an application in which the first time I am going to parse data from an xml file coming from a remote-server . But i am not able to select which parser is efficient or best suited for parsing . As there are mainly three types of parsing which i know : .. . .. . 1 . SAX .. . 2 . XMLPullParsing .. . 3 . DOM .. . .. . Which is the best parser to parse data As I searched on Google and found the positive and negative both sides of the above parsers . But I was not able to determine which is the most efficient . The XML has heavy data with a number of tags . Please guide me and suggest me which parser I should use as I am using parsing in my application for first time . Comment : use sax or xmlpullparsing . Comment : if the file size is reasonable try dom . if it won t fit in core use sax . show us your schema and tell us what kind of stuff you are doing with the data Comment : Means sax if good then dom for heavy data but please tell me about xmlpullparser . The best among sax and xmlpull . .. . Answer : In all the XML parser s Sax parser is the fastest one so you can go for it with no doubt ....If you need to read and write the data from an XML you can go for DOM . Using the SAX parser you will be only be able to read the data from the XML . Since these two are in the top of the list you no need to think of the XMLPullparser . Comment : sorry but SAX parser has issue with self close tag tag do you have any solution to solve that", "Question : I am developing an application in which the first time I am going to parse data from an xml file coming from a remote-server . But i am not able to select which parser is efficient or best suited for parsing . As there are mainly three types of parsing which i know : .. . .. . 1 . SAX .. . 2 . XMLPullParsing .. . 3 . DOM .. . .. . Which is the best parser to parse data As I searched on Google and found the positive and negative both sides of the above parsers . But I was not able to determine which is the most efficient . The XML has heavy data with a number of tags . Please guide me and suggest me which parser I should use as I am using parsing in my application for first time . Comment : use sax or xmlpullparsing . Comment : if the file size is reasonable try dom . if it won t fit in core use sax . show us your schema and tell us what kind of stuff you are doing with the data Comment : Means sax if good then dom for heavy data but please tell me about xmlpullparser . The best among sax and xmlpull . .. . Answer : I would say XMLPullParsing but i have heard great things lately about Xerces http : xerces.apache.org might want to look into that one as well . However never used Xerces and XMLPullParser has never failed me . We build a color blind app that used it and it pulls thousands of color combo s in order to tell you what color you just took a picture of . update : heres a few links to read if you dont mind reading : p shows cons and perks to both sides .. . .. . http : www.firstobject.com xml-reader-sax-vs-xml-pull-parser.htm .. . .. . Also another answer to maybe read into SAX parser vs XMLPull parser http : stackoverflow.com questions 5808105 sax-parser-vs-xmlpull-parser", "Question : I am developing an application in which the first time I am going to parse data from an xml file coming from a remote-server . But i am not able to select which parser is efficient or best suited for parsing . As there are mainly three types of parsing which i know : .. . .. . 1 . SAX .. . 2 . XMLPullParsing .. . 3 . DOM .. . .. . Which is the best parser to parse data As I searched on Google and found the positive and negative both sides of the above parsers . But I was not able to determine which is the most efficient . The XML has heavy data with a number of tags . Please guide me and suggest me which parser I should use as I am using parsing in my application for first time . Comment : use sax or xmlpullparsing . Comment : if the file size is reasonable try dom . if it won t fit in core use sax . show us your schema and tell us what kind of stuff you are doing with the data Comment : Means sax if good then dom for heavy data but please tell me about xmlpullparser . The best among sax and xmlpull . .. . Answer : I think the XMLPullParser would be a good option as they have mentioned in Android documentation http : developer.android.com training basics network-ops xml.html .", "Question : I am writing an XML parser in C++ using libxml library which requires me to validate the XML against a DTD which is specified inline . I don t want to use system in my program . Otherwise I could have used the xmllint command . I came across the xmlValidateDtd xmlValidCtxtPtr ctxt xmlDocPtr doc xmlDtdPtr dtd function specified in the http : xmlsoft.org API page . But I feel it is DOM based function since in SAX parsing there is no xmlDocPtr . Are there are any other methods to validate the XML document against the inline DTD Comment : Your question confuses me . You re writing an XML parser using a library that already performs XML parsing In what sense then are you writing a parser Comment : You are right . The library parses the XML and calls the registered functions based on events . Handling the elements attributes etc . according the specific XML needs to be taken care inside the registered functions . Defining these functions is what I meant by writing an XML parser . .. . Answer : Usually you simply provide the XML PARSE DTDVALID http : xmlsoft.org html libxml-parser.html xmlParserOption parser option so the document will be validated when parsed . If the document has already been parsed without validation you can use xmlValidateDocument http : xmlsoft.org html libxml-valid.html xmlValidateDocument : .. . .. . Try to validate the document instance basically it does the all the checks described by the XML Rec i.e . validates the internal and external subset if present and validate the document tree . .. . ctxt : the validation context .. . doc : a document instance .. . Returns : 1 if valid or 0 otherwise Comment : thanks nwellnhof . I used xmlTextReaderIsValid xmlTextReaderPtr reader function .", "Question : I have to read a XML file with about 4000 lines on Android . First I tried the SimpleXML library http : simple.sourceforge.net because it s the easiest and it took about 2 minutes on my HTC Desire . So I thought maybe SimpleXML is so slow because of reflection and all the other magic that this library uses . I rewrote my parser and used the built-in DOM parsing method with some special attention for performance . That helped a bit but it still took about 60 seconds which is still totally unacceptable . After a bit of research I found this article on developer.com http : www.developer.com ws article.php 10927 3824221 2 Android-XML-Parser-Performance.htm . There are some graphs that show that the other two available methods - the SAX parser and Android s XML Pull-Parser - are equally slow . And at the end of the article you ll find the following statement : .. . .. . The first surprise I had was at how slow all three methods were . Users don t want to wait long for results on mobile-phones so parsing anything more than a few dozen records may mandate a different method . What might be a different method What to do if you have more than a few dozen records Comment : What is the use-case with this large XML Do you have to read everything at once Comment : I don t have to read the whole file at once . But it makes things easier . Is there no other solution for the performance issue 4000 lines doesn t seem too big for me .. . or at least it shouldn t be too big Comment : On Android there are performance issues using annotations . Recent releases on Simple 2.6.6 have resolved these issues . If you upgrade the library you use then you could see improvements of the order of 10 times . Comment : The fastest XML parsing lib is vtd-xml. . here is a latest paper to prove it sdiwc.net digital-library web-admin upload-pdf 00000466.pdf .. . Answer : Using the SAX parser I can parse a 15 000-line XML file in around 10 seconds on my HTC Desire . I suspect there is some other issue involved . Are you populating a database from the XML If so are you remembering to wrap your entire parse operation in a DB transaction That alone can speed things up by an order of magnitude . Comment : thanks Graham but there is no database involved . I just read every tag once make some string comparisons and create some objects . That s it . Can t believe that the SAX parser is that much faster . But I ll give it a try .", "Question : I have to read a XML file with about 4000 lines on Android . First I tried the SimpleXML library http : simple.sourceforge.net because it s the easiest and it took about 2 minutes on my HTC Desire . So I thought maybe SimpleXML is so slow because of reflection and all the other magic that this library uses . I rewrote my parser and used the built-in DOM parsing method with some special attention for performance . That helped a bit but it still took about 60 seconds which is still totally unacceptable . After a bit of research I found this article on developer.com http : www.developer.com ws article.php 10927 3824221 2 Android-XML-Parser-Performance.htm . There are some graphs that show that the other two available methods - the SAX parser and Android s XML Pull-Parser - are equally slow . And at the end of the article you ll find the following statement : .. . .. . The first surprise I had was at how slow all three methods were . Users don t want to wait long for results on mobile-phones so parsing anything more than a few dozen records may mandate a different method . What might be a different method What to do if you have more than a few dozen records Comment : What is the use-case with this large XML Do you have to read everything at once Comment : I don t have to read the whole file at once . But it makes things easier . Is there no other solution for the performance issue 4000 lines doesn t seem too big for me .. . or at least it shouldn t be too big Comment : On Android there are performance issues using annotations . Recent releases on Simple 2.6.6 have resolved these issues . If you upgrade the library you use then you could see improvements of the order of 10 times . Comment : The fastest XML parsing lib is vtd-xml. . here is a latest paper to prove it sdiwc.net digital-library web-admin upload-pdf 00000466.pdf .. . Answer : Original answer in 2012 .. . .. . note : make sure you read the 2016 update below I just did some perf testing comparing parsers on Android and other platforms . The XML file being parsed is only 500 lines or so its a Twitter search Atom feed but Pull and DOM parsing can churn through about 5 such documents a second on a Samsung Galaxy S2 or Motorola Xoom2 . SimpleXML pink in the chart as used by the OP ties for slowest with DOM parsing . SAX Parsing is an order of magnitude faster on both of my Android devices managing 40 docs sec single-threaded and 65+ sec multi-threaded . Android 2.3.4 : .. . .. . performance comparison of xml-parsing methods on Android https : lh4.googleusercontent.com -C2SlEV0j5Pw T5ewdm3-6kI AAAAAAAAJGk VTG93SCMQxs s800 xml-parsing-perf-compared.png .. . .. . The code https : github.com steveliles dsl4xml-perf is available in github and a discussion here http : steveliles.github.com comparing java xml-parsing mechanisms for android.html . Update 18th March 2016 .. . .. . OK so its been almost 4 years and the world has moved on . I finally got around to re-running the tests on : .. . .. . 1 . A Samsung Galaxy S3 running Android 4.1.2 .. . 2 . A Nexus7 2012 running Android 4.4.4 .. . 3 . A Nexus5 running Android 6.0.1 .. . .. . Somewhere between Android 4.4.4 and Android 6.0.1 the situation changed drastically and we have a new winner : Pull Parsing FTW at more than twice the throughput of SAX . Unfortunately I don t know exactly when this change arrived as I don t have any devices running Android 4.4.4 and 6.0.1 . Android 4.1.2 : .. . .. . performance comparison of xml-parsing methods on Android 4.1.2 http : steveliles.github.io images Android-4.1.2-XML-parsing.png .. . .. . Android 4.4.4 : .. . .. . performance comparison of xml-parsing methods on Android 4.4.4 http : steveliles.github.io images Android-4.4.4-XML-parsing.png .. . .. . Android 6.0.1 : .. . .. . performance comparison of xml-parsing methods on Android 6.0.1 http : steveliles.github.io images Android-6.0.1-XML-parsing.png Comment : Hi Steve thanks for putting together this comparison any chance you could point us to some guide on how to install or reuse the tests you made I m very familiar with android Eclipse and Ant but I have little experience with maven Comment : If you just want to run the tests on an Android device you can download the pre-built apk from github https : github.com steveliles dsl4xml-perf-android downloads . If you want to tweak the tests its a bit more work but there aren t many depenencies so you could easily enough re-jig the eclipse classpath and not need maven . Comment : thanks I ll try that Comment : Thanks for the test Stevie . What Android version have you used for the test Do you have any idea of why Pull parser is so slow in android It s seems that has to be a bug at some place because I expected similar SAX performance . It can be a bug in XmlPullParser prior to ICs android-developers.blogspot.com.es 2011 12 http : android-developers.blogspot.com.es 2011 12 watch-out-for-xmlpullparsernexttext.html Comment : @lujop At the time I was testing on 2.3.4 - I haven t tried re-running on newer versions . If I find some time I ll re-test on the same device running ICS and post the results .", "Question : I am writing a Java program to read and XML file actually an iTunes library which is XML plist format . I have managed to get round most obstacles that this format throws up except when it encounters text containing the . The XLM file represents this ampersand as 38 and I can only manage to read the text following the 38 in any particular section of text . Is there a way to disable detection of escape codes I am using SAXParser . .. . Answer : I am parsing the below string using SAXParser", "Question : I have to read a XML file with about 4000 lines on Android . First I tried the SimpleXML library http : simple.sourceforge.net because it s the easiest and it took about 2 minutes on my HTC Desire . So I thought maybe SimpleXML is so slow because of reflection and all the other magic that this library uses . I rewrote my parser and used the built-in DOM parsing method with some special attention for performance . That helped a bit but it still took about 60 seconds which is still totally unacceptable . After a bit of research I found this article on developer.com http : www.developer.com ws article.php 10927 3824221 2 Android-XML-Parser-Performance.htm . There are some graphs that show that the other two available methods - the SAX parser and Android s XML Pull-Parser - are equally slow . And at the end of the article you ll find the following statement : .. . .. . The first surprise I had was at how slow all three methods were . Users don t want to wait long for results on mobile-phones so parsing anything more than a few dozen records may mandate a different method . What might be a different method What to do if you have more than a few dozen records Comment : What is the use-case with this large XML Do you have to read everything at once Comment : I don t have to read the whole file at once . But it makes things easier . Is there no other solution for the performance issue 4000 lines doesn t seem too big for me .. . or at least it shouldn t be too big Comment : On Android there are performance issues using annotations . Recent releases on Simple 2.6.6 have resolved these issues . If you upgrade the library you use then you could see improvements of the order of 10 times . Comment : The fastest XML parsing lib is vtd-xml. . here is a latest paper to prove it sdiwc.net digital-library web-admin upload-pdf 00000466.pdf .. . Answer : I think the best way to work with XML on Android is use VDT-XML library http : vtd-xml.sourceforge.net .. . .. . My XML file contains more then 60 000 lines and VDT-XML handles it as following : .. . .. . Nexus 5 : 2055 millisec .. . .. . Galaxy Note 4 : 2498 milisec .. . .. . You can find more benchmark reports by link : VTD-XML Benchmark http : vtd-xml.sourceforge.net benchmark1.html .. . .. . Short example of XML file .. . .. . Configuration of build.gradle file .. . .. . Source code example : .. . .. . Result .. . .. . it works for me and hope it helps you . Comment : The benchmarks on desktop are really impressive It would be really great to see a comparison between say vtd-xml sax and pull parsing on Android . Without that its hard to understand the true benefit to Android apps - benchmarks taken on desktops don t necessarily reflect the reality of parsing on a device .", "Question : I have to read a XML file with about 4000 lines on Android . First I tried the SimpleXML library http : simple.sourceforge.net because it s the easiest and it took about 2 minutes on my HTC Desire . So I thought maybe SimpleXML is so slow because of reflection and all the other magic that this library uses . I rewrote my parser and used the built-in DOM parsing method with some special attention for performance . That helped a bit but it still took about 60 seconds which is still totally unacceptable . After a bit of research I found this article on developer.com http : www.developer.com ws article.php 10927 3824221 2 Android-XML-Parser-Performance.htm . There are some graphs that show that the other two available methods - the SAX parser and Android s XML Pull-Parser - are equally slow . And at the end of the article you ll find the following statement : .. . .. . The first surprise I had was at how slow all three methods were . Users don t want to wait long for results on mobile-phones so parsing anything more than a few dozen records may mandate a different method . What might be a different method What to do if you have more than a few dozen records Comment : What is the use-case with this large XML Do you have to read everything at once Comment : I don t have to read the whole file at once . But it makes things easier . Is there no other solution for the performance issue 4000 lines doesn t seem too big for me .. . or at least it shouldn t be too big Comment : On Android there are performance issues using annotations . Recent releases on Simple 2.6.6 have resolved these issues . If you upgrade the library you use then you could see improvements of the order of 10 times . Comment : The fastest XML parsing lib is vtd-xml. . here is a latest paper to prove it sdiwc.net digital-library web-admin upload-pdf 00000466.pdf .. . Answer : we re using the pull-parser very effectively for 1MB XML Files - and they are read in about 10-20 Seconds on my Desire . So if your code is okay the speed will be as well . It s obvious that DOM is very slow on a limited memory environment but pull or SAX really aren t" ] }
[ "yes-answer-long", "yes-answer-short" ]
xml
UNK_RELATION
testr@unit-testing@31
testr -- testr is a requirejs @placeholder module with both stubbed and script-loaded dependencies compatible with all test frameworks - mocha jasmine qunit buster js etc .
{ "confidence": [ 53.41401290893555, 50.555999755859375, 47.407108306884766, 45.60663986206055, 41.341407775878906, 40.76519775390625, 40.76519775390625, 39.515071868896484, 39.1713981628418, 37.643959045410156, 36.83051300048828, 35.618282318115234, 35.618282318115234, 28.95676040649414, 28.940122604370117, 27.681873321533203, 26.46578025817871, 23.95282745361328, 23.290386199951172, 18.778284072875977, 18.10438346862793, 16.898033142089844, 16.62735939025879, 16.62735939025879, 16.010177612304688, 16.002470016479492, 15.160747528076172, 12.89831256866455, 12.89831256866455, 12.89831256866455, 12.89831256866455, 12.89831256866455, 11.161026000976562, 11.161026000976562, 11.161026000976562, 11.161026000976562, 11.161026000976562, 11.161026000976562, 11.161026000976562, 11.161026000976562 ], "content": [ "I am using Jasmine 2.0 for tests requirejs for AMD compliance and testr to mock some of my modules in my tests .", "Everything works Karama Jasmine Underscore Backbone testr as evidenced by the UnitTestUnitTest passing .", "But simple testr statements always fail .", "Currently each unit test has a testr configuration with its own whitelist .", "Here s the karma section of my gruntfile .. . .. . Here s a sample test that fails .. . .. . Note that the testr config is per unit test .", "This bad resolution is what makes me suspect it is testr that is fishy .", "can you please post your require and testr configuration", "Without having your application s source it is difficult to follow what s happening and to know whether it s specific to something in your application or to the Karma+Jasmine+Testr combo .", ".. . .. . The basic UnitTestUnitTest works .. . .. . However in my other real unit test it fails on the testr line : .. . .. . AccountSummaryCollection CLASS testr models sales-rep AccountSummaryCollection .. . .. . I m certain i m including my dependency of models sales-rep AccountSummaryCollection correctly in my config I see it hosted and getting loaded by require.js deps", "I have updated with the karma config the spec runner which includes the require.config a sample test that fails and the testr config within that test .", "There s a good example here https : groups.google.com forum searchin jasmine-js requirejs 7Csort 3adate jasmine-js SgjHOUoFG58 HdGG8UwRiZsJ .", "I heard there s a bug with testr 1.3.x I dropped to 1.2 and that led to a slew of new errors.Moving on to Ruby + JSCover .", "You need specific versions of libs to get it to work right : .. . .. . testr 1.0.2 NOT 1.0.3", "It seems that there are a number of posts grappling with Jasmine 1.3 and Requirejs but I m having trouble with 2.0 .", "It fails at this line : AccountSummaryUnitCollection line 27 : AccountSummaryCollection CLASS testr models sales-rep AccountSummaryCollection .. . .. . Here s the spec runner javascript basically copied from the docs with some extra logging .", "Plus this test WORKS in plain in the browser jasmine .. . .. .", "now i want to run that file using testr or nosetest so that all the test case present in that file get executed. . example contents in sampletest.txt file .. . .. . tempest.api.identity.admin.test users : UsersTestJSON.test create user with enabled .. . .. . tempest.api.identity.admin.test roles : RolesTestJSON.test role create delete .. . .. . tempest.api.identity.admin.test roles : RolesTestJSON.test get role by id .. . .. . tempest.api.identity.admin.test roles : RolesTestJSON.test remove user role .. . .. . now i want to execute this sampletest.txt file so that all the testcase get executed.. . if i am executing this file nosetests -vx sampletest.txt i am getting error", "Essentially the problem is that jasmine attaches itself to window.onload .", ".. . .. . However the big problem is it claims our application module is not loaded even though it is .", "I have a test.html page set up : .. . .. . I also have a test.js file which is the entry-point : .. . .. . I know for previous Jasmine versions you d have to call jasmine.getEnv .execute but it doesn t seem to be the case with 2.0 .", ".. . .. . I also tried to manually include the file using the karma config but requirejs does not like that since it s a conflicting define function .", "i have created one sampletest.txt file in tempest folder and written tempest test case location in that file .", "Do you have a small failing test case", "Additioanlly to make sure to delay the test execution .", "Try to use tilt and cat the file Eg : .. . .. . Please make sure to configure your etc tempest.conf are as below .. . .. . If still you are getting any errors please post your error logs .", "I did not have luck with the waitSeconds that just increases the test duration .", "I ve tried using require myModuleToBeTested function .. . unit test here .. . and it also fails .", "When I open the page however it s blank with nothing in the console .", "You can see the project in full at https : github.com nopwd client if that s more helpful .", "Now since require has been called window.onload is already used and so the handlers never get called .", "The answer I found is to call window.onload manually inside the entry-point for me : test.js .", "You can also refer my post : http : naggappan.wordpress.com 2014 10 15 configure-and-execute-tempest-in-openstack-environment", "I also tried to wrap the whole AccountSummaryUnitTest.js inside of require AccountSummaryCollection function . This produces a new error where inside a dependency AccountSummary.js the error Backbone is not defined is thrown .", "That makes no sense in the context because obviously the AccountSummaryCollection has already resolved Backbone.Collection .", "Below : serving actually means Requested by Client and the dependency file is my own trace to confirm they are added to the deps list in the karma-spec-runner.js .", "enter image description here http : i.stack.imgur.com NSlkd.png", "otherwise is quite hard to help you", "Backbone 1.0.0 not 1.1.2 for some reason .. . underscore 1.6 .. . require-2.1.11 production for some reason we had 2.1.2 .. . .. . Then I had to include : true for underscore and backbone in the Karma config .", "Then the shim works with require 2.1.11 without the mismatched anonymous define error .", "The key part of the require config :" ] }
{ "confidence": [ 78.78373718261719, 68.19197845458984, 49.4040412902832 ], "content": [ "Question : Everything works Karama Jasmine Underscore Backbone testr as evidenced by the UnitTestUnitTest passing . But simple testr statements always fail . .. . .. . The basic UnitTestUnitTest works .. . .. . However in my other real unit test it fails on the testr line : .. . .. . AccountSummaryCollection CLASS testr models sales-rep AccountSummaryCollection .. . .. . I m certain i m including my dependency of models sales-rep AccountSummaryCollection correctly in my config I see it hosted and getting loaded by require.js deps .. . .. . However the big problem is it claims our application module is not loaded even though it is . I also tried to wrap the whole AccountSummaryUnitTest.js inside of require AccountSummaryCollection function . This produces a new error where inside a dependency AccountSummary.js the error Backbone is not defined is thrown . That makes no sense in the context because obviously the AccountSummaryCollection has already resolved Backbone.Collection . This bad resolution is what makes me suspect it is testr that is fishy . .. . .. . I also tried to manually include the file using the karma config but requirejs does not like that since it s a conflicting define function . Below : serving actually means Requested by Client and the dependency file is my own trace to confirm they are added to the deps list in the karma-spec-runner.js . It fails at this line : AccountSummaryUnitCollection line 27 : AccountSummaryCollection CLASS testr models sales-rep AccountSummaryCollection .. . .. . Here s the spec runner javascript basically copied from the docs with some extra logging . Here s the karma section of my gruntfile .. . .. . Here s a sample test that fails .. . .. . Note that the testr config is per unit test . Plus this test WORKS in plain in the browser jasmine .. . .. . enter image description here http : i.stack.imgur.com NSlkd.png Comment : I ve tried using require myModuleToBeTested function .. . unit test here .. . and it also fails . Comment : Do you have a small failing test case Without having your application s source it is difficult to follow what s happening and to know whether it s specific to something in your application or to the Karma+Jasmine+Testr combo . Comment : can you please post your require and testr configuration otherwise is quite hard to help you Comment : I have updated with the karma config the spec runner which includes the require.config a sample test that fails and the testr config within that test . Currently each unit test has a testr configuration with its own whitelist . Comment : I heard there s a bug with testr 1.3.x I dropped to 1.2 and that led to a slew of new errors.Moving on to Ruby + JSCover . .. . Answer : You need specific versions of libs to get it to work right : .. . .. . testr 1.0.2 NOT 1.0.3 Backbone 1.0.0 not 1.1.2 for some reason .. . underscore 1.6 .. . require-2.1.11 production for some reason we had 2.1.2 .. . .. . Then I had to include : true for underscore and backbone in the Karma config . Then the shim works with require 2.1.11 without the mismatched anonymous define error . Additioanlly to make sure to delay the test execution . I did not have luck with the waitSeconds that just increases the test duration . The key part of the require config :", "Question : It seems that there are a number of posts grappling with Jasmine 1.3 and Requirejs but I m having trouble with 2.0 . I am using Jasmine 2.0 for tests requirejs for AMD compliance and testr to mock some of my modules in my tests . When I open the page however it s blank with nothing in the console . You can see the project in full at https : github.com nopwd client if that s more helpful . I have a test.html page set up : .. . .. . I also have a test.js file which is the entry-point : .. . .. . I know for previous Jasmine versions you d have to call jasmine.getEnv .execute but it doesn t seem to be the case with 2.0 . .. . Answer : Essentially the problem is that jasmine attaches itself to window.onload . Now since require has been called window.onload is already used and so the handlers never get called . The answer I found is to call window.onload manually inside the entry-point for me : test.js . There s a good example here https : groups.google.com forum searchin jasmine-js requirejs 7Csort 3adate jasmine-js SgjHOUoFG58 HdGG8UwRiZsJ .", "Question : i have created one sampletest.txt file in tempest folder and written tempest test case location in that file . now i want to run that file using testr or nosetest so that all the test case present in that file get executed. . example contents in sampletest.txt file .. . .. . tempest.api.identity.admin.test users : UsersTestJSON.test create user with enabled .. . .. . tempest.api.identity.admin.test roles : RolesTestJSON.test role create delete .. . .. . tempest.api.identity.admin.test roles : RolesTestJSON.test get role by id .. . .. . tempest.api.identity.admin.test roles : RolesTestJSON.test remove user role .. . .. . now i want to execute this sampletest.txt file so that all the testcase get executed.. . if i am executing this file nosetests -vx sampletest.txt i am getting error .. . Answer : Try to use tilt and cat the file Eg : .. . .. . Please make sure to configure your etc tempest.conf are as below .. . .. . If still you are getting any errors please post your error logs . You can also refer my post : http : naggappan.wordpress.com 2014 10 15 configure-and-execute-tempest-in-openstack-environment" ] }
[ "yes-answer-long", "yes-answer-short" ]
unit-testing
UNK_RELATION
tegra@gpu@186
tegra -- tegra is a family of systems-on-chip soc for mobile-devices designed and sold to device manufacturers by nvidia including one or more arm cpu cores a specially-designed nvidia @placeholder among other components .
{ "confidence": [ 62.644805908203125, 62.63038635253906, 60.525978088378906, 59.21033477783203, 58.261566162109375, 57.47023010253906, 52.68852233886719, 52.59931945800781, 50.70024871826172, 50.51477813720703, 50.37715530395508, 50.14800262451172, 49.57085037231445, 49.10591125488281, 48.69449234008789, 47.04613494873047, 47.04070281982422, 47.04070281982422, 47.04070281982422, 46.000823974609375, 44.33240509033203, 44.03450012207031, 42.867366790771484, 42.380714416503906, 42.159366607666016, 41.551815032958984, 41.2835807800293, 41.20472717285156, 41.18958282470703, 40.38896179199219, 40.377994537353516, 39.9686393737793, 39.87092208862305, 39.87092208862305, 39.87092208862305, 38.56920623779297, 38.56920623779297, 38.56920623779297, 38.56920623779297, 38.56920623779297, 38.04849624633789, 37.41007995605469, 37.09593963623047, 37.055362701416016, 36.15713119506836, 35.998809814453125, 35.998809814453125, 35.744285583496094, 35.68547821044922, 35.59627914428711, 35.58216094970703, 35.40157699584961, 35.40157699584961, 35.11681365966797, 34.74927520751953, 34.68386459350586, 34.61464309692383, 34.482322692871094, 34.43262481689453, 34.43262481689453, 34.357479095458984, 34.304443359375, 34.304443359375, 34.304443359375, 34.28133773803711, 34.25183868408203, 33.7218017578125, 33.53824234008789, 33.311248779296875, 33.246673583984375, 33.12470245361328, 32.989501953125, 32.78858184814453, 32.78858184814453, 32.78858184814453, 32.78858184814453, 32.598052978515625, 32.011627197265625, 31.60043716430664, 31.56603240966797, 31.56603240966797, 31.500919342041016, 31.500919342041016, 31.500919342041016, 31.494701385498047, 31.364200592041016, 31.262794494628906, 31.141244888305664, 31.134796142578125, 31.134796142578125, 31.134796142578125, 31.134796142578125, 31.134796142578125, 31.134796142578125, 31.134796142578125, 30.185977935791016, 30.177223205566406, 30.177223205566406, 30.113019943237305, 30.113019943237305 ], "content": [ "Very handy : .. . .. . Nsight Tegra Visual Studio plugin : https : developer.nvidia.com nvidia-nsight-tegra .. . .. . NVIDIA also has a CPU and GPU profiler .", "You could try nVidia nSight Tegra https : developer.nvidia.com nvidia-nsight-tegra .", "This seems to be a limitation of the Nvidia Tegra GPU .", "I m totally new in Nvidia Tegra world .", "To learn about Tegra development and download the Tegra Android Development Kit see the NVIDIA developer zone for mobile http : developer.nvidia.com category zone mobile-development .", "Has anybody tried any device like a mobile or tablet that is compatible with Nvidia Tegra profiler", "Do you know if this mobile is profileable with Nvidia Tegra profiler : asus.com Tablets Mobile ASUS Transformer Pad TF701T http : www.asus.com Tablets Mobile ASUS Transformer Pad TF701T specifications", "I have read that the NVidia Tegra profiler is very powerfull but there is not much info about the devices that support it .", "So I ve downloaded the NVidia Tegra Android Development Pack to find the bottleneck .", "I am looking for L1 access latency and L2 access latency for SoCs made from ARM Cortex-A9 processors such as Nvidia Tegra 2 and Tegra 3 which have multiple ARM A9 processors .", "I found nothing about this by link and in 46 answer sound like I don t know http : www.qnx.com news web seminars faq multicore.html .. . .. . But QNX thinks to Include Support for NVIDIA Tegra Processor Family : http : www.qnx.com news pr 5306 1.html .. . .. . And nVidia thinks to add support CUDA and OpenCL to the nVidia Tegra5 Logan ARM+GK1xx in next year : http : en.wikipedia.org wiki Tegra Logan .. . .. . http : www.ubergizmo.com 2013 07 nvidia-tegra-5-release-date-specs-news .. . .. . And then can we use CUDA on nVidia Tegra5 ARM+GK1xx on QNX ARM and what about QNX x86", "In Android non-rooted is there any API or way to detect at runtime an Android CPU and specially TEGRA devices", "Update : There are now tegra devices that support CUDA including the widely available Tegra TK1 and recently announced TX1 .", "However Nvidia is already trying to bring people to using CUDA with Tegras at the moment you can use a Tegra 3 plus a Nvidia PCIe graphic card .", "I can find no reference in which NVIDIA specifically claims 380 GFLOPS for the GPU portion of the Tegra K1 .", "3D Profiler : PerfHUD ES https : developer.nvidia.com nvidia-perfhud-es .. . CPU Profiler : Tegra Profiler https : developer.nvidia.com tegra-profiler .. . Developer pack : https : developer.nvidia.com tegra-android-development-pack .. . .. . Anyway the tools are free so check them out", "I have also found these : .. . .. . nVidia Tegra Android Development Pack which is kind of Eclipse .", "@talonmies And can I develop programs for Tegra such as the Android with OpenGL ES API in Eclipse+NVIDIA Debug Manager", "See similar question answers here : .. . .. . CUDA support for NVIDIA Tegra 4 processors", "http : stackoverflow.com questions 14292609 cuda-support-for-nvidia-tegra-4-processors 16091968 16091968 .. . cuda support on tegra2 chip http : stackoverflow.com questions 6352478 cuda-support-on-tegra2-chip .. . .. . .. . .. . As pointed out correctly Tegra 2 3 4 do not support CUDA .", "Does OpenCv for Tegra devices supplied with Linux 4 Tegra make use of NPP and OpenVX underneath", "However Nvidia boasts at least 380 GFLOPS http : www.anandtech.com show 8234 arms-mali-midgard-architecture-explored 8 for the Tegra K1 .", "The Tegra 2 3 4 shader-cores are not CUDA capable .", "I work at NVIDIA in the Tegra team and work with a lot of Android developers - especially Android game developers who often use Windows on their dev machines .", "you can get a tegra note tablet : nvidia.com object evga-tegra-note-tablet.html http : www.nvidia.com object evga-tegra-note-tablet.html", "Tegra K1 is though .", "We are also running this program on a nVidia Tegra TK1 if that makes a difference .. . .. . I checked usr include and found both opencv and opencv2", "OpenCV4Tegra uses the tegra gpu functionality in the CPU version of the functions afair", "I know that it needs Tegra 4 and that for example this device supports it : http : shield.nvidia.com .", "It may be that nVidia supports RenderScript just for the CPU side .", "Anyone care to post their device name OpenGL version and a list of extensions Tegra 3 devices only please", "I ve managed to convert my textures from PNG to DXT and run the game on Galaxy Tab 10.1 with Nvidia Tegra 2 chipset .", "For tegra-specific code you will need to get your hands on a proper Tegra development repository .", "Are you using Tegra Android Development Pack https : developer.nvidia.com tegra-android-development-pack", "Current Tegra processors Tegra 1 2 and 3 do not support the CUDA platform .", "Tegra K1 is nothing like the GPUs embedded in supercomputers .", "Does Tegra K1 support RenderScript on GPU", "Using Nsight Tegra you can develop and debug", "No Tegra 1 2 don t support CUDA .", "But how can I use Tegra GPU OpenCL", "Even though texture lookups in the vertex-shader are in theory part of OpenGL ES 2.0 according to Nvidia the number of vertex-shader texture units GL MAX VERTEX TEXTURE IMAGE UNITS for Tegra is 0 PDF : OpenGL ES 2.0 Development for the Tegra Platform http : developer.download.nvidia.com assets mobile files tegra gles2 development.pdf .", "My first question is are there more pack like the nVidia or the Motorola one", "Can I develop applications on CUDA processor Tegra 1 2 what do I need for this and what Tegra 1 2 CUDA-capability", "Its clearly mentioned that Tegra TX1 has a shared-memory .", "2 Or if Javacv is not Tegra 2 compatible at all and no hope is there", "OpenCV uses code-snippets like if tegra is available call special TEGRA function else perform the open-source openCV standard code", "Tegra 2 dev guide http : developer.download.nvidia.com tegra docs tegra gles2 development.pdf mentions that the maximum number of vertex texture units on tegra2 is 0 .", "Tested on 2 different Nvidia Shield devices crashes on both .", "Didn t do too much mobile programming lately kind of stopped at Tegra 3 .", "I wonder what new OpenGL ES extensions are on the new Tegra 3 devices", "The game is running at 60FPS on many devices except one for the moment : A Wiko Highway 4G A powerful smartphone with a Tegra 4i processor .", "I previously installed the Tegra Development Pack and it was all working flawlessly .", "I am attempting to compile a C++ library for a Tegra TK1 .", "The supported operating systems for CUDA are listed on the cuda download page https : developer.nvidia.com cuda-downloads as well as in section 1.4 of the release notes http : developer.download.nvidia.com compute cuda 5 5 rel docs CUDA Toolkit Release Notes.pdf .. . .. . Regarding Tegra at this time there are no Tegra devices that support CUDA .", "Further investigation in Mr . PID 7847 murder case has lead me to the facts that it is not the code that is at fault but in my Galaxy Tab chipset is NVIDIA TEGRA 2 and this is reason my app is not working .", "Then I downloaded and installed Tegra Android Development Pack Windows and Mac from from http : developer.nvidia.com tegra-android-development-pack .", "I was able to reproduce the error on a Tegra 3 GPU .", "@GeunMoLee there are rumours of OpenCL support coming to the NVIDIA JETSON TK1 including this article : nvidia.com.mx content PDF tegra white papers http : www.nvidia.com.mx content PDF tegra white papers Tegra-K1-whitepaper-v1.0.pdf There are also opencl .so files for the K1 .", "Unless you have an NDA with nVidia that is .", "Nvidia board detects the PCI express .", "That seems profileable for sure as it is mentioned in Tegra profiler page but I read that the camera and other features are no so good .", "I m trying to use the newest Nsight Tegra 3.0 to create my APK .", "But you should check check which functions are using tegra at all.. .", "@kusma Actually I believe Tegra 4 is supposed to be CUDA capable .", "4 What Should I do to run it on Tegra 2 chipset devices like Galaxy P7500 10.1 Android Tab", "There is no claim in there of 380 GFLOPS by NVIDIA or anyone else .", "There are a few Development boards supporting that .. . .. . Nvidia Jetson : http : www.nvidia.com object jetson-automotive-developement-platform.html Nvidia Kayla Toradex Apalis : http : www.toradex.com products apalis-arm-computer-modules apalis-t30", "The ARM host might be RISC but I m not sure if you can call the NVIDIA K1 either RISC or CISC .", "I wrote a blog post about it here http : arnon.dk ive-managed-to-compile-ghc-7-8-3-on-an-nvidia-tegra-jetson-k1 which is more verbose but here s a summarized rundown of what I did : .. . .. . 1 .", "Again these values can be investigated using Nsight which displays all the useful info about available CUDA devices but such info can be found for example in case of GK110 chip even on NVIDIA pages in related document http : www.nvidia.com content PDF kepler NVIDIA-Kepler-GK110-Architecture-Whitepaper.pdf .", "After a number of days of googling and messing around with nVidia CodeWorks for Android 1R4 https : developer.nvidia.com codeworks-android and Visual Studio 2012 I was getting no-where with regards to writing CUDA code for my Tegra K1 powered Android device Project Tango .", "As far as I have it only the Tegra K1 has Noveau at this moment .", "Furthermore the GPU in a Tegra TX1 like all CUDA capable GPUs has CUDA shared-memory .", "My question is : in case of Tegra TX1 if we follow this procedure is it going to create duplication of the data on DRAM", "I m developing an app for the android galaxy-tab 10.1 which has the Tegra 250 T20 .", "Here s the question : Does the Tegra 250 T20 support the execution flow instructions at all", "thanks we ve reproduced this and filed a bug with NVIDIA", "I am trying to run a statically linked hello world program on an ubuntu tegra ARM board but a function within libc seems to be giving a segmentation-fault .", "Both the Eclipse IDE and ADT plugins are updated regularly so bugs are quickly squashed and new features are introduced .. . Eclipse has a huge user base so it is quite easy to find answers .. . Branded or customized IDE tends to fall behind in terms of bug fixes and such .. . .. . If you are doing generic android development you should go for a clean Eclipse IDE my subjective preference or if you are doing Tegra only development it is probably wise to go for nVidia Tegra Android Development Pack .", "The one for the the Tegra 2 and 3 is called Grate or something but that is not really my problem at the moment .", "I have a problem with one of my kernel modules for Linux 4 tegra on the Jetson tk1 .", "I m trying to use NVidia CodeWorks with Visual Studio .", "OpenCV4Tegra is CUDA enabled and so is nVidia Jetson TK1", "There was probably an Android update in the meantime on my Nvidia Shield .", "I m trying to decode a video from h264 and reencode it to transfer to a client trhough udp : .. . .. . On the transmitter side : .. . .. . On the receiver side : .. . .. . I do it locally for a test on an NVidia Tegra TK1 but nothing is being displayed although no error is being raised .", "NVIDIA s technical brief for Tegra K1 http : developer.download.nvidia.com embedded jetson TK1 docs Jetson platform brief May2014.pdf states : Tegra K1 with the Kepler GPU architecture is a parallel processor capable of over 300 GFLOPS of 32-bit floating-point computations .", "The nvidia doc table you linked specifically calls out multiply-add as one of the FP32 operations .", "In my case there were two dependencies I missed : modules gpu src nvidia modules gpu src nvidia core ...and there were references to nonfree in other parts .", "I want to find the hardware codec codec of tegra 3 in android-source code 4.1 .", "Does anyone can help point out where to find the tegra 3 hardware codec code", "I didn t have a backup so I decided that the easiest option would be to uninstall the Tegra Development Pack and reinstall it .", "How many resident warps are present per SM in GK20a GPU tegra k1", "I am trying to interface Point Grey Bumblebee2 stero camera with the nvida tegra tk1 using PCI express .", "I m going to use libopencv4tegra with ROS on Tegra TK1 and I do this following this : .. . .. . http : wiki.ros.org NvidiaJetsonTK1 .", "As part of our work we created a plugin for Visual Studio 2010 and Visual Studio 2012 called Nsight Tegra .", "I would guess Nvidia might be doing this .", "Best I can determine the Tegra K1 GPU delivers a theoretical throughput of 327.2 single-precision GFLOPS and 13.6 double-precision GFLOPS .", "Neigher the Tegra vertex nor fragment shader units supports dynamic control-flow you need loops to be possible to unroll at compile-time .", "Recently I Started studying OpenCL and the NVIDIA JETSON TK1 .", "In conclusion NVIDIA JETSON TK1 board do not support OpenCL" ] }
{ "confidence": [ 102.61306762695312, 87.51670837402344, 83.4930191040039, 81.5976791381836, 79.08374786376953, 77.77999114990234, 77.36223602294922, 72.49220275878906, 69.88331604003906, 67.71240234375, 66.42001342773438, 66.3841323852539, 64.8187484741211, 63.5174446105957, 63.253326416015625, 61.19767761230469, 60.68888473510742, 60.13378143310547, 59.72913360595703, 59.35535430908203 ], "content": [ "Question : Can I use nVidia CUDA on QNX x86-64 or other and what driver do I need for this I found nothing about this by link and in 46 answer sound like I don t know http : www.qnx.com news web seminars faq multicore.html .. . .. . But QNX thinks to Include Support for NVIDIA Tegra Processor Family : http : www.qnx.com news pr 5306 1.html .. . .. . And nVidia thinks to add support CUDA and OpenCL to the nVidia Tegra5 Logan ARM+GK1xx in next year : http : en.wikipedia.org wiki Tegra Logan .. . .. . http : www.ubergizmo.com 2013 07 nvidia-tegra-5-release-date-specs-news .. . .. . And then can we use CUDA on nVidia Tegra5 ARM+GK1xx on QNX ARM and what about QNX x86 Comment : I m pretty sure QNX isn t Linux . In Linux nvidia hardware is supported through a binary blob that you download and install . .. . Answer : At this time there s no support for CUDA on QNX . The supported operating systems for CUDA are listed on the cuda download page https : developer.nvidia.com cuda-downloads as well as in section 1.4 of the release notes http : developer.download.nvidia.com compute cuda 5 5 rel docs CUDA Toolkit Release Notes.pdf .. . .. . Regarding Tegra at this time there are no Tegra devices that support CUDA . The list of CUDA-enabled GPUs is here https : developer.nvidia.com cuda-gpus . Whether using an x86 x86-64 CPU or an ARM CPU one of these CUDA GPUs is required for CUDA support . Update : There are now tegra devices that support CUDA including the widely available Tegra TK1 and recently announced TX1 .", "Question : Can I develop applications on CUDA processor Tegra 1 2 what do I need for this and what Tegra 1 2 CUDA-capability I found only NVIDIA Debug Manager for development in Eclipse for Android but I do not know if he can develop a CUDA-style . Comment : No Tegra 1 2 don t support CUDA . Comment : But how can I use Tegra GPU OpenCL Comment : No no OpenCL either . I think OpenGL ES is the only API supported on that hardware . Comment : @talonmies you should post that as an answer Otherwise this just shows up as unanswered.. . Comment : @talonmies And can I develop programs for Tegra such as the Android with OpenGL ES API in Eclipse+NVIDIA Debug Manager .. . Answer : See similar question answers here : .. . .. . CUDA support for NVIDIA Tegra 4 processors http : stackoverflow.com questions 14292609 cuda-support-for-nvidia-tegra-4-processors 16091968 16091968 .. . cuda support on tegra2 chip http : stackoverflow.com questions 6352478 cuda-support-on-tegra2-chip .. . .. . .. . .. . As pointed out correctly Tegra 2 3 4 do not support CUDA . Logan will be the first one supporting CUDA and OpenCL . However Nvidia is already trying to bring people to using CUDA with Tegras at the moment you can use a Tegra 3 plus a Nvidia PCIe graphic card . There are a few Development boards supporting that .. . .. . Nvidia Jetson : http : www.nvidia.com object jetson-automotive-developement-platform.html Nvidia Kayla Toradex Apalis : http : www.toradex.com products apalis-arm-computer-modules apalis-t30 Comment : Do you know about how this kit works nvidia.com object seco-dev-kit.html http : www.nvidia.com object seco-dev-kit.html it runs on Tegra 3 and contains a CUDA Tool Kit", "Question : I am profiling a JNI Android Application . So far I managed to profile it with Android-NDK-profiler http : code.google.com p android-ndk-profiler . It is very simple so I want to go further and get info of the hardware too like cache misses bus speed etc . I have read that the NVidia Tegra profiler is very powerfull but there is not much info about the devices that support it . I know that it needs Tegra 4 and that for example this device supports it : http : shield.nvidia.com . The problem is thta it has no camara integrated so it is not valid for me . Has anybody tried any device like a mobile or tablet that is compatible with Nvidia Tegra profiler Comment : you can get a tegra note tablet : nvidia.com object evga-tegra-note-tablet.html http : www.nvidia.com object evga-tegra-note-tablet.html Comment : That seems profileable for sure as it is mentioned in Tegra profiler page but I read that the camera and other features are no so good . Do you know if this mobile is profileable with Nvidia Tegra profiler : asus.com Tablets Mobile ASUS Transformer Pad TF701T http : www.asus.com Tablets Mobile ASUS Transformer Pad TF701T specifications .. . Answer : normally any Tegra4 and K1 based device should work but I would recommend the Shield Note from Nvidia for your work not only are they quit cheap but their android is left very much vanilla aside from some stylus things on the note which makes it easier to work with . There is also the advantage so far of a usable update policy .", "Question : Does Tegra K1 support RenderScript on GPU I used Mipad and wrote a sample RS kernel and ran it but the cpu-usage can reach 95 on average . Kernel like this : .. . .. . The allocation s flag like this : RS ALLOCATION USAGE SHARED RS ALLOCATION USAGE SCRIPT .. . .. . Official pdf said Tegra K1 GPU support RS i don t know where i am wrong . Thanks .. . Answer : Did you check the GPU utilization You could try nVidia nSight Tegra https : developer.nvidia.com nvidia-nsight-tegra . The high CPU utilization is per core or per processor If per processor this might indicate that RS has parallelized the task among cores . Are you using Tegra Android Development Pack https : developer.nvidia.com tegra-android-development-pack It may be that nVidia supports RenderScript just for the CPU side . Since K1 has a CUDA based GPU the logic for putting any type of code on the GPU may not be implemented . GPU may be used in kernels that do image-processing stuff like here http : android-developers.blogspot.com 2012 01 levels-in-renderscript.html . Comment : Thank you for your reply i am using Tegra Android Development Pack official said K1 GPU supports CUDA RenderScript OpenCL OpenGL so i try to use it . Thanks anyway : Comment : Sure . However if they say that K1 GPU supports render script that does not necessarily mean that you can launch any kernel type on it . It could only be limited to image-processing kernels where you allocate memory in the texture vertex space .", "Question : null .. . Answer : How do you get the maximal number of float operations in flops from a GPU For instance on a GK20A GPU embedded in Tegra K1 which can go up to 852 Mhz and has 192 cuda cores each of them can do only one basic fp operation per cycle - if I read the specs http : docs.nvidia.com cuda cuda-c-programming-guide index.html arithmetic-instructions throughput-native-arithmetic-instructions correctly and can go up to 852 Mhz my first guess was basically : 852 192 163 GFLOPS . However Nvidia boasts at least 380 GFLOPS http : www.anandtech.com show 8234 arms-mali-midgard-architecture-explored 8 for the Tegra K1 . What am I missing Comment : Each CUDA core can execute one IEEE-754 2008 single-precision FMA fused multiply-add instruction per cycle . Each FMA counts as two FP operations one multiply plus one add . Comment : I can find no reference in which NVIDIA specifically claims 380 GFLOPS for the GPU portion of the Tegra K1 . That number you quote from a third party may combine the GPU and CPU floating-point throughput . NVIDIA s technical brief for Tegra K1 http : developer.download.nvidia.com embedded jetson TK1 docs Jetson platform brief May2014.pdf states : Tegra K1 with the Kepler GPU architecture is a parallel processor capable of over 300 GFLOPS of 32-bit floating-point computations . Comment : Since this question is a general hardware question which is considered off-topic on SO I am voting to close it . Comment : The nvidia doc table you linked specifically calls out multiply-add as one of the FP32 operations . You re also not reading the anandtech article correctly . There is no claim in there of 380 GFLOPS by NVIDIA or anyone else . Comment : Best I can determine the Tegra K1 GPU delivers a theoretical throughput of 327.2 single-precision GFLOPS and 13.6 double-precision GFLOPS .", "Question : I am more comfortable with Visual Studio with C so I hope to get an IDE that is convenient . During my search for free android development IDE apart from the usual Eclipse IntelliJ netbeans . I have also found these : .. . .. . nVidia Tegra Android Development Pack which is kind of Eclipse . Setting up an Android development-environment can be a complex and frustrating experience . NVIDIA simplifies this for all Android developers with a single installer that manages this complexity for you . Motorola MOTODEV which is also Eclipse . Based on Eclipse MOTODEV Studio lets developers who are new to Android get started quickly and helps experienced developers get the job done even faster .. . .. . It s like I am exactly their targeting demographics . My first question is are there more pack like the nVidia or the Motorola one My second question is should I setup Eclipse as instructed by Google s developer page or should I use the nVidia pack or the Motorola thing . Or that I should use IntelliJ or netbeans .. . Answer : I came across this thread while searching for some Eclipse links on Goog . I realize it s pretty old but in case others are looking for Android development IDE s I thought I d post . I work at NVIDIA in the Tegra team and work with a lot of Android developers - especially Android game developers who often use Windows on their dev machines . As part of our work we created a plugin for Visual Studio 2010 and Visual Studio 2012 called Nsight Tegra . Using Nsight Tegra you can develop and debug Java and native C++ Android applications from the comfort of VS . Very handy : .. . .. . Nsight Tegra Visual Studio plugin : https : developer.nvidia.com nvidia-nsight-tegra .. . .. . NVIDIA also has a CPU and GPU profiler . The GPU profiler is especially handy for Android game developers wanting to understand the bottlenecks in their 3D pipeline or to try out different performance optimizations . 3D Profiler : PerfHUD ES https : developer.nvidia.com nvidia-perfhud-es .. . CPU Profiler : Tegra Profiler https : developer.nvidia.com tegra-profiler .. . Developer pack : https : developer.nvidia.com tegra-android-development-pack .. . .. . Anyway the tools are free so check them out", "Question : Can I develop applications on CUDA processor Tegra 1 2 what do I need for this and what Tegra 1 2 CUDA-capability I found only NVIDIA Debug Manager for development in Eclipse for Android but I do not know if he can develop a CUDA-style . Comment : No Tegra 1 2 don t support CUDA . Comment : But how can I use Tegra GPU OpenCL Comment : No no OpenCL either . I think OpenGL ES is the only API supported on that hardware . Comment : @talonmies you should post that as an answer Otherwise this just shows up as unanswered.. . Comment : @talonmies And can I develop programs for Tegra such as the Android with OpenGL ES API in Eclipse+NVIDIA Debug Manager .. . Answer : Current Tegra processors Tegra 1 2 and 3 do not support the CUDA platform . To learn about Tegra development and download the Tegra Android Development Kit see the NVIDIA developer zone for mobile http : developer.nvidia.com category zone mobile-development .", "Question : I wonder what new OpenGL ES extensions are on the new Tegra 3 devices Anyone care to post their device name OpenGL version and a list of extensions Tegra 3 devices only please I think other developers could use that too . On Android you can do : .. . .. . Also is there any real chance that the value of GL MAX VERTEX TEXTURE IMAGE UNITS would be nonzero .. . Answer : Asus Eee PAD Transformer Prime TF201 .. . .. . extensions : .. . .. . GL MAX VERTEX TEXTURE IMAGE UNITS is 0 as expected : .. . .. . What is interesting compared to the extensions reported by Glbenchmark these are missing : .. . .. . not that interesting it was replaced by an EXT version but there are some new extensions : .. . .. . Just grabbed the device from colleague s desk and quickly read the extension string didn t have a chance to get OpenGL version should be OpenGL ES 2.0 and renderer should be NVIDIA Tegra 3 . Comment : GL MAX VERTEX TEXTURE IMAGE UNITS is 0 as expected : Sad face indeed :", "Question : I am looking for L1 access latency and L2 access latency for SoCs made from ARM Cortex-A9 processors such as Nvidia Tegra 2 and Tegra 3 which have multiple ARM A9 processors . I could find some information about the L1 and L2 size of those architectures but I could not much information about the L1 and L2 access latency . The only reliable information I found is that L2 cache latency is 2 cycles faster on Tegra 3 than 2 while L1 cache latencies haven t changed . Here http : forum.canardpc.com showpost.php p 3295102 postcount 491 is mentioned that L2 on Tegra 2 has a latency of 25 cycles and here http : www.sisoftware.net d qa f xolo is mentioned that L1 has a latency of 4 cycles and L2 has a latency of 31 to 55 cycles . None of these references are fully reliable . I was hoping to find more info on Nvidia TI and Qualcomm websites and technical documents but no success . EDIT : information on similar SoCs like OMAP4460 and OMAP4470 would be great too . Comment : May I ask why do you need this Comment : to do some cache performance comparison on SoCs that use ARM-A9 processors . The cache for A9 can be architected in different ways so you ll end up systems with very different performance and energy consumption . I need to have these cache numbers so I could speculate A9 performance for some applications . Comment : L1 is tightly coupled with A9 L2 is generally L2C-310 . What do you mean by architected in different ways They have a few settings for ram latencies or they can have different sizes . Cache latencies in general is not trivial . See the titles under here infocenter.arm.com help topic com.arm.doc.ddi0246h http : infocenter.arm.com help topic com.arm.doc.ddi0246h BABIECJB.html Comment : I found some numbers on p . 28 here http : wenku.baidu.com view eae3f1fbfab069dc5022018b.htm which compare UP vs MPCORE with and without L2C-310 . That doc suggests L1 latency should be 1 cycle I m not sure L2 numbers are marginally less than what you noted . But as auselen has noted there are settings that affect L2 . Comment : @JohnTortugo Not much more info apart from the info that you can find on the links in this post . .. . Answer : For an authoritative answer you can try running lmbench http : sourceforge.net projects lmbench HowTo http : processors.wiki.ti.com index.php Lmbench on the target of your choice . A set of results for AM37x variant of TI OMAP3 family is available here http : processors.wiki.ti.com index.php LMBench on ARM Microprocessors Memory Latency for reference . Also checkout this presentation http : www.ruhr-uni-bochum.de integriertesysteme emuco files System Level Benchmarking Analysis of the Cortex A9 MPCore.pdf that describes the latency and bandwidth of various caches configurations on an ARM Cortex A9 MP system .", "Question : To clarify can this RISC base processor the Tegra K1 be used without significant changes to today s supercomputer programs and perhaps be a game changer because if it s power size cost and energy usage I know it s going up against some x64 or x86 processors . Can the code used for current supercomputers be easily converted to code that will run well on these Mobile chips Thanks . Comment : The ARM host might be RISC but I m not sure if you can call the NVIDIA K1 either RISC or CISC . .. . Answer : Can the code used for current supercomputers be easily converted to code that will run well on these Mobile chips It depends what you call supercomputers code . Usually supercomputers run high-level functional code usually fully compiled code like C++ sometimes VMs-dependent code like Java on top of other low-lewel code and technologies such as OpenCL or CUDA for accelerators or MPICH for communication between nodes . All these technologies have ARM implementations so the real thing is to make the functional code is ARM-compatible . This is usually straightforward as code written in high level language is mostly hardware-independent . So the short answer is : yes . However what may be more complicated is to scale this code to these new processors . Tegra K1 is nothing like the GPUs embedded in supercomputers . It has far less memory runs slightly slower and has only 192 cores . Its price and power consumption make it possible however to build supercomputers with hundreds of them inside . So code which have been written for traditionnal supercomputers a few high-performance GPUs enbedded will not reach the peak performance of new supercomputers built with a lot of cheap and weak GPUs . There will be a price to pay to existing code on these new architectures .", "Question : I wonder what new OpenGL ES extensions are on the new Tegra 3 devices Anyone care to post their device name OpenGL version and a list of extensions Tegra 3 devices only please I think other developers could use that too . On Android you can do : .. . .. . Also is there any real chance that the value of GL MAX VERTEX TEXTURE IMAGE UNITS would be nonzero .. . Answer : Glbenchmark http : glbenchmark.com phonedetails.jsp benchmark glpro21 D Asus 20Eee 20Pad 20Transformer 20Prime 20TF201 testgroup gl has a list of extensions . Tegra 2 dev guide http : developer.download.nvidia.com tegra docs tegra gles2 development.pdf mentions that the maximum number of vertex texture units on tegra2 is 0 . Tegra3 is AFAIK not a massive redesign GPU-wise it is simply bolting on 4 extra CUDA cores for fragment processing so I would say that the number of texture units is the same on tegra3 . Comment : thanks for the Glbenchmark link but as for the extensions i think it still makes sense for the people to post their extensions i believe there may be some slight differences between the devices firmware versions . Comment : The Tegra 2 3 4 shader-cores are not CUDA capable . Comment : @kusma Actually I believe Tegra 4 is supposed to be CUDA capable . Isn t it Comment : @theswine : Nope . Tegra K1 is though . Comment : @kusma Oh I see . I thought they were the same . Didn t do too much mobile programming lately kind of stopped at Tegra 3 .", "Question : I m trying to decode a video from h264 and reencode it to transfer to a client trhough udp : .. . .. . On the transmitter side : .. . .. . On the receiver side : .. . .. . I do it locally for a test on an NVidia Tegra TK1 but nothing is being displayed although no error is being raised . Does anybody see something to add Thanks in advance . Comment : Does that work on your full PC Honestly though being an interesting piece of hardware the tegra is an embedded device and unless you heavily optimize your software the poor thing usually won t be the favourite thing to do compute-intense loads . If you optimize you might be able to do things that you would otherwise need a lot more Watt space but it s not like you should develop algorithms on the embeddded device -- you typically do the testing and development on a PC with a proper GPU which would be much faster and then slim down your application until it runs on the Tegra . .. . Answer : Ok I finally made it work but using an other network protocol : .. . .. . Just for testing send and receive locally on the Tegra TK1 itself : .. . .. . Send : .. . .. . Receive : .. . .. . Result is choppy but I don t care at this stage . I receive something Receive on Ubuntu PC :", "Question : I am more comfortable with Visual Studio with C so I hope to get an IDE that is convenient . During my search for free android development IDE apart from the usual Eclipse IntelliJ netbeans . I have also found these : .. . .. . nVidia Tegra Android Development Pack which is kind of Eclipse . Setting up an Android development-environment can be a complex and frustrating experience . NVIDIA simplifies this for all Android developers with a single installer that manages this complexity for you . Motorola MOTODEV which is also Eclipse . Based on Eclipse MOTODEV Studio lets developers who are new to Android get started quickly and helps experienced developers get the job done even faster .. . .. . It s like I am exactly their targeting demographics . My first question is are there more pack like the nVidia or the Motorola one My second question is should I setup Eclipse as instructed by Google s developer page or should I use the nVidia pack or the Motorola thing . Or that I should use IntelliJ or netbeans .. . Answer : This is a very subjective question and it will yield many subjective answers . But here is mine : .. . .. . I find that using Eclipse with ADT plugins is very convenient . Both the Eclipse IDE and ADT plugins are updated regularly so bugs are quickly squashed and new features are introduced .. . Eclipse has a huge user base so it is quite easy to find answers .. . Branded or customized IDE tends to fall behind in terms of bug fixes and such .. . .. . If you are doing generic android development you should go for a clean Eclipse IDE my subjective preference or if you are doing Tegra only development it is probably wise to go for nVidia Tegra Android Development Pack .", "Question : null .. . Answer : I m working on a small game using OpenGL ES2 on Android . The game is running at 60FPS on many devices except one for the moment : A Wiko Highway 4G A powerful smartphone with a Tegra 4i processor . So I ve downloaded the NVidia Tegra Android Development Pack to find the bottleneck . The tools show me that my game take something like 40 on the processor so I don t understand why the framerate was so low 20-25 FPS . With some tests I saw that I ve got 20FPS . I ve tried with a smaller scene one box without texture or effects : same results . Finally after two days I ve got a little idea but I don t understand how I can fix it : When objects are far the framerate is ok when there are near the camera the framerate slow down . So I think there is something with number of pixels draw on the screen his resolution is 1920 1080 . Where the problem should come from I ve already lost three days on this problem : .. . .. . I m using : .. . .. . Android NDK R10D .. . OpenGL ES2 .. . A custom engine .. . I ve tried on the following devices : Nexus 4 ARM iPad 2 PowerVR Nexus 7 ARM iPhone 6 PowerVR Samsung Galaxy S2 And the Wiko highway 4G the only one with a slow framerate and the most recent device I think Comment : Do you see similar behavior from other games and benchmarks on this device e.g . is play.google.com store apps https : play.google.com store apps details id com.epicgames.EpicCitadel hl en slow Comment : Yes I ve tried here is the results : Ultra high Quality - Average FPS : 26 9 Resolution : 1920 1080 Comment : Have you tried using systrace to identify where the time is being spent Might need a rooted-device to enable some of the more useful tags unfortunately . developer.android.com tools debugging systrace.html http : developer.android.com tools debugging systrace.html", "Question : In Android non-rooted is there any API or way to detect at runtime an Android CPU and specially TEGRA devices Thanks .. . Answer : On any Android device CPU information can can be gleaned by reading proc cpuinfo programmatically as shown here http : www.roman10.net how-to-get-cpu-information-on-android and here http : stackoverflow.com a 19557326 319204 . Parse the value of the hardware tag listed in proc cpuinfo to determine the device . The value is usually the codename of the Android device . With a given codename value of the hardware tag lists like this http : en.wikipedia.org wiki List of devices supported by CyanogenMod will help you determine the Android device .", "Question : null .. . Answer : I m a graduate student from Korea . Recently I Started studying OpenCL and the NVIDIA JETSON TK1 . The NVIDIA JETSON K1 can run CUDA programs so here is my question : I would like to execute OpenCL kernels on the NVIDIA JETSON but compiling a simple example gives me an error message CL cl.h header no such file or directory . So how should I proceed to compile and execute OpenCL kernel on the NVIDIA JETSON TK1 Comment : Did you install the CUDA SDK When compiling did you add the OpenCL headers to your include path Comment : When install the CUDA SDK in board supported OpenCL in JETSON TK1 Comment : Actually I just checked NVIDIA does not support OpenCL on Jetson TK1 sorry . You ll have to fall back to CUDA . Comment : In conclusion NVIDIA JETSON TK1 board do not support OpenCL So To used this board I ll studying CUDA Language right Comment : @GeunMoLee there are rumours of OpenCL support coming to the NVIDIA JETSON TK1 including this article : nvidia.com.mx content PDF tegra white papers http : www.nvidia.com.mx content PDF tegra white papers Tegra-K1-whitepaper-v1.0.pdf There are also opencl .so files for the K1 . as for the missing headers you would need to add them manually .", "Question : I m trying to use NVidia CodeWorks with Visual Studio . I m totally new in Nvidia Tegra world . I have installed latest Visual Studio 2015 Professional trial and CodeWorksforAndroid-1R3-windows . When I m trying to create new project Android Application Nsight Tegra - I m getting this error : .. . .. . enter image description here http : i.stack.imgur.com 174RM.png .. . .. . It reminds mi some Visual Studio addon errors I had before but I have no idea what to do . Guys can you help me with that .. . Answer : That s due to the fact that Visual C++ component is not installed on your machine - please run the VS IDE installer switch to the Custom setup and install the Visual C++ . Nsight Tegra VS Edition does require the Visual C++ VS IDE component to be installed on the developer s machine . See the msdev http : msdev.developer-works.com article 29437711 Upgrading+from+Visual+Studio+2015+RC+to+Visual+Studio+2015+failed for the details .", "Question : How many resident warps are present per SM in GK20a GPU tegra k1 As per documents I got following information In tegra k1 there is 1 SMX and 192 cores multiprocessor .. . .. . Maximum number of threads per multiprocessor : 2048 Maximum number of threads per block : 1024 Can any one specify value of maximun blocks per SMX Is 32 4 128 no of threads in warp no of warp AS kepler allowing four warps to be issued and executed concurrently threads running concurrently if NO How many number of threads run concurrently Kindly help me to solve and understand it . .. . Answer : Each block deployed for execution to SM requires certain resources either registers or shared-memory . Let s imagine following situation : .. . .. . each thread from certain kernel is using 64 32b registers 256B register memory .. . kernel is launched with blocks of size 1024 threads .. . obviously such block would consume 256 1024B of registers on particular SM .. . .. . I don t know about tegra but in case of card which I am using now GK110 chip every SM has 65536 of 32-bit registers 256kB available therefore in following scenario all of the registers would got used by single block deployed to this SM so limit of blocks per SM would be 1 in this case.. . Example with shared-memory works the same way in kernel launch parameters you can define amount of shared-memory used by each block launched so if you would set it to 32kB then two blocks could be deployed to SM in case of 64kB shared-memory size . Worth mentioning is that as of now I believe only blocks from same kernel can be deployed to one SM at the same time . I am not sure at the moment whether there is some other blocking factor than registers or shared-memory but obviously if blocking factor for registers is 1 and for shared-memory is 2 then the lower number is the limit for number of blocks per SM . As for your second question how much threads can run concurrently the answer is - as many as there are cores in one SM so in case of SMX and Kepler architecture it is 192 . Number of concurrent warps is obviously 192 32 . If you are interested in this stuff I advise you to use nsight profiling tool where you can inspect all kernel launches and their blocking factors and many more useful info . EDIT : Reading Robert Crovella s answer I realized there really are these limits for blocks per SM and threads per SM but I was never able to reach them as my kernels typically were using too much registers or shared-memory . Again these values can be investigated using Nsight which displays all the useful info about available CUDA devices but such info can be found for example in case of GK110 chip even on NVIDIA pages in related document http : www.nvidia.com content PDF kepler NVIDIA-Kepler-GK110-Architecture-Whitepaper.pdf . Comment : The CUDA core count is the number of single precision integer thread operations that can be issued per cycle . NVIDIA GPUs also have special function units double precision units load store units branch units etc . that can be issued to so the core count should only be discussed with respect to a subset of the instructions . See the Fermi Kepler and Maxwell architecture whitepapers for additional details . Comment : Copied over from GK110 whitepaper : SMX : 192 singleprecision CUDA cores 64 doubleprecision units 32 special funct ion units SFU and 32 load store units LD ST -- therefore I believe that core is core and special instruction unit is something else which simply regular SP core utilizes during its computation . Or are my assumptions incorrect Comment : A CUDA core is a math ALU pipeline . It is not a core . On each cycle a CC3.0-5.0 warp scheduler picks a warp and can issue instructions two pipelines where the pipelines are int sp CUDA core double precision unit special function unit load store unit branch unit .. .", "Question : I want to find the hardware codec codec of tegra 3 in android-source code 4.1 . In the source code I found .. . .. . So the android OS will load libstagefrighthw.so when need to encode decode video with hardware . Since tegre 3 support h.264 hareware codec link http : www.nvidia.com object tegra-3-processor.html I want to find the code in the android OS . But I only find qcom and TI s code . Does anyone can help point out where to find the tegra 3 hardware codec code Comment : It s almost certainly shipped as a blob - a binary only library . Unless you have an NDA with nVidia that is . Comment : @Marko thanks for your comment . Sorry that I didn t describe my question well . I just want to know where is the makefile that builds the libstagefrighthw.so . For example for omap3 platform the Android.mk is located in androidOS Android4.1 hardware ti omap3 libstagefrighthw . Comment : Well I wrote an example according to Acodec.cpp in androidOS Android4.1 frameworks av media libstraight . It can work but the decoding has a high latency about 2 4 seconds for 640x480 resolution . .. . Answer : The libstagefrighthw library is simply glue code that patches vendor proprietary media framework with libstagefright framework within Android . This approach is used to implement hardware specific custom codecs https : source.android.com devices media.html . The qcom ti code you see is the one that got sync-ed into the mainline Android repository quite sometime back . For tegra-specific code you will need to get your hands on a proper Tegra development repository . This http : nv-tegra.nvidia.com gitweb maybe .. . .. . You may also want to checkout the Tegra3 libstagefrighthw https : github.com CyanogenMod android device htc tegra3-common tree cm-10.2 libstagefrighthw code within the CM 10.2 repo .", "Question : To clarify can this RISC base processor the Tegra K1 be used without significant changes to today s supercomputer programs and perhaps be a game changer because if it s power size cost and energy usage I know it s going up against some x64 or x86 processors . Can the code used for current supercomputers be easily converted to code that will run well on these Mobile chips Thanks . Comment : The ARM host might be RISC but I m not sure if you can call the NVIDIA K1 either RISC or CISC . .. . Answer : The question is should it Intel keeps proving that ARM is inferior and the only factor speaking for using RISC base processors is their price which I highly doubt is a concern when building super computer . Comment : Your response is fraught with invalid assumptions . You don t appear to have a good grasp of the RISC vs . CISC debate . And price is absolutely a concern when building a supercomputer . The only part you got right is that Intel makes superior processors to ARM ." ] }
[ "yes-answer-long", "yes-answer-short" ]
gpu
UNK_RELATION
card.io -- questions related with integration of @placeholder library or implementation in whatever whether it is android or iphone should be tagged here .
{ "confidence": [ 36.44976806640625, 36.32425308227539, 35.51130676269531, 35.24684524536133, 34.089454650878906, 33.95464324951172, 33.76145553588867, 33.522064208984375, 33.227622985839844, 33.227622985839844, 32.892330169677734, 32.73945999145508, 32.17265319824219, 32.04713439941406, 32.01963806152344, 31.794885635375977, 31.66644287109375, 31.23419189453125, 30.770185470581055, 30.664825439453125, 30.26906967163086, 29.818416595458984, 29.659799575805664, 29.584449768066406, 29.584449768066406, 29.584449768066406, 29.584449768066406, 29.090282440185547, 29.090282440185547, 29.07913589477539, 29.050853729248047, 28.95050811767578, 28.95050811767578, 28.95050811767578, 28.853656768798828, 28.61521339416504, 28.33844757080078, 28.326004028320312, 28.207386016845703, 27.978302001953125, 27.978302001953125, 27.978302001953125, 27.750011444091797, 27.605388641357422, 27.605388641357422, 27.5396785736084, 27.389326095581055, 27.375965118408203, 27.375965118408203, 27.021650314331055, 27.021650314331055, 27.021650314331055, 27.021650314331055, 27.021650314331055, 26.49306869506836, 26.49306869506836, 26.376306533813477, 25.99034881591797, 25.874401092529297, 25.874401092529297, 25.814830780029297, 25.814830780029297, 25.814830780029297, 25.814830780029297, 25.814830780029297, 25.714096069335938, 25.415504455566406, 25.415504455566406, 25.415504455566406, 25.415504455566406, 25.415504455566406, 25.323110580444336, 25.323110580444336, 25.307331085205078, 25.307331085205078, 25.307331085205078, 25.307331085205078, 25.307331085205078, 25.307331085205078, 25.307331085205078, 25.307331085205078, 25.307331085205078, 25.307331085205078, 24.866840362548828, 24.847501754760742, 24.830078125, 24.515911102294922, 24.490739822387695, 24.325387954711914, 24.183900833129883, 24.183900833129883, 24.183900833129883 ], "content": [ "Android https : github.com card-io card.io-Android-source common dmz https : github.com card-io card.io-dmz .", "Dave from card.io here .", "Is there any lightweight version of the card.io android sdk", "In my android app i am using card.io library for scanning cards .", "For this task I use the library card.io https : github.com card-io card.io-Android-SDK .", "Card.io ios integration with localization https : stackoverflow.com questions 14671474 card-io-ios-integration-with-localization .. . .. . Thanks", "Josh from card.io here .", "Unfortunately printed non-embossed cards are not supported as of card.io Android SDK https : github.com card-io card.io-Android-SDK 5.2 nor in card.io iOS SDK https : github.com card-io card.io-iOS-SDK 5.3 .", "I am trying to integrate card.io sdk in my android app .", "I have a problem built Card.Io source version with android-studio .", "I have integrated card.io in my Android application and when I send an intent to invoke card.io activity it opens up the camera view with card.io view totally opaque and I do not see the credit-card in the view .", "We released 3.1.3 https : github.com card-io card.io-Android-SDK releases tag 3.1.3 of the card.io Android sdk card.io with a fix to this problem .", "Please look at the javadocs : card-io.github.io card.io-Android-SDK http : card-io.github.io card.io-Android-SDK", "Jeff from Card.io here .", "I ve added this change to the SampleApp : github.com card-io card.io-Android-SDK blob master SampleApp https : github.com card-io card.io-Android-SDK blob master SampleApp AndroidManifest.xml L22", "minSdkVersion for Android is 14 .. . .. . What should I do to stop the card.io dependency from conflicting with HERE Maps", "See Android repository https : github.com card-io card.io-Android-source iOS repository https : github.com card-io card.io-iOS-source and a common code dmz one https : github.com card-io card.io-dmz .", "We re developing an Android app with Card.IO integrated in it .", "Which version of card.io and what devices", "http : card-io.github.io card.io-Android-SDK io card payment CreditCard.html", "This is not possible with card.io .", "Only way to do this is build library from card.io-Android-source https : github.com card-io card.io-Android-source directly after editing DataEntryActivity.java https : github.com card-io card.io-Android-source blob master card.io src main java-io card payment DataEntryActivity.java file at lines 141-152 .", "Can anyone explain the internal working of Card.io library in android specifically to read embossed character .", "I read the description card.io SDK on the website .", "that card.io have to certify that card information is not transmitted", "Yes card.io is big because card scanning is not trivial .", "The same behavior is seen on the sample card.io application .", "I work at card.io .", "Is card.io sdk secure", "Possible duplicate of remove hide card.io paypal logo android http : stackoverflow.com questions 20113240 remove-hide-card-io-paypal-logo-android", "I did using so that is buildnative function : : task buildNative type : Exec description : Compile JNI source via NDK commandLine C : temp card.io-Android-source-master android-ndk-r10e ndk-build -C file C : temp card.io-Android-source-master card.io src main jni .absolutePath -j Runtime.runtime.availableProcessors all tasks.withType JavaCompile compileTask - compileTask.dependsOn buildNative : : : : : : : : : : : : : : : : : it s error as well ... .", "CARD-IO Android Plugin https : www.npmjs.com package card.io .. . 3 .", "Am integrating card.io with Cordova app ionic ios android .", "I ve developed an Android app a couple of months ago using Card.IO .", "So I am using card.io version 5.1.2 and the HERE Maps version is 3.0.2 Premium SDK for Android .", "Update on this answer - as of 4.0+ card.io now supports full removal of the card.io logo with EXTRA HIDE CARDIO LOGO http : card-io.github.io card.io-Android-SDK io card payment CardIOActivity.html EXTRA HIDE CARDIO LOGO .", "Though this long delay does NOT occur in the sample app card.io provides with their SDK https : github.com card-io card.io-Android-SDK .", "I saw you posted it in the issues here : https : github.com card-io card.io-Android-SDK issues 21 so it looks like you were able to resolve it by adding android : hardwareAccelerated true in the action .", "Look at the scanCard function for Card.IO functionality .", "Is it possible to scan card number with card.io from image in file", "Surprisingly sample card.io application also behaves the same view .", "Card.io has had no problems on any Samsung devices that I m aware of .", "take a look at this link : stackoverflow.com questions 35218242 http : stackoverflow.com questions 35218242 here-maps-android-integration-missing-libraries-error", "As part of the demo we need to be able to demonstrate card.IO integration and how that plays out with the rest of the application .", "In general card.io keeps its integration docs to a minimum just the core product but exposes extra goodies in the headers .", "I am working on an android app which facilitate payment through credit-card for that I am using CARD.IO SDK for android .", "hei i m using card.io now and i want to custom the navigation of it so i clone the card.io-Android-source https : github.com card-io card.io-Android-source I follow the step there but i m stuck at step 6 .", "Is it possible to do this with card.io", "card.io will recognize those cards .", "Thanks for open-sourcing card.io it s really awesome .", "I use cocoa pods to import Card.IO", "I have integrated Card.io successfully and it is working perfectly .", "Edit : I m using Card.io sdk 3.0.5 .", "No card.io does not currently scan the cardholder s name .", "I ve been using Card.IO for a while .", "I have no experience of using card.io .", "Is it possible to get credit-card type ie whether it is Amercan Express or Master or visa using card.io", "On iOS you can add card.io as a view : .. . .. . https : github.com card-io card.io-iOS-SDK integrate-as-a-view .. . .. . You could say use the view-only integration in your own custom view controller with your custom manual button that pushes your own custom manual entry view controller .", "Please see the relevant GitHub issue https : github.com card-io card.io-Android-source issues 60 .", "I am integrating Card.io in my android app and I want to remove the paypal logo .", "Sorry but card.io can only scan actual credit cards via a live mobile camera .", "I see a grey colored rectangle instead of the card.io view and native camera view around this rectangle .", "Is there an api that can be called by ajax from our web based app to use the card.io service", "To make for a responsive reliable user-experience card.io actually examines many video frames to select good quality ones for processing .", "card.io uses the GPU the ARM vector co-processor and drops down to assembly in a few places .", "I am trying to create new appcelerator module using card.io for that I have added card.io library in Xcode and followed steps accroding to : https : github.com card-io card.io-iOS-SDK .", "And so does my app where I successfully integrated card.io .", "I am using CardIOPaymentViewController to integrate card.io inside my app .", "I am trying to integrate Card.io sdk to my iOS app .", "Shouldn t there be a file attached to card.io ios SDK like this strings.xml above .", "I m attempting to call Card.IO from my Xamarin app .", "The project was the native libraries of the previous version card.io after removal of library data it worked correctly .", "I am looking for something similar to to the card.io library that will work across all the platforms using Ionic .", "There s some static initialization that card.io needs .", "Also card.io is NOT designed to scan images on a computer screen .", "card.io currently handles only traditional embossed cards .", "How do you know that card.io is conflicting", "Right now card.io only works on ios .", "So a cordova plugin for card.io is now available .", "The card.io SDK doesn t play nicely with NDK 11 .", "How I can get card.io app token", "I m using card.io to scan credit cards .", "It was on a Samsung G2 and a Samsung G3 that card.io was not working .", "Add the .jar and .so files from card.io SDK 3.0.3 https : www.card.io download card.io-android-sdk-3.0.3.zip be sure to use the existing folder structure .. . 3 .", "If your device has a camera check that the camera is not in use and add this to your manifest from the documentation https : github.com card-io card.io-Android-SDK to avoid requiring unnecesary funcitionalities of the camera : .. . .. . Also if your device runs Android 6 and the user has denied the camera permission card.io will fall to manual card input .", "Per Cordova Card.io documentation - .. . .. . keepApplicationTheme Boolean .. . .. . The theme for the card.io Activity s will be set to the theme of the application .", "I am trying to implement Card.io in my app I followed the instructions on Card.io https : github.com card-io card.io-Android-source website and when I get into my app and I launch it .", "I hold out hope that there will someday be a mobile web version of card.io but it s definitely not available now although we do have a Phone Gap plugin .", "i have just downloaded card.io source From Github card.io-iOS-source https : github.com card-io card.io-iOS-source I am running Xcode 7.2 .", "The card.io library has been included in many PCI-compliant applications .", "Hi Im using transitive-dependency for card.io to aar library using gradle .", "Application is working when the card.io library directly importing to the working application ." ] }
{ "confidence": [ 43.74116897583008, 43.03977966308594, 41.70821762084961, 40.08599090576172, 39.56151580810547, 39.037113189697266, 38.70092010498047, 37.64055633544922, 37.57942199707031, 37.549320220947266, 37.34574890136719, 37.323856353759766, 37.04033660888672, 36.924705505371094, 36.90901565551758, 36.40544128417969, 36.11297607421875, 36.08650588989258, 35.7766227722168, 35.74563980102539 ], "content": [ "Question : Is there any certifications like .. . .. . PCI DSS etc . that card.io have to certify that card information is not transmitted I just want to have this information as card information security is paramount for the kind of application I am working on and implementation will depend on these parameters . Thanks Comment : I see no documents on the official website so you may have to trust their card.io does not store or transmit credit-card numbers statement .. . Answer : There are no official certifications and I believe even if there was one you would need to get your app certified the library would not be enough . The source code is publicly available and you can rebuild it from source if you need to . See Android repository https : github.com card-io card.io-Android-source iOS repository https : github.com card-io card.io-iOS-source and a common code dmz one https : github.com card-io card.io-dmz .", "Question : I am getting a MISSING LIBRARIES error on an activity that has a HERE Maps fragment the error is coming from HERE Maps whenever it tries to initialize the map through the init method and then onEngineInitializationCompleted gets called with the error-code MISSING LIBRARIES . It works fine until I added card.io dependency on build.gradle file . So I am using card.io version 5.1.2 and the HERE Maps version is 3.0.2 Premium SDK for Android . minSdkVersion for Android is 14 .. . .. . What should I do to stop the card.io dependency from conflicting with HERE Maps build.gradle script file Comment : Can you post the build gradle script Comment : Thanks I have updated the question with my build.gradle script file . Comment : How do you know that card.io is conflicting If you re able to reproduce this with a simpler example please provide the sample project so we can better help . Comment : take a look at this link : stackoverflow.com questions 35218242 http : stackoverflow.com questions 35218242 here-maps-android-integration-missing-libraries-error .. . Answer : Check your manifest.xml file . Add below permissions under manifest tag .", "Question : I m using card.io ios sdk for credit-card scanning . Is it possible to get credit-card type ie whether it is Amercan Express or Master or visa using card.io What are all the other possible details from credit-card that we can get using card.io .. . Answer : Josh from card.io here . Take a look at the CardIOCreditCardInfo header https : github.com card-io card.io-iOS-SDK blob master CardIO CardIOCreditCardInfo.h . The cardType is derived from the cardNumber and from there you can get localized display strings and logos . In general card.io keeps its integration docs to a minimum just the core product but exposes extra goodies in the headers .", "Question : I have integrated card.io in my Android application and when I send an intent to invoke card.io activity it opens up the camera view with card.io view totally opaque and I do not see the credit-card in the view . This behavior is only seen on Samsung devices and not on other OEM devices . I see a grey colored rectangle instead of the card.io view and native camera view around this rectangle . Surprisingly sample card.io application also behaves the same view . Could you please look into this issue and provide details on how to fix this issue Is this a known issue Thanks for your support . Comment : Which version of card.io and what devices Card.io has had no problems on any Samsung devices that I m aware of . Comment : I am using the latest version 3.1.5 and I see the issue on all the samsung devices . The same behavior is seen on the sample card.io application . On all other devices view is not opaque and credit-card is visible in the view . .. . Answer : I had this same problem . I saw you posted it in the issues here : https : github.com card-io card.io-Android-SDK issues 21 so it looks like you were able to resolve it by adding android : hardwareAccelerated true in the action . I had to put it at the application level and it worked for me . Comment : Glad that it worked for you.. . Comment : I ve added this change to the SampleApp : github.com card-io card.io-Android-SDK blob master SampleApp https : github.com card-io card.io-Android-SDK blob master SampleApp AndroidManifest.xml L22", "Question : I am trying to integrate card.io sdk in my android app . I was wondering if it supports non-embossed cards as well as it is very important for the kind of app I am working on . I went through some old posts where it was mentioned that it is not supported yet . I just wanted to know if - .. . .. . 1 . With latest release 5.2.0 is there any support for printed cards .. . 2 . Is there any plan for near future to support non-embossed cards Thanks .. . Answer : Unfortunately printed non-embossed cards are not supported as of card.io Android SDK https : github.com card-io card.io-Android-SDK 5.2 nor in card.io iOS SDK https : github.com card-io card.io-iOS-SDK 5.3 . The feature requires a non-trivial amount of work but if you re interested in adding the feature you may be able to look into the source repositories and try to get a few people on GitHub to help contribute . Android https : github.com card-io card.io-Android-source common dmz https : github.com card-io card.io-dmz .", "Question : I want to integrate Card.io s library into my app . Card.IO has a feature where the users enters the CC details manually - I want that to be my custom screen instead of Card.io s screen . Is that possible .. . Answer : It is possible . On iOS you can add card.io as a view : .. . .. . https : github.com card-io card.io-iOS-SDK integrate-as-a-view .. . .. . You could say use the view-only integration in your own custom view controller with your custom manual button that pushes your own custom manual entry view controller .", "Question : I would like to localize some text in card.io but can t find a way to do it . There is a SO post who claim it is possible but i can t find how . Card.io ios integration with localization https : stackoverflow.com questions 14671474 card-io-ios-integration-with-localization .. . .. . Thanks Comment : Check This out From Person belonging to Card.io stackoverflow.com a 14691202 5332817 http : stackoverflow.com a 14691202 5332817 Comment : This is exactly the post linked in my question... . .. . Answer : You can use Qordoba SDK https : www.qordoba.com for mobile to manage the localization for Card.io and for the full app too . Comment : Thanks for your answer but i prefer to translate Card.io with a file than adding another 3rd party sdk to my app .", "Question : I have integrated card.io in my Android application and when I send an intent to invoke card.io activity it opens up the camera view with card.io view totally opaque and I do not see the credit-card in the view . This behavior is only seen on Samsung devices and not on other OEM devices . I see a grey colored rectangle instead of the card.io view and native camera view around this rectangle . Surprisingly sample card.io application also behaves the same view . Could you please look into this issue and provide details on how to fix this issue Is this a known issue Thanks for your support . Comment : Which version of card.io and what devices Card.io has had no problems on any Samsung devices that I m aware of . Comment : I am using the latest version 3.1.5 and I see the issue on all the samsung devices . The same behavior is seen on the sample card.io application . On all other devices view is not opaque and credit-card is visible in the view . .. . Answer : I had the same problem on Note 3 and Note 4 devices until I removed android : hardwareAccelerated false from my manifest .", "Question : I am working on an android app which facilitate payment through credit-card for that I am using CARD.IO SDK for android . I have integrated the card.io sdk in my code but when I launch the app it s not allowing me to scan any card.It showing a message this device can not use camera to read card numbers .. . .. . Here is my code : .. . .. . package org.my.scanExample .. . .. . Exception : Comment : What device are you using Comment : @ricintech how you solved problem .. . Answer : Typically this happens when the native libraries are not in the project s libs directory . The structure should look as follows which will happen if you unzip the sdk into your project s directory . Comment : i added native library but i didnt get proper solution please help me . Comment : From where I can get car.io.jar", "Question : I have a problem built Card.Io source version with android-studio . like this . and my local.properties file : .. . .. . I think it right path but the message said error . Please help me . this is my project http : i.stack.imgur.com Qlzro.png .. . Answer : The cleanNative and buildNative use forward slashes for directory paths which isn t compatible with Windows . I recommend fixing those and trying again . If you provide a fix that works for both Windows and nix via a Pull Request we ll happy review and accept . Comment : I did using so that is buildnative function : : task buildNative type : Exec description : Compile JNI source via NDK commandLine C : temp card.io-Android-source-master android-ndk-r10e ndk-build -C file C : temp card.io-Android-source-master card.io src main jni .absolutePath -j Runtime.runtime.availableProcessors all tasks.withType JavaCompile compileTask - compileTask.dependsOn buildNative : : : : : : : : : : : : : : : : : it s error as well ... . Comment : Windows isn t going to understand that path . You need windows safe paths .", "Question : I am integrating Card.io in my android app and I want to remove the paypal logo . I searched stackoverflow and got to know the usage of EXTRA USE CARDIO LOGO . Setting this to true or false shows either Paypal or Card.io logo . My client requires that there should be no logo at all . Any help .. . Answer : Josh from card.io here . There is no way to entirely disable logos . Comment : Can we make changes to the layout color etc Comment : Please look at the javadocs : card-io.github.io card.io-Android-SDK http : card-io.github.io card.io-Android-SDK Comment : I have tried CardIOActivity.LAYOUT INFLATER SERVICE but I have to change the background-color of header which has text Card Details . I also need to change the color of Done and Cancel button . I already checked documentation but could not proceed . Comment : no we can . we just need to add intent.putExtra CardIOActivity.EXTRA HIDE CARDIO LOGO true", "Question : I have a project in which you want to scan the card . For this task I use the library card.io https : github.com card-io card.io-Android-SDK . Recently I updated library to the latest version 5.4.0 And now instead of scanning the card are changed to enter it manually . What did I do wrong All settings are made according to instructions . AndroidManifest .. . .. . Then this class in which I try open scanActivity CardIOActivity .. . .. . And when I try to do that I have something like this : enter image description here http : i.stack.imgur.com EeLHT.png .. . .. . Update from the comments : .. . .. . Tested on .. . .. . Asus Z00AD Zenphone .. . Huawei .. . Nexus 5 .. . Genymotion .. . .. . The example application from card.io works as expected .. . .. . EDIT .. . .. . Find error : Comment : What device are you testing it on Comment : Asus Z00AD Zenphone Huawei Nexus 5 and Genymotion .. . Answer : It seems that card.io cannot initialize the device camera and falls to the manual input . If your device has a camera check that the camera is not in use and add this to your manifest from the documentation https : github.com card-io card.io-Android-SDK to avoid requiring unnecesary funcitionalities of the camera : .. . .. . Also if your device runs Android 6 and the user has denied the camera permission card.io will fall to manual card input . Comment : it is in the project I forgot to insert a poll Comment : Is the camera in use Have your tried restarting the device Comment : The camera is in order . Do not restart the device . Download the application from the library it works fine Comment : Are you using Android 6 have you denied the camera permission Comment : Permissions to the camera I get . Checking 6.5 4.2.2 version of Android", "Question : I am integrating Card.io in my android app and I want to remove the paypal logo . I searched stackoverflow and got to know the usage of EXTRA USE CARDIO LOGO . Setting this to true or false shows either Paypal or Card.io logo . My client requires that there should be no logo at all . Any help .. . Answer : Update on this answer - as of 4.0+ card.io now supports full removal of the card.io logo with EXTRA HIDE CARDIO LOGO http : card-io.github.io card.io-Android-SDK io card payment CardIOActivity.html EXTRA HIDE CARDIO LOGO .", "Question : We re developing an Android app with Card.IO integrated in it . It works fine in the debug mode and shows scan option however when we make a release build the scan option disappears and instead the user can only enter the card number manually and it s not what we need . When we make the release build we specify in the Android manifest file : .. . .. . And as written in docs https : github.com card-io card.io-Android-SDK we add the following to the proguard file : Comment : Jeff from Card.io here . I was able to reproduce the issue . It appears the camera hardware detection is a bit wonky in release-mode . I ll update this issue when I find a fix . Comment : Thanks Jeff I hope it ll be a quick fix . .. . Answer : We released 3.1.3 https : github.com card-io card.io-Android-SDK releases tag 3.1.3 of the card.io Android sdk card.io with a fix to this problem . Please feel free to open an issue on GitHub https : github.com card-io card.io-Android-SDK issues if you still require additional help . Thanks Comment : Thanks Jeff It works with the latest build . Comment : This worked for me too . It was on a Samsung G2 and a Samsung G3 that card.io was not working .", "Question : I am trying to integrate Card.io sdk to my iOS app . I d like to do a simple localization for CardIO ui as changing Cancel button title or Hold credit-card here hint text . I ve found this android demo on github and it s simply using strings.xml file to do this . I guess couldn t try yet . https : github.com card-io android-scan-demo blob master app res values strings.xml .. . .. . How can i do this in my iOS app Shouldn t there be a file attached to card.io ios SDK like this strings.xml above . Edit : I m using Card.io sdk 3.0.5 . Regards Comment : There should but apparently there s no Localizable.strings file in the en.lproj directory . .. . Answer : Josh from card.io here . We released localization support in version 3.1 which is available now . Comment : Hey @Josh Bleecher Snyder I have not found any documentation on the localization support . Has it been released Thanks Comment : Hasn t been released yet but fear not we ve not forgotten about it or about updating here when it happens . It really is close I promise . : Comment : How do you implement it please", "Question : null .. . Answer : Per Cordova Card.io documentation - .. . .. . keepApplicationTheme Boolean .. . .. . The theme for the card.io Activity s will be set to the theme of the application . However regardless if i set it to true or false the theme color doesn t adopt my app s theme . I am using iOS and testing it on iPhone . Everything else works fine . Can some please advise Comment : The parameter keepApplicationTheme is an android-only option . Maybe we need to clarify that in the docs . Comment : Then what do I do with the iOS It looks out of place .", "Question : null .. . Answer : Currently I am using card.io SDK in my app here I want to user enter the card holder name But card.io library enter manually view didn t have the name text filled .. . .. . Is there is any way to make it available the card holder name text field .. . .. . Note : Its available in Android .. . .. . Can anyone please help me to solve this issue .. . .. . Thanks in advance .", "Question : I m using card.io ios sdk for credit-card scanning . Is it possible to get credit-card type ie whether it is Amercan Express or Master or visa using card.io What are all the other possible details from credit-card that we can get using card.io .. . Answer : Try this : Comment : Good to see the card type logo from card io library itself .", "Question : I ve developed an Android app a couple of months ago using Card.IO . It was working normally but now Card.IO don t work and I can t find where s the problem . Here s my configuration : .. . .. . build.gradle from my app module .. . .. . In my first Activity : .. . .. . And here is the output of logcat : .. . .. . I have installed the Card.IO SampleApp on my device and it worked perfectly so my device has support for Card.IO . I searched the internet about this and everyone said that I need to put .so on my libs folder but when I export the App I can see all the directories that Card.IO use arm64-v8a armeabi armeabi-v7a etc . and inside of then have libcardioDecider.so file . Can anyone help me .. . Answer : Maybe you should not add io.card so file to your project if so delete those in your libs dir just add compile io.card : android-sdk : 5.3.0 in build.gradle .", "Question : I have a project in which you want to scan the card . For this task I use the library card.io https : github.com card-io card.io-Android-SDK . Recently I updated library to the latest version 5.4.0 And now instead of scanning the card are changed to enter it manually . What did I do wrong All settings are made according to instructions . AndroidManifest .. . .. . Then this class in which I try open scanActivity CardIOActivity .. . .. . And when I try to do that I have something like this : enter image description here http : i.stack.imgur.com EeLHT.png .. . .. . Update from the comments : .. . .. . Tested on .. . .. . Asus Z00AD Zenphone .. . Huawei .. . Nexus 5 .. . Genymotion .. . .. . The example application from card.io works as expected .. . .. . EDIT .. . .. . Find error : Comment : What device are you testing it on Comment : Asus Z00AD Zenphone Huawei Nexus 5 and Genymotion .. . Answer : Fix problem . The project was the native libraries of the previous version card.io after removal of library data it worked correctly ." ] }
[ "yes-answer-long", "yes-answer-short" ]
card.io
UNK_RELATION
mongodb-shell@mongodb@90
mongodb-shell -- the mongodb-shell is a command-line tool for querying and administering @placeholder .
{ "confidence": [ 49.703006744384766, 44.8486442565918, 44.8486442565918, 41.07957458496094, 41.07957458496094, 41.07957458496094, 40.79069137573242, 40.13581848144531, 39.87957000732422, 39.87957000732422, 38.97941589355469, 38.44133758544922, 38.39729309082031, 36.00265884399414, 36.00265884399414, 35.759056091308594, 34.80265808105469, 33.86973190307617, 33.36442565917969, 33.29063415527344, 32.89548110961914, 32.89548110961914, 32.280235290527344, 32.19185256958008, 31.695478439331055, 31.555339813232422, 31.22960662841797, 31.16271209716797, 30.94281005859375, 30.574954986572266, 30.49730682373047, 30.31387710571289, 30.31387710571289, 29.858497619628906, 29.661869049072266, 29.661869049072266, 29.661869049072266, 29.661869049072266, 29.630878448486328, 29.415325164794922, 29.415325164794922, 29.300800323486328, 28.46186637878418, 28.46186637878418, 28.346473693847656, 28.21532440185547, 28.21532440185547, 28.100797653198242, 27.93671989440918, 27.86724090576172, 27.86724090576172, 27.778240203857422, 27.778240203857422, 27.778240203857422, 27.69344139099121, 27.628890991210938, 27.628890991210938, 27.628890991210938, 27.628890991210938, 27.628890991210938, 27.628890991210938, 27.628890991210938, 27.123367309570312, 27.123367309570312, 27.064804077148438, 27.064804077148438, 27.064804077148438, 27.064804077148438, 27.064804077148438, 27.064804077148438, 26.777090072631836, 26.66256332397461, 26.428890228271484, 26.428890228271484, 26.257347106933594, 26.19127655029297, 25.636932373046875, 25.353519439697266, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.32871437072754, 25.159814834594727, 24.99065589904785, 24.890483856201172, 24.890483856201172, 24.890483856201172, 24.890483856201172, 24.890483856201172 ], "content": [ "The MongoDB shell is a Javascript interpreter .", "What versions of mongodb and shell are you using", "I m writing JavaScript code for MongoDB shell in client .", "What version of MongoDB server shell are you using and on what O S", "You have found a nasty bug in the shell of MongoDB 2.4.2 .", "Is there a way to configure one MongoDB shell session to use NumberInt or NumberLong by default", "The MongoDB shell is a javascript shell so you can use anything you can use in javascript :", "I m trying to do some profiling of a MongoDB or query and I m having trouble with the explain command in the Mongo shell .", "I m kind of confused on how to use closures in mongodb-shell .", "Why is my closure not working do closures work in mongodb-shell", "Currently I am using a shell scipt to get whether there is a mongodb instance running or not .", "How can I convert this Mongo Shell script to MongoDB C Driver", "I have a few objects in a MongoDB database where the id field was assigned an integer by mistake how can I in the MongoDB shell replace these integers with an ObjectId", "I suspect that you could write a Javascript function to create your GUID and register the function in the MongoDB shell .", "I m using JavaScripts to create my test documents and then running them via the MongoDB Shell .", "RUN apt-get install -y --force-yes mongodb-org-shell RUN apt-get install -y --force-yes mongodb-org-tools", "It appears that the MongoDB shell serializes in this case string-ifies where function objects in order to send them to the server .", "You can save this function in your .mongorc.js http : www.mongodb.org display DOCS Overview+-+The+MongoDB+Interactive+Shell Overview-TheMongoDBInteractiveShell-.mongorc.js to have it available in your mongo-shell on startup .", "I d like to find a function within the MongoDB shell that will let me see how many items are in a particular query .", "If you just want to test whether you can connect to a MongoDB server without authentication via bash you can use a script similar to the following : .. . .. . Example output : .. . .. . The only parameter for this script is an an optional MongoDB address to connect to host : port dbname the mongo-shell defaults to using localhost : 27017 test .", "@Stennie I m running Win7 and MongoDB Shell v2.4.1 I m using MongoHQ.com as my server so whatever version they re using .", "Alternatively : is there a way to parse a string of JSON into an object in the MongoDB shell so that all numbers without decimal points are already wrapped with NumberInt NumberLong", "Install MongoDB in all machines .", "Here is my document : .. . .. . When I assign it to a variable insertDoc through mongodb-shell as : .. . .. . Why is it not getting assigned to the variable and from where did the line .. . .. . Came from .", "Use JavaScipt .map https : developer.mozilla.org en-US docs Web JavaScript Reference Global Objects Array map : .. . .. . Then MongoDB shell is a JavaScript REPL .", "The Mongo shell IS JavaScript it is an extend JavaScript shell .", "I run into this error : .. . .. . The following packages cannot be authenticated mongodb-org-shell .. . .. . The code in the dockerfile : .. . .. . RUN apt-key adv --keyserver hkp : keyserver.ubuntu.com : 80 --recv EA312927 RUN echo deb http : repo.mongodb.org apt ubuntu trusty mongodb-org 3.2 multiverse tee etc apt sources.list.d mongodb-org-3.2.list RUN apt-get update RUN apt-get install -y mongodb-org-shell RUN apt-get install -y mongodb-org-tools .. . .. . It s using ubuntu trusty as per mongodb docs recommendations .", "The version of mongodb I used is 2.6.10 .", "I want to do it all from the command-line and have the mongo-shell exit afterwards .", "Is this a shell bug", "I am new in MongoDB and want to learn and test MongoDB scalability by creating sharded cluster .", "I am playing around in the mongodb-shell trying to learn about mongodb and noticed that db.stats shows number of collections to be 1 more than what is shown by db.getCollectionNames .. . .. . Here is the example : .. . .. . So db.stats says there are 6 collections where as db.getCollectionNames lists only 5 collection names .", "I have a collection named GoldenGlobes-emotion in my MongoDB 2.6.9 I found I can not access this collection from the MongoDB shell When ever I try to access the collection for example .. . .. . I always got this : .. . .. . But it works well when I access the collection form Python with PyMongo .", "Previously all PCs had different versions of MongoDB like .. . .. . I thought different versions of MongoDB might be the problem hence I have reinstalled MongoDB in all PCs with 3.2.4 version .", "I ve got a little problem with mongodb-update method .", "How to set up proper authorization for mongodb 2.4.1 .", "I m trying to use the MongoDB to reassign IDs .", "I ve been developing with meteorJS which uses mongodb .", "I find that when i create a new function to mongodb and then run it like this : .. . db.loadServerScripts testFun xxx .. . Two errors will occur : .. . SyntaxError : missing after property list src mongo-shell db.js : 1038 ReferenceError : testFun is not defined shell : 1 But the old functions work fine .", "I have some documents in a MongoDB collection with a GUID-type key and I would like to be able to copy them to a new row with a new GUID using the shell .", "By default the MongoDB shell interprets all numbers as floats this is a problem when trying to convert existing JSON formatted data stored as strings in Mongo to actual Mongo BSON objects .", "I did the following in the shell :", "I have MongoDB installed on Windows 10 .", "I just got a chance to work on mongodb recently .", "@Sammaye The Mongo shell IS JavaScript -True .", "In order for my Spring Boot app to work I have to manually launch MongoDB from terminal so I thought I could do commands from the shell to see what I was doing in the app .", "So basically I have this array of IDs : .. . .. . And I want to transform it to an array that contains only the values on the document field departamento id something like this : .. . .. . Is there any way to do it in MongoDB shell", ".. . In babble it used to be but not in the shell .", "In mongo-shell :", "I am having a mongodb instance running which is running auth mode in my server machine .", "How Can I check whether if the mongodb is running in a auth mode or non auth mode .", "Pasting from MongoVue is causing hidden characters which are causing the mongo-shell to drop out to the Linux shell during pasting .", "If I m connected to the master of the set via mongo-shell the shell should know about primary secondary nodes .", "Here are the things I ve tried in mongo-shell : .. . .. . In all instances the shell prints null and nothing happens to the data .", "Approach two : using RunCommand and passing straight Shell command .", "There s a good answer for Can I query MongoDB ObjectId by date", "So I have a 2TB hard drive with 2 collections in 1 mongoDB .", "There is literally nothing on the machine apart from a Linux Distro and this mongoDB .", "I m having a problem with inserting test documents into my MongoDB .", "keyFile implies auth and allows members of a MongoDB deployment to authenticate internally .", "To make the code work you need : .. . .. . MongoDB version 2.5 or higher .", "@davidmh If I m not mistaken MongoDB doesn t have what you want .", "When does the mongo-shell call db.getLastError http : docs.mongodb.org manual reference command getLastError on behalf of the user", "you can try bash shell a.sh write pwd command into file a.sh", "UPDATE .. . .. . Apparently not possible to generate a GUID from the shell .", "Yeah the shell doesn t have a way to generate GUIDs .", "So it appears to be a Mongo shell formating problem .", "These are used to emit just like console.log within the shell :", "For giggles I tried meteor mongo and it loaded the shell .", "Why do you need a shell script", "In MongoJS and other front-end implementations of MongoDb a query returns an object that you can perform a .length method on like : .. . .. . Any way to do something similar in the shell itself", "And in my shell it is rising the error .", "Am I dumb or do MongoDb permissions make no sense at all", "I have a Spring Boot app configured with default settings to use MongoDB .", "The same applies for any other form where the name would not be allowed in the shell such as : .. . .. . Actually all that happens under the hood in the shell is that this official method is called .", "If you want to check the full security of your deployment it s definitely worth reviewing the MongoDB Security checklist https : docs.mongodb.org manual administration security-checklist .", "For completeness I am running MongoDB shell version : 2.4.9 Terminal Version 2.2.3 303.2 under Mac OS X 10.7.5 .. . .. . Many thanks .. . .. . Note : the original code as published had 2 missing opening curly-braces in the initial for loops .", "Here is how I establish MongoDB connection : .. . .. . mongod --dbpath ...path-to-project url-shortener data .. . .. . Here is the url I use to connect in my server.js file : .. . .. . var dbUrl mongodb : localhost : 27017 url-shortener", "Edit : I am actually pasting the document from mongoVUE into the mongo-shell .", "@Sammaye I am not running it from javascript.Its from mongo-shell .", "How if at all could I go about generating a new GUID in the shell", "Look at the JavaScript code for the shell helper .explain to see what it does :", "Is there a way to do this in the SHELL - I m not interested in some of the driver products .", "You can use mongo-shell binary from 2.4.1 for your purpose .", "Is there a way to force the Mongo shell to output the contents of array sequentially across the page", "Is it possible to pipe results in to a pager from within a mongo-shell", "Mongo shell already paginates the results if the returned cursor is not assigned to a variable .", "The mongo-shell will prompt Type it to iterate another 20 times .", "you can run your utils.js from a shell script .", "That s kinda workaround - so the mongo-shell doesn t support that", "The biggest problem is that the recipe within manipulates files that aren t necessary for the shell .", "Now I can rename the collection from shell : D", "looking at my .bash history I ve always used mongo to run the shell .", "I agree that this is so strange because this is the purpose of process builder constructor separate each command args but as you wrap it with an extra shell script. . that maybe the reason .", "Did you set the PATH to include the path to the mongodb executables", "I m trying to connect to a MongoDB database that requires a password while also loading and running a script file on the database .", "http : stackoverflow.com questions 8749971 can-i-query-mongodb-objectid-by-date which includes an objectIdWithTimestamp JavaScript function .", "In order to do this I would normally just go into mongo and type db.collection.drop .. . .. . However mongoDB is not currently running .", "Is there some way of identifying which mongoDB files in home mongo I can take out", "There s more information in the MongoDB docs http : docs.mongodb.org manual reference object-id" ] }
{ "confidence": [ 47.04137420654297, 46.85758972167969, 46.7078971862793, 45.34245300292969, 44.511268615722656, 44.130043029785156, 43.99256134033203, 43.79086685180664, 43.63246154785156, 43.26536178588867, 42.836483001708984, 42.79582977294922, 42.62033462524414, 42.45623016357422, 41.36429977416992, 41.14078140258789, 40.624412536621094, 40.39909362792969, 40.28097915649414, 40.01255416870117 ], "content": [ "Question : null .. . Answer : I m having a problem with inserting test documents into my MongoDB . I m using JavaScripts to create my test documents and then running them via the MongoDB Shell . But I m getting some unexpected results . My script creates a document with the following tree structure . When I try to create 5 Projects with 15 Tasks and 50 Timesheets createCollections my project 5 my task 15 50 100 I m only getting 2 complete error free documents in the database . When I try to create 5 Projects with 1 Tasks and 5 Timesheets createCollections my project 5 my task 1 5 100 I m only getting 4 complete error free documents in the database . Rather odd . I m sure the scripts runs through the expected iterations as I placed prints to verify that the insert was actually run . Output : As expected . The script .. . .. . Is it my script that s the cause or is there a restriction bug on how much you can do via scripts Comment : I ve noticed unusual behavior with more complex scripts in the shell and I ve always switched to another programming language environment to complete more complex tasks such as NodeJs for example . Comment : I see I ll get it a try Comment : What version of MongoDB server shell are you using and on what O S Comment : I saved your JS and tried running via command-line with MongoDB 2.4.1 OS X and it seems to work OK for both examples you ve provided eg mongo testlimit.js then checking the count of tasks and timesheets in the test embedded collection . How are you verifying that the docs are complete Comment : @Stennie I m running Win7 and MongoDB Shell v2.4.1 I m using MongoHQ.com as my server so whatever version they re using . But I m able to run the script just fine now . Perhaps MongoHQ was throttling me somehow :", "Question : I have a Spring Boot app configured with default settings to use MongoDB . In order for my Spring Boot app to work I have to manually launch MongoDB from terminal so I thought I could do commands from the shell to see what I was doing in the app . The app starts and performs all of the CRUD functions specified . When I launch mongo-shell and do : use test .. . .. . Test is the only db that list using .. . .. . I then do : .. . .. . No records are listed even though I get a dozen records back if I do a GET using Postman therefore the records are in mongoDB . I don t know how to run queries on the instance of mongoDB that Spring Boot is using if it is different than the one I manually launched . Comment : Are u using the correct db. . By this you are using the test database and the test collection. . Is this as expected Comment : I do use test before I run a command . I do show dbs to list dbs and I see test as the database . Did I miss something Comment : When you run show collections - Do you have a collection called test .. . Answer : I just got a chance to work on mongodb recently . Not sure if you found a solution to your question . It seems that when you do the following command you should get the list of your databases : .. . .. . Then you can run the .find command base on your db name . You should be able to get the data output on your terminal . If you don t like to use a Terminal here is another NOSQL handy tool that I use - Robomongo - http : robomongo.org You can either run a query via the tool or just configure the UI for your data set .", "Question : I am having a mongodb instance running which is running auth mode in my server machine . Currently I am using a shell scipt to get whether there is a mongodb instance running or not . How Can I check whether if the mongodb is running in a auth mode or non auth mode . Comment : I think you should check with mongostat utility docs.mongodb.org manual reference program mongostat http : docs.mongodb.org manual reference program mongostat .. . Answer : If you just want to test whether you can connect to a MongoDB server without authentication via bash you can use a script similar to the following : .. . .. . Example output : .. . .. . The only parameter for this script is an an optional MongoDB address to connect to host : port dbname the mongo-shell defaults to using localhost : 27017 test . The script does a simple check on whether users can be listed without permission . If auth is properly enabled the db.getUsers command should return an error like : .. . .. . Note : Localhost Exception .. . .. . By default as at MongoDB 3.0 there is a localhost exception https : docs.mongodb.org manual core authentication localhost-exception that allows you to create a first user administrator https : docs.mongodb.org manual tutorial add-user-administrator for a deployment by connecting via localhost . Once at least one user has been added the localhost exception is automatically disabled . If you want to check the full security of your deployment it s definitely worth reviewing the MongoDB Security checklist https : docs.mongodb.org manual administration security-checklist .", "Question : I have a collection named GoldenGlobes-emotion in my MongoDB 2.6.9 I found I can not access this collection from the MongoDB shell When ever I try to access the collection for example .. . .. . I always got this : .. . .. . But it works well when I access the collection form Python with PyMongo . Is this a shell bug Or - is a reserved character .. . Answer : Try db GoldenGlobes-emotion .findOne . The MongoDB shell is a Javascript interpreter . Javascript does not allow hyphens in variable names because it interprets them as the minus-operator . However you can also access object-fields with string-literals by using the array-syntax . In that case this restriction does not apply . Comment : Thank you so much Now I can rename the collection from shell : D", "Question : By default the MongoDB shell interprets all numbers as floats this is a problem when trying to convert existing JSON formatted data stored as strings in Mongo to actual Mongo BSON objects . It would also be tedious to explicitly and manually wrap any integer values in the data with NumberInt .. . NumberLong .. . because integers can occur anywhere in the data . Is there a way to configure one MongoDB shell session to use NumberInt or NumberLong by default Alternatively : is there a way to parse a string of JSON into an object in the MongoDB shell so that all numbers without decimal points are already wrapped with NumberInt NumberLong .. . Answer : The solution I ended up using for now is calling a markIntegers function on the data returned from JSON.parse it seems to be working fine . I m posting it here for completeness sake better solutions and corrections are very welcome which works like this :", "Question : I have a collection that looks like this : .. . .. . I want to do a range query to find records between two dates . I know that I can get the date from the ObjectId in the mongo-shell var doing this : .. . .. . but there isn t a way as far as I can figure out at the moment to create an ObjectId consisting of just the timestamp portion - I think my ideal solution is non-functioning mongo-shell code would be : .. . .. . Use the find with the minDate and MaxDate as the range values . Is there a way to do this in the SHELL - I m not interested in some of the driver products . Comment : First 8 bytes of mongoid are timestamp in hexadecimal so you could create a valid ObjectId with first 8 bytes made from date and rest just zeros and then do queries similar to this : id : gt : ObjectId 5087e5b106cffca815000000 Comment : There s a good answer for Can I query MongoDB ObjectId by date http : stackoverflow.com questions 8749971 can-i-query-mongodb-objectid-by-date which includes an objectIdWithTimestamp JavaScript function . You can save this function in your .mongorc.js http : www.mongodb.org display DOCS Overview+-+The+MongoDB+Interactive+Shell Overview-TheMongoDBInteractiveShell-.mongorc.js to have it available in your mongo-shell on startup . .. . Answer : You can do that in 2 steps : .. . .. . or in one step what is less readable :", "Question : null .. . Answer : I don t know when the problem begin . I find that when i create a new function to mongodb and then run it like this : .. . db.loadServerScripts testFun xxx .. . Two errors will occur : .. . SyntaxError : missing after property list src mongo-shell db.js : 1038 ReferenceError : testFun is not defined shell : 1 But the old functions work fine . And when I delete one old function and recreate it without anything changed it also results in the same error above . The version of mongodb I used is 2.6.10 .", "Question : After installing Docker Toolbox on Windows 10 I run docker-compose up for an existing dockerised project . I run into this error : .. . .. . The following packages cannot be authenticated mongodb-org-shell .. . .. . The code in the dockerfile : .. . .. . RUN apt-key adv --keyserver hkp : keyserver.ubuntu.com : 80 --recv EA312927 RUN echo deb http : repo.mongodb.org apt ubuntu trusty mongodb-org 3.2 multiverse tee etc apt sources.list.d mongodb-org-3.2.list RUN apt-get update RUN apt-get install -y mongodb-org-shell RUN apt-get install -y mongodb-org-tools .. . .. . It s using ubuntu trusty as per mongodb docs recommendations . https : docs.mongodb.com manual tutorial install-mongodb-on-ubuntu .. . .. . What am I missing for this to successfully download EDIT : Before docker-compose i ran docker-machine create --driver virtualbox default to create a default machine . .. . Answer : For now i ve updated the last 2 lines to have --force-yes to bypass authentication . RUN apt-get install -y --force-yes mongodb-org-shell RUN apt-get install -y --force-yes mongodb-org-tools", "Question : I have a very simple Mlab account and I m trying to connect via command-line with this command : .. . .. . but I keep running into this problem : .. . .. . 2016-05-26T15 : 41 : 18.195+0200 Error : 18 ok : 0.0 errmsg : auth failed code : 18 at src mongo-shell db.js : 1210 exception : login failed .. . .. . How do I get rid of this and how can I connect to mlab easily Comment : What versions of mongodb and shell are you using .. . Answer : I had the same problem if your username and password is correct then the issue connecting is your firewall blocking certain ports needed to connect . Use a different internet-connection or unblock the ports that need to be used and it will fix this .", "Question : I don t wanna use any other language . Just open the MongoDB s shell and create let say 100 000 documents with id incremented by 1 . Is that possible .. . Answer : The MongoDB shell is a javascript shell so you can use anything you can use in javascript :", "Question : I have a few objects in a MongoDB database where the id field was assigned an integer by mistake how can I in the MongoDB shell replace these integers with an ObjectId An example of such an object would look like this : .. . Answer : The best solution I found was to clone each each object to another with an ObjectId value assigned to id and then delete all objects with an integer for id . I did the following in the shell : Comment : Yea that s probably the best way of course you cannot update the id field so you do have to write it out again .", "Question : So basically I have this array of IDs : .. . .. . And I want to transform it to an array that contains only the values on the document field departamento id something like this : .. . .. . Is there any way to do it in MongoDB shell .. . Answer : Use JavaScipt .map https : developer.mozilla.org en-US docs Web JavaScript Reference Global Objects Array map : .. . .. . Then MongoDB shell is a JavaScript REPL . So just about all ECMAScript built-in functions exist . It is built on V8 so whatever is in there is generally in here too .", "Question : I m trying to use the MongoDB to reassign IDs . However it is not setting IDs equal to the value I assign but rather it is creating a new ObjectId . How do I assign my own ID I m using Mongo 2.4.2 Comment : You have found a nasty bug in the shell of MongoDB 2.4.2 . Comment : Although what @Benjamin said is also true -- you can t change an existing document s id . You create a new document with the new id and remove the old one . .. . Answer : Ben your statements are correct . It s just mongo-shell 2.4.2 behaves somehow different than others server is not affected . You can use mongo-shell binary from 2.4.1 for your purpose . Comment : jira.mongodb.org browse SERVER-9385 https : jira.mongodb.org browse SERVER-9385", "Question : I have MongoDB installed on Windows 10 . The server is running . The problem is when I open the mongo-shell I can t type any commands after this : .. . .. . See screenshot image : enter image description here http : i.stack.imgur.com dXuWa.png .. . .. . What is the problem I need to command the mongo-shell to create a database but I can t do that since it doesn t pick up anything I type at the point . Comment : Have you started the server mongod before connecting from mongo-shell It seems there s no connection to it . Antivirus firewall could also block the connection to server . Comment : Server was disconnected . That was the problem . Thanks . .. . Answer : Solved : server mongod was disconnected . That was the problem .", "Question : I m trying to run a shell script from my go program . I want to start up a mongo instance and then remove some data . So the shell script would look something like this : .. . .. . I initially tried just using the exec.Command package but it doesn t chain the commands so the mongo db closes and I can t run the other commands : .. . .. . The next thing I tried is creating a variable and trying to execute that via sh : .. . .. . and executing exec.Command sh script .. . .. . I know I can create a .sh file but I don t want to do that is there any way to chain commands in go so the mongo db doesn t close and I can execute the other commands .. . Answer : You seem to misunderstand how processes such as interpreters and shells including it appears https : jira.mongodb.org browse SERVER-10569 mongodb as well work with their so-called standard streams https : en.wikipedia.org wiki Standard streams : while the test-db is indeed an argument to pass to a mongodb process to be created on its command-line the db.user.remove id : 1 is the text that spawned mongodb instance is supposed to read from its standard input stream . So basically you need this : .. . .. . To explain how this works let s cite the manual https : golang.org pkg os exec Cmd : .. . .. . Stdin specifies the process s standard input . If Stdin is nil the process reads from the null device os.DevNull . If Stdin is an os.File the process s standard input is connected directly to that file . Otherwise during the execution of the command a separate goroutine reads from Stdin and delivers that data to the command over a pipe . In this case Wait does not complete until the goroutine stops copying either because it has reached the end of Stdin EOF or a read error or because writing to the pipe returned an error . Stdin io.Reader .. . .. . So basically you create an object which takes a string and provides something implementing io.Reader and wire it to the standard input of the process about to be created . Once the process starts os exec will make sure to spawn a goroutine which will shovel data between your string and the running mongodb instance as-if you would start mongodb by hand and typed that string onto its standard input stream directly . Note that you also might need to check what mongodb generates on its standard output streams especially stderr because if it encounters any errors while executing the script you have submitted to it it will likely report them there .", "Question : I m trying to connect to a MongoDB database that requires a password while also loading and running a script file on the database . I want to do it all from the command-line and have the mongo-shell exit afterwards . My problem is that I cannot do both at the same time e.g . The above command will think that script.js is actually my password which it of cause isn t . I want it to actually prompt me for my password after I enter the command . How can I do that .. . Answer : Try moving the arguments around so that script.js does not follow your password parameter . mongo example.com : 10023 database script.js -u username -p Comment : So freaking simple . And yet I never thought about moving the arguments around . Why Because file.js . . Must be the last option specified . . Thanks", "Question : This is my project url-shortener directory http : i.stack.imgur.com 3bAJm.png .. . .. . I have a Node JS app that involves using MongoDB . It works fine as I tried inserting finding and printing data from MongoDB to the console in the Node JS file server.js . However if I open a Mongo Shell and type show collections it would show nothing . Here is how I establish MongoDB connection : .. . .. . mongod --dbpath ...path-to-project url-shortener data .. . .. . Here is the url I use to connect in my server.js file : .. . .. . var dbUrl mongodb : localhost : 27017 url-shortener .. . Answer : Maybe you should first pick a db .. . .. . Then after using a datbase .. . .. . You will see its collections : .. . .. . Finally use it : Comment : Are you sure show db is a valid command I get thread1 Error : don t know how to show db : Comment : Sorry i forgot s its show dbs Comment : Got it . Thank you . It drove me crazy for the past hour Comment : haha no problem have fun coding", "Question : I am trying to install a mongo client via chef . Essentially this is what I have been doing in manual installs : .. . .. . I don t want to reinvent the wheel here nor do I want to install anything other than the shell . This cookbook looks like a good resource but I cannot get it to install just the shell : .. . .. . But it seems to not allow for any of the main components to be installed . Will i need to LWRP .. . Answer : Well i picked apart the mongodb cookbook - to this tune : .. . .. . That said it looks like I should be able to use that cookbook configured with the right attributes to aCcomplish this . The biggest problem is that the recipe within manipulates files that aren t necessary for the shell .", "Question : I m writing JavaScript code for MongoDB shell in client . How can I get the path of the script file which is executing Please note it s not the value of pwd . For example I m executing my scripts utils.js from my path : .. . .. . so pwd returns my path but how can I get the full path or relative-path to the value of pwd of the current executing file which is my scripts utils.js Comment : You re not really being clear . Are you trying to get the full path of the utils.js to use it inside that script Or you want to find the full path of all scripts that are currently running Comment : Can we execute multiple scripts at the same time I need to get my scripts utils.js from utils.js . Thanks . .. . Answer : you can try bash shell a.sh write pwd command into file a.sh", "Question : Good Day . I ve been developing with meteorJS which uses mongodb . No problems there . I ve been using the mongo-shell to access the database on my dev machine osx 10.11 . This is my first project with mongo and when the shell would load it would connect to db.test and I d always show dbs and get the list of database then use myApp . Yesterday whenever I go into the shell and I type show dbs the only one shown is local 0.078GB . However my app is still working and pulling and pushing data to the database . I ve checked the dbpath in the mongod.conf and that seems ok . I m not entirely sure about the exact order of things but two things where different I m not sure if these happened prior to the show dbs not showing everything or after and I m not sure which came first : .. . .. . when loading the mongo-shell I was getting this error : .. . .. . WARNING : soft rlimits too low . Number of files is 256 should be at least 1000 .. . .. . I followed these directions which seemed to stop that error from appearing https : github.com basho basho docs issues 1402 .. . .. . I use Meteor Toys and for the first time I update user.profile.companyName which is a custom field within the standard profile from within the Meteor Toys widget . Just odd that the app can still access the database and collections but that the mongo-shell doesn t show . I ve update mongod via brew upgrade mongodb from 3.0.2 to 3.0.7 to no avail . Any ideas Comment : looking at my .bash history I ve always used mongo to run the shell . For giggles I tried meteor mongo and it loaded the shell . This time with show dbs I was rewarded with admin local and meteor . I use meteor and then show tables and there they are my missing tables . Weird . Guess I m still looking for an answer . .. . Answer : If you want to use the regular mongo console you have to specify the port to be 3001 for meteor apps instead of the default 27017 . Otherwise it s much simpler to just type meteor mongo and connect that way . Then you can type show collections and it will show them all just like normal ." ] }
[ "yes-answer-long", "yes-answer-short" ]
mongodb
UNK_RELATION
simctl@simctl@42
simctl -- introduced in xcode 6 by apple @placeholder is a tool that allows you to create boot launch and then shutdown and destroy ios simulators on the fly and provides commands to install and launch specific apps .
{ "confidence": [ 44.00894546508789, 40.09090042114258, 35.23439407348633, 33.576148986816406, 32.960113525390625, 32.57860565185547, 32.26823425292969, 30.152236938476562, 29.544330596923828, 28.786788940429688, 27.2952880859375, 27.167362213134766, 27.128543853759766, 27.128543853759766, 26.584491729736328, 25.604320526123047, 25.392536163330078, 25.089866638183594, 24.025150299072266, 23.275142669677734, 23.275142669677734, 23.029577255249023, 21.892135620117188, 21.863388061523438, 20.846664428710938, 20.62162208557129, 19.947900772094727, 19.427772521972656, 18.826215744018555, 18.063030242919922, 17.324766159057617, 17.226055145263672, 16.25690460205078, 14.934826850891113, 14.526400566101074, 14.02143383026123, 13.96437931060791, 13.69503116607666, 13.69503116607666, 13.69503116607666, 13.69503116607666, 12.746834754943848, 12.311463356018066, 12.311463356018066, 12.311463356018066, 12.311463356018066, 12.311463356018066, 12.311463356018066, 12.311463356018066, 12.311463356018066, 12.311463356018066, 12.065898895263672, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777, 10.653220176696777 ], "content": [ "export SIMCTL CHILD DYLD INSERT LIBRARIES value export SIMCTL CHILD XCInjectBundleInto value xcrun simctl launch seems to communicate these environments variables to my simulators .", "It doesn t work to launch it programmatically with the command xcrun simctl boot .. . .. . So far this is the only thing I ve gotten to work .", "I am trying it something like SIMCTL CHILD DYLD INSERT LIBRARIES value SIMCTL CHILD XCInjectBundleInto value xcrun simctl launch .", "what should be a good way to launch it then from command-line if simctl does not work properly", "This happens because when you use xcrun simctl boot .. . you are not getting a full boot of the simulator .", "Have you found a way to launch .app from command-line and connected to debugger in Xcode", "If you want to script booting the device in full you ll probably want to refer to my answer in Xcode 6 - Launch simulator from command-line http : stackoverflow.com questions 26031601 xcode-6-launch-simulator-from-command-line 26053018 26053018", "See stackoverflow.com questions 26031601 http : stackoverflow.com questions 26031601 xcode-6-launch-simulator-from-command-line 26053018 26053018", "If you use simctl to boot the device it will not be usable by Simulator.app in that state because it will be booted to a headless state .", "We could set environment via xcrun simctl setenv prior to Xcode 7.0 .", "There has never been a setenv subcommand of simctl .", "Some services including those provided by the system app like install or launch are unavailable in this mode .", "I have a XCTest bundle which I can run through xcode on a simulator by using simctl .", "Compared with when running through Xcode : .. . .. . Is it possible to run tests through simctl this way", "You can launch the simulator with xcrun instruments -w iPhone 5 8.4 Simulator and to shut down the simulator with killall iOS Simulator", "In Xcode 6 and Xcode 7 Simulator.app is responsible for booting the device it uses .", "xcrun simctl erase device UUID .. . .. . open -a iOS Simulator --args -CurrentDeviceUDID device UUID .. . .. . sleep 5 .. . .. . xcrun simctl addphoto device UUID Desktop photos photo1.PNG .. . .. . sleep 1 .. . .. . killall iOS Simulator .. . .. . Since I loop through all of the simulators to set them all up with photos I have to kill the simulator before opening the next one .", "Unable to boot booted device http : i.stack.imgur.com TKTDk.png .. . .. . These lines are responsible for booting : .. . .. . So I comment them but then the build fails with : .. . .. . 2015-03-10 09 : 56 : 13.036 xcodebuild 84840 : 4008451 MT iPhoneSimulator : Unable to connect to com.apple.instruments.deviceservice.lockdown Error Domain com.apple.CoreSimulator.SimError Code 146 Unable to lookup in current state : Shutdown UserInfo 0x7fbcb2f00af0 NSLocalizedDescription Unable to lookup in current state : Shutdown .. . .. . Looks to me like Xcode and simctl can t agree which one should be responsible for booting the correct sim .", "After erasing the simulator you have to launch it first before the addphoto command will work .", "Now we can only view environment using xcrun simctl getenv device variable name .", "This http : stackoverflow.com questions 33633882 run-xctest-bundle-with-simctl gives a better understanding of what I was trying to achieve .", "Either that or you can use xcrun simctl erase .. . to erase the device to a default state .", "I ve submitted a radar but Apple only asked why I wasn t happy with using xcodebuild xcode", "Edit : .. . .. . running xcode 6.3.2 on Yosemite", "When I run this : .. . .. . xcrun simctl erase device UUID .. . .. . xcrun simctl addphoto device UUID Desktop photos photo1.PNG .. . .. . I get this error : .. . .. . An error was encountered processing the command code 146 : .. . .. . Invalid device state .. . .. . How can I erase the simulator and then add photos to it programmatically", "I m trying to use xcrun simctl to boot a device and uninstall an application but it hangs on the uninstall step .. . .. . and it hangs on uninstall and sits forever...however if i have the simulator already running and execute .. . .. . it works fine...but i m trying to do this in a script without opening the simulator manually", "Now when I run my app from titanium command-line in the simulator.. . .. . .. . ...it gives me the debug output which also holds the results from the unit tests .. . .. . How can I get this output using simctl", "The job is properly invoked but before the tests are run I need to erase the simulators in order to tests first time startup of the app .", "The SIMCTL CHILD environment-variables effect the environments of the spawned processes launched jobs and boot environments .", "I want to run my unit tests in several languages : .. . .. . Seems to be the way to run an app in a specific language .", "I am using xcode 6.3.2 on Yosemite .. . .. . The simulator is booted at installation time .", "Does this http : stackoverflow.com questions 27598931 launching-unit-tests-from-ios-sim-doesnt-execute-all-tests help", "I am using the iPhone 6 iOS 9.1 simulator with the following environment-variables : .. . .. . The app is already installed on the simulator by this point and the simulator is running and I run : .. . .. . The app launches and from the simulator log I can see that the XCTest bundle loads but the tests don t run .", "For UI Automation testing I want to have a Reset iOS Simulator and then add a few photos to it before being my automation scripts begin .", "Thank you for the pointer .", "Please explain where you expect this environment variable to actually be set .", "When I try to install my app in the booted simulator like this : .. . .. . I get the following result : .. . .. . When I inspect the Info.plist inside the .app the CFBundleIdentiefier is there and correct .", "Or should I use another way to run my app in a different language", "Found a workaraound by creating several instances of the simulator with their own settings like language and locale .", "We can now select the appropriate simulator and feed it into the ti build command using --device-id : ti build --no-colors --no-progress-bars --no-prompt build --platform iphone --log-level info --sdk 3.5.0.GA --project-dir Users User Project app --target simulator --device-id 100FA320-AC35-4B2A-8530-81E6715FC079", "I need to do this for some reason but can t figure out how .", "Have you made any progress", "I am looking for a way to set environment while using xcrun .", "I have seen a reference of SIMCTL CHILD but I am not sure how to use it .", "I know that its a simple thing and I am missing a tiny piece here .", "Really appreciate if someone can help me with this .", "I tried that already but its not setting up the environment correctly .", "But its not working .", "Am I doing something wrong here", "It s not really clear what a setenv command would do or even how it would work .", "So the part to be able to set environment is resolved .", "I d be interested in exactly this topic too but havn t made it any further than you so far .", "The device must be booted in order to add photos to it .", "What am I doing wrong", "All it was was a wrong path : .. . .. . The first forward slash shouldn t be there.. . as simple as that :", "I should probably make the error message a bit better for that case .", "Please file a radar at bugreport.apple.com http : bugreport.apple.com", "Filed under bug nr : 21456832", "Got report that it was fixed in upcoming version of XC but have not been able to verify yet .", "so the only way to actually uninstall an app from a device is by opening the simulator with open -a Simulator first", "thanks for the response...unfortunately i think that would erase everything...not just the app i m trying to uninstall", "Yes .", "Those are your options at present .", "I have logged out where it seems to stop and there is a private method checkForTestManager more specifically checkManagerForDaemonStateAndConnectIfAvailable .", "From what I can tell XCTest is trying to connect to testmanagerd but failing .", "So I tried kickstarting testmanagerd on the simulator using : .. . .. . But this doesn t seem to have an effect on the tests running but I do see some additional output in the simulator log : .. . .. . But nothing after that .", "I haven t .", "I actually started doing this as a way of possibly running tests using FBSimulatorControl and got stuck at this point .", "I m optimistic this can be done.. . still trying to figure it out myself .", "Perhaps testmanagerd needs to be launched with certain arguments .", "I m trying to automate the functional-testing I have in my project .", "For this I use Jenkins and run the test tasks using the post-receive git hook .", "I do the following : .. . .. . When I run this I get : .. . .. .", "Any ideas" ] }
{ "confidence": [ 75.4765853881836, 63.85785675048828, 60.77836608886719, 60.61888885498047, 58.845672607421875, 42.0232048034668, 38.685462951660156, 32.37998962402344, 19.56888198852539 ], "content": [ "Question : I m trying to automate the functional-testing I have in my project . For this I use Jenkins and run the test tasks using the post-receive git hook . The job is properly invoked but before the tests are run I need to erase the simulators in order to tests first time startup of the app . I do the following : .. . .. . When I run this I get : .. . .. . Unable to boot booted device http : i.stack.imgur.com TKTDk.png .. . .. . These lines are responsible for booting : .. . .. . So I comment them but then the build fails with : .. . .. . 2015-03-10 09 : 56 : 13.036 xcodebuild 84840 : 4008451 MT iPhoneSimulator : Unable to connect to com.apple.instruments.deviceservice.lockdown Error Domain com.apple.CoreSimulator.SimError Code 146 Unable to lookup in current state : Shutdown UserInfo 0x7fbcb2f00af0 NSLocalizedDescription Unable to lookup in current state : Shutdown .. . .. . Looks to me like Xcode and simctl can t agree which one should be responsible for booting the correct sim . Any ideas .. . Answer : In Xcode 6 and Xcode 7 Simulator.app is responsible for booting the device it uses . If you use simctl to boot the device it will not be usable by Simulator.app in that state because it will be booted to a headless state . Comment : what should be a good way to launch it then from command-line if simctl does not work properly Comment : See stackoverflow.com questions 26031601 http : stackoverflow.com questions 26031601 xcode-6-launch-simulator-from-command-line 26053018 26053018", "Question : I m trying to use xcrun simctl to boot a device and uninstall an application but it hangs on the uninstall step .. . .. . and it hangs on uninstall and sits forever...however if i have the simulator already running and execute .. . .. . it works fine...but i m trying to do this in a script without opening the simulator manually .. . Answer : This happens because when you use xcrun simctl boot .. . you are not getting a full boot of the simulator . Some services including those provided by the system app like install or launch are unavailable in this mode . If you want to script booting the device in full you ll probably want to refer to my answer in Xcode 6 - Launch simulator from command-line http : stackoverflow.com questions 26031601 xcode-6-launch-simulator-from-command-line 26053018 26053018 Comment : so the only way to actually uninstall an app from a device is by opening the simulator with open -a Simulator first Comment : Either that or you can use xcrun simctl erase .. . to erase the device to a default state . Comment : thanks for the response...unfortunately i think that would erase everything...not just the app i m trying to uninstall Comment : Yes . Those are your options at present .", "Question : For UI Automation testing I want to have a Reset iOS Simulator and then add a few photos to it before being my automation scripts begin . When I run this : .. . .. . xcrun simctl erase device UUID .. . .. . xcrun simctl addphoto device UUID Desktop photos photo1.PNG .. . .. . I get this error : .. . .. . An error was encountered processing the command code 146 : .. . .. . Invalid device state .. . .. . How can I erase the simulator and then add photos to it programmatically .. . Answer : After erasing the simulator you have to launch it first before the addphoto command will work . It doesn t work to launch it programmatically with the command xcrun simctl boot .. . .. . So far this is the only thing I ve gotten to work . xcrun simctl erase device UUID .. . .. . open -a iOS Simulator --args -CurrentDeviceUDID device UUID .. . .. . sleep 5 .. . .. . xcrun simctl addphoto device UUID Desktop photos photo1.PNG .. . .. . sleep 1 .. . .. . killall iOS Simulator .. . .. . Since I loop through all of the simulators to set them all up with photos I have to kill the simulator before opening the next one .", "Question : I m trying to automate the functional-testing I have in my project . For this I use Jenkins and run the test tasks using the post-receive git hook . The job is properly invoked but before the tests are run I need to erase the simulators in order to tests first time startup of the app . I do the following : .. . .. . When I run this I get : .. . .. . Unable to boot booted device http : i.stack.imgur.com TKTDk.png .. . .. . These lines are responsible for booting : .. . .. . So I comment them but then the build fails with : .. . .. . 2015-03-10 09 : 56 : 13.036 xcodebuild 84840 : 4008451 MT iPhoneSimulator : Unable to connect to com.apple.instruments.deviceservice.lockdown Error Domain com.apple.CoreSimulator.SimError Code 146 Unable to lookup in current state : Shutdown UserInfo 0x7fbcb2f00af0 NSLocalizedDescription Unable to lookup in current state : Shutdown .. . .. . Looks to me like Xcode and simctl can t agree which one should be responsible for booting the correct sim . Any ideas .. . Answer : You can launch the simulator with xcrun instruments -w iPhone 5 8.4 Simulator and to shut down the simulator with killall iOS Simulator", "Question : null .. . Answer : I am looking for a way to set environment while using xcrun . We could set environment via xcrun simctl setenv prior to Xcode 7.0 . Now we can only view environment using xcrun simctl getenv device variable name . I have seen a reference of SIMCTL CHILD but I am not sure how to use it . I know that its a simple thing and I am missing a tiny piece here . Really appreciate if someone can help me with this . Comment : Does this http : stackoverflow.com questions 27598931 launching-unit-tests-from-ios-sim-doesnt-execute-all-tests help Comment : Thank you for the pointer . I tried that already but its not setting up the environment correctly . I am trying it something like SIMCTL CHILD DYLD INSERT LIBRARIES value SIMCTL CHILD XCInjectBundleInto value xcrun simctl launch . But its not working . Am I doing something wrong here Comment : export SIMCTL CHILD DYLD INSERT LIBRARIES value export SIMCTL CHILD XCInjectBundleInto value xcrun simctl launch seems to communicate these environments variables to my simulators . Comment : There has never been a setenv subcommand of simctl . Please explain where you expect this environment variable to actually be set . The SIMCTL CHILD environment-variables effect the environments of the spawned processes launched jobs and boot environments . It s not really clear what a setenv command would do or even how it would work . Comment : This http : stackoverflow.com questions 33633882 run-xctest-bundle-with-simctl gives a better understanding of what I was trying to achieve . So the part to be able to set environment is resolved .", "Question : null .. . Answer : I want to run my unit tests in several languages : .. . .. . Seems to be the way to run an app in a specific language . Now when I run my app from titanium command-line in the simulator.. . .. . .. . ...it gives me the debug output which also holds the results from the unit tests .. . .. . How can I get this output using simctl Or should I use another way to run my app in a different language Edit : .. . .. . running xcode 6.3.2 on Yosemite Comment : Found a workaraound by creating several instances of the simulator with their own settings like language and locale . We can now select the appropriate simulator and feed it into the ti build command using --device-id : ti build --no-colors --no-progress-bars --no-prompt build --platform iphone --log-level info --sdk 3.5.0.GA --project-dir Users User Project app --target simulator --device-id 100FA320-AC35-4B2A-8530-81E6715FC079 Comment : Have you found a way to launch .app from command-line and connected to debugger in Xcode I need to do this for some reason but can t figure out how .", "Question : null .. . Answer : I have a XCTest bundle which I can run through xcode on a simulator by using simctl . I am using the iPhone 6 iOS 9.1 simulator with the following environment-variables : .. . .. . The app is already installed on the simulator by this point and the simulator is running and I run : .. . .. . The app launches and from the simulator log I can see that the XCTest bundle loads but the tests don t run . I have logged out where it seems to stop and there is a private method checkForTestManager more specifically checkManagerForDaemonStateAndConnectIfAvailable . From what I can tell XCTest is trying to connect to testmanagerd but failing . So I tried kickstarting testmanagerd on the simulator using : .. . .. . But this doesn t seem to have an effect on the tests running but I do see some additional output in the simulator log : .. . .. . But nothing after that . Compared with when running through Xcode : .. . .. . Is it possible to run tests through simctl this way Comment : Have you made any progress I d be interested in exactly this topic too but havn t made it any further than you so far . Comment : I haven t . I actually started doing this as a way of possibly running tests using FBSimulatorControl and got stuck at this point . I ve submitted a radar but Apple only asked why I wasn t happy with using xcodebuild xcode Comment : I m optimistic this can be done.. . still trying to figure it out myself . Perhaps testmanagerd needs to be launched with certain arguments .", "Question : For UI Automation testing I want to have a Reset iOS Simulator and then add a few photos to it before being my automation scripts begin . When I run this : .. . .. . xcrun simctl erase device UUID .. . .. . xcrun simctl addphoto device UUID Desktop photos photo1.PNG .. . .. . I get this error : .. . .. . An error was encountered processing the command code 146 : .. . .. . Invalid device state .. . .. . How can I erase the simulator and then add photos to it programmatically .. . Answer : The device must be booted in order to add photos to it .", "Question : When I try to install my app in the booted simulator like this : .. . .. . I get the following result : .. . .. . When I inspect the Info.plist inside the .app the CFBundleIdentiefier is there and correct . I am using xcode 6.3.2 on Yosemite .. . .. . The simulator is booted at installation time . What am I doing wrong .. . Answer : All it was was a wrong path : .. . .. . The first forward slash shouldn t be there.. . as simple as that : Comment : I should probably make the error message a bit better for that case . Please file a radar at bugreport.apple.com http : bugreport.apple.com Comment : Filed under bug nr : 21456832 Comment : Got report that it was fixed in upcoming version of XC but have not been able to verify yet ." ] }
[ "yes-answer-long", "yes-answer-short" ]
simctl
UNK_RELATION
jettison@java@41
jettison -- jettison is a collection of @placeholder apis like stax and dom which read and write json .
{ "confidence": [ 48.062835693359375, 43.61830520629883, 43.01651382446289, 41.06211853027344, 41.06211853027344, 41.06211853027344, 40.457855224609375, 39.98363494873047, 37.86127853393555, 37.59962463378906, 37.59962463378906, 35.5923957824707, 32.93566131591797, 32.141727447509766, 29.380107879638672, 19.87851333618164, 19.498214721679688, 19.461681365966797, 18.412431716918945, 17.505041122436523, 16.735496520996094, 16.735496520996094, 16.328433990478516, 15.259449005126953, 14.844480514526367, 13.43004322052002, 12.450242042541504, 12.450242042541504, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652, 10.773306846618652 ], "content": [ "Jettison is old .", "Jettison won t be able to handle it at least .", "With clean jettison there is possibility to write own implementation of TypeConverter described in jettison user s guide http : jettison.codehaus.org User 27s+Guide UsersGuide-Typeconversion .. .", "So actually no problem with Jettison i would say", "Is there any way that jettison can work with that kind of request", "Is there any way to provide Custom TypeConverter in resteasy-jettison", "I would like to do the Communication with the Rest Interface using the Jettison JAXB JSon Provider .", "My application is using camel rest 2.15.2 to catch a POST json String and then uses jettison to convert to a JSON Object .", "What is the fundmental difference between using RestEasy JSON Provider Jettison Badgerfish mapping over Jackson", "By default jettison parse String value into int if it contains only numbers.. .", "But I have no Idea where could I update jettison configuration with such class .", "System.setProperty jettison.mapped.typeconverter.class org.codehaus.jettison.mapped.SimpleConverter .. . .. . So jettison have simple converter which always output the values as strings .", "But i still prefer a way that jettison can work with it Or camel-rest stops stripping off the double quote .", "If you use JBoss @BadgerFish http : grepcode.com file repo1.maven.org maven2 org.jboss.resteasy resteasy-jettison-provider 2.3.2.Final org jboss resteasy annotations providers jaxb json BadgerFish.java BadgerFish annotation just remove it .", "It looks like you have enabled BadgerFish http : badgerfish.ning.com notation for your Jettison converter I am not aware about BadgerFish notation support in Jackson http : wiki.fasterxml.com JacksonFAQ Which mappings .28Badgerfish.2C natural.2C ....29 does Jackson implement.3F or MOXy http : blog.bdoughan.com 2012 03 moxy-as-your-jax-rs-json-provider.html .", "unmarshalling JSON Objects works like a charm .. . .. . thanks for any hints .", "the result in JSON format is .. . .. . Any idea how I do to transform in simple json format", "Could you please help me to fix this issue : convert json string which contains element has empty value string to json object .", "I m trying to serialize JSON via JAXB using CXF .", "Jackson is arguably the standard Java Library for processing JSON .", "Jackson is 100 JSON and does not try to imitate or emulate XML .", "Only explains that Jackson is its own pure JSON provider .", "There are some support compatibility features -- such as ability to optionally use JAXB annotations -- but fundamentally Jackson is a pure JSON Java data mapper and tries to minimize impedance between JSON and Java data models .", "If you use JSONJAXBContext BADGERFISH http : grepcode.com file repo1.maven.org maven2 com.sun.jersey jersey-bundle 1.12 com sun jersey api json JSONJAXBContext.java 86 option setting then change it to MAPPED or NATURAL check documentation http : jersey.java.net nonav documentation latest json.html d4e949 .", "worked like a charm", "http : wiki.fasterxml.com JacksonFAQ Which mappings .28Badgerfish.2C natural.2C ....29 does Jackson implement.3F .. . .. . Which mappings Badgerfish natural .. . does Jackson implement", "The problem is when the element to transform is a Object type .", "Set writesiType false in JSONProvider Bean configuration", "It is working fine with normal request .", "When i debug variable body request lname aaa fname bb .", "And line 2 returns a JSONObject .", "so far so good .. . .. . if we try to another the request : .. . .. . then body request lname fname aa line2 returns Exception .", "The above request is acceptable in my scenarios .", "Error : .. . .. . org.codehaus.jettison.json.JSONException : Missing value .", "at character 15 of request lname fname aa at org.codehaus.jettison.json.JSONTokener.syntaxError JSONTokener.java : 463 at org.codehaus.jettison.json.JSONTokener.nextValue JSONTokener.java : 356 at org.codehaus.jettison.json.JSONObject .", "JSONObject.java : 230 at org.codehaus.jettison.json.JSONTokener.newJSONObject JSONTokener.java : 412 at org.codehaus.jettison.json.JSONTokener.nextValue JSONTokener.java : 327 at org.codehaus.jettison.json.JSONObject .", "JSONObject.java : 230 at org.codehaus.jettison.json.JSONObject .", "JSONObject.java : 311", "Well something seems to be stripping your quotations and it seems to happen before the message gets on the exchange .", "Yes I agree .", "No you should investigate why your quotations are stripped from the string", "Camel-rest stripped off the double quote .", "Currently to bypass this issue i have to manually replace all blank by double quote .", "Pattern.compile s .matcher body .replaceAll", "Sounds very weird anyway .", "And I don t know why they are getting stripped probably because of how you are sending the data or some config of the restConfig", "Try to debug it", "I need to change it .", "Set the system property to below class .", "What is is pros and cons of using the one over the other", "Jackson is included in Glassfish .", "Also some developers has warned me to stay off Badgerfish .", "You can implement Jackson in Resteasy see here .", "http : docs.jboss.org resteasy docs 1.1.GA userguide html json.html", "What are the reasons to stay off Badgerfish", "None .", "Property name mapping is based on standard Java Bean naming convention although can be overridden using annotations or custom naming strategy .", "That is why I added the disclaimer about my ignorance .", ": sorry I couldn t help", "I am developing a Java EE webapp using JBoss AS 7 and Resteasy .", "As a demo I implemented the following JAXB annotated class : .. . .. . To get the object I implemented the following webservice : .. . .. . now if I do the GET request I get the following response : .. . .. . I would be expecting .. . .. . am I doing something wrong here", "Try using Jackson as your JAXB implementation output writer .", "thanks ." ] }
{ "confidence": [ 55.32134246826172, 51.90202331542969, 50.22163391113281, 49.168434143066406, 44.44886779785156, 42.97381591796875, 19.064233779907227 ], "content": [ "Question : Is there any way to provide Custom TypeConverter in resteasy-jettison By default jettison parse String value into int if it contains only numbers.. . I need to change it . With clean jettison there is possibility to write own implementation of TypeConverter described in jettison user s guide http : jettison.codehaus.org User 27s+Guide UsersGuide-Typeconversion .. . But I have no Idea where could I update jettison configuration with such class . .. . Answer : Set the system property to below class . System.setProperty jettison.mapped.typeconverter.class org.codehaus.jettison.mapped.SimpleConverter .. . .. . So jettison have simple converter which always output the values as strings .", "Question : null .. . Answer : My application is using camel rest 2.15.2 to catch a POST json String and then uses jettison to convert to a JSON Object . It is working fine with normal request . When i debug variable body request lname aaa fname bb . And line 2 returns a JSONObject . so far so good .. . .. . if we try to another the request : .. . .. . then body request lname fname aa line2 returns Exception . Could you please help me to fix this issue : convert json string which contains element has empty value string to json object . The above request is acceptable in my scenarios . Error : .. . .. . org.codehaus.jettison.json.JSONException : Missing value . at character 15 of request lname fname aa at org.codehaus.jettison.json.JSONTokener.syntaxError JSONTokener.java : 463 at org.codehaus.jettison.json.JSONTokener.nextValue JSONTokener.java : 356 at org.codehaus.jettison.json.JSONObject . JSONObject.java : 230 at org.codehaus.jettison.json.JSONTokener.newJSONObject JSONTokener.java : 412 at org.codehaus.jettison.json.JSONTokener.nextValue JSONTokener.java : 327 at org.codehaus.jettison.json.JSONObject . JSONObject.java : 230 at org.codehaus.jettison.json.JSONObject . JSONObject.java : 311 Comment : Well something seems to be stripping your quotations and it seems to happen before the message gets on the exchange . So actually no problem with Jettison i would say Comment : Yes I agree . Is there any way that jettison can work with that kind of request Comment : No you should investigate why your quotations are stripped from the string Comment : Camel-rest stripped off the double quote . Currently to bypass this issue i have to manually replace all blank by double quote . But i still prefer a way that jettison can work with it Or camel-rest stops stripping off the double quote . Pattern.compile s .matcher body .replaceAll Comment : Sounds very weird anyway . Jettison won t be able to handle it at least . And I don t know why they are getting stripped probably because of how you are sending the data or some config of the restConfig Try to debug it", "Question : What is the fundmental difference between using RestEasy JSON Provider Jettison Badgerfish mapping over Jackson What is is pros and cons of using the one over the other .. . Answer : Jettison is old . Jackson is arguably the standard Java Library for processing JSON . Jackson is included in Glassfish . Also some developers has warned me to stay off Badgerfish . You can implement Jackson in Resteasy see here . http : docs.jboss.org resteasy docs 1.1.GA userguide html json.html Comment : What are the reasons to stay off Badgerfish", "Question : I m trying to serialize JSON via JAXB using CXF . The problem is when the element to transform is a Object type . the result in JSON format is .. . .. . Any idea how I do to transform in simple json format .. . Answer : It looks like you have enabled BadgerFish http : badgerfish.ning.com notation for your Jettison converter I am not aware about BadgerFish notation support in Jackson http : wiki.fasterxml.com JacksonFAQ Which mappings .28Badgerfish.2C natural.2C ....29 does Jackson implement.3F or MOXy http : blog.bdoughan.com 2012 03 moxy-as-your-jax-rs-json-provider.html . If you use JBoss @BadgerFish http : grepcode.com file repo1.maven.org maven2 org.jboss.resteasy resteasy-jettison-provider 2.3.2.Final org jboss resteasy annotations providers jaxb json BadgerFish.java BadgerFish annotation just remove it . If you use JSONJAXBContext BADGERFISH http : grepcode.com file repo1.maven.org maven2 com.sun.jersey jersey-bundle 1.12 com sun jersey api json JSONJAXBContext.java 86 option setting then change it to MAPPED or NATURAL check documentation http : jersey.java.net nonav documentation latest json.html d4e949 .", "Question : null .. . Answer : I am developing a Java EE webapp using JBoss AS 7 and Resteasy . I would like to do the Communication with the Rest Interface using the Jettison JAXB JSon Provider . As a demo I implemented the following JAXB annotated class : .. . .. . To get the object I implemented the following webservice : .. . .. . now if I do the GET request I get the following response : .. . .. . I would be expecting .. . .. . am I doing something wrong here unmarshalling JSON Objects works like a charm .. . .. . thanks for any hints . Comment : Try using Jackson as your JAXB implementation output writer . Comment : thanks . worked like a charm", "Question : What is the fundmental difference between using RestEasy JSON Provider Jettison Badgerfish mapping over Jackson What is is pros and cons of using the one over the other .. . Answer : http : wiki.fasterxml.com JacksonFAQ Which mappings .28Badgerfish.2C natural.2C ....29 does Jackson implement.3F .. . .. . Which mappings Badgerfish natural .. . does Jackson implement None . Jackson is 100 JSON and does not try to imitate or emulate XML . Property name mapping is based on standard Java Bean naming convention although can be overridden using annotations or custom naming strategy . There are some support compatibility features -- such as ability to optionally use JAXB annotations -- but fundamentally Jackson is a pure JSON Java data mapper and tries to minimize impedance between JSON and Java data models . Comment : Only explains that Jackson is its own pure JSON provider . Comment : That is why I added the disclaimer about my ignorance . : sorry I couldn t help", "Question : I m trying to serialize JSON via JAXB using CXF . The problem is when the element to transform is a Object type . the result in JSON format is .. . .. . Any idea how I do to transform in simple json format .. . Answer : Set writesiType false in JSONProvider Bean configuration" ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
boost-mpl@compile-time@110
boost-mpl -- the boost.mpl library is a general-purpose high-level c++ template metaprogramming framework of @placeholder algorithms sequences and metafunctions .
{ "confidence": [ 43.00517654418945, 42.15144348144531, 41.3792610168457, 40.94536209106445, 40.71711730957031, 39.706966400146484, 38.947818756103516, 38.714256286621094, 38.714256286621094, 37.936279296875, 37.936279296875, 37.256263732910156, 36.959510803222656, 36.959510803222656, 36.959510803222656, 36.6445198059082, 36.27564239501953, 36.26602554321289, 36.22776794433594, 36.22776794433594, 36.009002685546875, 36.00184631347656, 35.85401153564453, 35.85401153564453, 35.650856018066406, 35.326194763183594, 35.326194763183594, 35.326194763183594, 35.25543212890625, 35.12336730957031, 34.94990158081055, 34.582603454589844, 34.582603454589844, 34.582603454589844, 34.582603454589844, 34.582603454589844, 34.13623046875, 33.69286346435547, 33.69286346435547, 33.175010681152344, 33.03547668457031, 32.94929122924805, 32.94929122924805, 32.94929122924805, 32.94929122924805, 32.684757232666016, 32.35771942138672, 32.26312255859375, 31.982656478881836, 31.897377014160156, 31.691997528076172, 31.689617156982422, 31.65947723388672, 31.46590805053711, 31.445072174072266, 31.380931854248047, 31.308197021484375, 31.27206802368164, 31.253238677978516, 31.19350814819336, 31.174774169921875, 30.991718292236328, 30.991718292236328, 30.897079467773438, 30.693782806396484, 30.67211151123047, 30.400146484375, 30.349342346191406, 30.218055725097656, 30.191425323486328, 30.09484100341797, 29.905536651611328, 29.747615814208984, 29.747615814208984, 29.49639320373535, 29.49639320373535, 29.43896484375, 29.42144012451172, 29.26858901977539, 29.263763427734375, 29.156124114990234, 29.128402709960938, 29.0667667388916, 29.055660247802734, 28.985084533691406, 28.96405029296875, 28.889968872070312, 28.889833450317383, 28.695392608642578, 28.695392608642578, 28.695392608642578, 28.695392608642578, 28.695392608642578, 28.68820571899414, 28.68073272705078, 28.68073272705078, 28.68073272705078, 28.68073272705078, 28.643260955810547, 28.345199584960938 ], "content": [ "Is there a way to deduce the signature result- and parameter-types of a c++0x lambda as a Boost.MPL sequence for example a boost : : mpl : : vector", "For example the following call preprocesses only the variadic form of Boost.MPL vector and also sets the macro BOOST MPL LIMIT VECTOR SIZE in . boost-source boost-mpl limits vector.hpp to 70 .", "The following code produce errors : .. . .. . full source here : http : liveworkspace.org code 31902a4b1b0831d054119bc0b8923cb6 errors : .. . .. . In file included from source.cpp : 3 : 0 : string.hpp : In instantiation of boost : : mpl : : push-back impl boost : : mpl : : string tag .. . .. . : : apply boost : : mpl : : string 24930 : boost-mpl push back.hpp : 32 : 1 : .. . instantiated from boost : : mpl : : push-back boost : : mpl : : string boost : : mpl : : string 24930 boost-mpl aux has type.hpp : 20 : 1 : .. . instantiated from const bool boost : : mpl : : aux : : has type boost : : mpl : : push-back boost : : mpl : : string 24930 mpl : : bool : : value boost-mpl aux has type.hpp : 20 : 1 : .. . instantiated from boost : : mpl : : aux : : has type boost : : mpl : : push-back boost : : mpl : : string 24930 mpl : : bool boost-mpl aux preprocessed gcc quote.hpp : 56 : 5 : instantiated from boost : : mpl : : quote2 boost : : mpl : : push-back : : apply boost : : mpl : : string 24930 boost-mpl aux preprocessed gcc apply wrap.hpp : 49 : 1 : instantiated from boost : : mpl : : apply wrap2 boost : : mpl : : quote2 boost : : mpl : : string boost : : mpl : : string 24930 boost-mpl aux preprocessed gcc bind.hpp : 207 : 21 : instantiated from boost : : mpl : : bind2 boost : : mpl : : quote2 mpl : : arg 1 mpl : : arg 2 : : apply boost : : mpl : : string 24930 boost-mpl aux preprocessed gcc apply wrap.hpp : 49 : 1 : instantiated from boost : : mpl : : apply wrap2 boost : : mpl : : protect boost : : mpl : : bind2 mpl : : arg 1 mpl : : arg 2 0 boost : : mpl : : string boost : : mpl : : string 24930 boost-mpl aux preprocessed gcc apply.hpp : 73 : 1 : instantiated from boost : : mpl : : apply2 boost : : mpl : : push-back mpl : : arg 2 boost : : mpl : : string boost : : mpl : : string 24930 boost-mpl aux preprocessed gcc fold impl.hpp : 87 : 85 : instantiated from boost : : mpl : : aux : : fold impl 3 boost : : mpl : : v iter boost : : mpl : : vector boost : : mpl : : string 25444 boost : : mpl : : string 25958 0l boost : : mpl : : v iter boost : : mpl : : vector boost : : mpl : : string 25444 boost : : mpl : : string 25958 3l boost : : mpl : : string boost : : mpl : : push-back mpl : : arg 2 boost-mpl fold.hpp : 39 : 18 : instantiated from boost : : mpl : : fold boost : : mpl : : vector boost : : mpl : : string 25444 boost : : mpl : : string 25958 boost : : mpl : : string boost : : mpl : : push-back mpl : : arg 2 source.cpp : 18 : 2 : instantiated from here string.hpp : 207 : 53 : error : value is not a member of boost : : mpl : : string 24930 In file included from boost-mpl back inserter.hpp : 18 : 0 from boost-mpl aux inserter algorithm.hpp : 18 from boost-mpl copy.hpp : 20 from string.hpp : 26 from source.cpp : 3 : boost-mpl push back.hpp : In instantiation of boost : : mpl : : push-back boost : : mpl : : push-back boost : : mpl : : string 24930 boost : : mpl : : string 25444 : boost-mpl aux has type.hpp : 20 : 1 : .. . instantiated from const bool boost : : mpl : : aux : : has type boost : : mpl : : push-back boost : : mpl : : push-back boost : : mpl : : string 24930 boost : : mpl : : string 25444 mpl : : bool : : value boost-mpl aux has type.hpp : 20 : 1 : .. . instantiated from boost : : mpl : : aux : : has type boost : : mpl : : push-back boost : : mpl : : push-back boost : : mpl : : string 24930 boost : : mpl : : string 25444 mpl : : bool boost-mpl aux preprocessed gcc quote.hpp : 56 : 5 : instantiated from boost : : mpl : : quote2 boost : : mpl : : push-back", "If this is really of interest to you read the book C++ Template Metaprogramming by the main authors of Boost MPL it explains the motivations behind all these kinds of things .", "mpl : : minus is a template in MPL s metalanguage that symbolically represents or corresponds to a certain high-level behavior namely subtraction .", "I have a full to boost and to std template that allows conversion to and from arbitrary boost-mpl Sequences", "I assume that something along the lines of how boost : : mpl handles variadic metafunctions ie magic using boost : : preprocessor could be made to work -- but that s so c++03 .", "I m convinced this is a bug in boost : : mpl .", "How to do such thing with boost : : mpl", "I guess that using boost : : mpl : : string as the second parameter in the boost : : mpl : : pair could also work .", "The solution is to simply add typedef m item type to boost : : mpl : : m item in boost-mpl map aux item.hpp .", "@Brian yes but this will do boost : : mpl : : c-str with boost : : mpl : : string boost.org doc libs 1 40 0 libs mpl doc refmanual string.html http : www.boost.org doc libs 1 40 0 libs mpl doc refmanual string.html", "I need this to work with boost : : mpl : : string .", "I just want to work with boost : : mpl : : string .", "Missing boost-mpl at.hpp is a problem here .", "The only operation allowed at runtime on MPL sequences is for each .", "types : .. . .. . But this doesn t work presumably because the return-type of boost : : mpl : : transform is some template expression .", "You can use mpl : : transform to define the pointer version on the fly : boost : : mpl : : for each boost : : mpl : : transform MyTypes boost : : add pointer boost : : mpl : : 1 : : type Functor", "The design of boost : : mpl is a bit archaic since it predates C++11 s variadic-templates and template aliases .", "I was working on porting some Windows c++ code to linux which involves template-specialization and boost : : mpl .", "I would like to know how to implement a template metaprogramming structure like boost : : mpl : : map http : www.boost.org doc libs 1 57 0 libs mpl doc refmanual map.html that is a structure that supports constant-time insertion and removal of elements and testing for membership .", "To check whether two Forward Sequences are equal you must use the boost : : mpl : : equal http : www.boost.org doc libs 1 56 0 libs mpl doc refmanual equal.html algorithm instead .", "More precisely I think so : .. . .. . I have a lot of constants and I work with them with boost : : mpl : : vector boost : : mpl : : vector c .", "Possibly this does not even compile because the underlying boost : : mpl : : vector21 to boost : : mpl : : vectorN cannot be found because not being included automatically .", "For example by adding .. . .. . to SOURCE libs mpl preprocessed include gcc user.hpp the boost : : mpl : : vector included from boost-mpl vector.hpp is able to hold 30 elements now instead of the default 20 .", "Using boost : : mpl : : fold : .. . .. . Using std : : make index sequence :", "How I can concatenate boost : : mpl : : string", "Is there any way to create a type list with boost : : mpl", "When I parse something that have this element it fails with this error : .. . .. . eddic : usr include boost-variant detail visitation impl.hpp : 264 : typename Visitor : : result type boost : : detail : : variant : : visitation impl int int Visitor VoidPtrCV mpl : : false NoBackupFlag Which step0 with Which mpl : : int 0 step0 boost : : detail : : variant : : visitation impl step boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0l boost : : mpl : : v iter boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item boost : : mpl : : v item 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21l Visitor boost : : variant boost : : mpl : : vector eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Null eddic : : ast : : True eddic : : ast : : False eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred 0 boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void : : assigner VoidPtrCV const void NoBackupFlag boost : : variant boost : : mpl : : vector eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Null eddic : : ast : : True eddic : : ast : : False eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred eddic : : ast : : Deferred 0 boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void boost : : detail : : variant : : void : : has fallback type typename Visitor : : result type void mpl : : false mpl : : bool : Assertion", "Isnt there something in mpl : : boost already", "The Tutorial : Metafunctions and Higher-Order Metaprogramming http : www.boost.org doc libs 1 56 0 libs mpl doc tutorial implementing-division.html section of the Boost MPL library documentation states that transform can be invoked like so .. . .. . where the placeholders 1 and 2 signify that when the transform s BinaryOperation is invoked its first and second arguments will be passed on to minus in the positions indicated by 1 and 2 respectively .", "How can I implement nested boost : : mpl : : fold", "Best solution is probably to adjust the value in SOURCE boost-mpl limits vector.hpp .", "They are located int boost-source-dir libs mpl preprocessed .", "Now every class in boost : : mpl is a metafunction containers are a metafunction that return themselves .", "I wish to inherit from a set of classes contained in a boost-mpl : : vector .", "The boost : : mpl algorithms seem not to be able to work on std : : tuple types out of the box e.g . the following does not compile boost-1.46.0 g++ snapshot 2011-02-19 : .. . .. . What is the easiest way to make the boost : : mpl algorithms work on std : : tuple", "You could use boost : : mpl : : front inserter Types or simply use a mpl : : vector in your Types typedef .", "I can t seem to find any decent documentation for mpl : : list and I m even failing to port the code to boost : : mpl .", "Well mpl : : minus lets you specify those things as template parameters .", "mpl : : minus represents the subtraction operation at a higher level of abstraction .", "Both these code-snippets assume using namespace boost : : mpl .", "I also tried boost : : mpl : : vector21 and the problem is the same .", "My Goal would be to have a function like this : .. . .. . Is this possible with boost : : mpl", "What exactly does the boost : : mpl : : apply FuserFunc T do", "I m trying to figure out a way to use Boost : : MPL to generate a typename which is the concatenation of a template parameter and a string .", "I cannot seem to see the difference between boost : : is same and boost : : mpl : : same as .", ": P .. . .. . The easiest way for you however would rather be boost : : tuple instead of using boost : : mpl since mpl is mostly compile-time only .", "In that case my next question is how do I convert my boost : : mpl : : map to a boost : : fusion : : map that I can then instantiate", "according to fusion documentation filter if works with unary mpl lambda expressions and according to mpl documentation if we remove lambda and leave boost : : mpl : : contains vec ids type get first boost : : mpl : : 1 it is still a valid unary mpl lambda expression so i don get it .", "I m trying to compile the Statemachine example from boost-mpl located in libs mpl examples fsm player2.cpp but it fails with boost version 1.37 and g++ 4.8.2 .", "I have access to the full boost library in my code base so I m hoping boost : : mpl : : vector can be useful here .", "If you actually look at the source http : www.boost.org doc libs 1 55 0 boost-mpl same as.hpp of mpl : : same as it includes is same and then uses it directly .", "The result-of inserting an element into an mpl : : map is not an item of type mpl : : map but of mpl : : m item .", "The problem is with the specific peculiarites of the template metaprogramming constructs .", "So I ve built my boost : : mpl : : map object which contains some mixture of keys and types .", "This results in creating preprocessed headers for all four Boost.MPL container types vector list set and map with their numbered and variadic http : www.boost.org doc libs 1 55 0 libs mpl doc refmanual variadic-sequence.html form .", "Generally I would use boost : : mpl : : for each to traverse a boost : : mpl : : vector but this requires a functor with a template function declared like the following : .. . .. . template typename T void operator T T : : staticCall .. . .. . My problem with this is that I don t want the object T to be instantiated by for each .", "If not either do I really have to implement all the intrinsic metafunctions listed in the MPL documentation http : www.boost.org doc libs 1 46 0 libs mpl doc refmanual intrinsic-metafunctions.html or which ones would be sufficient", "Boost Lambda Boost Bind and yes even Boost Mpl implement the protect unprotect combo so you can fix this : .. . .. . Live On Coliru http : coliru.stacked-crooked.com a c20c31ac0cd925aa", "Boost s top level documentation seems to suggest that the sun compilers 5.10 onwards are supported -- I guess this is a general level of support or does this include MPL .", "you won t export it you can use boost-mpl for each .", "For example : .. . .. . The closest thing I ve found is boost : : mpl : : inherit .", "Use boost : : type and mpl : : to create an MPL lambda that transforms each type in the list before instantiating the elements and calling the function like this : .. . .. . Registrator should look something like this : .. . .. . Hope that helps .", "I have a mpl : : vector want to instantiate a template using the vector elements as template arguments .", "@David Rodr guez - dribeas : The problem is an exercise taken from the book C++ Template Metaprogramming : Concepts Tools and Techniques from Boost and Beyond .", "boost : : variant has member types which is some kind of boost : : mpl structure .", "It could be that boost : : is same is there for compatibility with std : : is same http : en.cppreference.com w cpp types is same while boost : : mpl : : same as is an older variant", "Specifically I wish to extend test for arbitrary many template parameters passed as a mpl : : vector .", "Release notes http : www.boost.org users history version 1 43 0.html don t disclose the secret but git does : .. . .. . c5621d9 MPL : merge fix for ticket 1992 boost : : mpl : : zip view does not support use as a metafunction with : : type https : svn.boost.org trac boost ticket 1992 .. . 31a2c78 MPL : merge fix for ticket 4061 MPL gcc-4.5 compilation problems related to arity helper https : svn.boost.org trac boost ticket 4061 .. . .. . It clearly appears to be the latter confirmed by compiling against 31a2c78 .", "Since you can take integral values as template parameters and perform arithmetic on them what s the motivation behind boost : : mpl : : int and other integral constants", "MPL programming really needs to be updated for c++11 14 .", "It says in the documentation for make variant over http : www.boost.org doc libs 1 48 0 doc html boost make variant over.html that it requires an MPL Sequence .", "If I have a mpl : : map how can I generate a corresponding boost : : spirit : : symbol parser", "mpl : : copy from mpl : : vector s is the way if you ask me", "I get to the mpl map after a couple of other mpl transformations .", "How can I obtain the index of the following folded type with boost : : mpl which is some kind of mpl : : set but not quite .", "Taking the following example I wonder whether there is an alternative to boost : : mpl : : for each which does call a Functor without any arguments .", "You want to use mpl : : inherit linearly http : www.boost.org doc libs 1 46 1 libs mpl doc refmanual inherit-linearly.html", "You could either use boost : : mpl : : fold http : www.boost.org doc libs 1 36 0 libs mpl doc refmanual fold.html or std : : make index sequence http : en.cppreference.com w cpp utility integer sequence .", "I scetched out a basic example but did end up not using boost because mpl : : vector expects known-types and i needed to hand it template template parameters .", "I want to do something like this : .. . .. . It seems like the boost MPL library might allow this but I couldn t really figure out how to use it to accomplish this .", "How to do this correctly to be able to use this metafunction in MPL algorithms", "Update .. . .. . Since Boost 1.56 pre-processing Boost.MPL containers even with the above script did no longer work because of changes in the header-comments the original python-scripts relied on .", "In other words I d probably need a bunch of macros which would allow me to write code like this : .. . .. . And then Definition : : A would still refer to boost : : mpl : : int 5 or would at least allow me to access the boost : : mpl : : int 5 somehow and Definition : : Seq would give me the appropriate MPL sequence .", "On the contrary it is explicitly stated in the Boost.Fusion reference document that one should use MPL algorithms for compile-time computations and then build the Boost.Fusion container only at the moment you cross the compile-time runtime boundary even though Boost.Fusion container are supposed to work with MPL algorithms .", "Another technique is to create some kind of reverse linked-list when you insert stuff in a vector which is what you re looking at in your example : .. . .. . Because of this the documentation http : www.boost.org doc libs 1 56 0 libs mpl doc refmanual transform.html for boost : : mpl : : transform does not specify exactly what is the type of boost : : mpl : : transform s op in : : type .", "wrap each of the mpl macros in", "I just wanted to know if boost has a proper MPL algorithm .", "How can we implement the Builder design pattern using boost : : mpl", "How would boost : : mpl know which int is which", "I think this should be possible with boost-mpl but I don t know how .", "I am sure boost-mpl offers something for this use-case .", "Mainly because of some implementation issues in C++03 the writers of the MPL had to use non-obvious techniques for representing sequences one of which is the usage of types like .. . .. . Instead of simply writing .. . .. . as one would do with variadic-templates in C++11 and beyond .", "If so why not write mpl : : minus D1 D2", "How do others debug their MPL code", "You don t usually instantiate MPL types .", "Is it possible to write a metafunction to accumulate items in an mpl sequence", "If I use boost : : mpl lets look at the following code : .. . .. . How can I turn s into a type t boost : : mpl : : set long float again such that I can use t for selecting a partially specialized template function on boost : : mpl : : set which extracts the element types and turns it into a std : : tuple long float .", ".. . .. . I wrote some code with a hand written typelist http : www.ddj.com cpp 184403813 and now we ve started using boost http : www.boost.org and I m trying to move it to the mpl library ." ] }
{ "confidence": [ 65.27538299560547, 63.354068756103516, 62.19987869262695, 61.9632682800293, 55.93490982055664, 54.49180221557617, 53.820892333984375, 52.22665786743164, 51.402008056640625, 51.35634231567383, 51.225624084472656, 51.086280822753906, 49.918033599853516, 48.95922088623047, 48.42912292480469, 47.328948974609375, 45.045249938964844, 44.954708099365234, 44.93468475341797, 44.69092559814453 ], "content": [ "Question : The boost : : mpl algorithms seem not to be able to work on std : : tuple types out of the box e.g . the following does not compile boost-1.46.0 g++ snapshot 2011-02-19 : .. . .. . What is the easiest way to make the boost : : mpl algorithms work on std : : tuple .. . .. . Does evtl . boost : : fusion provide this functionality as it does so for boost : : tuple If not would it be possible to carry over the fusion implementation for boost : : tuple to std : : tuple easily If not either do I really have to implement all the intrinsic metafunctions listed in the MPL documentation http : www.boost.org doc libs 1 46 0 libs mpl doc refmanual intrinsic-metafunctions.html or which ones would be sufficient The docs only says many of intrinsic metafunctions offer a default implementation that will work in majority of cases but it is not clear which ones exactly . And some tests with just providing begin and end did not lead me anywhere . Comment : The easiest answer I can suggest is to just use boost s . Comment : But this would not be possible if you have existing code that returns std : : tuple s or code that expects std : : tuple s -- you would have to convert types in both directions which is somewhat awkward . I also thought that boost : : tuple was something like an early prototype after which std : : tuple later on was modeled and thus that std : : tuple would replace boost : : tuple in the long run Comment : going to boost types is easy it s going back that may be difficult.. . Comment : See my updates . I have a full to boost and to std template that allows conversion to and from arbitrary boost-mpl Sequences .. . Answer : Converting from std : : tuple to boost types and back seems to be the easiest way .. . .. . tested with : .. . boost 1 46 0 and g++-4.5 on MacOSx .. . boost 1 45 0 and g++-4.5 on Ubuntu 10.10 Comment : @KitsuneYMG Thanks a lot . Unfortunately I am not able to compile your example . I correct at -- at c empty .. . : : type-- empty .. . : : value and added the missing includes but still get errors . Could you evtl . have another look -- For conversion I have another shorter solution that I will post in a minute . Is there anything wrong with mine -- Finally I thought conversion is bad as it is not compile-time-efficient . Comment : @Lars . I have no idea what happened . I guess I didn t get my whole test file . A new one is posted . It compiles as g++-4.5 -std c++0x test.cpp Comment : @Lars . I should probably also mention that I am working on re-working parts of boost.mpl to work with std : : tuple s . I ll try to post some code online later but I m having trouble wrapping my head around MPL : : bind . I do know that the above code is different than what I am going to be posting mainly template typename class X - typename X with a child-template struct named apply like boost does . Comment : @KitsuneYMG Thanks a lot the new version compiles fine . -- Should you find out how to avoid conversions I would be very interested because I did not manage to do so at all.. . Comment : @Lars Specifically what functionality do you need", "Question : The boost : : mpl algorithms seem not to be able to work on std : : tuple types out of the box e.g . the following does not compile boost-1.46.0 g++ snapshot 2011-02-19 : .. . .. . What is the easiest way to make the boost : : mpl algorithms work on std : : tuple .. . .. . Does evtl . boost : : fusion provide this functionality as it does so for boost : : tuple If not would it be possible to carry over the fusion implementation for boost : : tuple to std : : tuple easily If not either do I really have to implement all the intrinsic metafunctions listed in the MPL documentation http : www.boost.org doc libs 1 46 0 libs mpl doc refmanual intrinsic-metafunctions.html or which ones would be sufficient The docs only says many of intrinsic metafunctions offer a default implementation that will work in majority of cases but it is not clear which ones exactly . And some tests with just providing begin and end did not lead me anywhere . Comment : The easiest answer I can suggest is to just use boost s . Comment : But this would not be possible if you have existing code that returns std : : tuple s or code that expects std : : tuple s -- you would have to convert types in both directions which is somewhat awkward . I also thought that boost : : tuple was something like an early prototype after which std : : tuple later on was modeled and thus that std : : tuple would replace boost : : tuple in the long run Comment : going to boost types is easy it s going back that may be difficult.. . Comment : See my updates . I have a full to boost and to std template that allows conversion to and from arbitrary boost-mpl Sequences .. . Answer : This is my version for converting between std : : tuple and boost types but as said in the comment above conversion probably is not very compile-time efficient i.e . will result in unnecessary long compile times . A solution that avoids conversion surely would be preferred.. .", "Question : I have a mpl : : vector want to instantiate a template using the vector elements as template arguments . How is this done Can a argument pack be used to consolidate extra mpl : : vector elements For example : .. . .. . What is the best way to approach something like this Thanks . .. . Answer : Full disclosure : I am Boost.Hana s developer .. . .. . I know this question is about Boost.MPL but let me answer using the Boost.Hana https : github.com ldionne hana library which is still in development . If you are using a recent Clang you might want to give this library a try it can do everything Boost.MPL can do but it tries very hard to make it less painful . Here you go : Comment : Your hana library looks very promising . MPL programming really needs to be updated for c++11 14 . The very clean usage to solve my problem definitely speaks well for your library . Unfortunately I need a production solution for today s problem but will keep watching for your mpl fusion phoenix upgrade Comment : Thank you I am working hard on the library and the goal is to include it in Boost during this spring . If everything works as planned you might be able to use it in production as part of a Boost release in the near future given a recent compiler .", "Question : The boost : : mpl algorithms seem not to be able to work on std : : tuple types out of the box e.g . the following does not compile boost-1.46.0 g++ snapshot 2011-02-19 : .. . .. . What is the easiest way to make the boost : : mpl algorithms work on std : : tuple .. . .. . Does evtl . boost : : fusion provide this functionality as it does so for boost : : tuple If not would it be possible to carry over the fusion implementation for boost : : tuple to std : : tuple easily If not either do I really have to implement all the intrinsic metafunctions listed in the MPL documentation http : www.boost.org doc libs 1 46 0 libs mpl doc refmanual intrinsic-metafunctions.html or which ones would be sufficient The docs only says many of intrinsic metafunctions offer a default implementation that will work in majority of cases but it is not clear which ones exactly . And some tests with just providing begin and end did not lead me anywhere . Comment : The easiest answer I can suggest is to just use boost s . Comment : But this would not be possible if you have existing code that returns std : : tuple s or code that expects std : : tuple s -- you would have to convert types in both directions which is somewhat awkward . I also thought that boost : : tuple was something like an early prototype after which std : : tuple later on was modeled and thus that std : : tuple would replace boost : : tuple in the long run Comment : going to boost types is easy it s going back that may be difficult.. . Comment : See my updates . I have a full to boost and to std template that allows conversion to and from arbitrary boost-mpl Sequences .. . Answer : If you wanted to not convert the std : : tuple into a mpl type you can overload the tag dispatching boost-mpl uses : .. . .. . And the associated test : .. . .. . I tested this with gcc 4.7.2 and clang 3.2 . It should contain everything you need to use anything in the mpl actually a litte more than it needs . You can think of a tuple as a mpl : : list forward iterator compile type . So to make it play nice you should implmenet what boost : : mpl : : list does . A quick look into the boost-mpl list aux directory : begin end.hpp empty.hpp iterator.hpp pop front.hpp push back.hpp size.hpp clear.hpp front.hpp push front.hpp tag.hpp are the relevant files that need to be implemented .", "Question : The Tutorial : Metafunctions and Higher-Order Metaprogramming http : www.boost.org doc libs 1 56 0 libs mpl doc tutorial implementing-division.html section of the Boost MPL library documentation states that transform can be invoked like so .. . .. . where the placeholders 1 and 2 signify that when the transform s BinaryOperation is invoked its first and second arguments will be passed on to minus in the positions indicated by 1 and 2 respectively . I ve been reading this over and over again for almost a month and I still don t understand it . What values exactly do the placeholders 1 and 2 have D1 and D2 If so why not write mpl : : minus D1 D2 Also considering that the placeholders are defined as http : www.boost.org doc libs 1 56 0 libs mpl doc tutorial placeholders.html typedef arg 1 1 and typedef arg 2 2 and consequently the original expression in my mind amounts to .. . .. . I m sure I m thinking about placeholders the wrong way . I d appreciate some guidance here . .. . Answer : Indeed you re thinking about placeholders the wrong way . mpl : : minus is a template in MPL s metalanguage that symbolically represents or corresponds to a certain high-level behavior namely subtraction . You re thinking of it as-if it s a non-meta construct such as a function .. . .. . but it s not . The standard C++11 library does have something kind of like that called std : : minus http : en.cppreference.com w cpp utility functional minus void but that s not what mpl : : minus does mpl : : minus represents the subtraction operation at a higher level of abstraction . Don t worry for another couple of paragraphs about how mpl : : minus is implemented . Just think about what it represents which is subtraction of two things . Ah but which two things Well mpl : : minus lets you specify those things as template parameters . For example .. . .. . expands to a type whose member typedef type is the same as mpl : : int 4 . Okay but in the dimensional analysis example from Boost they don t have just two things they have sequences D1 and D2 of dimensions . This is a very important point Subtracting sequences isn t the same thing as subtracting integers consider .. . .. . Likewise in the meta space .. . .. . What we mean to say in the first case is .. . .. . and what we mean to say in the second meta case is .. . .. . Notice that the C++11 std : : transform takes pairs of iterators a.begin a.end instead of just a it takes b.begin but not b.end a deficiency that is only now being corrected by the Committee https : www.youtube.com watch v dTeKf5Oek2c and it mutates c via an output iterator rather than returning a completely new object for efficiency . MPL s compile-time meta-version takes containers a and b directly and returns a new container c i.e . it has value semantics which IMHO is strictly easier to think about . So the above is all correct EXCEPT for one tiny detail mpl : : transform is actually a very generic algorithm which means that it expects you to spell out the details of the transformation . You said mpl : : minus which means subtract okay but subtract what from what Subtract the elements of the first sequence from elements of the second Subtract the second s elements from the first Subtract 42 from the elements of the second sequence and toss out the first one entirely Well we mean subtract the second sequence s elements element-wise from the first s . Which we write as .. . .. . We could equally well write .. . .. . it would mean the exact same thing . This generic transform algorithm lets us write complicated transforms such as .. . .. . Here we can refer to the same element of sequence a three times using the symbol 1 while 2 refers to the corresponding element of sequence b . So that s the point of the symbols 1 and 2 in the context of mpl : : transform . But you re probably still wondering how they re implemented . Well there s no magic here . They might as well be implemented as .. . .. . As long as they get unique distinguishable entities in C++ s type system that s all MPL really cares about . But in fact they re actually implemented as typedefs for specializations of mpl : : arg http : www.boost.org doc libs 1 48 0 libs mpl doc refmanual arg.html which leads to a nifty trick . Since 1 is a synonym for mpl : : arg 1 we can say .. . .. . and I would guess that mpl : : transform is able to take advantage of that fact internally . Comment : Journey into madness and back . Very nice answer", "Question : Edit : I ve edited the sample to better resemble the problem I have now the function depends on a regular parameter and not only on template parameters which means that the computations can t be made at compile-time . .. . .. . I wrote some code with a hand written typelist http : www.ddj.com cpp 184403813 and now we ve started using boost http : www.boost.org and I m trying to move it to the mpl library . I can t seem to find any decent documentation for mpl : : list and I m even failing to port the code to boost : : mpl . I ve got the feeling that even when if I do succeed in porting the code it will still not be idiomatic . Can you please let me know how the following should be written with boost note that this is not the actual code it s a contrived simplification . Original code codepad.org paste http : codepad.org 0unH4XxA .. . .. . Failed Attempt to use Boost codepad.org paste http : codepad.org rXj1Aq2u .. . Answer : The MPL is ill-suited for mixed compile-time run-time operations . The only operation allowed at runtime on MPL sequences is for each . For all other situations you should roll your own . So you should effectively consider that MPL types are not meant to be instanciated . However there are other facilities in Boost for such a thing . The old : Boost.Tuple .. . .. . The new : Boost.Fusion http : spirit.sourceforge.net dl more fusion v2 libs fusion doc html index.html http : spirit.sourceforge.net dl 5Fmore fusion 5Fv2 libs fusion doc html index.html .. . .. . Boost.Fusion is a bit more complex it integrates the concept of views for example but would be far better suited to your example . It does not mean that you should not use the MPL . On the contrary it is explicitly stated in the Boost.Fusion reference document that one should use MPL algorithms for compile-time computations and then build the Boost.Fusion container only at the moment you cross the compile-time runtime boundary even though Boost.Fusion container are supposed to work with MPL algorithms . So keep your mpl implementation transform the resulting list to a Boost.Fusion sequence . Then instantiate the sequence and make use of all the Boost.Fusion facilities .", "Question : I want to code a state machine which has a reaction list with more than 50 entries . I found here http : svn.boost.org svn boost trunk libs mpl preprocessed some python scripts to generate header-files for lists with more than 50 entries . But I cannot manage to generate a single header file . Can someone please explain to me how to use theses scripts I also didn t find any help in boost documention . Any help would be appreciated . Comment : how many do you need Comment : I think 60 or 70 for now . .. . Answer : Final Update .. . .. . From Boost 1.59.0 on the below explained scripts are now included in each Boost release . They are located int boost-source-dir libs mpl preprocessed . The README.txt in that directory should explain you how to use it . Or just read on . Original answer .. . .. . Because I realized that not everyone has a working bash shell at hand yes I mean you Windows-guys - but everyone needs a working python environment I converted my helper bash-script I mentioned above http : stackoverflow.com a 20660264 3115457 into python : .. . .. . boost-mpl preprocess.py .. . .. . Running it with .. . .. . gives some usage information . But you can also just run it with a single command-line parameter which determines the path to the Boost source-directory e.g . python boost-mpl preprocess.py . boost-source and use the default behavior . This results in creating preprocessed headers for all four Boost.MPL container types vector list set and map with their numbered and variadic http : www.boost.org doc libs 1 55 0 libs mpl doc refmanual variadic-sequence.html form . Note : .. . .. . As a side effect when preprocessing Boost.MPL containers in their variadic form the value of their associated limit-macros BOOST MPL LIMIT container SIZE will be modified too . It gets the number of elements determined when calling boost-mpl preprocess.py . For example the following call preprocesses only the variadic form of Boost.MPL vector and also sets the macro BOOST MPL LIMIT VECTOR SIZE in . boost-source boost-mpl limits vector.hpp to 70 . Update .. . .. . Since Boost 1.56 pre-processing Boost.MPL containers even with the above script did no longer work because of changes in the header-comments the original python-scripts relied on . The following script can be used to fix this problem . It just adds the missing information into the header-comments . fix boost-mpl preprocess.py .. . .. . Run it like so :", "Question : I am currently developing on OpenSolaris 2009-06 . The Boost : : MPL Documentation seems to suggest that sun compilers are not supported http : www.boost.org doc libs 1 5F41 5F0 libs mpl doc tutorial portability.htm the document was last updated in 2004 . Boost s top level documentation seems to suggest that the sun compilers 5.10 onwards are supported -- I guess this is a general level of support or does this include MPL . Does anyone have any details on the state of the C++ conformance of the sun 5.10 compilers I could always compile using GCC . Comment : Boost : : MPL seems to have an extensive set of unit tests you can try to run them under your compiler . This should give you the most recent status of support regardless of any documentation . Comment : What liori said but if you are looking to make sure that your environment is working as expected you would have nothing to compare it to . You should find some documentation about what is to be expected then also run the unit tests and see if they are what the document projected . Comment : Thanks guys I have done some prototyping with the MPL libraries and they seem to work fine with the few constructs I tried . However the code ends up looking nasty . So I think i ll move into generative-programming probably using Lua and targeting the C++ with STL and possibly the simple BOOST libraries . .. . Answer : I have had some success with Boost and Sun s CC compiler on Solaris 10 but it is a pain . The main thing to remember is you need .. . .. . in you CXXFLAGS for everything you compile all the template only libraries I have tried seem to work fine with this skip all the libraries which need compiling see here for details http : www.boost.org doc libs 1 41 0 more getting started unix-variants.html .. . .. . This does mean of course that you will have to rebuild any libraries you need to link-to you would be very lucky if they already used stlport4 . Sadly this is about the only tenuously valid reason for not using Boost : - .. . .. . Sun C++ Frontend tails blog http : blogs.oracle.com sga entry command-line option Comment : Compilation wasn t really the problem especially with 1.41 as they have fixed the build scripts to use stlport4 . The problem is with the specific peculiarites of the template metaprogramming constructs . Comment : If you have millions of lines of legacy code built with the old stl which you have to link-to it s a problem That said some of the packages do work with the default compiler settings Boost : : Tokenizer for example . Comment : @Chris : How about binaries of libraries compiled with the old stl when you don t have access to the source Now that s frustrating", "Question : Edit : I ve edited the sample to better resemble the problem I have now the function depends on a regular parameter and not only on template parameters which means that the computations can t be made at compile-time . .. . .. . I wrote some code with a hand written typelist http : www.ddj.com cpp 184403813 and now we ve started using boost http : www.boost.org and I m trying to move it to the mpl library . I can t seem to find any decent documentation for mpl : : list and I m even failing to port the code to boost : : mpl . I ve got the feeling that even when if I do succeed in porting the code it will still not be idiomatic . Can you please let me know how the following should be written with boost note that this is not the actual code it s a contrived simplification . Original code codepad.org paste http : codepad.org 0unH4XxA .. . .. . Failed Attempt to use Boost codepad.org paste http : codepad.org rXj1Aq2u .. . Answer : If I understand correctly you re passing in a T at runtime and hoping that your MPL list of A B C D will select and act upon the correct T in that set I may be wrong but this sounds like something suited to Boost.Fusion which is designed for runtime iteration of compile-time sequences .", "Question : Is there a way to deduce the signature result- and parameter-types of a c++0x lambda as a Boost.MPL sequence for example a boost : : mpl : : vector For example for a lambda .. . .. . I would like to get a boost : : mpl : : vector void float int . .. . Answer : You can overload several functions to return the wanted type as described in this answer to a similar question http : stackoverflow.com questions 4170201 c0x-overloading-on-lambda-arity 4196447 4196447 . Comment : Good link . Also works quite well but the boost way was definitely shorter and more generic . Upvote tho", "Question : Is there a way to deduce the signature result- and parameter-types of a c++0x lambda as a Boost.MPL sequence for example a boost : : mpl : : vector For example for a lambda .. . .. . I would like to get a boost : : mpl : : vector void float int . .. . Answer : C++0x lambdas which are closure-objects are functors . So you can use boost.Boost.FunctionTypes to decompose its operator . Example : Comment : How exactly would I do that I tried parameter types result type and components both on the functor itself and on its operator but I couldn t get it to work . Comment : Thanx for the sample . I ended up pop ing from parameter types and adding result type to the front - works like a charm", "Question : I want to multiply each element in an mpl : : vector by an int . First a metafunction to multiply an int with an int . Here are the calls I want to make . Why isn t the resulting vector simply a vector int 6 int 8 Am I holding it wrong Probably the metafunction or the transform is not applied in the right way . .. . Answer : Mainly because of some implementation issues in C++03 the writers of the MPL had to use non-obvious techniques for representing sequences one of which is the usage of types like .. . .. . Instead of simply writing .. . .. . as one would do with variadic-templates in C++11 and beyond . Another technique is to create some kind of reverse linked-list when you insert stuff in a vector which is what you re looking at in your example : .. . .. . Because of this the documentation http : www.boost.org doc libs 1 56 0 libs mpl doc refmanual transform.html for boost : : mpl : : transform does not specify exactly what is the type of boost : : mpl : : transform s op in : : type . Actually it only guarantees that it s a type equivalent to .. . .. . This probably does not help you unless you already know the MPL well enough that you don t ask questions on SO about it - so basically it means that it returns a new type that s like a boost : : mpl : : vector except for its actual type which may be anything like I showed above . In particular this type is guaranteed to be a model of the Forward Sequence http : www.boost.org doc libs 1 56 0 libs mpl doc refmanual forward-sequence.html concept . When you use boost : : is same T U you re actually asking whether T and U are precisely the same types . You should now see clearly why this is not what you actually want . Instead you want to do some kind of deep comparison of those two sequences which both represent vectors . To check whether two Forward Sequences are equal you must use the boost : : mpl : : equal http : www.boost.org doc libs 1 56 0 libs mpl doc refmanual equal.html algorithm instead . The following will work : Comment : Thanks a lot for your answer . :", "Question : Since you can take integral values as template parameters and perform arithmetic on them what s the motivation behind boost : : mpl : : int and other integral constants Does this motivation still apply in C++11 Comment : If this is really of interest to you read the book C++ Template Metaprogramming by the main authors of Boost MPL it explains the motivations behind all these kinds of things . And this is not only valid for C++11 it has been made standard in C++11 with std : : integral constant http : en.cppreference.com w cpp types integral constant . .. . Answer : You can take integral values as template parameters but you cannot take both types and non-type template parameters with a single template . Long story short treating non-type template parameters as types allows for them to be used with a myriad of things within MPL . For instance consider a metafunction find that works with types and looks for an equal type within a sequence . If you wished to use it with non-type template parameters you would need to reimplement new algorithms overloads a find c for which you have to manually specify the type of the integral value . Now imagine you want it to work with mixed integral types as the rest of the language does or that you want to mix types and non-types you get an explosion of overloads that also happen to be harder to use as you have to specify the type of each non-type parameter everywhere . This motivation does still apply in C++11 . This motivation will still apply to C++y and any other version unless we have some new rule that allows conversion from non-type template parameters to type template parameters . For instance whenever you use 5 and the template requests a type instantiate it with std : : integral constant int 5 instead . Comment : C++y I thought it was C++1y", "Question : Generally I would use boost : : mpl : : for each to traverse a boost : : mpl : : vector but this requires a functor with a template function declared like the following : .. . .. . template typename T void operator T T : : staticCall .. . .. . My problem with this is that I don t want the object T to be instantiated by for each . I don t need the T parameter in the operator at all . Is there a way to accomplish this or an alternative to for each that doesn t pass an object of type T to the template function Optimally I would like the operator definition to look like this : .. . .. . template typename T void operator T : : staticCall .. . .. . And of course I don t want T to be instantiated at all prior to the call . Any other tips suggestions are also welcome . .. . Answer : Interesting question As far as I can tell Boost.MPL does not seem to provide such an algorithm . However writing your own should not be too difficult using iterators . Here is a possible solution : .. . .. . The naming may not be very well chosen but well.. . .. . .. . Here is how you would use this algorithm : Comment : Very useful guidance here . Thanks .", "Question : I have a problem with Boost.MPL and I m not sure how to approach it . Currently my code looks like this : .. . .. . Here the number N in mpl : : int N denotes some arbitrary decimal number . Then some other code calculates the sum of these numbers up to the type defined by key e.g . for Definition : : D the sum is 5 + 3 + 6 A + B + C . This needs to be done at compile-time . That s why I use mpl : : vector and some appropriate meta-programming . I don t like the current approach since it somehow violates the DRY rule . I m wondering whether it would be possible to provide such struct definition without the need to repeat type names in the mpl : : vector for Seq type . In other words I d probably need a bunch of macros which would allow me to write code like this : .. . .. . And then Definition : : A would still refer to boost : : mpl : : int 5 or would at least allow me to access the boost : : mpl : : int 5 somehow and Definition : : Seq would give me the appropriate MPL sequence . Of couse this is just my imagination . The code might look different I m just looking for options . .. . Answer : Have you seen metamonad http : abel.web.elte.hu mpllibs metamonad It has variable abstractions just like you seem to want :", "Question : I have the following templated class structure .. . .. . The Host class can now how have the following types . Is there any way to create a type list with boost : : mpl At the moment I don t even have an Idea where to start . My Goal would be to have a function like this : .. . .. . Is this possible with boost : : mpl Comment : what do you want to do with T w r to Host Comment : It is just an example . I have a big switch-statement that creates the correct Host . I would like to call getHost 5 and get the type Host5 t . I just want to get rid of the typedefs for all the hosts . Becaues I have far more than in the example and I am afraid at the end of the project there will be even more . Comment : I think I am missing something here as numerous users have corrected me after I fixed the title to say cartesian-product http : en.wikipedia.org wiki Cartesian product instead of permutation . I am happy to risk embarrassment for getting an aha experience . Why everyone insists this is about permutation .. . Answer : Ok here is some implementation . It is rather ad-hoc one could obviously abstract it to take a sequence of sequence of lambda function but I preferred keeping this one straight . Comments and tests are inside : .. . .. . The expected output should be : Comment : Unbelievable . This is exactly what I want . I guess I need to work on my template skills . Comment : I have one last question left . What exactly does the boost : : mpl : : apply FuserFunc T do I tried to use some other apply function but I cannot figure out how mpl : : apply works . Comment : apply takes a metafunction and a type and call the metafunction over T . It s basically a generic way to apply metafunctions over a set of templates arguments . If we made a runtime function analogy is like doing call some fn arg0 arg1 arg2", "Question : null .. . Answer : In a nutshell : .. . .. . It s possible to convert macro parameter to character string literal that contains the spelling of the preprocessing token sequence for the corresponding argument regarding to 16.3.2 n3797 with operator . Is there a way some trick maybe to convert macro parameter to multibyte character So for example I will have some macro TO CHAR WHATEWER and TO CHAR CONSTANT will give me CONSTANT multibyte character I need this to work with boost : : mpl : : string . More precisely I think so : .. . .. . I have a lot of constants and I work with them with boost : : mpl : : vector boost : : mpl : : vector c . Now I need to print out the name of constant after some work with this constant . Pseudo-pseudo code : .. . .. . The output must be something like this : .. . .. . I don t want to make some runtime array with a lot of typing : .. . .. . What I want to have is something like this : .. . .. . Btw I can t use constexp or new standard in general - I have C++03 compiler . Thanks .. . .. . UPD : Sorry for my mismatch - I mean not multibyte character but multicharacter literal regarding standard - 2.14.3 n3797 . Somrthing like this http : stackoverflow.com questions 3960954 c-multicharacter-literal Comment : Why are you using multicharacter literals You realize printing out a multicharacter literal like MY CONST1 is not in general going to produce MY CONST1 as output . Comment : @Brian yes but this will do boost : : mpl : : c-str with boost : : mpl : : string boost.org doc libs 1 40 0 libs mpl doc refmanual string.html http : www.boost.org doc libs 1 40 0 libs mpl doc refmanual string.html Comment : @user2451677 multicharacter literal regarding standard - 2.14.3 n3797 . Somrthing like this That s a completely different thing vs . multibyte character you are completely seem to be confused about this . Multicharacter literals are implementation defined and dependent don t use them . It s not portable by means of standards . What else did you miss from that link you gave Comment : @ I already told that that was my mistake . I just want to work with boost : : mpl : : string . The only way to do this is to use multicharacter literal . The link that I gave is just to show what is multicharacter literal . What other cavils to my mistake and bad example Comment : @user2451677 You re still asking for Is there a way some trick maybe to convert macro parameter to multibyte character : P .. .", "Question : I have a problem with Boost.MPL and I m not sure how to approach it . Currently my code looks like this : .. . .. . Here the number N in mpl : : int N denotes some arbitrary decimal number . Then some other code calculates the sum of these numbers up to the type defined by key e.g . for Definition : : D the sum is 5 + 3 + 6 A + B + C . This needs to be done at compile-time . That s why I use mpl : : vector and some appropriate meta-programming . I don t like the current approach since it somehow violates the DRY rule . I m wondering whether it would be possible to provide such struct definition without the need to repeat type names in the mpl : : vector for Seq type . In other words I d probably need a bunch of macros which would allow me to write code like this : .. . .. . And then Definition : : A would still refer to boost : : mpl : : int 5 or would at least allow me to access the boost : : mpl : : int 5 somehow and Definition : : Seq would give me the appropriate MPL sequence . Of couse this is just my imagination . The code might look different I m just looking for options . .. . Answer : I think in order to do everything programmatically you need to have the names of your fields something that is accessible - which if you just name them A B .. . isn t really . You could try to make your sequence incorporate both : .. . .. . That way for summing up to D you would have : .. . .. . Where I leave the implementation of less than C and addNext up to you . But this way you can just have sum up to D : : value 14 .", "Question : I am currently developing on OpenSolaris 2009-06 . The Boost : : MPL Documentation seems to suggest that sun compilers are not supported http : www.boost.org doc libs 1 5F41 5F0 libs mpl doc tutorial portability.htm the document was last updated in 2004 . Boost s top level documentation seems to suggest that the sun compilers 5.10 onwards are supported -- I guess this is a general level of support or does this include MPL . Does anyone have any details on the state of the C++ conformance of the sun 5.10 compilers I could always compile using GCC . Comment : Boost : : MPL seems to have an extensive set of unit tests you can try to run them under your compiler . This should give you the most recent status of support regardless of any documentation . Comment : What liori said but if you are looking to make sure that your environment is working as expected you would have nothing to compare it to . You should find some documentation about what is to be expected then also run the unit tests and see if they are what the document projected . Comment : Thanks guys I have done some prototyping with the MPL libraries and they seem to work fine with the few constructs I tried . However the code ends up looking nasty . So I think i ll move into generative-programming probably using Lua and targeting the C++ with STL and possibly the simple BOOST libraries . .. . Answer : I guess since an exact answer has not been provided I must post one myself . opensolaris 2009.06 and boost-1.4.1 seem to work well . The . bjam picks the right switches and boost : : mpl seems to work well with the sun compiler present . So as far as I can tell the mpl documentation on compiler support is quite outdated .", "Question : I have a mpl : : vector want to instantiate a template using the vector elements as template arguments . How is this done Can a argument pack be used to consolidate extra mpl : : vector elements For example : .. . .. . What is the best way to approach something like this Thanks . .. . Answer : You could either use boost : : mpl : : fold http : www.boost.org doc libs 1 36 0 libs mpl doc refmanual fold.html or std : : make index sequence http : en.cppreference.com w cpp utility integer sequence . Both these code-snippets assume using namespace boost : : mpl . Using boost : : mpl : : fold : .. . .. . Using std : : make index sequence : Comment : Thanks for the help . I guess one of the lessons here is when in doubt look to fold ." ] }
[ "yes-answer-long", "yes-answer-short" ]
compile-time
UNK_RELATION
unixodbc@api@73
unixodbc -- unixodbc is an open-source project that implements the odbc @placeholder on non windows platforms .
{ "confidence": [ 43.662841796875, 43.55314254760742, 43.08610916137695, 42.0225944519043, 41.00722122192383, 41.00722122192383, 41.00722122192383, 39.94053649902344, 39.94053649902344, 39.94053649902344, 39.94053649902344, 39.92314910888672, 39.90835189819336, 39.6308708190918, 38.92516326904297, 38.92516326904297, 38.92516326904297, 38.76728439331055, 38.303321838378906, 38.303321838378906, 37.70820999145508, 37.70820999145508, 37.39854431152344, 37.32847595214844, 37.32847595214844, 37.28794860839844, 37.28794860839844, 37.28794860839844, 36.944759368896484, 36.944759368896484, 36.89353942871094, 36.4640007019043, 36.4640007019043, 36.4640007019043, 36.10452651977539, 36.10452651977539, 36.10452651977539, 36.10452651977539, 36.10452651977539, 36.07099533081055, 36.07099533081055, 36.07099533081055, 35.659732818603516, 35.44862747192383, 35.369300842285156, 35.09614944458008, 35.09614944458008, 35.08915328979492, 35.08915328979492, 34.76581954956055, 34.719276428222656, 34.23167419433594, 34.23167419433594, 34.23167419433594, 34.23167419433594, 33.87220001220703, 33.87220001220703, 33.87220001220703, 33.87220001220703, 33.87220001220703, 33.87220001220703, 33.87220001220703, 33.822261810302734, 33.37306213378906, 33.126136779785156, 33.126136779785156, 33.126136779785156, 33.126136779785156, 33.126136779785156, 33.126136779785156, 33.126136779785156, 33.126136779785156, 33.126136779785156, 33.126136779785156, 32.4869499206543, 32.4869499206543, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.11076354980469, 32.046653747558594, 31.4725341796875, 30.89381217956543, 30.89381217956543, 30.89381217956543, 30.89381217956543, 30.89381217956543, 30.89381217956543, 30.89381217956543, 30.89381217956543, 30.829700469970703 ], "content": [ "I have unixodbc unixodbc-dev odbc-postgresql pyodbc packages installed on my Linux Mint 14 .", "I compiled the odbc extension for PHP with unixODBC on my mac .", "I currently have unixodbc unixodbc-dev and unixodbc-bin installed .", "This may be a unixODBC problem rather than a Haskell HDBC HDBC-ODBC problem .", "unixODBC is working fine for me with a .odbc.ini and an empty etc odbc odbc.ini", "unixODBC is just a module which provides APIs compliant to ODBC not a individual process .", "I use PHP and PDO ODBC driver thrue unixODBC .", "os python unixodbc etc .", "unixODBC 2.3.4 and tclodbc2.3.1", "I am using unixODBC .", "Licensing .. . .. . unixODBC is GPL and LGPL .", "Question : have you installed unixODBC on your system", "Well to get it to build against the newer header-files install the unixODBC source and build from than then build php with its odbc interface so that it finds the headers from the installed unixODBC .", "application support .. . .. . A lot of ODBC applications support unixODBC e.g . OpenOffice and ODBC drivers from Oracle IBM and SAP .", "Change to the unixODBC-2.3.0 directory .", "cd unixODBC-2.3.0 .. . .. . .. . 6 .", "dpkg-query -L unixODBC", "And choose ODBC from Connect to an existing database I entered s01 my unixODBC DSN name to Name of the ODBC data source on your system field .", "I am having issue with unixODBC .", "I ve configured FreeTDS and unixODBC correctly .", "Yes to unixodbc no to iODBC .", "unixodbc in your case .", "On UNIX FreeBSD machine I need to install unixODBC and php5-odbc packages enabling connections to ODBC already installed .. . 4 .", "PHP talks to unixODBC and FreeTDS allows you connect between the unixODBC layer and SQL Server itself .", "Just tried it with unixODBC 2.3.2 and it seems fine can you post the output from confure where it fails to find unixODBC .", "Did you compile unixODBC yourself", "I think this issue is no related to unixODBC .", "Will you be able to share the unixODBC trace", "Also unixodbc documentation refers to ODBCConfig but this doesn t seem to be on my system .", "There are also references to the package unixodbc-gui-qt but apt-get can t find it .", "I have been trying to build log4cxx with unixodbc I can connect to the database using console but when trying to build log4cxx --with-ODBC the . configure always results in configure : error : unixODBC not found", ".. . .. . EDIT : Okay here are some more details : .. . Version : unixODBC 2.3.0 .. . .. . And the results from isql and ODBC C API are the same .", "Alternatively assuming you are using unixODBC driver manager you can enable tracing of all ODBC calls in that .", "Unicode support .. . .. . unixODBC follows MS ODBC Driver manager and has SQLWCHARs as 2 bytes UCS2 encoded .", "I have installed unixODBC and Oracle driver to Ubuntu .", "It s like my unixODBC doesn t recognize it .", "I am working with unixodbc from Linux .", "It is iODBC http : www.iodbc.org and unixODBC http : www.unixodbc.org .", "I used macports to install unixODBC 2.2.14 1 .", "I re install unixodbc and freetds .", "The trick is to build FreeTDS with the the unixODBC switch .", "I have the unixODBC installed as well .", "However despite starting with fresh source configuring it picks up unixODBC and then compiling and installing it seems to be stuck using the DataDirect ODBC Driver Manager .", "Also do I need to install odbc driver unixodbc or iodbc to configure psqlodbc", "While running unixODBC driver in solaris sparc 32-bit machine I am facing unixODBC Driver Manager Can t initiate unicode conversion error am I missing any configuration", ".. . sudo apt-get install unixodbc unixodbc-dev freetds-dev sqsh tdsodbc -y .. . .. . .. . 4 .", "In the unixODBC log I get something like .. . .. . My understanding of the log is that unixODBC is trying to bind the parameters using the right type .", "I now want to recompile it to use unixODBC .", "In the past I have used unixodbc along with freetds .", "I have a PHP project running on my Gentoo Linux that uses FreeTDS UnixODBC to connect to a MSSQL database on a Windows server .", "support .. . .. . Both have support forums unixODBC has 3 although I d say the unixODBC ones are far more active I m on both .", "After some hours I finally succeed to install the Microsoft ODBC driver on Linux Mint with unixODBC .", "Try enabling logging in unixODBC then you can see what ODBC calls are being made and which one fails .", "I found the pyodbc to unixODBC to FreeTDS odbc to TDS integration pretty hard to trace debug .", "I am using unixODBC 2.3.0 and SQL Server ODBC Driver www.microsoft.com en-us download details.aspx id 28160 .", "UnixODBC is already 2.3.1 but I m still have the problem .", "I have installed unixOdbc on my Ubuntu PC .", "Because it s about unixODBC the C API", "Download Latest Stable unixODBC http : www.unixodbc.org .. . 3 .", "Note the full path to unpacked unixODBC directory .", "So unixODBC continue without proper typing .", "So I decide to use unixODBC and PDO ODBC .", "I to had build unixODBC version 2.3.0 from source because it is required by the windows driver and is not in the RHL repos yet the repo version is 2.2.14 .", "Since unixODBC 2.3.1 I changed the minor lib number to 2 to reflect the change in the SQLLEN size on 64 bit platforms .", "I am trying to connect to Oracle using unixODBC but it doesn t work .", "To connect from PHP you need both FreeTDS and unixODBC .", "Have you tested with isql to see if the connection works with unixODBC as well", "For some reason pyODBC won t look for unixODBC as described above .", "But is there such equivalent I couldn t find anything unfortunately for the unixODBC C API lib", "ok so my course of action will be to recompile and rebuild the unixODBC driver", "ref : http : mailman.unixodbc.org pipermail unixodbc-support 2011-November 003018.html", "This is company pacakged build for unixODBC and looks like they included the oracle driver and instantclient .", "I have tried setting my LD LIBRARY PATH to where unixODBC is .", "It looks like the macports version of unixODBC installs everything under opt local .", "I then uninstall RODBC from RStudio and go to terminal to try and force RODBC to install using unixODBC by using .. . .. . So the computer knows to install in the location of unixODBC .", "isql works after reinstall unixodbc and freetds --with-unixodbc : .. . .. . Now isql -v SMS GTWY username password returns : .. . .. . Credit : https : gist.github.com 565440", "When unixODBC odbc.ini and odbcinst.in files are under usr local etc .", "What is the maximum optimal allowed process that can handle parallel by unixODBC", "To use it the unixODBC should be linked as a static or dynamic library into the application .", "You can run as many processes which use unixODBC as possible .", "I have installed the unixODBC manager as proposed in the blog post .", "Is there a way to get a SQL server unixODBC driver installed without root privileges", "I m using Ubuntu+php+unixodbc+mdbtools for working with .mdb file .", "Click the Download link unixODBC-2.3.0 on the left side of the page .", "But it seems the Libre Office tries to connect via iODBC not unixODBC .", "And I typed my unixODBC username and checked Password required .", "I m using unixODBC 1.2.3 with Perl 5.8.4 it matches the environment on Solaris 10 .", "I can see when I run perl Makefile.PL that it is finding unixODBC .", "Thanks @slayedbylucifer but there is no connectivity issue using isql that comes with unixODBC .", "I have a problem where-by I cannot get Perl DBD : : ODBC to use unixODBC after re-compiling and re-installing .", "My employer makes an enterprise-grade JDBC Driver for ODBC Data Sources http : uda.openlinksw.com jdbc-odbc-st which we expect to work fine against the Cassandra ODBC driver whether you stay with unixODBC or shift to the the iODBC driver manager http : www.iodbc.org open-source like unixODBC maintained by my employer .", "I don t think OS authentication is possible with unixODBC TDS .", "To connect i m using FreeTDS and unixODBC both libraries was installed using this articule .", "It looks like some bug in unixODBC 2.24 while working with Postgres 9.3 .", "Solved : .. . .. . Mark s answer was correct but I couldn t get it working with FreeTDS UnixODBC .", "A 64 bit unixODBC cannot use 32-bit drivers and vice versa .", "You need to install the unixodbc-dev package to get the development header-files .", "I installed unixODBC successfully and made required changes in odbc.ini and odbcinst.ini file .", "I installed unixodbc using Brew and then linked it using this on OSX .", "Rebuild php and unixODBC looks like that s what is adviced in the comments in that SO question or may be do something with ODBC driver as segfault happens there" ] }
{ "confidence": [ 57.821250915527344, 57.51790237426758, 54.75849151611328, 54.04204559326172, 53.640586853027344, 53.08655548095703, 52.62455749511719, 51.651573181152344, 51.27496337890625, 50.92687225341797, 50.79423522949219, 50.785682678222656, 50.38372039794922, 49.99107360839844, 49.93113708496094, 49.516754150390625, 49.298828125, 49.201271057128906, 49.201271057128906, 49.10176086425781 ], "content": [ "Question : There are two major Open Source platform independent implementation of the ODBC http : en.wikipedia.org wiki ODBC . It is iODBC http : www.iodbc.org and unixODBC http : www.unixodbc.org . Considering Unix as ODBC user platform and feature-wise what are the real practical differences between these two implementations Comment : On what platform OS X comes with iODBC preinstalled . .. . Answer : Just so you know I use and have contributed to unixODBC and I don t use iODBC . Unicode support .. . .. . unixODBC follows MS ODBC Driver manager and has SQLWCHARs as 2 bytes UCS2 encoded . iODBC I believe uses wchar-t this is based on attempting to support iODBC in DBD : : ODBC .. . .. . cursor library .. . .. . unixODBC has one I don t think iODBC has . application support .. . .. . A lot of ODBC applications support unixODBC e.g . OpenOffice and ODBC drivers from Oracle IBM and SAP . I m not sure about iODBC . OS support .. . .. . iODBC has always been the most used on on Macs since Apple included it although I believe it is removed from Lion . Both can be built from source and most Linux distributions package both although not Novell Suse which only distributes unixODBC . thread-safety .. . .. . unixODBC is thread safe and includes flags to protect handles at different levels . This did not used to be the case with iODBC but that might have changed now . support .. . .. . Both have support forums unixODBC has 3 although I d say the unixODBC ones are far more active I m on both . Licensing .. . .. . unixODBC is GPL and LGPL . iODBC is LGPL BSD .. . .. . In practice there is not a lot of difference but I think you ll find unixODBC is more widely used . Comment : Excellent braindump . I formatted it a bit +1 Comment : @bohica thanks for the details +1 Not marked as answered yet waiting for more possible answers . Comment : @bohica I ve marked your response as the answer . Thanks again Comment : iODBC http : iodbc.org and unixOBDC are basically API equivalent both being cross-platform implementations of Microsoft s ODBC standard . iODBC s flexible Unicode support includes UCS-2 UTF-8 UCS-4 . iODBC is bundled into OS X Jaguar through El Capitan 10.2 - 10.11 and may be installed on AIX Solaris HP-UX most any Linux BSD and more . iODBC has been thread safe for a very long time and is actively maintained and supported by OpenLink Software http : www.openlinksw.com my employer . Comment : @TallTed your comment is flagrant promotion of iODBC and Openlink Software especially since a it adds nothing to the answer b it links to iODBC and not unixODBC c it links to Openlink Software . How does your comment relate to the practical differences since you never mention unixODBC . I suppose as Technical Evangelist for openlink this is to be expected i.e . are you here to help someone or promote Openlink . My answer from 2011 is admittedly out of date now but I question your motives for commenting .", "Question : I just want to run a test program using ODBC calls on Ubuntu but can t find any information on what includes to use or how to link . Is there a sample makefile I ve used ODBC on Windows with no problem . Also unixodbc documentation refers to ODBCConfig but this doesn t seem to be on my system . There are also references to the package unixodbc-gui-qt but apt-get can t find it . Comment : Question : have you installed unixODBC on your system Please check using the following command dpkg-query -l grep -i odbc Comment : Yes odbcunix and odbcunix-dev are installed . .. . Answer : Martin Evans provide the information for compile linking cc -I dir -Ldir xxx.c -Ldir -lodbc -lodbcinst .. . .. . It appears that ODBCConfig no longer exists but zxMarce posted this information : The hard way I learnt that ODBCConfig was replaced by ODBCCreateDataSourceQ4 wizard-like and ODBCManageDataSourcesQ4 . Remember to prefix any of those with sudo if you will create edit any ODBC system setting .. . .. . Unfortunately the DB2 ODBC driver didn t seem to install itself such that those tools could find it so hopefully manually editing the odbc configuration-files will work .", "Question : I want to create JDBC-to-ODBC Bridge on Ubuntu and then want to access in Java . I installed unixODBC and Cassandra ODBC driver and set DSN in odbc.ini file and Driver in odbcinst.ini file and as well as also export both file and and LD LIBRARY PATH also . But it gives me error could not find ODBCINSTGetProperties . When I run program on Eclipse then it giving me below error : .. . .. . for this export LD DEBUG ALL . But i did not understand from this . .. . Answer : Note that the JVM-bundled JDBC-ODBC Bridge was never intended for production use and has been dropped from Java 8 to which all Java users should upgrade for various security reasons . This JVM-bundled Bridge appears to be the source of your reported error . My employer makes an enterprise-grade JDBC Driver for ODBC Data Sources http : uda.openlinksw.com jdbc-odbc-st which we expect to work fine against the Cassandra ODBC driver whether you stay with unixODBC or shift to the the iODBC driver manager http : www.iodbc.org open-source like unixODBC maintained by my employer .", "Question : I have been trying to build log4cxx with unixodbc I can connect to the database using console but when trying to build log4cxx --with-ODBC the . configure always results in configure : error : unixODBC not found I have tried setting my LD LIBRARY PATH to where unixODBC is . Any hints Thanks . .. . Answer : Just tried it with unixODBC 2.3.2 and it seems fine can you post the output from confure where it fails to find unixODBC .", "Question : I am using Libre Office Version : 4.3.4.1 on my Mac OSX 10.10 Yosemite . In Base Database I would like to connect MS-SQL server using unixODBC DSN . But it seems the Libre Office tries to connect via iODBC not unixODBC . I never installed iODBC on my Mac . Here is what I tried . Following instructions http : www.joecjr.com 2014 07 27 install-and-use-freetds-unixodbc-and-rodbc-or-pyodbc I already setup unixODBC FreeTDS using Homebrew and all the tsql isql connection tests were fine . After installing I launched Database Wizard from Base database . And choose ODBC from Connect to an existing database I entered s01 my unixODBC DSN name to Name of the ODBC data source on your system field . When I clicked Browse no registered data source were shown . And I typed my unixODBC username and checked Password required . When I clicked Test Connection button and input the password an error occurred as below . Does anyone have an idea to solve this problem .. . Answer : I would recommend you stick with iODBC the ODBC driver manager Apple has shipped as part of OS X since Jaguar 10.2 . The version Apple bundles into Yosemite 10.10 remains a bit behind at 3.52.6 so I would also recommend you update to 3.52.10 http : www.iodbc.org dataspace iodbc wiki iODBC Downloads Mac OS X . iODBC and UnixODBC are built to be API equivalent so you should just need to ensure that your drivers and DSNs are properly configured in the iODBC locations optimally via iODBC Administrator.app Applications iODBC . System DSNs are recommended for most purposes .", "Question : odbc isql was unable to connect to data source : .. . .. . returns : .. . .. . while tsql is ok : .. . .. . returns : .. . .. . cat .freetds.conf : .. . .. . cat .odbc.ini : .. . .. . cat .odbcinst.ini : .. . .. . freetds and unixODBC are install by home brew . I have a similar setup on CentOS and odbc isql to mssqlserver is working fine . There is a noticable difference I do not see a libtdsS.so installed on OS X . cat etc odbcinst.ini on CentOS : .. . .. . Is that the cause of problem p.s . odbcinst -j returns : .. . .. . odbcinst -q -d returns : .. . .. . odbcinst -q -s returns : .. . Answer : isql works after reinstall unixodbc and freetds --with-unixodbc : .. . .. . Now isql -v SMS GTWY username password returns : .. . .. . Credit : https : gist.github.com 565440 Comment : You are a genius This saved my bacon while attempting to follow these otherwise useful instructions . - acloudtree.com http : www.acloudtree.com how-to-install-freetds-and-unixodbc-on-osx-using-homebrew-for-use-with-ruby-php-and-perl Comment : Thank you . I also had this problems . Reinstalling", "Question : After 2 days battling I try asking help here . I m using unixODBC 2.2.11 to work with DB2 iSeries and PHP 5.3 on a CentOS 5.4 server . I guess it s since the upgrade of PHP from 5.1 to 5.3 I get PHP to segfault on certain queries . After some investigation I discovered the problem appears on some queries with long char fields for example with this table : .. . .. . This simple piece of code provokes the segfault : .. . .. . Is there any column length limit or a bug with unixODBC and or PHP 5.1 This web application worked quite great then I got into this problem. . .. . .. . Btw I tested with a more up-to-date 64bits CentOS 6.2 machine with unixODBC 2.2.14 and PHP 5.3 and the problem is the same . Any help greatly appreciated .. . .. . Thanks .. . .. . fabien .. . .. . UPDATE : Using the PHP odbc functions it works : .. . .. . So the problem is more tied to PDO any idea .. . Answer : I cannot say I know of any issues in pdo which I don t use anyway or unixODBC or the DB2 driver . I m not sure from your email if your first platform is using 64 bit builds or 32-bit builds but ODBC changed when Microsoft added 64 bit support see SQLLEN SQLULEN and 32 64 bit platforms http : www.martin-evans.me.uk node 20 and 64-bit ODBC http : www.easysoft.com developer interfaces odbc 64-bit.html . Basically some ODBC APIs had a type changed from SQLINTEGER to SQLLEN and an SQLLEN is 64bits in a 64 bit build and 32 bits in a 32-bit build . However as no one was to know Microsoft was going to do this and some of these arguments were actually described in the spec as 32-bit quantities some ODBC driver writers had already built ODBC drivers for 64 bit platforms using 32-bit quantities for these arguments . Obviously if you mix an application or driver manager built one way with a driver built the other way all hell can break lose and you very well may get segfaults . So firstly if you are using 64 bit binaries you need to check your ODBC driver was built correctly - speak to IBM . unixODBC 2.2.11 is rather old now and I know issues have been fixed but I m still using it extensively and only have one small issue in the cursor library . Anyway you tried 2.2.14 and the problem was the same . I doubt it is an unixODBC issue but that is only based on my extensive experience with it and not because I know for a fact . Now assuming you don t fall into the situation outlined above you can do a number of things . Try enabling logging in unixODBC then you can see what ODBC calls are being made and which one fails . You might also get a clue from the arguments passed as to what might be going on . You enable logging by adding the following to your odbcinst.ini file : .. . .. . Look for a call to SQLBindCol or SQLGetData for the column in question . If this does not get you anywhere you can try pasting the end of it here and I ll look at it . If you can run your PHP program from the command-line and you install gdb you can run it under gdb and it will show you a stack dump of where the problem occurred . Just do gdb path to php then type r myscript.php and enter to run it and when it segfaults you can use the bt backtrace command to show the stack . That should identify which code is causing the segfault although it is not necessarily that code which is fault e.g . if php passed a pointer to a buffer of 10 bytes but lies and says it is 100 bytes the code which writes off the end is not at fault .", "Question : I have a problem where-by I cannot get Perl DBD : : ODBC to use unixODBC after re-compiling and re-installing . It had been previously installed . I had compiled DBD : : ODBC to use the DataDirect ODBC Driver Manager . I now want to recompile it to use unixODBC . However despite starting with fresh source configuring it picks up unixODBC and then compiling and installing it seems to be stuck using the DataDirect ODBC Driver Manager . I ve gone as far as deleting all the files I know of from the Perl module folders but the problem remains when it s reinstalled . I m compiling from source because the server I m installing on doesn t have an Internet connection so I haven t been using CPAN . I m using unixODBC 1.2.3 with Perl 5.8.4 it matches the environment on Solaris 10 . I ve removed all I can find : .. . .. . I then removed all entries for DBD : : ODBC in perllocal.pod . I can see when I run perl Makefile.PL that it is finding unixODBC . Here are all environment-variables relating to ODBC in the environment on which I m compiling and installing the module .. . .. . When I run a test I still see an error from the DataDirect driver manager : .. . .. . Ignore the fact that it can t find the driver because odbc.ini isn t populated . I m testing with a junk connection because I want to see this same error message from unixODBC . The Perl script I m using for testing is below . It works with the DataDirect driver manager . Comment : what does . test odbcdb2.pl line 19 contain Comment : my dbh DBI- connect data source user password AutoCommit 1 or die Can t connect to data source : DBI : : errstr Comment : @slayedbylucifer - I ve added the full test Perl script to the question . Thanks . Comment : In the past I have used unixodbc along with freetds . and I would do connectivity test using tql and isql before moving on to perl . Check one of my answers from another post if it helps you : stackoverflow.com a 21252539 1251660 http : stackoverflow.com a 21252539 1251660 Comment : Thanks @slayedbylucifer but there is no connectivity issue using isql that comes with unixODBC . I m not even getting to the point of connectivity as a result-of DBD : : ODBC not referencing the correct driver manager . .. . Answer : You didn t say if you did a make install at the end of the build but I ll assume you did . You didn t say if those LD LIBRARY xx env vars are just set or exported as well . Firstly addressing other comments . 1 . DBI : ODBC : dsn should indeed be dbi : ODBC : dsn . 2 . Perl DBI does load the driver based on the string after dbi : so ODBC loads the DBD : : ODBC module . 3 . It is at the time of DBD : : ODBC configuration that it selects which ODBC driver manager to use is not correct . Configuration only selects the driver manager to compile against . I don t believe a runpath instruction to the linker is provided at link time . So you could happily build against unixODBC and run against DD which you seem to be doing . Find ODBC.so in your Perl tree it should be in a dir called DBD ODBC something like home martin perl5 perlbrew perls perl-5.19.10 lib site perl 5.19.10 x86 64-linux auto DBD ODBC ODBC.so . Now run ldd ODBC.so on it and look to see in the output where the libodbc.so comes from e.g . : .. . .. . Here the dynamic linker is resolving the dependency on libodbc.so.1 with usr local lib libodbc.so.1 . You need to tell the dynamic linker to look in your unixODBC lib dir before wherever it is looking now . Using LD LIBRARY PATH might not work - especially if you run as root and there are global ways of telling the dynamic liker where to look . Read your ld.so.1 section 1 man page . Comment : That s a lot of good information coming from the Author himself . Thanks . +1 . Comment : Sorry I haven t checked this out yet . I ve been very busy and now sick . I ll give this a try in a couple of days and let you know . Thanks for your response . Comment : Ahh yes very interesting . Nothing wrong with LD LIBRARY PATH as such but because ODBC.so is 32-bit and the ODBC driver manager we were using was 64-bit it was bypassing the drivers from the driver manager and didn t find libodbc.so until it got all the way to the last entry in LD LIBRARY PATH which was usr lib . Comment : ldd usr perl5 site perl 5.8.4 sun4-solaris-64int auto DBD ODBC ODBC.so libodbc.so usr local unixODBC sp32 lib libodbc.so libodbc.so VERS 3.52 version not found libthread.so.1 usr lib libthread.so.1 libc.so.1 usr lib libc.so.1 libgcc s.so.1 usr sfw lib libgcc s.so.1 libm.so.2 usr lib libm.so.2 lib libm libm hwcap1.so.2 platform sun4v lib libc psr.so.1 Comment : It s got a different problem if I use the 32-bit driver manager that I ll have to look into but it looks like you ve got me on the right track . Thanks . I ll pass on the results . I think something has changed because now it s not finding the version of libodbc.so that it wants it did when I tested earlier but something must have changed . It looks like I m close to a solution with your help though possibly we now face more complication than we thought with 32-bit vs 64-bit .", "Question : I m trying to set up unixodbc on OSX 10.7.3 but it looks like iODBC is on the way . My config database.yml : .. . .. . ruby-obdc is installed and in the Gemfile : .. . .. . usr local etc freetds.conf : .. . .. . usr local etc odbc.ini .. . .. . When I run script console and try to access any model : .. . .. . Product ODBC : : Error : IM002 0 iODBC Driver Manager Data source name not found and no default driver specified . Driver could not be loaded .. . .. . It seems iODBC is being used to connect to the database when I want to use unixodbc . How can I make my rails app use unixodbc instead of iODBC .. . Answer : Using Homebrew . Needed to use : .. . .. . I didn t notice this earlier but in Pedro s answer he has with-odbc-lib . not sure if that works for his environment but i needed this to be dir because i kept getting a checking for sql.h.. . no error .", "Question : null .. . Answer : I m actually experiencing a very similar problem to this one : PHP unixODBC Apache Segfault http : stackoverflow.com questions 6998984 php-unixodbc-apache-segfault .. . .. . The reason I m asking the question is that the solution isn t working for me . I would guess that its almost certainly given you are on a 64 bit platform due to the unixODBC you are using being build with sizeof SQLLEN 4 which was the default for 2.2.x and sizeof SQLLEN 8 which is what 2.3.x builds with . I m using Oracle Linux 7 downloaded an Oracle DB Developer VM image from Oracle site just today . UnixODBC is already 2.3.1 but I m still have the problem . .. . .. . Oracle database works fine - I m able to login with sqlplus .. . Apache works fine - I get response when I request something through browser .. . PHP works fine - no segfault happens if I don t use odbc connect .. . ODBC driver works - isql -v dsn uname pw does the trick . Moreover if I execute php var www html error.php I get response I m able to connect through ODBC and execute SQL query . But if I m requesting http : localhost error.php I get Connection has been reset . I ve added .. . .. . to Apache config restarted it and requested error.php . So I ve got core-file which I ve opened in gdb and looked bt : .. . .. . It ends in libsqora and libclntsh which are Oracle ODBC driver s libraries . Somehow that works when I use isql or php CLI so I m not sure that s the problem exactly . I ve also tried to use Nginx instead of Apache but it didn t help . .. . .. . Versions of what I use : .. . .. . unixODBC : unixODBC-2.3.1-11.el7.x86 64 .. . .. . PHP : .. . .. . Apache : .. . .. . Oracle s ODBC driver part of Instant Client : Linux x86-64 from here : http : www.oracle.com technetwork topics linuxx86-64soft-092277.html .. . .. . .. . .. . What should I do Rebuild php and unixODBC looks like that s what is adviced in the comments in that SO question or may be do something with ODBC driver as segfault happens there", "Question : I m trying to set up unixodbc on OSX 10.7.3 but it looks like iODBC is on the way . My config database.yml : .. . .. . ruby-obdc is installed and in the Gemfile : .. . .. . usr local etc freetds.conf : .. . .. . usr local etc odbc.ini .. . .. . When I run script console and try to access any model : .. . .. . Product ODBC : : Error : IM002 0 iODBC Driver Manager Data source name not found and no default driver specified . Driver could not be loaded .. . .. . It seems iODBC is being used to connect to the database when I want to use unixodbc . How can I make my rails app use unixodbc instead of iODBC .. . Answer : iODBC maintained and supported by my employer http : www.openlinksw.com has shipped as part of Mac OS X since Jaguar 10.2.x . You ll be better off updating iODBC with all the latest patches http : www.iodbc.org dataspace iodbc wiki iODBC Downloads Mac OS X Apple tends to be a bit behind on these than shifting to UnixODBC . You may also find some benefit in the Ruby+ODBC http : www.iodbc.org dataspace iodbc wiki iODBC IODBCRubyHOWTO MacOS X and Ruby-on-Rails http : odbc-rails.rubyforge.org docs we ve published . Last it s best to keep all your ODBC configuration in the default file locations for Mac OS X -- .. . .. . You can create symlinks from anywhere else you may want to have these files e.g . -- Comment : Thanks for the tip but unfortunately I don t need to use odbc anymore . Still I hope people having problems with unixodbc can use your post to solve their issues . :", "Question : null .. . Answer : I m on Ubuntu Linux and wondering how to detect what ODBC driver manager the system has if any . Like Rakib s commentary one very rough way I ve used is to simply try and run isql unixODBC or iodbctest because Ubuntu will report whether their parent package is installed . What s interesting is that on this fresh VM pyodbc tells me that unixODBC was used even though its tools are not installed see screenshot . Running isql iodbctest and pyodbc.connect to determine what ODBC driver manager is available http : i.stack.imgur.com LF5yt.png Comment : dpkg-query -L unixODBC Comment : What exactly do you want to achieve Comment : Ideally : detect the ODBC driver manager so that shell scripts can utilize the appropriate logic for those subtle differences between the two .", "Question : I m trying to set up unixodbc on OSX 10.7.3 but it looks like iODBC is on the way . My config database.yml : .. . .. . ruby-obdc is installed and in the Gemfile : .. . .. . usr local etc freetds.conf : .. . .. . usr local etc odbc.ini .. . .. . When I run script console and try to access any model : .. . .. . Product ODBC : : Error : IM002 0 iODBC Driver Manager Data source name not found and no default driver specified . Driver could not be loaded .. . .. . It seems iODBC is being used to connect to the database when I want to use unixodbc . How can I make my rails app use unixodbc instead of iODBC .. . Answer : Solved by compiling ruby-odbc against Homebrew libraries . This works if you are on OSX : Comment : can you be more specific i m having this issue and this doesn t exactly give a step by step solution . thanks Comment : What OS are you running I installed unixodbc using Brew and then linked it using this on OSX . Comment : It was my ruby on mac os x i posted a solution to the issue .", "Question : I am trying to run the RODBC packages for the R programming language on our computer cluster . For this purpose I have downloaded and installed unixODBC http : www.unixodbc.org download.html in my home folder following some helpful instructions here https : carlo-hamalainen.net blog 2012 5 11 r-makeflags-rpath-and-building-packages .. . .. . Now I realize that the necessary ODBC drivers for SQL server are not included but in trying to download and install such drivers I encounter the problem that they all require root privileges which I do not have . Is there a way to get a SQL server unixODBC driver installed without root privileges Our system is : .. . .. . I have looked at the drivers available from Devart https : www.devart.com odbc sqlserver download.html and Microsoft https : msdn.microsoft.com en-us library hh568454 v sql.110 .aspx so far . .. . Answer : The only reason why I would expect you would specifically need root access is to edit the odbc.ini files . You can either build your own copy of unixODBC with prefix and or sysconf set to a reachable location . Or set the ODBCSYSINI env variable to tell the driver manager to use ODBCSYSINI odbc.ini and ODBCSYSINI odbcinst.ini .. . .. . The Easysoft driver can certainly be installed by non root just set EASYSOFT ROOT to point to the alternative to usr local easysoft", "Question : null .. . Answer : I am trying to connect to an existing Sybase Advantage Database Server via the ODBC driver on a LOCAL instance . I currently have unixodbc unixodbc-dev and unixodbc-bin installed . When I attempt the following : .. . .. . I get the following error : .. . .. . pyodbc.Error : IM002 IM002 unixODBC Driver Manager Data source name not found and no default driver specified 0 SQLDriverConnect .. . .. . Here s my etc odbc.ini and etc odbcinst.ini file : .. . .. . I see three potential issues here - either my connection-string is wrong my odbc.ini file is incorrectly setup or my unixodbc hasn t reloaded the odbc.ini since I modified it if there is such a thing . I have attempted the solution proposed here http : stackoverflow.com questions 33532699 how-can-i-connect-to-local-advantage-database-using-pyodbc-in-python without avail . Thanks for your help Comment : Disclaimer : I m not familiar with Advantage . Have you tried debugging your connection with the command-line tool isql Try connecting with isql verbose : isql -v dsn username password and have a look at the log . Comment : @FlipperPa : I didn t know of this utility . After fiddling around I specifed Odie as the DSN . The error returned changed from above returning the following : 01000 unixODBC Driver Manager Can t open lib opt ads odbc redistribute libadsodbc.so.11.10.0.24 I attempted the same with sudo but no change . I checked for permission problems all parent folders have permissions of rwxr-xr-x and the said file has rwxr-xr-- . I also attempted to see if the path wasn t good by doing a if -f path and without sudo it returned true . : scratch-my-head : Comment : Maybe try copying libadsodbc.so.11.10.0.24 to 777 ing it and changing the config to point to the file in Then you could verify whether or not it is a permissions issue and move the file down the folder tree one step at a time . Ugly but debugging normally is : Comment : No luck same error message at root level after chmod 777 ing it . user@computer : ls -la yielded the following entry : -rwxrwxrwx 1 root root 338030 Apr 23 08 : 59 libadsodbc.so.11.10.0.24 Comment : That may be symptomatic then . Can we try ldd opt ads odbc redistribute libadsodbc.so.11.10.0.24 to see if any of the dependencies of the library are missing", "Question : I m using ArchLinux and I am trying to install OpenEdge progress drivers so I can access it via PHP . I ve installed the unixodbc package and the drivers but when I test the connection via isql or PHP I get the same error.. . The messed up thing is that usr dlc odbc lib pgoe1023.so presently exists I even symlinked it from usr dlc . The following are my .ini files.. . .. . .. . odbc.ini .. . .. . odbcinst.ini I removed some of the credentials as it is irrelevant .. . .. . EDIT Adding more info.. . They appear to both be 32-bit except I have no idea what I m doing regarding that . It does appear that it s missing some dependencies.. . .. . .. . UPDATE .. . .. . I copied libpgicu23.so to usr lib and it solved that problem but I still need libstdc++-libc6.2-2.so.3 but when I grabbed one from the internet it said error while loading shared-libraries : usr lib libstdc++-libc6.2-2.so.3 : ELF file OS ABI invalid .. . .. . I actually even made a symlink from libstdc++-libc6.2-2.so.3 to libstdc++.so but even though it solved the problem via ldd it caused this error when I queried isql. . .. . .. . isql : symbol lookup error : usr dlc odbc lib pgoe1023.so : undefined symbol : builtin vec new .. . .. . I ve never installed odbc on a nix box but we did the same thing on a windows box and it worked fine . Any input appreciated . .. . Answer : One thing to check is the minor version numbers of the unixODBC libs that the driver is linked against . Since unixODBC 2.3.1 I changed the minor lib number to 2 to reflect the change in the SQLLEN size on 64 bit platforms . However if the driver lib was linked against a earlier version it will be looking for a libodbc.so.1 and current sources provide libodbc.so.2 . Simple solution is to provide a sym link from the .so.1 to the .so.2 . The same is also true of libodbcinst.so so check that as well .", "Question : odbc isql was unable to connect to data source : .. . .. . returns : .. . .. . while tsql is ok : .. . .. . returns : .. . .. . cat .freetds.conf : .. . .. . cat .odbc.ini : .. . .. . cat .odbcinst.ini : .. . .. . freetds and unixODBC are install by home brew . I have a similar setup on CentOS and odbc isql to mssqlserver is working fine . There is a noticable difference I do not see a libtdsS.so installed on OS X . cat etc odbcinst.ini on CentOS : .. . .. . Is that the cause of problem p.s . odbcinst -j returns : .. . .. . odbcinst -q -d returns : .. . .. . odbcinst -q -s returns : .. . Answer : Ok . I wasted two days on this as well but did not want to use Homebrew or MacPorts . The trick is to build FreeTDS with the the unixODBC switch . This generates the odbc driver xxx.so which is not generated otherwise . To start you will need XCode and the Command Line Tools already installed . Plenty of resources on the web to show how to do that . Here are the steps I took . 1 . Download Latest Stable FreeTDS http : www.freetds.org software.html .. . 2 . Download Latest Stable unixODBC http : www.unixodbc.org .. . 3 . Unpack both . 4 . Note the full path to unpacked unixODBC directory . 5 . From a terminal prompt navigate in to the FreeTDS directory and issue the following commands . . configure --with-unixodbc noted path in Step 4 .. . make .. . sudo make install .. . .. . When complete everything should be in usr local . Your driver should be in usr local lib . Edit your settings files in usr local etc . Hope this helps .", "Question : I have trouble getting pyodbc work . I have unixodbc unixodbc-dev odbc-postgresql pyodbc packages installed on my Linux Mint 14 . I am losing hope to find solution on my own any help appreciated . See details below : .. . .. . Running : .. . .. . Gives me : .. . .. . odbcinst -j gives : .. . .. . Which makes me think there is a unixodbc configuration problem . Here are my unixodbc config file contents : .. . .. . File etc odbcinst.ini : .. . .. . File etc odbc.ini : .. . .. . File .odbc.ini : .. . Answer : For me it was all down to a single whitespace character . Gave me the Data source name not found and no default driver specified error . Removing all the whitespaces before the character made it work . On a secondary note using osql for DSN connection testing gives you a much more verbose description of any errors . It helped me a lot in the process . Comparing the error message against my ini file made triaging the issue a lot easier .", "Question : null .. . Answer : When unixODBC odbc.ini and odbcinst.in files are under usr local etc . My application works fine . I deleted the unixODBC files from usr local etc and copied .odbc.ini and .odbcinst.ini files under home USER directory . I have done the environment variable setup for the .odbc.ini files . But while connecting to the database using the OTL library I am getting the following error .. . .. . Thanks for your help Comment : Which distribution are you using Did you compile unixODBC yourself Did you double check that the .odbc.ini contains a section for the data source name used in your application Does the file belong to the correct user-permissions Are you running your app as the correct user Comment : unixODBC is working fine for me with a .odbc.ini and an empty etc odbc odbc.ini Comment : BTW : You can try to run your application using strace and search in the output for odbc.ini . This helped me to identify issues before . Comment : sorry for the late response The issue is with my application . After lot of debugging and research I found that my application is not getting the oracle driver libraries I have moved the oracle driver library path in the environment script and it started working fine with .odbc.ini Comment : You should make this comment an answer and accept it as the solution .", "Question : My application used to read data from different sections of large file and update the tables . Each section of the data is associated with a separate table . The update process can contains multiple insert update and delete statements . I am trying to split the file into multiple-files and running 3 4 or n instances of the application to achieve parallel execution . I hope this will improve the performance . Question : .. . .. . 1 . What is the maximum optimal allowed process that can handle parallel by unixODBC Environment : Red hat Linux 64 bit C++ unixODBC 32-bit OTL Oracle 10 11 .. . Answer : unixODBC is just a module which provides APIs compliant to ODBC not a individual process . To use it the unixODBC should be linked as a static or dynamic library into the application . Many factors can impact the performance : hardwares CPU memory the database-design etc . I think this issue is no related to unixODBC . You can run as many processes which use unixODBC as possible ." ] }
[ "yes-answer-long", "yes-answer-short" ]
api
UNK_RELATION
printqueuewatch@printers@113
printqueuewatch -- printqueuewatch is a .net component as class-library that facilitates monitoring one or more @placeholder from a winforms application and gathering information from the print system above and beyond that provided by the .net framework .
{ "confidence": [ 41.19501876831055, 30.020244598388672, 28.683124542236328, 26.708919525146484, 23.536754608154297, 22.99404525756836, 22.64267349243164, 22.480182647705078, 21.908763885498047, 21.695362091064453, 21.100332260131836, 20.725460052490234, 20.673545837402344, 20.531192779541016, 20.294328689575195, 19.936073303222656, 19.883522033691406, 19.208646774291992, 18.912677764892578, 18.820178985595703, 18.31830596923828, 18.26350975036621, 17.835071563720703, 17.546499252319336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336 ], "content": [ "Besides I have tried the PrintQueueWatch args.PrintJob.Color but it always return true no matter I change the document color type to B W or Color .. . .. . Anything else I have to notice while reading the spool file or using PrintQueueWatch", "Questions are : .. . .. . Is there a C .NET way to find out which application e.g .", "The request is as follows : .. . .. . When a user is printing on a specific application the information about the application which initiated the print job is necessary .", "When monitoring the printer queue it gives me user information and lots of other stuff but querying the information about the application which had initiated the printjob cannot be found .", "This answer assumes you want to monitor your application not other applications on the system", "Right now I am using Print Queue Watch http : printqueuewatch.codeplex.com library for detecting the printing job events .", "No..I am not using PrintDocument class instead I am using Print Queue Watch http : printqueuewatch.codeplex.com . .", "Im currently writing a kinda print monitor app to run on a print server .", "Since you progammed your application in C using WinForms I assume you used a PrintDocument and your printing takes place in a PrintPage event using PrintPageEventArgs.Graphics .", "You need to create a Print Processor .", "winword excel etc has initiated a print job", "The print processor is a driver that can change or read data before it is sent to the Print Monitor This is the driver that emit things in proprietary format to the printer port .", "I d would like to get the currently print job information of my printer so I go to the folder C : Windows System32 spool PRINTERS and using the following code to get the spool file information .. . .. . However sometime I can get the print job color type correctly and sometime doesn t because the buffer sr.ReadLine has returned NULL object and I assume the spool file doesn t completely being read by my program .", "In one of my windows application I am in need of a module where we want to detect the coverage of the page being printed .", "Almost..I want to monitor every print job initiated on a same machine. .", "So its not possible unless an acknowledgment is received from the printer. .", "Is this information stored in the PrintQueue or the printspooler or anywhere else", "Here is a description of what a Printer Processor does : http : serverfault.com questions 304536 what-is-the-reason-for-choosing-a-different-print-processor .", "I am not sure but I think you could get the required info from PrintSystemJobInfo .", "How to change the print processor by using PowerShell : http : blogs.technet.com b chad archive 2012 10 31 tip-52-mixing-the-old-and-new-setting-a-printer-s-print-processor-using-powershell-wmi-and-setprinter-exe.aspx .. . .. . And here is a sample on how to do it i.e . to create a print processor : http : code.msdn.microsoft.com windowshardware Genprint-4a71134f .", "Please do not include information about a language used in a question title unless it wouldn t make sense without it .", "I know one way to do that .", "See here a global view of the printing architecture http : technet.microsoft.com en-us library cc976755.aspx .", "Then you could create a white Bitmap object with sufficient size and the same aspect-ratio as your paper and supply it to the method described above .", "But is there a way to detect how much part of the page being printed .", "Thanks in advance .", "I don t think this is possible if your printer doesn t send this data .", "Maybe you should see if there is an API given by the manufacturer of your printer .", "This makes little sense .", "If you want to measure toner cartridge consumption then there are ways to get that out of the printer itself .", "It greatly depends on the make and model .", "The documents are converted to raw data and sent to the printer via the driver and that process is shown as a window like printing document 1 2 3 etc. .", "So after handing over to the printer it is the printer s job to calculate rest. .", "If this is the case it should be possible to refractor the code which prints into a seperate method which takes a an instance of Graphics as parameter and probably additional parameters like page-size and so on .", "Then you can go and count the pixels which have been colored and thus caculate the percentage of the page which the printer would have printed on .", "Keep in mind that you probably have to respect the margin around the printing area and different paper sizes for your calculation .", "If the refractoring of the code prooves to heavy you could create a wrapper for the Graphics object which duplicates all draw calls to a Bitmap while printing and then continue with counting the pixels .", "So you want to monitor ALL applications on the computer", "To make it work you will need to redirect GdiPlayPageEMF to a bitmap on memory then you can count its pixels before it is send to the handle of the printer .", "You can search about GdiPlayPageEMF on Google there will be interesting results on how to do this kind of thing .", "Also there are a lot of good info about printing here http : www.undocprint.org winspool spool files reading job data .", "I hope this helps .", "Not possible .", "However you monitor the data is sent to the printer as bulk not byte by byte .", "I think Luiz Felipe s solution is possible .", "You don t need to send the data byte by byte but you will have to interpret the data sent to the processor an EMF file in the best case .", "How can this be done using the System.Printing Namespace or Win32Api", "Any Ideas", "Welcome to Stack Overflow", "Tags serve this purpose .", "Iterate the collection and get the PrintSystemJobInfo instances .", "Thanks in advance", "You need to monitor the JobWritten event rather than JobAdded and only start reading a spool file if that event is triggered and PrintJob.Spooling false" ] }
{ "confidence": [ 67.10135650634766, 41.755069732666016, 33.64300537109375, 26.10592269897461 ], "content": [ "Question : I d would like to get the currently print job information of my printer so I go to the folder C : Windows System32 spool PRINTERS and using the following code to get the spool file information .. . .. . However sometime I can get the print job color type correctly and sometime doesn t because the buffer sr.ReadLine has returned NULL object and I assume the spool file doesn t completely being read by my program . Besides I have tried the PrintQueueWatch args.PrintJob.Color but it always return true no matter I change the document color type to B W or Color .. . .. . Anything else I have to notice while reading the spool file or using PrintQueueWatch Thanks in advance .. . Answer : You need to monitor the JobWritten event rather than JobAdded and only start reading a spool file if that event is triggered and PrintJob.Spooling false", "Question : Im currently writing a kinda print monitor app to run on a print server . The request is as follows : .. . .. . When a user is printing on a specific application the information about the application which initiated the print job is necessary . When monitoring the printer queue it gives me user information and lots of other stuff but querying the information about the application which had initiated the printjob cannot be found . Questions are : .. . .. . Is there a C .NET way to find out which application e.g . winword excel etc has initiated a print job Is this information stored in the PrintQueue or the printspooler or anywhere else How can this be done using the System.Printing Namespace or Win32Api Any Ideas Comment : Welcome to Stack Overflow Please do not include information about a language used in a question title unless it wouldn t make sense without it . Tags serve this purpose . .. . Answer : I am not sure but I think you could get the required info from PrintSystemJobInfo . Iterate the collection and get the PrintSystemJobInfo instances .", "Question : In one of my windows application I am in need of a module where we want to detect the coverage of the page being printed . Right now I am using Print Queue Watch http : printqueuewatch.codeplex.com library for detecting the printing job events . But is there a way to detect how much part of the page being printed . Thanks in advance . Comment : I don t think this is possible if your printer doesn t send this data . Maybe you should see if there is an API given by the manufacturer of your printer . Comment : This makes little sense . If you want to measure toner cartridge consumption then there are ways to get that out of the printer itself . It greatly depends on the make and model . Comment : The documents are converted to raw data and sent to the printer via the driver and that process is shown as a window like printing document 1 2 3 etc. . So after handing over to the printer it is the printer s job to calculate rest. . So its not possible unless an acknowledgment is received from the printer. . .. . Answer : Since you progammed your application in C using WinForms I assume you used a PrintDocument and your printing takes place in a PrintPage event using PrintPageEventArgs.Graphics . If this is the case it should be possible to refractor the code which prints into a seperate method which takes a an instance of Graphics as parameter and probably additional parameters like page-size and so on . Then you could create a white Bitmap object with sufficient size and the same aspect-ratio as your paper and supply it to the method described above . Then you can go and count the pixels which have been colored and thus caculate the percentage of the page which the printer would have printed on . Keep in mind that you probably have to respect the margin around the printing area and different paper sizes for your calculation . If the refractoring of the code prooves to heavy you could create a wrapper for the Graphics object which duplicates all draw calls to a Bitmap while printing and then continue with counting the pixels . This answer assumes you want to monitor your application not other applications on the system Comment : No..I am not using PrintDocument class instead I am using Print Queue Watch http : printqueuewatch.codeplex.com . . Comment : So you want to monitor ALL applications on the computer Comment : Almost..I want to monitor every print job initiated on a same machine. .", "Question : In one of my windows application I am in need of a module where we want to detect the coverage of the page being printed . Right now I am using Print Queue Watch http : printqueuewatch.codeplex.com library for detecting the printing job events . But is there a way to detect how much part of the page being printed . Thanks in advance . Comment : I don t think this is possible if your printer doesn t send this data . Maybe you should see if there is an API given by the manufacturer of your printer . Comment : This makes little sense . If you want to measure toner cartridge consumption then there are ways to get that out of the printer itself . It greatly depends on the make and model . Comment : The documents are converted to raw data and sent to the printer via the driver and that process is shown as a window like printing document 1 2 3 etc. . So after handing over to the printer it is the printer s job to calculate rest. . So its not possible unless an acknowledgment is received from the printer. . .. . Answer : I know one way to do that . You need to create a Print Processor . The print processor is a driver that can change or read data before it is sent to the Print Monitor This is the driver that emit things in proprietary format to the printer port . See here a global view of the printing architecture http : technet.microsoft.com en-us library cc976755.aspx . Here is a description of what a Printer Processor does : http : serverfault.com questions 304536 what-is-the-reason-for-choosing-a-different-print-processor . How to change the print processor by using PowerShell : http : blogs.technet.com b chad archive 2012 10 31 tip-52-mixing-the-old-and-new-setting-a-printer-s-print-processor-using-powershell-wmi-and-setprinter-exe.aspx .. . .. . And here is a sample on how to do it i.e . to create a print processor : http : code.msdn.microsoft.com windowshardware Genprint-4a71134f . To make it work you will need to redirect GdiPlayPageEMF to a bitmap on memory then you can count its pixels before it is send to the handle of the printer . You can search about GdiPlayPageEMF on Google there will be interesting results on how to do this kind of thing . Also there are a lot of good info about printing here http : www.undocprint.org winspool spool files reading job data . I hope this helps . Comment : Not possible . However you monitor the data is sent to the printer as bulk not byte by byte . Comment : I think Luiz Felipe s solution is possible . You don t need to send the data byte by byte but you will have to interpret the data sent to the processor an EMF file in the best case ." ] }
[ "yes-answer-long", "yes-answer-short" ]
printers
UNK_RELATION
xampp@php@75
xampp -- xampp is a cross-platform apache distribution bundled with mysql @placeholder and perl .
{ "confidence": [ 48.93265914916992, 43.390167236328125, 43.19551086425781, 41.632850646972656, 41.56781005859375, 41.02738571166992, 40.29648971557617, 40.29648971557617, 40.03226852416992, 39.875709533691406, 39.75658416748047, 39.3158073425293, 39.04766845703125, 39.02568817138672, 38.91352462768555, 38.91352462768555, 38.91352462768555, 38.76146697998047, 38.515235900878906, 38.1826286315918, 37.96706771850586, 37.90873718261719, 37.90873718261719, 37.665077209472656, 37.665077209472656, 37.665077209472656, 37.46599197387695, 37.17219924926758, 37.1636962890625, 37.0949592590332, 36.86890411376953, 36.72129440307617, 36.63793182373047, 36.63793182373047, 36.63793182373047, 36.63793182373047, 36.604164123535156, 36.44782257080078, 36.3942756652832, 36.3942756652832, 36.3942756652832, 36.11357879638672, 36.11357879638672, 35.9986572265625, 35.94576644897461, 35.85847473144531, 35.810890197753906, 35.806156158447266, 35.79487609863281, 35.79487609863281, 35.79487609863281, 35.6287727355957, 35.6287727355957, 35.6287727355957, 35.58717727661133, 35.566219329833984, 35.45048904418945, 35.45048904418945, 35.45048904418945, 35.411556243896484, 35.39418029785156, 35.39418029785156, 35.39418029785156, 35.39418029785156, 35.31730270385742, 35.31730270385742, 35.31730270385742, 35.13859939575195, 35.13859939575195, 35.104427337646484, 34.784446716308594, 34.784446716308594, 34.67438888549805, 34.667877197265625, 34.57771301269531, 34.57771301269531, 34.54078674316406, 34.54078674316406, 34.54078674316406, 34.45858383178711, 34.36018753051758, 34.295413970947266, 34.17377471923828, 34.04650115966797, 34.04650115966797, 34.04650115966797, 33.867794036865234, 33.867794036865234, 33.565792083740234, 33.565792083740234, 33.55807113647461, 33.452354431152344, 33.40358352661133, 33.40358352661133, 33.40358352661133, 33.40358352661133, 33.40358352661133, 33.40358352661133, 33.40358352661133 ], "content": [ "This is the output from my XAMPP install of perl : C : xampp perl bin perl -v This is perl v5.10.1 built for MSWin32-x86-multi-thread", "Hope this answer helps if someone is facing similar problems .. . .. . Step1 : Installing XAMPP .. . Download the xampp installer .. . Install xampp unselect the checkbox for perl .. . Start apache and mysql from the xampp control panel .. . Check installation by opening browser preferably firefox .. . Type localhost in the address-bar .", "There s a step by step example of using ppm with XAMPP here : http : www.apachefriends.org f viewtopic.php t 26407 .. . .. . Many modules are already installed in C : xampp perl lib and C : xampp perl site lib", "Copy G : xampp-win32-1.7.0 xampp apache bin php to G : xampp apache bin .. . 7 .", "The correct code is : .. . .. . In xampp the perl execution path is C : xampp perl bin perl.exe Also you can save a perl file ith extension .pl .pm .cgi .", "Btw in XAMPP I have only selected Apache and MySQL installation .", "That is preventing an Apache-server to start xampp .", "Restart XAMPP and run the Apache server .", "How to change the mysql port for xampp", "xampp apache logs error.log where xampp is your installation folder .", "And I have XAMPP control panel to start Apache and MySql .", "XAMPP also ships with PPM http : search.cpan.org murray PPM-2.1.8 bin ppm.pl in C : xampp perl bin ppm.bat which is often a more Windows friendly way to get modules for perl .", "After try each instuction on this post for me works when i add-in : .. . .. . Add Proccess : .. . .. . 1 . xampp apache bin httpd.exe .. . 2 . xampp mysql bin mysqld.exe .. . 3 . xampp xampp-control.exe .. . .. .", "Restart your XAMPP apache server .", "I don t think it is possible to integrate R Apache MySQL PHP on XAMPP .", "I have XAMPP running with Apache MySQL and FileZilla installed .", "Removed all Apache and MySQL packages and reinstalled XAMPP again .", "Moreless there is no password by default for MySQL in XAMPP .", "Go to xampp mysql bin and find for mysql .", "There s a openssl.exe in xampp apache bin .", "Since you re using XAMPP uncomment the line .. . .. . in xampp apache bin php.ini and then restart the Apache service .", "I installed XAMPP and have Apache running .", "My XAMPP Apache started right up .", "Open c : xampp mysql bin my.ini in editor .", "Heyho .. . .. . there is a resetroot.bat at your mysql-dir in xampp .", "Make sure mysql and xampp is shut down completely .", "When I start XAMPP with the follwoing command : .. . .. . Apache MySQL and FTP are okay however Starting ProFTPD...fail", "On the mac with XAMPP : .. . .. . Stop and Restart Apache", "For Xampp version on Windows .. . .. . Add this line to xampp phpmyadmin config.inc.php .. . .. . And Change xampp php php.ini to .. . .. . And change xampp mysql bin my.ini", "Copied in the Apache24 to xampp Apache24 from the downloaded zip .. . Renamed it to apache .. . Copied the .bat files from the xampp apacheold folder into the new xampp apache folder .", "For example I changed basedir from xampp mysql to : E : xampp mysql and so on .", "exit Xampp server .. . 2 . go to your C : xampp mysql data directory .. . 3 .", "When running XAMPP click Config under Apache .", "xampp installs apache server with default port 80 .", "The server is a Windows machine and the Apache server is provided by XAMPP .", "XAMPP dosn t set up apache PHP etc .", "Copy G : xampp-win32-1.7.0 xampp php to G : xampp php .", "main XAMPP Installation Directory : c : xampp main Checking for prerequisites main All prerequisites found main Initializing Modules Apache XAMPP Apache is already running on port 80 Apache XAMPP Apache is already running on port 443 main Starting Check-Timer main Control Panel Ready", "I m having a problem connecting to mysql database in XAMPP .", "As it is XAMPP are you sure MySQL is not running on port 3306", "Create it yourself in folder c : xampp mysql .", "For me it was easy as : .. . .. . Stopping Apache .. . Renaming xampp apache to xampp apacheold just in case it broke .", "Replaced the xampp apache conf folder with the one from xampp apacheold .. . Start Apache again .. . .. . I Hope this helps somebody .", "I am using XAMPP on Mac OS X Yosemite and I am trying to communicate with my MySQL database using Perl .", "I was scared after I installed the newest XAMPP and saw that it overwrote my XAMPP ORIG - on my C : drive there was only C : XAMPP - but relieved when my htdocs and mysql data was in the new updated version of XAMPP .", "what will be path for socket while I am using XAMPP in windows my mysql directory is d : xampp mysql", "On XAMPP I ve done the following Apache was off during these changes : Clicked on Admin from the XAMPP Control Panel and went to https : localhost xampp .", "In both situations it fails with this error message : .. . .. . Does CPAN just not work from the version of Perl that s installed with XAMPP", "Go in xampp apache conf httpd.conf and open it .", "i am running this on a xampp apache server on windows", "Then go to your Xampp Services and click on stop Apache .", "Here is the way how to do it .. . .. . 1 . go to the C : xampp apache conf or whichever directory you installed xampp .", "I also tried copying the OCI.dll from instantclient 12 1 and pasting it in c : xampp php and c : xampp apache bin .", "in my case in was in C : xampp apache bin note that there is a php.ini also in C : xampp php which seems to be redundant and irrelevant", "I got my XAMPP here : sourceforge.net projects xampp files XAMPP 20Windows 1.7.1 http : sourceforge.net projects xampp files XAMPP 20Windows 1.7.1 xampp-win32-1.7.1.zip download .", "Edit Windows Host file .. . .. . 1- Stop Apache and MySQL services from XAMPP WAMP .", "Then i have copy-paste my database from .. . .. . xampp mysql data lms .. . .. . to my installed new xampp .", "For xampp the default location for the socket is C : xampp mysql mysql.sock on my machine I do not have a sock file .", "Okay so I m trying to install HMailServer on my Windows 7 PC with XAMPP and connect it to the MySQL database in XAMPP .", "Look in the MySQL config file C : xampp mysql bin my.ini .", "Is XAMPP http : en.wikipedia.org wiki XAMPP one", "Download and install latest xampp to G : xampp .", "This is upgrading Xampp not upgrading PHP with the same Xampp .", "Only with xampp on windows it is the xampp php folder", "Restart XAMPP .", "And restart XAMPP .", "Reinstall xampp", "In XAMPP v3.2.1 for testing purposes you can see the emails that the XAMPP sends in XAMPP mailoutput .", "Please remove the old version of XAMPP and please delete C : xampp BEFORE installing the new version of XAMPP .", "It should display the welcome page of xampp .. . Step 2 : Installing OrangeHRM .. . Download orangehrm .. . Unzip the file into xampp file location htdocs .. . Step 3 : Set up Mysql manually .. . Start the Apache server and Mysql from xampp control panel .. . Open command-prompt .. . Navigate to mysql bin folder of xampp folder cd xampp folder location mysql bin .. . Enter the mysql command-prompt by typing : mysql.exe -u root .. . At the prompt type : create database orangehrm db name .. . Next you need to create the tables .", "The file is located in C : xampp apache conf .", "Im using Xampp for apache php and cakephp-2.0 .", "xampp apache setting port http : i.stack.imgur.com aZXqd.png It should work now .", "File location : I have the latest XAMPP installed in Windows 8 : C : xampp apache conf extra httpd-vhosts.conf In your case you have to find your XAMPP folder location and follow the folder structure .", "It is placed in the xampp app directory that can be accessed from the XAMPP application homepage .", "So the path to the control panel for example is now C : xampp xampp-control.exe .", "reset your mysql password on xampp security page .", "In xampp mysql bin my.ini .. . .. . Do I add", "I am using XAMPP MySQL and CodeIgniter .", "Then stop mysql from xampp control panel start it again .", "I made a clean installation of XAMPP before that I made full backup of the xampp mysql data folder then connected to the mysql server with MySql Workbench .", "the mysql.sock is still absent once I ve rebooted and started xampp with mysql and apache set to autostart .", "First download last xampp portable my using version : xampp-portable-win32-5.6.14-3-VC11 Direct Download Link http : iweb.dl.sourceforge.net project xampp XAMPP 20Windows 5.6.14 xampp-portable-win32-5.6.14-3-VC11.7z Last XAMPP http : downloads.sourceforge.net project xampp .. . 2 .", "Relaunch xampp", "But it is not enabled in XAMPP .", "xampp mercury .", "All the xampp installation is in C : xampp and inside that the ZendSkeletonApplication is installed i.e C : xampp ZendSkeletonApplication", "NB : In newer XAMPP versions PHP has moved to root xampp folder xampp php php.ini .", "Would it conflict with XAMPP .", "Open the XAMPP control panel .", "and will my adapter mysql2 or simply mysql as I am using mysql of xampp", "XAMPP is a web server including Apache PHP MySQL and Mercury which is an installer for a PC machine .", "Have you tried restarting apache in xampp after changing the php.ini file", "Remove G : xampp apache-modules php5apache2 2.dll and php5apache2 2 filter.dll .. . 5 .", "Edit G : xampp apache conf extra httpd-xampp.conf .", "One possible solution is changing the port XAMPP is using for Apache .", "XAMPP Control Panel - Click Config for the Apache module http : i.stack.imgur.com 1L9zG.png .. . .. .", "Open XAMPP apache conf httpd.conf file in notepad .. . 3 .", "Trying to install and launch Apache from Xampp.. . Error message : Problem detected" ] }
{ "confidence": [ 54.23558044433594, 52.64219284057617, 51.71697998046875, 50.45410919189453, 47.63568115234375, 46.853843688964844, 46.454002380371094, 45.71635818481445, 44.55617904663086, 43.996978759765625, 43.93110656738281, 43.884586334228516, 43.86747741699219, 43.69620895385742, 43.67523956298828, 43.66604232788086, 43.43413162231445, 42.23088455200195, 41.959930419921875, 41.84641647338867 ], "content": [ "Question : I m trying to install Orangehrm on my laptop . I have Windows 7 OS on my machine and have installed XAMPP successfully . When I try to install OrangeHRM it gives me the error : Can t find any matching row in the user table . enter image description here http : i.stack.imgur.com xzpkH.png Can anyone tell me what is going on .. . Answer : I found a solution to this problem . Hope this answer helps if someone is facing similar problems .. . .. . Step1 : Installing XAMPP .. . Download the xampp installer .. . Install xampp unselect the checkbox for perl .. . Start apache and mysql from the xampp control panel .. . Check installation by opening browser preferably firefox .. . Type localhost in the address-bar . It should display the welcome page of xampp .. . Step 2 : Installing OrangeHRM .. . Download orangehrm .. . Unzip the file into xampp file location htdocs .. . Step 3 : Set up Mysql manually .. . Start the Apache server and Mysql from xampp control panel .. . Open command-prompt .. . Navigate to mysql bin folder of xampp folder cd xampp folder location mysql bin .. . Enter the mysql command-prompt by typing : mysql.exe -u root .. . At the prompt type : create database orangehrm db name .. . Next you need to create the tables . Run the script at dbscripts Source xampp folder location htdocs orangehrm dbscript dbscript-1.sql .. . Please make sure InnoDB is enabled . Switch into mysql bin . Open my.ini . Add a before skip-innodb .. . restart XAMPP . Open the browser . Type in http : localhost orangehrm .. . The orangehrm website should open .", "Question : I m pretty rusty with Perl and I don t think it s helping that I m running it in Windows . I d like to install this http : search.cpan.org sherzodr Config-Simple-4.59 Simple.pm module . I tried the instructions here http : www.cpan.org modules INST to install a CPAN module but it fails trying to install App : : cpanminus the very first step . I tried just running cpan Config : : Simple and it didn t work either . In both situations it fails with this error message : .. . .. . Does CPAN just not work from the version of Perl that s installed with XAMPP If so how do I upgrade it without breaking anything Comment : Do a perl -v to tell us what version you re running . Also is this ActivePerl or Strawberry Perl Comment : This is the output from my XAMPP install of perl : C : xampp perl bin perl -v This is perl v5.10.1 built for MSWin32-x86-multi-thread .. . Answer : XAMPP also ships with PPM http : search.cpan.org murray PPM-2.1.8 bin ppm.pl in C : xampp perl bin ppm.bat which is often a more Windows friendly way to get modules for perl . There s a step by step example of using ppm with XAMPP here : http : www.apachefriends.org f viewtopic.php t 26407 .. . .. . Many modules are already installed in C : xampp perl lib and C : xampp perl site lib", "Question : I am using xampp 1.8.1 on windows-7 and want to use it for perl but when i execute even the most easy hello world perl script it gives me an error 500 . Does anybody know what i am doing wrong this is my hello world script : .. . .. . Thanks in advance Comment : Do you have all the correct file modes on your directories and this file Do you have the path to this file correct in your URL Probably need more info to be of any help.. . Comment : Wed Mar 20 16 : 17 : 22.205165 2013 win32 : error pid 5420 : tid 1656 client : : 1 : 52122 AH02102 : C : xampp htdocs test.pl is not executable ensure interpreted scripts have or first line Wed Mar 20 16 : 17 : 22.205165 2013 cgi : error pid 5420 : tid 1656 9 Bad file-descriptor : client : : 1 : 52122 AH01222 : don t know how to spawn child-process : C : xampp htdocs test.pl Comment : this is what my error.log file from my apache server says Comment : um C : .. . indicates windows but your usr bin perl indicates unix.. . Which is it Comment : i am running this on a xampp apache server on windows .. . Answer : The correct code is : .. . .. . In xampp the perl execution path is C : xampp perl bin perl.exe Also you can save a perl file ith extension .pl .pm .cgi . But for browser use I would prefer .cgi extension . I think this would help you .", "Question : I am using xampp 1.8.1 on windows-7 and want to use it for perl but when i execute even the most easy hello world perl script it gives me an error 500 . Does anybody know what i am doing wrong this is my hello world script : .. . .. . Thanks in advance Comment : Do you have all the correct file modes on your directories and this file Do you have the path to this file correct in your URL Probably need more info to be of any help.. . Comment : Wed Mar 20 16 : 17 : 22.205165 2013 win32 : error pid 5420 : tid 1656 client : : 1 : 52122 AH02102 : C : xampp htdocs test.pl is not executable ensure interpreted scripts have or first line Wed Mar 20 16 : 17 : 22.205165 2013 cgi : error pid 5420 : tid 1656 9 Bad file-descriptor : client : : 1 : 52122 AH01222 : don t know how to spawn child-process : C : xampp htdocs test.pl Comment : this is what my error.log file from my apache server says Comment : um C : .. . indicates windows but your usr bin perl indicates unix.. . Which is it Comment : i am running this on a xampp apache server on windows .. . Answer : Change the shebang line to actually point to your Perl path for example : .. . .. . You can quote it if necessary : .. . .. . Note that in Perl you can always use forward slashes for directories even on Windows and this is preferred because it avoids messy escaping issues . On Windows the path in the shebang line is not normally used for execution . Thus the convention is often to use usr bin perl for compatibility with Linux . However Apache actually does use this path so it needs to be set accordingly .", "Question : I m pretty rusty with Perl and I don t think it s helping that I m running it in Windows . I d like to install this http : search.cpan.org sherzodr Config-Simple-4.59 Simple.pm module . I tried the instructions here http : www.cpan.org modules INST to install a CPAN module but it fails trying to install App : : cpanminus the very first step . I tried just running cpan Config : : Simple and it didn t work either . In both situations it fails with this error message : .. . .. . Does CPAN just not work from the version of Perl that s installed with XAMPP If so how do I upgrade it without breaking anything Comment : Do a perl -v to tell us what version you re running . Also is this ActivePerl or Strawberry Perl Comment : This is the output from my XAMPP install of perl : C : xampp perl bin perl -v This is perl v5.10.1 built for MSWin32-x86-multi-thread .. . Answer : 1 . manually download and unpack the distro archive .. . 2 . change into the unpacked directory .. . 3 . run cpanm . or cpan .", "Question : ok here is the complete story i got referenced into this site : https : github.com Kimtaro jisho.org The source is great i just want to test to get it runs offline in my local server with XAMPP Where my details are as follows : Windows 7 32-bit ultimate XAMPP v1.7.2 ActivePerl 5.16.3 Build 1603 .. . .. . i got the compressed files and tried to install it manually with perl makefile.pl .. . .. . then here comes the problem : Can t locate inc Module Install.pm in @INC @INC contains : C : Perl site lib C : Perl lib . at makefile.pl line 1 . BEGIN failed--compilation aborted at makefile.pl line 1 . I haven t tried the strawberry Perl but my question is Is this the dependecy problem since i tried to look and i haven t found that install.pm in the perl directory . i ve been struggling to find the solution anywhere even if there s a tiny bit of clue to solve it i d greatly appreciate it . .. . Answer : Is this the dependecy problem .. . .. . Yes usually . If you had deployed this module from a built version that you found on CPAN inc : : Module : : Install would have been bundled with that module in its inc directory . However because you re using the source checkout you need to have the pre-requisites locally . Recommending course of action : Install cpanm https : metacpan.org pod App 3a 3acpanminus Installing-to-system-perl and then install Module : : Install .. . .. . Installing cpanm is the hard part not sure how you do that on Win32 . However once you have installing Module : : Install is easy : .. . .. . On active Perl you could probably use CPAN.pm that comes with it but I m out of touch how that works and cpanm is a valuable investment . But basically yes you have a dependency problem . And you need to solve that somehow to proceed . However exactly how to solve that depends on your system .", "Question : I installed Xampp on Windows 7 32-bit . When I try to start MySql in XAMPP control panel v3.2.1 I have the following message and MySql does not start . A similar problem was reported here http : stackoverflow.com questions 17377027 why-is-mysql-and-xampp-not-starting but there is no working answer . When I try to install with MySql disabled the result is that I even don t have an option even to try to run it . I am new to Xampp and don t know where and what to look for to solve the issue .. . .. . I need to run Apache and MySql with Php . Comment : Why is this tagged as sql-server It seems to me that it s only about MySql .. . Answer : I found out that re-installing Xampp as an administrator and running it as an Administrator worked . Comment : Thanks to this idea I re-started my XAMPP as Administrator and that fixed the issue", "Question : I installed Xampp on Windows 7 32-bit . When I try to start MySql in XAMPP control panel v3.2.1 I have the following message and MySql does not start . A similar problem was reported here http : stackoverflow.com questions 17377027 why-is-mysql-and-xampp-not-starting but there is no working answer . When I try to install with MySql disabled the result is that I even don t have an option even to try to run it . I am new to Xampp and don t know where and what to look for to solve the issue .. . .. . I need to run Apache and MySql with Php . Comment : Why is this tagged as sql-server It seems to me that it s only about MySql .. . Answer : You have two versions of mysql using the same port . 3306 . Change the port . How to change the mysql port for xampp 1 . Stop the xampp server if it is already running . 2 . Edit the value to port in xampp mysql bin my.ini .. . .. . Code : .. . .. . and here also .. . .. . Code : Comment : It works thanks", "Question : I would like to know how you upgrade PHP in Xampp for Windows I tried to download the latest PHP version from the main PHP site but when I check phpinfo I still get that the previous version is still in use . Please advise . Comment : best tutorial is here - yii.at WsOOzD http : yii.at WsOOzD .. . Answer : Take a backup of your htdocs and data folder subfolder of mysql folder reinstall upgraded version and replace those folders . Comment : Worked perfectly Thanks a lot Comment : I renamed my current XAMPP at C : XAMPP to C : XAMPP ORIG so that I could install the newest version of XAMPP at C : XAMPP but still have my app s data and original version in case something went . I was scared after I installed the newest XAMPP and saw that it overwrote my XAMPP ORIG - on my C : drive there was only C : XAMPP - but relieved when my htdocs and mysql data was in the new updated version of XAMPP . Comment : This answer is not clear Could you please elaborate more Comment : Beware that this answer only describes saving the web and MySQL data . It does not include configuration changes to PHP php.ini Apache httpd.conf and others etc . Comment : This is upgrading Xampp not upgrading PHP with the same Xampp .", "Question : I m using XAMPP 1.7.2 but need to swap out PHP 5.3 for PHP 5.2 - how do I do this Comment : Why can t you use Joomla 1.5 with PHP 5.3 Comment : I ve edited the question to remove references to Joomla since neither the questions nor answers related to it . Comment : @nickf - The question is related to Joomla since Joomla versions less than 1.5.5 will trigger a ton of errors if used with PHP 5.3 - but not with PHP 5.2 - Though I don t know if the OP had this in mind . Comment : It s years later - but swapping between different versions of XAMPP is simple to do just install different versions of XAMPP and rename directories to switch between versions . Please see my answer dated 2 15 2013 . .. . Answer : Thanks for the answer . I just got this working on Windows XP with a few modifications . Here are my steps . 1 . Download and install latest xampp to G : xampp . As of 2010 03 12 this is 1.7.3 . 2 . Download the zip of xampp-win32-1.7.0.zip which is the latest xampp distro without php-5.3 . Extract somewhere e.g . G : xampp-win32-1.7.0 .. . 3 . Remove directory G : xampp php .. . 4 . Remove G : xampp apache-modules php5apache2 2.dll and php5apache2 2 filter.dll .. . 5 . Copy G : xampp-win32-1.7.0 xampp php to G : xampp php . 6 . Copy G : xampp-win32-1.7.0 xampp apache bin php to G : xampp apache bin .. . 7 . Edit G : xampp apache conf extra httpd-xampp.conf . Immediately after the line IfModule alias module add the lines .. . .. . snip .. . .. . Note that this is taken from the same file in the 1.7.0 xampp distribution . If you run into trouble check that conf file and make the new one match it . You should then be able to start the apache server with PHP 5.2.8 . You can tail the G : xampp apache logs error.log file to see whether there are any errors on startup . If not you should be able to see the XAMPP splash-screen when you navigate to localhost . Hope this helps the next guy . cheers .. . .. . Jake Comment : Worked perfectly for me thanks . The latest version of XAMPP without PHP 5.3 is XAMPP 1.7.1 which you can download here : oldapps.com xampp.php old xampp 44 http : www.oldapps.com xampp.php old xampp 44 Comment : Jake s solution worked BUT Needed to change the path of the php5 module to load in http-xampp.conf : from : LoadModule php5 module modules php5apache2 2.dll To : LoadModule php5 module xampp apache bin php5apache2 2.dll After that it worked . Cheers Comment : Worked nicely for completeness I had to comment the line LoadModule php5 module modules php5apache2 2.dll I used XAMPP 1.7.1 too Comment : It s years later - but swapping between different versions of XAMPP is simple to do just install different versions of XAMPP and rename directories to switch between versions . Please see my answer dated 2 15 2013 . Comment : I don t know about oldapps.com but XAMPP links to SourceForge for the old versions . I got my XAMPP here : sourceforge.net projects xampp files XAMPP 20Windows 1.7.1 http : sourceforge.net projects xampp files XAMPP 20Windows 1.7.1 xampp-win32-1.7.1.zip download .", "Question : null .. . Answer : When I start XAMPP with the follwoing command : .. . .. . Apache MySQL and FTP are okay however Starting ProFTPD...fail How to fix it Thanks .", "Question : null .. . Answer : I have MySQlWorkBench and SqlYog together on my machine . And I have XAMPP control panel to start Apache and MySql . When i have only SqlYog then XAMPP was starting the MySql successfully . But after installing MySql XAMPP never started the MySql immediately and it starts once i stopped one service perhaps having name like MySql57 from services.msc . Please suggest how i could handled together the MySql and SqlYog . And with this please suggest that how could i connect the MySql and SqlYog from ASP.Net application . I will really thankful to you .", "Question : In basic terms what is a runtime environment and what is it s role purpose Also could you give me any web related examples Is XAMPP http : en.wikipedia.org wiki XAMPP one .. . Answer : Runtime environment can consist of several things . http : en.wikipedia.org wiki Run-time system talks about some code that runs before the program that you wrote actually gets executed . They come in various levels of complexity . The C runtime on Windows will do things like create a Process and a Thread for a console app grab and prepare any environment-variables etc and call the int main argc argv function . However Java and .NET runtime systems do a lot more : they instantiate virtual-machine memory managed environments . These have many threads one of which will be running your code at some point . In Java the runtime environment can be interacted with via the java.lang type objects like Thread . In C on Windows or Linux one uses external libraries to do this . So runtime environments may provide functionality in some cases but not in others . Probably one of the very few software systems that do not have a runtime environment is the bare-to-the-metal embedded systems exmaple . This is where C code is written knowing that there is NO operating-system scheduler concept of a Process or Thread DOS prompt memory manager anything . There is however usually some boilerplate C code that is linked in and run immediately before the main entry-point is executed . This is probably written in assembler and initialises a Stack . Re XAMPP this is not really a runtime environment because it is merely a set of server packages . Any code you write is either in PHP Perl or code inside the MySQL db . PHP and Perl arguably have runtime environments of their own in which the script code runs . But no XAMPP i d say is not a runtime environment . ASP.NET and Java Server Pages or whatever it s called nowadays - the server-side Java stuff which used to be in Glassfish - Java EE that s it provide runtime environments to code that you write .", "Question : I am using XAMPP package in my own desktop with Window 7 as OS . That means I m using MySQL DB and Apache server . Now I would like to copy migrate my whole MySQL DB to my friend s desktop which is also with Window as OS and also using XAMPP package . Is there any way for me to do that .. . Answer : You can open phpmyadmin in xampp and dump the DB in a file then send it to another PC and import it in phpmyadmin too .", "Question : I am facing some issue while starting Apache server via XAMPP . I have installed XAMPP Version 5.6.3 . When I start the Apache server from xampp control panel an error message is displayed as shown below : .. . .. . Figure-1 http : i.stack.imgur.com bjXDL.png .. . .. . On clicking OK button another dialog box is displayed as shown : .. . .. . Figure-2 http : i.stack.imgur.com DJqRq.png .. . .. . The thing is I wanted to use OCI instead of mysql . so I have commented out the mysql extensions and uncommented the OCI extension in php.ini file . Figure-3 http : i.stack.imgur.com DOChL.png .. . .. . The php oci8 12c.dll file is the only file available in the extensions ext folder of php in xampp . Hence I included the line in the php.ini as shown in the above image . Since then I am getting this error . I have installed instant client 12.1 as well but no luck . I also tried copying the OCI.dll from instantclient 12 1 and pasting it in c : xampp php and c : xampp apache bin . The error still persists . Need help. . .. . .. . UPDATE : I removed other oracle paths in PATH of environment-variables keeping only the instantclient path . Now I am getting this error. . Figure-4 http : i.stack.imgur.com taPdM.png .. . Answer : Well I ve installed XAMPP 1.8.2 PHP 5.4 and Apache 2.0 and I use php oci8 11g.dll and works fine . You are trying use php oci8 12g.dll I recommend you read this link http : www.oracle.com technetwork articles dsl technote-php-instant-12c-2088811.html with especifications for run oci12g . Comment : Hi @Pablo I have read the document regarding the oci8 and instantclient 12c in the link you provided and made some changes but now I am getting another error . I have mentioned it as an UPDATE in my question Comment : Your windows is 64 or 32 bits Because I guess the documentation is inconsistent . It says you must install Apache x64 InstantClient x64 ocidll x64 but php-5.5 x32 . Try run it on Windows 64 bits and with all software php apache xampp instantclient ocidll also 64 bits", "Question : I have freshly installed xampp-linux-1.8.1 on my Ubuntu 12.04 Mint 13 maya Operating system . When run lampp I get : .. . .. . In the : localhost xampp MySQL DataBase is Deactivated When I tried to stop usr sbin mysqld but it can t be stopped with this command Please I need Help Thanks . .. . Answer : Also had this issue after troubleshooting for almost 2 hours I found that it was because of other Apache and MySQL packages also running on my system . Removed all Apache and MySQL packages and reinstalled XAMPP again . Success .", "Question : I installed Xampp on Windows 7 32-bit . When I try to start MySql in XAMPP control panel v3.2.1 I have the following message and MySql does not start . A similar problem was reported here http : stackoverflow.com questions 17377027 why-is-mysql-and-xampp-not-starting but there is no working answer . When I try to install with MySql disabled the result is that I even don t have an option even to try to run it . I am new to Xampp and don t know where and what to look for to solve the issue .. . .. . I need to run Apache and MySql with Php . Comment : Why is this tagged as sql-server It seems to me that it s only about MySql .. . Answer : If there are two instances of MySql it s normal that it gives such an error if they both run at the same time . If you really need 2 servers you must change the listening port of one of them or if you don t it s probably better to simply uninstall one of them . This is so regarless of MySql itself because two programs cannot listen on the same port at the same time . Comment : Thanks . Just going through un-installing MySql and installing xamp again .", "Question : I m new to PHP . I installed XAMPP and have Apache running . I created helloworld.php in XAMPP s htdocs and got PHP to display in my browser . My question is why does my PHP script in my HTML file not display in my browser Ive never installed PHP on its own . Should I also install it Would it conflict with XAMPP . My code is below . Any assistance will be appreciated . Thanks in advance : Comment : Did you intend to post more code Comment : What is the output Comment : Is that file in www directory in Apache server I belive its www may be www-root And if it is are you opening it like : localhost myFile.php http : localhost myFile.php Comment : When I was playing with XAMPP on Windows all web stuff had to go into a directory called htdocs . Comment : Ok I was just trying to point that the file must be in a special folder that is the root folder for web sites hosted by that server.. . And that you must open it in that maner not like executable doubleclick . .. . Answer : Stop the apache service then add one change in c : xampp apache conf httpd.conf in the section by adding.. . Restart apache This looks like a big fat feature in the current xampp distribution for win 32-bit . Comment : How come I dont see the apache folder Update : Found it . The httpd.conf is in my etc folder . It won t let you edit directly though so you will have to sudo su before you edit . Thanks btw", "Question : I installed Xampp on Windows 7 32-bit . When I try to start MySql in XAMPP control panel v3.2.1 I have the following message and MySql does not start . A similar problem was reported here http : stackoverflow.com questions 17377027 why-is-mysql-and-xampp-not-starting but there is no working answer . When I try to install with MySql disabled the result is that I even don t have an option even to try to run it . I am new to Xampp and don t know where and what to look for to solve the issue .. . .. . I need to run Apache and MySql with Php . Comment : Why is this tagged as sql-server It seems to me that it s only about MySql .. . Answer : You already have a version of mySQL installed on this machine that is using port 3306 . Go into the most recent my.ini file and change the port to 3307 . Restart the mySQL service and see if it comes up . Comment : Thanks . Seems to work . Is it going to be a problem later on that I have two installations of the same MySql I wonder if it is not better to simply remove now stand alone MySql and install xampp again Comment : A problem Not really.. . more of an annoyance . I think you should remove one or the other to be safe . All of the standard mySQL interfaces are going to default to port 3306 as is the PHP code unless you specify otherwise . Comment : Not working : I tried to edit it is not saving it it is saying access is denied Comment : First run Notepad as Administrator and then open the file and see if it helps . Comment : The only solution on the Internet that actually worked for me . Thanks a ton", "Question : I am using XAMPP package in my own desktop with Window 7 as OS . That means I m using MySQL DB and Apache server . Now I would like to copy migrate my whole MySQL DB to my friend s desktop which is also with Window as OS and also using XAMPP package . Is there any way for me to do that .. . Answer : You can dump your database using mysqldump from the command-line or PHPMyAdmin if you have it installed and then import it on your friend s computer ." ] }
[ "yes-answer-long", "yes-answer-short" ]
php
UNK_RELATION
load-time@download@91
load-time -- load-time is amount of time usually in seconds that takes a browser to fully @placeholder and render a web page .
{ "confidence": [ 49.537071228027344, 46.791282653808594, 46.53736877441406, 46.374168395996094, 44.03163146972656, 43.97010803222656, 43.85725402832031, 42.498085021972656, 41.560279846191406, 41.419864654541016, 41.21244812011719, 41.16607666015625, 40.672386169433594, 40.27479553222656, 39.805755615234375, 39.166786193847656, 38.850830078125, 38.357391357421875, 38.239227294921875, 38.182456970214844, 37.894805908203125, 37.629905700683594, 37.629905700683594, 37.629905700683594, 37.60365295410156, 37.56852340698242, 37.56852340698242, 37.379249572753906, 37.256813049316406, 36.881587982177734, 36.4736442565918, 36.177738189697266, 36.12580871582031, 36.08112335205078, 36.031646728515625, 36.031646728515625, 36.031646728515625, 35.86053466796875, 35.86053466796875, 35.86053466796875, 35.86053466796875, 35.86053466796875, 35.86053466796875, 35.76200485229492, 35.62342834472656, 35.62342834472656, 35.57433319091797, 35.070491790771484, 34.81730651855469, 34.64086151123047, 34.64086151123047, 34.64086151123047, 34.57823181152344, 34.57823181152344, 34.57823181152344, 34.519935607910156, 34.508636474609375, 34.341121673583984, 34.341121673583984, 34.341121673583984, 34.22881317138672, 34.10589599609375, 34.06240463256836, 33.9728889465332, 33.961997985839844, 33.90776824951172, 33.67402648925781, 33.633487701416016, 33.34971618652344, 33.34971618652344, 33.34971618652344, 33.34971618652344, 33.34971618652344, 33.34971618652344, 33.22957229614258, 33.2263298034668, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 33.041351318359375, 32.92420959472656, 32.85740661621094, 32.80424499511719, 32.70313262939453, 32.670021057128906, 32.639793395996094, 32.634803771972656, 32.47358322143555, 32.25957489013672, 32.130558013916016 ], "content": [ "The page takes a lot of time to load .", "When refreshing a page I get a load-time of 1 - 1.5 seconds .", "I am looking for a proper way to test the time it takes a page to fully load all its resources .", "Or is it the time page takes to load render completely on client browser once after it receives the response from the Server .", "How to decrease the page load-time in ASP.NET application", "Could there be differences between load-time and perceived load-time", "Tremendous decrease in page load-time", "My Question is : how to make phantomjs each time in a loop wait for all resources and page to be fully loaded so I could track the actual page load-time for 5 times and then calculate the average page load", "I can get page overall load-time with .. . .. . But i want to get load-time of each request made to web url .", "Is is it possible with load-time-weaving", "Here s a Java function that returns page load-time .", "The problem I am having is that the initial load-time of the page is around 10 seconds .", "Any software that takes several URL as input and provides the page load-time for each URL .", "Load time .", "My home page takes 30 seconds to load in IE .", "Can one find out the page load-time by using the following code .", "The 12K image .. . 160 mS total load-time .", "Can I use the Visual Studio Web Tests to measure the performance in terms of Web page load render time once after client receives the response .", "We use load-time-weaving .", "The problem is that it takes too long for the web page to load and sometimes the web page hangs .", "possible duplicate of PHP Get Page Load Stats - How to measure php script execution load-time http : stackoverflow.com questions 4412575 php-get-page-load-stats-how-to-measure-php-script-execution-load-time", "I am building a script which detects page load-time .", "page load-time is meaningless unless you precisely define it .", "Would adding a dynamic tooltip to each add noticeably to the load-time of the page", "I d like to add a load timer in the SWFObject javascript to time how long it takes to load an SWF and then send it back to us I ll do that via AJAX .", "Then there is the time to load all the resources like images .", "Almost anything is possible with load-time weaving including this .", "Is there a way to find the page load-time for external URLs", "your second code works fine but it gives page load-time even when page has not loaded successfully", "I am currently trying to load some pages with a BrowserField2 but the loading time takes way to long .", "I want to show the users how long the page takes to fully load in the footer of my website .", "Possible duplicate of AspectJ load-time-weaving not working on Spring beans http : stackoverflow.com questions 22342526 aspectj-load-time-weaving-not-working-on-spring-beans", "However the intermittent page load problem persisted - the system was sometimes taking fifteen seconds to serve the page time-to-first-byte even though the processing had been demonstrably performed in a tiny fraction of that time .", "The web site is loaded about 4 seconds but the fonts takes 2 seconds to be loaded is there a way to load it faster", "How can I monitor the source of that load-time", "It seems it cant weave into the Jar at load-time .", "I use load-time-weaving in spring .", "I need to measure the time required for my GWT application to load .", "Try to reduce the number of queries and cache query result to decrease load-time .", "Ruby 2.0.0 has made a big difference for us in load-time .", "The result should give me the load-time in milliseconds i.e .", "In a test the 3 images took 2.68x or 268 more load-time .", "Three 3K image times .. . 430 mS total load-time .", "What is worse static files are never cached so every time page is loaded static files are again loaded and again it takes multiple seconds before page will load .", "I want to know if users are waiting only reasonable amounts of time for the page to load when they click on one of my ads .", "Never the less unused CSS increases your browsers page load-time even when the file is cached on the local drive .", "This is the time it takes the server to retrieve the page from the disk and put it into the transmit buffer .", "I am working on a spring-mvc web project .Application has a jsp page whose page load-time is around 11 sec.I want to minimize it .", "I am trying to load my web page in mobile IPhone In chrome browser it taking only 3 seconds but in safari it taking almost 2 minutes to load a entire page Is there any specific reason for this behavior", "I ve placed project on github https : github.com SunPj spring-load-time-weaving .. . .. . I use spring load-time-weaving .", "possible duplicate of Spring Boot AOP load-time-weaving http : stackoverflow.com questions 25689814 spring-boot-aop-load-time-weaving", "Duplicate of Load time weaving in AspectJ using aop.xml http : stackoverflow.com questions 3314953 load-time-weaving-in-aspectj-using-aop-xml .", "PS : I have to save the load-time in a hidden-field .", "And if so how exactly does it calculate the load-time in this circumstance .", "The load-time weaver as the name suggest will only operate on the loading of classes .", "If you re just debugging page load-time on your local machine Firefox s Firebug the Chrome Developer Tools and IE s F12 Developer Tools expose the latest page load timings .", "Blue is the time for the server to transmit to the Browser .", "I am writting a phantomjs script to open a page for multiple times and track pages full load-time .", "There is a page load-time for the loading of the base HTML but that is when the loading of CSS then rendering begins .", "or is there any way to load the page and the slideshow together i mean is there any way to set loading time for webpage", "In this case final binding is delayed until load-time .", "Using a PHP script to record time to a server log file would work for timing execution of the redirect script but that would exclude page load-time .", "my issue is each and every HTML pages takes too much time to load .", "The current load-time takes around 7-10 seconds and I d like to decrease this by only loading the core table then displaying the table rows as they are generated by the source .", "Compile time weaving and load-time-weaving are supposed to do the same thing just at different moments in time .", "It says the advantages of loading images from other domain is useful for speeding Page load because browser send more HTTP requests at a time .", "If we check the specific data we find that for example one page could have 30 seconds page load-time but is not always and it happens for a single user using Safari 9 browser in Apple mobile device .", "I need to measure page load-time in out asp.net project so I get the time stamp in Page PreInit method and in Page Unload method from the base page but my problem is that these events are fired twice .", "The total load-time is not calculated by summarizing all request times but by the latest request end time .", "This can be done at compile-time using the AspectJ compiler for example load-time or at runtime .", "@Angad is it possible that both run time weaving and load-time-weaving co-exist", "AspectJ can be used during compile-time no runtime overhead or during classloading load-time-weaving LTW .", "You seem to be trying to mix compile-time weaving and load-time weaving of your classes .", "Compile time is obviously more than soon enough load-time is just barely soon enough but fine .", "The unused CSS increases the size of the page therefore increasing the time it takes to download a page .", "Orange is the time for Browser to connect to server .", "I m trying to configure Aspectj + tomcat with load-time-weaving in Eclipse .", "I need to get the load-time for a webpage but there s a catch .", "Is there any other way to measure the total load-time including the redirects and scripts", "Is there anything I can do to reduce the file size and or load-time", "Also what implications will my large attribute list have on load-time", "The helper should be able to determine at run-time which DLL to load .", "Does this package scanning refer to entities that will be enhanced by the load-time-weaver", "I tried this but it looks like load-time-weaving is not working for external JARs .", "I am trying to use AspectJ Load-Time-Weaving .", "I am using TomcatInstrumentableClassLoader to implement AspectJ Load Time Weaving .", "Pretty sure it doesn t matter but I m using load-time weaving with the javaagent .", "I ve had same issue I use load-time-weaving in spring .", "Does anybody success in using AspectJ load-time weaving with signed jars", "This application runs perfectly on 32-bit but load-time-weaving does not work in fact doesn t even load on 64 bit .", "@Criel - For example 50 queries with a lag of only 0.1 seconds each is going to cost you 5 seconds of load-time all by itself never mind painting those controls etc .", "Yes it will improve page load-time but still this method is not often used due to these reasons : .. . .. . 1 .", "Optimizing smaller problems or optimizing without measuring the amount of time can be a waste of time when the large one is still there .", "Can anyone guide me what C code should I write for getting page load-time of each URL if the URLs are given as an input", "Page load-time if you get 200 response on previous stage - just load all data.. . .. . .. . Resources css js img .. . load-time at this stage you will measure not a web servers performance and network latency but also yours .", "What should I do to get the average page load-time of each page .", "I m calculating the start time after the browser opens hence browser boot time will not be included .", "When i am not using the computer for some time a URL takes about 1 minute to load .", "@Bergi google uses the window.load event when determining page load-time that s what I see in analytics and google likes it when a page loads quickly that s why I don t want to increase page load-time as seen by google with this script ." ] }
{ "confidence": [ 49.962833404541016, 46.25661087036133, 45.94679641723633, 44.6498908996582, 43.72573471069336, 43.280059814453125, 42.64239501953125, 42.12387466430664, 41.898311614990234, 41.82090377807617, 41.35179138183594, 40.76631546020508, 40.759708404541016, 40.679832458496094, 40.64601135253906, 40.62877655029297, 40.35391616821289, 40.35391616821289, 40.35391616821289, 39.75284957885742 ], "content": [ "Question : I am looking for a proper way to test the time it takes a page to fully load all its resources . What I ve done so far is add : .. . .. . And .. . .. . Way down in the footer . Is this a good way to measure Could there be differences between load-time and perceived load-time From what I m seeing the events trigger after all the resources have loaded including images . Are there any differences between the two events Also can I use PageSpeed to test this I know I can do it in chrome dev tools but I also want a script so that I can keep track of data . .. . Answer : The JavaScript approach is lot dependent on the web browser . Why don t you try FireBug for firefox DevTools for Chrome and Firebug lite for IE . If you still want to write some code then use window.performance object . You will most probably get different loading time for each browser .", "Question : I want to show the users how long the page takes to fully load in the footer of my website . How do I go about doing this I assume there is a function that can be used for this Not sure what language this type of feature is developed in Any help would be appreciated thanks . Comment : possible duplicate of PHP Get Page Load Stats - How to measure php script execution load-time http : stackoverflow.com questions 4412575 php-get-page-load-stats-how-to-measure-php-script-execution-load-time Comment : Do you think any your users would look at it or even care I m not trying to be facetious but I doubt any of them would even notice . Comment : I m trying to do it for my own testing means I can t find a decent service that allows me to test the page loading time across several devices I m playing around with image optimisation . Comment : Sorry Luke it s just that you said I want to show the users.. . I wasn t trying to be rude . : .. . Answer : You may try like this : .. . .. . As commented by Ed Heal you need to use JavaScript as network proxy routes need to be factored in . Also you may try this approach as well : .. . .. . From the source http : www.phpjabbers.com measuring-php-page-load-time-php17.html .. . .. . Put the following code at the very top of your PHP page if you measure the time needed for particular part of the code put this right before that PHP code part .. . .. . The following code has to be put at the very end of the web page or the end of the PHP code part Comment : You need to use JavaScript as network proxy routes need to be factored in Comment : @EdHeal : - +1 Yes thats true . Should I include that in my answer Comment : Would this answer factor in the entire page load Including jquery libraries etc Comment : @TheBlueDog - he is usually nice . But not today . He nicked my breakfast Anyway I think the numbers are required not for the user but by the website owner Comment : @EdHeal : It was his breakfast you just thought it was yours .", "Question : null .. . Answer : I am working on a website and it is pretty fast actually but the custom web fonts are preventing it to be faster . The web site is loaded about 4 seconds but the fonts takes 2 seconds to be loaded is there a way to load it faster I placed the web fonts as woff format in my project folder as static files . and i just marked the static files as below . This adds an expired header to the files which is Ok but I m looking for the other ways to load them faster if there is an one . Comment : Until the browser has cached the item the first load will always be longer . If you consistently see long load times then you should watch the network requests with the browser s dev tools for your fonts to verify that those items really are using the cached copy . Comment : I think the browser never caches these items actually . Here a picture shows the load times of the fonts after the second load of the page dbhub.blob.core.windows.net live stack.PNG https : dbhub.blob.core.windows.net live stack.PNG Comment : So examine the network headers for those items to be sure you ve setup caching correctly . Comment : Also check that your browser doesn t disable cache . I often do this for my development browser . And if you re starting this up with F5 debug there s a good chance you re getting fresh copies each time you run your site .", "Question : When we test for the Performance of an Web Application what generally people concentrate on . Is it the http response time . Or is it the time page takes to load render completely on client browser once after it receives the response from the Server . What is measured generally across the industry . Do you have any recommendations in terms which should be done when Do you have any tool recommendations for the same . Can I use the Visual Studio Web Tests to measure the performance in terms of Web page load render time once after client receives the response . or its just the http response time . .. . Answer : In three words : Performance really matters .. . .. . My golden rule is pretty simple : You have to measure everything and optimize everything . It s not only a pure tech challenge but also concerns your business team . Here are some classic exemples from Velocity Conf . Bing A page that was 2 seconds slower resulted in a 4.3 drop in revenue user . Google A 400 millisecond delay caused a 0.59 drop in searches user . Yahoo A 400 milliseconds slowdown resulted in a 5-9 drop in full-page traffic . Shopzilla Speeding up their site by 5 seconds increased the conversion rate 7-12 doubled the number of sessions from search-engine marketing and cut the number of required servers in half . Mozilla Shaving 2.2 seconds off their landing pages increased download conversions by 15.4 which they estimate will result in 60 million more Firefox downloads per year . Netflix Adopting a single optimization gzip compression resulted in a 13-25 speedup and cut their outbound network traffic by 50 . What is measured generally across the industry . Do you have any recommendations in terms which should be done when From Steve Souders pioneer in Web Performance Optimization 80-90 of the end-user response time is spent on the frontend Start here first : Too many requests non-optimized images un-minified content js css do not distribute static throught a cdn are common errros . On the other hand do not forget your backend because this part really depends on load activity . Some sites are paying the largest amount of performance tax due to backend issues . As the page generation time increases proportionally to the user load You have to find the throughput peak of your app and check if it s ok with your -own- SLA . Do you have any tool recommendations for the same There is no magic tool that covers all topics but many great tools that will help for a specific part of your app . Page Rendering : Google Chrome SpeedTracer or IE 11 UI Responsiveness tool .. . FrontEnd : PageSpeed YSlow WebPageTest.org online GtMetrix online Pingdom online .. . Backend : asp.net Mini-Profiler Glimpse Visual Studio Profiler Visual Studio Web Load Tests .. . Google Analytics for RUM Real User Monitoring .. . .. . Can I use the Visual Studio Web Tests to measure the performance in terms of Web page load render time once after client receives the response . or its just the http response time . No Visual Studio Web Load Test focus only on HTTP request . Javascript is not executed and virtual users are not virtual browsers : it s impossible to measure page laod redner time . In my company we use it only for integration tests and load-testing . If you want to read more you can look at this post https : techblog.betclicgroup.com 2013 06 19 web-performance-optimization-why-performance-matters disclamer : I am the author . Another interested link is from Jeff Atwood co-founder of StackOverflow Performance is a feature http : www.codinghorror.com blog 2011 06 performance-is-a-feature.html . Performance is a vast topic and I only cover here only a small part but you have a good starting point .", "Question : null .. . Answer : I have my cakePHP application hosted on centOS 7 monitored by appdynamics APM . In their monitoring controller I have breakdown of transactions that take too long . I also installed a simple chrome page timing plugin . On one of my webpages I got the following results : .. . .. . enter image description here http : i.stack.imgur.com JvfpT.png .. . .. . As you can see the page loaded after 157 seconds However in my APM the slowest Transaction recorded has execution-time at 2.1 seconds . If my server serves the pages in under 2 seconds and usually in around 0.5 second where does this terrible 157 seconds come from How can I monitor the source of that load-time Thats another example with firefox plugin for page load times : .. . .. . enter image description here http : i.stack.imgur.com a05Mx.jpg .. . .. . This one took nearly 54 seconds and thats a real load-time saw it mysekf . However firefox Firebug under Net tab shows that for that same page : .. . .. . enter image description here http : i.stack.imgur.com OP3gs.jpg .. . .. . 6 seconds for that same request Why are they so different and why is firebug incorrect I saw myself that the load took over 50 seconds Comment : if you are sure the time the php script takes to execute is at most 2 seconds - the answer is the webserver . Look at your apache config logs . I don t know what that image means btw - it looks to mean it took 100s to parse the dom . Chrome has it s own dev tools which don t look like that. . Comment : I attached firefox timings . Seems like parsing the content takes that long thats why nothing is showing up in my APM . Is it possible to debug what is taking that long since firebug doesnt even see this horrible load times Comment : There are a lot of variable in play here.Just because your PHP code can execute a request in 2s doesn t mean that is how long it take the client to download the content and get to an onload event . The size of the content the connection speed the physical distance between server and client any javascript that may be exeucting and causing browser to block before onload event etc . all come into play here . You will need to go through and eliminate all these possibilities to get to your answer . You should also necessarily expect to see discrepencies between metrics and server and at client Comment : I would start be investigating what javascript is running between primary response being served and the onload event as this looks like the most likely candidate as to where time is being spent . FYI you are also not showing the size of the primary request response here . That is also likely important . Comment : So I completly disabled javascript in my browser and in general sites became much faster . However once in a while I still get a page load close to 40 seconds completly randomly . What could cause that", "Question : I need to measure page load-time in out asp.net project so I get the time stamp in Page PreInit method and in Page Unload method from the base page but my problem is that these events are fired twice . How to avoid this behavior given the fact the in some child classes in Page Load event at some controls that have runat server the value may be changed from code bind index changed etc PS : I have to save the load-time in a hidden-field . Comment : You simple use your browser tools to count the time there the delay time from the request to the get first byte Comment : Not knowing what you re trying to achieve but couldn t you simply check that the value is set in PreInit and not overwrite it and always overwrite it in Unload Then you have the first set and the last set Comment : The load-time from http response will be read by a 3rd party profiler installed on the web server and will insert it into a database and reports will be generated based on this value . Comment : Maybe glimpse http : getglimpse.com is what your are looking for .. . Answer : Beside try to measure the time on server you can measure the time using the browser tools and here is an example . We have two times that we measure one is the delay up to the first byte and the second is the delay to fully load the page . So I write this code to simulate this delay . and on asp.net simulate the page load as : .. . .. . and here is how you can see that delays using the browser Network tools : .. . .. . http : www.planethost.gr so So002.gif Comment : I need to write the value inside a hidden-field because this value will be read automatically by a 3rd party profiler and add the results in a database", "Question : I am looking for a proper way to test the time it takes a page to fully load all its resources . What I ve done so far is add : .. . .. . And .. . .. . Way down in the footer . Is this a good way to measure Could there be differences between load-time and perceived load-time From what I m seeing the events trigger after all the resources have loaded including images . Are there any differences between the two events Also can I use PageSpeed to test this I know I can do it in chrome dev tools but I also want a script so that I can keep track of data . .. . Answer : I ve generalled used a combination of YSlow PageSpeed and the Net tab in Firebug to measure page loading times and diagnose potential problems . Firebug has lots of information that may prove useful if you haven t already checked this out .", "Question : I am looking for a proper way to test the time it takes a page to fully load all its resources . What I ve done so far is add : .. . .. . And .. . .. . Way down in the footer . Is this a good way to measure Could there be differences between load-time and perceived load-time From what I m seeing the events trigger after all the resources have loaded including images . Are there any differences between the two events Also can I use PageSpeed to test this I know I can do it in chrome dev tools but I also want a script so that I can keep track of data . .. . Answer : If you re just debugging page load-time on your local machine Firefox s Firebug the Chrome Developer Tools and IE s F12 Developer Tools expose the latest page load timings . For getting the page load times of visitors to your site out in the real world you ll want to use Real User Monitoring aka RUM page load metrics . I would recommend looking into the NavigationTiming spec http : www.w3.org TR navigation-timing . This spec supported http : caniuse.com feat nav-timing in IE9+ FF7+ and Chrome6+ exposes page load timings eg DNS TCP connect request response and DOM timings through the browser s DOM . This can allow you to get millisecond-accurate page load timings for every visitor that comes to your site in a modern browser . It exposes all of these metrics on the timeline : enter image description here http : i.stack.imgur.com RpVrQ.png .. . .. . Now that these metrics are exposed there are several ways you could consume them . For a DIY solution Boomerang https : github.com lognormal boomerang is a third party library that uses NavigationTiming in modern browsers to ping this data back to your datacenter . For older browsers it has some cool tricks that monitor page-to-page navigations within your site to determine how long page loads take . If you re not interested in figuring all of the Boomerang stuff out there are several other service providers that use NavigationTiming and similar data to report page load performance data such as Google Analytics http : www.google.com analytics New Relic https : newrelic.com Pingdom http : pingdom.com and Speedcurve http : speedcurve.com . Comment : +1 That image makes things clearer . Just for that this answer deserves much more credit let alone the awesome explanation .", "Question : Can anyone guide me what C code should I write for getting page load-time of each URL if the URLs are given as an input OR .. . .. . if possible please provide me link-to any software that does that . Any software that takes several URL as input and provides the page load-time for each URL . Comment : Please take into account that the results could vary alot : sudden highload on server your router has high CPU load etc . What are you trying to achieve Comment : Do you want to create loads.in http : loads.in O o Comment : I just want a code by which I get the page load-time as we get in HTTPCheck tool in Internet Explorer when given several URL as input Comment : What do you actually want to test If it s how long webpages take to load have a look at a private instance of Web Page Test webpagetest.org this is scriptable .. . Answer : Do you want to measure the time it takes for the first request to be answered or do you want to include the downloading of style and external scripts and clientside rendering The first can simply be solved by using a WebClient http : msdn.microsoft.com en-us library system.net.webclient 28v VS.100 29.aspx . While for the latter put a WebBrowser http : msdn.microsoft.com en-us library system.windows.forms.webbrowser.aspx on a form where you create a method for consuming the DocumentCompleted http : msdn.microsoft.com en-us library system.windows.forms.webbrowser.documentcompleted.aspx event : Comment : Can you please provide me the code as well Afterall its a +100 repo question Comment : @vaibhav answer updated . Comment : actually the first code you have provided is fine but the URLs I m talking about need authentication for their access I connect to a particular VPN and then open browser with certain credentials to access the URL I don t think also takes care of that Comment : your second code works fine but it gives page load-time even when page has not loaded successfully Comment : @vaibhav for the first it should depend on your configuration . webClient.Credentials new System.Net.NetworkCredential UserName Password Domain should work . For the second try to check if e.Url is the URL you re requesting . It will fire for every resource on the page so images stylesheets and so on .", "Question : Can anyone guide me what C code should I write for getting page load-time of each URL if the URLs are given as an input OR .. . .. . if possible please provide me link-to any software that does that . Any software that takes several URL as input and provides the page load-time for each URL . Comment : Please take into account that the results could vary alot : sudden highload on server your router has high CPU load etc . What are you trying to achieve Comment : Do you want to create loads.in http : loads.in O o Comment : I just want a code by which I get the page load-time as we get in HTTPCheck tool in Internet Explorer when given several URL as input Comment : What do you actually want to test If it s how long webpages take to load have a look at a private instance of Web Page Test webpagetest.org this is scriptable .. . Answer : I am using this to keep internal web sites active and measure log response time kind of a keep alive service : .. . .. . ErrorLogger is a little wrapper I made around Log4Net .", "Question : I want to show the users how long the page takes to fully load in the footer of my website . How do I go about doing this I assume there is a function that can be used for this Not sure what language this type of feature is developed in Any help would be appreciated thanks . Comment : possible duplicate of PHP Get Page Load Stats - How to measure php script execution load-time http : stackoverflow.com questions 4412575 php-get-page-load-stats-how-to-measure-php-script-execution-load-time Comment : Do you think any your users would look at it or even care I m not trying to be facetious but I doubt any of them would even notice . Comment : I m trying to do it for my own testing means I can t find a decent service that allows me to test the page loading time across several devices I m playing around with image optimisation . Comment : Sorry Luke it s just that you said I want to show the users.. . I wasn t trying to be rude . : .. . Answer : You need two times : the starttime and the endtime . Using JavaScript the starttime can only be approximated because the script will only fire when it is loaded not before . This means that you will not measure stuff like DNS looking initial latency and initial downloading . If you re fine with this limitation do this : .. . .. . 1 . In the head of the page determine the current time using an inline script .. . 2 . On the firing of the onload determine the current time again .. . 3 . subtract the first time from the second and then you have the total time it took to load the page .. . .. . Another caveat : Stuff that gets loaded via ajax is not measured here either . The onload fires before the ajax stuff runs .", "Question : I have a lot of ckeditors on one web page for students to enter their data . I have a lot of ckeditors because each one is for one variable . Unfortunately an input text field is too small for the data requested . The problem is that it takes too long for the web page to load and sometimes the web page hangs . I m currently loading almost 425 editors . Here s an example of my code for three : .. . .. . I followed the performance guidelines http : ckeditor.com blog CKEditor-Loading-performance-details on ckeditor searched Stackoverflow for answers and it still isn t working . I even have the ckeditor toolbar minimized to just one row . I figure there has to be a way to load the ckeditors without having to load ALL the ckeditors and the contentCss when the page loads but when the ckeditor is needed . Any help would be greatly appreciated . .. . Answer : but the total number of ckeditors on the web page is almost 425 . Have you ever tried to open any application 425 times at the same time 425 tab in your browser 425 Wordpads 425 of whatever I don t think so . So the answer is very short - you re doing it wrong . You should not initialize all editors at once . Load them on demand when needed and destroy when not needed . User can t edit 425 text at the same time anyway . The longer answer is that classic editor http : docs.ckeditor.com guide dev framed is the heaviest one because it uses iframe . So when you initialize 425 you initialize 425 iframes . Inline editors http : docs.ckeditor.com guide dev inline are much lighter . There s also a divarea http : ckeditor.com addon divarea plugin which makes the classic editor use inline editable element instead of iframe so it s lighter too . But the answer is still - you re doing it wrong . Comment : Load them on demand when needed and destroy when not needed . Are there examples to look at to learn The only example I saw on the web isn t working - stackoverflow.com questions 23896892 http : stackoverflow.com questions 23896892 ckeditor-inline-instance-fails-to-reload-after-its-destroyed jsfiddle.net 22A6F http : jsfiddle.net 22A6F Comment : @Reinmarm I have followed the inline editor approach and it increases the page loading time considerably for the ckeditors . Now the only problem I have is the contentedible true is turned into contentedible false when I click the 186 ckeditor and the ckeditor does not load at all but if I delete some of the previous inline editors listed - the ckeditors that didn t work now work so its probably a number thing in the ckeditor.js file . Any help would be appreciated . Link with images : 1drv.ms 1HdvF8X http : 1drv.ms 1HdvF8X", "Question : I m using Cherrypy 3.6.0 framework . I have problem with long time loading pages serving static files takes a lot of time when I open page in more than one browser . In that case for example bootstrap.min.css file which has 120kB can load 5-10 seconds . What is worse static files are never cached so every time page is loaded static files are again loaded and again it takes multiple seconds before page will load . When server respond 304 Not modified it also takes the same amount of time before client-side receive this answer there is no difference in response time no matter if static file is loaded or server respond 304 . My serving static files configuration : .. . .. . I can t understand how it is possible that fetching 120kB file can take so much time.. . Maybe someone can give me advise where can I look for reason of this problem EDIT : .. . .. . Headers : .. . .. . In timining overlap I have : .. . .. . I checked what is TTFB and this is the duration from the virtual user making an HTTP request to the first byte of the page being received by the browser . So something is wrong with server responsiveness.. . .. . .. . EDIT2 : .. . .. . I have created minimal app which only loads static files and problem still occurs . This is app-code : .. . .. . server : .. . .. . app : .. . .. . html : .. . .. . links to screenshots : .. . .. . http : i58.tinypic.com 21m8ar5.png http : i60.tinypic.com euh6p0.png .. . .. . EDIT3 : .. . .. . I have reduced my app to : .. . .. . And problem still occurs . When I open main page in IE FF Safari and Chrome - some static files are loading more than 10 seconds .. . Comment : Recently I answered similar question http : stackoverflow.com a 27486666 2072035 and come to conclusion that CherryPy caches files by default . Caches in sense of sending headers that allow a browser to cache content . tools.caching is for in-process memory caching I don t think it s good idea for static content . Can you show us the round trip headers for your bootstrap.min.css . .. . Answer : You must have omitted some headers and some configuration . CherryPy sends Vary : Accept-Encoding only for gzipped responses . Normally it sends Last-Modified Content-Type Content-Length and some others . Also note that Cache-Control : max-age 0 means you do a refresh request asking server to validate the resource . In the answer http : stackoverflow.com a 27486666 2072035 I linked in the comment I showed that normally 304 Not Modified only costs CherryPy a os.stat call which is instant unless your disk is broken . What I suggest you to do is to run a separate CherryPy app on the same static directory with only tools.staticdir on to avoid possible misconfiguration session lock issues etc . Then gradually append configuration and measure the response time e.g . with Apache s ab -c 10 -n 1000 http : 192.168.100.100 static css bootstrap.min.css .", "Question : Can anyone guide me what C code should I write for getting page load-time of each URL if the URLs are given as an input OR .. . .. . if possible please provide me link-to any software that does that . Any software that takes several URL as input and provides the page load-time for each URL . Comment : Please take into account that the results could vary alot : sudden highload on server your router has high CPU load etc . What are you trying to achieve Comment : Do you want to create loads.in http : loads.in O o Comment : I just want a code by which I get the page load-time as we get in HTTPCheck tool in Internet Explorer when given several URL as input Comment : What do you actually want to test If it s how long webpages take to load have a look at a private instance of Web Page Test webpagetest.org this is scriptable .. . Answer : If I am understanding the question correctly then Apache JMeter could do this : http : jmeter.apache.org .. . .. . It is scriptable and you can set up a variety of scenarios for load-testing .", "Question : null .. . Answer : I am writting a phantomjs script to open a page for multiple times and track pages full load-time . In the script below the page is opened 5 times but the page load times are not accurate because phantom does t wait for all resources to be downloaded and page fully loaded he immediately triggers another function and overlaps previous . My Question is : how to make phantomjs each time in a loop wait for all resources and page to be fully loaded so I could track the actual page load-time for 5 times and then calculate the average page load I am new at writting scripts and programming and it s killing me already as this is a work task I don t have enough time to learn for myself these things . Comment : Possible duplicate of phantomjs not waiting for full page load http : stackoverflow.com questions 11340038 phantomjs-not-waiting-for-full-page-load Comment : The question is how you define a full page load . If you define it by all resources are loaded then these answers should get you closer : one http : stackoverflow.com a 14748934 1816580 two http : stackoverflow.com a 21401636 1816580", "Question : Can one find out the page load-time by using the following code . If yes then how much will be the accuracy Is there any more accurate way .. . Answer : I would suggest using the Firefox devtools or Firebug . With your method you are also adding in the browser boot time . Comment : I m calculating the start time after the browser opens hence browser boot time will not be included . Comment : You are right . I realized that later and forgot to come back and edit my answer . Can you not just use devtools from your favorite browser They are built to do stuff like this.. . and there are many other tools on the web that can do this also . Why reinvent the wheel You d have to become and expert in page load times.. . just use a tool that someone else has created that has the expertise to do it right and it s already been tested .", "Question : Can anyone guide me what C code should I write for getting page load-time of each URL if the URLs are given as an input OR .. . .. . if possible please provide me link-to any software that does that . Any software that takes several URL as input and provides the page load-time for each URL . Comment : Please take into account that the results could vary alot : sudden highload on server your router has high CPU load etc . What are you trying to achieve Comment : Do you want to create loads.in http : loads.in O o Comment : I just want a code by which I get the page load-time as we get in HTTPCheck tool in Internet Explorer when given several URL as input Comment : What do you actually want to test If it s how long webpages take to load have a look at a private instance of Web Page Test webpagetest.org this is scriptable .. . Answer : Try this .. . .. . With this I get", "Question : Can anyone guide me what C code should I write for getting page load-time of each URL if the URLs are given as an input OR .. . .. . if possible please provide me link-to any software that does that . Any software that takes several URL as input and provides the page load-time for each URL . Comment : Please take into account that the results could vary alot : sudden highload on server your router has high CPU load etc . What are you trying to achieve Comment : Do you want to create loads.in http : loads.in O o Comment : I just want a code by which I get the page load-time as we get in HTTPCheck tool in Internet Explorer when given several URL as input Comment : What do you actually want to test If it s how long webpages take to load have a look at a private instance of Web Page Test webpagetest.org this is scriptable .. . Answer : I recommend YSlow is very useful tools for checking website performance YSlow http : developer.yahoo.com yslow", "Question : Can anyone guide me what C code should I write for getting page load-time of each URL if the URLs are given as an input OR .. . .. . if possible please provide me link-to any software that does that . Any software that takes several URL as input and provides the page load-time for each URL . Comment : Please take into account that the results could vary alot : sudden highload on server your router has high CPU load etc . What are you trying to achieve Comment : Do you want to create loads.in http : loads.in O o Comment : I just want a code by which I get the page load-time as we get in HTTPCheck tool in Internet Explorer when given several URL as input Comment : What do you actually want to test If it s how long webpages take to load have a look at a private instance of Web Page Test webpagetest.org this is scriptable .. . Answer : You ll want a Stopwatch and either a WebClient or a WebRequest .", "Question : Say I want to print an image multiple times and in groups . So the the desired result would be something like this : .. . .. . Is it more efficient to create one large image like : : : out of the smaller image or to just print the smaller image : a bunch of time This is a Rails application . The small image is about 3 kB and the large image is about 12 kB . Comment : Define your criteria of efficiency . Example : a small picture will save bandwith and download faster but several prints might take more CPU . Comment : @borjab Interesting so in other words the small picture would cut down on load-time but would be harder on the server Comment : Don t know but I am sure it really helps to have more context . It is a web application Are images really heavy A web server application Comment : And surely bigger images are more work for the server . Small images can be cached and only be downloaded once . Comment : @borjab I added some more information . .. . Answer : The larger image is the proper way to go . What is important is the single image has only one round trip http-request .. . where there will be three for three images . In a test the 3 images took 2.68x or 268 more load-time . In this page load waterfall I have 3 images about 3K each . 3 3K images http : i.stack.imgur.com jbn7z.jpg .. . .. . This is one 12K image . 12K image http : i.stack.imgur.com 0yOwe.jpg .. . .. . Orange is the time for Browser to connect to server . Green is the wait time for server to put image in output buffer . Blue is the time for the server to transmit to the Browser . The 3K images have only a very small thin blue line which is 3 milliseconds . Three 3K image times .. . 430 mS total load-time . The 12K image .. . 160 mS total load-time . 430 160 2.68 100 268" ] }
[ "yes-answer-long", "yes-answer-short" ]
download
UNK_RELATION
mysite@server@35
mysite -- my site is a sharepoint @placeholder 2007 service that provides a website for information hosting web portal services personalization and many other services .
{ "confidence": [ 41.402217864990234, 36.061492919921875, 33.899757385253906, 32.760345458984375, 32.7127685546875, 31.769977569580078, 31.656753540039062, 31.297008514404297, 31.217453002929688, 30.96565818786621, 30.788440704345703, 30.600788116455078, 30.196880340576172, 30.099117279052734, 29.901126861572266, 29.726654052734375, 29.55781364440918, 29.234256744384766, 29.21019744873047, 29.090991973876953, 29.014123916625977, 28.862926483154297, 28.827796936035156, 28.798694610595703, 28.53741455078125, 28.32508087158203, 27.8251953125, 27.414581298828125, 27.145435333251953, 27.100793838500977, 27.004940032958984, 26.979909896850586, 26.798311233520508, 26.705991744995117, 26.682533264160156, 26.4311580657959, 26.18057632446289, 25.945751190185547, 25.52264404296875, 25.360919952392578, 25.33285140991211, 25.27684211730957, 25.272323608398438, 25.070781707763672, 25.070781707763672, 25.00471305847168, 24.965625762939453, 24.965625762939453, 24.836872100830078, 24.49228858947754, 24.442398071289062, 24.374248504638672, 24.315608978271484, 24.229461669921875, 24.229461669921875, 24.131439208984375, 23.89922332763672, 23.89922332763672, 23.89922332763672, 23.820297241210938, 23.811603546142578, 23.81064224243164, 23.559173583984375, 23.47148895263672, 23.021820068359375, 22.91126823425293, 22.856590270996094, 22.825679779052734, 22.79731559753418, 22.776174545288086, 22.632843017578125, 22.622575759887695, 22.301265716552734, 22.166606903076172, 22.166606903076172, 22.14825439453125, 22.061279296875, 22.0234432220459, 22.0234432220459, 22.0234432220459, 21.868453979492188, 21.762062072753906, 21.70853042602539, 21.70716094970703, 21.664934158325195, 21.62568473815918, 21.54423713684082, 21.46160888671875, 21.434432983398438, 21.252639770507812, 21.01717758178711, 21.01717758178711, 20.972408294677734, 20.892841339111328, 20.875425338745117, 20.799617767333984, 20.78317642211914, 20.78317642211914, 20.676799774169922, 20.66351318359375 ], "content": [ "There you have to select the entry Personalization services permissions .", "The solution is to first activate the SharePoint Blog feature on the Mysite Personal Site Collection .", "You can select Personalization Site Links and point to an existing site that contains the web part page you want to display .", "I m looking for a way to prevent a user in SharePoint from deleting his MySite or be more precise from deleting the MySite s root web site .", "How do I go about changing the My Site and My Profile text on everyone s My Site within SharePoint 2007", "We have a created a subsite to the SharePoint 2010 Mysite used blank site called home .", "Is there anything in the SharePoint API that we can use that will provide us the URL for the main portal site collection", "We added an entry to the Property Bag of the the My Site Host that contains the fully qualified URL to the Portal web application .", "I.e : http : mysite is my web application URL .", "So a MySite could be used for multiple web-applications .", "In your Shared Services Provider Central Admin Shared Services Admin look under User Profiles and My Sites .", "per example my root site collection for mysite is http : network.test.com .", "The problem is that one MySite host is assigned to a Shared Service Provider and multiple web-applications can be assigned to one Share Service Provider .", "We have a custom master page that is deployed to My Site as well as to the portal .", "I m looking for a webpart OutOfBox because my administrator doesn t allow to add new webpart in the curren t sharepoint to access from SP 2007 to the information like status or project assignment on MySite on SP 2010 .", "In this prompt put in your service account that is running your Distributed Cache and grant it full control .. . .. . Note : Performing this action may cause the User Profile Services web-services to be restarted so it shouldn t be done in the middle of the day .", "The MySite site collections DO show up in Central Admin .", "I want regular user can access the User Information List in Mysite root site .", "The client s intranet site also uses Mysite and I use feature stapling to apply the feature with the Mysite masterpage to the host and personal Mysite .", "The portal master page has an image that the user clicks and directs them to the MySite application .", "I need to add a customized My Home Page using a specified page layout on the creation of a new My Site in SharePoint 2007 .", "As far as I know a MySite is a site collection so how would you make a site collection a sub site of a site collection", "SharePoint writes an error message to this field when an error occurred during the MySite creation process .", "You can t create a custom site definition for mysite .", "There are more My Site properties you can get in some articles here : stsadm.blogspot.com 2007 09 my-site-settings.html http : stsadm.blogspot.com 2007 09 my-site-settings.html", "I have created mysite and two other sites as 3 different web-applications in my sharepoint server like .. . .. . all sites are using authentication aspnetdb .. . .. . each sites site1 and site 2 got different content and different users these all user have their mysite in .. . .. . mysite.sp.com web application .so when users want to go to mysite i am redirecting to the mysite.sp.com site and it asking again authentication for user .", "The publishing features are also activated for Mysite so the branding is consistent with the intranet site .", "I am building a web part to put on Sharepoint My Sites .", "We build all relative URL hyperlinks on any of the My Site pages using the portal value from the property bag .", "The way to go is described here http : blogs.msdn.com sharepoint archive 2007 03 22 customizing-moss-2007-my-sites-within-the-enterprise.aspx on the SharePoint team blog .", "Click Welcome FirstName LastName in the top-right corner of your SharePoint site .", "And then after that activate the right publishing features on the Mysite Personal site collection and the Blog site .", "This page resides under mysite but I cannot see this page is SharePoint 2013 designer to edit but modifying SharePoint pages in designer is not always the best way .", "i need to have mysite in a separate web application .", "How do I get SharePoint to sync up with the user-profile service", "We have a custom master page that is deployed to the MySite web application per these instructions - http : www.sharepointblog.com 2008 07 sp2007-custom-master-pages-on-subsites.html .. . .. . However we require the ability to deactivate the feature on all the site collections that are within the MySite webapplication .", "Yes that s good that gives me an extra tab do you know how I might get it to remain inside the mysite area and just display the new web part page without leaving the mysite", "We want to try to prevent using a mySite and just use the profile of SharePoint 2010 .", "One of the best recommaned approach to achive what you want is defined here http : blogs.msdn.com sharepoint archive 2007 03 22 customizing-moss-2007-my-sites-within-the-enterprise.aspx", "I ve been away from SharePoint development for quite a while now and I m trying to access the information in a SharePoint 2010 blog from one of our users within their MySite from a C webpart which will reside on the homepage of the site .", "Contact your site administrator for more information .", "i have SharePoint 2010 portal with many users and i configured my site i created some publish pages and by default the pages links appear in my site navigation bar i want specific users SharePoint group only shows this links and other users don t show it .. . .. . i made the following .. . .. . i have create site from template personalization site and then add links as following .. . .. . in site settings- navigation i created new link and assign a SharePoint group to be the audiences of this link .. . .. . when login by user from this group audiences the link appears on both top navigation bar and navigation bar beside my site in the top of the page note that this last navigation bar exist in mysite.master .. . .. . when login by user outside this group the link disappear only from top navigation bar but it still exist in my site navigation bar .. . .. . can any one help me to find why the link appear in my site navigation bar when log in by user not in audience group .. . .. . thanks in advance", "I ve followed Randy Drisgills tutorial for changing the SharePoint site icon and it worked .", "SharePoint Blog feature must first be activated on the Mysite Personal-- .. . FeatureSiteTemplateAssociation Id 863DA2AC-3873-4930-8498-752886210911 TemplateName SPSPERS 0 .. . .. . -- 3 .", "SharePoint Server Publishing Infrastructure on Mysite Personal : -- .. . FeatureSiteTemplateAssociation Id f6924d36-2fa8-4f0b-b16d-06b7250180fa TemplateName SPSPERS 0 .. . -- 4 .", "Manage Personl site .. . .. . How should I cleanup this website", "When i m activating the feature on the mysite host the branding is applied on both the host and the personal site .", "When the user clicks on the create blog link on his personal Mysite the new site is created .", "I need to get the SPUser whose My Site the web part is on .", "On MOSS mysites I want to be able to create a new tab that every mysite user can view it should show a web part page .", "Followed Counts web part FollowedCountsWebPart is blank though the user has a personal mysite created", "One 2007 and the other 2010 .", "I deleted my site on Sp 2010 and when I click MyContent sharepoint try to create a new MySite for me but get error like .. . .. . When i check event-viewer in server i see below error .", "The simplest way to change the My Site web-parts for a single particular user is to log in as that user .", "This is pretty much exactly how we did it only I wrapped it in a feature which was deployed to the My Site web application .", "Especially how could I retrieve the MySite storage location defined in a SSP s MySite settings", "There you could define who s allowed to create a MySite and who s not .", "While creating mysite it throws an error 400 Bad request .", "As long as this error message is in the field every try to recreate the MySite will fail .", "These are physical changes to files within your web application IIS web site .", "As part of the adoption process users whose documents are in network-shares have been informed they will have their network share documents in MOSS 2007 MySite .", "Is it possible to change the favicon for the My Sites in Sharepoint 2010", "I have multiple pages on mysite and it s working", "Go to the Central Administration and open the Shared Service Provider for your web application .", "Or to put it the other way make the MySites a subsite to a site collection that has the site that you want all the MySites to see .", "You might be able to use SPUrl : SiteCollection See http : www.cleverworkarounds.com 2007 10 08 sharepoint-branding-how-css-works-with-master-pages-part-1", "I did some branding for an intranet site for a client in SharePoint 2010 and build a solution .", "On the 2010 there are MySite profile enabled .", "I m not sure the Page Viewer Web Part is available for the Public Profile Page of My Site - though you may be able to import it .", "A Page Viewer Web Part would do the trick in the Personal Site but you d probably need to use Feature Stapling to attach it to each user s Personal Site .", "Click the My Site link in the top-right corner .", "I am looking for a tool that can bulk upload user-profile images to the SharePoint My Site host .", "This users MySite URL also needs to be .. . .. . When the user signs up to the site we create their profile and MySite using this code : .. . .. . Is there something I can do here to control the URL used", "So this is not an option as I don t want to limit the use of the MySite .", "We use AD groups to determine who gets a MySite .", "Is there any way to use the host web tasks list in a SharePoint Add-In workflow or any way to add the App Web to the task aggregation in My Sites", "That way you target only the web application site-collection the feature is activated in.. .", "for one user mysite created wrong for all others creating mysites are creating fine .", "Could you check the user s profile and try to clear the field which stores the URL to user s MySite .", "I had created a User Policy over a year ago specifically for the MySite application users which restrict creating subsites .", "As Nacht writes in his post there is no accountname query-string when you are on your own MySite so you need to account for both cases in the code : When on somebody else MySite use the querystring and when on the currents users MySite the querystring is empty so then look in the SPContext for the logged on user .", "However you ll loose some functionnality related to mysite such as Office client and windows integration you can let Windows remember your mysite .", "I have a MOSS 2007 instance where my client wants the content that comes in the My Site profile to not show up as links .", "You may get more traction on this if you move this question to the Sharepoint StackExchange site .", "When a user clicks on an image that is in the global navigation they need to be directed back to the Portal .", "Can anyone give me any pointers on how to do this preferably without modifying the Master page as detailed here http : blogs.msdn.com sharepoint archive 2007 03 22 customizing-moss-2007-my-sites-within-the-enterprise.aspx", "On the My Site master page we need to be able to facilitate the same functionality .", "I am the SharePoint administrator for a company .", "I modify the master page on my account and its working but whenever a new creates mysite .", "When SharePoint creates a post like in my example it creates it with resource files so i think because if I change my language to any other it will-change the langugage of the same post according to installed languages .", "So Pls how do I integrate network-shares into MySite", "I have a MySite host personalized with a custom master page and a usercontrol with a listview on it .", "My own feature with Masterpage on both Mysite Host and Mysite Personal -- .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSMSITEHOST 0 .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSPERS 0 .. . .. . -- 2 .", "This a detailed blog on Microsft s site about feature stapling : .. . .. . Customizing MOSS 2007 My Sites within the enterprise http : sharepoint.microsoft.com blog Pages BlogPost.aspx PageType 4 ListId 7B72C1C85B-1D2D-4A4A-90DE-CA74A7808184 7D pID 794", "This might be simple or impossible - Is there a way to restrict the Mysite usage to only a specific group in Moss 07 so that only this groups has personal sites", "I would build a simple console-application which iterates over all site collections MySites of your web application and deactivates the feature .", "That master page doesn t have either of the tabs My Site or My Profile in there .", "Yes both of my js files are in Style Library of my site .", "did you run the code in the server that contain the SharePoint", "If I am not logged in as an admin account I can see if they tagged the page myNewsfeed but no other tags on other site collections ." ] }
{ "confidence": [ 56.621681213378906, 55.73994445800781, 53.949851989746094, 51.407249450683594, 49.92833709716797, 46.87101364135742, 44.704219818115234, 43.478858947753906, 42.74152374267578, 41.77139663696289, 41.68483352661133, 41.49021911621094, 41.35395431518555, 41.14950180053711, 40.57950973510742, 40.41721725463867, 40.408016204833984, 40.408016204833984, 40.02372741699219, 39.03146743774414 ], "content": [ "Question : On MOSS mysites I want to be able to create a new tab that every mysite user can view it should show a web part page . How can I do this .. . Answer : In your Shared Services Provider Central Admin Shared Services Admin look under User Profiles and My Sites . You can select Personalization Site Links and point to an existing site that contains the web part page you want to display . You can also filter the display using the Audiences functionality so that it only displays to a select group of users . Comment : Yes that s good that gives me an extra tab do you know how I might get it to remain inside the mysite area and just display the new web part page without leaving the mysite Comment : Oh OK you mean actually within the user s Personal Site A Page Viewer Web Part would do the trick in the Personal Site but you d probably need to use Feature Stapling to attach it to each user s Personal Site . I m not sure the Page Viewer Web Part is available for the Public Profile Page of My Site - though you may be able to import it .", "Question : We have a custom master page that is deployed to My Site as well as to the portal . The portal master page has an image that the user clicks and directs them to the MySite application . On the My Site master page we need to be able to facilitate the same functionality . When a user clicks on an image that is in the global navigation they need to be directed back to the Portal . Since the portal will be deployed in different locations I don t necessarily want to hard code the URL nor do I want to leave it as an end user configuration i.e . read the URL from a list . Is there anything in the SharePoint API that we can use that will provide us the URL for the main portal site collection .. . Answer : The problem is that one MySite host is assigned to a Shared Service Provider and multiple web-applications can be assigned to one Share Service Provider . So a MySite could be used for multiple web-applications . So without any meta infos or conventions it won t be possible to link back to the right site collection .", "Question : We have a custom master page that is deployed to My Site as well as to the portal . The portal master page has an image that the user clicks and directs them to the MySite application . On the My Site master page we need to be able to facilitate the same functionality . When a user clicks on an image that is in the global navigation they need to be directed back to the Portal . Since the portal will be deployed in different locations I don t necessarily want to hard code the URL nor do I want to leave it as an end user configuration i.e . read the URL from a list . Is there anything in the SharePoint API that we can use that will provide us the URL for the main portal site collection .. . Answer : You might be able to use SPUrl : SiteCollection See http : www.cleverworkarounds.com 2007 10 08 sharepoint-branding-how-css-works-with-master-pages-part-1", "Question : This might be simple or impossible - Is there a way to restrict the Mysite usage to only a specific group in Moss 07 so that only this groups has personal sites thanks in advance .. . .. . Ren .. . Answer : Yes what you re trying to archive is possible . Go to the Central Administration and open the Shared Service Provider for your web application . There you have to select the entry Personalization services permissions . On the next page you ll see a list where you could allow or deny certain functionality to certain groups . There you could define who s allowed to create a MySite and who s not . MSDN Article http : technet.microsoft.com en-us library cc263073.aspx section3 Comment : ahh there it is . . thanks a lot btw it s Berechtigungen verwalten : Rechte f r gemeinsame Dienste -", "Question : We have a custom master page that is deployed to My Site as well as to the portal . The portal master page has an image that the user clicks and directs them to the MySite application . On the My Site master page we need to be able to facilitate the same functionality . When a user clicks on an image that is in the global navigation they need to be directed back to the Portal . Since the portal will be deployed in different locations I don t necessarily want to hard code the URL nor do I want to leave it as an end user configuration i.e . read the URL from a list . Is there anything in the SharePoint API that we can use that will provide us the URL for the main portal site collection .. . Answer : We added an entry to the Property Bag of the the My Site Host that contains the fully qualified URL to the Portal web application . We build all relative URL hyperlinks on any of the My Site pages using the portal value from the property bag .", "Question : I want regular user can access the User Information List in Mysite root site . I am using RunWithElevatedPrivileges method . Still throwing access denied error . per example my root site collection for mysite is http : network.test.com . the user want assess userinformation list this site collection . How can he access that Comment : did you run the code in the server that contain the SharePoint .. . Answer : SPContext.Current runs outside the RunWithelevatedPrivileges elevated context . For more info see this http : www.mikhaildikov.com 2007 07 runwithelevatedprivileges-watch-out-for.html blog post .", "Question : I ve got 2 distinct sharepoint . One 2007 and the other 2010 . On the 2010 there are MySite profile enabled . I m looking for a webpart OutOfBox because my administrator doesn t allow to add new webpart in the curren t sharepoint to access from SP 2007 to the information like status or project assignment on MySite on SP 2010 . Are you thinking it s possible Thanks in advance .. . .. . Julien Garcia .. . Answer : i don t think much can be done using OOTB webparts you have to for a custom webpart solution Comment : It s exactly i m thinking . Too bad for me but for my boss too.. .", "Question : for one user mysite created wrong for all others creating mysites are creating fine . While creating mysite it throws an error 400 Bad request . I try to delete site using below command . Its throwing error . error : .. . .. . Even I tried to delete site from SSP . Manage Personl site .. . .. . How should I cleanup this website and recreat new one .. . Answer : Could you check the user s profile and try to clear the field which stores the URL to user s MySite . SharePoint writes an error message to this field when an error occurred during the MySite creation process . As long as this error message is in the field every try to recreate the MySite will fail . I m not sure if this will solve you problem but you can give it a try .", "Question : I did some branding for an intranet site for a client in SharePoint 2010 and build a solution . The solution contains some masterpages which are based on the publishing features of SharePoint . The client s intranet site also uses Mysite and I use feature stapling to apply the feature with the Mysite masterpage to the host and personal Mysite . The publishing features are also activated for Mysite so the branding is consistent with the intranet site . This works fine . When i m activating the feature on the mysite host the branding is applied on both the host and the personal site . But what still isn t working after endless trial and error is the branding on the personal blog site . When the user clicks on the create blog link on his personal Mysite the new site is created . But when the blog site appears the branding is not showing up . It looks like the right features are not enabled . The only step i manually have to take to make the branding work on the blog site is to enable publishing in the features . But thats manually i can t make it work from within the solution . I ve tried some of the following steps : .. . .. . Activate the publishing feature with stapling I ve also tried some other available publishing features : On the personal site collection and blog site : .. . .. . default branding feature .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSMSITEHOST 0 .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSPERS 0 .. . .. . publishing features .. . FeatureSiteTemplateAssociation Id f6924d36-2fa8-4f0b-b16d-06b7250180fa TemplateName SPSPERS 0 .. . FeatureSiteTemplateAssociation Id 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb TemplateName BLOG 0 .. . .. . .. . This makes the layout work right publishing is activated but i see no blog content the contentarea is blank . Is the order of features wrong i ve tried different orders . Why isn t there any content showing up Are the blog features not activated Maybe i need to add more features in a particularly order to be activated Activate the masterpage feature to the blog : .. . .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSMSITEHOST 0 .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSPERS 0 .. . .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName BLOG 0 .. . .. . .. . This doesn t work . The result is a blog site without branding . Activate the masterpage feature global instead of applying it to seperate sites . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName GLOBAL .. . .. . .. . This doesn t work . The result is a blog site without branding . Maybe i have to find a solution in another direction : it would be great if somebody could help me with some next steps . I can t find any good information about this . Thanks in advance . .. . Answer : I solved the problem just with stapling The solution is to first activate the SharePoint Blog feature on the Mysite Personal Site Collection . And then after that activate the right publishing features on the Mysite Personal site collection and the Blog site . The order of activation is therefore important .. . The Blog feature must not be activated on the Blog site itself but on te Personal Site Collection .. . Choose the right publishing features for both the Personal Site Collection and the Blog site .. . .. . -- 1 . My own feature with Masterpage on both Mysite Host and Mysite Personal -- .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSMSITEHOST 0 .. . FeatureSiteTemplateAssociation Id 0676d0e2-2acf-4ac0-9ce6-e6952a4893c5 TemplateName SPSPERS 0 .. . .. . -- 2 . SharePoint Blog feature must first be activated on the Mysite Personal-- .. . FeatureSiteTemplateAssociation Id 863DA2AC-3873-4930-8498-752886210911 TemplateName SPSPERS 0 .. . .. . -- 3 . SharePoint Server Publishing Infrastructure on Mysite Personal : -- .. . FeatureSiteTemplateAssociation Id f6924d36-2fa8-4f0b-b16d-06b7250180fa TemplateName SPSPERS 0 .. . -- 4 . SharePoint Server Publishing on Blog : -- .. . FeatureSiteTemplateAssociation Id 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb TemplateName BLOG 0", "Question : How can I access the settings of a Share Service Provider programmatically . Especially how could I retrieve the MySite storage location defined in a SSP s MySite settings .. . Answer : Have a look at the Microsoft.Office.Server.UserProfiles http : msdn.microsoft.com en-us library microsoft.office.server.userprofiles.aspx namespace and this code sample http : msdn.microsoft.com en-us library microsoft.office.server.userprofiles.userprofile.aspx . You need the UserProfileManager.MySiteHostUrl http : msdn.microsoft.com en-us library microsoft.office.server.userprofiles.userprofilemanager.mysitehosturl.aspx property . You can access the current SSP using reflection . See this question http : stackoverflow.com questions 58809 retrieving-the-associated-shared-service-providers-name for more information . Comment : Thx MySiteHostUrl was not exactly what I was looking for but you pushed my in the right direction . I was looking for the UserProfileManager.PersonalSiteInclusion property . Comment : Ah nice one . There are more My Site properties you can get in some articles here : stsadm.blogspot.com 2007 09 my-site-settings.html http : stsadm.blogspot.com 2007 09 my-site-settings.html", "Question : i have SharePoint 2010 portal with many users and i configured my site i created some publish pages and by default the pages links appear in my site navigation bar i want specific users SharePoint group only shows this links and other users don t show it .. . .. . i made the following .. . .. . i have create site from template personalization site and then add links as following .. . .. . in site settings- navigation i created new link and assign a SharePoint group to be the audiences of this link .. . .. . when login by user from this group audiences the link appears on both top navigation bar and navigation bar beside my site in the top of the page note that this last navigation bar exist in mysite.master .. . .. . when login by user outside this group the link disappear only from top navigation bar but it still exist in my site navigation bar .. . .. . can any one help me to find why the link appear in my site navigation bar when log in by user not in audience group .. . .. . thanks in advance .. . Answer : Your are on the right way . I think it should work . I ve created so many links and assigned permission to them using audience targeting . It should work . Please Re-start your server and try again . Comment : when i add page two links appears one beside my site and other in top navigation bar when log in as user not audience the link hide fom top navigation bar but still exist beside my site Comment : are you sure it disapeared in both navigation bar Comment : I ve worked with left navigation Menu and i m sure It will work . Please Edit your Link again and select a SharePoint Group as audience . Comment : i know that it will disappear from left navigation but it still appear beside my site if the links disappear from the top left page beside my site please tell me precisely the steps and permissions that you grant to user and group Comment : please note that there is two navigation bar in the top of the page first is top navigation bar second is navigation bar of may site the problem in the second navigation bar my site", "Question : null .. . Answer : I have created mysite and two other sites as 3 different web-applications in my sharepoint server like .. . .. . all sites are using authentication aspnetdb .. . .. . each sites site1 and site 2 got different content and different users these all user have their mysite in .. . .. . mysite.sp.com web application .so when users want to go to mysite i am redirecting to the mysite.sp.com site and it asking again authentication for user . i need to have mysite in a separate web application . I have added http : .sp.com into intranet zone in ie.but still mysite prompt login page . So is there any solution to get mysite authentication working . . .. . .. . please suggest me. .", "Question : I am new to sharepoint and working on already configured project . A new site collection is created for a each user in my site . I.e : http : mysite is my web application URL . For news and about us section all going good . But whenever i Click on tasks link . It will go to a new URL which is seems to be a new site collection URL . So newly created site collection doesn t inherit the master page . Is there is a way to stop this means to stop a new site collection creation for each users .. . Answer : Well it is normal that new site collections are created for each user . It is used to store their Tasks list their My Documents library and other personal stuff . If you want to prevent users from creating these site collections you can deny them the right Create Personal Site in the User Profile Service see this blog post for instance : http : www.toddklindt.com blog Lists Posts Post.aspx ID 222 . However you loose all related functionnality of course . However these site collections should all use the same master page . So if your Sharepoint is not heavily customized you can simple modify this masterpage . Comment : Hey Matthieu thanx for clarification on this . But these site collections however isn t using the same master page . I modify the master page on my account and its working but whenever a new creates mysite . This master page doesn t apply to their site . Please help.. . Comment : How are you modifying your masterpage I suggest you don t use Sharepoint Designer this will modify your own masterpage only . Create a custom masterpage instead and deploy it to your farm through a solution . Have a look at this article for instance : sharepointologic.blogspot.com.au 2013 04 http : sharepointologic.blogspot.com.au 2013 04 branding-sharepoint-2013-my-sites-with.html", "Question : We want to customize the My Site templates for different roles say Students and Teachers . So basically we want to have one Site Def . for each and when they press My Site we want to create a new site using a different template depending on the role of the user Student vs . Teacher . Does anybody know if this is even possible Or any work-arounds that could work I know that it s possible to execute code during the process I ve seen lots of examples of this but we want to do some stuff before that happens.. . .. . .. . EDIT : Would it be possible to override the link-to my site and then create a new site manually .. . Answer : You can t create a custom site definition for mysite . The way to go is described here http : blogs.msdn.com sharepoint archive 2007 03 22 customizing-moss-2007-my-sites-within-the-enterprise.aspx on the SharePoint team blog . Then in the code to be executed you can activate features based on the current user role . That s the easiest and supported way I can think of . Comment : Would it be possible to override the link-to my site and then create a new site manually Comment : I guess it would be possible not easily . However you ll loose some functionnality related to mysite such as Office client and windows integration you can let Windows remember your mysite . Comment : We ve decided to go with the Stabler Stablee solution . :", "Question : We are running MOSS 2007 with 4 different SSPs . I want to change the theme that is applied to the mysites created on one of the SSPs . I plan to do this using feature stapling but how can I deploy this feature to just this specific mysite url as it only differs by port-number . Cheers .. . Answer : Check out this link : .. . .. . SharePoint+Features+-+Scope+of+Deployment http : wiki.threewill.com display is 2008 10 02 SharePoint+Features+-+Scope+of+Deployment .. . .. . The web application deployment-target is used as the destination for the following application scope resources which may appear in your solution manifest . These are physical changes to files within your web application IIS web site . ApplicationResourceFiles - Ex : MyFiles My.resx . See the comment at the bottom of the solution manifest schema for some more detail . Assemblies if the DeploymentTarget is set to WebApplication - Ex : web 80 bin MyAssembly.dll .. . CodeAccessSecurity - Changes to section in web web.config to point to a new custom policy file in 12 config .. . DWPFiles - .webpart and .dwp files for custom web-parts .. . SafeControls - Additional entries in section in web web.config .", "Question : I am building a web part to put on Sharepoint My Sites . I need to get the SPUser whose My Site the web part is on . Currently I simply use .. . .. . but this will not work on my own My Site and I am not sure it will work all the time either . .. . Answer : When Request.QueryString accountname is empty the user should be on its own mysite so then you could look in SPContext.Current.Web.CurrentUser to get the user . Comment : yes but don t forget that the CurrentUser property returns the currently logged in user not the user on whom s MySite you are . I guess getting the accountname from the query-string will be your only option Comment : As Nacht writes in his post there is no accountname query-string when you are on your own MySite so you need to account for both cases in the code : When on somebody else MySite use the querystring and when on the currents users MySite the querystring is empty so then look in the SPContext for the logged on user . Comment : Using the web request seems like a hack but if it s my only option it s my only option . Thank you", "Question : I want regular user can access the User Information List in Mysite root site . I am using RunWithElevatedPrivileges method . Still throwing access denied error . per example my root site collection for mysite is http : network.test.com . the user want assess userinformation list this site collection . How can he access that Comment : did you run the code in the server that contain the SharePoint .. . Answer : You re setting your SPWeb to SPContext.Current.Web this doesn t have elevated-privileges . Only SPWebs created from SPSites created inside the delegate are elevated . So you need to replace .. . .. . with", "Question : I want regular user can access the User Information List in Mysite root site . I am using RunWithElevatedPrivileges method . Still throwing access denied error . per example my root site collection for mysite is http : network.test.com . the user want assess userinformation list this site collection . How can he access that Comment : did you run the code in the server that contain the SharePoint .. . Answer : You re setting your SPWeb to SPContext.Current.Web this doesn t have elevated-privileges . Refer this post http : blogs.msdn.com b sasohail archive 2010 10 31 access-denied-within-spsecurity-runwithelevatedprivileges.aspx :", "Question : We experienced an issue with the User Profile Service Application and had to rebuild it by deleting the Sync DB and re-using the Profile and Social DB s . The service is working importing user profiles etc and allowing new users to create MySites but existing users with MySites are unable to access their content . The error that is presented is : Your personal site cannot be created because a site already exists with your username . Contact your site administrator for more information . The MySite site collections DO show up in Central Admin . Deleting the MySites is not a viable option . The diagnostic logs state that that there is a user name conflict . Makes sense the site already exists . How do I get SharePoint to sync up with the user-profile service Running a UPS sync hasn t fixed the issue . I ve looked at the PowerShell cmdlets for the service application but don t see anything that would immediately help . .. . Answer : Got it . I had created a User Policy over a year ago specifically for the MySite application users which restrict creating subsites . The OOTB ALL Authenticated Users isn t resolving correctly causing that piece to fail servers need to be rebooted . I removed that policy and users are now able to access their MySites again . I believe that part of that MySite.aspx page is checking if the site exists via a http-get and if it is not found attempts to create the new site . The policy was preventing the entry in the Sync DB I had rebuilt the user-profile service re-using the Profile Social DB s .", "Question : Followed Counts web part FollowedCountsWebPart is blank though the user has a personal mysite created Comment : It happens the same to me . Did you manage to solve it I think it is beacuse of the User Profile Service Comment : There isn t a lot of context here so I am recommending this question is closed . .. . Answer : I faced the same problem and I resolved doing the following steps . What I was able to do is : .. . .. . 1 . Open Central Administration Manage Service Applications .. . 2 . Select the User Profile service application but don t click inside of it just to the right of the text so that the row is highlighted and the ribbon is shown .. . 3 . In the Sharing group of the ribbon click Permissions .. . 4 . In this prompt put in your service account that is running your Distributed Cache and grant it full control .. . .. . Note : Performing this action may cause the User Profile Services web-services to be restarted so it shouldn t be done in the middle of the day . Your newsfeeds should now be working and the Following webpart too I hope this will help you Cheers ." ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
cp866@cyrillic@71
cp866 -- code page 866 is a extended ascii character table to support @placeholder characters .
{ "confidence": [ 32.497596740722656, 30.42447280883789, 29.541818618774414, 28.985260009765625, 28.064847946166992, 27.96932029724121, 26.62501335144043, 26.60490608215332, 26.60490608215332, 26.60490608215332, 26.381418228149414, 26.355457305908203, 25.24750518798828, 24.756729125976562, 24.756729125976562, 24.756729125976562, 24.752559661865234, 21.844017028808594, 21.792827606201172, 18.456573486328125, 15.268392562866211, 15.208752632141113, 15.044294357299805, 14.795413970947266, 14.795413970947266, 14.525856971740723, 14.300199508666992, 13.419605255126953, 13.419605255126953, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 12.901168823242188, 12.228493690490723, 12.062335014343262, 12.062335014343262, 12.062335014343262, 12.062335014343262, 12.062335014343262, 12.062335014343262, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727 ], "content": [ "The canonical name for the charset is Cp866 not CP866 .", "How get int code of qchar in this table http : www.ascii-codes.com cp866.html", "Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException .", "Cp866 among them .", "http : msdn.microsoft.com en-us goglobal cc305166 has the list of characters should no pre-made option work writing code to iterate through an array translating Unicode characters to bytes suitable for CP866 shouldn t take much time at all .", "abc .getBytes Cp866 throws an exception .", "So either .. . .. . you are using an old version of Java that doesn t support Cp866 e.g .", "Nah the receiving device supports only Cp866 .", "The class java.nio.charset.Charset supports both Cp866 and of course Unicode .", "I was needed to encode string with Cp866 in android .", "Build a QString consisting only of that char then use QTextCodec to encode the string in CP866 .", "Note that it s unspecified what you get if your code point is not encodeable in CP866 .", "std.encoding http : dlang.org phobos std encoding.html will help but it doesn t look like cp866 is supported", "I m trying to print to a device which supports CP866 encoding only .", "So I guess I have to do Unicode to CP866 encoding myself .", "According to the Oracle documentation Cp866 is a supported encoding for Java 7 .", "The sollution for Windows is something like fixed fromMBSz cast immutable toMBSz broken 866 65001", "if I am trying convert cyrillic character to character code my function in question description returns negative values :", "According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime .", "Chapter 6 Character sets", "For example OCS Agent resident program on target PC which collects data and sends them to OCS Server may get response as Realtek PCIe GBE Family Controller 1 Gb s pure English encoding is not an issue or as Intel R 82566DM-2 100 Mb s incorrect Russian CP1251 or as Realtek RTL8169 8110 Family Gigabit Ethernet NIC - 100 Mb s incorrect Russian CP866 .", "I d like to fix it and I ve already written the code in Python which solves the task : .. . .. . However at first I was trying to solve this issue in D but failed to find an answer .", "Here is my code : .. . .. . getCp866Code returns -90 not 166", "I assume they only support a small set of encodings because there s less of a legacy story on Android .", "How can I add support for Cp866ukr for Ukrainian language encoding in my Android application", "QChar is a UTF-16 code unit which also means it can be part of a surrogate pair .", "so the code runs on Android", "So do I use any other code instead", "The digit itself is determined by the @altered variable and its code is self-explaining .", "I ve got some wrongly decoded text fragment .", "It was decoded like cp866 but in fact it should be utf-8 -- .", "So how can this task be solved in D", "At the moment D does not have extensive native facilities for converting text between encodings .", "Here are some options : .. . .. . As ratchet freak mentioned D does have std.encoding http : dlang.org phobos std encoding.html but it does not cover many encodings at the moment .", "On Windows you could use std.windows.charset.fromMBSz and toMBSz which wrap MultiByteToWideChar and WideCharToMultiByte .", "You could simply embed the encodings that interest you in your program example https : github.com CyberShadow ae blob master utils iconv.d .", "On POSIX you could invoke the iconv program example https : github.com CyberShadow ae blob master sys cmd.d L523-L526 or use the libiconv library D1 binding http : www.algonet.se afb d libiconv.d .", "The advice about std.windows.charset was very useful .", "enter image description here http : i.stack.imgur.com sHdfG.jpg .. . .. . Let see the code .. . .. . @castbin variable used just for clarification and readability .", "Here s the very inoptimal but working code of this function taken from MySQL Studio .. . .. . First we looking if the string is convertable then doing two conversions - for 0xC2 and 0xC3 prefixes because these prefixes means different encoding errors .", "Does this make sense : QChar c A int ci c.unicode ci 65", "for example : QChar c in unicode int representation returns 1078 not 166", "The question is ill posed .", "Your best shot would be .. . .. . 1 .", "Check that it s not part of a surrogate pair QChar : : isSurrogate .. . 2 .", "Then extract the first byte of it .", "Is there any freeware java library that does that", "What JRE JDK do you use", "Which version", "Sidenote : freeware is an .. . ancient term with a very specific meaning .", "Hardly any software these days is released as freeware .", "You re probably looking for either open-source or free software or simply freely available software .", "1.6 because my sending device is an Android phone", "Then chances are they ve got an entirely different and probably much smaller set of supported encodings .", "Why not just transmit data as UTF-8 http : utf8everywhere.org", "Everyone supports that .", "It s a Russian device .", "Turned out I ve spent less time on that than on searching for any library .", "Thanks a lot", "see @Joachim s comment", "or .. . the Java runtime is not recognizing the name you are using .", "UPDATE - it is unlikely to be the latter .", "From what I can make out from the source http : grepcode.com file repository.grepcode.com java root jdk openjdk 6-b14 sun nio cs FastCharsetProvider.java the charset lookup mechanism used by the standard provider is case insensitive .", "References : .. . .. . Supported Encodings in Java 7 http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 6 http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 5 http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html", "In Java 5 that encoding was provided by charsets.jar http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html which isn t always installed depending on the language settings of the computer .", "Java 6 already had it in rt.jar http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .", "In Java 6 this is supported according to the documentation http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .", "My sending device is an Android device .", "It has Java 1.6 .", "@Alex : Android is not Java 1.6 .", "It s something similar to Java google for Dalvik .", "@Joachim Sauer Right right so how to overcome", "I guess you could use that with the encode and decode methods .", "You can use java library with made up charset classes .", "This is the link : http : www.doc.ic.ac.uk awl03 cgi-bin trac.cgi miro browser trunk gcc libjava classpath gnu java nio charset .. . .. . If you want extend Charset class and add you private Charset : Java NIO http : rads.stackoverflow.com amzn click 0596002882 .", "I need to extend Charset http : developer.android.com reference java nio charset Charset.html class .", "Is there any open-source implementation of this charset for Java like this http : grepcode.com file repository.grepcode.com java root jdk openjdk 7u40-b43 sun nio cs IBM866.java for default Cp866", "I use OCS Inventory for inventorying of our PCs .", "It works almost fine but.. . but 99 of these PCs works under Windows R : XP and Seven .", "And there no any standard for WMI information .", "Or VIA Rhine III Fast Ethernet Adapter - 100 Mb s correct Russian UTF8 or another Unicode .. . .. . I have no way to make Windows return these results in only one encoding : it seems to be up to the minds of driver manufacturers : which encoding was used in the driver s .INF file that encoding will be returned by WMI .", "Mostly it is not a problem but my bosses very dislike to see hieroglyphs in quarterly reports about the state of our IT infrastructure .", "And they seems to be right .", "Is there any way to re-encode single fields from one encoding into another on-the-fly", "I will not re-encode the entire column because of mixed contents .", "I can roughly determine which encoding was used but I don t know how to re-encode using only MySQL s SQL language to produce correct reports .", "Any working suggestions please", "It looks like the only way was writing the stored procedure .", "I made it .", "Left column castbin is the text before processing right converted is the same text after processing .. . .. .", "All the job done by repCxAxEx function named after replace 0xCx 0xAx with 0xCx 0xEx .", "UPDATE : Thorough testing catched some mistakes .", "Somewhere inside the query I use group-concat operator to merge the values of several properties of same PC into one long string with n as separator .", "In such cases the conversion may not work .", "On exit the function adds one digit into the beginning of returned string .", "More correct form of invocation is :" ] }
{ "confidence": [ 44.93625259399414, 41.82289505004883, 39.34550857543945, 37.93233871459961, 36.539405822753906, 36.03428649902344, 19.888385772705078, 13.86734390258789 ], "content": [ "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : http : msdn.microsoft.com en-us goglobal cc305166 has the list of characters should no pre-made option work writing code to iterate through an array translating Unicode characters to bytes suitable for CP866 shouldn t take much time at all . Comment : Turned out I ve spent less time on that than on searching for any library . Thanks a lot", "Question : How get int code of qchar in this table http : www.ascii-codes.com cp866.html Here is my code : .. . .. . getCp866Code returns -90 not 166 Comment : Does this make sense : QChar c A int ci c.unicode ci 65 Comment : for example : QChar c in unicode int representation returns 1078 not 166 .. . Answer : The question is ill posed . QChar is a UTF-16 code unit which also means it can be part of a surrogate pair . Your best shot would be .. . .. . 1 . Check that it s not part of a surrogate pair QChar : : isSurrogate .. . 2 . Build a QString consisting only of that char then use QTextCodec to encode the string in CP866 . Then extract the first byte of it . Note that it s unspecified what you get if your code point is not encodeable in CP866 . Comment : if I am trying convert cyrillic character to character code my function in question description returns negative values :", "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : I was needed to encode string with Cp866 in android . You can use java library with made up charset classes . Cp866 among them . This is the link : http : www.doc.ic.ac.uk awl03 cgi-bin trac.cgi miro browser trunk gcc libjava classpath gnu java nio charset .. . .. . If you want extend Charset class and add you private Charset : Java NIO http : rads.stackoverflow.com amzn click 0596002882 . Chapter 6 Character sets", "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : The class java.nio.charset.Charset supports both Cp866 and of course Unicode . I guess you could use that with the encode and decode methods .", "Question : I ve got some wrongly decoded text fragment . It was decoded like cp866 but in fact it should be utf-8 -- . I d like to fix it and I ve already written the code in Python which solves the task : .. . .. . However at first I was trying to solve this issue in D but failed to find an answer . So how can this task be solved in D Comment : std.encoding http : dlang.org phobos std encoding.html will help but it doesn t look like cp866 is supported .. . Answer : At the moment D does not have extensive native facilities for converting text between encodings . Here are some options : .. . .. . As ratchet freak mentioned D does have std.encoding http : dlang.org phobos std encoding.html but it does not cover many encodings at the moment . On Windows you could use std.windows.charset.fromMBSz and toMBSz which wrap MultiByteToWideChar and WideCharToMultiByte . You could simply embed the encodings that interest you in your program example https : github.com CyberShadow ae blob master utils iconv.d . On POSIX you could invoke the iconv program example https : github.com CyberShadow ae blob master sys cmd.d L523-L526 or use the libiconv library D1 binding http : www.algonet.se afb d libiconv.d . Comment : The advice about std.windows.charset was very useful . The sollution for Windows is something like fixed fromMBSz cast immutable toMBSz broken 866 65001", "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : According to the Oracle documentation Cp866 is a supported encoding for Java 7 . So either .. . .. . you are using an old version of Java that doesn t support Cp866 e.g . see @Joachim s comment or .. . the Java runtime is not recognizing the name you are using . The canonical name for the charset is Cp866 not CP866 . UPDATE - it is unlikely to be the latter . From what I can make out from the source http : grepcode.com file repository.grepcode.com java root jdk openjdk 6-b14 sun nio cs FastCharsetProvider.java the charset lookup mechanism used by the standard provider is case insensitive . References : .. . .. . Supported Encodings in Java 7 http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 6 http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 5 http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html Comment : In Java 5 that encoding was provided by charsets.jar http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html which isn t always installed depending on the language settings of the computer . Java 6 already had it in rt.jar http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html . Comment : In Java 6 this is supported according to the documentation http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html . Comment : My sending device is an Android device . It has Java 1.6 . abc .getBytes Cp866 throws an exception . So do I use any other code instead Comment : @Alex : Android is not Java 1.6 . It s something similar to Java google for Dalvik . I assume they only support a small set of encodings because there s less of a legacy story on Android . Comment : @Joachim Sauer Right right so how to overcome", "Question : I use OCS Inventory for inventorying of our PCs . It works almost fine but.. . but 99 of these PCs works under Windows R : XP and Seven . And there no any standard for WMI information . For example OCS Agent resident program on target PC which collects data and sends them to OCS Server may get response as Realtek PCIe GBE Family Controller 1 Gb s pure English encoding is not an issue or as Intel R 82566DM-2 100 Mb s incorrect Russian CP1251 or as Realtek RTL8169 8110 Family Gigabit Ethernet NIC - 100 Mb s incorrect Russian CP866 . Or VIA Rhine III Fast Ethernet Adapter - 100 Mb s correct Russian UTF8 or another Unicode .. . .. . I have no way to make Windows return these results in only one encoding : it seems to be up to the minds of driver manufacturers : which encoding was used in the driver s .INF file that encoding will be returned by WMI . Mostly it is not a problem but my bosses very dislike to see hieroglyphs in quarterly reports about the state of our IT infrastructure . And they seems to be right . Is there any way to re-encode single fields from one encoding into another on-the-fly I will not re-encode the entire column because of mixed contents . I can roughly determine which encoding was used but I don t know how to re-encode using only MySQL s SQL language to produce correct reports . Any working suggestions please .. . Answer : It looks like the only way was writing the stored procedure . I made it . Left column castbin is the text before processing right converted is the same text after processing .. . .. . enter image description here http : i.stack.imgur.com sHdfG.jpg .. . .. . Let see the code .. . .. . @castbin variable used just for clarification and readability . All the job done by repCxAxEx function named after replace 0xCx 0xAx with 0xCx 0xEx . Here s the very inoptimal but working code of this function taken from MySQL Studio .. . .. . First we looking if the string is convertable then doing two conversions - for 0xC2 and 0xC3 prefixes because these prefixes means different encoding errors . UPDATE : Thorough testing catched some mistakes . Somewhere inside the query I use group-concat operator to merge the values of several properties of same PC into one long string with n as separator . In such cases the conversion may not work . On exit the function adds one digit into the beginning of returned string . The digit itself is determined by the @altered variable and its code is self-explaining . More correct form of invocation is :", "Question : null .. . Answer : How can I add support for Cp866ukr for Ukrainian language encoding in my Android application I need to extend Charset http : developer.android.com reference java nio charset Charset.html class . Is there any open-source implementation of this charset for Java like this http : grepcode.com file repository.grepcode.com java root jdk openjdk 7u40-b43 sun nio cs IBM866.java for default Cp866" ] }
[ "yes-answer-long", "yes-answer-short" ]
cyrillic
UNK_RELATION
nms -- apache.nms provides a rich @placeholder messaging api similar to jms .
{ "confidence": [ 37.06095886230469, 34.36151123046875, 31.9272518157959, 31.774457931518555, 31.200321197509766, 30.475093841552734, 29.794105529785156, 28.953582763671875, 28.888864517211914, 28.888864517211914, 28.888864517211914, 28.74215316772461, 28.523330688476562, 28.21941375732422, 27.59016990661621, 26.27063751220703, 26.23455810546875, 26.1275634765625, 26.086265563964844, 26.085092544555664, 25.666086196899414, 25.251781463623047, 25.181026458740234, 25.181026458740234, 25.062198638916016, 25.062198638916016, 24.965984344482422, 24.80508041381836, 24.701248168945312, 24.47850227355957, 23.910717010498047, 23.42530059814453, 23.42530059814453, 23.42530059814453, 23.42530059814453, 23.42530059814453, 23.221534729003906, 22.895795822143555, 22.874717712402344, 22.856430053710938, 22.676036834716797, 22.64620590209961, 22.60018539428711, 22.60018539428711, 22.60018539428711, 22.60018539428711, 22.436925888061523, 22.339954376220703, 22.067378997802734, 22.067378997802734, 22.067378997802734, 21.786163330078125, 21.31189727783203, 21.250743865966797, 21.22040557861328, 21.22040557861328, 21.22040557861328, 21.22040557861328, 21.22040557861328, 21.22040557861328, 21.22040557861328, 21.039138793945312, 20.93079948425293, 20.400964736938477, 20.135061264038086, 20.103717803955078, 19.87096405029297, 19.87096405029297, 19.87096405029297, 19.87096405029297, 19.87096405029297, 19.8560848236084, 19.513221740722656, 19.398998260498047, 19.35213851928711, 18.860074996948242, 18.852535247802734, 18.852535247802734, 18.834243774414062, 18.834243774414062, 18.80866241455078, 18.359540939331055, 18.359540939331055, 18.359540939331055, 18.047504425048828, 18.047504425048828, 17.48480224609375, 17.480297088623047, 17.480297088623047, 17.308326721191406, 17.308326721191406, 17.27419662475586, 17.27419662475586, 16.952978134155273, 16.81894302368164, 16.718591690063477, 16.364728927612305, 16.364728927612305, 16.24635887145996, 16.156021118164062 ], "content": [ "My clients are communicating with the brokers through NMS .NET Messaging API in C .", "I am integrating with an ActiveMQ JMS system using the Apache.NMS library .", "I ve been looking through the NMS API but see no such capability .", "I upgraded to Apache.NMS 1.5.3 and it corrected the behavior .", "The model of NMS is much the same as JMS so doing some reading on JMS should provide enlightening .", "So the best solution for us is NMS API .", "I need the ability to flush a queue programatically using Apache.NMS C .", "If it s relevant in this case the producer is running NMS on .NET and the consumer is running JMS on Java 1.7 .", "There isn t a direct way to flush a Queue from the NMS API that s more of a management function .", "I wish NMS included a management API but for now this accomplishes what I needed .", "Its not possible for NMS to include a management API as the broker is java based and managed via JMX .", "Here are the versions of the technologies involved : .. . .. . Apache.NMS.ActiveMQ v1.5.1 .. . Apache.NMS API v1.5.0 .. . ActiveMQ 5.5.0 .. . C .NET 3.5 .. . .. . This question is related to this post http : stackoverflow.com questions 4722022 activemq-sending-a-message-to-a-temporary-queue-specified-using-a-string-nms-i which describes a similar problem .", "Spring.NET is using the Apache.NMS libraries underneath just like the regular Spring JMSTemplate etc uses watch JMS provider you configure .", "Is there any api in NMS could help me deleting the message", "See here : .. . .. . http : docs.oracle.com javaee 6 api javax jms ObjectMessage.html", "I am not aware such a feature in NMS .", "I m planning on using Apache NMS for ActiveMQ messaging and am wondering what serialization method is going to be used on the objects I send", "The NMS docs just have some similar warnings as the JMS spec as its meant to be generic per provider so in other providers this might not be the case but should work without any issue in ActiveMQ .", "I have a .NET application that uses Apache.NMS to communicate with an ActiveMQ 5.11 server .", "Presumably you re using NMS for this", "The reply is similar to this : .. . .. . Option 2 : .. . .. . If you want to stick with pure NMS you can subscribe to an advisory topic called ActiveMQ.Advisory.Queue .", "possible duplicate of ActiveMQ NMS : connection.start hangs with Failover protocol when broker is down http : stackoverflow.com questions 10880814 activemq-nms-connection-start-hangs-with-failover-protocol-when-broker-is-dow", "I use NMS API with the following code : .. . .. . Problem is that after a message is received the message is deleted .", "To delete a durable subscription from the NMS API you use the DeleteDurableConsumer method defined in ISession .", "I am using ActiveMQ 5.9.0 and NMS 1.6.1", "This serialization has nothing to do with NMS ActiveMQ though .", "I was looking using ActiveMQ and I found that spring.net has it s own NMS library and so does the Apache community .. . .. . http : www.springframework.net doc-latest reference html nms-quickstart.html http : activemq.apache.org nms nms-api.html .. . .. . Does anyone know anything about them", "I m having a hell of a time with some Apache NMS issues .", "Well if you agree to skip the pure NMS api and access the ActiveMQ classes you can get a handle to a MemoryStream via the public Content property .", "I m using Apache.NMS 1.5.1.2739 and Apache.NMS.ActiveMQ 1.5.6.2746 .. . .. . I connect to the broker using the follow code : .. . .. . The problem is when there is no ActiveMQ broker available then connection.Start hangs forever .", "Since I did not find any NMS api that could help I think calling activemq jmx api is the only way .", "I am using NMS the .net version of the java-framework .", "I have problems setting message priorities via nms .", "Added an example NUnit test from the NMS project to show it in action .", "I m trying use apache nms stomp for send receive messages .", "I was currently using NMS to develop application based ActiveMQ 5.6 .", "Code in question : .. . .. . producerErrors is type of IMessageProducer http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS IMessageProducer.htm from Apache.NMS http : activemq.apache.org nms nms.html .. . response is type of ITextMessage http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS ITextMessage.htm .. . .. . Note that it successfully compiles from Visual Studio and I can reproduce the error locally from the command-line which I think rules out a configuration issue with the build-server .", "Im not a activeMQ specialist but I know in most JMS implementations which I think NMS pretty much follows 1 : 1 you need to call Start on your connection to allow consuming to begin", "NMS API methods you use in the async callback will throw an exception when not connected so if you did something like try to ACK a message in the async message event handler then it would throw an exception if the connection was down .", "Using the 1.6 version of NMS 1.6.3 activemq I m setting up a listener to wait for messages .", "There is no support for AMQP in the current releases of the NMS client libraries .", "Background : .. . C WPF application talking to JAVA server running on linux via ActiveMQ Apache.NMS JSON Newtonsoft.Json .. . .. . Problem : .. . JSON messages greater than 85000 bytes lead to LOH fragmentation .. . .. . Possible solution : .. . Instead of reading the JSON as an Apache.NMS.ITextMessage which is currently the case get the underlying stream handle and deserialize using JsonTextReader .. . .. . Implementation issues : .. . It would appear that this is not supported by Apache.NMS API although there are ActiveMQStreamMessage ActiveMQBytesMessage variants which doesn t really fit the bill here .", "In essence I have an NMS STOMP client that I use to send and receive AMQ messages via STOMP .", "What is currently considered state-of-art so to speak when transferring large-files over Apache NMS using ActiveMQ", "BlobMessage is not supported in NMS...I really see no option but to split the file in chunks re-assemble them on the other side etc .", "NMS supports compression of Messages natively just turn the Connection s compression setting on via connection.UseCompression true", "Jolokia .. . .. . Jolokia https : jolokia.org tutorial https : jolokia.org tutorial.html is a JSON API layer over JMS .", "I am coding with c and activemq using NMS 1.6.1 and ActiveMQ 5.9 .", "I recently upgraded to NMS ActiveMQ 1.5.2 and when I restart the broker the connection and the consumers get restored but they get restored to the pull mode which means the broker will not send them messages automatically .", "After mining google results fI found this thread http : activemq.2283324.n4.nabble.com failover-startupMaxReconnectAttempts-doesn-t-do-anything-td3735372.html .. . .. . Tim Bish answered the developer there that in NMS there is a prefix transport .", "If you want to create an open-source library to communicate with JMX via .NET then we can but until then there s a limit to what can be done in NMS based clients .", "I just noticed that ActiveMQBytesMessage inherits IBytesMessage from namespace Apache.NMS but I see nothing which helps me to deserialize the message .", "It makes the JMS interface accessible over HTTP S .", "And it s C code Apache NMS I m talking about which I believe is lacking a lot of functionality when compared to the ActiveMQ Java interface.. .", "The best thing to do in this case is to create a new issue using the Jira issue tracker for the Apache NMS client .", "http : stackoverflow.com questions 1358078 what-serialization-method-is-used-for-an-activemq-nms-c-sharp-object-message", "Note that I am aware NMS does not understand the priority backup command but I have left it there for the future .", "How do I get list of queues and topics using ActiveMQ NMS .NET .", "Because I try to connect to such an instance with Apache NMS and I cannot get it to run .", "Here is a simple Request response test case from the NMS project that works with Apache.NMS.Stomp and Apache.NMS.ActiveMQ .", "All i want is NACK the message if process is failed so how can i NACK a message in apache nms", "This allows the main NMS library to be extended at run-time with new provider implementations .", "You can refer to the JMS API documentation on things like this the various setters are tagged to indicate which one s are not applicable to sent Messages", "I ve integrated ActiveMQ NMS with my asp mvc website and it s working great for the most part but I ve run into a brick wall with my recent issue and can t figure out for the life of me whether it s something I m missing lack of API support or even a design flaw perhaps in the API .. .", "Local message transactions can be activated by setting the property SessionAcknowledgeMode which for NMS is of the enum type AcknowledgementMode to AcknowledgementMode.Transactional .", "If the above case is true it could be because the producer is sending files that is not jms complaint .", "Illustrating this problem is this simple Pong service which listens on a message-queue and issues a response to the requester using the contents of the NMS Reply-To header .", "I think you ve run into an NMS bug that has been resolved recently see https : issues.apache.org jira browse AMQNET-377 .", "I use the last version of ActiveMQ with NMS .. . .. . NB The goal of my C application is to simply monitor what s happening inside an ActiveMQ channel .", "I m using Apache NMS v1.5.0 and Active MQ 5.1.3 and temporary queues are always persisting even after the connection has gone out of scope .", "The code looks correct but there were a large number of fixes between the v1.5.0 release of the NMS libs and the current 1.6.0 many of which fixed issues with Temp Destinations .", "You are correct you need to split the file into manageable pieces JMS wasn t really designed as a file server .", "So it begs the question Is there a way to get NMS to communicate with ActiveMQ via http :", "ITextMessage inherits from IMessage http : activemq.apache.org nms msdoc 1.6.0 vs2005 Output html P Apache NMS IMessage Properties.htm which has a map of Properties with several applicable set methods http : activemq.apache.org nms msdoc 1.6.0 vs2005 Output html AllMembers T Apache NMS IPrimitiveMap.htm .", "This happens even without sending messages to the queue : .. . .. . From googling around and reading the Apache.NMS source code I figured out it had to do something with the InactivityMonitor and apparently when I specify the parameter transport.useInactivityMonitor false on the connection-string I don t get the exception and everything runs fine .", "However I ve seen the naming here is a bit misleading as the file isn t actually streamed over JMS the entire content will reside in memory or disk", "There is an experimental implementation in svn that you can try but you need to build it from source and then use it s own ConnectionFactory instance as the NMS API library does not have a mapping for it .", "When the AMQP version is released you should be able to use code like this but you need to have both the NMS API lib and the NMS.AMQP lib referenced in your project .", "I understand that but what if I m using Apache NMS ActiveMQ from a .Net Client", "The ActiveMQ NMS client async consumer functions in essentially the same way as the Java version .", "Complex Type Messaging with ActiveMQ and .NET http : www.bradygaster.com post complex-type-messaging-with-activemq-and-.net", "Lately I ve been trying to get the Reply-To pattern to work in Apache NMS ActiveMQ and have been having problems sending messages to temporary queues using only the name of the temporary queue .", "If all of that doesn t help or the assumption is wrong and you are using Managed C++ perhaps this question answer will help you : What serialization method is used for an ActiveMQ NMS C object message", "I even tried to add Openwire to Wildfly by following this link http : activemq.2283324.n4.nabble.com Issue-with-Wildfly-10-and-Net-NMS-Client-td4703766.html but it did not work either .", "But here s the kicker that kills me - after this exception which I catch the entire messaging system goes down", "There is a hawt.io plugin for Artemis https : github.com rh-messaging artemis-hawtio made by RedHat .", "You should handle exceptions in you callback since they are treated as programmer error in NMS as well and the next message is delivered when in a transaction .", "3 if 2 for some crazy reason isn t possible how do I recover from this jms exception that brings down the entire message-queue system", "The Message Group feature then ensures that all messages for the same message group will be sent to the same JMS consumer - while that consumer stays alive .", "Would I have to recompile it to do so or does NMS do some operation that would never be considered safe-critical", "Also begs the question Is there anything else that NMS does that would violate the security model", "Now I read that ByteMessage should not be used with properties : .. . .. . http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS IBytesMessage.htm .. . They have the same text in the java documentation too .. . .. . Where is the problem and when will the problems occur", "I m trying to subscribe to an ActiveMQ topic from a .NET application and here below is my code I use Apache NMS 1.7.0 : .. . .. . The code above compiles successfully.. . but the attempt to connect to the ActiveMQ server fails .", "nothing in the API seems to support this .", "In java I used this : .. . .. . Is there a similar way for .NET", "It s currently a very lightly loaded system but that s all about to change : .. . .. . So my question is . . for NMS how long should I keep connections connected and should i force a reconnect . . say every 4 hours .", "Unfortunately here s a benchmark showing this not to be the case http : www.jakubkorab.net 2011 09 batching-jms-messages-for-performance-not-so-fast.html and that are you better off just sending them as normal without transactions .", "I found in my code I used group header during send : .. . .. . According to official docs : .. . .. . Standard JMS header JMSXGroupID is used to define which message group the message belongs-to .", "I can t find this or similar Element .", "Is it possible to call REST management api in c" ] }
{ "confidence": [ 51.09397506713867, 49.07664108276367, 47.6180305480957, 45.95198059082031, 42.86899948120117, 40.37861251831055, 39.55412673950195, 39.55412673950195, 37.57786178588867, 36.54556655883789, 36.54318618774414, 36.530277252197266, 35.1983757019043, 35.03002166748047, 34.80854415893555, 33.927303314208984, 32.93065643310547, 31.934833526611328, 31.157886505126953, 31.001853942871094 ], "content": [ "Question : I was looking using ActiveMQ and I found that spring.net has it s own NMS library and so does the Apache community .. . .. . http : www.springframework.net doc-latest reference html nms-quickstart.html http : activemq.apache.org nms nms-api.html .. . .. . Does anyone know anything about them .. . Answer : Spring.NET is using the Apache.NMS libraries underneath just like the regular Spring JMSTemplate etc uses watch JMS provider you configure . From what I recall the Spring.NET release is using an older version of NMS.ActiveMQ by default . So if you want to use the most up to-date ActiveMQ .NET library than you d have to go with straight Apache.NMS.ActiveMQ or figure out how to wire in the alter libs into the Spring.NET stuff . Comment : Dunno if this is any help but Spring.NET v2 is out in a matter of days now . They might have updated their libs to the latest version .", "Question : I need the ability to flush a queue programatically using Apache.NMS C . I ve been looking through the NMS API but see no such capability . Does it exist .. . Answer : There isn t a direct way to flush a Queue from the NMS API that s more of a management function . You can cast a IConnection instance into an Apahce.NMS.ActiveMQ.Connection and then call DeleteDestination . This would work if there were no consumers on the Queue but will throw an exception if there are . Comment : I wish NMS included a management API but for now this accomplishes what I needed . Thanks for the tip Tim Comment : Its not possible for NMS to include a management API as the broker is java based and managed via JMX . If you want to create an open-source library to communicate with JMX via .NET then we can but until then there s a limit to what can be done in NMS based clients . You could write some java based libraries to perform the management tasks you need and run them via IKVM in you .NET app I suppose . Comment : Very novel solution thank you", "Question : I need the ability to flush a queue programatically using Apache.NMS C . I ve been looking through the NMS API but see no such capability . Does it exist .. . Answer : Not exactly sure what you mean by flush a queue delete all messages but you can manage messages by setting the session transactional : .. . .. . Then you can use either : .. . .. . or : Comment : Delete all messages is what I meant . Transactions serve a different purpose . Tim Bish already answered my question .", "Question : Background : .. . C WPF application talking to JAVA server running on linux via ActiveMQ Apache.NMS JSON Newtonsoft.Json .. . .. . Problem : .. . JSON messages greater than 85000 bytes lead to LOH fragmentation .. . .. . Possible solution : .. . Instead of reading the JSON as an Apache.NMS.ITextMessage which is currently the case get the underlying stream handle and deserialize using JsonTextReader .. . .. . Implementation issues : .. . It would appear that this is not supported by Apache.NMS API although there are ActiveMQStreamMessage ActiveMQBytesMessage variants which doesn t really fit the bill here . I would like to know if anybody has got any experience on above .. . Answer : Well if you agree to skip the pure NMS api and access the ActiveMQ classes you can get a handle to a MemoryStream via the public Content property . There may be compression you need to deal with though .", "Question : I have .Net client for ActiveMQ . I m using Apache.NMS 1.5.1.2739 and Apache.NMS.ActiveMQ 1.5.6.2746 .. . .. . I connect to the broker using the follow code : .. . .. . The problem is when there is no ActiveMQ broker available then connection.Start hangs forever . So transport.timeout doesn t help here . I want to have timeout for Start method . So after this period of time exception occurs and execution may proceed further . How to avoid such an issue Comment : possible duplicate of ActiveMQ NMS : connection.start hangs with Failover protocol when broker is down http : stackoverflow.com questions 10880814 activemq-nms-connection-start-hangs-with-failover-protocol-when-broker-is-dow .. . Answer : I ve found right uri parameters . The entire uri should look like this one .. . .. . failover : tcp : 127.0.0.1 : 61616 transport.startupMaxReconnectAttempts 2 .. . .. . But be aware if exception occurs then ActiveMQ client will not try to reconnect any more and you need to do it yourself .", "Question : I recently upgraded to NMS ActiveMQ 1.5.2 and when I restart the broker the connection and the consumers get restored but they get restored to the pull mode which means the broker will not send them messages automatically . This isn t how the previous version behaved . What I need is for it to recover back to the way it was which was prefetch 1000 . I think I must be missing a setting for the failover URL or something like that . Anyone here know what I can try My stack is : .. . .. . Here is the consumer logs entries I see when I restart the broker : Comment : Update : I ve also opened a ticket with a sample demo app in case any one wants to follow this : issues.apache.org jira browse AMQNET-358 https : issues.apache.org jira browse AMQNET-358 .. . Answer : I upgraded to Apache.NMS 1.5.3 and it corrected the behavior . So 1.5.2 carried a defect and probably should not be used .", "Question : Lately I ve been trying to get the Reply-To pattern to work in Apache NMS ActiveMQ and have been having problems sending messages to temporary queues using only the name of the temporary queue . The project is dispatcher service which retrieves requests from the bus and sends them to another process runtime based on complex routing criteria to process the request . This separate processor then uses the reply-to queue name and correlation ID to craft the response and sending it to the original requester on the same broker but a different connection . The problem is that it appears you can only send to a temporary queue or topic if you have the IDestination object-reference from the message s NMSReplyTo header . If that reference is lost there is no way to send messages to a temporary queue or topic by simply using its name . Illustrating this problem is this simple Pong service which listens on a message-queue and issues a response to the requester using the contents of the NMS Reply-To header . It mimics dispatching the request to another process by simply calling the ProcessMessage string string method . Now for the client . It simply creates a temporary queue starts listening to it and then sends a request on the queue on which our Pong service is listening . The request message contains the IDestination of the temporary queue . The Pong process seems to operate correctly only it winds-up making a completely new separate queue from the one specified in the Reply-To header . Here are the versions of the technologies involved : .. . .. . Apache.NMS.ActiveMQ v1.5.1 .. . Apache.NMS API v1.5.0 .. . ActiveMQ 5.5.0 .. . C .NET 3.5 .. . .. . This question is related to this post http : stackoverflow.com questions 4722022 activemq-sending-a-message-to-a-temporary-queue-specified-using-a-string-nms-i which describes a similar problem . Hopefully these examples will help clarify the issue in that request as well . Any help or insight to the solution would be greatly appreciated . .. . Answer : You re not actually setting the reply-to header in the request message from the PongClient . Try this : Comment : Thanks Jake My bad for not posting the current version of the code . I had already spotted that and tried it without success . In fact that omission was spotted while posting question . Apparently the older version was cached . - Did it work for you", "Question : Lately I ve been trying to get the Reply-To pattern to work in Apache NMS ActiveMQ and have been having problems sending messages to temporary queues using only the name of the temporary queue . The project is dispatcher service which retrieves requests from the bus and sends them to another process runtime based on complex routing criteria to process the request . This separate processor then uses the reply-to queue name and correlation ID to craft the response and sending it to the original requester on the same broker but a different connection . The problem is that it appears you can only send to a temporary queue or topic if you have the IDestination object-reference from the message s NMSReplyTo header . If that reference is lost there is no way to send messages to a temporary queue or topic by simply using its name . Illustrating this problem is this simple Pong service which listens on a message-queue and issues a response to the requester using the contents of the NMS Reply-To header . It mimics dispatching the request to another process by simply calling the ProcessMessage string string method . Now for the client . It simply creates a temporary queue starts listening to it and then sends a request on the queue on which our Pong service is listening . The request message contains the IDestination of the temporary queue . The Pong process seems to operate correctly only it winds-up making a completely new separate queue from the one specified in the Reply-To header . Here are the versions of the technologies involved : .. . .. . Apache.NMS.ActiveMQ v1.5.1 .. . Apache.NMS API v1.5.0 .. . ActiveMQ 5.5.0 .. . C .NET 3.5 .. . .. . This question is related to this post http : stackoverflow.com questions 4722022 activemq-sending-a-message-to-a-temporary-queue-specified-using-a-string-nms-i which describes a similar problem . Hopefully these examples will help clarify the issue in that request as well . Any help or insight to the solution would be greatly appreciated . .. . Answer : You need to use the IDestination you are passed . Calling .. . .. . is a little evil . Under the covers it calls CreateTemporaryQueue replaces the existing temporary queue with a new one of the same name without informing you .", "Question : using ActiveMQ I want to serialize my objects with protocol-buffers . Then I have an byte array . Now I read that ByteMessage should not be used with properties : .. . .. . http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS IBytesMessage.htm .. . They have the same text in the java documentation too .. . .. . Where is the problem and when will the problems occur We use this format internally if possible I want to use is as message body too . .. . Answer : There shouldn t be any problem with using message properties in BytesMessage object with ActiveMQ . The NMS docs just have some similar warnings as the JMS spec as its meant to be generic per provider so in other providers this might not be the case but should work without any issue in ActiveMQ . Comment : Thank you for your answer . But if an issue occurs how would I know that one occurred What will happen Would I be save if I make a checksum from my byte message and send it with the message You wrote should work without any issue . Comment : The message body and the properties are distinct data sets in ActiveMQ so setting a property has no effect on the body of the message . You are free to set a checksum header on the Message if you like it won t hurt anything and provides you will an extra level of confidence in the integrity of the message . Comment : OK thank you for your answer . Then I will use it .", "Question : What is currently considered state-of-art so to speak when transferring large-files over Apache NMS using ActiveMQ Putting the whole content into a StreamMessage However I ve seen the naming here is a bit misleading as the file isn t actually streamed over JMS the entire content will reside in memory or disk and will be sent all at once . Here I got some problems with files 100 MB : Apache.NMS.NMSException : Unable to write data to the transport connection : An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full . BlobMessage is not supported in NMS...I really see no option but to split the file in chunks re-assemble them on the other side etc . Thank you Cristian . Comment : You are correct you need to split the file into manageable pieces JMS wasn t really designed as a file server . You can take a look at the ActiveMQInputStream and ActiveMQOutputStream classes in the Java client you might be able to port that to .NET .. . Answer : how about using GZIPInputStream for example : GZIPInputStream inputStream new GZIPInputStream new ByteArrayInputStream gzipped Comment : The content is already compressed . And it s C code Apache NMS I m talking about which I believe is lacking a lot of functionality when compared to the ActiveMQ Java interface.. . Comment : NMS supports compression of Messages natively just turn the Connection s compression setting on via connection.UseCompression true", "Question : Lately I ve been trying to get the Reply-To pattern to work in Apache NMS ActiveMQ and have been having problems sending messages to temporary queues using only the name of the temporary queue . The project is dispatcher service which retrieves requests from the bus and sends them to another process runtime based on complex routing criteria to process the request . This separate processor then uses the reply-to queue name and correlation ID to craft the response and sending it to the original requester on the same broker but a different connection . The problem is that it appears you can only send to a temporary queue or topic if you have the IDestination object-reference from the message s NMSReplyTo header . If that reference is lost there is no way to send messages to a temporary queue or topic by simply using its name . Illustrating this problem is this simple Pong service which listens on a message-queue and issues a response to the requester using the contents of the NMS Reply-To header . It mimics dispatching the request to another process by simply calling the ProcessMessage string string method . Now for the client . It simply creates a temporary queue starts listening to it and then sends a request on the queue on which our Pong service is listening . The request message contains the IDestination of the temporary queue . The Pong process seems to operate correctly only it winds-up making a completely new separate queue from the one specified in the Reply-To header . Here are the versions of the technologies involved : .. . .. . Apache.NMS.ActiveMQ v1.5.1 .. . Apache.NMS API v1.5.0 .. . ActiveMQ 5.5.0 .. . C .NET 3.5 .. . .. . This question is related to this post http : stackoverflow.com questions 4722022 activemq-sending-a-message-to-a-temporary-queue-specified-using-a-string-nms-i which describes a similar problem . Hopefully these examples will help clarify the issue in that request as well . Any help or insight to the solution would be greatly appreciated . .. . Answer : I would recommend using a topic as a reply destination and have your consumer filter based on the NMSCorrelationID . This is the implementation I have moved to after much frustration with temp queues . It actually has-many advantages . 1 . It cuts down on intensive resource usage on the server no need to construct deconstruct temp queues . 2 . It allows you to use another consumer to monitor the response sent back you will never be able to peek inside a temp queue . 3 . And it is much more reliable because the topic can be passed via a logical name instead of a specific token ID which you are losing across connections .", "Question : Quoting from EIP patterns book from Hohpe G . and Woolf B . : .. . .. . Note that in JMS an Event-Driven Consumer that is also a Transactional Client will not work as expected . Normally a transaction is rolled back when the code in the transaction throws an exception but the MessageListener.onMessage signiture does not provide for an exception being thrown such as JMSException and a runtime exception is considered programmer error . If a runtime exception occurs the JMS provider responds by delivering the next message so the message that caused the exception is lost.To successfully achieve transaction event-driven behavior use a message-driven EJB . I understand that but what if I m using Apache NMS ActiveMQ from a .Net Client I don t have MDB so how should I adress this issue .. . Answer : The ActiveMQ NMS client async consumer functions in essentially the same way as the Java version . You should handle exceptions in you callback since they are treated as programmer error in NMS as well and the next message is delivered when in a transaction . Comment : I m not sure to understand what you re saying . Can you provide an example Comment : For a more specific answer you need to ask a more specific question . What are you trying to accomplish and what is not currently working for you . Comment : I d like to have a reliable messaging infrastructure by implementing transactions especially regarding Request Reply . Nothing set in stone right now just considering the implementation . For example in the reply part I could just use a try-catch with Begin Commit right Comment : There is no begin in your handler you can either commit or rollback or you can do this at some higher level the Session is the arbiter of TX commit rollback . Its up to you to decide if this is per message or bound to some batch of messages being received .", "Question : I m doing some testing with RabbitMQ ActiveMQ and Apache Artemis in a Windows .NET environment . RabbitMQ and ActiveMQ ship with a web interface where you can see information about your broker queues messages etc . but Artemis does not . I really want to be able to monitor my Artemis broker in a web interface or at the very least with some cmd PowerShell commands . I ve read on this page http : activemq.apache.org how-can-i-monitor-activemq.html about some third-party tools that can be used to monitor an ActiveMQ instance and I assumed that it also applied to Artemis . Unfortunately I have not been able to get these third-party tools to work . Some of them don t seem to work well on Windows and some are old inactive . My clients are communicating with the brokers through NMS .NET Messaging API in C . If anyone has been able to monitor their Artemis broker especially on a Windows machine please let me know how you did it EDIT : .. . I have managed to communicate with the Jolokia REST API now . With a GET request to .. . http : username : password@localhost : 8161 jolokia read org.apache.activemq.artemis : .. . I am able to see a bunch of information about my queues such as messages added and consumed . This is nice information that will help me but I would like information about current memory usage and disk usage . Comment : Hi . I am sorry I cannot really help you with your problem but I try to achieve something similar and wanted to ask you something : Does your Apache Artemis run embedded in Wildfly 10 by any chance Because I try to connect to such an instance with Apache NMS and I cannot get it to run . When Apache Artemis runs standalone it s no problem but not in Wildfly . I even tried to add Openwire to Wildfly by following this link http : activemq.2283324.n4.nabble.com Issue-with-Wildfly-10-and-Net-NMS-Client-td4703766.html but it did not work either . Comment : @mindfxxxedCoder Nope I m running it standalone sorry Comment : I was afraid of that thanks for the reply anyway and good luck with your problem .. . Answer : Take a look at the Management chapter https : github.com apache activemq-artemis blob master docs user-manual en management.md of the Artemis manual . As far as I know the following options are available to you .. . .. . JMX Java Management Service .. . .. . JMX https : docs.oracle.com javase tutorial jmx overview is a Java API for managing Java servers . There are multiple GUIs that connect to java servers via JMX . The most notable being jConsole . There is a list of other GUIs here http : stackoverflow.com questions 1744900 what-is-the-best-or-most-commonly-used-jmx-console-client or there https : dzone.com articles client-side-server-monitoring or you could build your own http : www.nurkiewicz.com 2011 03 jolokia-highcharts-jmx-for-human-beings.html .. . .. . jConsole .. . .. . enter image description here http : i.stack.imgur.com rs59j.png .. . .. . jConsole is a GUI application that you can connect to a JMX enabled server . It is a part of the Java JDK so you probably have it installed already . Jolokia .. . .. . Jolokia https : jolokia.org tutorial https : jolokia.org tutorial.html is a JSON API layer over JMS . It makes the JMS interface accessible over HTTP S . You may query the information using any HTTP client library . You already figured out this in your question . Again there are GUIs on top of that the most notable being .. . .. . Haw.io Artemis plugin .. . .. . enter image description here http : i.stack.imgur.com iA5Kw.png .. . .. . Hawt.io http : hawt.io is an Angular.js management console . It can be thought of as a GUI for Jolokia . There is a hawt.io plugin for Artemis https : github.com rh-messaging artemis-hawtio made by RedHat . Compile the plugin and get a .war file . Artemis contains a built-in Jetty webserver . You need put that war to apache-artemis-1.3.0 web . You also need to download hawtio-default.war from http : hawt.io getstarted index.html to the same directory . Then in the instance directory edit etc bootstrap.xml and add these wars to config . Or you can get JBoss A-MQ7 http : developers.redhat.com blog 2016 07 18 a-mq-7-alpha-is-ready currently in Alpha which has the management plugin built-in . Start it up and go to localhost : 8161 hawtio http : localhost : 8161 hawtio . I work for a company that sells that product .", "Question : We just hit an interesting error on our build-server when compiling some recent changes from the command-line : .. . .. . c : Windows Microsoft.NET Framework v3.5 MSBuild.exe .. . .. . error CS0246 : The type or namespace name var could not be found are you missing a using directive or an assembly reference Code in question : .. . .. . producerErrors is type of IMessageProducer http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS IMessageProducer.htm from Apache.NMS http : activemq.apache.org nms nms.html .. . response is type of ITextMessage http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS ITextMessage.htm .. . .. . Note that it successfully compiles from Visual Studio and I can reproduce the error locally from the command-line which I think rules out a configuration issue with the build-server . The fix is trivial of course but it s got me stumped as to why compilation is only failing from MSBuild command-line The project in question has other var keywords in use which are compiling just fine so I suspect it might be something to do with the Apache assembly but what Comment : Could you please describe how you fixed this problem Comment : The fix is replacing type-inference the var keyword with the actual type ITextMessage . Comment : Oh trivial . Looking for better solution without touching the code . Anyway thank you for the answer : Comment : Yes trivial fix - but still a mystery as to why type-inference is failing . .. . Answer : I just ran into a similar problem when attempting to create a multi-framework targeted NuGet package . The code compiled fine in Visual Studio 2010 when setting the target framework to 3.5 but did not compile at the command-line . After some experimentation I found a winning command-line solution although it is not entirely clear to me what the underlying problem is . For reference : .. . .. . Successfully compiles assembly with 4.0 references confirmed by inspection via DotPeek : .. . .. . Note the MSBuild output : .. . .. . Successfully compiles assembly with 2.0 3.5 references confirmed by inspection via DotPeek : .. . .. . Note the MSBuild output : .. . .. . Fails to compile : .. . .. . Note the MSBuild output :", "Question : I ve integrated ActiveMQ NMS with my asp mvc website and it s working great for the most part but I ve run into a brick wall with my recent issue and can t figure out for the life of me whether it s something I m missing lack of API support or even a design flaw perhaps in the API .. . I m trying to do a simple thing - I need to check if a temporary queue has been removed before trying to send a message to it . The temporary queues are deleted as soon as the client disconnects closes the browser etc . which is fine since that s why I m using temporary queues . however I store the destinations on the server so i can send certain messages to certain destinations WHILE they are still connected . everything works great until a client leaves closes the browser which means ActiveMQ will remove the temporary queue and I need to stop sending messages to that temporary queue until they reconnect because if I try i get this exception : .. . .. . javax.jms.JMSException : The destination temp-queue : ID : WIN-HP6U1SD1FB4-29628-1329687650640-0 : 1 : 85 does not exist . which makes total sense cuz the temp queue is gone since they left the page or closed the browser . But here s the kicker that kills me - after this exception which I catch the entire messaging system goes down activemq just no longer sends messages until i restart it . this seems absolutely crazy unless i am missing something very fundamental in how i m using it . basically what i can t figure out is : .. . .. . 1 why does activeMQ go down when it tries to send a message to a temp queue dest that doesn t exist why can t it just throw the exception and continue 2 fine I can live with 1 but how do i check if a temp destination queue exists before i send it nothing in the API seems to support this . 3 if 2 for some crazy reason isn t possible how do I recover from this jms exception that brings down the entire message-queue system I d post code but not sure that would help here . .. . Answer : I think you ve run into an NMS bug that has been resolved recently see https : issues.apache.org jira browse AMQNET-377 . If you update to version 1.5.5 or later you should have better results .", "Question : I just started with the ActiveMQ thing and got several questions . I should send messages using ActiveMQ .. . .. . What I did for now : .. . .. . There will be only one instance of this class which will be injected as a constructor parameter . I am affraid of overhead for connection session and producer creation because messages will be sent frequently often than one message per 10 seconds Should I reuse connection session or producer instances and how should I react to the connection failures What is the common pattern in such scenarios .. . Answer : NMS.ActiveMQ like the java client provides a failover transport which will automatically attempt to reconnect to the broker should the connection be lost . You can use that to minimize you failure handling code . Do some Google searching on the topic of failover transport in AMQ . Recreating the connection and associated resources is not a lightweight operation so you re best bet is to cache them and reuse them for as long as you need that connection . In combination with failover you can reliably reuse the same MessageProducer over and over . The model of NMS is much the same as JMS so doing some reading on JMS should provide enlightening .", "Question : We just hit an interesting error on our build-server when compiling some recent changes from the command-line : .. . .. . c : Windows Microsoft.NET Framework v3.5 MSBuild.exe .. . .. . error CS0246 : The type or namespace name var could not be found are you missing a using directive or an assembly reference Code in question : .. . .. . producerErrors is type of IMessageProducer http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS IMessageProducer.htm from Apache.NMS http : activemq.apache.org nms nms.html .. . response is type of ITextMessage http : activemq.apache.org nms msdoc 1.5.0 vs2005 html T Apache NMS ITextMessage.htm .. . .. . Note that it successfully compiles from Visual Studio and I can reproduce the error locally from the command-line which I think rules out a configuration issue with the build-server . The fix is trivial of course but it s got me stumped as to why compilation is only failing from MSBuild command-line The project in question has other var keywords in use which are compiling just fine so I suspect it might be something to do with the Apache assembly but what Comment : Could you please describe how you fixed this problem Comment : The fix is replacing type-inference the var keyword with the actual type ITextMessage . Comment : Oh trivial . Looking for better solution without touching the code . Anyway thank you for the answer : Comment : Yes trivial fix - but still a mystery as to why type-inference is failing . .. . Answer : Are you entirely sure you don t have a 2.0 compiler in your 3.5 directory by accident Comment : Yes - The project in question has other var keywords in use which are compiling just fine Comment : This boggles the mind.. .", "Question : I am integrating with an ActiveMQ JMS system using the Apache.NMS library . For the response queue listener it s not clear whether the consumer is disposed after a message is received . Here are excerpts from the solution : .. . .. . Is the consumer durable Do you have to resubscribe after receiving a message Is this similar to other queuing listener implementations SQL Server service broker or the TCP IP listener where you need a while true loop to just keep the listener active .. . Answer : Because of the way you ve coded this I believe my .NET is rusty you would need to create a new listener on each message as the using block will dispose of the consumer . If you coded things such that the consumer was a member variable where it was saved away and only closed when you wanted to stop listening then you would not have this issue . The using block by it s nature will dispose of the resources that you ask it to manage . Comment : Thanks . I ve changed it to hold the connection session and consumer as fields of my receiver class which implements IDisposable . I clean up these fields during dispose . Does this mean the Listener event will fire for each message without a while-loop Comment : If you code it correctly is should that is the whole point of using the async listener pattern . Best way to know is to ask the computer .", "Question : I m planning on using Apache NMS for ActiveMQ messaging and am wondering what serialization method is going to be used on the objects I send XML Binary What controls the serialization and how can I customize it Does anyone have experience doing this with C objects Are there any pitfalls that you know of .. . Answer : The default is System.Runtime.Serialization.Formatters.Binary.BinaryFormatter for IObjectMessage . You can set your own by e.g . You d need to set the formatter before accessing IObjectMessage.Body on the receiver side if you re not sending objects with the default BinaryFormatter . If you wish you can also send receive IByteMessage ITextMessage and serialize your objects to the messages yourself in any way you d like . Comment : Any good info on the backward compatibility of the binary format What happens with a removed added field Comment : Seems in practice in my limited experience atleat missing fileds just get their default values . This serialization has nothing to do with NMS ActiveMQ though . There s lots of questions regarding serialization on stackoverflow poke around those .", "Question : I have problems setting message priorities via nms . The messages are sent to the queue everything is ok but the priority is ignored . I use the following code : .. . .. . Regardless what value I set for message priority using the ActiveMQ browser I can see that the priority is always set to 4 . I also tried to add some raw headers like : .. . .. . But it doesn t help . I also have added the attribute .. . .. . to the activemq.xml file . And I can send a message with priority manually via the ActiveMQ browser . So where is the problem What I am doing wrong .. . Answer : Message priority is always set by the producer that sends the Message . The setter on the class will only allow you to change the value after you ve received a message and is usually only used for unit-testing or converting Messages between providers . To set Message priority on a per message basis have a look at the different send methods in the MessageProducer interface . Comment : Thank you very much your answer solved my problem But it is interesting that I can set the message properties via the setter class and other things too but not the priority . Comment : You can refer to the JMS API documentation on things like this the various setters are tagged to indicate which one s are not applicable to sent Messages" ] }
[ "yes-answer-long", "yes-answer-short" ]
.net
UNK_RELATION
liveconnect@s@67
liveconnect -- liveconnect allows ecmascript code running mozilla @placeholder rhino interpreter to access java code in a transparent way .
{ "confidence": [ 42.58577346801758, 21.70480728149414, 21.253631591796875, 21.202707290649414, 19.779617309570312, 19.741718292236328, 19.23749351501465, 18.741235733032227, 18.220149993896484, 18.220149993896484, 17.86823844909668, 17.704362869262695, 17.704362869262695, 17.105224609375, 16.879886627197266, 16.879886627197266, 16.77776336669922, 16.77776336669922, 16.663097381591797, 16.628040313720703, 16.628040313720703, 16.581850051879883, 16.41350746154785, 16.328784942626953, 16.328784942626953, 16.058225631713867, 15.998180389404297, 15.948532104492188, 15.849599838256836, 15.778919219970703, 15.6854248046875, 15.540149688720703, 15.540149688720703, 15.486909866333008, 15.205865859985352, 14.971664428710938, 14.781661987304688, 14.433273315429688, 14.088411331176758, 14.088411331176758, 14.088411331176758, 14.088411331176758, 13.963296890258789, 13.923601150512695, 13.768021583557129, 13.768021583557129, 13.535804748535156, 13.051538467407227, 13.051538467407227, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.777318000793457, 12.749361038208008, 12.70539665222168, 12.178178787231445, 12.121524810791016, 11.70618724822998, 11.70618724822998, 11.669092178344727, 11.656076431274414, 11.651375770568848, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293, 11.48646354675293 ], "content": [ "The PlugIn s LiveConnect enforces this policy for localhost only .", "I m having trouble getting a Java Applet to communicate with the Javascript code on the page the applet is hosted on .", "I m running Java 6 Update 17 and it still doesn t work .", "The problem is that Java applet code called from JavaScript has only permissions that are the intersection of the JavaScript s code and your applet code - and somehow the JavaScript s permissions are seen as less which results in this Exception .", "Is there another more stable way of communicating between Java and Javascript that I should be using", "I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain .", "http : www.oracle.com technetwork java javase 6u22releasenotes-176121.html .. . .. . The fix for CVE-2010-3560 could cause certain Java applets running in the new Java Plug-in to stop working if they are embedded in web pages which contain JavaScript that calls into Java in order to perform actions which require network security permissions .", "Often it works but sometimes it does not using the same exact code .", "Does this mean that if I deploy this code to production e.g .", "www.productiondomain.com the code will work and not resolve to the IP address", "We finally modified smack code in a hacky way just to handle see-other-host until smack oficially supports it .", "Here is the code I am using : .. . .. . Here is the exception I get on the line marked XXX .", "Some times it works some times it does not simply reloading the page not changing any code .", "Then after that requesting for access token using this replay authorization code was going through smoothly .", "plugin2 also defines a new way of interacting with the browser .", "My bad...the new way is for DOM manipulation only .", "Googled plugin2 interesting wonder if their new plugin architecture introduced in java 1.6.10 has some bugs .", "If you set separate jvm to true this has very bad effect on performance since new Java VM is instantiated for every applet .", "The Java applet tried to download the crossdomain file failed and did not even bother to display an error in the java console debug level 5 .", "He then logged in Live Connect OAuth2 server returned to the callback endpoint with the code xxx state yyy...user A then used this authorization code to obtain the access token.. . .. . .. . 2 .", "Again exactly the same code but Google OAuth2 server returned bad request when authorization code is reused but LiveId returned the old access token of the previous user .", "Here is what I did : assume you have a function innocentFunc that throws the java.net.SocketPermission exception so your code is something like so : .. . .. . Now what you can do is to change it to something like so : .. . .. . This AccessController call basically states to the Java Virtual Machine that the code it runs should not obey to the permissions from the call chain but rather only the caller s permissions in its own .", "It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html .", "I encountered the same problem after installing Java 6 Update 22 .", ".. . .. . If Java does not resolve the originating system to localhost then the applet will not be able to open sockets .", "When I try to play the audio it fails to play and I get : access denied java.net.SocketPermission 1.2.3.4 : 80 connect resolve .. . .. . Looking at the access logs I get a request for crossdomain.xml right before this happens .", "I don t think is possible to made the crossdomain.xml file more restrictive at current time Java applets only support the domain .. . .. . see here http : www.oracle.com technetwork java javase index-135519.html CROSSDOMAINXML", "The client requests an access token from the authorization server s token endpoint by using its client credentials for authentication and includes the authorization code that was received in the previous step .", "For example : ...Callback.htm code AUTHORIZATION CODE .", "Of course you should do something like this only after making sure that this innocentFunc call can t do anything bad even if invoked by malicious code .", "It works sometimes but othertimes it throws an obscure exception that googling for has not turned up any useful information besides a few Java bug reports that were never resolved thanks Sun .", "IIRC the JavaScript same-origin policy prevents access to same-host different-port .", "I had access denied java.net.SocketPermission server ip : server port connect resolve from an applet in a web application .", "Their suggestion is to add a special crazy just-for-Java A record to the DNS like : .. . .. . .. . 10.11.12.13 foo.bar.com.auth.13.12.11.10.in-addr.arpa .. .", "But the catch is that Java isn t asking for a crossdomain.xml from mydomain.example.com crossdomain.xml ...but instead from 1.2.3.4 crossdomain.xml .. . .. . The workaround that seems to work for me is to set up a virtual host that responds for the IP address 1.2.3.4 and give it a crossdomain.xml so that Java can find the crossdomain.xml in the wrong place that it s looking for it .", "Java tried to download the file from the ip adress of my domain http : ip-address crossdomain.xml and not the root of my website http : domain-name crossdomain.xml .", "Based on Sample Java Codes that uses SAMCK there are two problems : .. . .. . 1 .", "I added crossdomain.xml with .. . .. . xml version 1.0 cross-domain-policy allow-access-from domain cross-domain-policy .. . .. . to tomcat-home webapps and checked that it is accessible with http : server name : server port crossdomain.xml", "Let s take a look at the Authorization code grant flow from the above article .", "The client includes the redirection URI that was used to obtain the authorization code for verification .", "And the code flow or exactly the implementation for Google login LiveId login are exactly the same .", "So maybe an authorization code is already used once in this instance server but not in others .", "The registered connection listeners don t receive notification of the exception .. . 2 . there s no way to access the text element of a stream error from XMPPException .. . .. . Handling the redirection internally would be the friendliest solution but notifying the client of the new server would at least allow clients to make a new connection without user intervention .", "Live Connect OAuth2 server now return with code kkk state ggg .. . .. . If I this time use some tools like Webscarab to capture the response request then change the return from OAuth2 server to code xxx state ggg the old authorization code was given to user A not B .", "I then discovered that the java applet did not work with the crossdomain files i use with flash : .. . .. . I had to remove the site-control and allow-http-request-headers-from nodes from the xml file in order to make the applet work .", "I am not sure this is a defect for the Java plug-in.. . .. . .. . For example when I used the URL like http : localhost : 9080 app-id appletPage the problem occurred but when I use the URL by using the actual IP or host name the problem did not occur .", ".. . .. . Right after the step 4 Live Connect OAuth2 server returns to my callback endpoint with the authorization code state like the following : .. . .. . https : ssss.myapp.com : 443 liveid consume.idp code 406dd558-0cda-50cc-bd37-d964ec29fbb3 state uvygsnd3gba0jwi315kdyccs https : ssss.myapp.com : 443 liveid consume.idp code 406dd558-0cda-50cc-bd37-d964ec29fbb3 state uvygsnd3gba0jwi315kdyccs .. . .. . Problem is that authorization code could be used more than once .", "The user-agent calls the client with the redirection URI which includes an authorization code and any local state that was provided by the client .", "About your solution that using cache to store the already-used authorization code for checking later .", "Note that it is intermittent .", "Reloading the page repeatedly will produce the error pretty quickly .", "--- More info --- .. . .. . I m using the deployJava.js script as provided by Sun to embed the applet on the fly .", "I made sure MAYSCRIPT is enabled .", "I know it s not a problem with MAYSCRIPT because the communication works some of the time .", "Are you using the applet tag to embed it", "Make sure you have MAYSCRIPT in your applet tag .", "Yes it s there .", "MAYSCRIPT shouldn t be the problem anyway because the exception is intermittent .", "If MAYSCRIPT were the problem it would block the communication 100 of the time .", "I think MAYSCRIPT is ignored in PlugIn2 .", "It never worked across all browsers correctly anyway .", "Maybe I should use that maybe it is more stable", "You use the exact same method for calling javascript via the JSObject class .", "Internally it has been rewritten but you use the same API .", "I think I ve solved the problem by setting classloader cache false and separate jvm true ...once I set both of those the intermittent obscure errors stopped happening .", "Hopefully this solves the problem for good .", "Unfortunately this solution cause applet is totally stateless .", "All static-variables are cleared after page reloading or refreshing .", "If you have multiple applets on the page 30+ this is pretty slow .", "I wonder if there is any other solution for this issue .", "E.g . we have multiple applets across multiple tabs .", "When the first tab with applets is opened all applets are shown correctly with no problems .", "But switch to any other tab results with the error for no registered plugin .", "In IE this error does not occur because in IE all applets are instantiated immediately as they are added to DOM .", "I finally found a solution for this issue by changing hostname from messenger.live.com to 64.4.61.217 in ConnectionConfiguration constructor as shown in the code below : .. . .. . I got this IP by executing nslookup messenger.live.com in Dos Command Prompt then I got an Address which I have used in the ConnectionConfiguration .", "The OAuth 2 spec is quite clear here https : tools.ietf.org html rfc6749 section-4.1.2 : .. . .. . If an authorization code is used more than once the authorization server MUST deny the request and SHOULD revoke when possible all tokens previously issued based on that authorization code .", "I follows this and using DotNetOpenAuth to implement integrate LiveId authentication authorization for our federated-identity access management system .", "@alscu would you mind providing us with the hacky way you mentioned in your comment as we may benefit from it and discuss it and help others cope up with this SMACK BUG .. .", "Please be noticed that applying the same replay attacking like above for Google OAuth2 server I received bad request error from the server Google OAuth2 authorization code never could be used more than once .", "Note thate this could also produce false positives in the occasion that the provider randomly generated the same code for two different users which might be quite unlikely depending on the implementation .", "Imagine that we have the application running on many servers which doesn t share anything to each other no central session or cache database....nothing shared .", "I received again the ACCESS TOKEN which was given to user A before...and finally user B can logging into my application as user A .", "When I try to connect to xmpp.messenger.live.com I get .. . .. . stream : error see-other-host at org.jivesoftware.smack.PacketReader.parsePackets PacketReader.java : 260 at org.jivesoftware.smack.PacketReader.access 000 PacketReader.java : 43 at org.jivesoftware.smack.PacketReader 1.run PacketReader.java : 70 .. . .. . I m debugging and I can see the raw received packets .. . .. . But I m unable to find a way in order to intercept and handle that redirect .", "The lib.jar file is signed .", "Is there anyway to avoid this", "Try signing lib.jar and all other external jar files you are using", "Do not use localhost", "I will explain also why : there is no guarantee localhost is 127.0.0.1 at all .", "Also use getCodeBase always from applets do not use hard-coded locations .", "My applet has been online for several years with no reported errors .", "When I downgrade to version 6 Update 21 everything works perfect .", "My applet is not signed .", "SOLUTION : It took me ha while to find the cause of the problem .", "Actually in my case there were several factors causing the security error .", "The problem was solved by the crossdomain.xml file .", "I guess it is better for the security aspect", "I then had to configure the webserver to expose the crossdomainfile on the IP address .", "In my case I have removed the default website in ISS for security reasons and had to create a new website .", "I think I m too late but anyways.. . Guys you cannot believe how easy a solution this problem has .", "I just wanted to reply with a similar solution ." ] }
{ "confidence": [ 37.85035705566406, 20.672103881835938, 20.29271125793457, 20.11275863647461, 20.03502655029297, 19.968616485595703, 19.545560836791992, 19.464370727539062, 18.24853515625, 18.22466468811035, 18.058134078979492, 17.775110244750977, 17.775110244750977, 17.4952392578125, 15.310505867004395, 14.845283508300781, 12.377138137817383, 12.28972339630127 ], "content": [ "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : IIRC the JavaScript same-origin policy prevents access to same-host different-port . The PlugIn s LiveConnect enforces this policy for localhost only . Comment : I m not sure what thies means Does this mean that if I deploy this code to production e.g . www.productiondomain.com the code will work and not resolve to the IP address Comment : It should do . Unless that host name resolves to localhost of course . Comment : you can connect to any port at the same host from an applet", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : I m getting the same thing with Update 22 and not Update 21 . I m using the TinyPlayer http : www.javazoom.net applets tinyplayer tinyplayer.html applet which I m controlling via JavaScript . I m loading audio files from the same domain mydomain.example.com IP 1.2.3.4 as the page the applet is loading on - everything is referenced using relative URLs . When I try to play the audio it fails to play and I get : access denied java.net.SocketPermission 1.2.3.4 : 80 connect resolve .. . .. . Looking at the access logs I get a request for crossdomain.xml right before this happens . But the catch is that Java isn t asking for a crossdomain.xml from mydomain.example.com crossdomain.xml ...but instead from 1.2.3.4 crossdomain.xml .. . .. . The workaround that seems to work for me is to set up a virtual host that responds for the IP address 1.2.3.4 and give it a crossdomain.xml so that Java can find the crossdomain.xml in the wrong place that it s looking for it . I just tested with the contents : .. . .. . ...but it s probably possible to make this more restrictive . With that in there the audio plays correctly .", "Question : I m having trouble getting a Java Applet to communicate with the Javascript code on the page the applet is hosted on . It works sometimes but othertimes it throws an obscure exception that googling for has not turned up any useful information besides a few Java bug reports that were never resolved thanks Sun . Here is the code I am using : .. . .. . Here is the exception I get on the line marked XXX . Note that it is intermittent . Often it works but sometimes it does not using the same exact code . Reloading the page repeatedly will produce the error pretty quickly . Is there another more stable way of communicating between Java and Javascript that I should be using --- More info --- .. . .. . I m using the deployJava.js script as provided by Sun to embed the applet on the fly . I made sure MAYSCRIPT is enabled . I know it s not a problem with MAYSCRIPT because the communication works some of the time . Comment : Are you using the applet tag to embed it .. . Answer : Make sure you have MAYSCRIPT in your applet tag . Comment : Yes it s there . MAYSCRIPT shouldn t be the problem anyway because the exception is intermittent . Some times it works some times it does not simply reloading the page not changing any code . If MAYSCRIPT were the problem it would block the communication 100 of the time . Comment : I think MAYSCRIPT is ignored in PlugIn2 . It never worked across all browsers correctly anyway . Comment : Googled plugin2 interesting wonder if their new plugin architecture introduced in java 1.6.10 has some bugs . Comment : plugin2 also defines a new way of interacting with the browser . Maybe I should use that maybe it is more stable Comment : My bad...the new way is for DOM manipulation only . You use the exact same method for calling javascript via the JSObject class . Internally it has been rewritten but you use the same API .", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : Update from @Kristian above saved my day . I had access denied java.net.SocketPermission server ip : server port connect resolve from an applet in a web application . There had been change in our DNS such that the IP of the load-balancer of the application server was not resolving to a name with domain . Therefore the suspected cross-domain connection from applet back to server was blocked . I added crossdomain.xml with .. . .. . xml version 1.0 cross-domain-policy allow-access-from domain cross-domain-policy .. . .. . to tomcat-home webapps and checked that it is accessible with http : server name : server port crossdomain.xml", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : Just to add there s some stuff here which exactly matches the issue I ve been getting - it specifically mentions controlling an applet with JavaScript . http : www.oracle.com technetwork java javase 6u22releasenotes-176121.html .. . .. . The fix for CVE-2010-3560 could cause certain Java applets running in the new Java Plug-in to stop working if they are embedded in web pages which contain JavaScript that calls into Java in order to perform actions which require network security permissions . These applets may fail with a network security exception under some circumstances if the name service which resolved the original web page URL host name does not return a matching name as the result-of a reverse address lookup . Their suggestion is to add a special crazy just-for-Java A record to the DNS like : .. . .. . .. . 10.11.12.13 foo.bar.com.auth.13.12.11.10.in-addr.arpa .. . Comment : this fixed my problem", "Question : I m having trouble getting a Java Applet to communicate with the Javascript code on the page the applet is hosted on . It works sometimes but othertimes it throws an obscure exception that googling for has not turned up any useful information besides a few Java bug reports that were never resolved thanks Sun . Here is the code I am using : .. . .. . Here is the exception I get on the line marked XXX . Note that it is intermittent . Often it works but sometimes it does not using the same exact code . Reloading the page repeatedly will produce the error pretty quickly . Is there another more stable way of communicating between Java and Javascript that I should be using --- More info --- .. . .. . I m using the deployJava.js script as provided by Sun to embed the applet on the fly . I made sure MAYSCRIPT is enabled . I know it s not a problem with MAYSCRIPT because the communication works some of the time . Comment : Are you using the applet tag to embed it .. . Answer : I think I ve solved the problem by setting classloader cache false and separate jvm true ...once I set both of those the intermittent obscure errors stopped happening . Hopefully this solves the problem for good . Comment : Unfortunately this solution cause applet is totally stateless . All static-variables are cleared after page reloading or refreshing .", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : I encountered the same problem after installing Java 6 Update 22 . My applet has been online for several years with no reported errors . When I downgrade to version 6 Update 21 everything works perfect . My applet is not signed . SOLUTION : It took me ha while to find the cause of the problem . Actually in my case there were several factors causing the security error . The problem was solved by the crossdomain.xml file . The Java applet tried to download the crossdomain file failed and did not even bother to display an error in the java console debug level 5 . Java tried to download the file from the ip adress of my domain http : ip-address crossdomain.xml and not the root of my website http : domain-name crossdomain.xml . I guess it is better for the security aspect I then had to configure the webserver to expose the crossdomainfile on the IP address . In my case I have removed the default website in ISS for security reasons and had to create a new website . I then discovered that the java applet did not work with the crossdomain files i use with flash : .. . .. . I had to remove the site-control and allow-http-request-headers-from nodes from the xml file in order to make the applet work . Comment : I m running Java 6 Update 17 and it still doesn t work .", "Question : I m having trouble getting a Java Applet to communicate with the Javascript code on the page the applet is hosted on . It works sometimes but othertimes it throws an obscure exception that googling for has not turned up any useful information besides a few Java bug reports that were never resolved thanks Sun . Here is the code I am using : .. . .. . Here is the exception I get on the line marked XXX . Note that it is intermittent . Often it works but sometimes it does not using the same exact code . Reloading the page repeatedly will produce the error pretty quickly . Is there another more stable way of communicating between Java and Javascript that I should be using --- More info --- .. . .. . I m using the deployJava.js script as provided by Sun to embed the applet on the fly . I made sure MAYSCRIPT is enabled . I know it s not a problem with MAYSCRIPT because the communication works some of the time . Comment : Are you using the applet tag to embed it .. . Answer : If you set separate jvm to true this has very bad effect on performance since new Java VM is instantiated for every applet . If you have multiple applets on the page 30+ this is pretty slow . I wonder if there is any other solution for this issue . E.g . we have multiple applets across multiple tabs . When the first tab with applets is opened all applets are shown correctly with no problems . But switch to any other tab results with the error for no registered plugin . In IE this error does not occur because in IE all applets are instantiated immediately as they are added to DOM .", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : I don t think is possible to made the crossdomain.xml file more restrictive at current time Java applets only support the domain .. . .. . see here http : www.oracle.com technetwork java javase index-135519.html CROSSDOMAINXML", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : I think I m too late but anyways.. . Guys you cannot believe how easy a solution this problem has . The problem is that Java applet code called from JavaScript has only permissions that are the intersection of the JavaScript s code and your applet code - and somehow the JavaScript s permissions are seen as less which results in this Exception . Here is what I did : assume you have a function innocentFunc that throws the java.net.SocketPermission exception so your code is something like so : .. . .. . Now what you can do is to change it to something like so : .. . .. . This AccessController call basically states to the Java Virtual Machine that the code it runs should not obey to the permissions from the call chain but rather only the caller s permissions in its own . Of course you should do something like this only after making sure that this innocentFunc call can t do anything bad even if invoked by malicious code . Comment : I just wanted to reply with a similar solution . Seeing your s I instead took the liberty to edit it adding some explanation .", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : See : http : download.oracle.com javase tutorial deployment applet security.html .. . .. . Unsigned applets can perform the following operations : .. . .. . They can make network connections to the host they came from . .. . .. . If Java does not resolve the originating system to localhost then the applet will not be able to open sockets .", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : You should check your virtual-directory permissions .", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : Just self sign the jar .. . .. . follow this link-to sign the jar http : wiki . processing.org w Sign an Applet remove spaces .. . .. . and add mayscript to the applet .. . .. . or follow simple instructions from the following link http : java.sun.com products plugin 1.3 docs jsobject.html", "Question : I have a Java Applet inserted on a simple HTML page located at http : localhost : 8080 index.html : .. . .. . The Java Applet has a method that looks similar to the code below : .. . .. . When I execute the applet code from JavaScript like so : .. . .. . I get the following error : .. . .. . access denied java.net.SocketPermission 127.0.0.1 : 8080 connect resolve .. . .. . It seems like the Java code resolves the domain localhost to its equivalent IP address and therefore raises a cross-domain security restrain . It works fine when I execute the same code from http : 127.0.0.1 : 8080 index.html . The lib.jar file is signed . Is there anyway to avoid this Comment : Try signing lib.jar and all other external jar files you are using Comment : Do not use localhost I will explain also why : there is no guarantee localhost is 127.0.0.1 at all . Also use getCodeBase always from applets do not use hard-coded locations . .. . Answer : I had the similar issue and it only occurs when I use the localhost as a part of the URL for the page with the applet . When I used the URL with the actual host name or IP address as a part of the URL the problem didn t happen . I am not sure this is a defect for the Java plug-in.. . .. . .. . For example when I used the URL like http : localhost : 9080 app-id appletPage the problem occurred but when I use the URL by using the actual IP or host name the problem did not occur .", "Question : I m trying to use smack in order to connect to Microsoft s Xmpp Msn api . Last april they made a change in their implementation which forces clients to implement the see-other-host xmpp specification . When I try to connect to xmpp.messenger.live.com I get .. . .. . stream : error see-other-host at org.jivesoftware.smack.PacketReader.parsePackets PacketReader.java : 260 at org.jivesoftware.smack.PacketReader.access 000 PacketReader.java : 43 at org.jivesoftware.smack.PacketReader 1.run PacketReader.java : 70 .. . .. . I m debugging and I can see the raw received packets .. . .. . But I m unable to find a way in order to intercept and handle that redirect . Has anybody done this Any help would be appreciated . Thanks . BTW I ve already post this on smack forums but got no reply hope this is isn t considered cross-posting . .. . Answer : This background may help in fixing the problem .. . .. . The see-other-host stream error redirects a client to another server . In the case of Messenger it s intended to allow clients to cleanly switch to another server should their current server go out of service or to connect to another server for load-balancing purposes . Based on Sample Java Codes that uses SAMCK there are two problems : .. . .. . 1 . The registered connection listeners don t receive notification of the exception .. . 2 . there s no way to access the text element of a stream error from XMPPException .. . .. . Handling the redirection internally would be the friendliest solution but notifying the client of the new server would at least allow clients to make a new connection without user intervention . Comment : @alscu would you mind providing us with the hacky way you mentioned in your comment as we may benefit from it and discuss it and help others cope up with this SMACK BUG .. . Thanks", "Question : Firstly thanks for your time . I have a serious concern about Live Connect s OAuth2 API . I follows this and using DotNetOpenAuth to implement integrate LiveId authentication authorization for our federated-identity access management system . http : msdn.microsoft.com en-us library live hh243647.aspx authcodegrant .. . .. . Everything is working fine for quite a long time . But now I m having a serious trouble when fixing the replay attack issue for LiveId login module . Let s take a look at the Authorization code grant flow from the above article . 4 . The user-agent calls the client with the redirection URI which includes an authorization code and any local state that was provided by the client . For example : ...Callback.htm code AUTHORIZATION CODE . 5 . The client requests an access token from the authorization server s token endpoint by using its client credentials for authentication and includes the authorization code that was received in the previous step . The client includes the redirection URI that was used to obtain the authorization code for verification . .. . .. . Right after the step 4 Live Connect OAuth2 server returns to my callback endpoint with the authorization code state like the following : .. . .. . https : ssss.myapp.com : 443 liveid consume.idp code 406dd558-0cda-50cc-bd37-d964ec29fbb3 state uvygsnd3gba0jwi315kdyccs https : ssss.myapp.com : 443 liveid consume.idp code 406dd558-0cda-50cc-bd37-d964ec29fbb3 state uvygsnd3gba0jwi315kdyccs .. . .. . Problem is that authorization code could be used more than once . So it leads to the serious replay attack issue like the following scenario : .. . .. . 1 . User A when logging in to my application chose LiveId to sign-in then he s redirected to LiveId login page . He then logged in Live Connect OAuth2 server returned to the callback endpoint with the code xxx state yyy...user A then used this authorization code to obtain the access token.. . .. . .. . 2 . User B when logging in to my application chose LiveId to sign-in he then logged in at LiveId s login page . Live Connect OAuth2 server now return with code kkk state ggg .. . .. . If I this time use some tools like Webscarab to capture the response request then change the return from OAuth2 server to code xxx state ggg the old authorization code was given to user A not B . Then after that requesting for access token using this replay authorization code was going through smoothly . And guess what I received again the ACCESS TOKEN which was given to user A before...and finally user B can logging into my application as user A . Please be noticed that applying the same replay attacking like above for Google OAuth2 server I received bad request error from the server Google OAuth2 authorization code never could be used more than once . And the code flow or exactly the implementation for Google login LiveId login are exactly the same . I used DotNetOpenAuth.OAuth2.WebServerClient to implement the OAuth2 authenticating flow for both of Google LiveId . Again exactly the same code but Google OAuth2 server returned bad request when authorization code is reused but LiveId returned the old access token of the previous user . This is a serious security problem . Hope you guys have some ideas on this . Or hopefully I m wrong on some points . Please point it out . Thanks very much in advance Phuc Le . .. . Answer : The OAuth 2 spec is quite clear here https : tools.ietf.org html rfc6749 section-4.1.2 : .. . .. . If an authorization code is used more than once the authorization server MUST deny the request and SHOULD revoke when possible all tokens previously issued based on that authorization code . This is for the exact reasons https : tools.ietf.org html rfc6819 section-5.1.5.4 you mentioned above . In your case you should notify your provider http : technet.microsoft.com en-us security ff852094.aspx of this issue . Meanwhile you could implement a cache of used authorization codes on client-side and check for already issued codes . Note thate this could also produce false positives in the occasion that the provider randomly generated the same code for two different users which might be quite unlikely depending on the implementation . Comment : Thanks Gerlinger for the response Comment : Back to the issue . As specified in your link @ tools.ietf.org html rfc6819 section-5.1.5.4 https : tools.ietf.org html rfc6819 section-5.1.5.4 5.1.5.4 . Limit Number of Usages or One-Time Usage The authorization server may restrict the number of requests OR operations that can be performed with a certain token . This mechanism can be used to mitigate the following threats.. . As specified above I think the Live Connect OAuth 2.0 server chose the approach to limit the number of usage NOT one time usage . I will try to ask again in Live Connect forum to see if it s . Comment : About your solution that using cache to store the already-used authorization code for checking later . IMO that does not work for my case actually . Imagine that we have the application running on many servers which doesn t share anything to each other no central session or cache database....nothing shared . So maybe an authorization code is already used once in this instance server but not in others . Now hacker uses it for replay attacking another server instance there s actually no way to check . Please share you ideas Thanks a lot . Comment : @PhucLe As is specified in the spec it is not allowed to use authorization codes more than once . The sentence in the Threat Model spec aims for other tokens that could be prone to replay attacks . I just posted it to prove that limiting the usage or using one-time tokens is the recommended way to deal with replay attacks . In your scenario there s not much you can do about it than waiting for your provider to fix this issue or holding a common store for your servers . Comment : @Gerlinger : thanks that s what I thought too . It seems this need to be fixed by Live Connect OAuth 2.0 server team . Thanks again", "Question : I m trying to use smack in order to connect to Microsoft s Xmpp Msn api . Last april they made a change in their implementation which forces clients to implement the see-other-host xmpp specification . When I try to connect to xmpp.messenger.live.com I get .. . .. . stream : error see-other-host at org.jivesoftware.smack.PacketReader.parsePackets PacketReader.java : 260 at org.jivesoftware.smack.PacketReader.access 000 PacketReader.java : 43 at org.jivesoftware.smack.PacketReader 1.run PacketReader.java : 70 .. . .. . I m debugging and I can see the raw received packets .. . .. . But I m unable to find a way in order to intercept and handle that redirect . Has anybody done this Any help would be appreciated . Thanks . BTW I ve already post this on smack forums but got no reply hope this is isn t considered cross-posting . .. . Answer : I finally found a solution for this issue by changing hostname from messenger.live.com to 64.4.61.217 in ConnectionConfiguration constructor as shown in the code below : .. . .. . I got this IP by executing nslookup messenger.live.com in Dos Command Prompt then I got an Address which I have used in the ConnectionConfiguration . Hope this would help", "Question : I m trying to use smack in order to connect to Microsoft s Xmpp Msn api . Last april they made a change in their implementation which forces clients to implement the see-other-host xmpp specification . When I try to connect to xmpp.messenger.live.com I get .. . .. . stream : error see-other-host at org.jivesoftware.smack.PacketReader.parsePackets PacketReader.java : 260 at org.jivesoftware.smack.PacketReader.access 000 PacketReader.java : 43 at org.jivesoftware.smack.PacketReader 1.run PacketReader.java : 70 .. . .. . I m debugging and I can see the raw received packets .. . .. . But I m unable to find a way in order to intercept and handle that redirect . Has anybody done this Any help would be appreciated . Thanks . BTW I ve already post this on smack forums but got no reply hope this is isn t considered cross-posting . .. . Answer : I added see-other-host support to SMACK API for try . Now i can get see-other-host address as an Exception . For Example when i try to connect to messenger.live.com address i m successfully getting see-other-host : BAYMSG1020118.gateway.messenger.live.com . Then i try to connect BAYMSG1020118.gateway.messenger.live.com i m getting see-other-host again with different address : BY2MSG4010610.gateway.messenger.live.com Finally when i try to connect BY2MSG4010610.gateway.messenger.live.com i m getting this exception : .. . .. . I ll share this result with Smack guys also . If you want I can send to you the capture of our xmpp traffic via email . Best Regards Alper Ozdamar Comment : We finally modified smack code in a hacky way just to handle see-other-host until smack oficially supports it . Thanks for your response ." ] }
[ "yes-answer-long", "yes-answer-short" ]
s
UNK_RELATION
mbcalendarkit@ios@76
mbcalendarkit -- mbcalendarkit is a framework for showing a calendar ui on @placeholder .
{ "confidence": [ 56.470787048339844, 53.713470458984375, 51.296138763427734, 48.624080657958984, 48.37300109863281, 47.403018951416016, 47.271697998046875, 45.939544677734375, 45.766578674316406, 45.43109893798828, 43.938209533691406, 43.934940338134766, 43.87565231323242, 42.746559143066406, 42.035057067871094, 40.29415512084961, 40.29415512084961, 40.29415512084961, 39.073089599609375, 38.36831283569336, 38.177772521972656, 37.609615325927734, 37.23063278198242, 36.95671081542969, 35.39003372192383, 35.39003372192383, 35.39003372192383, 34.16897201538086, 34.16897201538086, 33.85747146606445, 33.198265075683594, 32.70549774169922, 32.38861083984375, 31.17293357849121, 31.17293357849121, 31.16754722595215, 30.86750030517578, 29.704071044921875, 29.704071044921875, 26.342363357543945, 25.461416244506836, 25.377105712890625, 23.00870132446289, 22.50521469116211, 22.50521469116211, 21.934532165527344, 21.168102264404297, 21.168102264404297, 21.168102264404297, 21.168102264404297, 21.102697372436523, 20.713470458984375, 20.33139991760254, 20.129928588867188, 20.129928588867188, 19.820674896240234, 19.432025909423828, 19.2499942779541, 18.739315032958984, 18.731517791748047, 18.731517791748047, 18.731517791748047, 18.731517791748047, 17.87565803527832, 17.87565803527832, 17.518251419067383, 17.510454177856445, 17.510454177856445, 17.445390701293945, 16.954368591308594, 16.616230010986328, 16.616230010986328, 16.046977996826172, 16.046977996826172, 16.046977996826172, 16.046977996826172, 16.046977996826172, 16.046977996826172, 15.728666305541992, 15.696002960205078, 15.546609878540039, 15.191119194030762, 15.191119194030762, 14.851970672607422, 14.404112815856934, 14.269830703735352, 14.232526779174805, 14.232526779174805, 13.927846908569336, 13.927092552185059, 13.927092552185059, 13.927092552185059, 13.927092552185059, 13.927092552185059, 13.927092552185059, 13.927092552185059, 13.927092552185059, 13.927092552185059, 13.927092552185059 ], "content": [ "I m using MBCalendarKit for customising calendar .", "I am using MBCalendarkit for showing custom calendar in my app .", "install mbcalendarKit .", "Hey I m the author of MBCalendarKit .", "You want to look at the CKCalendarCell https : github.com MosheBerman MBCalendarKit blob master MBCalendarKit CalendarKit Core CKCalendarCell.m and CKCalendarHeaderView https : github.com MosheBerman MBCalendarKit blob master MBCalendarKit CalendarKit Core CKCalendarHeaderView.m classes .", "I m the author of MBCalendarKit .", "Inside your UIViewController subclass import MBCalendarKit like so : .. . .. . import MBCalendarKit .. . .. . 4 .", "I used a MBCalendarKit .", "I m connecting MBCalendarKit https : github.com MosheBerman MBCalendarKit with Core Data .", "From the documentation https : github.com MosheBerman MBCalendarKit blob master README.md : .. . .. . MBCalendarKit requires Quartz Core Graphics UIKit and Foundation .", "Its a piece of code from MBCalendarKit .", "I integrated MBCalendarKit with my App using storyboard .", "Next add a bridging header to the project and import the main calendar kit file like so .. . .. . import MBCalendarKit CalendarKit.h .. . .. . 3 .", "@BhadreshKathiriya I used MBCalendar KIt github.com MosheBerman MBCalendarKit https : github.com MosheBerman MBCalendarKit", "I have a main view controller with a button that takes you to the calendar view which I am using MBCalendarKit for .", "I m the developer behind MBCalendarKit so if you need anything just holler .", "I have just integrated MBCalendarKit to my Swift project .", "For reference download sample code from github https : github.com MosheBerman MBCalendarKit .", "You don t create events in MBCalendarKit but in your own data model .", "The colors for the header are defined in CKCalendarHeaderColors.h https : github.com MosheBerman MBCalendarKit blob master MBCalendarKit CalendarKit Headers CKCalendarHeaderColors.h as hex values which are converted to UIColors with a category on NSString .", "I have got the source code of Calendar component from https : github.com MosheBerman MBCalendarKit blob master README.md .. . .. . I want to integrate this into my app .", "I used a MBCalendarKit I got a events title but image don t show .", "when I try to import MBCalendarKit in my project it shows no such module error and linker command error .", "I don t know if this is a good way of doing things and I m wondering if it is even possible to add an event from a calendar to Parse in iOS and if MBCalendarKit is the way to go .", "I just had to make the view controller in the storyboard to which I am connecting the MBCalendarKit as a navigation controller .", "i have followed as per instruction to use MBCalendarKit into my app but it doesn t seem to be working .", "files http : i.stack.imgur.com R0Yuz.png .. . .. . The author of MBCalendarKit explains that : .. . .. . You can show an instance of CKCalendarView .", "Have a look at the documentation in the README https : github.com MosheBerman MBCalendarKit blob master README.md .", "I have the user base down and I m trying to use the open-source MBCalendarKit to be able to add events to Parse .", "I m fairly new to swift Xcode and I m using a basic tabbed application template in XCode and I am trying to implement the MBCalendarKit to show a calendar on the first tab view .", "Something similar to MBCalendarKit which I downloaded from .. . .. . https : www.cocoacontrols.com search utf8 q calendar https : www.cocoacontrols.com search utf8 q calendar .. . .. . When I integrate this calendar in my application using storyboard I am not able to see the bottom buttons as seen in the image below .", "I am having a problem with the frame of my CKCalendarView s frame Which comes with MBCalendarKit .", "instruction can be found over here https : github.com MosheBerman MBCalendarKit .. . .. . also i think the problem is with podfile but that doesn t seem to be the issue .", "I am using MBCalendarKit and have it working but I m trying to use the info dictionary for each event I ve created to display the details on a detail page after selecting an event in the calendar view .", "I m the author of a calendar library for iOS https : github.com mosheBerman mbcalendarkit and I m thinking about how I can improve it because it s become obvious that people aren t understanding it .", "I designed MBCalendarKit to model UITableView s delegation and data source protocols so you can tell it to reload whenever your async methods finish working .", "Here is a list of those i have tried : .. . .. . Kal Calender : Does not support weeks .. . .. . Tapku : Does not support weeks .. . .. . https : www.cocoacontrols.com controls mbcalendarkit is perfect but lacks proper documentation regarding implementation .", "In my app i am using the MBCalendar Kit .. . .. . I got the source code from MBCalendar from CocoaControl https : www.cocoacontrols.com controls mbcalendarkit .", "Although the newer versions of MBCalendarKit are better at supporting the larger screened iPhone 6 and iPhone 6 Plus there s no official iPad support .", "I m unsure if I ll add official support in the future but it s a known bug and you should follow issue 31 https : github.com MosheBerman MBCalendarKit issues 31 if you re interested in this feature .", "I want to successfully calendar show in UI .", "I am using MBCalendarKit in my app and I can create events like this : .. . .. . I can create another event on the same day like this : .. . .. . and then I can create another event on a different day like this : .. . .. . I m trying to loop through a plist file which contains all the events to create all of them .", "im looking for a up to-date calendar UIKit for IOS .", "That and the calendar work just fine .", "There should be a calendar view in the ViewController .", "I loved the table below the calendar .", "i built mine own custom calendar", "The only issue I m having is to customize the calendar view.. .", "How can I fix this to present the calendar itself", "I have implemented a calendar in my Swift project .", "Once you ve created your own data model and saved it to your local or remote data store you can update the calendar UI .", "But I unable to show events on calendar .", "You can have big section headers that say How to Add Events to the Calendar and How to Show an Event on the Calendar and How to Make an Event Appear on the Calendar and they can all say the same thing ideally with sample code or just link-to the Showing Events section .", "I don t see where you add the calendar view to the view-hierarchy .", "I want to add to text labels in each calendar cell .", "calendar are show proper .", "I added calendar kit framework and also two file add my project first is CKDemoViewController.h and second is CKDemoViewController.m This time create a static events .", "how to add calendar another screen .", "The Unit Tests build against the XCTest framework .", "Can anyone suggest me a good calendar for iOS that has a day view week view and a month view .", "Use this if you want to manually manage your view-hierarchy or have a finer control over your calendar view .", "in ios 7 i am not able to present calendar but in ios 8 it present very well .", "And also Considering that MB Calendar has so many issues opened why are you using it in the first place .", "The problem is when I try to go back to the main view from the calendar by tapping the back button on the navigation bar the app crashes .", "You can find my project from this link Calendar Integration Project https : github.com kalpeshjethva18 s2 Here is my basic code .", "I m working with this Framework and I ve had the same issues .", "I imported MBCalendar Kit into my project and I don t know how to add an event or array of events in calendar .", "I m trying to develop an app in objective-c that uses Parse as a backend database and has a calendar in it .", "I connected a navigation controller but dont back button show in calendar view", ".. . Aside from the framework dependencies described above you ll want everything in the CalendarKit folder .", "The framework has an event object to work with .", "I used MBCalendar kit framework .", "Your user should be able to paste it into her project compile and see events in the calendar view .", "If you keep getting asked How do I make events appear on the calendar then put that language in your documentation .", "You want events that fall on a given calendar day but you don t care about the time of day of the event .", "There were several issues opened that complained that events weren t appearing on the calendar and date comparisons was the culprit .", "i want to button click after move to another page then open calendar screen .", "@JTAppleCalendarforiOSSwift Dynamic events means web server response get date and data how to reload in calendar", "I get all the events in the array for every date in the calendar as shown below .", "I ve just updated this project if you want to check it out events now could be created and showed as done in the demo section which is a subclass of the calendar view controller", "It s also possible to web service through get date but before view call web service after calendar view controller page call or web service calendar view controller call get response data then you are reload current view controller means call self viewDidLoad or self viewWillAppear : Yes or set response data method below Calendar event call .", "The toy can just use a hardcoded array of events with calls to NSDate now as needed to ensure the default calendar month shows events .", "I used a storyboard and ios 9 Xcode 7.2 in this project used a calendar view and event show by web server fetch data .", "Provide a snippet instead of formal selector description under Showing events sections of your docs .", "Here s an example : .. . .. . Hope this helps : D .. . .. . I m working on my own framework based on this but with an iOS7 native feel it s not finished yet but here is the repo : .. . .. . https : github.com AndoniV CalendarBar iOS7 Style.git", "Refer this link : stackoverflow.com questions 38408557 http : stackoverflow.com questions 38408557 mbcalendar-kit-framework-how-to-add-in-my-project", "Perhaps because your library also defines the Event class users are expecting the calendar view itself to provide the data model and they then add events by calling a method such as addEvent .", "enter image description here http : i.stack.imgur.com 6QZ3A.jpg .. . .. . As you can see from the first and second pictures and a little bit from the third too the events are beginning to list way below the calendar .", "Refer this link for code only one event set another your logic : .. . .. . https : www.dropbox.com home preview proj.zip .. . .. . I am also solve this question in MBCalendar kit framework how to add-in my project http : stackoverflow.com questions 38408557 mbcalendar-kit-framework-how-to-add-in-my-project", "I need one that supports Weeks .", "If you know any that is up to-date and does support Weeks with somewhat OK documentation please provide me with a link .", "Oh yeah I forgot that we re here to Google things for you .", "Yeah couse i havnt googled for the last 5hours", "I ve updated the documentation since this question was answered .", "ABCalendarPicker http : github.com k06a ABCalendarPicker is a good choice that supports week view .", "Why the down vote", "Simple writing a less than one line mostly link answer that positively reinforces this off topic question .", "Thanks i upvoted you :", "I tried all the solution given in stackoverflow under this topic and no success ." ] }
{ "confidence": [ 66.77098846435547, 62.86994934082031, 62.31089782714844, 61.820274353027344, 61.153846740722656, 59.81986999511719, 59.06500244140625, 59.021053314208984, 56.66790008544922, 54.44590377807617, 53.59440612792969, 53.4229736328125, 49.028167724609375, 47.45100784301758, 45.89341735839844, 45.45427703857422, 42.875858306884766, 42.82923889160156, 42.82923889160156, 42.71687316894531 ], "content": [ "Question : I am using MBCalendarkit for showing custom calendar in my app . But I unable to show events on calendar . Any help will be appreciated.Thank you . .. . Answer : I m the author of MBCalendarKit . Have a look at the documentation in the README https : github.com MosheBerman MBCalendarKit blob master README.md . It s been updated since this question was asked and hopefully it s more clear . There s also newer sample code in the repository .", "Question : I m trying to develop an app in objective-c that uses Parse as a backend database and has a calendar in it . I have the user base down and I m trying to use the open-source MBCalendarKit to be able to add events to Parse . I don t know if this is a good way of doing things and I m wondering if it is even possible to add an event from a calendar to Parse in iOS and if MBCalendarKit is the way to go . .. . Answer : Even though Parse is going away this question might help those with a different backend so here s the scoop . You don t create events in MBCalendarKit but in your own data model . Once you ve created your own data model and saved it to your local or remote data store you can update the calendar UI . I designed MBCalendarKit to model UITableView s delegation and data source protocols so you can tell it to reload whenever your async methods finish working . Just remember that you would need to do that from the main thread .", "Question : Great tool you provided us I loved the table below the calendar . It s reeeeeealy useful . The only issue I m having is to customize the calendar view.. . I needed something cleaner . Do you have tips where I can start looking for customising the view I looking for something like this : https : github.com jonathantribouharet JTCalendar blob master Screens example.gif .. . .. . Thanks in advance .. . Answer : You want to look at the CKCalendarCell https : github.com MosheBerman MBCalendarKit blob master MBCalendarKit CalendarKit Core CKCalendarCell.m and CKCalendarHeaderView https : github.com MosheBerman MBCalendarKit blob master MBCalendarKit CalendarKit Core CKCalendarHeaderView.m classes . The look-and-feel of the cells and the header are in there . CKCalendarCell uses the concept of states to determine what gets rendered when . There are seven states : .. . .. . The state of each cell is determined based on if it s part of the current month or not if the cell is selected and if the cell has an active touch in it . Have a look at the applyColorsForState : method for the coloring and stuff . You may want to add your own borderRadius and clipsToBounds values . The colors for the header are defined in CKCalendarHeaderColors.h https : github.com MosheBerman MBCalendarKit blob master MBCalendarKit CalendarKit Headers CKCalendarHeaderColors.h as hex values which are converted to UIColors with a category on NSString .", "Question : null .. . Answer : i have followed as per instruction to use MBCalendarKit into my app but it doesn t seem to be working . I am posting my code below in swift . .. . .. . install mbcalendarKit . instruction can be found over here https : github.com MosheBerman MBCalendarKit .. . .. . also i think the problem is with podfile but that doesn t seem to be the issue . thanks in advance . Comment : there are currently no errors and build succeeds Comment : What happens when you run the code Comment : i built mine own custom calendar Comment : Oh well . I m the developer behind MBCalendarKit so if you need anything just holler .", "Question : Can anyone suggest me a good calendar for iOS that has a day view week view and a month view . Something similar to MBCalendarKit which I downloaded from .. . .. . https : www.cocoacontrols.com search utf8 q calendar https : www.cocoacontrols.com search utf8 q calendar .. . .. . When I integrate this calendar in my application using storyboard I am not able to see the bottom buttons as seen in the image below . Can anyone suggest me how to remove this bug or can you guys suggest me a good alternative for this I tried almost all the calendars available like tapku Kal etc . Screen shot http : i60.tinypic.com ejufsl.png .. . Answer : I integrated MBCalendarKit with my App using storyboard . I just had to make the view controller in the storyboard to which I am connecting the MBCalendarKit as a navigation controller .", "Question : I m using MBCalendarKit for customising calendar . I want to add to text labels in each calendar cell . For reference download sample code from github https : github.com MosheBerman MBCalendarKit . Comment : Is it a question or an answer .. . Answer : To make multiple labels i m using FOR loop . NSMutableArray dateButtons NSMutableArray array for NSInteger i 1 i 42 i++", "Question : I have got the source code of Calendar component from https : github.com MosheBerman MBCalendarKit blob master README.md .. . .. . I want to integrate this into my app . How do I do it Can I import any of its frameworks etc I tried copying all the files into my Xcode project but it makes the app heavy .. . Answer : From the documentation https : github.com MosheBerman MBCalendarKit blob master README.md : .. . .. . MBCalendarKit requires Quartz Core Graphics UIKit and Foundation . The Unit Tests build against the XCTest framework . Xcode should take care of all those except QuartzCore.framework . If you re building the tests you may have to link-to XCTest yourself as well . .. . Aside from the framework dependencies described above you ll want everything in the CalendarKit folder . Comment : Dear Moshe i have a problem with the when i am trying to present in in my viewcontroller in ios7 that time i m not able to presenting a calendarview Comment : it stuck the view and i have to kill application .", "Question : when I try to import MBCalendarKit in my project it shows no such module error and linker command error . I tried all the solution given in stackoverflow under this topic and no success . help me . Thanks in advance . enter image description here http : i.stack.imgur.com GL4NG.png Comment : Can you give any more information Are you using Pods or Importing Manually Comment : I used pods and also tried importing manually...both did not work Comment : Have you also included the bridging header like the installation guide suggests Also your screenshot seems to suggest you re building the CalendarKitMB Project directly and not just importing the files you need to your project can you confirm either way .. . Answer : I ve just imported into a test project and using the latest version of Xcode 7.2.1 it s slightly different than the installation instructions . 1 . Assuming you re using pods install the pod and make sure to open the .xcworkspace file . 2 . Next add a bridging header to the project and import the main calendar kit file like so .. . .. . import MBCalendarKit CalendarKit.h .. . .. . 3 . Inside your UIViewController subclass import MBCalendarKit like so : .. . .. . import MBCalendarKit .. . .. . 4 . Celebrate Comment : Sorry.. . But still the error persists after pod installations and adding bridging headers.. .", "Question : null .. . Answer : I have a main view controller with a button that takes you to the calendar view which I am using MBCalendarKit for . That and the calendar work just fine . The problem is when I try to go back to the main view from the calendar by tapping the back button on the navigation bar the app crashes . The only message I get is Thread 1 : EXC BAD ACCESS code 1 address 0xa000010 .. . .. . Here is my code : Comment : In which line does it crash EXC BAD ACCESS means that you re trying to reach an released object that doesn t exist anymore . You could enable NSZombies to get which object causes trouble . Comment : Hey I m the author of MBCalendarKit . I m commenting here so I remember to come back in a bit when I have more time to investigate this . Comment : Which line is the crash on", "Question : I am having a problem with the frame of my CKCalendarView s frame Which comes with MBCalendarKit . enter image description here http : i.stack.imgur.com 8IUlO.jpg enter image description here http : i.stack.imgur.com 91mvd.jpg enter image description here http : i.stack.imgur.com 6QZ3A.jpg .. . .. . As you can see from the first and second pictures and a little bit from the third too the events are beginning to list way below the calendar . Which does not happen with framework s demo project . The code I initialize it is as follows : .. . .. . The calendarViewArea is a UIView which starts right below my Navigation Bar . This is because when I add the calendarView directly to my ViewController s view its top part stays below my navigation bar . .. . Answer : I m the author of MBCalendarKit . Although the newer versions of MBCalendarKit are better at supporting the larger screened iPhone 6 and iPhone 6 Plus there s no official iPad support . Try the new 3.0.4 release for example . Build it to the iPad simulator . It seems to work well but if you rotate the device it breaks the cell layout . I m unsure if I ll add official support in the future but it s a known bug and you should follow issue 31 https : github.com MosheBerman MBCalendarKit issues 31 if you re interested in this feature .", "Question : I m connecting MBCalendarKit https : github.com MosheBerman MBCalendarKit with Core Data . This is the code to build a dictionary of events : .. . .. . .. . .. . When implementing the method CKCalendarDataSource the outcome is not the desired one . I get all the events in the array for every date in the calendar as shown below . .. . .. . enter image description here http : i.stack.imgur.com Ltj5L.png .. . Answer : Since CKCalendarDataSource is expecting a specific Dictionary format I had to iterate through eventsArray instead of just passing it to calendarData .", "Question : I used MBCalendar kit framework . and successfully added in my project but problem is that months and dates cant show simulator . only one top bar show in this weeks and year show . I attached my output snap shot please find this and show bellow . I want to successfully calendar show in UI . how it possible please help . Look like this my output http : i.stack.imgur.com wknzZ.png Comment : you are using MBCalendar or CKCalendarVIew Comment : github.com jaykz52 CKCalendar https : github.com jaykz52 CKCalendar cocoacontrols.com controls ckcalendar https : www.cocoacontrols.com controls ckcalendar Comment : @BhadreshKathiriya I used MBCalendar KIt github.com MosheBerman MBCalendarKit https : github.com MosheBerman MBCalendarKit Comment : Please try step : .. . Answer : Follow my step : .. . .. . Step 1 : remove you are implement all related to MBCalendar . Step 2 : include CKDemoViewController.h CKDemoViewController.m file in your project . Step 3 : set your view design class to CKDemoViewController . check some file : https : github.com BhadreshKathiriya MBCalendar Comment : Thank you . calendar are show proper . and one more main problem faced How to add events web service through get date . Comment : how to add calendar another screen . i want to button click after move to another page then open calendar screen . so how it possible . please help Comment : It s possible to anther screen . Comment : - IBAction btnClick : id sender self presentViewController : CKDemoViewController alloc init animated : YES completion : nil or self.navigationController pushViewController : CKDemoViewController alloc init animated : YES Comment : It s also possible to web service through get date but before view call web service after calendar view controller page call or web service calendar view controller call get response data then you are reload current view controller means call self viewDidLoad or self viewWillAppear : Yes or set response data method below Calendar event call .", "Question : null .. . Answer : I m fairly new to swift Xcode and I m using a basic tabbed application template in XCode and I am trying to implement the MBCalendarKit to show a calendar on the first tab view . I am using Cocoapods for the MBCalendar kit . The Basic tabbed application starts with the following files : .. . .. . files http : i.stack.imgur.com R0Yuz.png .. . .. . The author of MBCalendarKit explains that : .. . .. . You can show an instance of CKCalendarView . Use this if you want to manually manage your view-hierarchy or have a finer control over your calendar view . : .. . .. . And I also followed some of the example code that was provided although most of it was in objective-c . Currently when running the program On the first tab view I m just getting a black screen . How can I fix this to present the calendar itself I have also looked at the other CalendarKit posts on stackoverflow but none seem to tackle something as specific as this . My FirstViewController.swift Which is basically identical to that provided by the author : .. . .. . and the AppDelegate.swift : .. . .. . Also when creating the FirstViewController in the AppDelegate file I was a little unsure of the nibName and bundle arguments . If someone could please explain this as I tried to look it up on Apples reference documentation but it still wasn t clear and for all I know the fact that I passe nil for both could be my issue If anyone has experience with CalendarKit or can help me out that would be great .. . .. . Cheers Comment : It looks like you re missing step 3 . I don t see where you add the calendar view to the view-hierarchy .", "Question : im looking for a up to-date calendar UIKit for IOS . I need one that supports Weeks . Here is a list of those i have tried : .. . .. . Kal Calender : Does not support weeks .. . .. . Tapku : Does not support weeks .. . .. . https : www.cocoacontrols.com controls mbcalendarkit is perfect but lacks proper documentation regarding implementation . If you know any that is up to-date and does support Weeks with somewhat OK documentation please provide me with a link . Comment : Oh yeah I forgot that we re here to Google things for you . Comment : Yeah couse i havnt googled for the last 5hours Comment : I ve updated the documentation since this question was answered . .. . Answer : ABCalendarPicker http : github.com k06a ABCalendarPicker is a good choice that supports week view . Comment : Why the down vote Comment : Simple writing a less than one line mostly link answer that positively reinforces this off topic question . Comment : Thanks i upvoted you :", "Question : null .. . Answer : I am developing a date-based application . I have implemented a calendar in my Swift project . It works on ios 8 perfectly but in ios 7 is not working . I have just integrated MBCalendarKit to my Swift project . There should be a calendar view in the ViewController . You can find my project from this link Calendar Integration Project https : github.com kalpeshjethva18 s2 Here is my basic code . I think there should be child-parent navigation problem . Please help me to solve this problem . .. . .. . Comment : What exactly isnt working on ios 7 Comment : in ios 7 i am not able to present calendar but in ios 8 it present very well . and even i did not get any kind of warnig or error . Comment : Have you checked the PodFile you are using does it say this-- platform : ios 8.0 And also Considering that MB Calendar has so many issues opened why are you using it in the first place . Why not use an use the top updated ones -- cocoapods.org q calenda https : cocoapods.org q calenda", "Question : Can anyone suggest me a good calendar for iOS that has a day view week view and a month view . Something similar to MBCalendarKit which I downloaded from .. . .. . https : www.cocoacontrols.com search utf8 q calendar https : www.cocoacontrols.com search utf8 q calendar .. . .. . When I integrate this calendar in my application using storyboard I am not able to see the bottom buttons as seen in the image below . Can anyone suggest me how to remove this bug or can you guys suggest me a good alternative for this I tried almost all the calendars available like tapku Kal etc . Screen shot http : i60.tinypic.com ejufsl.png .. . Answer : Checkout i created day view using Tapku library DayView https : github.com safecase123 Calender .. . .. . For WeekView and MonthView use Tapku library https : github.com devinross tapkulibrary .. . .. . I have customized to some extent just like iCalender Comment : Week view I don t see one in Tapku library .", "Question : I am using MBCalendarKit and have it working but I m trying to use the info dictionary for each event I ve created to display the details on a detail page after selecting an event in the calendar view . My events are all created from a plist file : .. . .. . enter image description here http : i.stack.imgur.com 26B4M.png .. . .. . Here is where I create the events : .. . .. . And here is the code for what happens when selecting an event : .. . .. . My problem is that the details shown on the detail view is always the detail info of the last event in the plist file so no matter which event is selected the details always say San Antonio TX . I have changed detail.details information to be detail.details event.info objectForKey : @ Info However that causes - NSCFString objectForKey : : unrecognized-selector sent to instance 0xbcc2000 .. . Answer : I got it working by changing a bit of the - void calendarView : CKCalendarView CalendarView didSelectEvent : CKCalendarEvent event method . Here is the working code for selecting an event :", "Question : I m the author of a calendar library for iOS https : github.com mosheBerman mbcalendarkit and I m thinking about how I can improve it because it s become obvious that people aren t understanding it . Right now I have a datasource protocol that consists of just one method and it returns the events to show on a given date : .. . .. . But I ve found that in the two years of the library being available most of the feedback I ve gotten has been how do I make events appear on the calendar I always thought it was pretty intuitive : .. . .. . 1 . Create some events . The framework has an event object to work with . 2 . Keep your events sorted by date in some data source like a dictionary or Core Data . 3 . Return the appropriate event objects in the datasource . What else can I do to make it clearer to other developers how I intended this to work Comment : May be adding FAQ to your documentation with this kind of questions would help Comment : The documentation is pretty thorough as it is but I m open to improving it . Comment : I think your documentation is pretty clear . Anyone familiar with say UITableViewDatasource would get the idea straight-away . Perhaps because your library also defines the Event class users are expecting the calendar view itself to provide the data model and they then add events by calling a method such as addEvent . Perhaps you could create a data source class that could be used as is to implement a data model if the user didn t want to make their own Comment : Provide a snippet instead of formal selector description under Showing events sections of your docs . Today s programmers hate reading docs they love snippets and can build a solid product provided that there is enough snippets . Comment : FYI this is the sort of question for which codereview.stackexchange.com http : codereview.stackexchange.com is well suited . .. . Answer : I would go for a CKCalendarEvent protocol : .. . .. . so users can provide events in an array directly using a events property :", "Question : I m the author of a calendar library for iOS https : github.com mosheBerman mbcalendarkit and I m thinking about how I can improve it because it s become obvious that people aren t understanding it . Right now I have a datasource protocol that consists of just one method and it returns the events to show on a given date : .. . .. . But I ve found that in the two years of the library being available most of the feedback I ve gotten has been how do I make events appear on the calendar I always thought it was pretty intuitive : .. . .. . 1 . Create some events . The framework has an event object to work with . 2 . Keep your events sorted by date in some data source like a dictionary or Core Data . 3 . Return the appropriate event objects in the datasource . What else can I do to make it clearer to other developers how I intended this to work Comment : May be adding FAQ to your documentation with this kind of questions would help Comment : The documentation is pretty thorough as it is but I m open to improving it . Comment : I think your documentation is pretty clear . Anyone familiar with say UITableViewDatasource would get the idea straight-away . Perhaps because your library also defines the Event class users are expecting the calendar view itself to provide the data model and they then add events by calling a method such as addEvent . Perhaps you could create a data source class that could be used as is to implement a data model if the user didn t want to make their own Comment : Provide a snippet instead of formal selector description under Showing events sections of your docs . Today s programmers hate reading docs they love snippets and can build a solid product provided that there is enough snippets . Comment : FYI this is the sort of question for which codereview.stackexchange.com http : codereview.stackexchange.com is well suited . .. . Answer : Perhaps it would be good idea to change the construction logic of your CKCalendarView .. . .. . Example : .. . .. . or", "Question : null .. . Answer : I used a MBCalendarKit I got a events title but image don t show . I want to image show bellow this attached image Image attached is android phone Thank you .. . .. . I want to like this http : i.stack.imgur.com GjLE3.png .. . .. . Load events in MBCalendar" ] }
[ "yes-answer-long", "yes-answer-short" ]
ios
UNK_RELATION
accountmanager@android@76
accountmanager -- accountmanager keeps track of cloud login information on @placeholder devices .
{ "confidence": [ 41.62355041503906, 40.24679183959961, 39.95846939086914, 39.95846939086914, 39.86012649536133, 37.722259521484375, 37.722259521484375, 37.722259521484375, 37.4908561706543, 37.392513275146484, 36.31343078613281, 36.31343078613281, 36.311336517333984, 36.23878860473633, 36.23878860473633, 36.23878860473633, 36.23878860473633, 35.25464630126953, 35.25464630126953, 35.25464630126953, 34.829959869384766, 34.693180084228516, 34.693180084228516, 34.693180084228516, 34.07512283325195, 34.07512283325195, 34.07512283325195, 33.84581756591797, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 33.20970916748047, 32.4140510559082, 32.22556686401367, 32.22556686401367, 32.22556686401367, 32.22556686401367, 32.22556686401367, 32.22556686401367, 32.22556686401367, 31.834735870361328, 31.607437133789062, 31.238033294677734, 31.04604721069336, 31.04604721069336, 31.04604721069336, 31.04604721069336, 31.04604721069336, 31.04604721069336, 31.04604721069336, 30.868759155273438, 30.623294830322266, 30.623294830322266, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.61302947998047, 30.35126495361328, 30.13318634033203, 29.443775177001953, 29.443775177001953, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422, 29.129558563232422 ], "content": [ "I m experimenting with Android AccountManager .", "There s a pretty good user-experience for newer Android devices using the AccountManager described .", "I m using accountmanager in my application .", "AccountManager SyncAdapter and ContentProvider go together .", "I ve seen AccountManager in the Android SDK and that it is used for storing account information .", "This is annoying because I need it for the AccountManager function setAuthToken .", "Is there a trick to using AccountManager without adding a SyncAdapter", "The AccountManager class is integrated with your phone accounts .", "Storage : AccountManager is not encrypting your data .", "So how to balance Account information from the AccountManager and OAuth", "@Udinic would you answer this question : stackoverflow.com questions 36353277 http : stackoverflow.com questions 36353277 accountmanager-addaccount-vs-accountmanager-addaccountexplicitly 36387661 36387661", "With AccountManager SyncAdapter ContentProvider : .. . .. . AccountManager gives users a central point Settings Accounts to define their credentials .. . Android decides when synchronization can be done via SyncAdapter .", "AccountManager can give me authtoken .", "AccountManager has an in-memory cache that is backed by a sqlite database .", "In short the answer is : ContentProvider AccountManager and SyncAdapter go together .", "As stated above ContentProvider AccountManager and SyncAdapter go together .", "Request auth tokens you should be using AccountManager .", "I want to keep these credentials in AccountManager of Android .", "AccountManager vs AIDL vs ContentProvider is not a valid comparison", "What should I use Android AccountManager for", "Saving one token with the AccountManager and implementing some own storage logic for the other token would kind of render the whole use of AccountManager useless .", "Why exactly would you want the AccountManager to return a null password", "Furthermore the accountManager has a cache of the authentication tickets for your accounts .", "@Phil : I ve never used AccountManager so I can t tell you .", "The AccountManager just provides APIs to manage accounts .", "Note that the AccountManager is not secured by any encryption method by default .", "the contact data is separate from the accountmanager and sync-adapter .", "Use account manager to invalidate the token : .. . .. . public void invalidateUserToken Context context String token .. . .. . AccountManager accountManager AccountManager.get context .. . accountManager.invalidateAuthToken com.google token .. .", "Android s AccountManager doesn t have a method called invalidateAuthToken that takes no parameters .", "The only difference that I call AccountManager first that should check if there is a logged-in user .", "I m working on an Android app that uses the AccountManager to store accounts credentials .", "Is there any way to get oauthToken and oauthTokenSecret without browser via AccountManager", "Thanks for a comment I ll try and test token from AccountManager this weekend .", "getting access to google IMAP via AccountManager works fine .", "Not a duplicate but related question Should I use android AccountManager", "What I can t figure out is the Account AccountManager side of things .", "Also if the AccountManager is dumb you don t need to ask the user to set anything .", "Maybe what you missed is that you can register an Account in AccountManager programmatically .", "The AccountManager does not call the getAuthToken method I define in my AccountAuthenticator .", "Another option is to register for the android.accounts.LOGIN ACCOUNTS CHANGED broadcast that the AccountManager sends out .", "AccountManager http : developer.android.com reference android accounts AccountManager.html - it manages account on device .", "Initially create an account and check the sync support for the same using AccountManager .", "I ve read thing about the AccountManager class and tried to implement it .", "The AccountManager is just a facade there needs to be an actual Google account implementation .", "The Pro status a simple string pro status is saved inside the AccountManager package android.accounts .", "Could AccountManager be the reason why the app loses the idea of a Pro status", "I ve followed the syncadapter example to create an AccountManager and a sync adapter .", "If so do I use AccountManager to have them sign in and save account information settings", "This service will establish connection if Account is present in AccountManager and give callbacks to service .", "Issue I am facing is when Username and Password is not already present in AccountManager .", "AccountManager vs AIDL vs ContentProvider are use to share data with other app .", "I prefer AccountManager http : developer.android.com intl in reference android accounts AccountManager.html .", "Can I call the AccountManager from native-code directly maybe", "From what I can tell I do this by using an AccountManager .", "I m writing an Android application which uses AccountManager to get the token .", "I m trying to use AccountManager to store account information and have implemented an authenticator but I keep getting exceptions like the below that crash the phone .", "Maybe it has to be done through the AccountManager instead my AccountManager gets notified when the account gets removed and from there I can trigger the data deletion without the SyncAdapter .", "The app should save the login data and therefore i wanted to use AccountManager : .. . .. . HttpAuth.java : .. . .. . HttpAuth Manifest : .. . .. . Everytime when executing the step .. . .. . my app is stopping", "I have an app which uses AccountManager to store users accounts .", "I have an app that registers users using AccountManager and custom AccountAuthenticator .", "The AccountManager doesn t start another account setup when you remove an account .", "I used writely and the AccountManager dialog that showed up had Google Docs on it .", "As far as I know this is the ONLY way to verify if a token generated by AccountManager is valid .", "Because you need root rights to access the SQLite DB of AccountManager .", "I managed to get an Auth Token from AccountManager using authtokentype reader .", "I am implementing a login-system for an Android application utilizing the built-in accounts system with the AccountManager APIs .", "See details in my answer here : User authentication at your service by using AccountManager token http : stackoverflow.com questions 3352592 webservice-credentials-openid-android-accountmanager 6680837 6680837", "Here s an Android training class on AccountManager that might help : .. . .. . http : developer.android.com training id-auth authenticate.html .. . .. . Also using AccountManager with Google Reader is currently the only preferred way of doing this .", "Now I need to get google account from AccountManager and I am doing it this way : .. . .. . The problem is that it return an empty array .", "The Account object you get from AccountManager has a name field which is the user s email-address .", "do NOT use this in an endlessly running service or the Context used to retrieve the AccountManager will never be garbage collected .. . .. . 2 .", "I ve implemented my AccountManager authenticator and the service and the whole deal and it all seems to be working fine .", "I already used AccountManager and I don t know any other way to limit the accounts to a single one .", "Does anyone know of any helpful discussions of what the intention behind AccountManager is and what it buys you", "Note I m targetting 2.1 and above so I can use AccountManager if it is a sensible choice", "You cannot use an AccountManager without a SyncAdapter http : code.google.com p android issues detail id 5009 .", "You cannot use a SyncAdapter without an AccountManager http : stackoverflow.com questions 5146272 sync-adapter-without-account .", "You can t mix authentication as you do here : .. . .. . Apache config by AuthType Basic .. . AccountManager LoginModule enabled by acct mgr.web ui .", "From the information extracted from the webview I tried to create a com.google account using the AccountManager but I always have the error Caller UID is different.. . .", "I could duplicate user information in a redundant table and compare it with registered accounts and then removing user data from the database if user information in the table and Account array from AccountManager does not match .", "http : stackoverflow.com questions 2720315 why-should-i-use-android-accountmanager .. . .. . It should also be pointed out as mentioned in the above post and also in AccountManager without a SyncAdapter", "http : stackoverflow.com questions 3085242 accountmanager-without-a-syncadapter that you can t have an AccountManager without a SyncAdapter so its probably not good to use this for your particular situation .", "As stated in the question title the AccountManager will start the LoginActivity from a call to getAuthToken but then it doesn t enter the callback .", "The Android AccountManager stores only one auth token how could I save the second one", "I thought of combining the two tokens to one String seperated by some special char then saving that String to the AccountManager .", "It s the responsibility of applications to invalidate auth tokens when they stop working so the AccountManager knows it needs to regenerate them .", "I know that we use AccountManager https : developer.android.com reference android accounts AccountManager.html to get accounts in Java .", "Reference to related post Should you use AccountManager for storing Usernames and Passwords for an Android app", "http : stackoverflow.com questions 10890211 should-you-use-accountmanager-for-storing-usernames-and-passwords-for-an-android .. . .. . Is there anyway to achieve this goal", "I try to write my account own AccountAuthenticator for my app using Android s AccountManager class .", "Android provides a cool native way to gain authToken for google account services via AccountManager .", "When there are many reasons why Android client app should get OAuth tokens not those which AccountManager provides .", "If you use the authTokenType provided in the examples the token given by AccountManager should be an OAuth token .", "Some of the methods in it are called by AccountManager http : developer.android.com reference android accounts AccountManager.html but others are not .", "for calling AuthenticatorActivity in method AccountManager getAuthToken you must send intent to the activity by parcelable method for example :", "When you call addOnAccountsUpdatedListener AccountManager is registering a dynamic broadcast receiver which call the listener in its onReceive .", "AccountManager calls this account if it s necessary to identify account Token doesn t exists or expired .. . .. . How all of it works", "I have a SyncAdapter for my app and an AccountManager to add my apps accounts to the Android Account Manager .", "I m using AccountManager to retrieve an account s auth token but the account manager hangs and the result is never returned ." ] }
{ "confidence": [ 57.37556457519531, 47.71936798095703, 46.198970794677734, 46.08534240722656, 45.565006256103516, 45.18208312988281, 45.168846130371094, 45.13731384277344, 44.91013717651367, 44.02661895751953, 43.89157485961914, 43.27870178222656, 43.031002044677734, 42.57084655761719, 42.44063186645508, 42.32487869262695, 42.10649871826172, 41.70848083496094, 41.450538635253906, 40.94457244873047 ], "content": [ "Question : I ve seen AccountManager in the Android SDK and that it is used for storing account information . Thus I cannot find any general discussion of what it is intended for . Does anyone know of any helpful discussions of what the intention behind AccountManager is and what it buys you Any opinions of what type of Accounts this is suitable for Would this be where you d put your user s account information for a general web service Comment : Note I m targetting 2.1 and above so I can use AccountManager if it is a sensible choice Comment : There s a section about this question in this post : udinic.wordpress.com 2013 04 24 http : udinic.wordpress.com 2013 04 24 write-your-own-android-authenticator Comment : @Udinic - Thanks . Lots of help Comment : @Udinic would you answer this question : stackoverflow.com questions 36353277 http : stackoverflow.com questions 36353277 accountmanager-addaccount-vs-accountmanager-addaccountexplicitly 36387661 36387661 .. . Answer : From http : www.c99.org 2010 01 23 writing-an-android-sync-provider-part-1 : .. . .. . The first piece of the puzzle is called an Account Authenticator which defines how the user s account will appear in the Accounts Sync settings . Implementing an Account Authenticator requires 3 pieces : a service that returns a subclass of AbstractAccountAuthenticator from the onBind method an activity to prompt the user to enter their credentials and an xml file describing how your account should look when displayed to the user . You ll also need to add the android.permission.AUTHENTICATE ACCOUNTS permission to your AndroidManifest.xml . Comment : That s a good article but do you think the AccountManager is only for accounts that sync contacts and email or can should we use it for anything that has user IDs and passwords Comment : @Phil : I ve never used AccountManager so I can t tell you . Remember that this comes with 2.0 so if you are willing to run on devices with lower SDK you will have to find another way to handle login . Comment : You can use the account manager for any kind of account syncing any kind of data that you store in any way . Check out github.com maxpower47 PinDroid https : github.com maxpower47 PinDroid for an example of using it to sync bookmarks to a sqlite database .", "Question : I ve seen AccountManager in the Android SDK and that it is used for storing account information . Thus I cannot find any general discussion of what it is intended for . Does anyone know of any helpful discussions of what the intention behind AccountManager is and what it buys you Any opinions of what type of Accounts this is suitable for Would this be where you d put your user s account information for a general web service Comment : Note I m targetting 2.1 and above so I can use AccountManager if it is a sensible choice Comment : There s a section about this question in this post : udinic.wordpress.com 2013 04 24 http : udinic.wordpress.com 2013 04 24 write-your-own-android-authenticator Comment : @Udinic - Thanks . Lots of help Comment : @Udinic would you answer this question : stackoverflow.com questions 36353277 http : stackoverflow.com questions 36353277 accountmanager-addaccount-vs-accountmanager-addaccountexplicitly 36387661 36387661 .. . Answer : The AccountManager class is integrated with your phone accounts . So if you follow all the guides and get it working correctly you ll see your accounts under the menu Settings- accounts and sync . From there you can customize them or even delete them . Furthermore the accountManager has a cache of the authentication tickets for your accounts . This can be used also if you don t plan to synchronize your account as far as I know . If you don t want your accounts to appear under that menu you shouldn t use the AccountManager and store the accounts data elsewhere maybe in the shared preferences http : developer.android.com guide topics data data-storage.html", "Question : null .. . Answer : I am saving my application account on Android using AccountManager and want to save authentication token on device . My app account is added every time when I login and execute addAccountExplicitly but setAuthToken does not work untill I login one more time and setAuthToken again . Below is my code for adding account and setting authToken .. . .. . String accountName authIntent.getStringExtra AccountManager.KEY ACCOUNT NAME String accountType authIntent.getStringExtra AccountManager.KEY ACCOUNT TYPE String accountPass authIntent.getStringExtra Constants.ACCOUNT PASS String accntAuthToken authIntent.getStringExtra AccountManager.KEY AUTHTOKEN .. . .. . Any one have any idea why I have to login two times to get my authToken saved in AccountManager", "Question : I ve seen AccountManager in the Android SDK and that it is used for storing account information . Thus I cannot find any general discussion of what it is intended for . Does anyone know of any helpful discussions of what the intention behind AccountManager is and what it buys you Any opinions of what type of Accounts this is suitable for Would this be where you d put your user s account information for a general web service Comment : Note I m targetting 2.1 and above so I can use AccountManager if it is a sensible choice Comment : There s a section about this question in this post : udinic.wordpress.com 2013 04 24 http : udinic.wordpress.com 2013 04 24 write-your-own-android-authenticator Comment : @Udinic - Thanks . Lots of help Comment : @Udinic would you answer this question : stackoverflow.com questions 36353277 http : stackoverflow.com questions 36353277 accountmanager-addaccount-vs-accountmanager-addaccountexplicitly 36387661 36387661 .. . Answer : This question is a bit old but I think it is still of good interest . AccountManager SyncAdapter and ContentProvider go together . You cannot use an AccountManager without a SyncAdapter http : code.google.com p android issues detail id 5009 . You cannot use a SyncAdapter without an AccountManager http : stackoverflow.com questions 5146272 sync-adapter-without-account . You cannot have a SyncAdapter without a ContentProvider http : stackoverflow.com questions 4649808 syncadapter-without-a-contentprovider . As far as I know you can use the ContentProvider without the others . With AccountManager SyncAdapter ContentProvider : .. . .. . AccountManager gives users a central point Settings Accounts to define their credentials .. . Android decides when synchronization can be done via SyncAdapter . This can be good to optimize battery no sync is done when network is down for instance .. . ContentProvider is a convenient way to share data across applications Note : there are other methods of inter-process communication on Android http : developer.android.com training articles security-tips.html IPC . strike ContentProvider schedules the database access in a background-thread strike The AsyncQueryHanlder http : developer.android.com reference android content AsyncQueryHandler.html helps to query the ContentProvider in a background-thread preventing Application Not Responsive ANR errors while not requiring you to explicitly handle threading . ContentProvider ties into ContentResolver s observer : this means it is easy to notify views when content is changed .. . .. . Bottom line : the framework AccountManager SyncAdapter ContentProvider helps if you want to synchronize data from a web resource . Fake Dumb implementations http : stackoverflow.com questions 5358391 how-do-i-implement-an-account-on-android-without-a-syncadapter are required if you don t really need one of these pieces . Also .. . .. . If you only want to store data you should consider a simpler mechanism for data-storage http : developer.android.com guide topics data data-storage.html .. . If you only want to get only resource you can consider a Service Alarm .. . only available from API 7 this doesn t matter anymore Comment : In the SDK sample the AccountAuthentificatorActivity http : developer.android.com reference android accounts AccountAuthenticatorActivity.html is the only optional piece . Comment : I am not familiar with these classes yet but is it possible for these classes to add an account with function-calls without user interaction Like for example adding a microsoft exchange account google account POP3 IMAP account . Thanks . Comment : @dackyD yes you can add an account programmatically http : stackoverflow.com questions 7664987 add-account-automatically Comment : thanks @rds but based on your explanation it doesn t seem that the sample code is enough . It seems that I need to implement a SyncAdapter and a ContentProvider as well in order to reach my goals . Correct me If I am wrong : Comment : Absolutely correct . It was the meaning of my first paragraph they go together and it is impossible to use one without the others .", "Question : After reading all sorts of Stackoverflow postings and various documentation including some on http : code.google.com p google-api-java-client site I feel utterly confused . So can someone explain to me the best way of achieving the following : .. . .. . 1 . Let user to approve my app . I don t really care if this is done by accessing their registered Google account in accounts settings and approving the app preferred way or by calling Google OAuth authentication page .. . 2 . Obtain the authentication token that can be used to communicate with Google Reader .. . .. . Another point of confusion for me - I was able to approve my app using AccountManager and get auth token from it but it won t work with Google Reader . So how to balance Account information from the AccountManager and OAuth Do I still need to do anything with OAuth after I get approved by user in AccountManager settings Code example would be nice but I look more for some clear explanation on how all these pieces are related to each other Comment : What do you mean by approve your app Do you seek to use their identity in your app OpenID or have your app access your user s data with Google OAuth Comment : Fair question . In this particular case I want to be able to sign user into their Google reader account using their phone s registered Google account . Alternatively if that is not possible I would not mind but prefer not to redirect user initially to Google OAuth app approval page . Comment : The actual retrieval of information from the Google Reader account is done by the remote-server the app only needs to pass the appropriate authentication token .. . Answer : Here s an Android training class on AccountManager that might help : .. . .. . http : developer.android.com training id-auth authenticate.html .. . .. . Also using AccountManager with Google Reader is currently the only preferred way of doing this . Directing your users to a login page with a WebView is not very secure and using a browser isn t supported by Google APIs as far as I know I m also not sure if Reader uses OAuth2 or not . Comment : Useful link thank you", "Question : In the AccountManager tutorial Remembering Your User http : developer.android.com training id-auth identify.html it s recommended : .. . .. . If there s more than one Account in the array you should present a dialog asking the user to select one . What s the best way to do this I have a solution in mind but if there are other good examples from the community it seems like this is the kind of boilerplate code that could be shared and easily re-used by others . .. . Answer : From Android 4.0 API level 14 onwards launching an activity with an intent shown below shows account chooser . For devices older than 4.0 .. . use https : github.com frakbot Android-AccountChooser", "Question : I m trying to use AccountManager to store account information and have implemented an authenticator but I keep getting exceptions like the below that crash the phone . Comparing with sample code this seems to be because I don t have or particularly want a SyncAdapter and associated service . Is there a trick to using AccountManager without adding a SyncAdapter Regards .. . .. . Phil Comment : Briliiant Question .. . Answer : It s a known issue : http : code.google.com p android issues detail id 5009 .. . .. . The NPE occurs because no corresponding sync adapter is found .", "Question : My task is to write IMAP e-mail client for Gmail . So far I know client should authenticate through OAuth there s also a java library for IMAP auth http : code.google.com p google-mail-xoauth-tools source browse trunk java com google-code samples xoauth XoauthAuthenticator.java by Google . But I d like to set user free from any password typing . Android provides a cool native way to gain authToken for google account services via AccountManager . But I wonder how to use authToken and what is it for Is it only for GAE authentication Is there any way to get oauthToken and oauthTokenSecret without browser via AccountManager Comment : Check out this talk from Google IO 2011 http : www.google.com events io 2011 sessions best-practices-for-accessing-google-apis-on-android.html . There s a pretty good user-experience for newer Android devices using the AccountManager described . Comment : Thanks But I ve already looked through this library and found there s no gmail interaction in Google API . Sad but true I have to use IMAP . Or do I miss something Comment : I don t know for certain but I m sure GMail can be accessed via OAuth . I m using Chrome extensions which can do so . Comment : OAuth Certainly . The point was to use Account getAuthToken method and provided authToken for OAuth . But for Gmail it s seems to be impossible . Comment : Thanks for response . The problem remains . If scope-related problem is solved than next problem is to figure out how to use this authToken for servers where OAuth tokens are needed . .. . Answer : Have you tried using oauth2 : https : mail.google.com as the auth token type authTokenType parameter when calling AccountManager.getAutToken According what is said at 46 : 50 in the talk you mentioned http : www.google.com events io 2011 sessions best-practices-for-accessing-google-apis-on-android.html it should work . By the way this page http : googleappsdeveloper.blogspot.com 2011 08 using-google-tasks-api-and-oauth-20-on.html describes how to get an OAuth2 token for Google Tasks and it has a link-to a code sample http : code.google.com p google-api-java-client source browse tasks-android-sample src main java com google-api services samples tasks android TasksSample.java repo samples . It also makes it sounds like it is just a matter of providing the right authTokenType parameter . Comment : It should work and it works But only for ClientLogin library . Right When there are many reasons why Android client app should get OAuth tokens not those which AccountManager provides . And WebView seems to be the only way.. . Thanks for your answer Comment : If you use the authTokenType provided in the examples the token given by AccountManager should be an OAuth token . I must admit that I haven t tried it myself yet but the last code sample http : code.google.com p google-api-java-client source browse tasks-android-sample src main java com google-api services samples tasks android TasksSample.java repo samples seems explicit about this the token returned by the AccountManager is used with a oauth2.draft10.GoogleAccessProtectedResource . Comment : WoW Thanks for a comment I ll try and test token from AccountManager this weekend . Comment : After getting the token how to set the same in imap while fetching messages or while connecting Comment : getting access to google IMAP via AccountManager works fine . see github.com jberkel sms-backup-plus https : github.com jberkel sms-backup-plus for a project which makes use of this .", "Question : So my question restated is when you go to Settings - Accounts Sync and select the an account that was created that your SyncAdapter is syncing with a cloud server and select remove account what happens as far as your SyncAdapter is concerned There is a dialog that displays asking you to confirm and that the data on the phone associated with that account will be removed . I cannot easily believe that the framework can automatically remove the data my SyncAdapter has stored in the local database but it seems to imply that removing the account will and I would agree that is should remove that data . Is there a addition to my SyncAdapter that will serve sort of as the callback for the account removal to handle deleting all the appropriate data from the local database Maybe it has to be done through the AccountManager instead my AccountManager gets notified when the account gets removed and from there I can trigger the data deletion without the SyncAdapter . EDIT : On a related note is the sync manager calling my SyncAdapter for each account that it synchronizes when a new account is added I see a onPerformSync .. . being executed for previously added accounts along with the just added account when I add an account and would like to stop that . .. . Answer : Another option is to register for the android.accounts.LOGIN ACCOUNTS CHANGED broadcast that the AccountManager sends out . Unfortunately this broadcast is sent out whenever any account is changed and the broadcast does not deliver further information what has changed either . So you d have to query the account manager and look how many of your accounts it has left and delete the data of the missing ones . Comment : Well the solution above this by @Dandre Allison is based on this . So this answer should be preferred . When you call addOnAccountsUpdatedListener AccountManager is registering a dynamic broadcast receiver which call the listener in its onReceive . So it s basically the same . Both solutions are notified whenever any account in the device Google account Twitter account etc is changed .", "Question : I have inherited an app which comes as a free version and Pro monthly subscription is bought via in-app items . The Pro status a simple string pro status is saved inside the AccountManager package android.accounts . The app suffers from a strange bug that it forgets the Pro state randomly either when you close the app or during the work . Is this a good way to store Pro status Could AccountManager be the reason why the app loses the idea of a Pro status I usually use either a database or SharedPreferences to store such data besides storing it on the remote API so I need a help from someone who used his app in the same way . .. . Answer : Usually the people playing with the setting pro status will be the one with rooted devices . Anyways the data stored in the account manager is visible to such users . So for such a use-case even account manager is not safe . Though other apps with different UID cannot access this data . Also keep in mind that the user can delete the account from the settings which might be the reason for your settings going away . My advice would be save this info in shared pref in encrypted form", "Question : I m trying to use AccountManager to store account information and have implemented an authenticator but I keep getting exceptions like the below that crash the phone . Comparing with sample code this seems to be because I don t have or particularly want a SyncAdapter and associated service . Is there a trick to using AccountManager without adding a SyncAdapter Regards .. . .. . Phil Comment : Briliiant Question .. . Answer : In the end I needed to add a SyncAdapter and a ContentProvider . Just the barest stub implementations but it seemed to do the job . I also think I found that the problem doesn t occur on 2.2", "Question : I would like to know if one should implement AccountManager to save user credentials such as username email passwords etc . I can t find a good reason to use it myself . I don t want other applications to have access to the Accounts and I don t really want them showing in the Accounts and Sync settings although maybe that s not a big deal . So my question is : should I use it Pros cons Can I hide the Accounts from other apps and stop them from appearing in Accounts and Sync .. . Answer : This accepted answer to this question would probably help you.. . Why Should I use android AccountManager http : stackoverflow.com questions 2720315 why-should-i-use-android-accountmanager .. . .. . It should also be pointed out as mentioned in the above post and also in AccountManager without a SyncAdapter http : stackoverflow.com questions 3085242 accountmanager-without-a-syncadapter that you can t have an AccountManager without a SyncAdapter so its probably not good to use this for your particular situation . I can t see any reason to use an AccountManager specifically for storing this type of information - at the end of the day its no different to manually storing the data yourself in your own database or file . If anything it probably complicates things - why don t you just store it in SharedPreferences The only reason I could think of that would encourage the use of AccountManager would be if you want to share your account across a number of different apps as the data is stored in the central Android datastore which can be accessed by all apps . However if this isn t required I think its probably easier and simpler to just use SharedPreferences Comment : Thanks thats great . I will most likely have a user table in sqlite since i m using sqlite for other stuff since I may allow multiple users to use the app on the same device . Comment : p.s . I have already seen this question first link but it didn t really speak to me . And no accepted answer sort of leaves it open to speculation.. . Comment : So an example of AccountManager is the interaction of let s say Facebook app and their messenger app for authentication Comment : This answer is exactly what you should avoid doing . Storing a password in a file or in a DB instead of in a secure place like an AccountManager is just exposing the password to any other app installed on the device . See stackoverflow.com questions 8174835 http : stackoverflow.com questions 8174835 what-protects-android-accountmanager-passwords-from-being-read-by-other-apps", "Question : Is there a way to get some kind of notification broadcast etc . when a custom account is removed from Accounts sync settings The application I have can facilitate multiple users on a device this is for a corporate use and uses a single SQLite database . Say I create multiple users for my application on a device and populate database with data that is relevant only to those two users . My problem here is that if one of the user is removed from Accounts sync settings I have no way to cleanup database and or some external files on SD card . I could duplicate user information in a redundant table and compare it with registered accounts and then removing user data from the database if user information in the table and Account array from AccountManager does not match . Feels dirty to me . Comment : what about getAccountRemovalAllowed in your Authenticator class that is extending AbstractAccountAuthenticator like selvinlistsyncsample.codeplex.com SourceControl changeset view http : selvinlistsyncsample.codeplex.com SourceControl changeset view 40943209facc sample 2fsrc 2fpl 2fselvin 2fandroid 2fListSyncSample 2fauthenticator 2fAuthenticator.java Comment : That works better than the accepted answer...thanks .. . Answer : You have two options : .. . .. . 1 . You can use the addOnAccountsUpdatedListener http : developer.android.com reference android accounts AccountManager.html addOnAccountsUpdatedListener 28android.accounts.OnAccountsUpdateListener 20android.os.Handler 20boolean 29 method of AccountManager to add a listener in the onCreate method of an Activity or Service -- make sure you remove the listener in your onDestroy method i.e . do NOT use this in an endlessly running service or the Context used to retrieve the AccountManager will never be garbage collected .. . .. . 2 . The AccountsService will broadcast an intent with the action AccountManager.LOGIN ACCOUNTS CHANGED ACTION http : developer.android.com reference android accounts AccountManager.html LOGIN ACCOUNTS CHANGED ACTION every time an account is added removed or changed which you can add a receiver for . Comment : Pity it doesn t supply removed account info but it is possible to work around that . Thanks Comment : Yes it just gives you the list of the current accounts . Comment : Third option which provides the Account : stackoverflow.com questions 11214789 http : stackoverflow.com questions 11214789 does-syncadapter-get-notified-when-accountmanager-removes-account 16651562 16651562", "Question : I m creating an app that will need users to create an account . Like Facebook or Twitter would require you to . BUT since it s an Android app should can I let them sign in with their Google Account using AccountManager or some other service It d be very helpful if they could just sign in to their Google account and their settings and other options would be saved to that account . Main questions summed up : .. . .. . 1 . Is it possible to let a user just use their Google account in my app If so do I use AccountManager to have them sign in and save account information settings What are other options Comment : For a while there was a hack that allowed you to request authentication to a Google App Engine app and by using that app as your backend you could get an authenticated identifier and or email-address . Not sure if that still works I heard it was being phased out . .. . Answer : @Soham gave you some very useful links but he didn t correct one major error : .. . AccountManager is the entity that manages the accounts on your Android device - it has nothing to do with your google account you can use google account and create a NEW account on your device using the AccountManager . The rest you can learn from the links Soham gave you .", "Question : I work with an API that when logging in provides two types of tokens that are both needed . The Android AccountManager stores only one auth token how could I save the second one Saving one token with the AccountManager and implementing some own storage logic for the other token would kind of render the whole use of AccountManager useless . I thought of combining the two tokens to one String seperated by some special char then saving that String to the AccountManager . Any better more elegant ideas on this .. . Answer : I don t quite get your question . If you want to store two kinds of tokens nicely you can just use different suffix of token keys when saving tokens to AccountManager . If you want to provide two tokens at the same time for AccountManager s getAuthToken API there could be several ways to do it . One way is the way you ve described that returns two tokens separated by a special char . Another way is to ask developer to call getAuthToken twice with different token types .", "Question : I m working on an Android app that uses the AccountManager to store accounts credentials . One problem I ve been having is that even though I pass in a bunch of String values to the AccountManager s addAccountExplicitly data bundle . I have checked to make sure that the bundle is not empty and that it contains the values before adding the account . And most of the time this is the case but every once in a while I get null when I query these values . The null return values are more common after I ve just deleted the account and re-added it . I m doing my query inside the onAccountsUpdated method of an OnAccountsUpdateListener implementation so the account should be added and good to go right Thanks for any help .. . .. . AuthenticatorActivity .. . .. . Some other thread Comment : Some code please . Comment : There is way too much code to copy + pase but I ll edit the question with some basic code . There is a lot of concurrency and threading but everything is initiated via the onAccountsUpdatedListener . .. . Answer : I am aware of one bug in Honeycomb plus that can cause your issue . If you try to getUserData of the account before it is registered all subsequent getUserData calls will return null . If you look at the code . AccountManager has an in-memory cache that is backed by a sqlite database . Calling getUserData populates the in-memory cache userdata even if it is not registered . If it is not registered it interprets that as no userdata . Registering an account only populates the database and does not invalidate the in-memory store . This may be causing your issue . The workaround is to remove the account before calling addAccountExplicitly . Ya this issue sucks and is a HUGE bug in AccountManger IMO and allows third parties to essence DOS your app . Comment : Thanks . I ve since re-engineered the code to get around it but if I remember correctly it had been occurring on pre-honeycomb devices as well as ICS devices too Nexus 1 Nexus S HTC Evo Samsung Skyrocket and a few more . Comment : Hi how did you code around this Comment : call removeAccount on your account before calling addAccountExplicitly . Also check that account exists before calling getUserData Comment : Apparently also ICS is affected just tried in emulator .", "Question : I m trying to use AccountManager to store account information and have implemented an authenticator but I keep getting exceptions like the below that crash the phone . Comparing with sample code this seems to be because I don t have or particularly want a SyncAdapter and associated service . Is there a trick to using AccountManager without adding a SyncAdapter Regards .. . .. . Phil Comment : Briliiant Question .. . Answer : http : www.c99.org 2010 01 23 writing-an-android-sync-provider-part-1 .. . .. . Despite the title I don t see any SyncAdapter in the code here the standalone project unlike Google s reference implementation . I think your exception is caused by something else.. . Comment : HI there is a SyncAdapter a named ContactsSyncAdapterService class", "Question : I ve been trying to figure out how to use the Google account manager to simply provide a way for users to Login to my app . I have the AuthToken returning but how can I get some unique info on the account that won t change for example a uniqueID or something so that I can use it to login the user .. . Answer : The Account object you get from AccountManager has a name field which is the user s email-address . This should be unique since they are all managed by Google and require a password to set up . Depending on what permissions you asked for when getting the AuthToken you can query the endpoint https : www.googleapis.com oauth2 v1 userinfo alt json access token YourTokenHere and get back a bunch of information about the account . The response will look something like this : .. . .. . The id field here is also unique and has the bonus of being used across Google services .", "Question : I would like to know if one should implement AccountManager to save user credentials such as username email passwords etc . I can t find a good reason to use it myself . I don t want other applications to have access to the Accounts and I don t really want them showing in the Accounts and Sync settings although maybe that s not a big deal . So my question is : should I use it Pros cons Can I hide the Accounts from other apps and stop them from appearing in Accounts and Sync .. . Answer : Overview .. . .. . Using an AccountManager to store credentials is a much secure way than storing in a file or a SQL DB . A file can be retrieved by any other app unlike via AccountManager Android will enforce that only your app will be able to access to the key . But even the AccountManager is not fully secured in case of lost phone for example see this for more info http : security-n-tech.blogspot.co.uk 2011 01 security-issue-exposed-by-android.html . Good practice s .. . .. . I would recommend to use the AccountManager and not store the password in clear but the hash . And for a better level of security it s even better to store a device dedicated token delivered by the webservice and associated to the account on the webservice side and enable the user to revoke the token . Not good .. . .. . Do not store a clear or even hashed password as a file or in a DB accessible by anyone . Never store a clear password but always work with a hash instead . See also .. . .. . What protects Android AccountManager passwords from being read by other apps http : stackoverflow.com questions 8174835 what-protects-android-accountmanager-passwords-from-being-read-by-other-apps .. . http : developer.android.com training articles security-tips.html Credentials Comment : Why do you think a SQL DB or app properties are more insecure than Android AccountManager AFAIK an app-specific SQLite-DB properties can only be accessed by the app itself or with root-access - so it s the same as for the AccountManager . The only difference is that almost every attacker will look into the AccountManager as its structure is well known . Comment : Because you need root rights to access the SQLite DB of AccountManager . Writing the password in your own DB is a big mistake as any other app can access it without being root .", "Question : I want to obtain a Google Authtoken from the AccountManager that I can send to my Webservice not hosted on App Engine to authenticate the User I just need the email-address and eventually his name if no permission is required for this . What do I have to use for the authTokenType Paramter of the getAuthToken method And which google Api do I have to use to get the Users Email Comment : just found another answer on Stackoverflow that seems suitable : stackoverflow.com a 6680837 http : stackoverflow.com a 6680837 .. . Answer : This is doable using OpenID Connect however it s sort of experimental so details could change in the future . If you get an OAuth token for the https : www.googleapis.com auth userinfo.email or https : www.googleapis.com auth userinfo.profile scope you can use it to get user info from https : www.googleapis.com oauth2 v1 userinfo including email . Of course the user needs to authorize this . You should theoretically be able to get the token from AcccountManager using the oauth2 : https : www.googleapis.com auth userinfo.profile as the token type but that doesn t appear to work on my device Galaxy Nexus with stock 4.0.4 . Since getting a token via the AccountManager doesn t work at least for now the only reliable way is to use a WebView and get one via the browser as described here : https : developers.google.com accounts docs MobileApps .. . .. . There is a demo web app here that does this : https : oauthssodemo.appspot.com .. . .. . late Update : Google Play Services has been released and it is the preferred way to get an OAuth token . It should be available on all devices with Android 2.2 and later . Getting a profile token does work with it in fact they use it in the demo app Comment : Is there an alias I can use for googleapis.com auth userinfo.email https : www.googleapis.com auth userinfo.email or googleapis.com auth userinfo.profile https : www.googleapis.com auth userinfo.profile Otherwise this url will be shown in the permission request which I don t think is very user-friendly Comment : None that I know of . Did you manage to get a token As I said it doesn t seem to work on at least on my device . Comment : Ok thanks for the info very interesting . I need a solution that works cross all devices so this approach does not really make sense for the . The only possible solution I can think of right now is obtaining an app engine token and having an additional app engine backend that will just offer an authentification service . I really dislike this approach though . Comment : Use a WebView and have the user authenticate to Google to get the token . That will work on all devices . Comment : Yes this is so far the official way to get a token the AcountManager oauth2 : thing being temporary experimental . Let s hope they will announce something better at this years I O . I ll add it to my answer ." ] }
[ "yes-answer-long", "yes-answer-short" ]
android
UNK_RELATION
osx-lion@desktop@80
osx-lion -- mac os x lion 10.7 is the eighth major release of mac os x apple s @placeholder and server operating-system for macintosh computers .
{ "confidence": [ 73.89163208007812, 72.3059310913086, 69.63101196289062, 66.79045867919922, 66.79045867919922, 65.20476531982422, 64.59712982177734, 64.59712982177734, 63.344669342041016, 61.47837448120117, 61.09959411621094, 60.63029098510742, 60.297584533691406, 59.65093231201172, 58.974544525146484, 58.54826354980469, 58.54826354980469, 58.48243713378906, 57.87516784667969, 57.78631591796875, 57.41474914550781, 57.22522735595703, 57.22522735595703, 55.791290283203125, 55.639530181884766, 55.639530181884766, 55.639530181884766, 55.528751373291016, 55.35508728027344, 55.18312454223633, 54.11555480957031, 53.77943420410156, 53.682281494140625, 53.59117889404297, 53.578636169433594, 53.360687255859375, 53.13125991821289, 52.69413757324219, 52.25701904296875, 51.99293899536133, 51.64185333251953, 51.53105926513672, 51.371097564697266, 51.0224609375, 50.671321868896484, 50.56066131591797, 50.56066131591797, 50.352760314941406, 50.089942932128906, 49.82358932495117, 49.785400390625, 49.785400390625, 49.785400390625, 49.74024963378906, 49.74024963378906, 49.66593933105469, 49.57416915893555, 48.76706314086914, 48.766902923583984, 48.766902923583984, 48.21110916137695, 47.99639892578125, 47.76702117919922, 47.63341522216797, 47.629032135009766, 47.18120574951172, 47.18120574951172, 47.18120574951172, 46.49031066894531, 46.45014953613281, 46.444236755371094, 46.38483810424805, 46.331424713134766, 46.31037902832031, 46.31037902832031, 46.31037902832031, 46.31037902832031, 46.31037902832031, 46.137298583984375, 46.137298583984375, 46.0433349609375, 46.0433349609375, 46.0433349609375, 46.0433349609375, 46.0433349609375, 46.0433349609375, 46.0433349609375, 45.383785247802734, 45.369876861572266, 45.321109771728516, 45.12710952758789, 45.12710952758789, 44.9672737121582, 44.81425857543945, 44.81425857543945, 44.81425857543945 ], "content": [ "I m using Mac OS X Lion .", "I am running Mac OS X lion .", "I m using OS X 10.7 lion .", "It is likely to work for Mac OS X Mountain Lion as well .", "I am trying to compile GCC 4.5.1 in Mac OS X Lion .", "Note that this only works starting with Mac OS X Lion .", "To develop for Mac OS X 10.7 Lion or earlier you would need to code your application in Objective-C .", "I need some smalltalk with GUI for my homework and I m running Mac OS X Lion 10.7 .", "Is there any tool to profile cache misses on Mac OS X Lion and iOS .", "I found this on Apple s Java release notes : .. . .. . Mac OS X 10.7 Lion Fullscreen Support .. . .. . Java applications on Lion can now opt into the Fullscreen window feature per-window .", "What is the easiest way to activate PHP and MySQL on Mac OS 10.6 Snow Leopard 10.7 Lion 10.8 Mountain Lion", "I am working with a Mac OSX Lion server .", "OS X Lion is really just forcing the issue .", "Mac OSX Lion includes Postgresql in the system now .", "I m looking for a programm to do it on os x lion .", "The stock python install that came with Mac OS X Lion is referenced at usr bin python .", "My specs : .. . .. . MAC OS X Lion 10.7.2 .. . iTerm2 1.0.0.20111020 .. . vim @7.3.107 0+python26 though MacPorts", "This help me a lot : .. . .. . http : maestric.com doc mac apache php mysql snow leopard .. . .. . It also works for Mac OS X Lion : D .. . .. . . : EDIT : .", "I use Mac OS Lion on a 6 year old MacBook .", "I get Illegal Instruction : 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 Mountain Lion when those binaries are run under Mac OS X 10.7.x Lion and earlier versions .", "Is this a fault of Mac OS 10.7", "I want to use memcached gem http : fauna.github.com fauna memcached on Mac OS X Lion 10.7.2 .", "I had some problems installing eAccelerator on XAMPP installation of Mac OS X Lion .", "i went to the mysql website for downloading mysql community-server for my mac os x lion but all of those there are for el capitan mavericks and yosmite .", "The problem was with the ld : library not found for -lgcc ext.10.5 The gcc version given by Xcode 4.6.3 on Mac OS X Lion is 4.6 .", "link http : stackoverflow.com questions 9840207 how-to-use-avx-pclmulqdq-on-mac-os-x-lion", "I m trying to get Mercurial to serve using hgwebdir.cgi under Apache on Mac OS X Lion .", "Clean install of OS X Lion .. . 2 .", "I wrote a simple guide on installing Ruby Rails on Mac OS X Lion on my blog take a look at sittisal.com 2012 03 01 http : sittisal.com 2012 03 01 the-easiest-and-best-way-to-install-ruby-and-rails-on-mac-os-x-lion", "This is a known problem introduced by Apple in OS X 10.5 Leopard https : github.com dotphiles dotzsh mac-os-x .", "When running a Java Swing application with java-8 on my mac with Mac OS X Lion 10.7 it often displays only random pixel blocks from other parts of the screen .", "Shark CHUD package do not install on Mac OS X Lion and later so I can t use shark .", "The library is a fat dylib binary combining both i386 and x86-64 but not PPC arch on OS X Lion 10.7 .", "Is OSX Lion or older OSX release of Preview scriptable", "I am writing an application targeting OS X Lion and Snow Leopard .", "You can use the built-in OpenCL platform that Apple ships with OS X Snow Leopard and Lion .", "Lion and Mountain Lion Only .. . .. . OS X windowed applications receive environment-variables from the your environment.plist file .", "This is kinda thrown out the window with Mac OS X Lion which as a default hides the scroll bars unless you re actively scrolling .", "Under Mac OS X select Resources .. . 4 .", "Same problem and solution as @AlexGhiculescu but in OS X 10.8 Mountain Lion .", "i m getting problem with java at mac osx-lion but not all osx-lion have problem. . my application include with java jre 1.8 to run the application .", "Here is my code Pascal which worked perfectly before Mac OS X 10.7 : .. . .. . since OSX 10.7 AEGetParamDesc returns -1704 I can t know why .. . Any answer", "My goal is to change every Mac OS X Lion background on each Mission Control spaces and on each screen using the py-appscript .", "After upgrading my MacBook Pro to Mac OS X Lion I am not able anymore to get my Zend Server running like before .", "The GNU assembler GAS is not supported in Mac OS X .", "I am using Xcode 4.3.1 installed on Mac OSX Lion 10.7.3 .", "I am seeing a strange issue with pkg-config on Mac OSX-Lion .", "I tried to update my git version on Mac OS X 10.7 but it doesn t change the version .", "So far brew was the only way to get Ruby 1.9 installed on Mac OS Lion .", "I have a mac with Lion 10.7.5 on it .", "I am already completely desperate - I spent whole day with trying to install rmagick gem to Mac OS X Lion but literally it s a tragedy .", "My environment : Mac OS X v10.7.2 with Xcode 4.2.1 .. . .. . I am trying to build ruby-1.9.3 on Lion with Xcode 4.2.1 .", "How do you create an AddIn for Excel if I am using Excel Office 2011 on my MAC Machine OS X Lion .", "WebKit Blink s Safari Chrome default behaviour on on Mac OS X since 10.7 Lion is to hide scroll bars from trackpad users when they re not in use .", "I m trying to get the code-coverage for my unit tests Xcode 4.2.1 4D502 on Mac OS X Lion 10.7 11A2061 but somehow the .gcda files don t get created .", "BTW a clean install of OS 10.7.x Lion doesn t have an environment.plist that I can find so it may work but may also be deprecated .", "I am using Mac OS X Lion have two installed ruby versions 1.8.7 come with lion 1.9.3 which I am using for the application has been installed using rvm .", "I am trying to log in to the Manager App in Tomcat 7.0.22 for Mac OS X 10.7 .", "I have Xcode 4.3 installed on Mac OS Lion but I can t find a way to uninstall it .", "I am getting this Error on Mac OS lion Python 2.7 .. . .. . .. . .. . .. . .. . My Code", "homebrew Installer .. . .. . Assuming you installed PostgreSQL with homebrew as referenced in check status of postgresql server Mac OS X http : stackoverflow.com questions 7975414 check-status-of-postgresql-server-mac-os-x and how to start postgresql server on mac os x http : stackoverflow.com questions 7975556 how-to-start-postgresql-server-on-mac-os-x : you can use the brew uninstall postgresql command .", "I am setting up os X 10.7 .", "The binaries work properly under Mac OS X 10.8.x .", "Worked with OS X Lion 10.7.3 and Xcode 4.3 Command Line Tools installed .", "This API does nothing on Mac OS X 10.6 Snow Leopard .", "While a build in Lion reported a number of warnings to do with the Mac OS version the resulting app did work as expected .", "stackoverflow.com questions 8548809 http : stackoverflow.com questions 8548809 pg-gem-install-on-mac-os-lion-with-rvm", "Is there some way to use smalltalk under Mac OS Lion or should I for example run Ubuntu on virtual-machine", "Apple does not ship GNU readline with OS X .", "I am running FreeSWITCH on Mac OSX Lion after great pains getting it to compile .", "Here s a bit more information specifically regarding the PATH variable in Lion OS 10.7.x : .. . .. . If you need to set the PATH globally the PATH is built by the system in the following order : .. . .. . 1 .", "My Operating System is Mac OS Lion .. . .. . When i start R in eclipse after successfully installing statet and in R and bash the packages rjava rj and rj-gd i still get the error message in the picture .", "With the new OSX 10.7 Lion some of the plugins have updated views .", "Can anyone provide me some detailed guide how to compile OpenCV 2.3.1 on OS X Lion with Xcode", "Simplified Explanation .. . .. . This post question is kind of old so I will answer a simplified version for OS X Lion users .", "Java Sound Synthesiser works well for all OS X - Versions except Lion .", "In OS X Lion but also 10.5 the stack size hard limit is 65532 kbytes just under 64 MiB .", "I m running OS X Lion and I m trying to simulate low bandwidth connection like 3G EDGE etc .", "Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go", "i don t know but from a search i found ludovicrousseau.blogspot.com 2011 08 http : ludovicrousseau.blogspot.com 2011 08 mac-os-x-lion-and-openssl.html which says that they deprecated it in preference to their own Common Crypto", "I ve just begun my migration to Mac OS X .", "Note that it s also a problem in Firefox on Mac OS X .", "@JohanLundberg The Subversion and SSL modules are already in Apache on Mac OS X .", "Is anyone successfully installed xmlsec on Mac OS X 10.7.3", "I had many warnings of unsupported mac os x version .", "When i try to install it on Mac OS X 10.7.4 .", "I am using Java 1.7 on Mac OS X 10.7.5 .", "Is there a standard control for developers to get the search field behavior like in Mail Mac OS X 10.7 to make advanced searches with tokens", "Worked for me on OSX Lion .", "Can any one help me how to perform right-click through Keyboard in Mac Lion OS", "Here is the tutorial : .. . .. . http : www.guidefreitas.com installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support", ".. . .. . I ve a severe problem with XCode 4.1 Build 4B110 under Mac OSX Lion and running Instruments via XCode .", "I have MacOS X lion and the man pages are there .", "I have Xcode 4.6 and Xcode 5.1.1 installed on my mac with OS X Mountain Lion 10.8.5 .. . .. . Now I want to install Xcode 6 and keep Xcode 4.6 and Xcode 5.1.1 installed .", "This did the trick : interworks.com blogs ckaukis 2013 03 05 http : www.interworks.com blogs ckaukis 2013 03 05 installing-ruby-200-rvm-and-homebrew-mac-os-x-108-mountain-lion", "This helped but the final fix came from here : glenscott.co.uk blog 2011 08 29 http : www.glenscott.co.uk blog 2011 08 29 install-mcrypt-php-extension-on-mac-os-x-lion" ] }
{ "confidence": [ 85.67888641357422, 78.80323791503906, 78.645751953125, 78.08812713623047, 77.36436462402344, 75.0224380493164, 74.9595718383789, 74.72506713867188, 74.57856750488281, 74.12177276611328, 73.7918472290039, 73.72579956054688, 72.74146270751953, 72.5845718383789, 71.93390655517578, 71.19534301757812, 71.15953063964844, 70.29618835449219, 70.29618835449219, 70.12178802490234 ], "content": [ "Question : Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go Comment : Did you install Xcode 4.1 Comment : Mysterious to me that this question is considered off-topic . Comment : the same problem and the same solution for mountain lion Comment : OMG how can they distribute a unix system without make sheesh Comment : Instead of downloading 1.6GB Xcode you can download 113MB Command Line Tools from Apple - answer below by @Nick White stackoverflow.com questions 6767481 http : stackoverflow.com questions 6767481 where-can-i-find-make-program-for-mac-os-x-lion answer-10565501 .. . Answer : there are specific builds of command-line tools for different major OSX versions available from the Downloads for Apple Developers https : developer.apple.com downloads index.action name command 20line 20tools site . Be sure to get the latest release of the version for your OS .", "Question : I get Illegal Instruction : 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 Mountain Lion when those binaries are run under Mac OS X 10.7.x Lion and earlier versions . The binaries work properly under Mac OS X 10.8.x . I added -mmacosx-version-min 10.5 to my compile flags and this seems to help resolve the issue for 10.5.x 10.6.x and 10.7.x clients whatever that issue is . Which gets to my question s : .. . .. . What is the Illegal Instruction : 4 error Why does -mmacosx-version-min 10.x fix this specific error on 10.x and greater clients I d like to apply this fix to my makefiles but would like to know what it is doing before I pull the trigger . Will I have larger binaries Do I still have 64-bit binaries Are there gotchas with this approach I should know about Unintended side-effects Etc . Comment : Snow Leopard is Mac OSX 10.6 please clarify correct Comment : Corrected thanks . Comment : A missing return-value may cause an Illegal Instruction : 4 . I ran into this yesterday . Paying attention to my compiler-warnings brought me on the right track . .. . Answer : From the Apple Developer Forum https : devforums.apple.com message 773142 account required : .. . .. . The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions . -mmacosx-version-min tells the tools what OS versions you need to work with so the tools can disable optimizations that won t run on those OS versions . If you need to run on older OS versions then you must use this flag . .. . The downside to -mmacosx-version-min is that the app s performance may be worse on newer OS versions then it could have been if it did not need to be backwards-compatible . In most cases the differences are small .", "Question : What is the easiest way to activate PHP and MySQL on Mac OS 10.6 Snow Leopard 10.7 Lion 10.8 Mountain Lion I d prefer to use any bundled versions before resorting to downloading from the PHP or MySQL websites . That also rules out MAMP and similar . I m comfortable at the command-line in Terminal . .. . Answer : If you ve upgraded to Mac OS X 10.8 Mountain Lion and previously had a working system all you should need to do is re-enable PHP as in Step 1 of the above chosen answer . You may also find the following Preference Pane useful for managing web sharing Apache web server which replaces system functionality removed in OS X 10.8 : http : clickontyler.com blog 2012 02 web-sharing-mountain-lion .. . .. . I also had to re-add my virtual-hosts include line to the httpd.conf", "Question : How can I natively implement the fullscreen feature of OSX Lion in a Java application The current answers given incorporate a good method for achieving a sort-of-fullscreen feature . I ve read that Eclipse may be able to use the native fullscreen feature of Lion . That s what I m asking about . .. . Answer : I found this on Apple s Java release notes : .. . .. . Mac OS X 10.7 Lion Fullscreen Support .. . .. . Java applications on Lion can now opt into the Fullscreen window feature per-window . Developers can use the com.apple.eawt.FullScreenUtilities class to mark windows as able to be full screened and the com.apple.eawt.Application.requestToggleFullScreen Window method to programmatically request the window enter and exit full screen mode . This API does nothing on Mac OS X 10.6 Snow Leopard . More explicitly try calling this early on from the constructor of your JFrame s.. . Comment : Is there a way to check if the application is currently in fullscreen mode or not Otherwise toggling fullscreen is utterly useless . Comment : @mostruash : Yes you can attach a listener to a window to see if it has entered or exited full screen mode . See the static-methods in com.apple.eawt.FullScreenUtilities http : cr.openjdk.java.net michaelm 7113349 jdk8 webrev.2 jdk src macosx classes com apple eawt FullScreenUtilities.java.html and the definition of com.apple.eawt.FullScreenListener http : cr.openjdk.java.net michaelm 7113349 jdk8 webrev.2 jdk src macosx classes com apple eawt FullScreenListener.java.html .", "Question : I get Illegal Instruction : 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 Mountain Lion when those binaries are run under Mac OS X 10.7.x Lion and earlier versions . The binaries work properly under Mac OS X 10.8.x . I added -mmacosx-version-min 10.5 to my compile flags and this seems to help resolve the issue for 10.5.x 10.6.x and 10.7.x clients whatever that issue is . Which gets to my question s : .. . .. . What is the Illegal Instruction : 4 error Why does -mmacosx-version-min 10.x fix this specific error on 10.x and greater clients I d like to apply this fix to my makefiles but would like to know what it is doing before I pull the trigger . Will I have larger binaries Do I still have 64-bit binaries Are there gotchas with this approach I should know about Unintended side-effects Etc . Comment : Snow Leopard is Mac OSX 10.6 please clarify correct Comment : Corrected thanks . Comment : A missing return-value may cause an Illegal Instruction : 4 . I ran into this yesterday . Paying attention to my compiler-warnings brought me on the right track . .. . Answer : I m consciously writing this answer to an old question with this http : meta.stackexchange.com questions 23996 does-it-make-sense-to-answer-old-questions in mind because the other answers didn t help me . I got the Illegal Instruction : 4 while running the binary on the same system I had compiled it on so -mmacosx-version-min didn t help . I was using gcc in Code Blocks 16 on Mac OS X 10.11 . However turning off all of Code Blocks compiler-flags for optimization worked . So look at all the flags Code Blocks set right-click on the Project - Build Properties and turn off all the flags you are sure you don t need especially -s and the -O flags for optimization . That did it for me .", "Question : Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go Comment : Did you install Xcode 4.1 Comment : Mysterious to me that this question is considered off-topic . Comment : the same problem and the same solution for mountain lion Comment : OMG how can they distribute a unix system without make sheesh Comment : Instead of downloading 1.6GB Xcode you can download 113MB Command Line Tools from Apple - answer below by @Nick White stackoverflow.com questions 6767481 http : stackoverflow.com questions 6767481 where-can-i-find-make-program-for-mac-os-x-lion answer-10565501 .. . Answer : If you need only make and friends . Try installing the command-line-tools provided by Apple . Assuming you are not doing any iOS development .", "Question : Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go Comment : Did you install Xcode 4.1 Comment : Mysterious to me that this question is considered off-topic . Comment : the same problem and the same solution for mountain lion Comment : OMG how can they distribute a unix system without make sheesh Comment : Instead of downloading 1.6GB Xcode you can download 113MB Command Line Tools from Apple - answer below by @Nick White stackoverflow.com questions 6767481 http : stackoverflow.com questions 6767481 where-can-i-find-make-program-for-mac-os-x-lion answer-10565501 .. . Answer : Xcode 5.1 no longer provides command-line tools in the Preferences section . You now go to https : developer.apple.com downloads index.action and select the command-line tools version for your OS X release . The installer puts them in usr bin .", "Question : I get Illegal Instruction : 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 Mountain Lion when those binaries are run under Mac OS X 10.7.x Lion and earlier versions . The binaries work properly under Mac OS X 10.8.x . I added -mmacosx-version-min 10.5 to my compile flags and this seems to help resolve the issue for 10.5.x 10.6.x and 10.7.x clients whatever that issue is . Which gets to my question s : .. . .. . What is the Illegal Instruction : 4 error Why does -mmacosx-version-min 10.x fix this specific error on 10.x and greater clients I d like to apply this fix to my makefiles but would like to know what it is doing before I pull the trigger . Will I have larger binaries Do I still have 64-bit binaries Are there gotchas with this approach I should know about Unintended side-effects Etc . Comment : Snow Leopard is Mac OSX 10.6 please clarify correct Comment : Corrected thanks . Comment : A missing return-value may cause an Illegal Instruction : 4 . I ran into this yesterday . Paying attention to my compiler-warnings brought me on the right track . .. . Answer : The illegal instruction message is simply telling you that your binaries contain instructions the version of the OS that you are attempting to run them under does not understand . I can t give you the precise meaning of 4 but I expect that is internal to Apple . Otherwise take a look at these.. . they are a little old but probably tell you what you need to know .. . .. . How does 64 bit code work on OS-X 10.5 http : stackoverflow.com questions 2482285 how-does-64-bit-code-work-on-os-x-10-5 rq 1 .. . what does macosx-version-min imply http : stackoverflow.com questions 2923502 what-does-macosx-version-min-imply Comment : Thanks those two questions and associated answers are interesting and I read them before asking but I ask this question because neither particularly addressed this error its cause and why the use of this flag is a solution . Before I put this into production I just want to make sure that I m not breaking something for another set of users say and it s unclear to me if there are any side effects . Comment : I would suggest that you shouldn t worry you are going with the intention of the system designers . There s a nice quote from Elements of Programming Style I came across today.. . Trying to outsmart a compiler defeats much of the purpose of using one", "Question : I just read that CDSA is deprecated in OS X 10.7 http : lists.apple.com archives fed-talk 2011 Jul msg00099.html . What is the recommended replacement I am especially interested in the plugin framework : what is the new way to implement access to smartcards etc . Tokend is deprecated now : what does Mail and Safari use to access private keys Comment : Would be very interesting to know indeed . For the time being Tokend-s like OpenSC.tokend will continue to work . But the future is unclear as always with Apple . Meanwhile - enjoy the all natural gestures .. . Answer : As it seems by Apple s own CommonCrypto http : www.macintouch.com specialreports lion review4.html othertech system . Here s a link http : developer.apple.com library mac documentation Darwin Reference ManPages man3 Common 20Crypto.3cc.html to the man pages . It seems to have been originally developed for iOS http : developer.apple.com library mac documentation Security Conceptual Security Overview Architecture Architecture.html .", "Question : I have an Mac Air 2013 1.7Ghz Intel core I7 with 8Gb RAM currently running Mountain Lion OSX 10.8.5 . I have read mixed reviews whether upgrading to Mavericks or Yosemite was worth while . Apparently some claim the software is very buggy . Is it safe to upgrade my mac to Yosemite What matter to me is battery life and ability to continue developing without any major hang ups . Any advice appriciated . .. . Answer : Mac computers are always using last hardware and accordingly OSX versions do same in order to have best skills and features each year . Thats great if you can afford a new machine each 2 years I recommend Xmas time in order to catch new versions of the OSX and fixes in the hardware and some family presents to afford it : D . Knowing this I would recommend to upgrade to Mavericks https : support.apple.com en-us HT201364 version 10.9.5 but not to Yosemite http : www.everymac.com mac-answers os-x-yosemite-faq os-x-yosemite-compatible-macs-system-requirements.html . .. . .. . It s true that the Yosemite http : www.everymac.com mac-answers os-x-yosemite-faq os-x-yosemite-compatible-macs-system-requirements.html compatibility exists but I ve found that earlier mac machines does not have the propper hardware and you experience some lacks in memory and graphics when upgrading more than one OSX . This of course would affect your performance and battery life . Example : if you bought your computer with 10.8 then I recommend limit of OSX upgrade to last 10.9 .", "Question : How can I natively implement the fullscreen feature of OSX Lion in a Java application The current answers given incorporate a good method for achieving a sort-of-fullscreen feature . I ve read that Eclipse may be able to use the native fullscreen feature of Lion . That s what I m asking about . .. . Answer : Please file a bug report with Apple . They maintain Java on OS X and it should conform to their published standards . Comment : Not after Java 6 https : www.apple.com pr library 2010 11 12Oracle-and-Apple-Announce-OpenJDK-Project-for-Mac-OS-X.html", "Question : Is OSX Lion or older OSX release of Preview scriptable Comment : ah ah it is not a real question but I got real answers . many people with not enough knowledge have big egos here . like wikipedia decline is easily envisionable if policies do not change very soon . Comment : NSAppleScriptEnabled is set to true in Preview s Info.plist in 10.9 so Preview has a basic AppleScript dictionary by default . There is still no real AppleScript support though . .. . Answer : Preview is not now and have never been AppleScript-able which does suck . It d be nice if it were though . From this blog http : mjtsai.com blog 2011 07 23 preview-regressions-in-lion : .. . .. . However from 10.4 10.6 it was possible to enable the default Cocoa scripting support via these Terminal commands : .. . .. . This was sufficient to be able to get at the file of the current document to delete it change its Finder label import it into EagleFiler etc . Under 10.7 modifying the Info.plist file breaks the application s code signature . I would expect this to cause a harmless warning message in the Console but it actually causes Preview to crash . Comment : I ve posted some instructions for making Preview scriptable on Mac OS X 10.7 : c-command.com blog 2009 12 28 capture-from-preview http : c-command.com blog 2009 12 28 capture-from-preview", "Question : Apple has marked most but not all of the OpenSSL API as deprecated in MacOS 10.7 . I have not been able to find clear documentation as to why Apple is doing this . Does anybody know Comment : i don t know but from a search i found ludovicrousseau.blogspot.com 2011 08 http : ludovicrousseau.blogspot.com 2011 08 mac-os-x-lion-and-openssl.html which says that they deprecated it in preference to their own Common Crypto Comment : Apple might be going to maintain a FIPS certification for common crypto or something so they d prefer people would use that . Just guesswork . .. . Answer : Because OpenSSL doesn t offer API compatibility between versions .. . .. . This means that Apple can t provide security updates without breaking existing apps . http : rentzsch.tumblr.com post 33696323211 wherein-i-write-apples-technote-about-openssl-on-os-x", "Question : This ought to be a duplicate question . But I ve googled quite a bit and haven t found a hit that fixes my issue . I m trying to use a c++11 standard feature on osx-lion and it s not working . I believe this feature is called list initializers . according to http : clang.llvm.org cxx status.html This feature was in clang 3.1 which is the version I m using . Below is the shell o p explaining my simple test . Can anyone tell me what I m doing wrong Am I forgetting a flag The compiler is : .. . .. . The OS is .. . .. . The test file is .. . .. . The compiler output is .. . .. . Ok I didn t want to get there because the following takes a lot to format properly on stackoverflow . But adding -stdlib c++ creates even more problems . Now I get 14 errors . Comment : possible duplicate of How do I get the new C++ threading support on Mac OS X with clang http : stackoverflow.com questions 14177018 how-do-i-get-the-new-c-threading-support-on-mac-os-x-with-clang and see stackoverflow.com a 14150421 981959 http : stackoverflow.com a 14150421 981959 for a detailed explanation Comment : The second error just seems to be a bug in libc++ it doesn t implement the features you re using . Try upgrading to LLVM Clang libc++ 3.2 Comment : And to format a whole block properly just paste it in then select the whole block and press Ctrl-K or the icon above the textbox Comment : I have the latest version of XCode for Lion . Does this mean XCode on Lion is broken I don t want to upgrade my OS or go down the darwin ports route . Comment : @Spundun - Note that Apple clang version 3.1 isn t the same as LLVM Clang 3.1 . On Mountain Lion you would get Apple clang version 4.0 also based on LLVM 3.1 . .. . Answer : The Solution .. . .. . Specifically I had to go to XCode preferences- Downloads and install Command Line Tools . That fixed the problem . The Explanation .. . .. . What happened was a simple case of outdated software . Since OSX was up-to-date through software update I assumed all the XCode and compiler updates are also in-place . Which was not the case . Notice in the comment to the question I said I have the latest version of XCode for Lion . But I didn t . bames53 alludes to that in his answer Just because you don t have any new updates in the OSX software update doesn t mean that you have the latest XCode compiler . You update it through XCode Preferences . With the help of Jonathan s feedback and some more googling Using clang with libc++ and c++11 from the command-line with mac os x http : stackoverflow.com questions 13752233 using-clang-with-libc-and-c11-from-the-command-line-with-mac-os-x fixed my problem . This actually updated the llvm toolchain .", "Question : I need some smalltalk with GUI for my homework and I m running Mac OS X Lion 10.7 . I ve seen that unix users usually use GNU Smalltalk and GTK+ . I ve tried to install them from different versions of sources and all of them give some errors . Then I ve used MacPorts but that installation breaks GTK+ bindings for gst . Finally I ve tried to install it using fing package manager because GNU states that I should install everything nice but there is no smalltalk package for 10.7 OS though there is for previous ones . Is there some way to use smalltalk under Mac OS Lion or should I for example run Ubuntu on virtual-machine Comment : Squeak or Pharo are both good . Most of these videos besides how to install work for either : youtube.com http : www.youtube.com playlist list PL6601A198DF14788D feature view all .. . Answer : You can also give the Personal Use version of VisualWorks a spin : .. . .. . http : www.cincomsmalltalk.com main developer-community trying-cincom-smalltalk try-cincom-smalltalk .. . .. . I m assuming you ll get a 7.8 .1 version there . The OSX skin is pretty dated . I promise it s getting better . Look for 7.9 soon now .", "Question : Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go Comment : Did you install Xcode 4.1 Comment : Mysterious to me that this question is considered off-topic . Comment : the same problem and the same solution for mountain lion Comment : OMG how can they distribute a unix system without make sheesh Comment : Instead of downloading 1.6GB Xcode you can download 113MB Command Line Tools from Apple - answer below by @Nick White stackoverflow.com questions 6767481 http : stackoverflow.com questions 6767481 where-can-i-find-make-program-for-mac-os-x-lion answer-10565501 .. . Answer : It appears you can install the command-line tools without getting Xcode from Downloads for Apple Developers https : developer.apple.com downloads index.action name for 20Xcode 20- . It required me to login with my apple account . Alternatively once you install Xcode from the app-store you might notice the command-line tools are not installed by default . Open Xcode go to preferences click to the downloads tab and from there you can download and install command-line tools . Comment : Much preferred given that I don t need want Xcode .", "Question : I was running Xcode 4.2 on Lion 10.7.2 and I have a few applications that needed updating to the Lion sandbox so I can resubmit them to the Mac App Store Mac not iOS . Somewhere along the way I had a popup to update to combo update 10.7.3 and after that everything went wrong . Verifying and submitting apps was fine if the archive was compiled in 10.7.2 but if it was compiled after the 10.7.3 update it can no longer verify the app . That is right under 10.7.3 I can still verify apps if they were compiled before the upgrade . Anything compiled after will give me this : .. . .. . This bundle is invalid . Apple is not currently accepting applications built with this version of the OS . .. . .. . After each of the following attempts I have cleaned rebuilt the archive and tried again to verify or submit the application through Xcode Organizer and the Application Loader standalone : .. . .. . I have tried upgrading to Xcode 4.2.1 by doing a complete uninstall reboot and install but nothing . I read this similar thread http : stackoverflow.com questions 9108500 warning-ipad-icon-72-png-icon-dimensions-0-x-0 and tried using the new Application Loader 2.5.1 and made sure there was no other Application Loader on the system but that didn t work either . Both the the Application Loader via Xcode and run standalone give the same error . From another thread http : stackoverflow.com questions 6671166 the-bundle-is-invalid-mac-os-x have tried changing the base SDK to 10.7 . I was previously at 10.6 so I can still support Snow Leopard and yes you can submit sandbox apps built against 10.6 that work in both Lion sandboxed and SL non-sandboxed because I ve done it http : stackoverflow.com questions 8677216 app-sandbox-icloud-and-snow-leopard-backwards-compatibility with two apps very recently . Unfortunately built with 10.6 or 10.7 SDK makes no difference with this error . I ve read that the same error happens when devs try to submit apps built on a beta platform but I have not been running beta versions of anything nor have I in the past since I bought this MacBook in August . Any ideas would be greatly appreciated . Thanks in advance . Comment : Same problem here . Just updated to 10.7.3 and I can t submit anything . .. . Answer : Edit the values of plist file to upgrade your OSX version to 10.7.4 using below command .. . .. . sudo nano System Library CoreServices SystemVersion.plist Original Value : .. . .. . Build Number : 11D50 ProductUserVisibleVersion ProductVersion : 10.7.3 New Value .. . .. . Build Number : 11E27 ProductUserVisibleVersion ProductVersion : 10.7.4 Ctrl+O for saving Now you can install latest XCode .. . .. . http : cocoauser.wordpress.com 2012 08 03 how-to-install-latest-xcode-in-10-7-3-lion", "Question : Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go Comment : Did you install Xcode 4.1 Comment : Mysterious to me that this question is considered off-topic . Comment : the same problem and the same solution for mountain lion Comment : OMG how can they distribute a unix system without make sheesh Comment : Instead of downloading 1.6GB Xcode you can download 113MB Command Line Tools from Apple - answer below by @Nick White stackoverflow.com questions 6767481 http : stackoverflow.com questions 6767481 where-can-i-find-make-program-for-mac-os-x-lion answer-10565501 .. . Answer : If you installed xcode and upgraded to mountain lion or you don t have the latest command-line tools installed or you have zsh or other shells you can shortcut to some of the embedded tools in the developer directory with :", "Question : Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go Comment : Did you install Xcode 4.1 Comment : Mysterious to me that this question is considered off-topic . Comment : the same problem and the same solution for mountain lion Comment : OMG how can they distribute a unix system without make sheesh Comment : Instead of downloading 1.6GB Xcode you can download 113MB Command Line Tools from Apple - answer below by @Nick White stackoverflow.com questions 6767481 http : stackoverflow.com questions 6767481 where-can-i-find-make-program-for-mac-os-x-lion answer-10565501 .. . Answer : After upgrading to Mountain Lion using the NDK I had the following error : .. . .. . Cannot find make program . Please install Cygwin make package or define the GNUMAKE variable to point to it .. . .. . Error was fixed by downloading and using the latest NDK", "Question : Just upgraded my computer to Mac OS X Lion and went to terminal and typed make but it says : -bash : make : command not found .. . .. . Where did the make command go Comment : Did you install Xcode 4.1 Comment : Mysterious to me that this question is considered off-topic . Comment : the same problem and the same solution for mountain lion Comment : OMG how can they distribute a unix system without make sheesh Comment : Instead of downloading 1.6GB Xcode you can download 113MB Command Line Tools from Apple - answer below by @Nick White stackoverflow.com questions 6767481 http : stackoverflow.com questions 6767481 where-can-i-find-make-program-for-mac-os-x-lion answer-10565501 .. . Answer : Have you installed Xcode and the developer tools I think make along with gcc and friends is installed with that and not before . Xcode 4.1 for Lion is free . Comment : Indeed installing new Xcode resolved my problem . Unfortunately I didn t know that after doing a Mac OS X upgrade I also have to upgrade to the latest Xcode version . Comment : Or you can make your answer more correct Comment : go to the Downloads tab within the Xcode Preferences menu and click Install next to the Command Line Tools entry Comment : Scroll down to @Tarmo s answer to see how to do it in 2013 ." ] }
[ "yes-answer-long", "yes-answer-short" ]
desktop
UNK_RELATION
private-network@private-network@62
private-network -- in the internet addressing architecture a @placeholder is a network that uses private ip-address space following the standards set by rfc 1918 for internet protocol version 4 ipv4 and rfc 4193 for internet protocol version 6 ipv6 .
{ "confidence": [ 32.024288177490234, 32.024288177490234, 31.891128540039062, 28.78653907775879, 27.84392547607422, 27.102821350097656, 23.435712814331055, 21.59932518005371, 20.37543487548828, 19.67026138305664, 18.529972076416016, 17.070209503173828, 16.966381072998047, 14.37088394165039, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 12.50058364868164, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824, 10.816866874694824 ], "content": [ "I would now like to setup a tunnel from my laptop running linux to access the private-network on Bluemix .", "Does anybody know if it is possible to make the private docker network available locally and how to connect to that", "I m trying the VM approach in UK region but it looks like it is also not that easy as the private IP of the VM can not reach the private IP of the containers .", "I have netgear 1500 wifi DSL router having private IP 192.168.1.1 .", "The VPN service seems to require an IPSec gateway that is reachable from the internet which I don t have .", "I have some docker containers running on Bluemix using private IP addresses .", "The containers network and the VM one are distinct due to infrastructure reasons .", "Three different and distinct private networks connected through a VPN on a VM a little bit complicated : -", "I am running apache 2.4 in my desktop PC having IP 192.168.1.2 and my laptop has an IP 192.168.1.3 .", "So you still have to set a container with a public IP and connect it to the OpenVpn VM .", "But as my VM also has a public IP it might be possible to set up an IPSec gateway on the VM and then use OpenVPN to make that available .", "According to this what you could achieve is a set of services available for you on different containers and a single container working as SSH tunnel gateway making your local environment connected to it using SSH and defining a set of local and remote SSH ports forwarding with different policies according to the service port and the IP of the service .", "It should work for all the services and you haven t to use a socks proxy to forward requests to different hosts : using remote SSH forwarding your SSH endpoint will redirect your requests to the right service inside the local private lan .", "http : www.debianadmin.com howto-use-ssh-local-and-remote-port-forwarding.html .. . .. . About the OpenVPN solution as you already know it is not possible to use software requiring privileged mode on containers because it couldn t be allowed on Bluemix due to security reasons : if you wish to have this kind of solution I strongly suggest you to use OpenVPN on a VM on Bluemix UK region still beta but an architecture expected to be the final architecture as soon as VM service will become GA service .. . .. . I think that these options are the ones available on Bluemix to achieve what you describe without using the VPN service suggested by @bill-wentworth", "While I try to access the apache server as http : 192.168.1.2 : 80 index.html I get a message requested URL index.html not found while it shows up properly when I access is as localhost .", "I have done port forwarding for port : 80 and firewalls are stopped .", "I have quickheal running in the same machine in which apache runs .", "Both machines are windows .", "What do I need to do so that I can access the server from my laptop", "I have added the privileges through http.conf also .", "I see another problem - when I ping the desktop machine which runs the server the request is timed out .", "Thanks", "The problem has been solved .", "Skype and antivirus are using port 80 .", "Making apache listen to other port - like 8080 solved the problem .", "I learned that apache does not share a port with other applications .", "Hope someone else might be helped from this .", "Sukalyan", "I had first created a container running an ssh-server .", "Using ssh -D I was able to setup a SOCKS5 proxy connection .", "This worked fine with Chrome but not all applications support a SOCKS proxy .", "So I tried to create a container with an OpenVPN server .", "Unfortunately this does not work on Bluemix as the containers are not running privileged and thus can not create a tun device .", "Bluemix also has a VPN and a Secure Gateway service which sound promising but so far I could not figure out how to get those working .", "Here s info to get you started on the VPN service : ng.bluemix.net docs services vpn index.html https : www.ng.bluemix.net docs services vpn index.html br br Here s info to get you started on the Secure Gateway service : ng.bluemix.net docs services SecureGateway index.html https : www.ng.bluemix.net docs services SecureGateway index.html", "Generally speaking containers should be used to implement services available to external applications an APIs service or a runtime or a dbms or something like that .", "I found that this guide describes correctly how to work with local remote port forwarding .", "Thanks for the info .", "Looks like my development use-case is not really supported then .", "So using that directly does not seem to be possible .", "Just quite complicated for such a simple use-case -", "Is it possible to use the servicenet when using the cloud files api in Java", "Currently I m using it as follows : .. . .. . I m asking this because I used to use the python client which has a boolean parameter in order to choose whether to use the public or the service net :", "You need to make sure to add the InternalUrlModule to the list of modules .", "This in turn will make jclouds use the applicable ServiceNet endpoints when connecting to the service .", "I would like to know is it possible and if it is then how can it be done .Any materials sources to get started with for help", "Your first problem is the hackrf is only half duplex GSM requires full duplex operation .", "So you would need two hackrf s .", "Easier just to get one USRP ." ] }
{ "confidence": [ 53.191184997558594, 27.782730102539062, 10.797989845275879, 10.797989845275879 ], "content": [ "Question : I have some docker containers running on Bluemix using private IP addresses . I would now like to setup a tunnel from my laptop running linux to access the private-network on Bluemix . I had first created a container running an ssh-server . Using ssh -D I was able to setup a SOCKS5 proxy connection . This worked fine with Chrome but not all applications support a SOCKS proxy . So I tried to create a container with an OpenVPN server . Unfortunately this does not work on Bluemix as the containers are not running privileged and thus can not create a tun device . Bluemix also has a VPN and a Secure Gateway service which sound promising but so far I could not figure out how to get those working . Does anybody know if it is possible to make the private docker network available locally and how to connect to that Comment : Here s info to get you started on the VPN service : ng.bluemix.net docs services vpn index.html https : www.ng.bluemix.net docs services vpn index.html br br Here s info to get you started on the Secure Gateway service : ng.bluemix.net docs services SecureGateway index.html https : www.ng.bluemix.net docs services SecureGateway index.html .. . Answer : Generally speaking containers should be used to implement services available to external applications an APIs service or a runtime or a dbms or something like that . According to this what you could achieve is a set of services available for you on different containers and a single container working as SSH tunnel gateway making your local environment connected to it using SSH and defining a set of local and remote SSH ports forwarding with different policies according to the service port and the IP of the service . It should work for all the services and you haven t to use a socks proxy to forward requests to different hosts : using remote SSH forwarding your SSH endpoint will redirect your requests to the right service inside the local private lan . I found that this guide describes correctly how to work with local remote port forwarding . http : www.debianadmin.com howto-use-ssh-local-and-remote-port-forwarding.html .. . .. . About the OpenVPN solution as you already know it is not possible to use software requiring privileged mode on containers because it couldn t be allowed on Bluemix due to security reasons : if you wish to have this kind of solution I strongly suggest you to use OpenVPN on a VM on Bluemix UK region still beta but an architecture expected to be the final architecture as soon as VM service will become GA service .. . .. . I think that these options are the ones available on Bluemix to achieve what you describe without using the VPN service suggested by @bill-wentworth Comment : Thanks for the info . Looks like my development use-case is not really supported then . I m trying the VM approach in UK region but it looks like it is also not that easy as the private IP of the VM can not reach the private IP of the containers . The VPN service seems to require an IPSec gateway that is reachable from the internet which I don t have . So using that directly does not seem to be possible . But as my VM also has a public IP it might be possible to set up an IPSec gateway on the VM and then use OpenVPN to make that available . Just quite complicated for such a simple use-case - Comment : The containers network and the VM one are distinct due to infrastructure reasons . So you still have to set a container with a public IP and connect it to the OpenVpn VM . Three different and distinct private networks connected through a VPN on a VM a little bit complicated : -", "Question : I have netgear 1500 wifi DSL router having private IP 192.168.1.1 . I am running apache 2.4 in my desktop PC having IP 192.168.1.2 and my laptop has an IP 192.168.1.3 . While I try to access the apache server as http : 192.168.1.2 : 80 index.html I get a message requested URL index.html not found while it shows up properly when I access is as localhost . I have done port forwarding for port : 80 and firewalls are stopped . I have quickheal running in the same machine in which apache runs . Both machines are windows . What do I need to do so that I can access the server from my laptop I have added the privileges through http.conf also . I see another problem - when I ping the desktop machine which runs the server the request is timed out . Thanks .. . Answer : The problem has been solved . Skype and antivirus are using port 80 . Making apache listen to other port - like 8080 solved the problem . I learned that apache does not share a port with other applications . Hope someone else might be helped from this . Sukalyan", "Question : Is it possible to use the servicenet when using the cloud files api in Java Currently I m using it as follows : .. . .. . I m asking this because I used to use the python client which has a boolean parameter in order to choose whether to use the public or the service net : .. . Answer : You need to make sure to add the InternalUrlModule to the list of modules . This in turn will make jclouds use the applicable ServiceNet endpoints when connecting to the service .", "Question : I would like to know is it possible and if it is then how can it be done .Any materials sources to get started with for help .. . Answer : Your first problem is the hackrf is only half duplex GSM requires full duplex operation . So you would need two hackrf s . Easier just to get one USRP ." ] }
[ "yes-answer-long", "yes-answer-short" ]
private-network
UNK_RELATION
milton@server-side@36
milton -- milton is an open-source @placeholder webdav api for java .
{ "confidence": [ 54.51228713989258, 53.71989059448242, 49.7133674621582, 49.7133674621582, 48.72834396362305, 47.52141189575195, 46.929691314697266, 45.94371032714844, 45.604923248291016, 43.36827087402344, 43.03106689453125, 43.03106689453125, 42.826141357421875, 42.77826690673828, 41.983089447021484, 41.45320129394531, 41.079734802246094, 40.46556854248047, 40.46556854248047, 39.54463195800781, 39.54463195800781, 39.29306411743164, 38.84886932373047, 38.79817581176758, 38.76238250732422, 38.27847671508789, 36.760955810546875, 36.5093879699707, 34.84842300415039, 34.84842300415039, 34.84842300415039, 34.158592224121094, 33.59584426879883, 33.58226776123047, 32.07832336425781, 31.9742431640625, 31.9742431640625, 30.708087921142578, 30.66362762451172, 29.938488006591797, 26.945701599121094, 25.97138214111328, 25.259994506835938, 25.259994506835938, 24.610145568847656, 23.336864471435547, 23.336864471435547, 23.151500701904297, 22.701576232910156, 22.701576232910156, 22.701576232910156, 22.701576232910156, 20.93366241455078, 20.93366241455078, 20.548351287841797, 19.66750717163086, 18.639781951904297, 18.441856384277344, 17.06798553466797, 17.06798553466797, 16.49346160888672, 16.309425354003906, 16.057891845703125, 16.018041610717773, 15.22730541229248, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 14.441411018371582, 13.199668884277344, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082, 12.532841682434082 ], "content": [ "how milton webdav work with ms-office 2013", "Milton an open-source WebDAV library implemented in a Java Servlet which allows any data from your application to be exposed via WebDAV .", "I m using milton server to support webdav protocol in my project but there is a problem .", "I heard about webDav and its implementation like Milton http : milton.io .", "Here s an example using Milton Hibernate and Tomcat together in which Milton running on Tomcat is used to provide WebDAV-based access to Hibernate data .", "Really impressed with Milton .", "Is Milton implemented WebDAV as it is do all the communication remains stateless", "I m testing Milton WebDAV API and I need to log when some document is opened .", "if I need milton enterpise editon", "More information is available on the milton tutorials - .. . .. . Getting started with the annotations framework : http : milton.io programs milton anno anno1 .. . .. . Implementing file operations with annotations inc locking : http : milton.io programs milton anno anno2", "My knowledge about milton is very poor .", "There are tutorials on the milton website showing how to do it .", "You would want do hello world - milton.io programs milton anno anno1 http : milton.io programs milton anno anno1 . . and file operations - milton.io programs milton anno anno2 http : milton.io programs milton anno anno2", "I am looking at using the Milton java webdav library in a project I am working on and I was wondering if anyone had any experience with it .", "The alternative would be to turn off expect continue handling in Milton but that seems to break WebDAV authentication .", "Returning href s like milton abc is often used but both are legal .", "The tutorials dont cover the javascript side of things but there is example code here - github.com miltonio milton2 blob master milton-server-ce src https : github.com miltonio milton2 blob master milton-server-ce src main java-io milton http fs FsDirectoryResource.java", "- we have just tested milton against litnus tests and it passes most of it so it seems that it implements the basic webdav standard as it is .", "I have never used Milton WebDAV before but from the looks of it it is used to modify and edit files on a server .", "With our project we are trying to implement Milton in combination with a jetty based cloud .", "It did look to me that there was a lot of time and work put into Milton .", "We have used the Milton library before and found it both easy to work with and well suited for adding a WebDAV interface to a web application .", "My question is is there ay possibility to start initialize Milton after the Java server has already been started", "I m seeing extremely poor performance from this server this request took nearly a minute to process : .. . .. . http : milton.io maven io milton milton-server-ce 2.6.4.0 milton-server-ce-2.6.4.0.jar .. . .. . So you re likely hitting the repository s default read timeout of 20 seconds in Nexus .", "I get the following in my stack-trace when the application crashes : .. . .. . Source code of lines : 190 https : github.com miltonio milton2 blob master milton-client src main java-io milton httpclient Host.java L190 and 152 https : github.com miltonio milton2 blob master milton-client src main java-io milton httpclient Host.java L152 .", "Is there a reference container for Milton where expect-continue works out-of-the-box", "Again where does Milton server store Lock Token", "We want to use Milton WebDav to transfer files in our web application which eventually is going to be deployed on cloud environment most likely azure as IaaS .", "And the milton website gets around 100 unique visitors per day so there seems to be fairly active usage .", "This is my upload PUT method code : .. . .. . and this is the output : .. . .. . How can i increase the read size of InputStream in milton server", "based on this if Milton indeed runs on top of a Tomcat server you may try to enable gzip compression in tomcat .", ".. . But with transparent handling of ExpectContinue the entire file gets uploaded before the milton API is able to check if the current user is authenticated and authorised to perform the action .", "I am using the Milton WebDAV server 1.6.8 with an embedded Grizzly servlet container 2.1.7 and in their default configuration PUT requests at least as issued by Cyberduck do not work .", "From what I can see Milton just sets a status code to SC CONTINUE and finishes request processing .", "Now we are aware that WebDAV standard is stateless and hence it should not create any problems with cloud load balancer but what we are not sure about Milton and have few questions : .. . .. . 1 .", "We do have the ability to add libraries to the cloud node but we are having difficulties initializing Milton after the server has already started .", "BTW I m the primary author of milton and I respond to one or two questions each day from different people using the library .", ".. . But generally I think you should try to find out if Grizzly s transparent handling can be disabled and then re-enable support in milton .", "- what it looks like is that the server is replying with a fully qualified URL with scheme host and port http : 127.0.0.1 9000 but the client is treating it as a relative uri href - milton abc and prepending the info back on it .", "webdav work fine but can t open ms-word .", "I have tracked the issue down to a problem with how HTTP 100 Continue is handled it apparently also affects Jetty a message on the Milton mailing list http : lists.justthe.net pipermail milton-users 2011-September 001119.html and bug tracker http : jira.ettrema.com : 8080 browse MIL-98 says it is the fault of the servlet container which tries to be clever with transparent expect continue handling .", "I am trying to use the Milton http : milton.io library with an Android project I am working on however I am having some issues with its dependency on HttpClient .", "I just did a quick test on the milton server i m currently working on which does very complex processing of files including chunking and SHA1 calculation and it gave the following results : UPLOAD time 8541ms SIZE 82 954 392bytes bandwidth 9 712 491bytes sec .. . .. . How have you tested the upload speed was that from the client or at the server", "Yes MS Office and most other major OS vendors require locking which is available in milton s enterprise edition .. . .. . If using the annotations framework recommended you only need to implement @UniqueID methods for editable types and milton will provide locking support .", "The server works fine when connecting to it from the WebDAV client built into MacOSX .", "Other Java-based WebDAV projects that may be useful to reference when building your own include Jigsaw Apache Jackrabbit and the now-retired Jakarta Slide .", "stackoverflow.com questions 19949593 http : stackoverflow.com questions 19949593 edit-files-read-edit-save-in-java-based-web-application-via-webdav rq 1", "Article : How To Write A Dead-Simple Online Network Drive using Java WebDAV http : northconcepts.com blog 2011 07 29 how-to-write-a-dead-simple-online-network-drive-using-java-and-w", "I am looking adding a webdav interface to my application .", "I was surprised at the lack of tooling built around WebDAV in general especially with versioning .", "I am using milton.io to access some content via webdav .", "May be i forgot something cause my webdav client e.g .", "So webdav is still working and i am able to put get delete files - and so on .", "Yes you can do this by implementing webdav support in your webapp and Milton.io is designed specifically to allow that .", "The log below shows how it has somehow mangled the path to the directory collection in webdav speak by including again the full path to the servlet again look at the last line .", "Yes containers which transparently handle expect continue effectively break HTTP security for Webdav .", "I ve written a blog article that goes over the details of exposing a scratchpad text file though WebDAV from a web application which you may be able to use to extrapolate to your own needs .", "By default curl sends Expect : Continue but unfortunately java web containers don t play nicely with the Expect header .", "Sorry for the late comment the two most important aspects of webdav which affect load-balancing are digest-authentication tokens Nonce values and lock tokens .", "Note that Tomcat session replication won t help with the above issues because webdav clients typically dont support cookies so there is no Servlet session .", "If using the Resource API ie you are implementing interfaces instead of using annotations then you need to implement LockableResource .", "User click the file and it will open in the relevant file editor MS Word Note Pad MS PowerPoint - assume the editors are installed already .. . 2 .", "Here s the situation tried to format as best as I could : .. . .. . log4j.properties .. . .. . DocumentResource.java .. . .. . Eclipse s console when execute get testfile on a WebDAV client .. . .. . 08 02 2013 18 : 03 : 15 com.ettrema.tutorial.milton.DocumentResource sendContent INFO : File testfile opened .. . .. . log.txt big content here http : pastebin.com raw.php i 5ejRyieS .. . .. . Thanks", "I have a Java application which give the facility to create user accounts and then the user can upload files to the remote-server which the application is hosted .", "Most likely the rest of the system is using Log4J s API while your SLF4 is configure to log to the console .", "I am in the process of testing a web dav enabled view my system using anumber of different clients .", "One particular client seems to do sometimes do strange things and I was wonder is this to be expected. .", "All other clients dont do this is this primarily because its a poorly coded client that is probably broken", "I have looked at the response log that the client makes available and the names are not mangled they make sense .", "and not", "It is most likely the client .", "Doh that makes perfect sense.. .", "When I try to curl using the -T option I get an empty reply : .. . .. . Anyone know the incantation", "The simplest answer is to instruct curl not to send that header : .. . .. . The better solution is to make expect : continue work but from the research i ve done it appears that depends on what web container you re using .", "Works perfectly .", "Thanks Brad .", "The app is targeting API 23 Marshmallow and I have tried using both of these Android ports of the HttpClient library in my build.gradle file separately .", "The problem we have is that the cloud slot can only be stopped and started we cannot change any configuration .", "If not what makes it impossible to do so", "Thanks for the feedback .", "When you say versioing do you mean the DeltaV standard", "Yes its something that hasnt been picked up very much .", "Having said that subversion http uses it though in a slightly hacked and extended manner .", "BTW we re still here :", "The documentation is really really good .", "i have written a small grails webapp .", "But now i want to add authentication and authorization .", "And here is the problem : .. . .. . The Resource Interface gives me 2 methods : .. . .. . So my Resource classes implements the Resource Interface but the method authenticate is never called by the framework .", "Do i have to implement Auth Basic by my self", "cadaver never asks for a username password .", "Thanks for any help Peter Waver .. . .. . Signature of my Resource Classes : .. . .. . And here is the builder to get the HttpManager .. . .. . And here the ResourceFactory", "If you need Basic Auth - you have to enable it .", "So add the following line to the config method of the SMiltonConfig Class .", "Here S an example of the Resource authorise Method .. . .. . Hope it helps .. . .. . Florian Pfann", "I can not change InputStream to any other type like BufferedInputStream", "In my local computer uploa speed is 27KB s and this is too slow", "There s no reason why that code should be fast or slow .", "Bytes will be received at the rate they re provided by the network adapter and using a BufferedInputStream won t help because bytes are already effectively by the network adapter .", "I m very surprised to see local upload speed of 27KB s I ve never seen antthing that slow before ." ] }
{ "confidence": [ 71.66279602050781, 70.21690368652344, 68.29728698730469, 66.8309326171875, 65.24051666259766, 60.30949783325195, 60.30949783325195, 60.1324462890625, 59.5886344909668, 59.16755676269531, 55.14631271362305, 52.908966064453125, 50.21229934692383, 47.259437561035156, 47.10272216796875, 42.132320404052734, 41.21601104736328, 27.376115798950195 ], "content": [ "Question : how milton webdav work with ms-office 2013 webdav work fine but can t open ms-word . if I need milton enterpise editon Any suggestion thanks advance . .. . Answer : Yes MS Office and most other major OS vendors require locking which is available in milton s enterprise edition .. . .. . If using the annotations framework recommended you only need to implement @UniqueID methods for editable types and milton will provide locking support . If using the Resource API ie you are implementing interfaces instead of using annotations then you need to implement LockableResource . And you need to implement LockingCollectionResource to have support for Mac Finder . More information is available on the milton tutorials - .. . .. . Getting started with the annotations framework : http : milton.io programs milton anno anno1 .. . .. . Implementing file operations with annotations inc locking : http : milton.io programs milton anno anno2", "Question : I m using milton server to support webdav protocol in my project but there is a problem . This is my upload PUT method code : .. . .. . and this is the output : .. . .. . How can i increase the read size of InputStream in milton server I can not change InputStream to any other type like BufferedInputStream In my local computer uploa speed is 27KB s and this is too slow .. . Answer : Milton an open-source WebDAV library implemented in a Java Servlet which allows any data from your application to be exposed via WebDAV . Here s an example using Milton Hibernate and Tomcat together in which Milton running on Tomcat is used to provide WebDAV-based access to Hibernate data . Other Java-based WebDAV projects that may be useful to reference when building your own include Jigsaw Apache Jackrabbit and the now-retired Jakarta Slide . based on this if Milton indeed runs on top of a Tomcat server you may try to enable gzip compression in tomcat . Comment : I guess with MP4 Files compression is pointless . Comment : I did not try that myself but I found the following comment on the web : Can I compress mp4 files to zip If I compress mp4 files to zip they reduce to about a third in size . does that mean .. . . So I don t think I understand your comment . Comment : There s a lot of non-sense on the web.. . especially on the page you re referring to I see something about losing quality when zipping . : D I ve tried it myself with some files I downloaded recently : original : 993420 KB zipped : 990440 KB . I could try -9 and get more than 0.3 but I don t think it s worth it . Comment : That said there might be a possibility to specify the compression level of mp4 and if you d use something corresponding with zip -0 then you might get something compressible . However I guess that most of mp4 around is heavily compressed already . Given the ratio of the CPU speed to disk or network speed you usually can compress everything well .", "Question : I am looking at using the Milton java webdav library in a project I am working on and I was wondering if anyone had any experience with it . I am looking adding a webdav interface to my application . .. . Answer : BTW I m the primary author of milton and I respond to one or two questions each day from different people using the library . And the milton website gets around 100 unique visitors per day so there seems to be fairly active usage . Comment : BTW we re still here : Comment : Really impressed with Milton . The documentation is really really good .", "Question : This is a problem I ve faced recently . I have a Java application which give the facility to create user accounts and then the user can upload files to the remote-server which the application is hosted . At some point the user can do the followings to edit that file . 1 . Download the file .. . 2 . do the editing .. . 3 . upload the file and it will replace the existing file or keep both .. . .. . The problem is the user have to upload it to the server again . How can I avoid that . I mean to simplify the user-experience . I think below will be a good solution . .. . .. . 1 . User click the file and it will open in the relevant file editor MS Word Note Pad MS PowerPoint - assume the editors are installed already .. . 2 . User do the editing and just click the save in the relevant editor . say in MS word user edit the file and click save - then the file in the remote-server will automatically updated to the edited one . .. . .. . I know this is not a programming code error or something I m just wondering how can we achieve this Is there any library or a technology for this . I heard about webDav and its implementation like Milton http : milton.io . Is these can solve this or any of you know a way to achieve this . I need some ideas and thoughts how i can do this . please give your kind help . Comment : Why is this too broad The OP is asking a perfectly reasonable question . .. . Answer : Yes you can do this by implementing webdav support in your webapp and Milton.io is designed specifically to allow that . There are tutorials on the milton website showing how to do it . Takes about 20 mins .. . .. . http : milton.io .. . .. . To integrate click to edit into the web browser you need to use IE . Its possible to do the same in FF and Chrome but requires addons to be installed . Comment : thanks . I just checked the site milton.io . can you point me to the exact tutorial to achieve this I already fork the example project in GitHub also . This is really nice . But hard to understand I guess . Comment : I just found this also . stackoverflow.com questions 19949593 http : stackoverflow.com questions 19949593 edit-files-read-edit-save-in-java-based-web-application-via-webdav rq 1 Comment : You would want do hello world - milton.io programs milton anno anno1 http : milton.io programs milton anno anno1 . . and file operations - milton.io programs milton anno anno2 http : milton.io programs milton anno anno2 Comment : The tutorials dont cover the javascript side of things but there is example code here - github.com miltonio milton2 blob master milton-server-ce src https : github.com miltonio milton2 blob master milton-server-ce src main java-io milton http fs FsDirectoryResource.java Comment : ok thanks Brad : I ll look into it .", "Question : I am looking at using the Milton java webdav library in a project I am working on and I was wondering if anyone had any experience with it . I am looking adding a webdav interface to my application . .. . Answer : We have used the Milton library before and found it both easy to work with and well suited for adding a WebDAV interface to a web application . I ve written a blog article that goes over the details of exposing a scratchpad text file though WebDAV from a web application which you may be able to use to extrapolate to your own needs . Article : How To Write A Dead-Simple Online Network Drive using Java WebDAV http : northconcepts.com blog 2011 07 29 how-to-write-a-dead-simple-online-network-drive-using-java-and-w Comment : Thanks for the feedback . It did look to me that there was a lot of time and work put into Milton . I was surprised at the lack of tooling built around WebDAV in general especially with versioning . Comment : When you say versioing do you mean the DeltaV standard Yes its something that hasnt been picked up very much . Having said that subversion http uses it though in a slightly hacked and extended manner .", "Question : I am using the Milton WebDAV server 1.6.8 with an embedded Grizzly servlet container 2.1.7 and in their default configuration PUT requests at least as issued by Cyberduck do not work . I have tracked the issue down to a problem with how HTTP 100 Continue is handled it apparently also affects Jetty a message on the Milton mailing list http : lists.justthe.net pipermail milton-users 2011-September 001119.html and bug tracker http : jira.ettrema.com : 8080 browse MIL-98 says it is the fault of the servlet container which tries to be clever with transparent expect continue handling . Yes containers which transparently handle expect continue effectively break HTTP security for Webdav . HTTP uses a challenge response security model and many clients rely on that . Ie if doing a PUT they will simply do an un-authenticated PUT and rely on ExpectContinue to ensure that the challenge is issued before the file is uploaded . .. . But with transparent handling of ExpectContinue the entire file gets uploaded before the milton API is able to check if the current user is authenticated and authorised to perform the action . .. . Depending on your supported clients and you use cases this can either be wholely unacceptable a nuisance or not an issue at all . .. . But generally I think you should try to find out if Grizzly s transparent handling can be disabled and then re-enable support in milton . What can I do to disable Grizzly s transparent expect continue handling and is this really correct approach The alternative would be to turn off expect continue handling in Milton but that seems to break WebDAV authentication . Update : I also tried Jetty now 8.1.0.RC1 and it exhibits the same behaviour as Grizzly : only with expect continue handling turned off can I PUT files with the default settings it does not work . .. . Answer : Regarding Grizly 2.x you need to override sendAcknowledgment method in your ServletHandler like the following : .. . .. . Hope it will help . Comment : Tried that but did not work . Also put a breakpoint in but it did not go there . Who is supposed to call sendAcknowledgement and when From what I can see Milton just sets a status code to SC CONTINUE and finishes request processing . Comment : will dig deeper tomorrow but for now it seems that sendAcknowledgement gets called not on my ServletHandler but on the HttpHandlerChain . Comment : pls . try the latest Grizzly 2.1.8 Comment : Now it does get called . I swear there was no 2.1.8 yesterday - . But what is authClient Comment : we ve just released 2.1.8 : authClient is nothing just an example of any logic you can implement there .", "Question : I am using the Milton WebDAV server 1.6.8 with an embedded Grizzly servlet container 2.1.7 and in their default configuration PUT requests at least as issued by Cyberduck do not work . I have tracked the issue down to a problem with how HTTP 100 Continue is handled it apparently also affects Jetty a message on the Milton mailing list http : lists.justthe.net pipermail milton-users 2011-September 001119.html and bug tracker http : jira.ettrema.com : 8080 browse MIL-98 says it is the fault of the servlet container which tries to be clever with transparent expect continue handling . Yes containers which transparently handle expect continue effectively break HTTP security for Webdav . HTTP uses a challenge response security model and many clients rely on that . Ie if doing a PUT they will simply do an un-authenticated PUT and rely on ExpectContinue to ensure that the challenge is issued before the file is uploaded . .. . But with transparent handling of ExpectContinue the entire file gets uploaded before the milton API is able to check if the current user is authenticated and authorised to perform the action . .. . Depending on your supported clients and you use cases this can either be wholely unacceptable a nuisance or not an issue at all . .. . But generally I think you should try to find out if Grizzly s transparent handling can be disabled and then re-enable support in milton . What can I do to disable Grizzly s transparent expect continue handling and is this really correct approach The alternative would be to turn off expect continue handling in Milton but that seems to break WebDAV authentication . Update : I also tried Jetty now 8.1.0.RC1 and it exhibits the same behaviour as Grizzly : only with expect continue handling turned off can I PUT files with the default settings it does not work . .. . Answer : Note that whether or not the transparent expect-continue handling is a problem depends on whether your targeted client applications uses expect-continue authentication or not . I haven t researched this in too much detail yet so I can t say with certainty which containers do transparent handling and whether or not it can be disabled or what client applications require it . Might be good if someone from Grizzly or Tomcat could comment on options for disabling the container handling . Comment : Is there a reference container for Milton where expect-continue works out-of-the-box I do not have to use Grizzly if I cannot make it work .", "Question : We want to use Milton WebDav to transfer files in our web application which eventually is going to be deployed on cloud environment most likely azure as IaaS . Now we are aware that WebDAV standard is stateless and hence it should not create any problems with cloud load balancer but what we are not sure about Milton and have few questions : .. . .. . 1 . Is Milton implemented WebDAV as it is do all the communication remains stateless I assume that it passes Authentication token with every request but I am not sure where is the token stored at server Does it store it in the database or some sort of cache etc . 2 . Do locking mechanism works fine if a load balance is used and there are 5-6 servers to handle the load Again where does Milton server store Lock Token Comment : - we have just tested milton against litnus tests and it passes most of it so it seems that it implements the basic webdav standard as it is . .. . Answer : I have never used Milton WebDAV before but from the looks of it it is used to modify and edit files on a server . However Azure s local-storage is not shared . Each instance is a completely seperate server . If you modify a file on 1 server it will not be replicated to the next . Azure works by uploading a deployment package . When a new instance needs to come up it uses the deployment package and starts a completely new server . From a your perspective they don t share anything in common . Because of this you will never know which server you are hitting . If you have a shared file storage system behind then it may be a different story . However that scenario looks odd from using Azure . Amazon EC2 with a shared EBS might do it though .", "Question : null .. . Answer : I am trying to use the Milton http : milton.io library with an Android project I am working on however I am having some issues with its dependency on HttpClient . I get the following in my stack-trace when the application crashes : .. . .. . Source code of lines : 190 https : github.com miltonio milton2 blob master milton-client src main java-io milton httpclient Host.java L190 and 152 https : github.com miltonio milton2 blob master milton-client src main java-io milton httpclient Host.java L152 . The app is targeting API 23 Marshmallow and I have tried using both of these Android ports of the HttpClient library in my build.gradle file separately . But I still get the error provided above when using both of these does anyone know what could be causing this Comment : stackoverflow.com a 32108524 2444099 http : stackoverflow.com a 32108524 2444099", "Question : We want to use Milton WebDav to transfer files in our web application which eventually is going to be deployed on cloud environment most likely azure as IaaS . Now we are aware that WebDAV standard is stateless and hence it should not create any problems with cloud load balancer but what we are not sure about Milton and have few questions : .. . .. . 1 . Is Milton implemented WebDAV as it is do all the communication remains stateless I assume that it passes Authentication token with every request but I am not sure where is the token stored at server Does it store it in the database or some sort of cache etc . 2 . Do locking mechanism works fine if a load balance is used and there are 5-6 servers to handle the load Again where does Milton server store Lock Token Comment : - we have just tested milton against litnus tests and it passes most of it so it seems that it implements the basic webdav standard as it is . .. . Answer : Sorry for the late comment the two most important aspects of webdav which affect load-balancing are digest-authentication tokens Nonce values and lock tokens . As the Resource implementor you get to control both of those . Lock tokens are typically stored in a database you must implement the methods on LockableResource which will do the persistence so will be shared across servers although its not uncommon to use memory based lock tokens in which case you need to find some way to share that information across servers . Digest nonces are only a consideration if you ve implemented DigestResource . The default NonceProvider uses a simple HashMap so this will not be shared across servers . But the interface is trivial so you can easily implement a database store . If your load-balancing solution uses sticky sessions then that won t be an issue because clients will go to the server which has their nonce . Note that Tomcat session replication won t help with the above issues because webdav clients typically dont support cookies so there is no Servlet session .", "Question : null .. . Answer : With our project we are trying to implement Milton in combination with a jetty based cloud . The problem we have is that the cloud slot can only be stopped and started we cannot change any configuration . We do have the ability to add libraries to the cloud node but we are having difficulties initializing Milton after the server has already started . My question is is there ay possibility to start initialize Milton after the Java server has already been started If not what makes it impossible to do so", "Question : I am in the process of testing a web dav enabled view my system using anumber of different clients . One particular client seems to do sometimes do strange things and I was wonder is this to be expected. . The log below shows how it has somehow mangled the path to the directory collection in webdav speak by including again the full path to the servlet again look at the last line . All other clients dont do this is this primarily because its a poorly coded client that is probably broken I have looked at the response log that the client makes available and the names are not mangled they make sense . and not .. . Answer : It is most likely the client . - what it looks like is that the server is replying with a fully qualified URL with scheme host and port http : 127.0.0.1 9000 but the client is treating it as a relative uri href - milton abc and prepending the info back on it . Returning href s like milton abc is often used but both are legal . Comment : Doh that makes perfect sense.. .", "Question : I m using milton server to support webdav protocol in my project but there is a problem . This is my upload PUT method code : .. . .. . and this is the output : .. . .. . How can i increase the read size of InputStream in milton server I can not change InputStream to any other type like BufferedInputStream In my local computer uploa speed is 27KB s and this is too slow .. . Answer : There s no reason why that code should be fast or slow . Bytes will be received at the rate they re provided by the network adapter and using a BufferedInputStream won t help because bytes are already effectively by the network adapter . I m very surprised to see local upload speed of 27KB s I ve never seen antthing that slow before . I just did a quick test on the milton server i m currently working on which does very complex processing of files including chunking and SHA1 calculation and it gave the following results : UPLOAD time 8541ms SIZE 82 954 392bytes bandwidth 9 712 491bytes sec .. . .. . How have you tested the upload speed was that from the client or at the server You can get apparently slow uploads sometimes when measured from the client because of high latency of all the PROPFIND requests the client does before and after the actual upload . That should not be a factor for large-files though Eg 50Mb or more . If you re testing with Win7 make sure you have cookie authentication enabled otherwise Windows will do every upload twice first without credentials then again with credentials . Brad Comment : Thanks Brad . The problem was from my local network . When I published my web application on a real server and test it from my local computer the problem was solved .", "Question : i have written a small grails webapp . I am using milton.io to access some content via webdav . So webdav is still working and i am able to put get delete files - and so on . But now i want to add authentication and authorization . And here is the problem : .. . .. . The Resource Interface gives me 2 methods : .. . .. . So my Resource classes implements the Resource Interface but the method authenticate is never called by the framework . Do i have to implement Auth Basic by my self My knowledge about milton is very poor . May be i forgot something cause my webdav client e.g . cadaver never asks for a username password . Thanks for any help Peter Waver .. . .. . Signature of my Resource Classes : .. . .. . And here is the builder to get the HttpManager .. . .. . And here the ResourceFactory .. . Answer : If you need Basic Auth - you have to enable it . So add the following line to the config method of the SMiltonConfig Class . Here S an example of the Resource authorise Method .. . .. . Hope it helps .. . .. . Florian Pfann", "Question : We are using Nexus to proxy remote maven repositories . It works well except with the maven repository of milton.io . If I add the repository to my maven settings.xml without using Nexus it works well artifacts are correctly pulled : .. . .. . Now if I use Nexus adding the repository as a Proxy repository it does not work . Nexus cannot pull the required artifacts : .. . .. . Any idea why Nexus cannot proxy this repository EDIT : If I look in Nexus log if have this : .. . .. . Note : the proxy repository has correctly been added to the public group . .. . Answer : I m seeing extremely poor performance from this server this request took nearly a minute to process : .. . .. . http : milton.io maven io milton milton-server-ce 2.6.4.0 milton-server-ce-2.6.4.0.jar .. . .. . So you re likely hitting the repository s default read timeout of 20 seconds in Nexus . Check the nexus.log file to see if there are timeout exceptions . If there are then increase the timeout in http-request settings optional in the repository s configuration . A timeout of 60 seconds with 3 retries seems like it might work . Comment : Yes at some point yesterday it had poor performance but when I tried it was quick . Tried again today and the requests are quick but I m still having problems to proxy the repository in Nexus .", "Question : I m testing Milton WebDAV API and I need to log when some document is opened . I can have it logging on Eclipse s console but can t make it put the message on a external file . Found several links here at SO and Google but none worked . I ve spent about 4h in this already . Any guesses Here s the situation tried to format as best as I could : .. . .. . log4j.properties .. . .. . DocumentResource.java .. . .. . Eclipse s console when execute get testfile on a WebDAV client .. . .. . 08 02 2013 18 : 03 : 15 com.ettrema.tutorial.milton.DocumentResource sendContent INFO : File testfile opened .. . .. . log.txt big content here http : pastebin.com raw.php i 5ejRyieS .. . .. . Thanks Comment : What you re saying is that while most of the log messages end up in log.txt the output from DocumentResource and only this ends up on the console Might you have more than one log4j.properties somewhere on the classpath Comment : Actually I m not interested in the contents that log.txt has now only those what I would like to log using log.info .. . which isn t logging on the file just on the console . .. . Answer : slf4j is just a wrapper for other loggers one of which is log4j that is used to log the stuff to the file the one is configured by log4j.properties . Most likely the rest of the system is using Log4J s API while your SLF4 is configure to log to the console . Make sure you have slf4j-log4j12.jar in your classpath not slf4j-simple one Comment : Tks for the tip I m going to check this out tomorrow Today is holiday Comment : Yeah slf4j-log4j12.jar is there .", "Question : I m testing Milton WebDAV API and I need to log when some document is opened . I can have it logging on Eclipse s console but can t make it put the message on a external file . Found several links here at SO and Google but none worked . I ve spent about 4h in this already . Any guesses Here s the situation tried to format as best as I could : .. . .. . log4j.properties .. . .. . DocumentResource.java .. . .. . Eclipse s console when execute get testfile on a WebDAV client .. . .. . 08 02 2013 18 : 03 : 15 com.ettrema.tutorial.milton.DocumentResource sendContent INFO : File testfile opened .. . .. . log.txt big content here http : pastebin.com raw.php i 5ejRyieS .. . .. . Thanks Comment : What you re saying is that while most of the log messages end up in log.txt the output from DocumentResource and only this ends up on the console Might you have more than one log4j.properties somewhere on the classpath Comment : Actually I m not interested in the contents that log.txt has now only those what I would like to log using log.info .. . which isn t logging on the file just on the console . .. . Answer : Just edit your log4j file to be something like this : .. . .. . If the logger settings arent being applied ie you re not seeing logs appear in your file then you probably have another log4j.properties file somewhere in your classpath which is being used instead of this one . Sometimes it can be included in jar files eek Comment : Hey Brad I m sure that isn t another .properties file anywhere but I m going to try your suggestion . Comment : It keeps logging just messages from org.hibernate.. . io.milton is not on the file . Comment : I realized now that your .properties last line references io.milton . Shouldn t it reference the DocumentResource.java package", "Question : When I try to curl using the -T option I get an empty reply : .. . .. . Anyone know the incantation The server works fine when connecting to it from the WebDAV client built into MacOSX . .. . Answer : By default curl sends Expect : Continue but unfortunately java web containers don t play nicely with the Expect header . The simplest answer is to instruct curl not to send that header : .. . .. . The better solution is to make expect : continue work but from the research i ve done it appears that depends on what web container you re using . Comment : Works perfectly . Thanks Brad ." ] }
[ "yes-answer-long", "yes-answer-short" ]
server-side
UNK_RELATION
websync@compact-framework@418
websync -- websync is an implementation of the bayeux specification commonly known as comet for the .net framework and iis.websync provides both the server implementation which handles processing of the incoming requests and a variety of comet clients and publishers which are used to send and receive data through the server component.components that communicate with websync are available for .net silverlight .net @placeholder and php .
{ "confidence": [ 80.41316223144531, 73.12437438964844, 63.23211669921875, 63.23211669921875, 62.338035583496094, 62.285308837890625, 60.86071014404297, 60.448307037353516, 58.99806213378906, 57.51426315307617, 56.70962142944336, 56.70962142944336, 56.411956787109375, 55.92955780029297, 55.87534713745117, 55.45777130126953, 54.271995544433594, 53.82364273071289, 52.80485153198242, 52.7286376953125, 52.19087219238281, 51.93391418457031, 51.64536666870117, 51.64536666870117, 51.64536666870117, 51.39118957519531, 50.680259704589844, 48.96656036376953, 48.80905532836914, 47.41516876220703, 47.126617431640625, 46.40114974975586, 46.226783752441406, 45.57405090332031, 45.45494842529297, 44.8238410949707, 44.8238410949707, 44.8238410949707, 44.8238410949707, 44.8238410949707, 44.8238410949707, 44.8238410949707, 42.54660415649414, 40.64892578125, 38.78014373779297, 37.86259460449219, 37.86259460449219, 32.88911437988281, 31.636083602905273, 31.454116821289062, 31.03459930419922, 30.896076202392578, 29.403099060058594, 29.22992706298828, 28.87614631652832, 28.632482528686523, 25.2381649017334, 25.22760772705078, 24.190610885620117, 23.402809143066406, 21.674137115478516, 21.532878875732422, 21.347368240356445, 21.271808624267578, 20.476354598999023, 19.826595306396484, 19.761817932128906, 19.469444274902344, 19.370105743408203, 19.166725158691406, 19.029781341552734, 18.976470947265625, 18.891714096069336, 18.891714096069336, 18.539756774902344, 18.418365478515625, 18.25927734375, 18.115985870361328, 18.021446228027344, 17.888242721557617, 17.72259521484375, 17.72259521484375, 17.71739959716797, 17.587133407592773, 17.5777587890625, 17.44843864440918, 17.164709091186523, 16.809961318969727, 16.63909912109375, 16.221527099609375, 16.09564971923828, 15.851717948913574, 15.826883316040039, 15.826883316040039, 15.826883316040039, 15.77981185913086, 15.523859024047852, 15.186501502990723, 15.018072128295898, 15.000446319580078 ], "content": [ "What is your experience working with Websync http : www.frozenmountain.com comet framework", "I m using WebSync in a .NET application where a client is making calls to connect subscribe etc to WebSync .", "The httpDirectPublish setting was for WebSync 3 .", "WebSync would be more difficult .", "I am completely new to WebSync .", "Following code is used for WebSync now I just want to replace it so that I can use XMPP instead if this WebSync .", "I m using WebSync http : www.frozenmountain.com websync from FrozenMountain .", "Is there a way of using Websync Publisher asynchronously", "I m using the WebSync server for the ajax push I intend to do .", "RE : passing data with a subscribe message you can use the ext parameter for that check out the documentation for ext here : frozenmountain.com websync support documentation http : www.frozenmountain.com websync support documentation clients javascript-using-subscribe", "For WebSync 4 this has been renamed to allowPublishers .", "Just an FYI this attribute is called allowPublishers in WebSync 4 .", "The documentation for WebSync 4 configuration is here : WebSync 4 Configuration Docs http : docs.frozenmountain.com websync4 class websync-configuration .. . .. . Your web.config snippet above should look like this for WebSync 4 : .. . .. . NOTE : The FM.WebSync.Server.InProcProvider is the default so you could technically omit that configuration .", "Does WebSync really require log4net", "As of WebSync 4 JSON-P is only used in IE7 and below .", "yes but the above code is enough to publish data using websync dll s .", "In WebSync 4 you can skip the .ashx handler altogether and just add a route for WebSync directly in Global.asax :", "I got a websync server on demand and registered a domain at www.hariwebsync.com and got the api-key .", "Future readers please note that the above comments are related to an older version of WebSync see our new documentation for general stuff docs.frozenmountain.com http : docs.frozenmountain.com and for server-side publishing see specifically docs.frozenmountain.com http : docs.frozenmountain.com class server-server-side-code-websync-methods", "After finishing the process in server webSync notifies to refreshSearchData function which is responsible for updating the client datasource .", "I ve found a solution for range update in the Kendo + WebSync .", "However WebSync 4 should automatically re-connect to the server after waking up .", "This error occurs when WebSync is using the JSON-P protocol for transfers .", "Meaning websync is on a different domain than your webpage is being served from .", "The reason your websync is not reading the web.config is because you are using deprecated settings .", "Channels are very cheap with WebSync even if there was a built-in way to send data to a specific user it would be implemented exactly in that manner .", "I guess if WebSync server doesn t then you could create separate channels for every user and then just push to that channel", "We need to deploy two servers IceLink and WebSync for that as listed here http : docs.frozenmountain.com icelink2 index.html class icelink-getting-started-creating-a-conference-10 ios-macosx But I want to use XMPP instead of WebSync .", "I m having a weird problem with websync 4.0 : it works fine on my local machine but when I deploy to a test server I get this error .. . .. . The thing is that I have 2 web-applications developed on .net : .. . .. . one for the website .. . one for the websync server .. . .. . In both web.config files I ve added .. . .. . On localhost where it works just fine both IIS applications point to localhost .", "Client : Html5 KendoUI WebSync Publish Subscriber .. . .. . Server : ASP.net MVC 3.0 .. . .. . Grid has particular operations for each row .", "I d like to explore using WebSync but I m turned off by the apparent dependency .", "I saw on some forums that in earlier versions of Websync they offered the possibility of using Publisher asynchronously see here https : groups.google.com forum topic websync 1uIiodIvP-E but for some reason that s not available in Websync 4.0 .. . .. . I ve tried publishing asynchronously like this .. . .. . But this resulted in a null reference exception on .. . .. . which I couldn t really reproduce in development .", "Just FYI we ve released a new version of WebSync WebSync 3 which has massively improved documentation api.frozenmountain.com http : api.frozenmountain.com and also adds more flexibility to the JavaScript framework by 1 arranging better namespaces so functionality is better segregated for example we have fm.network.jsonp fm.network.xhr fm.json etc and 2 supporting extensions api.frozenmountain.com class getting-started-server-extensions http : api.frozenmountain.com class getting-started-server-extensions .", "The easiest solution is to either split up your WebSync requests into small pieces ie : subscribe to only a few channels at a time in JavaScript or to subscribe to one master channel and then program a WebSync BeforeSubscribe event that watches for that channel and re-writes the subscription channel list .", "But when I try to send a message and invite both parties to join a private channel it only works on my local machine this message sending is done via a http-post to a method from the web site server which makes a publish to the websync server thus resulting in that error .", "So if you pack too much into a single request to WebSync you might exceed this 2kb upstream limit .", "I suspect because you have a key in you example source above you are using WebSync On-Demand", "If that s the case the only way to make a BeforeSubscribe event handler is to create a WebSync proxy .", "Ok . After further investigation it turns out that Websync wasn t reading the web.config file for some unknown reason .", "If you are using WebSync 3 you have to set a flag stayConnected to get the same behaviour :", "Does this message mean there is a problem in FM.dll WebSync or does it mean that I m missing something in my code that should catch this exception .", "How can I tell if this is an error on my part or if the problem is inside FM.dll WebSync", "I have created an iPhone application using phoneGap and i have implemented the Websync functionality using javascript all functionality are working fine but my problem is that When Iphone goes to sleep-mode than the app is still open and when you wakeup the phone websync doesnt work anymore .", "websync in my service was working properly but after some changes it stop working its not giving me any error message and all seems fine to me .", "I m not sure I m following what you re attempting 100 but if you re looking to override the data in the incoming message you re doing it correctly just make sure you specifiy EventContinue.OnComplete and call e.Complete in your method if not WebSync is set up to err on the side of performance and your server-side handler will execute asynchronously and won t change the data until it s too late : You can also just use NameOfYourHandlerClass .DirectPublish channel data to push data from the server-side .", "I ll leave it to someone else to post their thoughts on their use of WebSync but I figured I d at least attempt to address the cons .. . .. . 1 Relative to open-source solutions sure .", "If you are using WebSync On-Demand you don t need to specify any URLs : .. . .. . You should probably check out the Getting Started guide : http : docs.frozenmountain.com class on-demand-getting-started-connecting-a-client", "Additional Info : .. . .. . I m using log4net 1.2.13 installed over nuget .. . Frozen Mountain s WebSync 3.5.1.3 also note that this library directly references log4net 1.2.11 I used a bindingRedirect to 1.2.13 .. . NHibernate version 3.1.0.400 it was the first version to not use log4net 1.2.10 .. . .. . NHibernate can easily be upgraded if we think thats the problem .", "I don t think you ll find a comet solution that s faster or simpler to implement .", "The gentlemen at Frozen Mountain helped me solve the problem here http : groups.google.com group websync browse thread thread b173f2bf617f1ff0 .. . .. . It was hitting one of my MVC controller functions .", "When we do this operation on menu we send ajax request to MVC Controller to update the record in database and it will simply return true to client.Here we have used WebSync publisher- subscriber model to actually notify client when this request complete because these operations need sometime to process .", "actually websync does not allow publishing from outside the application so when i call publish method from the window service it does not work so we need to add this tag in the web-config file .. . .. . this will give permission to website to be published from outside", "Relative to other closed-source solutions we re pretty darn cheap some other comet solutions run 20k+ for a license and require support subscriptions .", "There is onReceive handler in the subscribe function but how do I send data to it from my server-side handler", "I m trying to implement comet in my ASP.Net MVC 2.0 project .", "Yeah as mentioned we re working on cleaning up the API documentation especially for the .NET client it ll be a lot better in the next release .", "To call Conference.Link you need to know the peer ID of who you re connecting to so may need your signalling server to send this data to us in my usage I actually connected to an intermediate server for recording and thus could use a hardcoded server peer ID .", "The comet code is triggering my MVC controller function with the HttpPost attribute even though the page doesn t refresh or appear to post .", "The server is supposed to interpret that URL-encoded string and send back the response as a JavaScript block that gets executed by the page .", "But what you pay in up front costs IMHO you ll easily make up for due to ease of use and time of implementation : .", "Both peers will generate ICE candidates with the OnLinkCandidate callback multiple times which must be sent to the other peer and registered with Conference.ReceiveCandidate .", "The server uses SQL Server 2008 the client SQL Server 2008 Express and initiates the pull subscription using RMO .", "JSON-P basically encodes the up-stream data your 9 channel subscriptions as a URL encoded string that is tacked onto a regular request to the server .", "I ve tried installing SQL Server 2008 Express on this server with no luck .", "From the error logs it seems certain SQL components are required on the web server to make this work - but I haven t been able to find which ones .", "All is fine when the IIS and the DB is on the same server - the problem occurs when the IIS is on a standalone web server .", "This library connects to a websockets and onRecieve handler of that channel recieves messages from server .", "So far I can say that .. . .. . Pros : .. . .. . Very straightforward and easy to use .. . Does not require any server configuration .. . .. . Cons : .. . .. . Expensive turned out to save us tons of money on bandwidth so not quite .. . Lack of documentation there are still few gotchas with WebSync3 but documentation is very nice and comprehensive .. . Javascript framework is not flexible enough turned out to be flexible enough although it took a while how to do everything we needed with WebSync2 only to see it to become one of the typical usage scenarios in WebSync3 authentication and such .. . .. . Conclusion : The framework is amazingly straightforward and flexible and allowed us to use it in ways that authors never even thought of .. . .. . As for the price : it turned out to be totally worth the money .", "You will need SQL Server Native Client SNAC .", "The framework is nice but a lot of things are not a part of the API although they are present in the DLLs I dug in with reflector .", "So for the moment since everyone else is stumped by this question as well I put a trap in my PHP to not even load this Javascript script if the browser is Internet Destroyer uhh I mean Internet Explorer .", "I wanted to send out data to a specific client on a channel using the Ajax Push mechanism .", "Short question : Can anyone tell me what the requirements especially when it comes to SQL components are for the web server used as web sync for merge replication", "So : Can anyone tell me what the requirements especially when it comes to SQL components are for the web server used as web sync for merge replication", "3 I d love to know what additional flexibility you d like to see in the javascript-framework was there something in particular you were looking for", "At any rate as a general answer to future readers you can use literally any method of communication between the clients .", "But as far as I m aware you won t need anything else on the IIS server .", "Background : .. . .. . I have a solution which uses merge replication to do one-way data sync with the client application of the solution .", "According to How to : Configure IIS for Web Synchronization http : msdn.microsoft.com en-us library ms152511 28v sql.105 29.aspx Microsoft SQL Server Connectivity Components and SQL Server Management Studio will need to be installed on the computer that is running IIS by using the SQL Server Installation Wizard .", "can be used in IE8+ .", "You must keep track of which peer this is meant for the offer answer and candidates are peer-specific .", "The production site is using log4net 1.2.10 which has some other issues However it does have it during normal use .", "So IE doesn t want do make regular XHR requests for security reasons .", "You mean overlays which will be reflected frequently according to video-streaming", "You could even email and copy-paste the information that s sent over the signalling channel something I actually did for my earliest WebRTC stuff to avoid the complexity of having a signalling server .", "Can t discuss specifics of the project but it would be nice if it was possible to pass data with a subscribe message for instance .", "Here s my design : I have say 10 clients subscribed to Channel 1 and 10 more subscribed to Channel 2 .", "I want to send it out to say client 7 on Channel 1 .", "In FM libraries AsyncException.AsyncThrow is used when an exception is thrown in an async callback .", "The data that gets exchanged is JSON but you shouldn t have to modify it in the typical usage .", "I am developing a video-streaming iOS app using Frozen mountain icelink library How can I add overlays to the screen which will be broadcasted to all other peers which are connected to the same session i.e overlay should be reflected in realtime", "From the website project I make a call via javascript to subscribe to a channel and it works fine on both my machine and the test machine .", "I want to send out an Ajax Push when some particular parameter is updated in my database .", "In Ajax Push I know I can send out the Push to all subscribers of Channel 1 .", "Is there any way to send out the Ajax Push to ONLY client 7 on Channel 1", "The request goes through Web Sync .", "So even if i have just 10 channels and 10 clients in each I wanted to know if you can do a push to just one specific client .", "CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 396 S2 INFO : DONE PROCESSING REQUEST", "Having 1000 channels is not a big deal recently I had a discussion with one user who had something like 10 000 channels per connected client which is pretty extreme to be fair but was working without a hitch .", "For future reference our docs now include this detail : docs.frozenmountain.com http : docs.frozenmountain.com class server-troubleshooting-asp.net-mvc" ] }
{ "confidence": [ 107.06455993652344, 99.72242736816406, 91.62725067138672, 90.33150482177734, 87.76911163330078, 85.76795959472656, 76.7931900024414, 76.20850372314453, 76.09996795654297, 75.19575500488281, 74.12541198730469, 71.17993927001953, 69.873291015625, 69.59762573242188, 65.53630828857422, 60.42345428466797, 59.98339080810547, 28.754444122314453, 28.651416778564453, 20.334897994995117 ], "content": [ "Question : What is your experience working with Websync http : www.frozenmountain.com comet framework Have you considered any alternatives before using it So far I can say that .. . .. . Pros : .. . .. . Very straightforward and easy to use .. . Does not require any server configuration .. . .. . Cons : .. . .. . Expensive turned out to save us tons of money on bandwidth so not quite .. . Lack of documentation there are still few gotchas with WebSync3 but documentation is very nice and comprehensive .. . Javascript framework is not flexible enough turned out to be flexible enough although it took a while how to do everything we needed with WebSync2 only to see it to become one of the typical usage scenarios in WebSync3 authentication and such .. . .. . Conclusion : The framework is amazingly straightforward and flexible and allowed us to use it in ways that authors never even thought of .. . .. . As for the price : it turned out to be totally worth the money . Plus the support is just beyond awesome . Comment : Just FYI we ve released a new version of WebSync WebSync 3 which has massively improved documentation api.frozenmountain.com http : api.frozenmountain.com and also adds more flexibility to the JavaScript framework by 1 arranging better namespaces so functionality is better segregated for example we have fm.network.jsonp fm.network.xhr fm.json etc and 2 supporting extensions api.frozenmountain.com class getting-started-server-extensions http : api.frozenmountain.com class getting-started-server-extensions . Hopefully that ll help with some concerns .. . Answer : I ll leave it to someone else to post their thoughts on their use of WebSync but I figured I d at least attempt to address the cons .. . .. . 1 Relative to open-source solutions sure . But what you pay in up front costs IMHO you ll easily make up for due to ease of use and time of implementation : . I don t think you ll find a comet solution that s faster or simpler to implement . Relative to other closed-source solutions we re pretty darn cheap some other comet solutions run 20k+ for a license and require support subscriptions . 2 Yeah I know that one . The examples and documentation cover the basics and it s enough to pull together a decent app but doesn t go into enough detail for more advanced scenarios etc . We re working on upgrading it . 3 I d love to know what additional flexibility you d like to see in the javascript-framework was there something in particular you were looking for Drop a note in the comments Comment : Glad to hear . The framework is nice but a lot of things are not a part of the API although they are present in the DLLs I dug in with reflector . Can t discuss specifics of the project but it would be nice if it was possible to pass data with a subscribe message for instance . Comment : Yeah as mentioned we re working on cleaning up the API documentation especially for the .NET client it ll be a lot better in the next release . RE : passing data with a subscribe message you can use the ext parameter for that check out the documentation for ext here : frozenmountain.com websync support documentation http : www.frozenmountain.com websync support documentation clients javascript-using-subscribe Comment : One more question . There is onReceive handler in the subscribe function but how do I send data to it from my server-side handler I have tried setting message.Data but with no result . Comment : I m not sure I m following what you re attempting 100 but if you re looking to override the data in the incoming message you re doing it correctly just make sure you specifiy EventContinue.OnComplete and call e.Complete in your method if not WebSync is set up to err on the side of performance and your server-side handler will execute asynchronously and won t change the data until it s too late : You can also just use NameOfYourHandlerClass .DirectPublish channel data to push data from the server-side . Comment : Future readers please note that the above comments are related to an older version of WebSync see our new documentation for general stuff docs.frozenmountain.com http : docs.frozenmountain.com and for server-side publishing see specifically docs.frozenmountain.com http : docs.frozenmountain.com class server-server-side-code-websync-methods", "Question : I m having a weird problem with websync 4.0 : it works fine on my local machine but when I deploy to a test server I get this error .. . .. . The thing is that I have 2 web-applications developed on .net : .. . .. . one for the website .. . one for the websync server .. . .. . In both web.config files I ve added .. . .. . On localhost where it works just fine both IIS applications point to localhost . From the website project I make a call via javascript to subscribe to a channel and it works fine on both my machine and the test machine . But when I try to send a message and invite both parties to join a private channel it only works on my local machine this message sending is done via a http-post to a method from the web site server which makes a publish to the websync server thus resulting in that error . Any ideas Any help would be much appreciated . Mihai .. . Answer : The reason your websync is not reading the web.config is because you are using deprecated settings . The httpDirectPublish setting was for WebSync 3 . For WebSync 4 this has been renamed to allowPublishers . The documentation for WebSync 4 configuration is here : WebSync 4 Configuration Docs http : docs.frozenmountain.com websync4 class websync-configuration .. . .. . Your web.config snippet above should look like this for WebSync 4 : .. . .. . NOTE : The FM.WebSync.Server.InProcProvider is the default so you could technically omit that configuration .", "Question : I m having a weird problem with websync 4.0 : it works fine on my local machine but when I deploy to a test server I get this error .. . .. . The thing is that I have 2 web-applications developed on .net : .. . .. . one for the website .. . one for the websync server .. . .. . In both web.config files I ve added .. . .. . On localhost where it works just fine both IIS applications point to localhost . From the website project I make a call via javascript to subscribe to a channel and it works fine on both my machine and the test machine . But when I try to send a message and invite both parties to join a private channel it only works on my local machine this message sending is done via a http-post to a method from the web site server which makes a publish to the websync server thus resulting in that error . Any ideas Any help would be much appreciated . Mihai .. . Answer : Ok . After further investigation it turns out that Websync wasn t reading the web.config file for some unknown reason . I ve managed to fix this by adding the following line in code : .. . .. . Where Config is actually fm.websync.server.config .. . .. . Hope this helps someone :", "Question : I m trying to implement comet in my ASP.Net MVC 2.0 project . I m using WebSync http : www.frozenmountain.com websync from FrozenMountain . My website is coded in C 4.0 and ASP.Net 4.0 . The comet code is triggering my MVC controller function with the HttpPost attribute even though the page doesn t refresh or appear to post . Is there a way to determine what is being posted and ignore that route in my global.asax.cs Please note I know how to ignore routes with MVC that is not the issue . Comment : can you post some sample code Comment : Does WebSync really require log4net I d like to explore using WebSync but I m turned off by the apparent dependency . It s not listed as a requirement but it is included in the download and the tutorial mentions it . Comment : @uosef - I d recommend contacting Jared at Frozen Mountain . He was very helpful with providing us with technical details . .. . Answer : The gentlemen at Frozen Mountain helped me solve the problem here http : groups.google.com group websync browse thread thread b173f2bf617f1ff0 .. . .. . It was hitting one of my MVC controller functions . I had to add this to my global.asax.cs Comment : For future reference our docs now include this detail : docs.frozenmountain.com http : docs.frozenmountain.com class server-troubleshooting-asp.net-mvc", "Question : I m trying to implement comet in my ASP.Net MVC 2.0 project . I m using WebSync http : www.frozenmountain.com websync from FrozenMountain . My website is coded in C 4.0 and ASP.Net 4.0 . The comet code is triggering my MVC controller function with the HttpPost attribute even though the page doesn t refresh or appear to post . Is there a way to determine what is being posted and ignore that route in my global.asax.cs Please note I know how to ignore routes with MVC that is not the issue . Comment : can you post some sample code Comment : Does WebSync really require log4net I d like to explore using WebSync but I m turned off by the apparent dependency . It s not listed as a requirement but it is included in the download and the tutorial mentions it . Comment : @uosef - I d recommend contacting Jared at Frozen Mountain . He was very helpful with providing us with technical details . .. . Answer : In WebSync 4 you can skip the .ashx handler altogether and just add a route for WebSync directly in Global.asax :", "Question : I am using Websync3 Javascript API and subscribing to approximately 9 different channels on one page . Firefox and Chrome have no problems but IE9 is throwing an alert error stating The request is too large for IE to process properly . Unfortunately the internet has little to no information on this . So does anyone have any clues as to how to remedy this .. . Answer : This error occurs when WebSync is using the JSON-P protocol for transfers . This is mostly just for IE cross-domain environments . Meaning websync is on a different domain than your webpage is being served from . So IE doesn t want do make regular XHR requests for security reasons . JSON-P basically encodes the up-stream data your 9 channel subscriptions as a URL encoded string that is tacked onto a regular request to the server . The server is supposed to interpret that URL-encoded string and send back the response as a JavaScript block that gets executed by the page . This works fine except that IE also has a limit on the overall request URL for an HTTP request of roughly 2kb . So if you pack too much into a single request to WebSync you might exceed this 2kb upstream limit . The easiest solution is to either split up your WebSync requests into small pieces ie : subscribe to only a few channels at a time in JavaScript or to subscribe to one master channel and then program a WebSync BeforeSubscribe event that watches for that channel and re-writes the subscription channel list . I suspect because you have a key in you example source above you are using WebSync On-Demand If that s the case the only way to make a BeforeSubscribe event handler is to create a WebSync proxy . Comment : As of WebSync 4 JSON-P is only used in IE7 and below . Newer techniques postMessage CORS WebSockets etc . can be used in IE8+ .", "Question : I am using IceLink library for peer to peer communication . We need to deploy two servers IceLink and WebSync for that as listed here http : docs.frozenmountain.com icelink2 index.html class icelink-getting-started-creating-a-conference-10 ios-macosx But I want to use XMPP instead of WebSync . Following code is used for WebSync now I just want to replace it so that I can use XMPP instead if this WebSync . .. . Answer : There is no question here . At any rate as a general answer to future readers you can use literally any method of communication between the clients . You could even email and copy-paste the information that s sent over the signalling channel something I actually did for my earliest WebRTC stuff to avoid the complexity of having a signalling server . You simply must use your signalling channel to exchange the following information I m using the C naming but other languages should have similar names but following the language conventions : .. . .. . 1 . One peer s offer generated via callback OnLinkOfferAnswer once you call Conference.Link is sent to the other peer . To call Conference.Link you need to know the peer ID of who you re connecting to so may need your signalling server to send this data to us in my usage I actually connected to an intermediate server for recording and thus could use a hardcoded server peer ID . 2 . That peer s answer generated via callback OnLinkOfferAnswer once you register the offer with Conference.ReceiveOfferAnswer is sent to the first peer and registered the same way . 3 . Both peers will generate ICE candidates with the OnLinkCandidate callback multiple times which must be sent to the other peer and registered with Conference.ReceiveCandidate . Note that this all occurs asynchronously so the ICE candidates could be generated before the answer is received . That is fine as IceLink will internally manage them . You must keep track of which peer this is meant for the offer answer and candidates are peer-specific . It s entirely up to your signalling library XMPP here to generate some kind of unique peer ID so that you can identify users you could do it yourself if your signalling library does not . The data that gets exchanged is JSON but you shouldn t have to modify it in the typical usage . The OfferAnswer and Candidate objects have FromJson and ToJson methods to handle the conversion .", "Question : I wanted to send out data to a specific client on a channel using the Ajax Push mechanism . Here s my design : I have say 10 clients subscribed to Channel 1 and 10 more subscribed to Channel 2 . I want to send out an Ajax Push when some particular parameter is updated in my database . I want to send it out to say client 7 on Channel 1 . In Ajax Push I know I can send out the Push to all subscribers of Channel 1 . Is there any way to send out the Ajax Push to ONLY client 7 on Channel 1 Thanks Thothathri Comment : Can you elaborate what you mean with ajax push Are you using some kind of lib Comment : I m using the WebSync server for the ajax push I intend to do . Comment : Alright . Have never heard of it so can t really answer it . But usually these push solutions usually got some concept to push data to specific users . I guess if WebSync server doesn t then you could create separate channels for every user and then just push to that channel Comment : Well I don t want to add like 1000 channels for 1000 users . I thought of that but its just a waste . So even if i have just 10 channels and 10 clients in each I wanted to know if you can do a push to just one specific client . Comment : Don t think it would be a problem from a performance point of view . But maybe from a convenient point of view. . depending on their api .. . Answer : You really do what do have a separate channel for each user . Channels are very cheap with WebSync even if there was a built-in way to send data to a specific user it would be implemented exactly in that manner . Having 1000 channels is not a big deal recently I had a discussion with one user who had something like 10 000 channels per connected client which is pretty extreme to be fair but was working without a hitch . Simply create a channel such as user username and use that to push to that user specifically and you ll be good to go .", "Question : I have created an iPhone application using phoneGap and i have implemented the Websync functionality using javascript all functionality are working fine but my problem is that When Iphone goes to sleep-mode than the app is still open and when you wakeup the phone websync doesnt work anymore . .. . Answer : iOS and other mobile-devices don t allow JavaScript to run in the background when the device is sleeping . Battery life would suffer tremendously if it did . However WebSync 4 should automatically re-connect to the server after waking up . If you are using WebSync 3 you have to set a flag stayConnected to get the same behaviour :", "Question : I got a websync server on demand and registered a domain at www.hariwebsync.com and got the api-key . In my javascript client i wrote .. . .. . to initialize the client . But when i am loading the html file i get an error page not displayed . It is not able to load the registered domain www.hariwebsync.com . Can someone explain what i am doing wrong here . I am completely new to WebSync . So please put up with me . .. . Answer : If you are using WebSync On-Demand you don t need to specify any URLs : .. . .. . You should probably check out the Getting Started guide : http : docs.frozenmountain.com class on-demand-getting-started-connecting-a-client", "Question : Is there a way of using Websync Publisher asynchronously Currently I m doing this .. . .. . The problem with this version is that when making the first Publish it takes somewhere around 2 seconds . I saw on some forums that in earlier versions of Websync they offered the possibility of using Publisher asynchronously see here https : groups.google.com forum topic websync 1uIiodIvP-E but for some reason that s not available in Websync 4.0 .. . .. . I ve tried publishing asynchronously like this .. . .. . But this resulted in a null reference exception on .. . .. . which I couldn t really reproduce in development . Any ideas on how to better approach this Thank you .. . Answer : Try running your code on a thread-pool thread : .. . .. . It s short-lived so you can use a thread from the CLR thread-pool .", "Question : I m using WebSync in a .NET application where a client is making calls to connect subscribe etc to WebSync . Somewhere along the execution of the code It s a big app I get the gray box popup saying the above error message . Because this is a big app how can I find where-in the application this is occurring The problem is that this application has a lot of threads . Does this message mean there is a problem in FM.dll WebSync or does it mean that I m missing something in my code that should catch this exception . If the latter how do I find where-in my code this may occur Thanks Here is the Call Stack to my error . How can I tell if this is an error on my part or if the problem is inside FM.dll WebSync FM.dll FM.AsyncException.AsyncThrow.AnonymousMethod 0 object unused + 0x47 bytes .. . mscorlib.dll System.Threading.ExecutionContext.RunInternal System.Threading.ExecutionContext executionContext System.Threading.ContextCallback callback object state bool preserveSyncCtx + 0x285 bytes mscorlib.dll System.Threading.ExecutionContext.Run System.Threading.ExecutionContext executionContext System.Threading.ContextCallback callback object state bool preserveSyncCtx + 0x9 bytes .. . mscorlib.dll System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem + 0x6f bytes mscorlib.dll System.Threading.ThreadPoolWorkQueue.Dispatch + 0x1ea bytes .. . Native to Managed Transition .. . Appdomain Transition .. . Native to Managed Transition Comment : Have you tried debugging the app I don t think we have enough information here to help you . Comment : I tried debugging but I get confused when I press F5 to continue and I notice other threads come into play . It s hard to finally reach the point where the above error occurs . I tried Josh s suggestion . I ll post the call stack . .. . Answer : In FM libraries AsyncException.AsyncThrow is used when an exception is thrown in an async callback . Try wrapping your FM callback code in try-catch blocks to catch exceptions e.g . : .. . .. . If you don t wrap your callback code in a try-catch block then the FM library will push the exception to a thread where it will be fail loudly rather than swallow hide it .", "Question : We have been implementing a web site with following technologies . Client : Html5 KendoUI WebSync Publish Subscriber .. . .. . Server : ASP.net MVC 3.0 .. . .. . Grid has particular operations for each row . For example we need to update the status of each row by clicking the operation menu after selecting the check boxes in particular rows . When we do this operation on menu we send ajax request to MVC Controller to update the record in database and it will simply return true to client.Here we have used WebSync publisher- subscriber model to actually notify client when this request complete because these operations need sometime to process . When we get the callback from Web Sync we update the kendo data grid as follows . As we have over 400k records in database for the grid data and we use paging this solution is a time consuming solution and it affects on the user-experience . Is there anyway to refresh the kendo-datasource with given dataitems ie.not total datasource . Grid range update or Are there any other solutions .. . Answer : I ve found a solution for range update in the Kendo + WebSync . After finishing the process in server webSync notifies to refreshSearchData function which is responsible for updating the client datasource . getSearchResultViewItem function returns the dataitem from the database and I ve updated the datasource from client-side . Comment : However I had to reset pagings region values by manually in the databsource as kendo re-initialize the datasource.At the same time I use databound event to bind those initial values . It is perfectly working", "Question : websync in my service was working properly but after some changes it stop working its not giving me any error message and all seems fine to me . but there must be some issue . i created the test page on my website but not working in that too . i am posting here that code please look and suggest . Comment : How can we possibly help with this There s no where near enough information here . Also if you changed something and now it doesn t work . . all the more reason to get used to the many MANY free source control options out there now for 5 user teams . Comment : yes but the above code is enough to publish data using websync dll s . .. . Answer : I solve the issue . actually websync does not allow publishing from outside the application so when i call publish method from the window service it does not work so we need to add this tag in the web-config file .. . .. . this will give permission to website to be published from outside Comment : Just an FYI this attribute is called allowPublishers in WebSync 4 .", "Question : I m using WebSync in a .NET application where a client is making calls to connect subscribe etc to WebSync . Somewhere along the execution of the code It s a big app I get the gray box popup saying the above error message . Because this is a big app how can I find where-in the application this is occurring The problem is that this application has a lot of threads . Does this message mean there is a problem in FM.dll WebSync or does it mean that I m missing something in my code that should catch this exception . If the latter how do I find where-in my code this may occur Thanks Here is the Call Stack to my error . How can I tell if this is an error on my part or if the problem is inside FM.dll WebSync FM.dll FM.AsyncException.AsyncThrow.AnonymousMethod 0 object unused + 0x47 bytes .. . mscorlib.dll System.Threading.ExecutionContext.RunInternal System.Threading.ExecutionContext executionContext System.Threading.ContextCallback callback object state bool preserveSyncCtx + 0x285 bytes mscorlib.dll System.Threading.ExecutionContext.Run System.Threading.ExecutionContext executionContext System.Threading.ContextCallback callback object state bool preserveSyncCtx + 0x9 bytes .. . mscorlib.dll System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem + 0x6f bytes mscorlib.dll System.Threading.ThreadPoolWorkQueue.Dispatch + 0x1ea bytes .. . Native to Managed Transition .. . Appdomain Transition .. . Native to Managed Transition Comment : Have you tried debugging the app I don t think we have enough information here to help you . Comment : I tried debugging but I get confused when I press F5 to continue and I notice other threads come into play . It s hard to finally reach the point where the above error occurs . I tried Josh s suggestion . I ll post the call stack . .. . Answer : If you have Break on All Exceptions turned on then once you start the debugger when the exception is thrown you ll be able to see and navigate the stack-trace . This should give you an idea of the path the code is on leading up to the exception . You can also interrogate the exception to check to see if the InnerException property has been set . From that information you should be able to determine what is causing the issue . If not post more details from the information you gather and you can get more help . Instruction for setting up Visual Studio to break on all exceptions : http : msdn.microsoft.com en-us library d14azbfh.aspx Comment : I added the call stack but none of my code appears in it . There are some transitions in there though . Comment : What do you mean by transitions Comment : If you look at the call stack that I added there are lines that say Native to Managed Transition . Comment : I ve been out of town Ray sorry for the delay . It looks like the problem is inside the FM.dll . The easiest solution is to grab the source project for the FM.dll include it in your dev project and then debug from there . That way you can break on the exact line causing the exception .", "Question : I have created an iPhone application using phoneGap and i have implemented the Websync functionality using javascript all functionality are working fine but my problem is that When Iphone goes to sleep-mode than the app is still open and when you wakeup the phone websync doesnt work anymore . .. . Answer : Generally speaking iOS apps are not allowed to maintain a permanent connections in the background . http : developer.apple.com library ios documentation iphone conceptual iphoneosprogrammingguide ManagingYourApplicationsFlow ManagingYourApplicationsFlow.html .. . .. . Keep in mind the following about inactive apps : .. . .. . Inactive The app is running in the foreground but is currently not receiving events . It may be executing other code though . An app usually stays in this state only briefly as it transitions to a different state . enter image description here http : i.stack.imgur.com AV3td.png Comment : Hi sEnC Thanks for your reply .", "Question : null .. . Answer : I have an asp.net website that is utilizing log4net . Due to several third party libraries like NHibernate there are several appenders across multiple threads . IIS is setup so there should be only one process . I have confirmed this by utilizing the process id in the filename . Web.config Excerpt : .. . .. . When recycling the app pool in IIS I sometimes get these errors : .. . .. . My question is are some of these error inevitable because its multi-threaded or if configured properly should they never occur . Additional Info : .. . .. . I m using log4net 1.2.13 installed over nuget .. . Frozen Mountain s WebSync 3.5.1.3 also note that this library directly references log4net 1.2.11 I used a bindingRedirect to 1.2.13 .. . NHibernate version 3.1.0.400 it was the first version to not use log4net 1.2.10 .. . .. . NHibernate can easily be upgraded if we think thats the problem . WebSync would be more difficult . Comment : Do you only get these errors when recycling the app pool and not during normal operation Comment : The production site is using log4net 1.2.10 which has some other issues However it does have it during normal use . My dev site hasn t shown the problem during normal use only during app pool recycling . However it hasn t really been tested enough to say with any real certainty .", "Question : Short question : Can anyone tell me what the requirements especially when it comes to SQL components are for the web server used as web sync for merge replication Background : .. . .. . I have a solution which uses merge replication to do one-way data sync with the client application of the solution . The server uses SQL Server 2008 the client SQL Server 2008 Express and initiates the pull subscription using RMO . The request goes through Web Sync . All is fine when the IIS and the DB is on the same server - the problem occurs when the IIS is on a standalone web server . From the error logs it seems certain SQL components are required on the web server to make this work - but I haven t been able to find which ones . I ve tried installing SQL Server 2008 Express on this server with no luck . So : Can anyone tell me what the requirements especially when it comes to SQL components are for the web server used as web sync for merge replication EDIT : .. . .. . I ve tried to install the native client but no luck . Perhaps I m interpreting the log wrong Here it is : .. . .. . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 174 S2 INFO : START PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 212 S1 ERROR : CoCreateInstance failed for CLSID SQLReplErrors hr 0x00000000 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 298 S2 INFO : Processed request type : MESSAGE TYPE UploadEmpty . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 396 S2 INFO : DONE PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 174 S2 INFO : START PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 212 S1 ERROR : CoCreateInstance failed for CLSID SQLReplErrors hr 0x00000000 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 298 S2 INFO : Processed request type : MESSAGE TYPE UploadEmpty . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 396 S2 INFO : DONE PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 174 S2 INFO : START PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 212 S1 ERROR : CoCreateInstance failed for CLSID SQLReplErrors hr 0x00000000 . CHttpListener .. . 2012 02 27 09 : 55 : 24.964 1060 258 S2 INFO : Exchange ID EF7753FB-F315-4FE3-8E8D-E77CCD366825 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 298 S2 INFO : Processed request type : MESSAGE TYPE SyncContentsUpload . ReconcilerHost 2012 02 27 09 : 55 : 24.964 1060 160 S1 ERROR : CoCreateInstance failed for CLSID CDatabaseReconciler hr 0x80040154 . ReconcilerHost 2012 02 27 09 : 55 : 24.964 1060 191 S1 ERROR : ReconcilerHost : : Initialize failed hr 0x80040154 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 315 S1 ERROR : Failure initializing ReconcilerHost hr 0x80040154 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 396 S2 INFO : DONE PROCESSING REQUEST .. . Answer : According to How to : Configure IIS for Web Synchronization http : msdn.microsoft.com en-us library ms152511 28v sql.105 29.aspx Microsoft SQL Server Connectivity Components and SQL Server Management Studio will need to be installed on the computer that is running IIS by using the SQL Server Installation Wizard .", "Question : Short question : Can anyone tell me what the requirements especially when it comes to SQL components are for the web server used as web sync for merge replication Background : .. . .. . I have a solution which uses merge replication to do one-way data sync with the client application of the solution . The server uses SQL Server 2008 the client SQL Server 2008 Express and initiates the pull subscription using RMO . The request goes through Web Sync . All is fine when the IIS and the DB is on the same server - the problem occurs when the IIS is on a standalone web server . From the error logs it seems certain SQL components are required on the web server to make this work - but I haven t been able to find which ones . I ve tried installing SQL Server 2008 Express on this server with no luck . So : Can anyone tell me what the requirements especially when it comes to SQL components are for the web server used as web sync for merge replication EDIT : .. . .. . I ve tried to install the native client but no luck . Perhaps I m interpreting the log wrong Here it is : .. . .. . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 174 S2 INFO : START PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 212 S1 ERROR : CoCreateInstance failed for CLSID SQLReplErrors hr 0x00000000 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 298 S2 INFO : Processed request type : MESSAGE TYPE UploadEmpty . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.901 1060 396 S2 INFO : DONE PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 174 S2 INFO : START PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 212 S1 ERROR : CoCreateInstance failed for CLSID SQLReplErrors hr 0x00000000 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 298 S2 INFO : Processed request type : MESSAGE TYPE UploadEmpty . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 396 S2 INFO : DONE PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 174 S2 INFO : START PROCESSING REQUEST CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 212 S1 ERROR : CoCreateInstance failed for CLSID SQLReplErrors hr 0x00000000 . CHttpListener .. . 2012 02 27 09 : 55 : 24.964 1060 258 S2 INFO : Exchange ID EF7753FB-F315-4FE3-8E8D-E77CCD366825 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 298 S2 INFO : Processed request type : MESSAGE TYPE SyncContentsUpload . ReconcilerHost 2012 02 27 09 : 55 : 24.964 1060 160 S1 ERROR : CoCreateInstance failed for CLSID CDatabaseReconciler hr 0x80040154 . ReconcilerHost 2012 02 27 09 : 55 : 24.964 1060 191 S1 ERROR : ReconcilerHost : : Initialize failed hr 0x80040154 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 315 S1 ERROR : Failure initializing ReconcilerHost hr 0x80040154 . CReplicationListenerWorker 2012 02 27 09 : 55 : 24.964 1060 396 S2 INFO : DONE PROCESSING REQUEST .. . Answer : You will need SQL Server Native Client SNAC . But as far as I m aware you won t need anything else on the IIS server .", "Question : I am using Websync3 Javascript API and subscribing to approximately 9 different channels on one page . Firefox and Chrome have no problems but IE9 is throwing an alert error stating The request is too large for IE to process properly . Unfortunately the internet has little to no information on this . So does anyone have any clues as to how to remedy this .. . Answer : So for the moment since everyone else is stumped by this question as well I put a trap in my PHP to not even load this Javascript script if the browser is Internet Destroyer uhh I mean Internet Explorer . Maybe a solution will come in the future though ." ] }
[ "yes-answer-long", "yes-answer-short" ]
compact-framework
UNK_RELATION
polymer-1.0@s@76
polymer-1 .0 -- polymer-1 .0 is the first production-ready release of google @placeholder web components library polymer .
{ "confidence": [ 61.47721862792969, 59.402584075927734, 56.410614013671875, 56.08170700073242, 55.390411376953125, 53.88304138183594, 53.26041030883789, 53.26041030883789, 53.22101593017578, 53.08698272705078, 52.970855712890625, 52.970855712890625, 52.68083953857422, 52.544471740722656, 52.54140090942383, 52.52754592895508, 52.1343879699707, 51.68156433105469, 51.68156433105469, 51.68156433105469, 51.68156433105469, 51.68156433105469, 51.42295837402344, 51.379295349121094, 51.379295349121094, 51.19910430908203, 51.19910430908203, 51.19910430908203, 51.19910430908203, 51.19910430908203, 51.19910430908203, 51.141090393066406, 50.635257720947266, 50.635257720947266, 50.30662155151367, 49.971744537353516, 49.971744537353516, 49.971744537353516, 49.789276123046875, 49.789276123046875, 49.789276123046875, 49.789276123046875, 49.62025833129883, 49.62025833129883, 49.62025833129883, 49.62025833129883, 49.44080352783203, 49.2097053527832, 48.77214813232422, 48.64750671386719, 48.618614196777344, 48.43244171142578, 48.430755615234375, 48.430755615234375, 48.430755615234375, 48.430755615234375, 48.430755615234375, 48.430755615234375, 48.430755615234375, 48.430755615234375, 48.430755615234375, 48.41374588012695, 48.39289855957031, 48.39289855957031, 48.39289855957031, 48.39289855957031, 48.39289855957031, 47.858760833740234, 47.767303466796875, 47.727970123291016, 47.727970123291016, 47.727970123291016, 47.727970123291016, 47.56953430175781, 47.56953430175781, 47.56953430175781, 47.56953430175781, 47.2390022277832, 47.21459197998047, 46.98996353149414, 46.85190963745117, 46.85190963745117, 46.85190963745117, 46.85190963745117, 46.68667984008789, 46.68667984008789, 46.63018035888672, 46.513397216796875, 46.5006103515625, 46.5006103515625, 46.5006103515625, 46.5006103515625, 46.5006103515625, 46.5006103515625, 46.234989166259766, 46.234989166259766, 46.234989166259766, 45.87742614746094, 45.65138626098633, 45.50822830200195 ], "content": [ "It works with Polymer 1.x .", "Here https : github.com Polymer polymer issues 1778 and here https : github.com Polymer polymer issues 1796 are the relevant discussions .", "link href polymer-project.org 1.0 samples components polymer http : www.polymer-project.org 1.0 samples components polymer polymer.html quot rel import", "I went ahead and posted the issue in the polymer repo to see if the reason why the original code didn t work was a bug or a code problem : github.com Polymer polymer issues 1821 https : github.com Polymer polymer issues 1821", "app-controller dosen t work with polymer 1.x", "Custom Element : .. . .. . Usage : .. . .. . I ve looked at the following resources without help : .. . .. . Polymer : How to watch for change in content properties https : stackoverflow.com questions 24699624 polymer-how-to-watch-for-change-in-content-properties .. . .. . Polymer 1.0 template bind ref equivalent https : stackoverflow.com questions 30516697 polymer-1-0-template-bind-ref-equivalent .. . .. . Data-binding between nested polymer-elements https : stackoverflow.com questions 23522037 data-binding-between-nested-polymer-elements .. . .. . https : github.com grappendorf grapp-template-ref .. . .. . https : github.com Trakkasure dom-bindref .. . .. . https : github.com Polymer polymer issues 1852 .. . .. . https : github.com Polymer polymer pull 2196 .. . .. . .. . .. . Update 2016-02-03 PR 2196 https : github.com Polymer polymer pull 2196", "I am new to polymer .", "Hopefully the Polymer devs respond .", "A similar to my question is posted here http : stackoverflow.com questions 30836412 polymer-1-0-injectboundhtml-alternative which helped me to get a better appreciation for the scope of the problem especially with the reference to Polymer 0.5 injectBoundHTML .", "First How to replicate that inside Polymer element", "Polymer is built on top of Web Components - so this should be compatible .", "You need to wait until the polymer-elements web components are loaded .", "This syntax is not available in Polymer 0.8+ anymore was available in version 0.5 https : docs-05-dot-polymer-project.appspot.com 0.5 docs polymer expressions.html filters .", "Checkout Polymer Starter Kit https : developers.google.com web tools polymer-starter-kit .", "This is Polymer 1.0 .", "http : stackoverflow.com questions 30781500 how-to-use-dom-repeat-with-objects-instead-of-arrays-in-polymer-1-0", "It s the exact same question : Localization Internationalization for Polymer 1.0 http : stackoverflow.com questions 31243064 localization-internationalization-for-polymer-1-0 .. . .. . Polymer has dropped support for i18n apparently and has moved to use format.js with its app-localize-behavior component .", "Is there a way of error tracking in Polymer", "this point to the function but not the polymer object .", "I m new to Polymer .", "I have Polymer 1.0 .", "@Ahemed Polymer is new and experimental .", "In Polymer 0.5 the advice on globals was as outlined in this question answer : .. . .. . Polymer global-variables http : stackoverflow.com questions 24867741 polymer-global-variables 24876397 24876397 .. . .. . However in Polymer 1.0 this doesn t seem to work .", "files to get official package pub.dartlang of the polymer and polymer-elements .", "I opened a GitHub issue for this : https : github.com Polymer polymer issues 2660", "It is not working for webpages built using Polymer .", "I am creating a Polymer app .", "I ve created a new Polymer Project .", "I think it is an obscure trait of Polymer .", "What s the Polymer 1.0 equivalent to injectBoundHTML", "This is the deepest level for extending Polymer Elements .", "I m testing if google polymer works on ie9 .", "Check this forum post at the bottom : https : forums.meteor.com t polymer-1-0-and-iron-router-or-flow-router 5148 16", "Here is a follow on question http : stackoverflow.com questions 31632661 polymer-1-0-what-could-be-causing-this-error-uncaught-typeerror-this-is-not .", "Longer stacktrace for SEO : .. . .. . Uncaught TypeError : this . isRTL is not a function get localeHorizontalAlign @ iron-dropdown.html : 306 updateOverlayPosition @ iron-dropdown.html : 461 positionTargetChanged @ iron-dropdown.html : 405 observerEffect @ polymer.html : 1562 effectEffects @ polymer.html : 1405 propertySetter @ polymer.html : 1389setter @ polymer.html : 1468attached @ iron-fit-behavior.html : 222 invokeBehavior @ polymer-micro.html : 433 doBehavior @ polymer-micro.html : 426 anonymous function @ polymer-micro.html : 210 makeReady @ polymer-micro.html : 111 anonymous function @ polymer-micro.html : 117 polymer-mini.html : 2046 Uncaught TypeError : Cannot read property getWidth of undefined anonymous function @ app-drawer-layout.html : 189complete @ polymer-mini.html : 2085Debouncer.boundComplete @ polymer-mini.html : 2062 atEndOfMicrotask @ polymer-mini.html : 2040window.MutationObserver.observe.characterData @ polymer-mini.html : 2055", "Does the use of vulcanize https : github.com Polymer vulcanize it concatenates the JS and Polymer elements into one file provide an advantage", "If so you might run into this issue https : github.com Polymer polymer issues 1839 .", "edit : .. . .. . Per https : github.com Polymer polymer issues 1504 : .. . .. . No near-term plans to support this .", "New to Polymer here .", "Re jekyll-polymer requirement .", "Is this the expected behavior in Polymer", "im new in Polymer Java .", "Here is an example Polymer element that does this .", "I have the following polymer element .", "Is Polymer v1.0 compatible with phonegap-build", "Phonegap at this time does NOT support polymer .", "What is Version 2 of Polymer Starter Kit is that the next release of the starter kit", "This is another github repo where-in Blaze and Spacebars are being replaced with Polymer @ github.com synka meteor-polymer https : github.com synka meteor-polymer .", "Problem 1 .. . .. . You re using the Polymer firebase-auth element to authenticate with Firebase .", "If you have two polymer-elements of the same type it ll place a -0 prefix on the first one and a -1 prefix on the second one .", "Or do I have to use the raw google chart library instead and avoid use of the polymer web-component", "I created a project using the Polymer Starter Kit PSK https : developers.google.com web tools polymer-starter-kit .", "We use Polymer to build a local app .", "I have created two Polymer custom elements .", "Has anyone successfully used x3dom with polymer", "How.. . with Polymer Page.js is it possible to replicate this type of functionality", "I m trying to test the localization feature in Polymer .", "Is there one built-in or planned in the paper or iron Polymer controls", "Seems to be a problem with the interaction between angular 2 and polymer .", "Please note that this is an issue only in Polymer 1.0 .", "Presumable polymer now gets the feature like tomorrow : -", "Polymer in general and this question in particular deal with web apps .", "github.com Polymer vulcanize issues 12 https : github.com Polymer vulcanize issues 12", "I am currently learning polymer and I am struggling with one of the example on the Polymer website .", "There is github.com polymer observe-js https : github.com polymer observe-js so I think it will do the job .", "Polymer.push prototype https : github.com Polymer polymer blob 3e96425bf0e0ba49b5f1f2fd2b6008e45a206692 src standard notify-path.html L373 may help maybe .", "I m using the Polymer Starter Kit https : github.com PolymerElements polymer-starter-kit .", "The Polymer 1.0 documentation states : .. . .. . The path syntax doesn t support array-style accessors such as users 0 .name .", "I managed to reproduce this issue or a close variant without using Polymer just the generic web components APIs .", "Is your polymer and the elements up-to-date", "Is there a way to write something like this in Polymer", "How do i do it in Polymer", "I have not worked with polymer before", "Is this even possible in Polymer", "I tried meteor and polymer .", "I m new to programming and to Polymer .", "Settings : Using Polymer 1.0 .", "Which brings me to outer-clicking with Polymer 1.x .. . .. . Most examples found on SE cover using existing events in Polymer modules but I couldn t find anything that closely does what I m looking for .", "As of Polymer-CLI v0.11.0 there s no built-in way to filter out files from the bundle but it s a requested feature https : github.com Polymer polymer-cli issues 241 .", "I have tried the ember-polymer ember-cli-polymer and ember-cli-polymer-toolchain addons on npm for emebr-cli and none have worked .", "After using the Polymer CLI there is a generated polymer.json file .", "What is the recommended way of implementing this pattern in Polymer 1.0", "Am I mssing any jquery+polymer gotcha", "More people monitor dart than dart-polymer .", "I m building a mid sized app with Polymer and used the Polymer Starter Kit to kick things off which uses page.js https : visionmedia.github.io page.js for routing .", "I am trying to create an app using Polymer app elements based on the polymer-cli application generated using the app-drawer-template .", "This website gives a good guide for doing it without an addon : .. . .. . http : www.programwitherik.com how-to-add-polymer-to-your-ember-project .. . .. . Searching http : www.emberaddons.com query polymer shows four results ember-cli-polymer-toolchain https : www.npmjs.com ember-cli-polymer-toolchain looks most promising with ember-polymer https : www.npmjs.com package ember-polymer and ember-cli-polymer https : www.npmjs.com ember-cli-polymer also possible - although neither have been updated in the last year .", "Note : This question is tagged polymer because the Polymer library is used to generate the Javascript . .. . .. . This question is about two different but related problems dealing with Firebase security .", "Polymer 1.0 has the utility function importHref href onLoad onError on every Polymer component .", "I am setting out to learn Polymer WebComponents and am starting with the Polymer-Starter-Kit .", "from polymer : 1258 polymer-mini : 964 .. . .. . It doesn t seem to matter what the date transform is if the value block is there it fails .", "In the Polymer Starter Kit index.html seems to behave very much like a Polymer component such as binding to properties in app.js .", "I have several polymer paper-input https : elements.polymer-project.org elements paper-input elements on a polymer app .", "The Polymer team announced on Twitter https : twitter.com polymer status 701838086150295552 that they are doing some work on Polygit .", "I was trying to do polymer web-component-tester sample .", "I installed web-component-tester for my polymer application .", "I am new to both Polymer and Leaflet s web-component .", "I do not know the architecture of Polymer well enough to know : .. . .. . 1 . the best way and place in life-cycle callbacks", "I did a quick test and found that you must call x3dom.reload on your ready polymer event handler .", "It s closed in latest polymer commit ." ] }
{ "confidence": [ 74.96422576904297, 70.99650573730469, 69.84423828125, 69.14856719970703, 68.8362808227539, 67.99884033203125, 66.74717712402344, 66.1158447265625, 65.56620788574219, 64.60023498535156, 64.58815002441406, 64.10301208496094, 63.95018005371094, 63.23533630371094, 62.749961853027344, 62.58399200439453, 62.55613708496094, 62.347389221191406, 62.299461364746094, 62.20021057128906 ], "content": [ "Question : In Polymer 0.5 the advice on globals was as outlined in this question answer : .. . .. . Polymer global-variables http : stackoverflow.com questions 24867741 polymer-global-variables 24876397 24876397 .. . .. . However in Polymer 1.0 this doesn t seem to work . Change notifications are not automatically generated on the underlying model they are generated on the dom-module instead which means that change notifications will be generated on only one of the app-globals . What is the recommended way of implementing this pattern in Polymer 1.0 Comment : This is really an issue . I suppose we need to use an external variable observing solution and call this.notifyPath in the element manually . Is there any lightweight popular object observing framework Comment : There is github.com polymer observe-js https : github.com polymer observe-js so I think it will do the job . I wonder if it will be supported . I guess they should write a tutorial on what to use for this situation . Comment : Bit late to comment but I was wondering what exactly is your use-case I too am in the midst of upgrading a fairly complex 0.5 app to 1.0 and found that I could reorganise using pure data-binding instead . Comment : @zerodevx : Yes in the end I changed my app to use pure data-binding too . However this question is still interesting to me . .. . Answer : I ve extended Etherealones solution to work as a Behavior and to extend Polymers set and notifyPath methods to trigger the updates automatically . This is as close as i could get to a true databinding across components elements : .. . .. . globals-behavior.html : .. . .. . And in all polymer-elements that should have access to the globals variable : .. . .. . Examples : .. . .. . 1 . I have posted a full example as a Gist on Github https : gist.github.com tobiasstrebitzer 1b13fb5180063f7606cd .. . 2 . Here s a snippet to see it in action : .. . .. . .. . DOCTYPE html .. . html .. . head .. . title Globals Behavior Example title .. . link rel import href rawgit.com Polymer polymer master polymer.html .. . dom-module id globals-enabled-element .. . template .. . input type text value globals.my variable : : input .. . template .. . script .. . var instances .. . var dataGlobal .. . .. . var GlobalsBehaviour .. . .. . properties : .. . globals : .. . type : Object .. . notify : true .. . value : dataGlobal .. . .. . .. . .. . ready : function .. . var setOrig this.set .. . var notifyPathOrig this.notifyPath .. . this.set function .. . setOrig.apply this arguments .. . if arguments 0 .split . 0 globals .. . this.invokeInstances notifyPathOrig arguments .. . .. . .. . this.notifyPath function path value .. . notifyPathOrig.apply this arguments .. . if arguments 0 .split . 0 globals .. . this.invokeInstances notifyPathOrig arguments .. . .. . .. . .. . .. . invokeInstances : function fn args .. . var i .. . for i 0 i instances.length i++ .. . instance instances i .. . if instance this .. . fn.apply instance args .. . .. . .. . .. . .. . attached : function .. . instances.push this .. . .. . .. . detached : function .. . var i .. . i instances.indexOf this .. . if i 0 .. . instances.splice i 1 .. . .. . .. . .. . script .. . script .. . Polymer .. . is : globals-enabled-element .. . behaviors : GlobalsBehaviour .. . .. . script .. . dom-module .. . head .. . body .. . template is dom-bind .. . p This is our first polymer element : p .. . globals-enabled-element id element1 globals-enabled-element .. . p And this is another one : p .. . globals-enabled-element id element2 globals-enabled-element .. . template .. . body .. . html Comment : This is nice . Maybe find a way for push pop shift unshift and splice too Polymer.push prototype https : github.com Polymer polymer blob 3e96425bf0e0ba49b5f1f2fd2b6008e45a206692 src standard notify-path.html L373 may help maybe . There is an internal notifySplice apparently . No idea how stable is that interface though . Comment : Also I d rather provide the global variable to element myself maybe you should expect the variable name globals and use console.warn in Behavior.ready if it does not exist . A single global global does not sound good . Comment : I agree - implementing it as a behavior suggests that it s ready to be used by different components but as far as I can tell that is not the case here .", "Question : Ok I m new to Polymer after seeing the main page and Google IO 2016 video I wanted to try it out and right now I created a basic web application with it . I managed to get it build and running it through the polymer serve command but now that I want to release it to a production environment I have an nginx cluster how do I build the application to just a bunch of static website files I executed polymer build and I see the build folder and it contains 2 folders : bundled and unbundled and inside them there are the bower components src and test folders as well as other stuff for running it through polymer serve but there s not a build dist of build static folder that I can copy into nginx so the application is served through it . BTW what I mean about a dist folder is without a readme bower.json test bower components etc . just the pure needed HTML CSS JS etc files that need to be served through nginx or any other web server as static file web content . I went through the documentation https : www.polymer-project.org 1.0 docs tools polymer-cli but there s no details on how to do such task . Any suggestions on how to build a static content folder for serving my polymer web app through nginx Thanks .. . Answer : As of Polymer-CLI v0.11.0 there s no built-in way to filter out files from the bundle but it s a requested feature https : github.com Polymer polymer-cli issues 241 . Also the build output currently includes extraneous files https : github.com Polymer polymer-cli issues 265 a bug such as the test directory . As an alternative you could use Polymer Starter Kit 1.3.0 https : github.com PolymerElements polymer-starter-kit releases tag v1.3.0 whose dist folder doesn t include the extra files although it does include required bower components as-is .", "Question : In polymer 1.2.3 Is it possible for a dom-repeat to use content as a template and bind values to the elements provided Custom Element : .. . .. . Usage : .. . .. . I ve looked at the following resources without help : .. . .. . Polymer : How to watch for change in content properties https : stackoverflow.com questions 24699624 polymer-how-to-watch-for-change-in-content-properties .. . .. . Polymer 1.0 template bind ref equivalent https : stackoverflow.com questions 30516697 polymer-1-0-template-bind-ref-equivalent .. . .. . Data-binding between nested polymer-elements https : stackoverflow.com questions 23522037 data-binding-between-nested-polymer-elements .. . .. . https : github.com grappendorf grapp-template-ref .. . .. . https : github.com Trakkasure dom-bindref .. . .. . https : github.com Polymer polymer issues 1852 .. . .. . https : github.com Polymer polymer pull 2196 .. . .. . .. . .. . Update 2016-02-03 PR 2196 https : github.com Polymer polymer pull 2196 Comment : @btelles See my m moire below . .. . Answer : FWIW it looks like the following works just as well as solution 1 and adds notify paths and automatic binding changing etc to it : .. . .. . Then just use this :", "Question : Yet another attempt to marry Polymer with ES6 classes . And it almost works except a wct test failing randomly on a polymer component with an imported es6 class by systemjs . As far as I understand this happens because the script containing class definition gets loaded after mocha executed the test . The polymer component consists of two parts - html and javascript to compile latter to es5 .. . .. . html : .. . .. . javascript : .. . .. . This seems to work quite stable in the browser at least when loaded from localhost . But the only thing which fixes the test is delaying Polymer s ready call : .. . .. . which means at some point all this will fail in browser too maybe when serving not from the localhost . I m thinking about getting somehow to the system-register s promises and making something similar to HTMLImports.whenDocumentReady but I still don t have clear understanding of how all this works . So any ideas and suggestions are highly appreciated The sample app is on github : .. . .. . To make it succeed more often than fail - change verbose to true in wct.conf.js . kind of update : How to import system js SFX library http : stackoverflow.com questions 31882316 how-to-import-system-js-sfx-library .. . Answer : It s possible to use Polymer SystemJS and TypeScript like ES6 but with added Polymer-friendly syntax together in a very nice way also handling HTML imports using SystemJS . That does involve a timing issue and I ve published a small shim https : github.com charto charto-polymer-shim that first waits from webcomponents.js to load and catches its ready event before other code gets a chance to see it then it loads Polymer and finally all other components and TypeScript code . Then it dispatches the event again so Polymer finishes initializing itself . Here s an article about combining the technologies http : blog.charto.net typescript Taming-Polymer-with-SystemJS-and-TypeScript-part-1 with the mentioned solution downloadable code and a demo .", "Question : In polymer 1.2.3 Is it possible for a dom-repeat to use content as a template and bind values to the elements provided Custom Element : .. . .. . Usage : .. . .. . I ve looked at the following resources without help : .. . .. . Polymer : How to watch for change in content properties https : stackoverflow.com questions 24699624 polymer-how-to-watch-for-change-in-content-properties .. . .. . Polymer 1.0 template bind ref equivalent https : stackoverflow.com questions 30516697 polymer-1-0-template-bind-ref-equivalent .. . .. . Data-binding between nested polymer-elements https : stackoverflow.com questions 23522037 data-binding-between-nested-polymer-elements .. . .. . https : github.com grappendorf grapp-template-ref .. . .. . https : github.com Trakkasure dom-bindref .. . .. . https : github.com Polymer polymer issues 1852 .. . .. . https : github.com Polymer polymer pull 2196 .. . .. . .. . .. . Update 2016-02-03 PR 2196 https : github.com Polymer polymer pull 2196 Comment : @btelles See my m moire below . .. . Answer : Use the iron-list element as example . Here it is grabbing the passed template element https : github.com PolymerElements iron-list blob 9909b73a00ecc91fb957232f7bc66b59435d66ad iron-list.html L830 . The templatizer mixin is used AFAIK to implement the binding to the passed template it s also used by template is dom-repeat Comment : Thanks for the advice Gunter although I ve opted to write up a more detailed answer instead due to the complexity of the problem .", "Question : Polymer 1.0 is released recently and I can download the elements la carte at the elements.polymer-project.org https : elements.polymer-project.org site but I can t find an easy link-to download everything in one big zip file Any idea where they are hiding it Comment : Checkout Polymer Starter Kit https : developers.google.com web tools polymer-starter-kit . .. . Answer : You can download the Polymer Starter Kit https : github.com polymerelements polymer-starter-kit releases for beginners that includes almost all the elements . And download the missing elements as a ZIP file as suggested here https : elements.polymer-project.org guides using-elements installing-from-zip-files . Missing elements : .. . .. . Google Web Components .. . Gold Elements", "Question : null .. . Answer : It s the exact same question : Localization Internationalization for Polymer 1.0 http : stackoverflow.com questions 31243064 localization-internationalization-for-polymer-1-0 .. . .. . Polymer has dropped support for i18n apparently and has moved to use format.js with its app-localize-behavior component . So far all the examples work with data-binding . But I need to set an element s attribute through JavaScript s setAttribute method. . How can I achieve this", "Question : In polymer 1.2.3 Is it possible for a dom-repeat to use content as a template and bind values to the elements provided Custom Element : .. . .. . Usage : .. . .. . I ve looked at the following resources without help : .. . .. . Polymer : How to watch for change in content properties https : stackoverflow.com questions 24699624 polymer-how-to-watch-for-change-in-content-properties .. . .. . Polymer 1.0 template bind ref equivalent https : stackoverflow.com questions 30516697 polymer-1-0-template-bind-ref-equivalent .. . .. . Data-binding between nested polymer-elements https : stackoverflow.com questions 23522037 data-binding-between-nested-polymer-elements .. . .. . https : github.com grappendorf grapp-template-ref .. . .. . https : github.com Trakkasure dom-bindref .. . .. . https : github.com Polymer polymer issues 1852 .. . .. . https : github.com Polymer polymer pull 2196 .. . .. . .. . .. . Update 2016-02-03 PR 2196 https : github.com Polymer polymer pull 2196 Comment : @btelles See my m moire below . .. . Answer : TLDR .. . .. . Solution 2 while a little more verbose seems to work best . It also allows you to dynamically choose your template perhaps based on a model s attributes . See Solution 2 : Advanced Example .. . .. . .. . .. . .. . Backstory .. . .. . A Lot of stuff is happening in this simple example including templatizing getting content between shadow shady and light doms and of course data-binding . This question provided some insight but without Polymer 0.5 s injectBoundHtml it wasn t really workable Using template defined in light dom inside a Polymer element https : stackoverflow.com questions 21522118 using-template-defined-in-light-dom-inside-a-polymer-element 21532931 21532931 . The problem being that our data-bindings seem to get lost AFAIK when we try to copy an element using innerHTML to our template . So without that we can t create our template on the fly with data-bindings . Thus both solutions wrap the content in a template ahead of time this caused the html to be inert and allows Polymer to data-bind at the appropriate time http : www.html5rocks.com en tutorials webcomponents template . If you really want to understand everything I d recommended reading the Polymer src for lib template dom-repeat.html lib template templatizer.html lib annotations annotations.html 1500 lines . Solution 1 - .. . .. . See btelle s answer below https : stackoverflow.com questions 34645114 polymer-dom-repeat-binding-to-content 34753418 answer-34753418 for an improved solution 1 . Note this approach causes dom-repeat to not render content automatically so we call render manually . Element .. . .. . Usage .. . .. . .. . .. . .. . Solution 2 .. . .. . Note that the usage of this varies from element 1 in that the template must have an is dom-template attribute . Helper Element .. . .. . Slightly modified from this PR : https : github.com Polymer polymer pull 2196 originally based on https : github.com grappendorf grapp-template-ref .. . .. . Element .. . .. . Usage .. . .. . Advanced Element .. . .. . Usage does not change from above . What we do here is introduce a level of indirection allowing us to wrap a template passed to our element in our example with an overlay . Comment : Just great . . Comment : upvoted just for your dedication :", "Question : null .. . Answer : In an existing CMS so to say where I m able to create templates via editor I m trying to include polymer and use its components . I do not have direct access to head tag so I do it this way : .. . .. . .. . script function prependScript pathToScript .. . var head document.getElementsByTagName head 0 .. . var js document.createElement script .. . js.type text javascript .. . js.src pathToScript .. . head.insertBefore js head.firstChild .. . .. . prependScript https : www.polymer-project.org 1.0 components webcomponentsjs webcomponents.min.js 20150828 .. . script .. . .. . When I preview my page it gives a console error : .. . .. . Uncaught InvalidStateError : Failed to execute dispatchEvent on EventTarget : The event provided is null . anonymous function @ webcomponents.js : 7026 .. . .. . Which is here I marked it with double asterisk not initially in code : .. . .. . .. . function bootstrap .. . upgradeDocumentTree window.wrap document .. . window.CustomElements.ready true .. . var requestAnimationFrame window.requestAnimationFrame function f .. . setTimeout f 16 .. . .. . requestAnimationFrame function .. . setTimeout function .. . window.CustomElements.readyTime Date.now .. . if window.HTMLImports .. . window.CustomElements.elapsed window.CustomElements.readyTime - window.HTMLImports.readyTime .. . .. . document.dispatchEvent new CustomEvent WebComponentsReady .. . bubbles : true .. . .. . .. . .. . .. . .. . If I don t include this polyfill script and just import a file .. . .. . .. . link href isa BDJPFRDMEYBPBKLVADAYFQCDAVIOEQJR polymer-elements iron-icons.html rel import .. . paper-fab icon add paper-fab .. . .. . It gives me a whole longer error : .. . .. . Uncaught InvalidStateError : Failed to execute dispatchEvent on EventTarget : The event provided is null.Polymer.Base . addFeature.fire @ polymer.html : 1195 Polymer.Bind . modelApi . notifyChange @ polymer.html : 1260 Polymer.Base.extend . notifyEffect @ polymer.html : 1431 anonymous function @ polymer.html : 1294 Polymer.Bind . modelApi . effectEffects @ polymer.html : 1291 Polymer.Bind . modelApi . propertySetter @ polymer.html : 1276 setter @ polymer.html : 1352 Polymer.IronMeta.Polymer . typeChanged @ iron-meta.html : 160 Polymer.Base.extend . observerEffect @ polymer.html : 1440 anonymous function @ polymer.html : 1294 Polymer.Bind . modelApi . effectEffects @ polymer.html : 1291 Polymer.Bind . modelApi . propertySetter @ polymer.html : 1276 Polymer.Bind . modelApi . setProperty @ polymer.html : 1285 Polymer.Base . addFeature . applyConfig @ polymer.html : 1793 Polymer.Base . addFeature . afterClientsReady @ polymer.html : 1787 Polymer.Base . addFeature . ready @ polymer-mini.html : 66 Polymer.Base . addFeature . tryReady @ polymer-mini.html : 56 Polymer.Base . addFeature . initFeatures @ polymer.html : 3188 Polymer.Base.createdCallback @ polymer-micro.html : 143 Polymer.Base . addFeature . factory @ polymer-micro.html : 389 ctor @ polymer-micro.html : 376 Polymer . nameChanged @ iron-iconset-svg.html : 138 Polymer.Base.extend . observerEffect @ polymer.html : 1440 anonymous function @ polymer.html : 1294 Polymer.Bind . modelApi . effectEffects @ polymer.html : 1291 Polymer.Bind . modelApi . propertySetter @ polymer.html : 1276 Polymer.Bind . modelApi . setProperty @ polymer.html : 1285 Polymer.Base . addFeature . applyConfig @ polymer.html : 1793 Polymer.Base . addFeature . afterClientsReady @ polymer.html : 1787 Polymer.Base . addFeature . ready @ polymer-mini.html : 66 Polymer.Base . addFeature . tryReady @ polymer-mini.html : 56 Polymer.Base . addFeature . initFeatures @ polymer.html : 3188 Polymer.Base.createdCallback @ polymer-micro.html : 143", "Question : I need to append this polymer element to index.html which i did with no problem but the problem is i cannot append anything to that items div how can i do this i think that the element is not yet appended to the index.html page so the script could not catch the items div . .. . Answer : You need to wait until the polymer-elements web components are loaded . Instead of document .ready function .. . .. . Use the code below or JQuery equivalent", "Question : What s the difference between Polymer Starter Kit https : www.polymer-project.org 1.0 start psk set-up and Polymer App Toolbox https : www.polymer-project.org 1.0 toolbox Both are collections of web components build testing tools and Material Design templates for building Progressive Web Apps with Polymer . Which one should I base my new project on .. . Answer : Here are some details regarding both of them : .. . .. . Toolbox .. . .. . Pros : .. . .. . Was built after Polymer team started focusing on app side of Polymer rather than elements .. . Gets more updates than PSK .. . Has all the other required tools server linter bower tester built-in .. . In case of building an element like to publish it uses flat import structure where even though bower downloads are kept in bower components folder and element to be made is kept outside the bower components folder imports are still made as though both are present in bower components .. . Is made specifically to help developers in building their application element .. . Is more in line with Progressive Web app vision of the team . Cons : .. . .. . Still in beta phase just like all the app-elements it uses internally .. . .. . PSK .. . .. . PSK was built with the purpose of providing a starting point for the developers who are new to Polymer and are more in learning phase . It has some pre-built elements with hard-coded data . If you look inside index.html you will find template is dom-bind being used which Polymer team recommends not to use in production environment . It was built when Polymer team was still focusing more on the elements side of Polymer as a result it does not use any of the Polymer s app-elements using which Polymer team has built the shop demo . A newer version has not been released since March as team is currently working on version 2 of PSK . Comment : Actually PSK was last updated on June 7 2016 https : github.com PolymerElements polymer-starter-kit commits master and the PSK2 branch is under active development https : github.com PolymerElements polymer-starter-kit commits psk2-polymer-build . Comment : @niutech You are right . Actually the last release was in March https : github.com PolymerElements polymer-starter-kit releases . I ve made a correction in the answer and have also included the detail that you pointed out . Comment : The note about the Polymer team recommending not to use dom-bind in production environment is false . Comment : @tony19 I think it was in one of the Polycasts video where they said that here we are using dom-bind but in production always prefer creating a new element rather than using dom-bind . Comment : @a1626 Do you have a link-to that Polycast or any official reference There s no such warning in the docs for dom-bind https : www.polymer-project.org 1.0 docs api dom-bind and I doubt it s actually true .", "Question : So I am designing a simple log element using Polymer 1.6 that displays a log message bellow whatever element I use it with . It works fairly well but I would like to make the log message disappear if the user clicks anywhere on the page . Which brings me to outer-clicking with Polymer 1.x .. . .. . Most examples found on SE cover using existing events in Polymer modules but I couldn t find anything that closely does what I m looking for . This example looked promising Polymer : Detect click outside of custom-element http : stackoverflow.com questions 35953906 polymer-detect-click-outside-of-custom-element but Polymer.dom target .node.domHost is undefined in my tests.. . So anyone has any insight on how to catch the outer-click event For the record here is my-log element .. . Answer : There is no outer-click event . You can check if the event.target is inside or outside of a specific element . You can either iterate over parents and check if you reach this inner or document outer first . You can also use node.contains https : developer.mozilla.org en docs Web API Node contains like .. . .. . I haven t tested contains with Polymer myself yet . Comment : It works indeed : D I simply added it inside a click event attached to the window object thank you", "Question : I m taking my first steps in polymer and I got stuck on custom css properties . I made an items element .. . .. . As you can see I am checking for the --my-color variable and assigning red as a default-value . These items will be contained in a container element .. . .. . but somehow all my items still remain red . I made a plunkr for easy access : http : plnkr.co edit LovSp4VRAGpLadcr87Wz .. . .. . Can anyone tell me what I am doing wrong .. . Answer : You could use native CSS properties from Polymer 1.6.0 https : www.polymer-project.org 1.0 docs release-notes v-1-6-0 to allow your current code to work . Make sure to enable it by setting up your Polymer object s useNativeCSSProperties property before importing polymer.html : .. . .. . plunker https : plnkr.co edit Xmt3MWRfr1dWbiEPBZ78 p preview Comment : this fixes the issue still wondering why it isn t supported in polymer itself tho", "Question : I have several polymer paper-input https : elements.polymer-project.org elements paper-input elements on a polymer app . When one of these elements is focused I d like the text input of the input be highlighted like this http : stackoverflow.com questions 30936418 polymer-1-0-paper-input-text-highlighting so that if a user just starts typing the existing value of the input is overwritten . Is there a way to highlight the text programatically on focus .. . Answer : I figured it out . Would be nice if this were documented somewhere .", "Question : Polymer behaviors https : www.polymer-project.org 1.0 docs devguide behaviors are great . But sometimes I need to share a single function method across multiple elements . I don t need lifecycle callbacks declared properties etc that comes with behaviors . I do not know the architecture of Polymer well enough to know : .. . .. . 1 . the best way and place in life-cycle callbacks to add shared methods to custom elements .. . 2 . when it is better to extend the Polymer.Base Example 1 : .. . .. . Let s say we want to add a method for lazy-listening that will attach event-listeners to elements afterNextRender : .. . .. . As Monica explains in Practical lessons from a year of building web components - Google I O 2016 https : youtu.be zfQoleQEa4w t 23m30s Polymer s listeners object should be avoided for elements that might be created in large numbers . Example 2 .. . .. . Following her example now we want to add ripple effects or control behaviors to elements only when they are hovered active focused and remove it when otherwise . This functionality will be needed by many elements . Example 3 functions from external libraries such as lodash Comment : Can you provide a concrete problem you try to solve Comment : @G nterZ chbauer added examples : .. . Answer : A short note for my own question for the time being . All elements : Polymer.Base .. . .. . Polymer uses Base s addFeature method to extend the Base prototype which is the prototype of all Polymer elements side note : addFeature method itself uses Base s extend method internally . This is the deepest level for extending Polymer Elements . Specific element type : element constructor object as well as Behaviors .. . .. . Behaviors are shared between all elements of a specific type . They are applied in element registration time . And of course methods in the constructor object also goes to element type s proto . Specific to an element instance : everything else .. . .. . Other methods defined from element creation onward are specific to that element instance . Also if you use Polymer.Base.create tag obj all the properties and methods in the obj will be applied to the created element using in keyword i.e . no accessors . Hence that obj could be shared between different element instances depending on the context . Conclusion .. . .. . The standard way Polymer creators wanted us to share methods and a lot more between different element types is using Behaviors . However if you have a feature that all or most elements use extending Polymer.Base is a good option .", "Question : I ve got a newly created polymer-starter-kit 1.3 to be exact . I would like to created a method like the one below on the index.html page .. . .. . On the main page how can I do it I would like to instantiate a Polymer element for the application template but the document stays that should be avoided . If anyone could explain why that would be awesome . Thanks in advance for any feedback .. . Answer : On the main page how can I do it In index.html you could use a WebComponentsReady https : github.com webcomponents webcomponentsjs webcomponentsready handler to perform any action that s dependent on all elements being registered : .. . .. . I would like to instantiate a Polymer element for the application template but the document stays that should be avoided . Where did you see that While version 1.3.0 of the Polymer Starter Kit uses an auto-binding template in index.html instead of an app element I don t see why you d try to avoid an app element . In fact there s growing evidence that an app element is recommended : .. . .. . Version 2 of Polymer Starter Kit replaces the auto-binding template with a custom app element https : github.com PolymerElements polymer-starter-kit blob d993ece src psk-app psk-app.html .. . The dev guide describes the Basic Application Template https : www.polymer-project.org 1.0 toolbox templates basic-application-template generated by polymer-cli https : github.com Polymer polymer-cli as a custom-element : .. . .. . The application template is the most basic starting point for any app built with Polymer . It starts with a single bare-bones custom-element that can serve as the root of your application from which you can build in any direction with maximum flexibility . Comment : Thanks for the reply the note Note : You should only define elements from the main document when experimenting . In production elements should always be defined in separate files and imported into your main document . is on the polymer-project.org 1.0 docs devguide registering-elements https : www.polymer-project.org 1.0 docs devguide registering-elements page . Comment : What is Version 2 of Polymer Starter Kit is that the next release of the starter kit Why is it located as a child of the normal one Comment : I see . That note is actually referring to declaring dom-module inside index.html . I typically do that in codepen jsbin demos mostly for convenience but also because those services don t allow separate files unlike Plunker . Comment : Yes PSK2 is still in active development https : github.com PolymerElements polymer-starter-kit tree psk2 src and not yet released . Comment : Do you guys find Polymers documentation scattered or less coherent then other liberty s or frameworks", "Question : I m trying to include classes based on parameters of a json so if I have the property color the makes the trick to pass it as a class attribute based on the polymer documentation https : www.polymer-project.org 1.0 docs devguide data-binding.html native-binding .. . .. . The problem is when I m trying to add that class along an existing set of classes for instance : .. . .. . In that case doesn t do the trick . Is any way to accomplish this or each time that I add a class conditionally I have to include the rest of the styles through css-selectors instead classes I know in this example maybe the color could just simple go in the style attribute it is purely an example to illustrate the problem . Please note that this is an issue only in Polymer 1.0 . .. . Answer : Update .. . .. . As of Polymer 1.2.0 https : www.polymer-project.org 1.0 docs release-notes.html release-120httpsgithubcompolymerpolymertreev120-2015-10-22 you can now use Compound Bindings https : www.polymer-project.org 1.0 docs devguide data-binding.html compound-bindings to .. . .. . combine string-literals and bindings in a single property binding or text content binding .. . .. . like so : .. . .. . and your example .. . .. . so this is no longer an issue . The below answer is now only relevant to versions of polymer prior to 1.2 .. . .. . If you are doing this a lot until this feature becomes available which is hopefully soon https : www.polymer-project.org 1.0 docs binding-features you could just define the function in one place as a property of Polymer.Base https : www.polymer-project.org 1.0 docs devguide utility-functions.html which has all of it s properties inherited by all polymer-elements .. . .. . and then call it like so : .. . .. . then when it is introduced by polymer properly just remove that one line and replace .. . .. . with .. . .. . I use this a lot at the moment not just for combining classes into one but also things like path names joining with a and just general text content so instead I use the first argument as the glue . or if you can use es6 features like rest arguments https : developer.mozilla.org en docs Web JavaScript Reference Functions rest parameters From arguments to an array .. . .. . for doing stuff like .. . .. . of just the basic", "Question : I m trying to wrap the ion.rangeSlider inside a Polymer element but I m having trouble getting it working in a jsBin http : jsbin.com dopanumada 1 edit html output . Here is the documentation https : github.com IonDen ion.rangeSlider experiments-playground . Here is a working jsFiddle http : jsfiddle.net IonDen qv6yrjrv . Here is my non-working jsBin http : jsbin.com dopanumada 1 edit html output . Please show me how to get this working in a jsBin . enter image description here http : i.stack.imgur.com pUgdk.png .. . .. . Update : It partially works as shown here http : jsbin.com rihirotija edit html output when I do the following . 1 . Move the second script-tag outside the Polymer element template and into the main document body light DOM . 2 . Add the jQuery library resource in the head . 3 . Remove the document .ready function .. . .. . But I still need to get it to work with the javascript inside the Polymer element template . .. . Answer : You were close with your partially working example where you called the ionRangeSlider function in ready . However you first need to call the jQuery function with the slider input as an argument . Here s http : jsbin.com nibayomuya edit html output a working jsBin", "Question : Is it possible to modify local light DOM from JS within a custom-element in a way that would process bindings for thus dynamically added elements as-if they were specified in template Please consider the following snippet a part of a custom-element : .. . .. . What I would like to happen is for the added div to have its inner HTML equal to the value returned from method computedValue . The value cannot be assigned at the time of div creation as in the real situation it would depend on the realtime context . .. . Answer : It appears that for now Polymer 1.0 does not support dynamic imperative bindings . Here https : github.com Polymer polymer issues 1778 and here https : github.com Polymer polymer issues 1796 are the relevant discussions . The information from the above links suggests a reliable albeit limited approach to creation of dynamic-content with bindings by means of using dom-bind template elements . The limitation is due to bindings working strictly with locally defined methods and properties for the dom-bind instance being created . Here is an example where domBind is created imperatively with properties tapCount tapMessage and method tapMe . The latter is used as on-tap event handler for the added to the domBind element div . A similar to my question is posted here http : stackoverflow.com questions 30836412 polymer-1-0-injectboundhtml-alternative which helped me to get a better appreciation for the scope of the problem especially with the reference to Polymer 0.5 injectBoundHTML . .. . .. . Of course external methods and properties can still be accessed : .. . .. . Then by binding locally defined externalMethod one can bind things from the external scope . In this case computeValue refers to a method defined on a custom-element with imperative light DOM construction happening in its method attached .", "Question : Question : .. . .. . In this Plunk http : plnkr.co edit gZR0MQ7NXXlaSknukL1i p preview I want to import the Polymer 1.0 elements paper-button and paper-menu . How do I do that In other words what is the proper set of script and link tags and their respective src and href attributes that will allow my paper-button and paper-menu elements to properly function Attempts : .. . .. . In the right margin there is an option to search and import external libraries . I used that to search for Polymer 1.0 and I imported the following . Note : Here is a JS Bin http : jsbin.com rayasoquca edit html output that imports Polymer elements . Comment : you are importing a html document as a script . you need to use html-imports . link href polymer-project.org 1.0 samples components polymer http : www.polymer-project.org 1.0 samples components polymer polymer.html quot rel import .. . Answer : Example here http : jsbin.com qewedoqito 1 edit html output Comment : No longer works" ] }
[ "yes-answer-long", "yes-answer-short" ]
s
UNK_RELATION
pypfop@fop@44
pypfop -- document preprocessor for apache @placeholder - python port .
{ "confidence": [ 31.257408142089844, 15.0968599319458, 10.369047164916992, 10.369047164916992, 10.369047164916992, 10.369047164916992 ], "content": [ "I m trying to get working pypfop 0.2.0 with this tutorial https : pypi.python.org pypi pypfop 0.2.0 .", "Links seem broken so I downloaded binary package from here ftp : mirror.hosting90.cz apache xmlgraphics fop but suppose it doesn t matter .", "Unfortunately I m not able to pass-through step 2.2 : .. . .. . Decompress in wherever place you like and set environment variable FOP CMD to the bin fop of the decompressed folder .", "However if I decompress the package no path bin fop is presneted .", "My current FOP CMD setup I ve decompressed fop package into utils : .. . .. . Now I get this exception if I try to run example from the tutorial : .. . .. . The question is what should be environment variable FOP CMD set for", "OK I ve finally found out the answer and it is very simple : the correct way is fop-1.1 fop ." ] }
{ "confidence": [ 36.24211883544922 ], "content": [ "Question : I m trying to get working pypfop 0.2.0 with this tutorial https : pypi.python.org pypi pypfop 0.2.0 . Unfortunately I m not able to pass-through step 2.2 : .. . .. . Decompress in wherever place you like and set environment variable FOP CMD to the bin fop of the decompressed folder . Links seem broken so I downloaded binary package from here ftp : mirror.hosting90.cz apache xmlgraphics fop but suppose it doesn t matter . However if I decompress the package no path bin fop is presneted . My current FOP CMD setup I ve decompressed fop package into utils : .. . .. . Now I get this exception if I try to run example from the tutorial : .. . .. . The question is what should be environment variable FOP CMD set for .. . Answer : OK I ve finally found out the answer and it is very simple : the correct way is fop-1.1 fop ." ] }
[ "yes-answer-long", "yes-answer-short" ]
fop
UNK_RELATION
page-editor@web@48
page-editor -- the page-editor is a feature of @placeholder content-management systems wcms that allows authors to create and edit content with a wysiwyg interface .
{ "confidence": [ 45.87959289550781, 45.51021194458008, 44.718475341796875, 43.31367492675781, 43.235206604003906, 42.723777770996094, 41.696563720703125, 41.65541076660156, 41.53960037231445, 41.49799346923828, 41.45170593261719, 41.34873962402344, 41.30805969238281, 40.73369216918945, 40.73369216918945, 40.251312255859375, 39.748504638671875, 39.52477264404297, 39.52477264404297, 38.8635139465332, 38.63349914550781, 38.407615661621094, 38.383697509765625, 38.25193405151367, 38.13153839111328, 38.09571838378906, 37.958621978759766, 37.4669189453125, 37.438873291015625, 36.875518798828125, 36.875518798828125, 36.85198211669922, 36.732208251953125, 36.715240478515625, 36.610374450683594, 36.58295822143555, 36.58295822143555, 36.58295822143555, 36.58295822143555, 36.58295822143555, 36.58295822143555, 36.58295822143555, 36.110931396484375, 35.88711929321289, 35.88711929321289, 35.88711929321289, 35.88711929321289, 35.88711929321289, 35.7633056640625, 35.71183776855469, 35.41444396972656, 35.34455108642578, 35.32200622558594, 35.03265380859375, 35.0268440246582, 34.40385437011719, 34.37580871582031, 34.22923278808594, 33.88939666748047, 33.883567810058594, 33.8701057434082, 33.8701057434082, 33.8701057434082, 33.8701057434082, 33.762630462646484, 33.762630462646484, 33.65217590332031, 33.65217590332031, 33.60927200317383, 33.55771255493164, 33.5198974609375, 33.5198974609375, 33.5198974609375, 33.5198974609375, 33.38306427001953, 33.31992721557617, 33.17204666137695, 33.103363037109375, 32.693359375, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 32.6203498840332, 31.926692962646484, 31.69818115234375, 31.561107635498047 ], "content": [ "Everything working fine if change some content or image and saving it in page-editor .", "Sitecore Page Editor Publishing items related to content http : stackoverflow.com questions 18348988 sitecore-page-editor-publishing-items-related-to-content .. . .. . Sitecore page-editor - how to extend page-editor item editing panel http : stackoverflow.com questions 18350587 sitecore-page-editor-how-to-extend-page-editor-item-editing-panel 18351584 18351584 .. . .. . The solution suggested in that post is to create a custom button to publish .", "Then they added a custom experience button which navigates to that non-page content item within the page-editor .", "Image of command in page-editor : .. . .. .", "Basically I want to have dropdown in page-editor and content editor which are responsible for a same thing .", "Need to add publish feature to the page-editor item editing section .", "If so check the Page Editor ribbon .", "Using Page Editor configure your page component datasource to pull from one of your new component content items .", "I need to edit the target after i click the link in page-editor .", "No Page Editor Experience Editor works with JavaScript to change anything on page .", "Suppose my editor creates another new page and he wants to re-use a section from the content store .", "I want to add buttons to the editor in page-editor mode .", "In the Page Editor one can create combination tests .", "In PROD environment when I log into Page editor page-editor ribbon keeps loading for 4 mins .", "Is it possible to add more buttons or a dropdownlist to the webedit editor when you are viewing the page in the page-editor in sitecore", "For this in content editor : .. . .. . 1 .", "It doesn t matter if I add the script through the Show Editor or Edit HTML features of the content editor .", "Can the image representing the rendering in Page Editor be customized", "It s like I opened it up in Page Editor .", "page --- Modules folder --- module 1 --- module 2 --- module 3 .. . .. . When a module is added to a page via the Page Editor and the Datasource Location is a normal path rather than a . in it the Select Associated Content box should appear .", "In Page editor mode the Spaces or not replaced with - .", "I have already customize the Page Editor Language Selector by overriding the webedit command but I can t figure out how to customize the Content Editor Language Selector : .. . .. .", "Most of the fields I need are set in Sitecore in the Content Editor so I can access them via .. . .. . However one thing I need is the URL of the logo image on each page which is inserted with the Page Editor .", "In Page Editor when you select that sublayout it s context ribbon will contain an extra button that allows you to edit those fields .", "This is only happening in the combination of button + page-editor .", "What happens in the Sitecore content editor under Presentation Layout Details for the item", "You can use the approach suggested in article that you have found - Sitecore page-editor - how to extend page-editor item editing panel http : stackoverflow.com questions 18350587 sitecore-page-editor-how-to-extend-page-editor-item-editing-panel 18351584 18351584 .", "On that sublayout definition item for that assign the field editor to that UI component via the Page Editor Buttons treelist field .", "Now in page-editor when i am trying to change position using Change Position button in toolbar and move content to another location content is getting moved to my new location as desired .", "enter image description here http : i.stack.imgur.com fA2Pr.jpg .. . .. . Maybe try to remove this button log in to core database and look for sitecore content Applications WebEdit Ribbons WebEdit Page Editor Edit My Items and see if this helps .", "I have a center column placeholder where users can select from a list of components using the Page Editor set data source and edit the content of the data source .", "The option would be to add another button to Page Editor next to Edit Related Item button and create a command that will Publish Related Item .", "Is it possible for me to get Page Editor objects on the page in the codebehind", "I want to edit on Sitecore Page Editor some hidden fields like meta fields from head html section .", "This happens by default when I m in edit mode in the page-editor .. . .. . This works fine however I also need to be able to Insert an external link from the Page editor .", "I m struggling to think of any that are solely Page Editor only .", "I want to use the page-editor for editting my pages .", "A fairly common issue with Page Editor not loading is a conflict between jQuery and Prototype .", "I don t think the page-editor is made for editing sites on mobile .", "How can a custom dropdown list be added to the page-editor in Sitecore", "I know that Page Editor will occasionally provide full admins more access .", "How can I hide Page Editor options from this scenario", "Sitecore.. . CommonText Product Example Text .. . .. . In my ascx file mark up is pretty straigh forwad .. . .. . Codebehind .. . .. . When I open the page in Page Editor as a system admin it allows me to change the Product Example Text and when I save using the Save button on the Page Editor it get saved to the master database .", "In page-editor when I make an update to the personalization of a component the update only shows on the page when I press save .", "Editors are working in Page Editor : .. . .. . Suppose you make a new page and add an article .", "The weird part is in page-editor it does not get clicked I have to right-click and then open then it goes to web DB page .", "it should come as the page-editor link the link type itself becomes https : ... . web DB link for the target page .", "@jammykam from what I understood author wants to add a sibling to current page in Experience Editor not a child page .", "Under item : .. . .. . sitecore content Applications WebEdit Ribbons WebEdit Page Editor .. . .. . .. . you need to create an item of type : .. . .. . sitecore templates System Ribbon Chunk .. . .. . .. . Under new item you have to create new item of type : .. . .. . sitecore templates System Ribbon Small Button .. . .. . .. . On the field Click you will have something like .. . .. . command : executefieldeditor path sitecore content Applications WebEdit Edit Frame Buttons Page Properties Page Properties .. . .. . .. . where path will point to item created at step one .", "Basicaly I can add a variation using Page Editor and everything is fine until I click save in Page Editor .", "Your content authors will be able to select chosen language version and edit it .. . .. . 3 .", "I would kindly ask for your help : From couple of days I am trying to achieve linked custom field in content editor and dropdown in page-editor .", "This solution should solve the problem instead i cannot edit button text from page-editor now as it is just text .", "This way the tags are added at render time rather than appearing in the content editor .", "The complete description how to add such a command can be found in the answer Sitecore page-editor - how to extend page-editor item editing panel http : stackoverflow.com a 18351584 157833", "Sitecore Experience Editor : .. . .. . How will user author in Mandarin or Japanese languages using Sitecore page-editor", "In the Sitecore Page Editor when I highlight a content item and click the red boxes icon to bring up the Test the Component dialog the Test Content Item : just says Not set .", "The main difference being that the Page Editor gives your content authors an easier and more directed user-experience because if you configure it nicely you can ensure that content can only be added sourced from a particular location in your content tree and that the content added sourced from that location is only of one specific template type as one example .", "I am having an issue with sitecore using MVC where I have this is my page layout file : .. . .. . Page editor is loading into the first body for ie8 and thus all I see is code and not page-editor .", "As it suggests in the Marketing Operations Cookbook http : sdn.sitecore.net upload sitecore6 65 marketing operations cookbook sc65-usletter.pdf : .. . .. . When you use the Page Editor to set up an MV test you can use existing content clone content or create new content items to use as test variable variations .", "You can look after personalisation and multivariate testing from within the Content Editor as well .", "what is the order of the components when you check the presentation details of the item from the content editor", "Also if you browse to the item in the Content Editor do your changes show up there as you d expect", "This will allow you to reuse the code and turn on- off much easier through the content editor .", "Hi am trying this code .. . .. . and then from cshtml .. . .. . When I click on the link this will always point to CD database and I am not able to edit in page-editor .", "I have an image component for which I need to disable its editing ribbon on Sitecore Page Editor so that the author is unable to edit change the image .", "However when I try to edit them in the page-editor the EditFrame is not rendered nothing gets rendered actually .", "@MyriamDeScheemaecker : While I still recommend using Glass it is not required to edit fields in page-editor .", "Content Editor Language Selector http : i.stack.imgur.com ywhAy.png .. . .. . I am trying to replicate the functionality I added for the Page Editor Language Selector which sorts the languages by region and then language name and also adjusts the name to not display the : language region part .", "When I change language in the s Page Editor s Experience Editor however using Experience Language menu item I get a 404 error .", "Yes if.. . will cause that setup will not be fired but only while adding the component in page-editor .", "The error occurs when I am in the Sitecore Page Editor mode .", "I can t imagine an instance in which this would play well with Page Editor .", "I m assuming by Page Editor you mean the Design view .", "In Experience Editor authors can switch between languages in the Experience tab of the ribbon :", "In sitecore 7.2 which is an upgraded site from sitecore 6.5 when I create a new item which will be in the draft workflow state and click publish-- Page Editor the user will be redirected to home item but when the item is on the final workflow the page-editor will work fine .", "While saving an item in Page Editor Sitecore saves all the field renderers which are displayed on the page so if you set the Item property of a FieldRenderer1 to Product Example Test Sitecore Item Page Editor know which item should be saved .", "We recommend that if possible you create all MV tests using the Page Editor .", "More over also remember that you can also create MV Test in Content Editor but note the below as suggested by Sitecore .. . .. . If you create an MV test using the Content Editor you do not have access to the same statistics on Engagement Values generated when you test these controls .", "Can I know how to detect user is in page-editor mode using code", "This is because I have a component when user browses from page-editor it will search in master index folder instead of web index folder .", "Sitecore version 6.6 .. . .. . Logs says .. . .. . This error repeats for several minutes until page-editor gets loaded .", "From my experience I know that sometimes there are issues with My Items ribbon button in Page Editor .", "I remember from my Sitecore 7 training that there are a few of the newer features which are designed to be used through the page-editor .", "Can anyone tell me what the full range of features that hang off the page-editor are", "Also to improve yours google searchs this kind of sublayout with datasources editable in Page Editor is called Components .. . .. . .", "Hi can you confirm what you mean by page-editor not supporting for mobile", "Thanks for your reply and yes it is requirement to support page-editor in mobile mode thats why I have asked this question .", "Apple Safari 6 for Mac OS .. . .. . I believe page-editor is NOT supported on mobile currently .", "Page Editor has two modes for what happens when you click stuff .", "I have a saveUI processor and I only want to run my code if the user clicked the save button in Page Editor .", "From what I know you cannot add sibling item to current item in page-editor out of the box .", "Only issue is that it shows the Page Editor ribbon control on top Home Advanced Expereience.. . which I do not need to be displayed .", "it looks like the question is about the buttons in page-editor window not in the RTE which is opened as a modal window .", "And Full profile doesn t provide any additional button for page-editor rich text .", "Open Page Editor and test the new command it should open the standard publishing popup with the related item ID as a parameter in URL .", "Open Page Editor and test the new command it should open the standard publishing popup with the related item ID as a parameter in URL .", "Using Sitecore 8.1 - I used these instructions https : jammykam.wordpress.com 2015 03 17 prompt-user-to-selectcreate-datasource-item-when-inserting-rendering-via-page-editor to be open the datasource item create select when adding a rendering via the page-editor but only the Control Properties comes up .", "Under folder you have to create a new Field Editor Button .", "But we want to do it the using the above mentioned steps or using Page editor ." ] }
{ "confidence": [ 52.72755432128906, 52.490234375, 48.87209701538086, 48.19001007080078, 46.86886215209961, 46.14000701904297, 45.89488220214844, 45.1190185546875, 44.680816650390625, 43.90462875366211, 43.876495361328125, 43.71866226196289, 43.436607360839844, 43.118011474609375, 42.89971160888672, 42.883853912353516, 42.44355392456055, 41.775543212890625, 41.622337341308594, 40.990989685058594 ], "content": [ "Question : I remember from my Sitecore 7 training that there are a few of the newer features which are designed to be used through the page-editor . I can remember some of the personalisation stuff and multivariate testing for example . Can anyone tell me what the full range of features that hang off the page-editor are .. . Answer : I m struggling to think of any that are solely Page Editor only . You can look after personalisation and multivariate testing from within the Content Editor as well . The main difference being that the Page Editor gives your content authors an easier and more directed user-experience because if you configure it nicely you can ensure that content can only be added sourced from a particular location in your content tree and that the content added sourced from that location is only of one specific template type as one example . This assists the user when adding editing content and saves them an extra 3 or 4 clicks and pop-up windows typically", "Question : I created sitecore HTML Content control based on sitecore datasource which can be used for Multivariate Testing and Personalization . Everything working fine if change some content or image and saving it in page-editor . Things started not working when i publish the item in Page editor i don t have specific option to publish that control rather clicking on publish button with disabling un-checking publish sub items.Result in the publish information Items Skipped 2 Items updated 0 .. . .. . Similar topic was discussed in below link . Sitecore Page Editor Publishing items related to content http : stackoverflow.com questions 18348988 sitecore-page-editor-publishing-items-related-to-content .. . .. . Sitecore page-editor - how to extend page-editor item editing panel http : stackoverflow.com questions 18350587 sitecore-page-editor-how-to-extend-page-editor-item-editing-panel 18351584 18351584 .. . .. . The solution suggested in that post is to create a custom button to publish . Is there any any sitecore default feature for this to publish .. . Answer : I have raised a sitecore support ticket . Looks like this feature is not yet available in Sitecore . Hopefully we see this in near feature . Response from Sitecore Support : .. . .. . I have registered a feature request for the product so it can be considered for future implementation . We will inform you when there are any updates regarding your request . You can use the approach suggested in article that you have found - Sitecore page-editor - how to extend page-editor item editing panel http : stackoverflow.com questions 18350587 sitecore-page-editor-how-to-extend-page-editor-item-editing-panel 18351584 18351584 .", "Question : I have a Product Page Product page maps to ProductPage Sitecore item . Website Pages ProductPage . I have a text area in that page with page-editor which loads text from Product Example Text Sitecore item s Description text from Web database . Sitecore.. . CommonText Product Example Text .. . .. . In my ascx file mark up is pretty straigh forwad .. . .. . Codebehind .. . .. . When I open the page in Page Editor as a system admin it allows me to change the Product Example Text and when I save using the Save button on the Page Editor it get saved to the master database . Product Example Text item get saved . Now when I try to publish the item using the Publish item in the Page Editor ribbon these changes do not get reflected reason is Product Example Text item does not get published . When I save the page somehow Sitecore understands the Product Example Text item has to be saved . But why does not it get published Am I doing anything wrong... . How can I solve this issue Comment : Do you have workflow attached Is it possible it s not approved yet Also if you browse to the item in the Content Editor do your changes show up there as you d expect .. . Answer : Another approach would be to create the Product Example Test content item under the ProductPage as a sub item . In publish options you can use publish sub items which will publish all content you want . But the problem is if you want a particular content to be shared in several places this won t work . Maras s answer is a better solution .", "Question : Need to add publish feature to the page-editor item editing section . Under the More section would be ideal . How can I do this enter image description here http : i.stack.imgur.com boTY2.jpg .. . Answer : First you need to create a command class . The simplest version would be : .. . .. . Register new command in Sitecore.config or Commands.config : .. . .. . Then : .. . .. . 1 . Login to Sitecore Desktop .. . 2 . Switch database to core .. . 3 . Duplicate sitecore content Applications WebEdit Common Field Buttons Edit related item .. . 4 . Rename new item to Publish related item .. . 5 . Set Click property of this item to my : publish .. . 6 . Change other properties of the item Header Icon Tooltip .. . 7 . Switch database back to master .. . 8 . Open Page Editor and test the new command it should open the standard publishing popup with the related item ID as a parameter in URL .", "Question : I have a Product Page Product page maps to ProductPage Sitecore item . Website Pages ProductPage . I have a text area in that page with page-editor which loads text from Product Example Text Sitecore item s Description text from Web database . Sitecore.. . CommonText Product Example Text .. . .. . In my ascx file mark up is pretty straigh forwad .. . .. . Codebehind .. . .. . When I open the page in Page Editor as a system admin it allows me to change the Product Example Text and when I save using the Save button on the Page Editor it get saved to the master database . Product Example Text item get saved . Now when I try to publish the item using the Publish item in the Page Editor ribbon these changes do not get reflected reason is Product Example Text item does not get published . When I save the page somehow Sitecore understands the Product Example Text item has to be saved . But why does not it get published Am I doing anything wrong... . How can I solve this issue Comment : Do you have workflow attached Is it possible it s not approved yet Also if you browse to the item in the Content Editor do your changes show up there as you d expect .. . Answer : While saving an item in Page Editor Sitecore saves all the field renderers which are displayed on the page so if you set the Item property of a FieldRenderer1 to Product Example Test Sitecore Item Page Editor know which item should be saved . The problem with publishing is that you enqueue the current item in the publishing queue but this item has no link-to the Product Example Test Sitecore Item in any of its properties cause you re setting the Item property of the field renderer dynamically in the code . The option would be to add another button to Page Editor next to Edit Related Item button and create a command that will Publish Related Item . The complete description how to add such a command can be found in the answer Sitecore page-editor - how to extend page-editor item editing panel http : stackoverflow.com a 18351584 157833 Comment : Spot on this is exactly what I wanted to know .", "Question : Need to add publish feature to the page-editor item editing section . Under the More section would be ideal . How can I do this enter image description here http : i.stack.imgur.com boTY2.jpg .. . Answer : We can achieve it without any code change . Add the above entry in Commands.config file . This file is available in include folder . 1 . Login to Sitecore Desktop .. . 2 . Switch database to core .. . 3 . Duplicate sitecore content Applications WebEdit Common Field Buttons Edit related item .. . 4 . Rename new item to Publish related item .. . 5 . Set Click property of this item to chrome : common : edititem command : webedit : publish .. . 6 . Switch database back to master .. . 7 . Open Page Editor and test the new command it should open the standard publishing popup with the related item ID as a parameter in URL . Thanks .. . .. . Fenil", "Question : I could not find a single official document on setting up and using multilingual on Sitecore SDN . Basically we have a requirement to enable couple of our multi-site Sitecore website to support multi-lingual i.e . Chinese Mandarin and Japanese . Based on geoip of the visitor or some questions we need to display either English or Mandarin or Japanese for couple of pages on site . Given that I m quiet new to multi-lingual set up could someone please help me below : .. . .. . Sitecore setup : .. . .. . 1 . What exactly do I need to do in terms of Sitecore IA setup Create separate page for each languages 2 . How will content author author the english japanese and mandarin for the same content pages 3 . Do we need to install any language translator such that content author will type in English and it will get translated to Mandarin and Japanese during run time 4 . Is it possible that user can type in Mandarin or Japanese in Sitecore CMS Sitecore Experience Editor : .. . .. . How will user author in Mandarin or Japanese languages using Sitecore page-editor Coding Changes : .. . .. . We are using ASP.NET MVC do we need to make our content repository smart such that it will get content from Sitecore in specific language e.g . pass language or similar I googled on above topic as well but could not find any legitimate result . Thanks . .. . Answer : Your post is really broad . Below you can find high level answers to your questions . If you need any more specific answers try to be more precise and post separate questions . Sitecore setup : .. . .. . 1 . You need to add selected languages under sitecore system Languages node enter image description here http : i.stack.imgur.com vpsiX.png .. . .. . Then you need to select chosen language and click Add a new version : .. . .. . enter image description here http : i.stack.imgur.com yKU5M.png .. . .. . 2 . Your content authors will be able to select chosen language version and edit it .. . .. . 3 . Sitecore doesn t have any automated translation out of the box . There are some code samples and modules which can help you with that . Ask google for it e.g . https : www.google.com search q sitecore+translate .. . .. . 4 . Yes user can type Mandarin or Japanese or any other language . Experience Editor : .. . .. . 1 . In Experience Editor authors can switch between languages in the Experience tab of the ribbon : enter image description here http : i.stack.imgur.com ccvET.png .. . .. . Coding Changes : .. . .. . 1 . For automated language selection based on user IP you need to use some GEO IP provider e.g . : https : www.google.pl search q sitecore+geo+ip for switching the languages manually create language selector e.g . : https : www.google.pl search q sitecore+language+selector .. . .. . .. . .. . Remember that Sitecore 8 related documentation can be found on https : doc.sitecore.net or https : kb.sitecore.net Comment : Thanks heaps Marek . For point 4 if we can type Mandarin or Japanese any reason why we need automated translator Comment : Also regrading translator did you say they use the Google translator API Comment : If your content authors type Mandarin and Japanese content manually you don t need any automated translator . In terms of automated translators there is a module called Sitecore Language Translator which uses Google API to translate the content but it will never be a proper translation . There are also paid solutions like Clay Tablet - your content is translated by proper human translators .", "Question : We use Sitecore CMS for our website at the moment and are considering adding the Sitecore DMS in the near future . A colleague of mine insists that it is absolutely necessary to have our page-editor along with the cloning functionality enabled and working for us to be able to use the DMS . I m familiar with their CMS but not the DMS so I wanted to know -- is it absolutely necessary .. . Answer : Cloning functionality is mostly used for Multivariant MV Tests . As it suggests in the Marketing Operations Cookbook http : sdn.sitecore.net upload sitecore6 65 marketing operations cookbook sc65-usletter.pdf : .. . .. . When you use the Page Editor to set up an MV test you can use existing content clone content or create new content items to use as test variable variations . This means that you do not need to ask a developer to help you to create special content to use in your MV tests . In the Page Editor one can create combination tests . These tests allow you to test more than one control on the same page . This is multivariant testing . More information on MV Tests like cloning items to use as test variables or creating combination tests is also given in the Marketing Operations Cookbook http : sdn.sitecore.net upload sitecore6 65 marketing operations cookbook sc65-usletter.pdf . More over also remember that you can also create MV Test in Content Editor but note the below as suggested by Sitecore .. . .. . If you create an MV test using the Content Editor you do not have access to the same statistics on Engagement Values generated when you test these controls . We recommend that if possible you create all MV tests using the Page Editor . So if one your goals for using Sitecore DMS is MV tests I would suggest you do use cloning . Hope this helps in deciding the way forward . Comment : That s great thanks man Comment : Please can you mark this as the answer if it has answered your question Thanks .", "Question : I want to edit on Sitecore Page Editor some hidden fields like meta fields from head html section . How can I do it I try with .. . .. . but this is not working for head html section . .. . Answer : I agree the Field Editor button is the right solution but you can do this all without custom code as well : .. . .. . 1 . In the Core DB create a Field Editor button item as Sitecore Climber explained .. . 2 . In the Multi-Line Text Field enter your fields with pipes separating them as Sitecore Climber explained .. . 3 . Find a sublayout that appears on all pages e.g . Header.ascx or something like that . 4 . On that sublayout definition item for that assign the field editor to that UI component via the Page Editor Buttons treelist field . See this image : enter image description here http : i.stack.imgur.com lNzTf.jpg .. . 5 . In Page Editor when you select that sublayout it s context ribbon will contain an extra button that allows you to edit those fields . See this image : enter image description here http : i.stack.imgur.com W6gvZ.jpg .. . 6 . When you click it you get a pop-up to edit those pipe-delimited fields . See this image : enter image description here http : i.stack.imgur.com 8KnLn.jpg", "Question : I am working on integrating an iframe to a Sitecore template . I have created the ASPX page and added that to the iframe in Sitecore template . e.g . sitecore content Custom Editors SampleIFrameEditor .. . .. . It works fine I can see my ASPX page gets rendered in the iframe control . Only issue is that it shows the Page Editor ribbon control on top Home Advanced Expereience.. . which I do not need to be displayed . It s like I opened it up in Page Editor . How can I hide Page Editor options from this scenario .. . Answer : You could add sc mode normal as a query-string to your iframe src URL .", "Question : Currently working in SC7 where I have implemented a kind of scaffolding so that editors can add an article to a page and add sections and paragraphs under it . You get the idea html5 stuff.. . .. . .. . Now the problem.. . Editors are working in Page Editor : .. . .. . Suppose you make a new page and add an article . It has a title hero image on top and an introduction . You choose to create new content and I save it in an ItemBucket called ContenStore where I store all my articles sections paragraphs.. . The SC7 way to use the search if they want to re-use any of that content . Suppose my editor creates another new page and he wants to re-use a section from the content store . He will find the section but when he has placed it on the page non of the paragraphs that were on the original section show up.. . Of course not since I guess the layout details are saved on the context item level and not on that section level.. . .. . .. . Has anyone tackled this problem before A sublayout or rendering should be able to remeber what layout details it has so that if you re-use it all the items it had originally are put in its placeholders again as well and this recursively of course.. . .. . .. . Any thoughts welcome.. . .. . .. . Erwin .. . Answer : The problem you describe is not new to Sitecore 7 . You would have the same problem in Sitecore 6 you would just have to go through the additional effort of keeping your content organized . This is a fundamental limitation of Sitecore s presentation framework . I have worked around similar problems before by using Presentation Inversion of Control http : www.awareweb.com awareblog inversioncontrol1 category e697cc2030034ea39ef65be033a5c530 topic bcab6d57624347eda723110cd70bb48d . I should probably write an update for that since the rules engine approach no longer works .. . .. . I believe that Cognifide is doing something similar with the Composites in their Zen Garden http : www.sitecore.net Community Best-Practice-Blogs Przemyslaw-Taront Posts 2012 08 The-Zen-of-Sitecore-Part-1.aspx but instead of using a dummy layout they use an empty layout so any item can be opened as a page . Then they added a custom experience button which navigates to that non-page content item within the page-editor . Note that this is speculation based on a brief demo that I saw . Thomas Eldblom also blogged years ago about what he called Composite Layouts http : pentialized.dk tag composite-layout . It s similar to PIoC but puts the presentation settings on a special rendering type . In short there are ways to achieve what you want but they all involve custom development and will require extra attention to maintain a smooth page-editor experience .", "Question : I m in the page-editor and I m seeing JSON where editor controls should be .. . .. . commands : click : chrome : field : editcontrol command : webedit : chooseimage header : Choose Image icon : icon SoftwareV2 16x16 photo landscape.png.aspx isDivider : false tooltip : Choose an image type : null click : chrome : field : editcontrol command : webedit : editimage header : Properties icon : icon SoftwareV2 16x16 palette preferences.png.aspx isDivider : false tooltip : Modify image appearance type : null click : chrome : common : edititem command : webedit : open header : Edit the related item icon : temp IconCache SoftwareV2 16x16 cubes blue.png isDivider : false tooltip : Edit this item in the Content Editor . type : common contextItemUri : sitecore : master 2D90E98C-1360-4EBA-855E-3B321B053376 lang en ver 1 custom : displayName : Logo expandedDisplayName : null .. . .. . This is happening in the page-editor but not when I view the site . .. . Answer : I had the same issue . It was because I removed the form method post runat server id mainform from the page . Add it back in . Best if you make it first child under body", "Question : I m trying to set up a basic Sitecore Multivariate test in Sitecore 6.5 rev . 120796 but have run into the same error repeatedly . The error occurs when I am in the Sitecore Page Editor mode . First of all I m not able to select each of the content items on the page and I m not really sure why that is the case . But I may not be 100 clear on what the requirements are for configuring a content item for an A B test in Sitecore . In the Sitecore Page Editor when I highlight a content item and click the red boxes icon to bring up the Test the Component dialog the Test Content Item : just says Not set . When I then click the 3 dots to attempt to browse to a content item I get a pop-up error message that simply says an error occurred . What are the requirements for a content item to be defined as a test variation in this version of Sitecore Or is there something else that needs to be done before attempting to configure the test variations in the Sitecore Page Editor Comment : Just to check is the component you are testing driven by a datasource Comment : Currently no and that is one of the things that I wasn t sure about whether or not it was a requirement for this to work . In addition to having a datasource it seems like the content item that you are defining the test variations for needs to be a sublayout that is attached to a placeholder . Is that correct .. . Answer : In order to use A B Multivariate testing your Sitecore website solution needs to support the idea of page components . Each component is a sublayout that pulls its content from a datasource item . The test is essentially just swapping the datasource for the sublayout so you can test different content much like you would setup DMS personalization . If your content is not structured into page components you cannot execute the tests . There are several companies out there that will audit your build to determine your solution s DMS-readiness and you can probably get them to fix up your build to support DMS as well . If you will be doing it yourself here are the basic steps : .. . .. . 1 . Split up your page layout into sublayouts . At the very least the portion that you want to test should be in its own sublayout . 2 . Create new component templates for your content that will be displayed in these sublayouts . This will be the data for your datasource . 3 . Create new content items from your new component templates to represent the data variations you want to try . 4 . Update the code for your sublayouts to access the Datasource property of the sublayout to find the content Item instead of using Sitecore.Context.Item .. . 5 . Using Page Editor configure your page component datasource to pull from one of your new component content items . Comment : That makes sense . I didn t realize that the components that you re creating test variations for had to be sublayouts with data sources - before you go in and configure the test variants .", "Question : I could not find a single official document on setting up and using multilingual on Sitecore SDN . Basically we have a requirement to enable couple of our multi-site Sitecore website to support multi-lingual i.e . Chinese Mandarin and Japanese . Based on geoip of the visitor or some questions we need to display either English or Mandarin or Japanese for couple of pages on site . Given that I m quiet new to multi-lingual set up could someone please help me below : .. . .. . Sitecore setup : .. . .. . 1 . What exactly do I need to do in terms of Sitecore IA setup Create separate page for each languages 2 . How will content author author the english japanese and mandarin for the same content pages 3 . Do we need to install any language translator such that content author will type in English and it will get translated to Mandarin and Japanese during run time 4 . Is it possible that user can type in Mandarin or Japanese in Sitecore CMS Sitecore Experience Editor : .. . .. . How will user author in Mandarin or Japanese languages using Sitecore page-editor Coding Changes : .. . .. . We are using ASP.NET MVC do we need to make our content repository smart such that it will get content from Sitecore in specific language e.g . pass language or similar I googled on above topic as well but could not find any legitimate result . Thanks . .. . Answer : To make language resolution work based on user IP you may replace processor type Sitecore.Pipelines.HttpRequest.LanguageResolver Sitecore.Kernel with your implementation where you do resolve languages based on IP lookup . With miltilinguality In Sitecore you will still have the same items but some of the fields will be versioned having their own version for each specific language . When authors create content - they are able to switch between languages from your ribbon . enter image description here http : i.stack.imgur.com GL0zA.png .. . .. . From UI point of view the language will be take out from exact user settings that also includes Page Editor in sample below user has German languguage set : .. . .. . enter image description here http : i.stack.imgur.com 7sPzY.png .. . .. . Few more links to read : .. . .. . http : www.newguid.net sitecore 2012 adding-ip-lookup-to-language-resolving .. . .. . http : www.sitecore.net learn blogs technical-blogs john-west-sitecore-blog posts 2011 05 spoof-an-ip-address-to-test-geoip-with-the-sitecore-customer-engagement-platform.aspx Comment : Thansk again Martin", "Question : I want to edit on Sitecore Page Editor some hidden fields like meta fields from head html section . How can I do it I try with .. . .. . but this is not working for head html section . .. . Answer : Sitecore doesn t have out of the box this kind of functionality but you need to follow few steps to do it : .. . .. . 1 . Create under item .. . .. . sitecore content Applications WebEdit Edit Frame Buttons .. . .. . .. . a folder you can name it : PageProperties . Under folder you have to create a new Field Editor Button . On field Fields you need to enter name of the fields you want to edit separate by pipeline . Will be something like : .. . .. . Meta data Meta title .. . .. . .. . 2 . Under item : .. . .. . sitecore content Applications WebEdit Ribbons WebEdit Page Editor .. . .. . .. . you need to create an item of type : .. . .. . sitecore templates System Ribbon Chunk .. . .. . .. . Under new item you have to create new item of type : .. . .. . sitecore templates System Ribbon Small Button .. . .. . .. . On the field Click you will have something like .. . .. . command : executefieldeditor path sitecore content Applications WebEdit Edit Frame Buttons Page Properties Page Properties .. . .. . .. . where path will point to item created at step one . 3 . On this step you need to create a command . Please create on include folder a new file name it : CustomCommands.config or how do you want with extension config . It will contains : .. . .. . xml version 1.0 .. . configuration xmlns : patch http : www.sitecore.net xmlconfig .. . sitecore .. . commands .. . command name command : executefieldeditor type yournamespace.ExecuteFieldEditor yourAssembly .. . commands .. . sitecore .. . .. . .. . 4 . Create your class : .. . .. . .. . using Sitecore .. . using Sitecore.Data .. . using Sitecore.Data.Items .. . using Sitecore.Diagnostics .. . using Sitecore.Shell.Applications.WebEdit .. . using Sitecore.Shell.Applications.WebEdit.Commands .. . using Sitecore.Text .. . using Sitecore.Web.UI.Sheer .. . using System .. . using System.Collections.Generic .. . using System.Collections.Specialized .. . using System.Linq .. . using System.Text .. . using System.Threading.Tasks .. . .. . namespace YOURNAMESPACENAME .. . .. . public class ExecuteFieldEditor : FieldEditorCommand .. . .. . summary .. . The fieldname .. . summary .. . private const string Fieldname Fields .. . .. . summary .. . The header .. . summary .. . private const string Header Header .. . .. . summary .. . The icon .. . summary .. . private const string Icon Icon .. . summary .. . The uriparameter .. . summary .. . private const string Uriparameter uri .. . .. . summary .. . The pathparameter .. . summary .. . private const string Pathparameter path .. . .. . summary .. . The currentitemisnull .. . summary .. . private const string Currentitemisnull Current item is null .. . .. . summary .. . The settingsitemisnull .. . summary .. . private const string Settingsitemisnull Settings item is null .. . .. . summary .. . Gets or sets the current item . summary .. . value .. . The current item . value .. . private Item CurrentItem get set .. . .. . summary .. . Gets or sets the settings item . summary .. . value .. . The settings item . value .. . private Item SettingsItem get set .. . .. . summary .. . Gets the options . summary .. . param name args The arguments . param .. . param name form The form . param .. . returns returns .. . protected override PageEditFieldEditorOptions GetOptions ClientPipelineArgs args NameValueCollection form .. . .. . EnsureContext args .. . return new PageEditFieldEditorOptions form BuildListWithFieldsToShow Title SettingsItem Header Icon SettingsItem Icon .. . .. . .. . summary .. . Ensures the context . summary .. . param name args The arguments . param .. . private void EnsureContext ClientPipelineArgs args .. . .. . CurrentItem Database.GetItem ItemUri.Parse args.Parameters Uriparameter .. . Assert.IsNotNull CurrentItem Currentitemisnull .. . SettingsItem Client.CoreDatabase.GetItem args.Parameters Pathparameter .. . Assert.IsNotNull SettingsItem Settingsitemisnull .. . .. . .. . summary .. . Builds the list with fields to show . summary .. . returns returns .. . private IEnumerable FieldDescriptor BuildListWithFieldsToShow .. . .. . ListString fieldString new ListString SettingsItem Fieldname .. . .. . return from field in new ListString fieldString where CurrentItem.Fields field null select new FieldDescriptor CurrentItem field .ToList .. . .. . .. . .. . .. . .. . Also you can check this post http : blog.istern.dk 2012 05 21 running-sitecore-field-editor-from-a-command .", "Question : I m in the page-editor and I m seeing JSON where editor controls should be .. . .. . commands : click : chrome : field : editcontrol command : webedit : chooseimage header : Choose Image icon : icon SoftwareV2 16x16 photo landscape.png.aspx isDivider : false tooltip : Choose an image type : null click : chrome : field : editcontrol command : webedit : editimage header : Properties icon : icon SoftwareV2 16x16 palette preferences.png.aspx isDivider : false tooltip : Modify image appearance type : null click : chrome : common : edititem command : webedit : open header : Edit the related item icon : temp IconCache SoftwareV2 16x16 cubes blue.png isDivider : false tooltip : Edit this item in the Content Editor . type : common contextItemUri : sitecore : master 2D90E98C-1360-4EBA-855E-3B321B053376 lang en ver 1 custom : displayName : Logo expandedDisplayName : null .. . .. . This is happening in the page-editor but not when I view the site . .. . Answer : I also recently encountered this issue and the resolution for me was to make sure the webedit.css file existed at the location specified by the WebEdit.ContentEditorStylesheet setting . By default the webedit.css file is located at the root of your site but in my instance the file had been moved . Comment : thanks for sharing . We need more info on SiteCore . Their forums are not that great .", "Question : In my content tree I have Folder items that have no presentation but have all the insert options on them . How would you be able to use the Insert Page button in the ribbon to insert a new content item in the right part of the tree For Example : .. . .. . I have my home page Content Folder Home.item All of my insert options are on Content Folder how do I add a new Home.item type without nesting it under Home.item Comment : From what I know you cannot add sibling item to current item in page-editor out of the box . Comment : @MarekMusielak You can use the Insert Page option from the Ribbon : doc.sitecore.net sitecore 20experience 20platform https : doc.sitecore.net sitecore 20experience 20platform creating 20and 20editing 20items create 20an 20item 20in 20the 20experience 20editor Comment : @jammykam from what I understood author wants to add a sibling to current page in Experience Editor not a child page . I don t think there is an option to do that but I might be wrong Comment : @MarekMusielak Yes sorry misunderstood you . But you are right you have to go up the tree and add it as a child . .. . Answer : In order to be able to use the Insert Page button the item you are inserting under must have Presentation defined . It doesn t need to have components added and I ve worked round this before by simply define a blank layout and setting it on those items . Maybe create yourself a new template inheriting from Folder and then set Layout on that . But this is a workaround at best . You can only Insert Page below the current page you are on so you would essentially have to navigate to a blank page in order to create the sibling . From what you have stated it sounds like you may want to re-think where your Insert Options have been set and your content structure i.e . why would you want create another Home item Creating so will require set-up of another site and related config . You probably also want to separate those sites out with other settings there is some good example of multi-site structure in this blog post http : learnsitecore.cmsuniverse.net en Developers Articles 2009 10 how-to-multisite-in-sitecore.aspx . If you go down this route look into using Branch Templates http : www.geekhive.com buzz post 2015 2 how-to-create-branch-templates-in-sitecore-cms . But difficult to know what you are doing without context.. .", "Question : I would kindly ask for your help : From couple of days I am trying to achieve linked custom field in content editor and dropdown in page-editor . Basically I want to have dropdown in page-editor and content editor which are responsible for a same thing . In my c code i have enums which represent directions . I created custom field which accepts assembly and class with overridden onload method and successfully populate dropdown values in the content editor . So far so good but i have no idea how to create dropdown which will represent the same functionality inside page-editor . So please give me any ideas.. . Comment : Correct me if I m wrong but you are trying 2 things : 1 adding a custom field type to sitecore and 2 having that custom field show up as a dropdown in page-editor mode . If I understand correctly you succeeded in part 1 but are struggling with part 2 right Comment : Yes . I successfully created the custom field . As you said in part 2 I am trying to do the same thing in page-editor . I think that a possible solution might be creating page-editor component which i hove no clue how to do : Comment : I think this question deals with far too big a topic to be answered here . I suggest reading the Presentation Component Reference before you attempt to continue sdn.sitecore.net upload sitecore6 64 http : sdn.sitecore.net upload sitecore6 64 presentation component reference-a4.pdf .. . Answer : Judging from your reply to my comment you need to think of the following : How is my field value being rendered onto a page .. . .. . If you are always using 1 control to do this then you just need to ensure that this control has 2 different rendering modes depending on the Context.PageMode .. . .. . But as I understand it you want this dropdown to also appear when someone renders your custom field using a sc : FieldRenderer . In this case you ll need to look into the RenderField pipeline of Sitecore . There you find a processor called RenderWebEditing . Possibly through some manipulation here you can get your dropdown appear as you wish .", "Question : I have a layout with two place holders leftColumn and rightColum . For an item i am adding multiple sublaouts for leftcolumn and multiple sublaouts for rightcolum . Now in page-editor when i am trying to change position using Change Position button in toolbar and move content to another location content is getting moved to my new location as desired . But when i click Save button on Ribbon it is actully deleting moved content from presentation itself . I am not sure why it is behaving like this . we are using Sitecore 6.4 Comment : Looks like a bug you should probably contact Sitecore support . Comment : What happens in the Sitecore content editor under Presentation Layout Details for the item .. . Answer : Can you see anything through Sitecore Logs It may have any errors or exceptions that are being generated .", "Question : I have set up a new role in my Sitecore 8 update 3 instance and have assigned the following roles to it as well as giving read-write access to my content tree : .. . .. . When logged in and using the Content Editor I can change language ok . When I change language in the s Page Editor s Experience Editor however using Experience Language menu item I get a 404 error . If I clear the URL in the browser to the root hostname the language appears to have been changed . Edit : Additional Information .. . .. . It s worth noting that : .. . .. . 1 . The solution does not use translated items . We have a separate content tree within a single instance for each site language . 2 . The linkManager is configured to use DisplayName for the URL . Comment : When you change language in the Experience Editor are you on a page that does not have a version in the selected language Comment : Yes it had versions in en and fr . I deleted en version and can get to the page ok in either language and can switch language using sc lang en or sc lang fr request parameter . Comment : Did you upgrade from a previous version Any errors in the browser console Did you try doing a hard refresh in case something is being cached Comment : The solution was upgraded from an earlier version of Sitecore 8 update 2 but that was some time ago . I ve tried doing a hard refresh and that did not fix the issue . Comment : Is the default language French .. . Answer : Please share the snapshot of your new content tree structure and link manager config settings if possible . Meanwhile can you please revert link manager settings and check if it works fine Also use firebug net tab with persist to see the URLs requested while click on second language . Also please check following cookies values if updated your-site-name lang : - website lang .. . .. . here webiste is name of default sitecore site .. . .. . Moreover when your Experience Editor is loaded just to make sure click on default language from language menu to see if it works even for default language . As said keep your firebug open with persist and keep eye on net tab with all to see if any resource request having 404 ." ] }
[ "yes-answer-long", "yes-answer-short" ]
web
UNK_RELATION
vert.x@groovy@201
vert.x -- vert.x is an event-driven application framework that runs on the jvm allowing the development of asynchronous web-applications in java javascript coffeescript ruby python clojure ceylon and @placeholder .
{ "confidence": [ 50.642425537109375, 48.1543083190918, 46.830406188964844, 44.12635040283203, 43.67656707763672, 42.856712341308594, 42.705352783203125, 42.705352783203125, 42.618507385253906, 42.11958312988281, 41.96162414550781, 41.96162414550781, 41.957801818847656, 41.78520584106445, 41.78520584106445, 41.68427276611328, 41.35443878173828, 41.09019470214844, 41.09019470214844, 40.332908630371094, 40.332908630371094, 40.332908630371094, 40.332908630371094, 40.332908630371094, 40.14527893066406, 40.038360595703125, 40.038360595703125, 39.969173431396484, 39.68468475341797, 39.53386306762695, 39.356719970703125, 39.274959564208984, 39.258766174316406, 38.958099365234375, 38.926082611083984, 38.8382568359375, 38.8382568359375, 38.8382568359375, 38.836490631103516, 38.73446273803711, 38.717750549316406, 38.717750549316406, 38.717750549316406, 37.688018798828125, 37.64624786376953, 37.64624786376953, 37.64624786376953, 37.2275390625, 37.22309875488281, 37.119300842285156, 37.119300842285156, 37.119300842285156, 37.119300842285156, 37.119300842285156, 37.119300842285156, 36.57210159301758, 36.36201858520508, 36.36201858520508, 36.36201858520508, 36.36201858520508, 36.31945037841797, 35.50414276123047, 35.50414276123047, 35.50414276123047, 35.50414276123047, 35.50414276123047, 35.50414276123047, 35.50414276123047, 35.50414276123047, 35.50414276123047, 35.41941833496094, 35.287872314453125, 35.20514678955078, 34.86737060546875, 34.432640075683594, 34.432640075683594, 34.432640075683594, 34.432640075683594, 34.1043701171875, 33.80426025390625, 33.14841079711914, 33.14841079711914, 32.97126770019531, 32.85053253173828, 32.82014465332031, 32.79058837890625, 32.79058837890625, 32.79058837890625, 32.79058837890625, 32.79058837890625, 32.79058837890625, 32.79058837890625, 32.79058837890625, 32.45790481567383, 32.454254150390625, 32.011924743652344, 31.685766220092773, 31.448528289794922, 31.32014274597168, 31.17542839050293 ], "content": [ "Vert.x is highly asynchronous .", "Vert.x is an asynchronous framework however the code is using a synchronous construct that will not work .", "Then why vert.x", "Is it possible to integrate Objectify in a Vert.x application", "I m totally new to vert.x and I m trying to see if it s possible to bring up an existing nodejs application in vert.x .", "Does Vert.x have an equivalent", "There is no official Scala for Vert.x 3 yet .", "There is not official Vert.x support for Scala yet .", "You could build a full application with vert.x .", "To be exact a vert.x event bus opens a connection to my Vert.x backend with the help of sockJS .", "At work we are using the Vert.x 3 Java API with Scala .", "Even though it s possible to use the Java API of Vert.x .", "Does vert.x support a shim layer for running nodejs applications", "Vert.x is version 3.0.0 .", "Vert.x uses callbacks heavily .", ".. . .. . Since vert.x instance means jvm instance you can t use sharedmap set between different jvm .", "Vert.x is implemented in java and when you start vertx like this then you start the jvm which executes vertx core which then executes your javascript .", "I m implementing a RESTful API with Vert.x .", "I use Vert.x 3.3.1 with Hazelcast .", "Is there documentation about using Scala with vert.x 3", "Drop some lines in favor on the Vert.x mailing list .", "I am new to Vert.x using version 3.2.1 .", "You never tell Vert.x that you are finished with deployment .", "Vert.x calls your MyVerticle.start .. . with a Future Void startFuture .", "This bridge will allow your existing application to produce and consume messages of an existing cluster of vert.x applications .", "All I O operations in Vert.x are done using Vert.x API and they do not always relate to the Node counter parts .", "Vert.x OAuth2 is just a OAuth2Client there is no server implementation so you cannot get it from the Vert.x Project itself .", "When dealing with JSON in JS Vert.x you do not need to get a reference to the Java JsonObject implementation but use the native JSON from javascript .", "I want to program a FTP Client with Vert.x in Java - I found only examples for FTPClients in JavaScript .", "We wrapped Vert.x Common SQL interface as an separate jar file as DBHelper .", "If I create a route which makes a few read-write calls to Couchbase what is the correct way to implement this in vert.x web", "I am beginning the initial attempt to use Vert.x in Java .", "However Vert.x 3 does expose an asynchronous API that wraps the underlying Hazelcast cluster manager .", "With jvisualVM you should be able to see all vert.x threads however you should be aware that Vert.x is a reactive framework so you will not see a thread being spawn for each request .", "Because Vert.x is highly asynchronous your application will hand Futures around and compose them as you need .", "@castarco The documentation also says : In later versions of vert.x we aim to extend this to allow data to be shared by all vert.x instances in the cluster .", "As has been pointed out the data sharing objects bundled in Vert.x don t support sharing data across multiple Vert.x instances .", "But vert.x is continuously warning about Worker Thread Block so my question is what would be best practice in vert.x to tackle this scenario .", "When querying DB in Vert.x you reuse same application threads .", "Which version of Vert.x are you using", "Vert.x has a Buffer class that wraps ByteBuf if that helps .", "Vert.x provides a runtime environment to process events .", "Long version : .. . .. . Vert.x is not a Node.JS replacement or runtime .", "EDIT : Just to explain the exact scenario .. . .. . I am using vert.x framework with Java .", "I am currently using the Vert.x package .", "I have been learning Vert.x recently .", "I am using vert.x 2.1.5 version .", "Vert.x is a good choice if you would like to have access to the event bus abstraction in your gateway .", "For example Vert.x choked on this require : .. . .. . After a little searching I found the vert.x equivalent : .. . .. . Perhaps we could create an shim abstraction-layer to wrap the differences .", "I ve implemented a REST API with Vert.x and I want to monitor its threads .", "@CarloBertuccini is there any way to use Hazelcast data-structures in Vert.x", "Vert.x 2 does not support cluster-wide shared data .", "Why vert.x is used in rhiot not spring-boot or simple camel context", "Actually Rhiot uses both Spring Boot Camel and optionally Vert.x .", "However as I said Vert.x is optional since Rhiot 0.1.3 .", "Some even support node.js or vert.x style parallelism by supporting asynchronous disk I O like postgres .", "@Vadeg I m using the latest available version of vert.x", "io.vertx.core.Starter is deprecated in Vert.x 3.x use io.vertx.core.Launcher", "How can i do it in the scope of Vert.x", "This seems to confuse the vert.x oauth client implementation .", "Vert.x use the JVM to create a so called multi-reactor pattern that is a reactor pattern modified to perform better .", "Not sure about older version of Vert.x but from 3.0.0 an up :", "Is it possible to execute multiple SQL insertions updates using Vert.x JDBCClient object", "I think it wasn t the intention of vert.x to run in a batch mode like this .", "The trouble that I m seeing is that vert.x won t load nodejs native modules correctly .", "I am trying to send messages in clustered vert.x to other hosts .", "I m using Vert.x and SockJS to transfer data encapsulated in messages .", "Your question is async and not exactly vert.x-related as prasun suggested as well .", "I assume the solution on Vert.x may be able to work across threads", "This means if you re running ONE MultiDocker image with multiple Vert.x on differen ports .", "Afaik you can t share data between different instances of vert.x -- from the documentation .. . .. . .. . Such a use-case is better solved by providing a shared map structure that can be accessed directly by different verticle instances in the same vert.x instance .", "Vert.x provides a much more convenient way to handle asynchronous results the so called Futures .", "I was planning to use vert.x shell telnet to send and publish messages using bus-send and bus-publish .", "I am working with the Vert.x Gradle template hosted at the Vert.x Github space https : github.com vert-x vertx-gradle-template .", "You can also add Vert.x JDBC client to test it .", "Have a look at the vert.x clustering manual and come with questions related specific problems .", "From vert.x 3.3 you can monitor more closely the worker pool .", "In vert.x I can send a message to another verticle and wait asynchronously for the reply .", "I solved the problem with a non vert.x approach using a Java ExecutorService but left the question open for future reference .", "Though it is with Vert.x 2 and I don t know if it changes in Vert.x 3 github.com vert-x openshift-cartridge tree master versions https : github.com vert-x openshift-cartridge tree master versions shared conf", "The issue only seems to show up in the logs of my vert.x server .", "They most likely return their responses in a callback I don t know vert.x sorry .", "I m making use of a Vert.x web server to serve up a React app as static content .", "Also you should be aware that the JavaScript language version is not the same either for example Node relies on V8 which nowadays is quite close to fully support ECMA2015 or ES6 for short Vert.x as a framework running on the JVM relies on Nashorn the JavaScript runtime from the JDK itself which is still on ES5 .", "I have a REST API exposed by Vert.x 3.3.0 that interacts with Google Cloud Datastore using gcloud-java library .", "Here http : vertx.io vertx2 core manual scala.html is the documentation about using Vert.x 2 with Scala .", "Vert.x requests are very short lived so basing calculations solely on number of requests per second is not optimal .", "Nashorn and inherently Vert.x is not Node so modules such as : .. . .. . fs .. . path .. . net .. . .. . Will not be available since they are node specific native .", "If your dependencies require any of those modules it will not be possible to use them in nashorn and therefore vert.x .", "I ve read many documents off Vert.x and Hazelcast but I haven t had results yet .", "I don t know how to force vert.x to load hazelcast xml-configuration files .", "I m not completely familiar with vert.x not trying to disagree with your statement - this should be possible using hazelcast maps are replicated .", "For Vert.x 2 though you can use the Hazelcast instance directly in your worker verticles .", "I am currently using Vert.x to implement a front-facing REST entry-point for our application .", "I m using Vert.x and Angular and I have a javascript library that I would like to allow other people to leverage in their code client-side code .", "I m currently tying to implement morphia https : github.com mongodb morphia mongoDb s official Java ORM with Vert.x 3 but it looks like all the queries and calls are done synchronously and can block the eventloop of Vert.x 3 .. . .. . How do turn this query into a non-blocking set of code .", ".. . .. . You could use the Vert.x ClusterManager http : vertx.io api java org vertx java core spi cluster ClusterManager.html and it s maps : .. . .. . That map is backed by a Hazelcast IMap and is distributed .", "Does it make sense to have an unrelated service running alongside Vert.x since there is no fleshed out Swagger Codegen for Vert.x sadly which is responsible solely for generating the server stubs", "Now that the scheduler has stopped the thread you will also be notified by Vert.x that you blocked the event-loop which means you should revise your code .", "I am creating a simple TCP server using Vert.x and data is sent between a client and a server in the form of compressed packets ." ] }
{ "confidence": [ 62.67230224609375, 62.275821685791016, 61.08060073852539, 60.37574005126953, 59.32838439941406, 54.88285827636719, 54.317813873291016, 53.77714538574219, 53.77510452270508, 52.19832992553711, 52.166343688964844, 52.16119384765625, 52.04307556152344, 51.59114074707031, 51.27952194213867, 50.217864990234375, 49.754905700683594, 48.935672760009766, 48.25636291503906, 48.16194152832031 ], "content": [ "Question : I m totally new to vert.x and I m trying to see if it s possible to bring up an existing nodejs application in vert.x . Following the instructions at http : vertx.io blog vert-x3-says-hello-to-npm-users I used npm to install vert.x . I can run a simple hello-world app but running our existing app is proving to be a little challenging . All the vert.x docs I ve found talk about writing new apps not porting existing code . Oh and the same code base needs to continue running on existing nodejs systems . The trouble that I m seeing is that vert.x won t load nodejs native modules correctly . For example Vert.x choked on this require : .. . .. . After a little searching I found the vert.x equivalent : .. . .. . Perhaps we could create an shim abstraction-layer to wrap the differences . I did a quick one for the file system API and it seems to load correctly . It does seem like writing an entire abstraction-layer will be a fair bit of work . But it seems like it would solve the compatibility issue for APIs used within our source . The real trouble is how to intercept all the require statements in the node-modules directories . Those modules are also going to be requiring lots of other native APIs like the file-system . This seems like a problem that others may have encountered and solved already . Better not to re-invent the wheel . I could roll my own solution . I don t really want to sed replace the node module source except as a last resort . The only other alternative I have thought of is creating a directory of abstractions an inserting that directory name at the head of the NODE PATH . This solution seems like it might work but as I mentioned I m a vert.x noob so I cannot forsee what kinds of pitfalls lie along that approach . Does vert.x support a shim layer for running nodejs applications .. . Answer : Short version TLDR : .. . .. . You can t Long version : .. . .. . Vert.x is not a Node.JS replacement or runtime . Although there are quite similarities and common design choices such as support for CommonJS modules and support for NPM the native libraries are not present . All I O operations in Vert.x are done using Vert.x API and they do not always relate to the Node counter parts . Also you should be aware that the JavaScript language version is not the same either for example Node relies on V8 which nowadays is quite close to fully support ECMA2015 or ES6 for short Vert.x as a framework running on the JVM relies on Nashorn the JavaScript runtime from the JDK itself which is still on ES5 . The idea of supporting NPM in Vert.x was not to emulate Node but to allow the usage of many of its modules that do not depend on node native modules . For that reason there is a warning on the documentation http : vertx.io docs vertx-core js . But I guess it is not clear . There are some ways to get most out of NPM and Vert.x one option is to go 100 ES6 and use a transpiler such as Babel https : babeljs.io to transpile back to ES5 which will run fine both with Node and Vert.x until the moment you use a native module . If you must to use Node say that you already have an application built on node and the port is not worth in terms of resouces time etc then I d suggest to look into the tcp eventbus bridge https : github.com vert-x3 vertx-tcp-eventbus-bridge . This bridge will allow your existing application to produce and consume messages of an existing cluster of vert.x applications . Comment : Paulo I appreciate your answer . This confirms what I was thinking . I did miss that warning in the docs . The challenge we re facing is that we cannot run V8 because . . . well long story . So moving to vert.x will require a significant amount of rework but it s better than rewriting from scratch . Thanks for your help", "Question : I m developing in Vert.x based on Netty and Hazelcast and I m trying to share data between two server instances eache of those instances in different machines on the same lan . My problem is that I don t know how to configure the vert.x servers to allow them to share their concurrent memory maps the theory says that s possible . I ve read many documents off Vert.x and Hazelcast but I haven t had results yet . I don t know how to force vert.x to load hazelcast xml-configuration files . Thanks in advance .. . Answer : Afaik you can t share data between different instances of vert.x -- from the documentation .. . .. . .. . Such a use-case is better solved by providing a shared map structure that can be accessed directly by different verticle instances in the same vert.x instance . .. . .. . Since vert.x instance means jvm instance you can t use sharedmap set between different jvm . You can use the event bus for this . Comment : I m not completely familiar with vert.x not trying to disagree with your statement - this should be possible using hazelcast maps are replicated . Comment : @castarco The documentation also says : In later versions of vert.x we aim to extend this to allow data to be shared by all vert.x instances in the cluster . So keep an eye on that . Comment : @CarloBertuccini is there any way to use Hazelcast data-structures in Vert.x", "Question : Why vert.x is used in rhiot not spring-boot or simple camel context Is it for EventBus or Distributed Communication between Verticle with HZ or to handle a lot of concurrency due to event-driven and non blocking feature If I want to create IoT I can choose Spring boot with camel route for IO component . Then why vert.x Already read : https : groups.google.com forum topic vertx ULSbuw6J27w .. . Answer : Actually Rhiot uses both Spring Boot Camel and optionally Vert.x . Vert.x is a good choice if you would like to have access to the event bus abstraction in your gateway . However as I said Vert.x is optional since Rhiot 0.1.3 . Comment : Really thank you for your reply .", "Question : I m totally new to vert.x and I wrote a hello world program in JavaScript : .. . .. . When I run the program from the linux command-line on an old ubuntu development system if it matters the program runs but never exits : .. . .. . I have to press CTRL-C to terminate the process which seems wrong . In our production environment it is desirable for processes to exit when they are done . I found this : http : vertx.io docs vertx-core java causing vert x to exit so I added a call to the vertx.close method : .. . .. . And while the onClose function is called the process is not exiting : .. . .. . I also tried vertx.exit as suggested here https : groups.google.com forum topic vertx 5ROEKq4STEw but still the process does not exit . Finally I found this discussion https : groups.google.com forum topic vertx L2r1NUvJcXs that appears to include a Java code patch for vert.x when running on linux but this seems awfully heavy-handed . Here is a list of version numbers for those who might be curious : .. . .. . So several failed google attempts later I m asking SO for help . What am I doing wrong here POSTSCRIPT .. . .. . So it looks like I TL DR ed the Java code patch at https : groups.google.com forum topic vertx L2r1NUvJcXs . The key line of code is : .. . .. . Works like a charm . I m posting this here for others to learn from my mistake . awkward blush .. . Answer : I think it wasn t the intention of vert.x to run in a batch mode like this . Vert.x provides a runtime environment to process events . It provides eventloops which you can use to process your events . Check out this presentation which explains the core concepts of vert.x very well : https : www.youtube.com watch v qL5BGHPXrac . Vert.x is implemented in java and when you start vertx like this then you start the jvm which executes vertx core which then executes your javascript . The problem is that I think you have no access to the java execution environment from your javascript file . If you are willing to write a little bit java code I wrote you a possible solution : https : github.com floriankammermann vertx-examples tree master self-terminating .. . .. . Be aware that you have to communicate everytime over the eventbus if you need to communicate between verticles", "Question : I m developing in Vert.x based on Netty and Hazelcast and I m trying to share data between two server instances eache of those instances in different machines on the same lan . My problem is that I don t know how to configure the vert.x servers to allow them to share their concurrent memory maps the theory says that s possible . I ve read many documents off Vert.x and Hazelcast but I haven t had results yet . I don t know how to force vert.x to load hazelcast xml-configuration files . Thanks in advance .. . Answer : Vert.x 2 does not support cluster-wide shared data . However Vert.x 3 does expose an asynchronous API that wraps the underlying Hazelcast cluster manager . For Vert.x 2 though you can use the Hazelcast instance directly in your worker verticles . Just use Hazelcast s static-methods to get the Vert.x Hazelcast instance : .. . .. . Note that you should only access the Hazelcast API directly in this way from within a worker verticle . The Hazelcast API is blocking so it will block the event-loop if used in a normal verticle .", "Question : I have a situation where I call an external API A and use its response to feed to request of API B and call it and afterwards return the response to caller of API A . Something like below .. . .. . What I am facing here is that API A method is returning response without waiting for getting response from B . .. . .. . I checked about executeBlocking method of vert.x and also tried of using blocking queue but unable to achieve what I am intended to do . Can someone please direct me to correct way of doing it.Thanks in advance . EDIT : Just to explain the exact scenario .. . .. . I am using vert.x framework with Java . Now what happens during execution is flow comes to STEP 1 initiate API A call . Goes to STEP 2 without waiting for respFromApiA and makes call to API B which fails eventually because respFromApiA is NULL . And finally flow goes to STEP 3 and return from here . without waiting for outcomes of API A and API B . If we see the print order it will be something like this .. . .. . What I am trying to achieve I hope I am able to make clear this time . Please let me know if you need further inputs . Comment : Why don t you do both calls in method sequentially Comment : I guess you are doing non-blocking calls . They most likely return their responses in a callback I don t know vert.x sorry . So you need to find either a possibility to tell vert.x that you want those calls to be blocking and return the result or you need to use the callbacks . Comment : Maybe if you showed more of code real code then someone with experience in vert.x could help .. . .. . Answer : Vert.x is highly asynchronous . So most operations will infect return immediately but their results will be available to the Handler at a later point in time . So far so good . If I understand you correctly than you need to call B in the Handler of A . In this case A needs to be finished and the result would be available before you call B : .. . .. . But what you are trying is to make something asynchronous synchron . If you try to make a asynchronous result available in the main program flow that wouldn t work . Call API A can t really return a result because it s calculated asynchronously . The result is only available for the Handler of Call API A see my example above . Same for Call API B so you can t return the result-of Call API B . The caller of your class would also need to call your class with a Handler . Now some additional information . In your case you have the problem that multiple asynchronous results depend on each other . Vert.x provides a much more convenient way to handle asynchronous results the so called Futures . A Future sometimes called Promise but in the Java world they are called Future is a placeholder for results of asynchronous calls . Read about them in the documentation http : vertx.io docs vertx-core java async coordination . With a Future you can do something like this : .. . .. . So instead of trying to return the asynchronous result-of B in a synchronous way you should return a Future so the callee of your class could register for the asynchronous result-of both A and B . I hope this helps . Edit : Future as return-value .. . .. . Lets say you want to wrap callA with so you can work with a Future . You could do it this way : .. . .. . The Caller of this function can use the Future like this : .. . .. . It also possible to compose multiple Future if you want to do them concurrently but they don t dependent on each other : .. . .. . If you work in a asynchronous environment like Vert.x most of time you work with a soon-to-be-available-result aka Future . And in the Handler of a Future you often do another asynchronous call . You wrap a Future with a Future like the example of callB in callA s Handler . How would you return the asynchronous result-of a Future as an HTTP Response Like this : Comment : Thanks @Alexvetter for answering me . I agree with the logic of calling API B in handler of API A . This I tried already and it works.Mistake I am doing is trying to return response to caller of class synchronously which should be handled via a handler . Just to clear one point at the end I have to return the response of API B to the caller.You said about using future object . So we just put return-type as Future and return the future object to caller to get the response Comment : Exactly you should play a little bit with Future and its method setHandler . Comment : Because Vert.x is highly asynchronous your application will hand Futures around and compose them as you need . It s that you don t block the Event Loop Comment : Do you need more information or another example Comment : Hi @alexvetter can you please show me or direct to an example of using future object . Is it like whenver i need to return something from API call I will store the value in future object use it as needed Thanks .", "Question : I have one vert.x Standard Verticle Basically it parses HttpRequest and prepare JsonObject then I am sending JSONObject through eventbus . In Another Worker verticle that event get consumed and it will kick off execution includes call to Penthao Data Integration Java API it is blocking API.It took around 30 minutes to complete execution of .kjb file . But vert.x is continuously warning about Worker Thread Block so my question is what would be best practice in vert.x to tackle this scenario . Any help would be highly appreciated . Comment : vertx.io docs vertx-core java blocking code http : vertx.io docs vertx-core java blocking code .. . Answer : According to vertx doc http : vertx.io docs vertx-core java blocking code all blocking operations need to perform in code .. . .. . So it s the best practice for all blocking tasks .", "Question : Can some one help me to setup Oauth 2 Authorisation server Vert.x 3.3.0 .I dont find any documentation related to it . I found vertx-auth-oauth2 this vert.x module but I guess it will be useful if Authorisation server is different e.g .. . .. . The following code snippet is from vert.x documentation .. . .. . It is using Github as Authorisation server.I am curious to know how to implement Authorisation server in vert.x i know spring-security provides this feature i.e Oauth2Server and OAuth2Client . .. . Answer : Vert.x OAuth2 is just a OAuth2Client there is no server implementation so you cannot get it from the Vert.x Project itself . Vert.x OAuth2 supports the following flows : .. . .. . Authorization Code Flow for apps with servers that can store persistent information . Password Credentials Flow when previous flow can t be used or during development . Client Credentials Flow the client can request an access token using only its client credentials", "Question : Here http : vertx.io vertx2 core manual scala.html is the documentation about using Vert.x 2 with Scala . Is there documentation about using Scala with vert.x 3 Where is it .. . Answer : There is no official Scala for Vert.x 3 yet . You should follow the GitHub repository vertx-lang-scala https : github.com vert-x3 vertx-lang-scala . At work we are using the Vert.x 3 Java API with Scala . It works as it should . But native Scala support which makes use of Scala language features would be great . Drop some lines in favor on the Vert.x mailing list . So perhaps it gets a higher priority .", "Question : If I start up vertx in embedded mode within Bootstrap.groovy and try to hit the same websocket endpoint through multiple browsers the requests get queued up . So depending on the timing of the requests after one request is done with its execution the next request gets into the handler . I ve tried this with both websocket and SockJs and noticed the same behavior on both . BootStrap.groovy SockJs : .. . .. . javascript : .. . .. . OR .. . .. . BootStrap.groovy Websockets : .. . .. . javascript Comment : I m not sure if its a grails issue or vertx issue . .. . Answer : Vert.x use the JVM to create a so called multi-reactor pattern that is a reactor pattern modified to perform better . As far as I understood is not true that each verticle has its own thread : the fact is that each verticle is always served by the same event-loop but more verticles can be binded with the same event-loop and there can be multiple event loops . An event-loop is basically a thread so few threads should serve many verticles . I didn t use vert.x in embedded mode and I don t know if the main concept change but you should perform much better instantiating many verticles for the job .. . .. . Regards Carlo", "Question : I ve implemented a REST API with Vert.x and I want to monitor its threads . I package the app as a fat-jar and I m using JVisualVM and JProfiler for monitoring . When I launch it from the IDE Intellij I can see everything but when I launch it with java -jar fatjar I can only see memory consumption . I enabled JMX from the application thinking JVisualVM uses JMX to get the metrix but it didn t help . What should I do to enable JVisualVM access to threads and CPU Thanks in advance : .. . Answer : With jvisualVM you should be able to see all vert.x threads however you should be aware that Vert.x is a reactive framework so you will not see a thread being spawn for each request . One thread per CPU core will handle all load . What are you trying to monitor exactly would be interesting to know since it could be that you re just looking on the wrong place.. .", "Question : I want to program a FTP Client with Vert.x in Java - I found only examples for FTPClients in JavaScript . Is there any working example for programmed example in Java Comment : There might be . Stack Overflow however is not the place to make requests for them . Please read the help center to understand what is appropriate for this site . .. . Answer : Here is one : .. . vertx-ftp-client is a simple limited async ftp-client which works with vert.x https : github.com bckfnn vertx-ftp-client", "Question : If I create a route which makes a few read-write calls to Couchbase what is the correct way to implement this in vert.x web By using the handler method or the blockingHandler method Also the same question again but under the context of generating web content from a template such as Handlebars or Pebble . Use handler or blockingHandler .. . Answer : It all depends on the kind of code you re writing inside the handler . Starting from your second questions first all template-engine handlers implement a asynchronous API although loading the template itself is blocking but only done once due to the cache . In that case you should use : .. . .. . Going back to the first question if your couchbase client API is blocking meaning that it is not responsive it does block until you get a response back from the server then in that case you must use blockingHandler or else you block the event-loop and by extension block the whole application . If however you re using couchbase async API then you should use the handler variant . For an example on how to use the async API see this blog post http : blog.couchbase.com 2015 december couchbase-java-sdk-writing-vertx-verticle .", "Question : I m developing in Vert.x based on Netty and Hazelcast and I m trying to share data between two server instances eache of those instances in different machines on the same lan . My problem is that I don t know how to configure the vert.x servers to allow them to share their concurrent memory maps the theory says that s possible . I ve read many documents off Vert.x and Hazelcast but I haven t had results yet . I don t know how to force vert.x to load hazelcast xml-configuration files . Thanks in advance .. . Answer : There are options for sharing data among vertx instances on different machines .. . .. . Option 1 . .. . .. . You could use the Vert.x ClusterManager http : vertx.io api java org vertx java core spi cluster ClusterManager.html and it s maps : .. . .. . That map is backed by a Hazelcast IMap and is distributed . This assumes you re running vertx with the -cluster parameter and have configured clustering . However note that this is internal API and is not generally recommended for production . If you are doing a one time experiment then it could be useful . Option 2 . .. . .. . You can get access to Hazelcast once vertx is started in clustered mode : Comment : Went with option 1 and wrapped it in a class . If we want to update vertx in the future where this breaks we ve got one-stop shopping . FYI the aim is to register for notifications to monitor for downed nodes .", "Question : I m developing in Vert.x based on Netty and Hazelcast and I m trying to share data between two server instances eache of those instances in different machines on the same lan . My problem is that I don t know how to configure the vert.x servers to allow them to share their concurrent memory maps the theory says that s possible . I ve read many documents off Vert.x and Hazelcast but I haven t had results yet . I don t know how to force vert.x to load hazelcast xml-configuration files . Thanks in advance .. . Answer : As has been pointed out the data sharing objects bundled in Vert.x don t support sharing data across multiple Vert.x instances . In order to do that you would have to do either : .. . .. . 1 . Use a normal shared database . 2 . Set up a Verticle which manages the SharedMap instances and publishes and listens for updates to and from the rest of the cluster . 3 . Design your application so you don t need to share data in this way .", "Question : I am using vertx-mysql-postgresql-client-3.3.0 and vertx-sql-common-3.3.0 I initially thought of using Batch operation to insert multiple statements but looks like this http : vertx.io docs vertx-sql-common java batch operations is not implemented in the vertx-mysql-postgres-client . The code that handles post data to db is : .. . .. . The AsyncResult handler code : .. . .. . This one doesn t work and gives Thread Blocked error after inserting first . Any idea how I can make the multiple inserts work .. . Answer : Vert.x is an asynchronous framework however the code is using a synchronous construct that will not work . There is a while-loop until a variable is greater than 0 . but the update to the control variable is updated on a async handler which means that it won t be called inside the loop . Knowing this the loop will run forever until the JVM thread scheduler will stop it to run other thread which will eventually update the the control var . Now that the scheduler has stopped the thread you will also be notified by Vert.x that you blocked the event-loop which means you should revise your code . I d suggest either to concatenate the SQL statement in on big sql statement and execute at once or use a for-loop . Note that the for-loop is also not 100 safe . Say that you re inserting 1M rows you can also easily use more than 2s of CPU time and you ll get the warning again . The good solution would be an async loop or look to RX for example . Comment : Using for-loop also I get the same thread already running issue . Will a query like INSERT INTO Targets name id language VALUES taglineParams result - work", "Question : null .. . Answer : my problem is that i cannot send any Java Object new JsonObject or a customObject from a javascript verticle back to a java verticle . i created a small github project to explain my problem : https : github.com marcelalburg stackoverflow verx js jsonobject error .. . .. . i ve a normal verticle class : .. . .. . and this class deployes a javascript verticle : .. . .. . when i run this script i get the error : Comment : When dealing with JSON in JS Vert.x you do not need to get a reference to the Java JsonObject implementation but use the native JSON from javascript . In that case your ambiguity should be solved .", "Question : i am running java application using vet.x 8 instance on 24 core CPU using centOS used threadpool to insert in rabbitMQ sometime my CPU usage goes to 100 and application stuck for some time meanwhile on same server i am running rabbitMQ consumer to receive beacon there also i am using threadpool service Comment : For I O operation you can try to use it in a worker verticle or vertex.executeBlocking in a normal verticle . You can find more details in vertx core document : vertx.io docs vertx-core java blocking code http : vertx.io docs vertx-core java blocking code .. . Answer : It seems that you are calling your rabbitmq client from the event-loop . It is usually forbidden because you are blocking the event-loop . You should use your rabbitmq client from vertx.executeBlocking to deal with a remote service like rabbitmq . You code will be executed with a thread from the worker pool . From vert.x 3.3 you can monitor more closely the worker pool . I would recommend to try the rabbitmq-client for Vert.x : http : vertx.io docs vertx-rabbitmq-client java as it manages the executeBlocking stuff for you .", "Question : Is it possible to integrate Objectify in a Vert.x application Let me give you some context . I have a REST API exposed by Vert.x 3.3.0 that interacts with Google Cloud Datastore using gcloud-java library . Everything works fine but I want to use a higher level API to make all that code easier to read and more maintainable . Objectify setup https : github.com objectify objectify wiki Setup indicates that .. . .. . Objectify requires a filter to clean up any thread-local transaction contexts and pending asynchronous operations that remain at the end of a request . The thing is I have no web.xml and Objectify seems to need a servlet filter to work . .. . Answer : It is my understanding that Objectify is specifically designed for Google App Engine . It works well within applications that are deployed to GAE . I did not have any luck using it outside of GAE not even in Compute Engine . Since you mentioned that you are using the gcloud-java library to access the Cloud Datastore you might want to check out Catatumbo https : github.com sai-pullabhotla catatumbo an Object Mapping and Persistence Framework that is built on top of gcloud-java . Catatumbo is similar to JPA . Catatumbo is an open-source project distributed under the Apache v2 license . Comment : What do you plan for this project Does it has a caching feature Does it support or will support Ref and Key like objectify does Comment : Support for Keys Parent Keys and Key References already exists in the current released version . There is no support for Caching yet but can be implemented . Please feel free to create issues in GitHub for any features that are missing . Be sure to provide as much information as possible .", "Question : I ve got two projects which I ve created : .. . .. . 1 . A web UI built using webpack .. . 2 . A Vert.x webserver written in java built using Gradle .. . .. . I want to find a way to bring the resulting build dir contents of the first project into the second as the webroot which will be server up using the StaticHandler . Is anyone aware of a clean way to do this I want to preserve the two projects as they are because I like using the webpack-dev-server for development of the UI and it generally feels cleaner to have them separated . .. . Answer : You could create a gradle task that before that depends on the jar task so it runs before it executes webpack compile into the resources directory . So when your jar task runs it bundles the compiled webpack code ." ] }
[ "yes-answer-long", "yes-answer-short" ]
groovy
UNK_RELATION
webkit-transform@matrix@210
webkit-transform -- the webkit-transform properties provide some easy-to-use functions for the most common operations such as rotate scale skew and translate and a function to specify a generic transformation @placeholder .
{ "confidence": [ 52.899566650390625, 51.948577880859375, 51.662757873535156, 49.74052047729492, 49.74052047729492, 49.64099884033203, 48.59900665283203, 47.86636734008789, 46.60908508300781, 46.60908508300781, 45.6450309753418, 45.6450309753418, 45.202518463134766, 44.24755096435547, 44.22390365600586, 44.036903381347656, 43.995948791503906, 43.770877838134766, 43.770877838134766, 43.770877838134766, 43.770877838134766, 43.770877838134766, 43.770877838134766, 42.63794708251953, 42.43223571777344, 42.28178405761719, 41.692142486572266, 41.692142486572266, 41.692142486572266, 40.56053161621094, 40.55807876586914, 40.09935760498047, 39.502784729003906, 38.79491424560547, 38.31586456298828, 38.2542724609375, 38.2542724609375, 38.2542724609375, 38.2542724609375, 37.69321823120117, 37.2005729675293, 37.09355545043945, 36.92075729370117, 36.75215148925781, 36.554656982421875, 35.52235794067383, 35.351295471191406, 35.28616714477539, 35.26487731933594, 34.877994537353516, 34.877994537353516, 34.877994537353516, 34.547630310058594, 34.255348205566406, 34.010467529296875, 34.00188446044922, 33.76270294189453, 33.29291534423828, 33.02991485595703, 32.737857818603516, 32.267250061035156, 32.267250061035156, 32.231468200683594, 32.231468200683594, 31.599451065063477, 31.121789932250977, 31.068119049072266, 30.97490692138672, 30.97490692138672, 30.97490692138672, 30.87616729736328, 30.805932998657227, 30.68453598022461, 30.68453598022461, 30.68453598022461, 30.68453598022461, 30.524173736572266, 30.438684463500977, 30.42868423461914, 30.39309310913086, 30.18244743347168, 30.0718994140625, 29.839019775390625, 29.725296020507812, 29.539579391479492, 29.539579391479492, 29.539579391479492, 29.332645416259766, 29.27997589111328, 28.931777954101562, 28.931777954101562, 28.931777954101562, 28.874969482421875, 28.874969482421875, 28.810382843017578, 28.810382843017578, 28.339576721191406, 28.288583755493164, 28.23953628540039 ], "content": [ "Everything works fine when using .. . .. . -webkit-transform : scale 2 .", "And you d rotate both like - -webkit-transform : rotateX 180deg rotateY 180deg", "-webkit-transform : translate 0 0 does prevent the weird loading issues .", "is there any alternative to -webkit-transform css rules on firefox", "Try triggering the CSS 3d Transform mode with webkit .", "I ve written CSS that uses -webkit-transform -webkit-perspective and several similar .", "Use linear option in -webkit-animation .. . .. . .. . div .. . margin : 20px .. . width : 100px .. . height : 100px .. . background : f00 .. . -webkit-animation : spin 1s infinite linear .. . .. . @-webkit-keyframes spin .. . 0 .. . -webkit-transform : rotate 0deg .. . .. . 100 .. . -webkit-transform : rotate 360deg .. . .. . .. . p .. . margin : 20px .. . width : 100px .. . height : 100px .. . background : green .. . -webkit-animation : spin 3s infinite .. . .. . .. . .. . whith linear option .. . div div .. . br whithout linear option .. . p p", "on iPhone -webkit-transform : translate3d is hardware accelerated .", "These panels use -webkit-transform to form them into a nice arrangement .", "On : hover I use -webkit-transform to bring the panel up to the foreground .", "I looked in de source of the demo site and noticed -webkit-transform .", "I am using -webkit-transform and variants on other browsers as the transition property .", "I m rotating an element using -webkit-transform : rotate and in Chrome 14.0.835.2 dev-m it s doing some really weird stuff to the text inside the element .", "I m using the -webkit-transform property to scale and navigate to the scaled image not other browsers required .", "Edit for clarification : webkit-transform and webkit-transition must be used due to them being hardware accelerated and this results in smoother animation .", "I use the translate3d webkit-transform to animate these elements off the screen and then back onto the screen .", "With the following layout : .. . .. . When I put a -webkit-transform : translate 0 30px to both the block 2 and 3 they don t behave the same way .", "I fixed this by adding translateZ 1px to my -webkit-transform .", "Otherwise parse the -webkit-transform value and extract the scaling factor yourself .", "Why does -webkit-transform : translateZ 0 prevent the page from loading", "I am using code to change the -webkit-transform property of an element .", "I have applied webkit-transform for scaling the div down : .", "possible duplicate of How to read individual -webkit-transform values in JavaScript", "Other seem to have somewhat similar issues stackoverflow.com questions 5078186 http : stackoverflow.com questions 5078186 webkit-transform-rotate-pixelated-images-in-chrome", "I can t seem to get the translate property or -webkit-transform working on Android browser correctly despite success in iOS and every desktop browser .", "You can either : .. . .. . Add an eventlistener for transitionend and then replace the 3d transform for a standard transform such as.. . .. . .. . Since Webkit treats stuff as an image it s better to start big and scale down .", "However when the parent div is scaled using -webkit-transform the draggable obviously stops working properly .", "I have one iframe tag with inside element style -webkit-transform : translate3d 0 0 0 to force 3d acceleration .", "I added the following to the element I want to be in front : -webkit-transform : translate3d 0 0 1px", "My question is can this be achieved with CSS transform scale", "However -webkit-transform : translate 0 0 doesn t seem to solve the issue that I was originally having from my original question .", "I m using chrome and I see the following property applied : .. . .. . -webkit-transform : scale 1 1 .. . .. . But that seems to indicate no scaling the original size only .", "That img have a webkit-transfor and a scale that changes when I zoom .", "When I use a webkit 3d transform on hover only the top 50 of the hover area works while the bottom 50 is unstable .", "Can anyone explain what happens to the z-index stack-order of the div elements once I do a webkit-transform on them", "If I remove -webkit-transform : translateZ 0 the issue stops the background problem also reappears .", "-webkit-transform : translate3D 0 0 0 stops long pages from loading completely .", "From the spec it seems like -webkit-transform : none should clear the stack of transforms and or position : fixed but nothing works for me .", "http : stackoverflow.com questions 3432446 how-to-read-individual-webkit-transform-values-in-javascript", "Waiting to see the example .. . .. . Have you tried to do a transform scale 1", "Both support webkit transitions .", "For firefox use transform : scale works like charm without any blurriness .", "CSS code of the div iscroll : .. . .. . A few more observations : .. . .. . I suspect the iscroll is because the previous iscroll version did not use -webkit-transform .", "I am setting -webkit-transform rotateY 180deg but again on the click event I want to bring image back to the original position .", "The blurred fonts are caused by a weird webkit issue invloving -webkit-backface-visibility .", "All of your other transform properties are browser specific .", "just webkit .", "While I know you can do a web-transform http : www.w3schools.com cssref playit.asp filename playcss transform rotate like : javascript : document.body.setAttribute style -webkit-transform : rotate -90deg which works for many sites yet I m after an all inclusive solution .", "Before the transform each element gets these two webkit transition values set via css I am using jQuery to do the .css function-calls : .. . .. . The element is then animated using the translate3d -webkit-transform : .. . .. . Btw I have tried setting the 3rd parameter of translate3d to several different values to try to replicate the stack-order in the 3d space but to no luck .", "For instance when you want your div to be at the bottom of container you do : .. . .. . But if you transform this div like -webkit-transform : rotateX angle it won t be at the bottom of container .", "The answer provided which did solve the issue was to add -webkit-transform : translateZ 0 to the id that solved the issue but caused another one .", "CSS with webkit-transform : .. . .. . Notes : .. . .. . This happens on the iPad Mini running iOS 6.1.3 .. . This problem doesn t appear on the iPhone 4 same version of iOS or in Chrome .", "Make sure to add the following block : .. . .. . Note that the -moz-transform properties were also changed to transform .", "When I applied this to checkboxes this worked much better than transform : scale", "Use a 2D transform and the image will appear crisp in both .", "Here is some more information on how I am doing the transform .", "Is this a bug in latest webkit version", "The transform doesn t seem to antialias .", "Edit : If you add -moz-transform : rotate -45deg it is also well displayed on Firefox", "In chrome currently testing 40.0.2214.38 beta-m I have disapearing elements if i use transform : scale .", "When you 3D transform the div to scale 5 times the result will be blurry in Safari and crisp in Chrome .", "Since the iPhone and iPad are target devices for this project I ended up abandoning scale transform and animating image height instead .", "Yes it s called -moz-transform .", "The 3d transform switches to just antialiased .", "also -o-transform for opera and -ms-transform for ie and they are called vendor prefixes not alternatives :", "I remember to had a similar problem and I had to re-arrange the html order of elements and utilise a transform that I didn t need it just because the z-index of the use of transform changed .", "Given a string translateX -50 scale 1.2 with N transform functions .. . .. . 1 I would like to match the names translateX scale .. . .. . 2 I would like to match the values -50 1.2", "Here are the webkit styles for my animated objects .", "Add this -webkit-animation-fill-mode : forwards", "-webkit-filter : blur 0 alone works for me .", "Both of these properties fix the problem that you are having but some people also like to add -webkit-font-smoothing : subpixel-antialiased to their animated to object .", "font seems to be antialiased but before the transform is applied .", "Is it specific to this webkit or Chrome version or is there something I can do to fix it", "See here http : maxvoltar.com archive -webkit-font-smoothing", "The direct editing of the -webkit-font-smoothing property didn t work for me though .", "Furthermore you can explicitly define -webkit-font-smoothing : subpixel-rendering", "Example - http : jsfiddle.net Fz7qh 2 .. . .. . When I use the CSS zoom property as opposed to transform : scale it works as expected but I hear the zoom property is not well supported .", "After the transform the elements no longer respect their set z-index values .", "z-index will work against 3d transformed divs if you style the stackable element with -webkit-transform : translateZ 0px .. . .. . Snippet on codepen - http : codepen.io mrmoje pen yLIul .. . .. . In the example the buttons stack up and stack down raise and lower the footer s z-index + -1 against the rotated element an img in this case .", "Seems like there has been a recent update to Google Chrome that causes blurry text after doing a transform : scale .", "If you want to switch back to 2D rendering for child elements use transform-style : flat .", "If you need to know what s the transformation for perspective : stackoverflow.com questions 8029605 http : stackoverflow.com questions 8029605 what-is-the-math-behind-webkit-perspective", "I didn t realize you could use transform on a static element .", "@neaumusic But that is not a valid transform-list http : www.w3.org TR css3-transforms typedef-transform-list", "That isn t surprising because Webkit is a rendering engine used in Chrome but not Firefox or IE see this question stackoverflow.com questions 3468154 http : stackoverflow.com questions 3468154 what-is-webkit-and-how-is-it-related-to-css .", "this changes the way chrome renders .. . .. . .. . .. . edit .. . .. . There also a Webkit only style declaration -webkit-font-smoothing which takes the values .. . .. . none .. . subpixel-antialiased .. . antialiased .. . .. . where subpixel-antialiased is the default-value .", "What this is effectively doing is activating -webkit-font-smoothing : antialiased on your entire page which is actually a step back from the default -webkit-font-smoothing : subpixel-rendering .", "I think you need the Transformable http : plugins.jquery.com project transformable jQuery plugin in order to normalize the WebKit scaling .", "So in preserve-3d mode we gotta use z-axis of transform to set order and in flat mode we should use z-index .", "Running it by that : .. . .. . Tried without transform-style too .", "The reason is because you are using the transform property twice .", "As both transform declarations are in the same rule set this is the case .", "Very simply just apply a different transform to each element .", "A workaround is to convert to a 2D transform after you are done with the 3D .", "But i don t understand how s -webkit-perspective value could be ignored in calculations", "about vendor-prefix please do it by yourself . -webkit-filter -ms-filter .", "Here is my code : .. . .. . The important parts are these : .. . .. . From the JavaScript : .. . .. . From the CSS : .. . .. . Everything appears to be working except the -webkit-transform : scale .5 .5 is being ignored when the pop.style.webkitTransform scale 1 1 is in the Javascript and the -webkit-transition : all .5s ease-in-out just isn t doing anything .", "If I am not in error every time that you use a transform it become the highest z-index available and it is ordered by the nearest element of html is to the start of the tag .", "Where use this or not -webkit-backface-visibility : hidden .. . .. . This issue is only on Android default browser not on Firefox Opera and Chrome" ] }
{ "confidence": [ 62.74504089355469, 60.631927490234375, 59.99031066894531, 59.73499298095703, 58.52440643310547, 56.76898193359375, 55.500633239746094, 55.286170959472656, 54.16749572753906, 54.014129638671875, 53.88872146606445, 53.5120849609375, 51.49081802368164, 51.05756378173828, 50.99721908569336, 50.95227813720703, 50.802364349365234, 50.149715423583984, 49.581302642822266, 49.32661437988281 ], "content": [ "Question : I am trying to rotate an element using jquery . My problem is that the element doesn t rotate fluently but the speed is being increased from the beginning and decreased in before the end of the rotation . Is there a way to rotate element fluently Thanks . .. . Answer : Try this . Use linear option in -webkit-animation .. . .. . .. . div .. . margin : 20px .. . width : 100px .. . height : 100px .. . background : f00 .. . -webkit-animation : spin 1s infinite linear .. . .. . @-webkit-keyframes spin .. . 0 .. . -webkit-transform : rotate 0deg .. . .. . 100 .. . -webkit-transform : rotate 360deg .. . .. . .. . p .. . margin : 20px .. . width : 100px .. . height : 100px .. . background : green .. . -webkit-animation : spin 3s infinite .. . .. . .. . .. . whith linear option .. . div div .. . br whithout linear option .. . p p", "Question : I have two absolutely positioned div elements that overlap . Both have set z-index values via css . I use the translate3d webkit-transform to animate these elements off the screen and then back onto the screen . After the transform the elements no longer respect their set z-index values . Can anyone explain what happens to the z-index stack-order of the div elements once I do a webkit-transform on them And explain what I can do to keep the stack-order of the div elements Here is some more information on how I am doing the transform . Before the transform each element gets these two webkit transition values set via css I am using jQuery to do the .css function-calls : .. . .. . The element is then animated using the translate3d -webkit-transform : .. . .. . Btw I have tried setting the 3rd parameter of translate3d to several different values to try to replicate the stack-order in the 3d space but to no luck . Also iPhone iPad and Android browsers are my target browser that this code needs to run on . Both support webkit transitions . Comment : Can you post a link-to see the example Comment : I met same issue . I have one iframe tag with inside element style -webkit-transform : translate3d 0 0 0 to force 3d acceleration . It turns out that outside frame with higher z-index is always hidden by the inside iframe element . Just visual hidden I can click on the invisible outside element . This only happens in Mobile Safari . .. . Answer : Waiting to see the example .. . .. . Have you tried to do a transform scale 1 I remember to had a similar problem and I had to re-arrange the html order of elements and utilise a transform that I didn t need it just because the z-index of the use of transform changed . If I am not in error every time that you use a transform it become the highest z-index available and it is ordered by the nearest element of html is to the start of the tag . So from up to below . I hope that this help", "Question : I m rotating an element using -webkit-transform : rotate and in Chrome 14.0.835.2 dev-m it s doing some really weird stuff to the text inside the element . It reminds me of a similar effect you get in Photoshop when you rotate text using smooth anti-aliasing instead of crisp . Anyone know what s going on here Is it specific to this webkit or Chrome version or is there something I can do to fix it It s also not anti-aliasing the borders between list elements .. . .. . Wonky text http : i.stack.imgur.com FpaLs.png .. . .. . Here s the CSS : Comment : font seems to be antialiased but before the transform is applied . The transform doesn t seem to antialias . Have you tried rotating it a bit more than just .7deg Other seem to have somewhat similar issues stackoverflow.com questions 5078186 http : stackoverflow.com questions 5078186 webkit-transform-rotate-pixelated-images-in-chrome Comment : Changing the rotation does nothing unfortunately . The effect still happens . Comment : cssdeck.com labs full ornh3chv http : cssdeck.com labs full ornh3chv .. . Answer : Try triggering the CSS 3d Transform mode with webkit . this changes the way chrome renders .. . .. . .. . .. . edit .. . .. . There also a Webkit only style declaration -webkit-font-smoothing which takes the values .. . .. . none .. . subpixel-antialiased .. . antialiased .. . .. . where subpixel-antialiased is the default-value . Alas the subpixel antialias is no good solution for rotated text . The rendering machine cant handle that . The 3d transform switches to just antialiased . But we can try to set it directly . See here http : maxvoltar.com archive -webkit-font-smoothing Comment : Thanks this fixes it But now the fonts are a little blurry... . Comment : I think we can not do anything about that . Try a bold or not bold font with color black maybe Comment : Add a background-color to the text element . Comment : The translate3d method worked for me but yes it blurs the text a bit . The direct editing of the -webkit-font-smoothing property didn t work for me though . You do sacrifice the crispness of the text with this approach but overall I think it looks better than wonky text", "Question : I have two absolutely positioned div elements that overlap . Both have set z-index values via css . I use the translate3d webkit-transform to animate these elements off the screen and then back onto the screen . After the transform the elements no longer respect their set z-index values . Can anyone explain what happens to the z-index stack-order of the div elements once I do a webkit-transform on them And explain what I can do to keep the stack-order of the div elements Here is some more information on how I am doing the transform . Before the transform each element gets these two webkit transition values set via css I am using jQuery to do the .css function-calls : .. . .. . The element is then animated using the translate3d -webkit-transform : .. . .. . Btw I have tried setting the 3rd parameter of translate3d to several different values to try to replicate the stack-order in the 3d space but to no luck . Also iPhone iPad and Android browsers are my target browser that this code needs to run on . Both support webkit transitions . Comment : Can you post a link-to see the example Comment : I met same issue . I have one iframe tag with inside element style -webkit-transform : translate3d 0 0 0 to force 3d acceleration . It turns out that outside frame with higher z-index is always hidden by the inside iframe element . Just visual hidden I can click on the invisible outside element . This only happens in Mobile Safari . .. . Answer : This is most definitely related to the bug noted by samy-delux . This should only affect any elements which are positioned as absolute or relative . In order to remedy the issue you can apply the following css statement to every element which is positioned this way and is causing issues : .. . .. . This will apply the transform to the element without actually doing a transformation but affecting its render order so it is above the element causing the issue . Comment : Using Chrome 35.0.1916.114 m I found that if I didn t have this rule after the element was flipped transform : rotateY 180deg that the jQuery click handlers didn t work for that element any more . Also after a flip there are issues with artefacts being left on the screen and especially if they had their opacity changed unless the translate3d is present This article helped sitepoint.com fix-chrome-animation-flash-bug http : www.sitepoint.com fix-chrome-animation-flash-bug Comment : This just resolved a very sticky issue for me involving two fixed elements one containing a 3d transformed element . The 3d transformed element would basically overflow and sit on top of the other element until the fix above was applied . Comment : doesnt work . Only work if I remove animated styls by class .", "Question : I have had an issue with the Background Image not rendering correctly on the iPad http : stackoverflow.com questions 16785085 background-image-not-displaying-correctly-in-ios . The answer provided which did solve the issue was to add -webkit-transform : translateZ 0 to the id that solved the issue but caused another one . On one page which is a very long page the content stops loading half-way through the page . If I remove -webkit-transform : translateZ 0 the issue stops the background problem also reappears . Why does -webkit-transform : translateZ 0 prevent the page from loading CSS with webkit-transform : .. . .. . Notes : .. . .. . This happens on the iPad Mini running iOS 6.1.3 .. . This problem doesn t appear on the iPhone 4 same version of iOS or in Chrome . This does cause major issues in Safari 5.1 I am running Windows . .. . Answer : Have you tried or : Comment : -webkit-transform : translate 0 0 does prevent the weird loading issues . -webkit-transform : translate3D 0 0 0 stops long pages from loading completely . However -webkit-transform : translate 0 0 doesn t seem to solve the issue that I was originally having from my original question . http : stackoverflow.com q 16785085 825757", "Question : I have two absolutely positioned div elements that overlap . Both have set z-index values via css . I use the translate3d webkit-transform to animate these elements off the screen and then back onto the screen . After the transform the elements no longer respect their set z-index values . Can anyone explain what happens to the z-index stack-order of the div elements once I do a webkit-transform on them And explain what I can do to keep the stack-order of the div elements Here is some more information on how I am doing the transform . Before the transform each element gets these two webkit transition values set via css I am using jQuery to do the .css function-calls : .. . .. . The element is then animated using the translate3d -webkit-transform : .. . .. . Btw I have tried setting the 3rd parameter of translate3d to several different values to try to replicate the stack-order in the 3d space but to no luck . Also iPhone iPad and Android browsers are my target browser that this code needs to run on . Both support webkit transitions . Comment : Can you post a link-to see the example Comment : I met same issue . I have one iframe tag with inside element style -webkit-transform : translate3d 0 0 0 to force 3d acceleration . It turns out that outside frame with higher z-index is always hidden by the inside iframe element . Just visual hidden I can click on the invisible outside element . This only happens in Mobile Safari . .. . Answer : I haven t been able to reproduce the problem you describe here . Regardless of what I do the z-index value is retained throughout all transforms . I m testing using Chromium Google Chrome . The third argument of the translate3d function manipulates the z-axis of the element . The concept is similar to but not exactly the same as the z-index.. . Elements with a lower z-axis are under elements with a higher value . I know you tried values of the third argument to match your intended z-index but the problem is that the z-axis doesn t seem to change during CSS3 animation . In the following example the hovered element should be on top but element a stays on top . If I add a z-index to both the regular selector and the : hover selector it seems to work and allow the hovered element to be top-most . Although it s not exactly what you were looking for this behavior provides a solution . You just need to use translate3d and z-index to set the order for the initial rendering . Comment : This worked for me thanks I added the following to the element I want to be in front : -webkit-transform : translate3d 0 0 1px", "Question : I have two absolutely positioned div elements that overlap . Both have set z-index values via css . I use the translate3d webkit-transform to animate these elements off the screen and then back onto the screen . After the transform the elements no longer respect their set z-index values . Can anyone explain what happens to the z-index stack-order of the div elements once I do a webkit-transform on them And explain what I can do to keep the stack-order of the div elements Here is some more information on how I am doing the transform . Before the transform each element gets these two webkit transition values set via css I am using jQuery to do the .css function-calls : .. . .. . The element is then animated using the translate3d -webkit-transform : .. . .. . Btw I have tried setting the 3rd parameter of translate3d to several different values to try to replicate the stack-order in the 3d space but to no luck . Also iPhone iPad and Android browsers are my target browser that this code needs to run on . Both support webkit transitions . Comment : Can you post a link-to see the example Comment : I met same issue . I have one iframe tag with inside element style -webkit-transform : translate3d 0 0 0 to force 3d acceleration . It turns out that outside frame with higher z-index is always hidden by the inside iframe element . Just visual hidden I can click on the invisible outside element . This only happens in Mobile Safari . .. . Answer : Bit Late to this but try putting on the elements that have lost their Z-index placing the following I had an issue when doing some parallax stuff recently and this helped massively . This saves putting .. . .. . On other elements which puts more strain on the GPU", "Question : I have two absolutely positioned div elements that overlap . Both have set z-index values via css . I use the translate3d webkit-transform to animate these elements off the screen and then back onto the screen . After the transform the elements no longer respect their set z-index values . Can anyone explain what happens to the z-index stack-order of the div elements once I do a webkit-transform on them And explain what I can do to keep the stack-order of the div elements Here is some more information on how I am doing the transform . Before the transform each element gets these two webkit transition values set via css I am using jQuery to do the .css function-calls : .. . .. . The element is then animated using the translate3d -webkit-transform : .. . .. . Btw I have tried setting the 3rd parameter of translate3d to several different values to try to replicate the stack-order in the 3d space but to no luck . Also iPhone iPad and Android browsers are my target browser that this code needs to run on . Both support webkit transitions . Comment : Can you post a link-to see the example Comment : I met same issue . I have one iframe tag with inside element style -webkit-transform : translate3d 0 0 0 to force 3d acceleration . It turns out that outside frame with higher z-index is always hidden by the inside iframe element . Just visual hidden I can click on the invisible outside element . This only happens in Mobile Safari . .. . Answer : This might be related to : https : bugs.webkit.org show bug.cgi id 61824 .. . .. . Basically when you apply a 3D transform on the z-axis the z-index can t be accounted for anymore you re now in a 3 dimensional rendering plane use different z-values . If you want to switch back to 2D rendering for child elements use transform-style : flat . Comment : So what s the solution Comment : Basically when you apply a 3D transform on the z-axis the z-index can t be accounted for anymore you re now in a 3 dimensional rendering plane use different z-values . If you want to switch back to 2D rendering for child elements use transform-style : flat . Comment : So in preserve-3d mode we gotta use z-axis of transform to set order and in flat mode we should use z-index . The bug is that z-index on safari is broken in combination with HW accelerated transforms . Comment : doesnt work . Only work if I remove animated styls by class .", "Question : I have two absolutely positioned div elements that overlap . Both have set z-index values via css . I use the translate3d webkit-transform to animate these elements off the screen and then back onto the screen . After the transform the elements no longer respect their set z-index values . Can anyone explain what happens to the z-index stack-order of the div elements once I do a webkit-transform on them And explain what I can do to keep the stack-order of the div elements Here is some more information on how I am doing the transform . Before the transform each element gets these two webkit transition values set via css I am using jQuery to do the .css function-calls : .. . .. . The element is then animated using the translate3d -webkit-transform : .. . .. . Btw I have tried setting the 3rd parameter of translate3d to several different values to try to replicate the stack-order in the 3d space but to no luck . Also iPhone iPad and Android browsers are my target browser that this code needs to run on . Both support webkit transitions . Comment : Can you post a link-to see the example Comment : I met same issue . I have one iframe tag with inside element style -webkit-transform : translate3d 0 0 0 to force 3d acceleration . It turns out that outside frame with higher z-index is always hidden by the inside iframe element . Just visual hidden I can click on the invisible outside element . This only happens in Mobile Safari . .. . Answer : z-index will work against 3d transformed divs if you style the stackable element with -webkit-transform : translateZ 0px .. . .. . Snippet on codepen - http : codepen.io mrmoje pen yLIul .. . .. . In the example the buttons stack up and stack down raise and lower the footer s z-index + -1 against the rotated element an img in this case . Comment : the stack up can t be clicked again Comment : Hey @Moje i m also wondering about this issue . The stack up still cannot be clicked again . Comment : @alchuang Fixed....got the buttons out of the footer Comment : Why did I not think to add a negative z-index to the translated element Thanks", "Question : I m using CSS 3D transformations to zoom a div for example : .. . .. . The scaling itself works fine in any WebKit browser . However when using this on Safari mobile or Windows the content of the div is not re-rendered . The result is that the content gets blurred after scaling . This effect only occurs when using 3D transformations . Everything works fine when using .. . .. . -webkit-transform : scale 2 . In order to exploit hardware-acceleration on iPhone iPad it would be nice to use the 3D transformations . Does anybody know how to tell Safari to re-render a div with the new scale Comment : How do you know the browser is not re-rendering the contents of the DIV Does it contain an image com .. . Answer : The reason why the text is blurry is because Webkit is treating the text as an image I guess it s the price of being hardware accelerated . I m assuming you are using transitions or animation keyframes in your ui otherwise the performance gains are negligible and you should switch to non-3d transforms . You can either : .. . .. . Add an eventlistener for transitionend and then replace the 3d transform for a standard transform such as.. . .. . .. . Since Webkit treats stuff as an image it s better to start big and scale down . So write your css in your end state and scale it down for your normal state.. . .. . .. . And you get a crispy text on hover . I made a demo here works on iOS too : .. . .. . http : duopixel.com stack scale.html Comment : Worked for me although there are some really strange behavior around margins and padding for those 2x ed scaled elements .", "Question : I m rotating an element using -webkit-transform : rotate and in Chrome 14.0.835.2 dev-m it s doing some really weird stuff to the text inside the element . It reminds me of a similar effect you get in Photoshop when you rotate text using smooth anti-aliasing instead of crisp . Anyone know what s going on here Is it specific to this webkit or Chrome version or is there something I can do to fix it It s also not anti-aliasing the borders between list elements .. . .. . Wonky text http : i.stack.imgur.com FpaLs.png .. . .. . Here s the CSS : Comment : font seems to be antialiased but before the transform is applied . The transform doesn t seem to antialias . Have you tried rotating it a bit more than just .7deg Other seem to have somewhat similar issues stackoverflow.com questions 5078186 http : stackoverflow.com questions 5078186 webkit-transform-rotate-pixelated-images-in-chrome Comment : Changing the rotation does nothing unfortunately . The effect still happens . Comment : cssdeck.com labs full ornh3chv http : cssdeck.com labs full ornh3chv .. . Answer : The blurred fonts are caused by a weird webkit issue invloving -webkit-backface-visibility . This took me forever to figure out and I haven t seen it anywhere else on the web yet . I now add -webkit-backface-visibility : hidden to the body of my site as a CSS reset style . Watch it sharpen the fonts on your entire site its amazing . You re transformations are not 3d so this wont affect anything anyway but if you do decide to do 3d transformations somewhere else on your site just add back -webkit-backface-visibility : visible to the specific element . Should also fix the flickering too . Comment : Don t do this . What this is effectively doing is activating -webkit-font-smoothing : antialiased on your entire page which is actually a step back from the default -webkit-font-smoothing : subpixel-rendering . See Please Stop Fixing Font Smoothing http : www.usabilitypost.com 2012 11 05 stop-fixing-font-smoothing for more background . Comment : I see what you re saying but the visible result is unbelievably better . Mobile devices do not use sub-pixel rendering anyway so this doesnt affect them . This also fixes the flashing which is a huge issue and in my opinion something that you simply can t live with . Can you suggest a better way to stop both the flashing and render the fonts correctly Furthermore you can explicitly define -webkit-font-smoothing : subpixel-rendering Comment : Perhaps you should post a new question with those points so that they can be answered separately I think they re off-topic for the comments here . Comment : Perhaps but I believe that users who now visit this question will also want to know the answer . You didn t offer any sort of solution to the problem just said that my solution was incorrect . Moreover the case for sub-pixel rendering is still a matter of opinion . Many browsers and OS do funky things with sub-pixel rendering and can hurt the design . Sub-pixel rendering is also automatically turned off during css transformations causing all sorts of issues . With the prevalence of css transformations in development today I see a strong case for using anti-aliased rendering globally Comment : This seemed to work for me . I didn t see any change in the rest of the page s text-rendering when it was applied to a specific element that was animated .", "Question : Given a string translateX -50 scale 1.2 with N transform functions .. . .. . 1 I would like to match the names translateX scale .. . .. . 2 I would like to match the values -50 1.2 Comment : And what is your question Comment : possible duplicate of How to read individual -webkit-transform values in JavaScript http : stackoverflow.com questions 3432446 how-to-read-individual-webkit-transform-values-in-javascript Comment : The question is very obvious though not explicit .. . Answer : If you absolutely must use regular expression to do this you can use the exec http : www.w3schools.com jsref jsref regexp exec.asp method in a loop pushing the match result-of the captured group s to the desired arrays of choice . The regular expression uses two capture groups the first matches captures word characters only the second uses negation which will match any character except zero or more times . Comment : can you explain whats going on Comment : the capture groups how you re excluding parens using commas instead of semicolons etc . is there any good site to really learn regex well i feel like it s an incredibly valuable tool especially for natural language processing Comment : If you re new to regular expressions I would start here http : www.regular-expressions.info", "Question : Given a string translateX -50 scale 1.2 with N transform functions .. . .. . 1 I would like to match the names translateX scale .. . .. . 2 I would like to match the values -50 1.2 Comment : And what is your question Comment : possible duplicate of How to read individual -webkit-transform values in JavaScript http : stackoverflow.com questions 3432446 how-to-read-individual-webkit-transform-values-in-javascript Comment : The question is very obvious though not explicit .. . Answer : Try something like w+ .+ : .. . .. . w+ : Match the regular expression below and capture its match into backreference number 1 .. . w+ : Match a single character that is a word character letters digits and underscores .. . + : Between one and unlimited times as many times as possible giving back as needed greedy .. . : Match the character literally .. . .+ : Match the regular expression below and capture its match into backreference number 2 .. . .+ : Match any single character that is not a line break character .. . + : Between one and unlimited times as few times as possible expanding as needed lazy .. . : Match the character literally Comment : @hwnd Oh you beat me by 6 seconds : Well there is the difference between .+ and . Comment : could this not match translateX -50 scale 1.2 Comment : @neaumusic But that is not a valid transform-list http : www.w3.org TR css3-transforms typedef-transform-list Comment : sorry updated it . so it will never keep looking once the closing paren is found Comment : @neaumusic Yes it needs a closing parenthesis . And translateX -50 scale 1.2 works : jsfiddle.net f9nyv4nd http : jsfiddle.net f9nyv4nd", "Question : SOLVED - the problem is that doing a rotation puts half of the element behind the neutral zero Z-axis for the webpage and WebKit apparently doesn t allow mouse events through that neutral plane . So changing the rotation point to the right left edges of the panels solved it . Weird but for now it works . I have a simple HTML5 CSS3 page with four panels . These panels use -webkit-transform to form them into a nice arrangement . On : hover I use -webkit-transform to bring the panel up to the foreground . The code is below . What happens is that the : hover action is unreliable . If I swipe the mouse over the panels it s common to stop moving the mouse with it hovering over a panel but the panel is still in its original position . Specifically swiping from left to right the leftmost two panels appear to work fine but the rightmost two don t scale up until the mouse is halfway across the panel . What would cause this EDIT : Quick follow-up it appears that links placed in the transformed elements will only be clickable on the leftmost for the two left panels or rightmost for the two right panels halves of the elements . In other words the click zone is only active for the closer half of the element . First the HTML minimal example : .. . .. . And the CSS : .. . Answer : I had the same issue with only the top 50 of the link being hoverable and clickable while the entire element was still visible . I fixed this by adding translateZ 1px to my -webkit-transform . This brings the entire element in front of the Z-axis and makes it completely hoverable and clickable . There is however a 1px zoom with the translateZ but it s unnoticeable . Until this issue is dealt with this will have to do", "Question : I can t seem to get the translate property or -webkit-transform working on Android browser correctly despite success in iOS and every desktop browser . My full solution is a small jQuery function like this : .. . .. . which is called like this : .. . .. . I ve read in some places that Android has broken support for multiple css3 actions at the same time however even when I replace all of this code with this simple dummy call the transform never happens : .. . .. . Am I doing something wrong that is specific to android .. . Answer : I have just ran into this with .. . .. . So I am hoping this will help you . I believe this is one of the broken css3 elements in the Android Browser . I had to sub out the above code with top : 200px .. . .. . In your situation I would try using a simple left such as left : 1000px .. . .. . remember your position statement if you need more accurate control", "Question : I m using this code for letting a image rotate on scroll and it s working great : .. . .. . Instead of .scrollTop I use .scrollLeft because my site is horizontally scrolling . I got this code from : http : demosthenes.info blog 718 Rotating-Elements-With-Page-Scroll-In-JQuery .. . .. . The example on this site has 2 images . They are turning in opposite directions and with different speed . How can I achieve this I looked in de source of the demo site and noticed -webkit-transform . I guess this has to do with it Can someone help I want my image to turn the other side and I want it to turn at slower speed . .. . Answer : Very simply just apply a different transform to each element . In the example you give you have the rightgear element rotate -theta rads while the leftgear element rotates theta rads . You can apply a small modifier to one of these to change the speed like :", "Question : I am trying to display text in html using rotate to display it at 45deg or near enough that .. . .. . Unfortunately it just doesn t look good at all . Does anyone know of a way to fix this or maybe a font that renders better when its at 45degs than other fonts Example below http : jsfiddle.net stevewill61 3WpfP .. . .. . CSS for the Banner in the jsfiddle is the following .. . .. . Here is a picture as requested .. . .. . http : oi39.tinypic.com 2607ifa.jpg Comment : Please describe the problem or share a screenshot . For me the text is diplayed fine on chrome but not rotated on Firefox probably because of the webkit prefix . Edit : If you add -moz-transform : rotate -45deg it is also well displayed on Firefox Comment : Looks fine to me . This is what I see : i.stack.imgur.com MJYRs.png http : i.stack.imgur.com MJYRs.png .. . Answer : Add -webkit-backface-visibility : hidden to the rule .. . .. . Demo at http : jsfiddle.net 3WpfP 5", "Question : I m using CSS 3D transformations to zoom a div for example : .. . .. . The scaling itself works fine in any WebKit browser . However when using this on Safari mobile or Windows the content of the div is not re-rendered . The result is that the content gets blurred after scaling . This effect only occurs when using 3D transformations . Everything works fine when using .. . .. . -webkit-transform : scale 2 . In order to exploit hardware-acceleration on iPhone iPad it would be nice to use the 3D transformations . Does anybody know how to tell Safari to re-render a div with the new scale Comment : How do you know the browser is not re-rendering the contents of the DIV Does it contain an image com .. . Answer : I m trying to do the same thing . I think what s happening here is that Safari is just scaling pixels . That is it does all its normal browser rendering and then scales the pixels of the result . Example : Place a relatively high quality image say 1000x1000 pixels in a small div 200x200 pixels and set the image to 100 width and height . When you 3D transform the div to scale 5 times the result will be blurry in Safari and crisp in Chrome . Use a 2D transform and the image will appear crisp in both . A workaround is to convert to a 2D transform after you are done with the 3D . However I ve found there is a slight delay when converting between transforms so this isn t working too well for me .", "Question : I have written code below to flip an image . I am setting -webkit-transform rotateY 180deg but again on the click event I want to bring image back to the original position . I tried -180 value but it s not working . Please Help . .. . Answer : Try setting it to 0 not minus 180 . Then it won t rotate as I think it s calculated relative to its original rotation .", "Question : This question already has an answer here : .. . .. . Retrieve width height of a css3 scaled element questions 5834624 retrieve-width-height-of-a-css3-scaled-element 4 answers .. . .. . Is there any jQuery solution that to find exact display height of the -webkit-transform : scale 0.7851 .. . .. . the scale value may vary that is why looking for proper solution .. . .. . Tested these options unfortunately didn t find solution yet : .. . .. . I think this issue only can fix one the basis of mathematics Comment : Once the animation had over take the height and width of the element . Comment : @EinerS thanks for your suggestion testing that way Comment : It seems the height and width methods don t yet take CSS transformations into account . It s a known issue http : bugs.jquery.com ticket 11114 . I think the best solution is to scale the image in jQuery instead of in CSS if you need jQuery to compute the end result . Otherwise parse the -webkit-transform value and extract the scaling factor yourself . Comment : Test these stackoverflow.com questions 16405397 http : stackoverflow.com questions 16405397 getting-height-of-scaled-image after the animation has ended . .. . Answer : Use getBoundingClientRect https : developer.mozilla.org en-US docs DOM element.getBoundingClientRect . See DEMO http : jsfiddle.net zYLEL 2 ." ] }
[ "yes-answer-long", "yes-answer-short" ]
matrix
UNK_RELATION
google-go-idea-plugin@jetbrains@56
google-go-idea-plugin -- the open-source go plugin for @placeholder ides like intellij-idea phpstorm webstorm and so on .
{ "confidence": [ 57.8189697265625, 57.250457763671875, 47.575599670410156, 46.78532409667969, 45.70842361450195, 42.74259948730469, 41.37590789794922, 40.95515441894531, 40.26882553100586, 39.66459655761719, 36.89131546020508, 32.16465377807617, 31.987903594970703, 31.614673614501953, 30.839855194091797, 30.616779327392578, 29.28417205810547, 29.065797805786133, 28.64706039428711, 28.2537899017334, 27.02701187133789, 27.00096893310547, 26.899921417236328, 24.089271545410156, 23.876943588256836, 23.56985855102539, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 21.492691040039062, 19.957618713378906, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379, 18.59781837463379 ], "content": [ "Update the Plugin for Go in IntelliJ", "I m using IntelliJ Idea and the google-go-lang-idea-plugin from : .. . .. . https : github.com mtoader google-go-lang-idea-plugin issues 173 .. . .. . When I try to add my APT provided Go installation to the Go SDK list I get the following error .. . .. .", "If you are using the latest version of the plugin see the repository https : github.com go-lang-plugin-org go-lang-idea-plugin pre-release-builds then you are able to fully customize the GOPATH layout .", "So I just had this exact problem on IntelliJ 2016.1.3 with Go 1.5 . .. . .. . I had installed the IntelliJ Go Plugin a while ago and installed GO 1.5 a while back and it all worked fine .", "It turns out that google-go-lang-idea-plugin requires a slightly different folder structure than the default apt install produces .", "@cirpo you can use either PHPStorm 9 EAP or IntelliJ IDEA Community 14.1+ which is free .", "Then point IntelliJ to usr local go", "Look at this test that you fail : .. . .. . https : github.com mtoader google-go-lang-idea-plugin blob master src ro redeul google go sdk GoSdkUtil.java L84 .. . .. . I can only see linux amd64 barely under your popup which indicates a GOPATH to me .", "But I did not found any kind of this feature in golang IDEA plugin so my builds keep failing with follows : .. . .. . Are there any cures for this within IDEA", "Could not find a killing feature in golang-idea-plugin that exists in Goclipse - each GO project automatically adds itself as a GOPATH item for Eclipse session so I don t have to put it to global GOPATH manually .", "@dave-c will turn to this approach if did not find a way to provide env codebase to session-narrowed GOPATH with IDEA plugin .", "I d recommend to place go in usr local go and your GOPATH into gopath .", "Set the SDK in IntelliJ for the project : File - Project Structure - Project - under Project SDK add a New SDK and navigate to your go installation .", "See go help gopath .", "Failing that does anyone know what this plugin is actually looking for that would make a directory look like the SDK directory", "The selected directory is not a valid home for Go Sdk http : i.stack.imgur.com fUi9m.png .. . .. . I have tried adding the following directories as the Go SDK root .. . .. . usr share go .. . usr share src .. . usr lib go .. . usr lib go src .. . usr lib go pkg .. . usr lib go pkg linux amd64 .. . .. . Does anyone know how to get this working", "But who knows I haven t worked with go for a bit so I might have removed it .", "I m trying to migrate from Goclipse dev environment to IDEA .", "Install the most current Go version currently for me 1.6.3 .", "In general the trend nowadays is to install packages tools especially when they re so young like GO as non-root users and in your home-directory and adjust PATH and GOPATH in your environment instead of installing it globally .", "The v1.0.0 is still in alpha and I can t install it with PhpStorm version 8 what do you suggest then", "This is not required anymore since the v1.0.0 of the plugin as such please don t mess around with the system paths and report any issues to the bug tracker in order to improve it .", "Now i checked and suddenly I m sure I didn t remove it GO 1.5 was gone from my system .", "I have a sql select statement like this example : .. . .. . I have several questions here .", "So What print method can I used to have it append those values in the slice to there corresponding number in the original string", "What print function can I run to mimic dbConnection.Query query queryValues.. . so that I can see it before it is passed up", "What is the .. . after queryValues", "How come when I look at the query being passed up to the db none of the 1 are actually being converted into there real values", "Thanks in advance .", "Josh", ".. . is passing a slice as varargs .", "You should always append to your queryValues slice not to Name and Age .", "I guess your code doesn t even compile .", "Even if it does queryValue will not be what you think it is .", "@icza I had to use Pseudo code because my actual code is company propriety .", "The answer to your first question is that Query is what s referred to as a variadic function https : golang.org ref spec Function types .", "It takes any number of parameters of the last type and is handed to the function as a slice .", "queryValues.. . is the reverse of that .", "It is taking your slice and passing them as individual arguments to query .", "It s doing the same thing as-if you had done : .. . .. . https : golang.org ref spec Passing arguments to .. . parameters .. . .. . In this particular case you don t need the interface .. . .. . The reason your 1 2 placeholders are not being converted is likely because you re using the wrong placeholders for the particular driver you re using .", "It s dependent on the driver itself .", "For instance the MySQL driver uses", "as it s placeholder .", "I really don t need my code in a global GOPATH for now - it s ugly and even sometimes self-repeating I ve started learning Golang a while ago so had a bit of mess of little educational projects around", "I ve commented on the various issues in the bugtracker however the maintainer claimed that this was fixed 10 months ago .", "You seem to have selected the GOPATH but the tool wants the GOROOT", "This will make it much easier to upgrade and change versions .", "In general the trend nowadays is to install packages tools .. . in your home-directory .. . instead of installing it globally .", "That trend is frankly ridiculous .", "Do you ever install python ruby gcc ghc locally in your homedir", "no", "This is 100 off topic but here it goes : Python is at a size that people have started using python distributions .", "In their home directory.. . Ruby has rvm for ages and is heavily used .", "Gcc obviously is compiled and is barely used in your home-directory but yes people who do need different version they do compile it in their home dir .", "To fix it :", "Thank you .", "thanks", "Anyway after a bit of debugging the following steps helped me : .. . .. . 1 .", "Follow the instructions on https : golang.org doc install .. . 2 .", "3 .", "4 .", "Click Apply and then Ok", "This is extremely useful as I don t want to mix my local code with globally grabbed ones I don t plan to share my code in any ways plus several projects are distinguished from each other in their envs .", "IMO you are misusing GOPATH https : golang.org doc code.html GOPATH .", "If you just want to separate fetched stuff from your stuff then a single GOPATH path to fetched stuff : path to your own stuff https : golang.org doc articles go command.html h GOPATH tmp 3 is all you need .", "You can chose to have global entries which are persisted for all your projects or per project entries which are project specific entries .", "You can really be creative with the options .", "Indeed .", "Works as I expect since 0.9.371 .", "Thanks" ] }
{ "confidence": [ 68.17303466796875, 60.77357482910156, 56.533546447753906, 46.56768035888672, 22.622652053833008 ], "content": [ "Question : I m using IntelliJ Idea and the google-go-lang-idea-plugin from : .. . .. . https : github.com mtoader google-go-lang-idea-plugin issues 173 .. . .. . When I try to add my APT provided Go installation to the Go SDK list I get the following error .. . .. . The selected directory is not a valid home for Go Sdk http : i.stack.imgur.com fUi9m.png .. . .. . I have tried adding the following directories as the Go SDK root .. . .. . usr share go .. . usr share src .. . usr lib go .. . usr lib go src .. . usr lib go pkg .. . usr lib go pkg linux amd64 .. . .. . Does anyone know how to get this working I ve commented on the various issues in the bugtracker however the maintainer claimed that this was fixed 10 months ago . Failing that does anyone know what this plugin is actually looking for that would make a directory look like the SDK directory .. . Answer : It turns out that google-go-lang-idea-plugin requires a slightly different folder structure than the default apt install produces . To fix it : Comment : This is not required anymore since the v1.0.0 of the plugin as such please don t mess around with the system paths and report any issues to the bug tracker in order to improve it . Thank you . Comment : The v1.0.0 is still in alpha and I can t install it with PhpStorm version 8 what do you suggest then thanks Comment : @cirpo you can use either PHPStorm 9 EAP or IntelliJ IDEA Community 14.1+ which is free .", "Question : I m using IntelliJ Idea and the google-go-lang-idea-plugin from : .. . .. . https : github.com mtoader google-go-lang-idea-plugin issues 173 .. . .. . When I try to add my APT provided Go installation to the Go SDK list I get the following error .. . .. . The selected directory is not a valid home for Go Sdk http : i.stack.imgur.com fUi9m.png .. . .. . I have tried adding the following directories as the Go SDK root .. . .. . usr share go .. . usr share src .. . usr lib go .. . usr lib go src .. . usr lib go pkg .. . usr lib go pkg linux amd64 .. . .. . Does anyone know how to get this working I ve commented on the various issues in the bugtracker however the maintainer claimed that this was fixed 10 months ago . Failing that does anyone know what this plugin is actually looking for that would make a directory look like the SDK directory .. . Answer : So I just had this exact problem on IntelliJ 2016.1.3 with Go 1.5 . .. . .. . I had installed the IntelliJ Go Plugin a while ago and installed GO 1.5 a while back and it all worked fine . Now i checked and suddenly I m sure I didn t remove it GO 1.5 was gone from my system . But who knows I haven t worked with go for a bit so I might have removed it . Anyway after a bit of debugging the following steps helped me : .. . .. . 1 . Install the most current Go version currently for me 1.6.3 . Follow the instructions on https : golang.org doc install .. . 2 . Update the Plugin for Go in IntelliJ 3 . Set the SDK in IntelliJ for the project : File - Project Structure - Project - under Project SDK add a New SDK and navigate to your go installation . 4 . Click Apply and then Ok", "Question : I m using IntelliJ Idea and the google-go-lang-idea-plugin from : .. . .. . https : github.com mtoader google-go-lang-idea-plugin issues 173 .. . .. . When I try to add my APT provided Go installation to the Go SDK list I get the following error .. . .. . The selected directory is not a valid home for Go Sdk http : i.stack.imgur.com fUi9m.png .. . .. . I have tried adding the following directories as the Go SDK root .. . .. . usr share go .. . usr share src .. . usr lib go .. . usr lib go src .. . usr lib go pkg .. . usr lib go pkg linux amd64 .. . .. . Does anyone know how to get this working I ve commented on the various issues in the bugtracker however the maintainer claimed that this was fixed 10 months ago . Failing that does anyone know what this plugin is actually looking for that would make a directory look like the SDK directory .. . Answer : You seem to have selected the GOPATH but the tool wants the GOROOT Look at this test that you fail : .. . .. . https : github.com mtoader google-go-lang-idea-plugin blob master src ro redeul google go sdk GoSdkUtil.java L84 .. . .. . I can only see linux amd64 barely under your popup which indicates a GOPATH to me . In general the trend nowadays is to install packages tools especially when they re so young like GO as non-root users and in your home-directory and adjust PATH and GOPATH in your environment instead of installing it globally . This will make it much easier to upgrade and change versions . I d recommend to place go in usr local go and your GOPATH into gopath . Then point IntelliJ to usr local go Comment : In general the trend nowadays is to install packages tools .. . in your home-directory .. . instead of installing it globally . That trend is frankly ridiculous . Do you ever install python ruby gcc ghc locally in your homedir no Comment : This is 100 off topic but here it goes : Python is at a size that people have started using python distributions . In their home directory.. . Ruby has rvm for ages and is heavily used . Gcc obviously is compiled and is barely used in your home-directory but yes people who do need different version they do compile it in their home dir .", "Question : I m trying to migrate from Goclipse dev environment to IDEA . Could not find a killing feature in golang-idea-plugin that exists in Goclipse - each GO project automatically adds itself as a GOPATH item for Eclipse session so I don t have to put it to global GOPATH manually . This is extremely useful as I don t want to mix my local code with globally grabbed ones I don t plan to share my code in any ways plus several projects are distinguished from each other in their envs . But I did not found any kind of this feature in golang IDEA plugin so my builds keep failing with follows : .. . .. . Are there any cures for this within IDEA Comment : IMO you are misusing GOPATH https : golang.org doc code.html GOPATH . If you just want to separate fetched stuff from your stuff then a single GOPATH path to fetched stuff : path to your own stuff https : golang.org doc articles go command.html h GOPATH tmp 3 is all you need . See go help gopath . Comment : @dave-c will turn to this approach if did not find a way to provide env codebase to session-narrowed GOPATH with IDEA plugin . I really don t need my code in a global GOPATH for now - it s ugly and even sometimes self-repeating I ve started learning Golang a while ago so had a bit of mess of little educational projects around .. . Answer : If you are using the latest version of the plugin see the repository https : github.com go-lang-plugin-org go-lang-idea-plugin pre-release-builds then you are able to fully customize the GOPATH layout . You can chose to have global entries which are persisted for all your projects or per project entries which are project specific entries . You can really be creative with the options . Comment : Indeed . Works as I expect since 0.9.371 . Thanks", "Question : I have a sql select statement like this example : .. . .. . I have several questions here . What is the .. . after queryValues How come when I look at the query being passed up to the db none of the 1 are actually being converted into there real values What print function can I run to mimic dbConnection.Query query queryValues.. . so that I can see it before it is passed up Thanks in advance . Josh Comment : .. . is passing a slice as varargs . You should always append to your queryValues slice not to Name and Age . I guess your code doesn t even compile . Even if it does queryValue will not be what you think it is . Comment : @icza I had to use Pseudo code because my actual code is company propriety . So What print method can I used to have it append those values in the slice to there corresponding number in the original string .. . Answer : The answer to your first question is that Query is what s referred to as a variadic function https : golang.org ref spec Function types . It takes any number of parameters of the last type and is handed to the function as a slice . queryValues.. . is the reverse of that . It is taking your slice and passing them as individual arguments to query . It s doing the same thing as-if you had done : .. . .. . https : golang.org ref spec Passing arguments to .. . parameters .. . .. . In this particular case you don t need the interface .. . .. . The reason your 1 2 placeholders are not being converted is likely because you re using the wrong placeholders for the particular driver you re using . It s dependent on the driver itself . For instance the MySQL driver uses as it s placeholder ." ] }
[ "yes-answer-long", "yes-answer-short" ]
jetbrains
UNK_RELATION
webgrid@web@62
webgrid -- webgrid is a view control built-in to the asp.net @placeholder pages framework .
{ "confidence": [ 45.26283264160156, 45.05949783325195, 44.11594772338867, 42.601524353027344, 42.545475006103516, 42.32159423828125, 42.22618865966797, 41.95417785644531, 41.32767105102539, 41.024600982666016, 41.024600982666016, 41.024600982666016, 40.975704193115234, 40.02776336669922, 39.98125076293945, 39.98125076293945, 39.98125076293945, 39.785648345947266, 39.586185455322266, 39.515235900878906, 39.343177795410156, 39.343177795410156, 39.343177795410156, 39.343177795410156, 38.923744201660156, 38.73076629638672, 38.73076629638672, 38.73076629638672, 38.299827575683594, 38.29216003417969, 37.95002365112305, 37.31064987182617, 37.08500671386719, 37.08500671386719, 37.08500671386719, 37.04934310913086, 37.04934310913086, 36.61824417114258, 36.041656494140625, 36.041656494140625, 36.041656494140625, 36.041656494140625, 36.041656494140625, 35.66234588623047, 35.52606964111328, 35.41819763183594, 35.18547821044922, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.79117202758789, 34.75376892089844, 34.618995666503906, 34.618995666503906, 34.581298828125, 34.48271942138672, 34.430908203125, 34.026187896728516, 34.026187896728516, 34.026187896728516, 34.026187896728516, 34.026187896728516, 34.026187896728516, 34.026187896728516, 34.026187896728516, 34.026187896728516, 33.93045425415039, 33.5032844543457, 33.36851501464844, 33.32429885864258, 33.32429885864258, 33.32429885864258, 33.32429885864258, 33.32429885864258, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.98283767700195, 32.89164352416992, 32.84795379638672, 32.40818405151367, 32.28055953979492, 31.901639938354492, 31.822168350219727, 31.735803604125977, 31.73235321044922, 31.73235321044922, 31.73235321044922 ], "content": [ "I want to bind this data with ASP.NET MVC WebGrid control .", "Controller : .. . .. . JSON in View : .. . .. . WebGrid :", "I m a little disappointed the WebGrid doesn t have a footer row built-in .", "I have a Partial View that renders WebGrid .", "I Have a little problem with WebGrid control for Asp.Net MVC3 .", "WebGrid grid1 new WebGrid rowsPerPage : Model.PageSize fieldNamePrefix : order", "And not using WebGrid .", "Is there a Asp.net MVC View Template that uses WebGrid instead of a table", "Check out this article http : www.mikesdotnetting.com Article 150 Web-Pages-Efficient-Paging-Without-The-WebGrid for not using the WebGrid .", "This is not a limitation of the WebGrid or Razor .", "Helper .. . .. . WebGrid load", "My problem is about webgrid .", "What is WebGrid", "To reflect this in to the webGrid I need to refresh the webGrid by loading datas from DB .", "Can this be done using WebGrid", "I have a webgrid .", "Is the MVC WebGrid Open Source", "I have the following WebGrid in my ASP.NET MVC3 test application .", "I m working with MVC 3 webgrid and i need to add a new row into webgrid to show sum of price from product table .", "My C code is given below : .. . .. . I want to bind this list with ASP.NET MVC Webgrid my webgrid code as below : .. . .. . This one is not working .", "I am working with WebGrid in MVC .", "How can I do that with webgrid", "It discusses using the webgrid helper in razor .", "This is what the fieldNamePrefix parameter in the WebGrid Constructor is for .", "I had a similar problem so I created an extension of the built-in MVC WebGrid .", "Checkbox in the webgrid .. . 2 .", "I ve implemented a WebGrid .", "Here is my webgrid", "This is my div which contains WebGrid .", "I am facing the issue i want to display two Webgrid in one view so i create separate view for each and calling on one view using .. . .. . both Webgrid showing properly but when i change the page one Webgrid another Webgrid also effected .. . .. . this is my Webgrid code .. . .. . when i change page url like this localhost : 49424 HomeAdmin page 2 it effect on both grid .. . .. . There is any way so i change the page name .. . .. . Please guide me .. . .. . Thanks", "Add a new item to the IEnumerable that you use as the source for the WebGrid to bind to .", "I have to define a div with ID and refer the div s id in the ajaxUpdateContainerId attribute of WebGrid control that will allow WebGrid to update data asynchronously using Ajax .", "I need to display an image in the column of a webgrid .", "So my webgrid is .. . .. . Then the script at end of page is like", "What do you recommend instead of webgrid", "I have a WebGrid with an Edit button .", "Controller : .. . .. . JSON : .. . .. . Switch for Alerts + WebGrid :", "I have a partial view with webgrid and some scripts only .", "I am using a WebGrid in my mvc application .", "Now I want to fix the height of the WebGrid .", "@Caverman I have an MVC application that has a webGrid .", "I am loading data in webgrid to give inputs on that .", "The problem occurs when you try to paginate the WebGrid .", "Bugger : 1 : forums.asp.net t 1673391.aspx 1 WebGrid 20and 20DataTable http : forums.asp.net t 1673391.aspx 1 WebGrid 20and 20DataTable", "I am trying to conditionally set the background of a td that is created using a webGrid in ASP.NET MVC .", "What I want is to perform a search view using ajax and webgrid something like this : .. . .. . Search Criteria .. . .. . Subject : .. . .. . Task Type : .. . .. . SUBMIT SEARCH .. . .. . .. . .. . WebGrid withPaging .. . .. . .", "So for example if there are multiple pages to the webgrid each selection is an ajax call and the row colors will need to be re-updated .", "I am using a WebGrid in my mvc application .", "After editing this values it is not reflecting in my webGrid .", "I have a strange behavior inside my WebGrid .", "Problem : I am deleting an item in a WebGrid .", "Is this is not possible to add html inside WebGrid column name", "WebGrid documentation link is outdated redirects to another page", "Can you post your webgrid code", "@ Brian White I included webgrid code", "I am showing student data in webgrid .", "the same i want to achieve in MVC with webgrid .", "You can download the source code of ASP.NET MVC 3 http : aspnet.codeplex.com releases view 58781 and inside you have the source of WebGrid .", "I only see results for those premium WebGrid components not a single result for the real WebGrid nor any results that would be of any help .", "I have a WebGrid that is editable and saves perfectly but I want to pass-through an iD from the Model instead of having to display this Id on the WebGrid .", "I have used foreach to get all the value from the database and binded it to the webgrid but it is showing only the last value in the webgrid .", "I m trying to use the WebGrid html-helper in ASP.NET MVC 3 to autogenerate the columns according to the information found in the ModelMetadata .", "Using WebGrid from MVC 3 how do i specify the name of the control when rendered i.e .", "I have WebGrid and in that grid I have added Edit option .", "I am trying to display variable columns in WebGrid in MVC5 .", "I m using the MVC WebGrid and I m trying to format it using Bootstrap styling .", "I am trying to display a javascript variable in my WebGrid column .", "I am creating a project in mvc which uses webgrid .", "In the webgrid I have two columns namely Status and IsActive .", "I strongly recommend you to not use the webgrid because it is very inflexible .", "How can I make Webgrid to execute a different action GetUserList in this case", "This value is used in order to support multiple WebGrid instances on the same web page .", "I am binding webgrid with Model .", "Taken Verbatim from the reference link below : .. . .. . To show a simple example of WebGrid I ve set up an ASP.NET MVC action that simply passes an IEnumerable to the view .", "Paging with WebGrid .. . .. . From this page http : www.mikesdotnetting.com Article 154 Looking-At-The-WebMatrix-WebGrid it looks like you can specify rows per page .", "I am using MVC webgrid with paging .", "I am making Some functionalities in my webgrid .", "How to put a condition if else in webgrid column", "then modify your question to if else for WebGrid column", "I am using itextsharp to export a webgrid to pdf .", "I ve done this in PHP but have no idea where to look or how to do it with WebGrid .", "But in my application I need a webGrid with Header Footer and gridTable .", "I am not familiar with WebGrid but doesn t it eventually compile into HTML divs", "In my application the gridTable of a WebGrid contains user details as rows and columns .", "Could you post up some of your WebGrid Bootstrap code", "I am trying to bind an array value to a webgrid dropdownlist .", "Nearly every search-form with a check box will break the WebGrid pagination .", "The current version of the WebGrid has little to no documentation incomplete implemtation etc .", "Basically I m using WebGrid and I need to filter the results .", "I m trying to learn how to use Razor WebGrid in MVC3 .", "Unfortunately WebGrid component does not allow to specify total number of rows or total number of pages these properties are read-only .", "I m using .NET Framework 4.6 Razor 3.2.3 and MVC version 5.2.3 .. . .. . Controller : .. . .. . Partial view webgrid : .. . .. . I m using inline editing that is correct .", "I ve never used the webgrid helper yet does this link help http : weblogs.asp.net shijuvarghese archive 2010 10 08 using-the-webgrid-helper-in-asp-net-mvc-3-beta.aspx", "How can I programatically in javascript get the current page number last sort column and sort direction of the ASP.NET MVC WebGrid", "In my webgrid I need to display images based on the value . . Code is given below .. . .. . I am not sure how can i use if in webgrid .", "I am trying to populate a MVC Webgrid using a DataTable which is built up in the code-behind and then made enumerable using the AsEnumerable extension method .", "I am able to use WebGrid http : msdn.microsoft.com en-us library system.web.helpers.webgrid 28v vs.99 29.aspx in any controller like : .. . .. . var grid new WebGrid emailsFetched columnNames .. . .. . I had to add a reference in my ASP.NET MVC project to System.Web.Helpers for this .", "How can I reload contents to webGrid from DB", "I am unable to add html inside WebGrid column name at header", "When I add html inside column name then webgrid encodes that ." ] }
{ "confidence": [ 56.574581146240234, 55.662940979003906, 55.59617614746094, 53.90095520019531, 52.27075958251953, 51.22126770019531, 50.92830276489258, 50.677978515625, 49.87595748901367, 49.81101989746094, 49.78397750854492, 49.75332260131836, 49.636138916015625, 49.09265899658203, 48.343013763427734, 47.82453918457031, 47.577415466308594, 47.20314025878906, 46.88630676269531, 46.66908264160156 ], "content": [ "Question : My data-access-layer returns collection with rows for single page and total number of rows . Unfortunately WebGrid component does not allow to specify total number of rows or total number of pages these properties are read-only . Has anyone had to deal with this issue before Comment : What is WebGrid Does MVC support it Sounds like an ASP.net WebForms control . Comment : Webgrid is new in MVC 3 - weblogs.asp.net shijuvarghese archive 2010 10 08 http : weblogs.asp.net shijuvarghese archive 2010 10 08 using-the-webgrid-helper-in-asp-net-mvc-3-beta.aspx .. . Answer : EDIT : I see what your question is now . Check out this article http : www.mikesdotnetting.com Article 150 Web-Pages-Efficient-Paging-Without-The-WebGrid for not using the WebGrid . Paging with WebGrid .. . .. . From this page http : www.mikesdotnetting.com Article 154 Looking-At-The-WebMatrix-WebGrid it looks like you can specify rows per page . And this page http : weblogs.asp.net shijuvarghese archive 2010 10 08 using-the-webgrid-helper-in-asp-net-mvc-3-beta.aspx look at line 9 from the first code block . Comment : Yes but I have no way to specifiy total number of rows :", "Question : My data-access-layer returns collection with rows for single page and total number of rows . Unfortunately WebGrid component does not allow to specify total number of rows or total number of pages these properties are read-only . Has anyone had to deal with this issue before Comment : What is WebGrid Does MVC support it Sounds like an ASP.net WebForms control . Comment : Webgrid is new in MVC 3 - weblogs.asp.net shijuvarghese archive 2010 10 08 http : weblogs.asp.net shijuvarghese archive 2010 10 08 using-the-webgrid-helper-in-asp-net-mvc-3-beta.aspx .. . Answer : You can use the Bind method on the WebGrid to tell the grid to use server-side paging . grdv.Bind myData rowCount 10000 autoSortAndPage False .. . .. . Setting autoSortAndPage to false tells the grid that myData is just a segment of the data . It will show all rows of this data regardless of your page-size setting . Pager will be built using the rowCount you pass in and not the number of records in myData .", "Question : Parsing Dynamic SQL in C and binding to WebGrid in ASP.Net MVC I have dynamic SQL Queries that uses pivot to produce result and the resultset may be like this . : .. . .. . There can be n number of divisions . I want to bind this data with ASP.NET MVC WebGrid control . I am not able to achieve this . My C code is given below : .. . .. . I want to bind this list with ASP.NET MVC Webgrid my webgrid code as below : .. . .. . This one is not working . Please help me how can I achieve this task . Thanks . .. . Answer : You have to specify type Class along with fixed properties in ExecuteStoreQuery . You have another alternative option which you can use . I explain it in four simple steps : .. . .. . 1 Retrieve result set into DataTable .. . .. . 2 Convert DataTable to List of IDictionary type .. . .. . 3 Then loop through List of IDictionary type and add it into type of List of Dynamic type in order to bind it with webgrid : .. . .. . 4 WebGrid Binding Code in view .cshtml : Comment : Thanks . I will try this solution .", "Question : My data-access-layer returns collection with rows for single page and total number of rows . Unfortunately WebGrid component does not allow to specify total number of rows or total number of pages these properties are read-only . Has anyone had to deal with this issue before Comment : What is WebGrid Does MVC support it Sounds like an ASP.net WebForms control . Comment : Webgrid is new in MVC 3 - weblogs.asp.net shijuvarghese archive 2010 10 08 http : weblogs.asp.net shijuvarghese archive 2010 10 08 using-the-webgrid-helper-in-asp-net-mvc-3-beta.aspx .. . Answer : rowsPerPage is only settable through the constructor . This was done to keep the helper simple and avoid handling complex states . Total rows comes from the data source .", "Question : I m working with MVC 3 webgrid and i need to add a new row into webgrid to show sum of price from product table . Any ideas are appreciated . Here s my code .. . .. . .. . .. . Answer : I had a similar problem so I created an extension of the built-in MVC WebGrid . Code and example usage is at https : gist.github.com 3211605 . Hopefully it s helpful .", "Question : I know this has been asked before but I wanted to ask it in my own way with more clarification . I am trying to conditionally set the background of a td that is created using a webGrid in ASP.NET MVC . I don t see a good way to do this . So far what I have come up with is this : .. . .. . This is an okay solution but I would like a more clean look because the webgrid default has a small padding in the table cell so the div won t expand completely to the size of the cell either . Is there a way to edit the td in any way I know I can change the background and other style attributes using jquery or javascript but I don t like the idea of having doing duplicate work to first build the table on the server then on the client-side iterate over it again conditionally changing the colors when this should have been completed with the first iteration . .. . Answer : With the help of Golda s response and here http : code.stylenet.ca mvc3-dynamically-set-row-background-color-in-a-mvc-webgrid I was able to create an elegant solution . This solution uses JavaScript JQuery as it doesn t seem possible to do it without it but using to me a cleaner solution than what I had came across . What I did in the model class type for List was add a property that refers to itself and returns an instance cast to its interface like so : .. . .. . I did this because the webGrid seems to only allow access to the properties and not methods regardless of access level . Then in that same model I have a method which will conditionally attach markup for a hidden input field to the data string and return it as an MvcHtmlString object : .. . .. . And in the markup partial view I make my grid.Column call : .. . .. . Then I create the JavaScript function s : .. . .. . The window.onload is needed to point to the SetFeaturedRow function to set the row colors at page load the function name SetFeaturedRow is stored in the ajaxUpdateCallback property through the webgrid constructor arguments : new WebGrid Model .... . ajaxUpdateCallback : SetFeaturedRow Or it can be set through the WebGrid reference ref.ajaxUpdateCallback SetFeatureRow .. . .. . This will be used during any ajax call the WebGrid class will make . So for example if there are multiple pages to the webgrid each selection is an ajax call and the row colors will need to be re-updated . Hopefully this helps someone .", "Question : I am facing the issue i want to display two Webgrid in one view so i create separate view for each and calling on one view using .. . .. . both Webgrid showing properly but when i change the page one Webgrid another Webgrid also effected .. . .. . this is my Webgrid code .. . .. . when i change page url like this localhost : 49424 HomeAdmin page 2 it effect on both grid .. . .. . There is any way so i change the page name .. . .. . Please guide me .. . .. . Thanks .. . Answer : This is what the fieldNamePrefix parameter in the WebGrid Constructor is for . From the documentation : http : msdn.microsoft.com en-us library system.web.helpers.webgrid.webgrid 28v vs.111 29.aspx .. . .. . fieldNamePrefix .. . .. . Type : System.String .. . .. . The prefix that is applied to all query-string fields that are associated with the WebGrid instance . This value is used in order to support multiple WebGrid instances on the same web page . Or if you just want to change the paging field name there s a parameter for that as there is for selections sort fields and sort direction . Comment : Hi Mike thanks for answer my question . Comment : WebGrid grid1 new WebGrid rowsPerPage : Model.PageSize fieldNamePrefix : order", "Question : I m working with MVC 3 webgrid and i need to add a new row into webgrid to show sum of price from product table . Any ideas are appreciated . Here s my code .. . .. . .. . .. . Answer : This is a terrible hack but it allowed me to get on with my day . I think the way to do this correctly is to write an Html Helper that allows you to pass in the footer row . I m a little disappointed the WebGrid doesn t have a footer row built-in . Only make sure you match the number of columns in your hand built table row . Notice there is no table start tag. . The whole idea is to hijack the created html at the table close and add a row . Sorry for the hand typed code . I m on a proprietary app and I don t dare paste anything from it.. .", "Question : I am using a WebGrid in my mvc application . I can edit the selected row values using a form . After editing this values it is not reflecting in my webGrid . But it is reflecting in DataBase . To reflect this in to the webGrid I need to refresh the webGrid by loading datas from DB . How can I reload contents to webGrid from DB Also after reloading it this pageNumber should the old one . How to do this Comment : Have you looked at using a partial and calling an action with ajax jquery . Example here http : stackoverflow.com questions 1570127 render-partial-view-using-jquery-in-asp-net-mvc .. . Answer : Finally I find the solution for my problem . I have to define a div with ID and refer the div s id in the ajaxUpdateContainerId attribute of WebGrid control that will allow WebGrid to update data asynchronously using Ajax . Then call the GetHtml method of WebGrid so that Razor Engine can generate corresponding HTML for it . After the end of div tag . Then in my ajax call for updation I have added location.reload to refresh my WebGrid . Now its working fine for me .", "Question : Is the MVC WebGrid Open Source If so where can I find the source code . The current version of the WebGrid has little to no documentation incomplete implemtation etc . I am trying to do a simple thing as adding a visibility property to the WebGrid.Column in the view but that is impossible .. . Answer : You can download the source code of ASP.NET MVC 3 http : aspnet.codeplex.com releases view 58781 and inside you have the source of WebGrid . Once you unzip you will find it inside the webpages src System.Web.Helpers WebGrid WebGrid.cs file . Good luck with modifying it : - 1104 lines in a single-source code file Comment : Not 100 correct . Surely Tawani can get the code and probably that s his major concern . But the Microsoft Source License doesn t really meet the open-source definition so the answer to the question literally interpreted should be no . In this case as again I think his major concern is to get the code and maybe debug then it s enough open for the author s needs . Comment : @Darin do you usually use that control or do you build your own custom grids Comment : @Nick I don t use this control . I hate this control . This control relies on magic strings dynamic fields . This control is hopeless . I don t build my own custom grids : that would be insane especially when we have things like MVCContrib Grid or Telerik Grid . Comment : @djechelon good remark I ve updated my answer . Thanks for pointing this out . Comment : @Nick it s been ages I haven t touched at WebForms : - All I can remember about it is that I hated it : -", "Question : I am able to use WebGrid http : msdn.microsoft.com en-us library system.web.helpers.webgrid 28v vs.99 29.aspx in any controller like : .. . .. . var grid new WebGrid emailsFetched columnNames .. . .. . I had to add a reference in my ASP.NET MVC project to System.Web.Helpers for this . But when I try to use this web grid in view directly to avoid instantiation and other settings in controller it says : The type or namespace WebGrid cannot be found . Ok I tried to add a reference here too : .. . .. . @using System.Web.Helpers but this throws another issue : .. . .. . There is no build provider registered for the extension .cshtml . You can register one in the compilation buildProviders section in the machine.config or web.config . Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value Web or All . .. . .. . This is pretty strange.. . I ve seen enough example on net which are using WebGrid and don t have to declare anything in the cshtml view.. . .. . .. . Can you please tell me how to solve this Or why I encounter this very ugly issue .. . Answer : Finally I ve been able to notice that this : .. . .. . assemblies add assembly System.Web.Helpers Version 1.0.0.0 Culture neutral PublicKeyToken 31BF3856AD364E35 assemblies .. . .. . has to be added in web-config under system.web section withing compilation tags so it will look like :", "Question : I am able to use WebGrid http : msdn.microsoft.com en-us library system.web.helpers.webgrid 28v vs.99 29.aspx in any controller like : .. . .. . var grid new WebGrid emailsFetched columnNames .. . .. . I had to add a reference in my ASP.NET MVC project to System.Web.Helpers for this . But when I try to use this web grid in view directly to avoid instantiation and other settings in controller it says : The type or namespace WebGrid cannot be found . Ok I tried to add a reference here too : .. . .. . @using System.Web.Helpers but this throws another issue : .. . .. . There is no build provider registered for the extension .cshtml . You can register one in the compilation buildProviders section in the machine.config or web.config . Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value Web or All . .. . .. . This is pretty strange.. . I ve seen enough example on net which are using WebGrid and don t have to declare anything in the cshtml view.. . .. . .. . Can you please tell me how to solve this Or why I encounter this very ugly issue .. . Answer : Ran into this issue . Can t really take credit but I uninstalled earlier version and reinstalled latest version of Microsoft ASP.NET MVC4 from Nuget and things are working for me . Hope this helps someone else . Tried all the solutions but this was the only thing that worked . http : forums.asp.net t 1823940.aspx MVC4+WebGrid+problem+in+View+Razor+ http : forums.asp.net t 1823940.aspx MVC4 20WebGrid 20problem 20in 20View 20Razor 20", "Question : I Have a little problem with WebGrid control for Asp.Net MVC3 . What I want is to perform a search view using ajax and webgrid something like this : .. . .. . Search Criteria .. . .. . Subject : .. . .. . Task Type : .. . .. . SUBMIT SEARCH .. . .. . .. . .. . WebGrid withPaging .. . .. . . When I click the button search it call the HTTPost action by ajax and apply the search criteria however when I try to do paging it goes to the HTTPGet action in this way the filter according to the search criteria doesn t execute . I put the grid inside a partial view there is the code : .. . .. . And my Index view looks like : .. . .. . So if anyone know how to solve my problem I ll be grateful . Greeting Arturo Comment : I have the same problem - any luck stackoverflow.com questions 8999390 http : stackoverflow.com questions 8999390 mvc-3-webgrid-paging-doesnt-return-orginal-search-results Comment : Here is a solution I used . forums.asp.net t 1742017.aspx 1 http : forums.asp.net t 1742017.aspx 1 .. . Answer : Seeing as the grid generates an onclick call for each pager item and column header couldn t you just use jQuery to replace default values with a call to an Ajax method that passes the form back", "Question : null .. . Answer : I have a partial view with webgrid and some scripts only . The largest load-time is on pending - 20 seconds . I load about 600 rows and 5 columns from database . I m using .NET Framework 4.6 Razor 3.2.3 and MVC version 5.2.3 .. . .. . Controller : .. . .. . Partial view webgrid : .. . .. . I m using inline editing that is correct . I had to add into entity people additional property toolsString because loading of lazy property was really slow . Whole loading of page is quick so scripts are ok but what is wrong with webgrid", "Question : I am able to use WebGrid http : msdn.microsoft.com en-us library system.web.helpers.webgrid 28v vs.99 29.aspx in any controller like : .. . .. . var grid new WebGrid emailsFetched columnNames .. . .. . I had to add a reference in my ASP.NET MVC project to System.Web.Helpers for this . But when I try to use this web grid in view directly to avoid instantiation and other settings in controller it says : The type or namespace WebGrid cannot be found . Ok I tried to add a reference here too : .. . .. . @using System.Web.Helpers but this throws another issue : .. . .. . There is no build provider registered for the extension .cshtml . You can register one in the compilation buildProviders section in the machine.config or web.config . Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value Web or All . .. . .. . This is pretty strange.. . I ve seen enough example on net which are using WebGrid and don t have to declare anything in the cshtml view.. . .. . .. . Can you please tell me how to solve this Or why I encounter this very ugly issue .. . Answer : Try to follow the steps below that had been tested before in an ASP.NET MVC4 project without any problem . 1 Open NuGet Package Manager in Visual Studio and search microsoft-web-helper and install . 2 After installing it open web.config in your solution and change connectionStringName parameter for DefaultMembershipProvider DefaultRoleProvider ve DefaultSessionProvider if you do not you might encounter DefaultConnection was not found in the applications configuration or the connection-string is empty . error . 3 Rebuild your project and then use a smilar definition like below in your razor view . Note : Type Title Controller and Action name in Html.ActionLinks according to your project . View : .. . .. . .. . .. . .. . Here are the css classes below used in Razor . If you would like to use your css definitions simply change style properties to that of yours Some properties are optional as the ones in the Razor View . Hope this helps.. .", "Question : I m working with MVC 3 webgrid and i need to add a new row into webgrid to show sum of price from product table . Any ideas are appreciated . Here s my code .. . .. . .. . .. . Answer : Add a new item to the IEnumerable that you use as the source for the WebGrid to bind to . I haven t found a nice way to apply formatting to this total row yet . That might have to be done client-side .", "Question : Below I have given the controller model and view . After run grid is displaying with values but I need to edit the values and delete the values on same page . I have searched and seen some example in that for edit delete they creating separate index but mine need is to edit and delete should done on same page instead of another page . Please give me a solution . Controller : .. . .. . Class : .. . .. . View : Comment : I strongly recommend you to not use the webgrid because it is very inflexible . Comment : What do you recommend instead of webgrid .. . Answer : Here is something you can start with .. . .. . You will have to first generate two action link called Edit and Delete along with each record in the webgrid . See this tutorial http : yassershaikh.com introduction-to-webgrid-in-mvc-3-razor-with-code-samples for that . something like this .. . .. . Hope this helps .", "Question : Below I have given the controller model and view . After run grid is displaying with values but I need to edit the values and delete the values on same page . I have searched and seen some example in that for edit delete they creating separate index but mine need is to edit and delete should done on same page instead of another page . Please give me a solution . Controller : .. . .. . Class : .. . .. . View : Comment : I strongly recommend you to not use the webgrid because it is very inflexible . Comment : What do you recommend instead of webgrid .. . Answer : You can try this inline editable gridview using asp.net-mvc and knockoutjs : www.anhbui.net blog id kojs-1 http : www.anhbui.net blog id kojs-1", "Question : I am quite new to MVC so please correct me if I am using an terminologies incorrectly . I have a WebGrid that is editable and saves perfectly but I want to pass-through an iD from the Model instead of having to display this Id on the WebGrid . In this case its the fkiProjectID . Here is my Code : .. . .. . Action in Controller : .. . .. . WebGrid in View : .. . .. . JSON : .. . .. . Just to reiterate what I want the fkiProjectID is part of the Model and the only way I can get it to be passed through to my JSON query is by adding it to the WebGrid which I dont want . I want it to be passed to my JSON that is sending through my model to my controller with out it being added to the WebGrid . Thanks in advance for the help . .. . Answer : Add the fkiProjectID to the action column as a hidden input and remove it s column : .. . .. . Then in the save user action change where the jQuery is getting the value : Comment : Brilliant That was exactly what I was looking for Thanks", "Question : How to I pass an ID from my WebGrid to my ActionResult : .. . .. . Here is my WebGrid code : .. . .. . My ActionResult : .. . .. . I then want to use this ID to select an item in a DropDownList in the View I am directing to which is something im also not sure how to do . But now the id is passed in the URL - I dont want this . I want to pass the Parameter to my ActionResult and want my URL to stay clean - How do I do this On a side note im looking for css that can style my WebGrid nicely Possibly rounded-corners etc . - is this possible Thanks .. . Answer : After many hours I finally got it to work : .. . .. . The ProjectID parameter is coming from my Landing Page WebGrid selection .. . .. . I hope this helps someone else as well ." ] }
[ "yes-answer-long", "yes-answer-short" ]
web
UNK_RELATION
apache2@php@242
apache2 -- apache http server p t i is a modular cross-platform web server software with a large variety of features called modules including ssl compression log proxy and server-side programming language interfaces like perl python tcl and @placeholder .
{ "confidence": [ 45.57522964477539, 39.07036590576172, 38.787315368652344, 37.82110595703125, 37.448158264160156, 36.75455093383789, 35.74119567871094, 35.74119567871094, 35.5100212097168, 35.45543670654297, 35.425086975097656, 35.09149169921875, 34.90311813354492, 34.61405944824219, 34.51519775390625, 34.39265060424805, 34.120338439941406, 34.11555480957031, 34.028343200683594, 33.919132232666016, 33.888492584228516, 33.76087951660156, 33.605228424072266, 33.57566452026367, 33.521385192871094, 33.521385192871094, 33.501487731933594, 33.438907623291016, 33.40128707885742, 33.27747344970703, 33.24894714355469, 33.0448112487793, 33.01947021484375, 32.99863815307617, 32.855865478515625, 32.73558807373047, 32.69184875488281, 32.686161041259766, 32.56888198852539, 32.554752349853516, 32.442115783691406, 32.14405059814453, 32.11302947998047, 32.02829360961914, 32.02829360961914, 32.02829360961914, 32.02829360961914, 31.95403289794922, 31.762683868408203, 31.683494567871094, 31.683494567871094, 31.582929611206055, 31.410079956054688, 31.410079956054688, 31.368030548095703, 31.305967330932617, 31.291912078857422, 31.19021224975586, 31.19021224975586, 30.964332580566406, 30.93621063232422, 30.75349998474121, 30.75349998474121, 30.729896545410156, 30.711933135986328, 30.596885681152344, 30.58440399169922, 30.48309326171875, 30.4501953125, 30.411510467529297, 30.404254913330078, 30.390775680541992, 30.353879928588867, 30.353605270385742, 30.288028717041016, 30.288028717041016, 30.26517105102539, 30.254194259643555, 30.23601722717285, 30.211212158203125, 30.185749053955078, 30.185749053955078, 30.168834686279297, 30.128175735473633, 30.048234939575195, 30.039270401000977, 29.973539352416992, 29.931747436523438, 29.931747436523438, 29.873851776123047, 29.873851776123047, 29.800752639770508, 29.705204010009766, 29.700456619262695, 29.663883209228516, 29.641809463500977, 29.58333969116211, 29.553503036499023, 29.44376564025879, 29.3702449798584 ], "content": [ "The server is a apache2 server with COMODO SSL certificate .", "I have an Apache web server .", "Apache http server is a general server for http requests .", "I have an apache2 web server that handles reverse proxy for Rails3 app running on another machine .", "I have two virtualhosts on an apache web server .", "I have restarted apache server with command : sudo service apache2 restart", "After this need to restart apache2 server .", "mod-rewrite is enabled on my apache2 server .", "check your web server log .", "But after reloading server in webapp.mysite.com I got : .. . .. . Proxy Error .. . .. . The proxy server received an invalid response from an upstream server .", "but what is required to run a python script in a the apache server", "PD : I m running Apache2 Server and Debian .", "This server uses Ubuntu 14.04 and Apache2 .", "A working apache2 server version 2.2 .. . .. . What is the problem : .. . .. . The php and html files generated by the BOINC server are not servable by apache and I keep getting a 403 error .", "I wand to send post request to Apache HTTP server and then that request is to be forwarded to back end server It locates at somewhere else .", "The server also runs an apache2 server that hosts a site with its domain .", "I have not setup SSL on my server before so a fresh-ish apache2 install is present .", "I tried the following script in the apache web server : .. . .. . But nothing happens .", "It should be readable by the user running the apache server check the apache error-log .", "from https : github.com gitlabhq gitlab-recipes blob master web-server apache gitlab-ssl-apache2.4.conf", "I ve used an Apache-like web server and the server works correctly for a generic site .", "I am reading a journal it stated .. . .. . Lighttpd is asynchronous server and Apache2 is a process-based server .", "We are using OROCRM with Apache2 on our server .", "Or how to make GitLab application as root application on Apache2 HTTP server .", "rApache is specifically a handler for the apache http server .", "Restart ur computer and then install the apache http server .", "Connect your Apache Web Server and Tomcat using HTTP if you would like to use PATCH .", "As for calling in lib s : .. . .. . is .. . .. . Apache : : Request old perl apache the same as HTTP : : Request Apache2 mod perl", "The favored method is to start the application under it s own PSGI compliant server and use a front end web server to proxy the requests to this application server .", "I have been using apache web server with mpm-worker and mod-fcgid .", "I have set apache2 server with mod disk cache .", "The server starts without complaint but as soon as I hit a page that requires an Apache2 module like Apache2 : : Cookie it dies :", "I want to have a apache http server in between my application and client .", "Unfortunately looks like the server is running Apache 2.2.19", "I have installed on my server IceCast with SSL .", "How is it possible for an apache web server to not have any entries in its etc apache sites-enabled directory but still server websites", "My server hold on a strange apache2 error but I can t find out any reason from error-log .", "I have 2 crt files for Apache server : .. . .. . 1 root bundle.crt .. . 2 my domain name.com.crt .. . .. . And other bundle : .. . .. . 1 Intermediate.crt .. . 2 my domain name.com.crt .. . root.crt .. . .. . I have modified .. . .. . And tried various combinations of above mentioned files but after Apache2 service restart SSL does not work browser shows Connection is not secure : .. . .. . How to make SSL on Apache server", "The full need is here http : stackoverflow.com questions 36744038 web-server-apache2-to-access-proxy-web-servers-which-have-no-routing-to-web but the above will already help me much .", "If I try to access a url like .. . .. . I get an error from the Apache server : .. . .. . The requested URL index.cfm report http : www.google.com was not found on this server .", "I m currently reading the book The Apache Modules Book to learn writing Apache2 modules .", "The server runs linux and apache 2.0.63 .", "My external web server doing the reverse proxy is at www.ourdomain.org and the Rails app is internally available at apphost.local the server is Mac OS X Server 10.6 the rails app server is Mac OS X 10.6 .", "On my server I have both a tomcat7 and an apache2 installed .", "I have ubuntu-server with pre-installed apache2 mssql php5 .", "I have build LUCI to work over apache2 on a Ubuntu server .", "I have hgweb.wsgi setup on an ubuntu-server under apache2 .", "All I can do is to configure Tomcat or Apache HTTP Server .", "Then restart your apache2 server and everything will work fine .", "Start Apache Httpd Server .", "Which server apache", "So i went and configured etc apache2 apache2.conf from this : .. . .. . to this : .. . .. . However the Apache server still gives the same error message .", "Everything works fine when running on Flask s dev server but the real server is Apache2 with WSGI .", "However new file are still generated as root : root .. . .. . Server A run Apache2 while Server B run Nginx .", "I actually set up vhost with apache2 and i ve a problem with the hardening of my vhost the apache version and server OS is displayed in the header .", "Because my server is not apache tomcat .", "This is the result we will work towards using Apache web server instead of the built-in Django development server .", "I have a Apache2 server installed running with php and suhosin .", "It is run with mod-python which I know is deprecated at apache2 server .", "Request and response between those two are ok . Now my problem is how to forward this request from Apache HTTP server to back end server .", "I found unknown request in my apache server .", "The proxy server could not handle the request GET .", "Example : Proxy requests from example to another server .", "Unfortunately I m not in a position to change the server config I would have added an Apache handler for Perl if this was the case .", "I ve got a Apache2 server using mod-fastcgi and am using Symfony2 .", "The only log of today is this : in var log apache2 error-log Thu Mar 01 16 : 09 : 03 2012 warn RSA server certificate CommonName CN zulu1252 does NOT match server name", "It s hosted on EC2 Instance running on Apache2 server .", "About permissions for files should be readable from the apache server more precisely form the user that runs the apache server .", "The server implementation I m using is pywebsocket the extension for apache server .", "I have configure my apache2 server on my host server is running but it can t find cgi script as i put my CGI program in usr lib cgi-bin directory .", "I am trying to create a Apache Forward Proxy on a Debian 8.4 Jessie server for accessing servers outside the organization .", "Then I tried to set the httpd.conf within apache server like below .", "You can check whether the Apache web server has been properly set-up by opening your web browser and pointing it to the server IP address .", "I have two machines : .. . .. . Machine A is running Apache 2 server .", "Apache 2.2.14 Ubuntu Server at localhost Port 80", "I m using Collabnet Subversion Server with Apache .", "Mod proxy will easily forward requests to your backend server .", "mod-python runs in the context of the web server .", "My server-side is hg 2.6.3 .", "I installed Apache2 server on linux Mint system to do some web development .", "I am trying to setup the Django app on Apache2 server with Ubuntu .", "I installed apache2 server and enabled a2ensite for my domain-name .", "for example ErrorLog var www www.localhost.com log-apache2 error.log in the apache virtualhost. .", "I m trying to configure SVN web access on Apache2 under Windows Server 2008 for different write permissions .", "I have set up a mercurial-server through SSL .", "Are there any security performance concerns if we set the Apache web server to configure Apache to handle all HTML as PHP", "As I checked the differed between apache and tomcat from this post http : stackoverflow.com questions 30632 difference-between-the-apache-http-server-and-apache-tomcat .", "I have cluster setup of Apache server .", "I had forgotten to restart the apache server.. .", "PS : I m running a Ubuntu 14.04 server with apache2 and PHP7 .", "My website is running on a Apache2 server deployed on an OPENSuse 10 Enterprise .", "So what I want is when client send request a Apache HTTP Server it should pass to back end server and then when response comes to Apache HTTP Server it should be modified using set handler in the server and send response back to client .", "Here is what I get when I export the key : .. . .. . I have been using this setup with Apache and ActiveState Perl on my Windows laptop and the Apache and Perl distributions that come with ArchLinux on my server .", "Using a high trace log level for mod-rewrite will slow down your Apache HTTP Server dramatically", "I would like to disable gzip compression for some media files which are already compressed on an Apache server via the .htaccess file .", "On my Ubuntu 14.04 server I added the following line to etc apache2 mods-enabled dav svn.conf .. . SVNListParentPath on .. . .. . Be sure to restart Apache : .. . sudo etc init.d apache2 restart", "I ve created 2 containers : .. . .. . 1 reverse proxy Apache2 1 webserver to create a wiki with apache2 .. . .. . I want redirect all webtrafic port 80 from host to reverse proxy because I want many containers with web server .", "The apache2 version is 2.4.7 ubuntu .. . .. . the apache2 version is 2.4.7 ubuntu .. . the apache2 logformat : X-Forwarded-For i l u t r s O T Referer i User-Agent i .. . PHP is 5.5.9-1ubuntu4.11 Zend Engine v2.5.0 .. . .. . What happened in our server", ".. . in etc apache2 sites-available new swap file is appeared i removed and started the apache2 server again still it is not working .", "Setting up the proxy .. . .. . To set up a reverse-proxy with Apache2 you first need to enable the Apache proxy module and virtualhosts ." ] }
{ "confidence": [ 58.5224723815918, 54.41170120239258, 52.889835357666016, 50.243709564208984, 49.85282516479492, 48.7336540222168, 48.13191223144531, 47.37858963012695, 46.6373291015625, 46.05659866333008, 44.793678283691406, 44.1917610168457, 44.15030288696289, 44.13603210449219, 43.99662399291992, 43.82878494262695, 43.701255798339844, 43.6708869934082, 43.622276306152344, 43.35122299194336 ], "content": [ "Question : I m stack because all the websites on my Linux Apache2 web server which have a form to fulfil are returning 413 Request Entity Too Large Error only after first fulfil refresh makes it working . Error looks like : .. . .. . Here is apache2 error-log : .. . .. . It gives the error on both one using PHP and second Perl cgi scripts . I m not using SSL . Comment : Not sure if it has anything to do with the problem . But do you have Gzip compression enabled Might try to disable it. . That is where I would start looking. . .. . Answer : Maybe the form is submitted using the GET http method but the url built by the browser is too long . In this case the usual server answer is HTTP Error 413 Request entity too large . In this case you should use POST method to figure out this problem . Comment : thank you for answer bo no it is POST I ve added an error text to the question Comment : have you changed the apache and or php configuration during these days consider to build a simple php page with phpinfo inside to double check the php configuration .", "Question : My web-app is located in mysite.com : 8080 . I want to access to it by typing webapp.mysite.com . So I followed these steps : .. . .. . 1 Enable needed modules : .. . .. . a2enmod proxy a2enmod proxy http .. . .. . apache2 restart .. . .. . 2 Create etc apache2 sites-available mysite .. . .. . 3 Modify etc apache2 ports.conf .. . .. . I m used this settings some days and all be good . But after reloading server in webapp.mysite.com I got : .. . .. . Proxy Error .. . .. . The proxy server received an invalid response from an upstream server . The proxy server could not handle the request GET . .. . Reason : DNS lookup failure for : mysite.com .. . .. . Apache 2.2.9 Debian DAV 2 SVN 1.5.1 PHP 5.2.6-1+lenny4 with Suhosin-Patch mod-ssl 2.2.9 OpenSSL 0.9.8g mod perl 2.0.4 Perl v5.10.0 Server at webapp.mysite.com Port 80 .. . .. . Help me how can I fix it .. . Answer : Use the IP address instead . Comment : Thank s man It fixed my problem", "Question : null .. . Answer : I have an apache2 web server that handles reverse proxy for Rails3 app running on another machine . The setup works except URLs generated within the webapp aren t getting rewritten by my configuration for mod-proxy html . The Reverse Proxy Scenario http : www.apachetutor.org admin reverseproxies is exactly what I m trying to do so I ve followed the tutorial as completely as I know how . I ve applied or tried two answers supplied here http : stackoverflow.com questions 3479061 i-cant-seem-to-get-mod-proxy-html-working-at-all-no-debug-output-no-errors and here on stackoverflow to no effect . According to the Reverse Proxy Scenario you want a number of modules loaded . All those instructions are in my httpd.conf file and when I examine the output from .. . .. . all the expected modules show in amongst the listing . My external web server doing the reverse proxy is at www.ourdomain.org and the Rails app is internally available at apphost.local the server is Mac OS X Server 10.6 the rails app server is Mac OS X 10.6 . What s working right now is access to the webapp via the reverse proxy as : .. . .. . http : www.ourdomain.org apphost railsappname controllername action .. . .. . But none of the javascript files css files or other assets get loaded and links internal to the web app come out missing the apphost portion of the URL as-if my rewrite rule is configured incorrectly so of course I ve focused on that and can t seem to get anything to be added or deleted in the process of passing the html in from the apphost and out through the Apache server . Here s what my Apache directives look like : .. . .. . After every change I make to httpd.conf I religiously check apachectl -t just to be sane . I m definitely not an Apache expert but all the directives that follow mine seem to not overrule what I m doing here . But then nothing that I try seems to alter the URLs I see in my browser after hitting the Apache server with a request for my web app . Even if you can t tell what I ve done incorrectly I d welcome ideas on how to get Apache to help see what it s working on and doing to the html coming from my web app . That s what I understood the ProxyHTMLLogVerbose On and LogLevel Debug to be setting up but I m not seeing anything in the log files . Comment : Belongs on serverfault.com . Comment : I ll check out serverfault.com -- thanks", "Question : I would restart Apache2 but there comes an Error .. . .. . But all error logs in var log apache2 are empty . Edit : The Files are at var log apache2 and there are several entries from previous Problems but this Task doesn t create any new etry .. . .. . .. . Where is the Problem .. . .. . I ve Solved the Problem .. . .. . It was a error in the SSL Certificate and the path to the error.log are changed in the vHost configuration . If you don t need SSL i don t because i m running a local system simply disable all vHost HTTPS SSL entrys in the configuration by command-line for line out . Comment : check syslog for errors Comment : Have you space on the disk Comment : Just a comment : is the server stopped If not it will fail if you run sudo service apache2 start . For a restart it should be : sudo service apache2 restart Comment : The server is down because it won t start at booting Comment : is there any other error is syslog that can affect apache .. . Answer : in the apache virtualhost you have to define the path to the error-log file . when apache2 start for the first time it will create it automatically . for example ErrorLog var www www.localhost.com log-apache2 error.log in the apache virtualhost. . Comment : No the Error files are at var log apache2 and there are serveral errors from previous Problems . But This Start-Attemp doesn t create new entrys in any error-log Comment : if the file exist may be you have a space problem with the disk check that too Comment : This is neither a problem .... . Comment : is it the same user created the previous logs or not it can be the users authorization to create the log file . i got the same issue before due to the user problem Comment : Yes . All entrys are from one user", "Question : I m trying to set a telegram-bot up . My favourite language is Java . In the past I had experience with Grizzly lightweight webserver so I d like to use it . The problem is that I don t know how to configure the whole environment in order to make it works with SSL . I configured Apache2 on my Debian machine and it works with an autosigned SSL certificate . So if I browse https : 10.0.0.1 I can see the Apache welcome page . The plan is to receive HTTPS POST requests containing a JSON and forward them to a Grizzly . How could I achieve it .. . Answer : Easy With ProxyPass in Apache2 Guide followed here https : www.digitalocean.com community tutorials how-to-use-apache-http-server-as-reverse-proxy-using-mod proxy-extension", "Question : I would restart Apache2 but there comes an Error .. . .. . But all error logs in var log apache2 are empty . Edit : The Files are at var log apache2 and there are several entries from previous Problems but this Task doesn t create any new etry .. . .. . .. . Where is the Problem .. . .. . I ve Solved the Problem .. . .. . It was a error in the SSL Certificate and the path to the error.log are changed in the vHost configuration . If you don t need SSL i don t because i m running a local system simply disable all vHost HTTPS SSL entrys in the configuration by command-line for line out . Comment : check syslog for errors Comment : Have you space on the disk Comment : Just a comment : is the server stopped If not it will fail if you run sudo service apache2 start . For a restart it should be : sudo service apache2 restart Comment : The server is down because it won t start at booting Comment : is there any other error is syslog that can affect apache .. . Answer : I also just ran in to a similar problem that is service apache2 reload fails but prints no useful information . This is because the script in etc init.d apache on Debian at least eats the output of the apache2ctl configtest command it runs to sanitize the Apache config . An easy solution to get a more meaningful explanation for the failure is to run apache2ctl configtest again yourself which will print the hopefully useful error messages to the console . Comment : eats the output of.. . - great :", "Question : Hello Perl warriors . I m totally new to the language and have been placed on a interesting project of porting an application that was originally written for Apache 1.3 and the older Perl to RHEL CentOS 6 with Apache 2.2.x and mod perl . As for calling in lib s : .. . .. . is .. . .. . Apache : : Request old perl apache the same as HTTP : : Request Apache2 mod perl Additionally if anyone has any resources they have found to be particularly useful during a perl upgrade porting project it would be greatly appreciated . .. . Answer : No HTTP : : Request https : www.metacpan.org module HTTP 3a 3aRequest is part of the LWP https : www.metacpan.org module LWP ecosystem and is used for constructing client-side HTTP requests for Perl HTTP clients . You re probably looking for Apache2 : : Request https : www.metacpan.org module Apache2 3a 3aRequest which is part of the libapreq distribution for Apache 2 . Comment : Thank you . I did a little more digging and found the RPM that corresponds to these modules . yum install perl-libapreq2", "Question : I would restart Apache2 but there comes an Error .. . .. . But all error logs in var log apache2 are empty . Edit : The Files are at var log apache2 and there are several entries from previous Problems but this Task doesn t create any new etry .. . .. . .. . Where is the Problem .. . .. . I ve Solved the Problem .. . .. . It was a error in the SSL Certificate and the path to the error.log are changed in the vHost configuration . If you don t need SSL i don t because i m running a local system simply disable all vHost HTTPS SSL entrys in the configuration by command-line for line out . Comment : check syslog for errors Comment : Have you space on the disk Comment : Just a comment : is the server stopped If not it will fail if you run sudo service apache2 start . For a restart it should be : sudo service apache2 restart Comment : The server is down because it won t start at booting Comment : is there any other error is syslog that can affect apache .. . Answer : Thanks Tim Big stumper for me . A few other details others may find helpful : .. . .. . Apache2 on Ubuntu 12.04 .. . .. . I have two sites running on the same server and had just updated the SSL cert for one of them . Upon restarting the server I got that cryptic message and neither site worked obviously . I too found the redirect for the log files in the config files . I tracked that down and found the issue in the log file for the site I had just updated . My config files are located in etc apache2 sites-available .. . .. . vim or cat the file cat filename and look for the ErrorLog line . That tells you where to look on your server . cat that file and the error message I found was : .. . .. . I had copied one of my cert files to the wrong directory . I simply moved it to the correct directory and everything was fine on the next start . tip : where those file should be is also in the config file", "Question : I m vaguely aware that on a computer joined to a domain IE can be asked to send some extra headers that I could use to automatically sign on to an application . I ve got apache running on a windows-server with mod-php . I d like to be able to avoid the user having to log in if necessary . I ve found some links talking about Kerberos and Apache modules . http : www.onlamp.com pub a onlamp 2003 09 11 kerberos.html page last https : metacpan.org pod Apache2 : : AuthenNTLM .. . .. . Since I m running on Windows it s proven to be non-trivial to get Perl or Apache modules installed . But doesn t PHP already have access to HTTP headers I found this but it doesn t do any authentication it just shows that PHP can read the NTLM headers . http : siphon9.net loune 2007 10 simple-lightweight-ntlm-in-php .. . .. . I d like to be able to have my users just point to the application and have them automatically authenticated . Has anyone had any experience with this or gotten it to work at all UPDATE Since originally posting this question we ve changed setups to nginx and php-fcgi still running on windows . Apache2 and php-cgi on windows is probably one of the slowest setups you could configure on windows . It s looking like Apache might still be needed it works with php-fcgi but I would prefer a nginx solution . I also still don t understand and would love to be educated why HTTP server plugins are necessary and we can t have a PHP web server agnostic solution . Comment : Is this an internal behind-the-firewall application Comment : Yes it is internal Comment : Is there anything else I can add to improve this question .. . Answer : One option for you is to use CAS central authentication service . It has php client library . How-to link-to MS Active Directory : http : www.ja-sig.org wiki display CASUM Active+Directory .. . .. . You would require Apache maven-2 though .", "Question : OS : Red Hat Enterprise Linux Server release 6.4 Santiago .. . .. . The current yum installation of apache on this OS is 2.2.15 . I require the latest 2.4.x branch so have gone about installing it manually . I have noted the complete procedure I undertook including unpacking apr and apr-util sources into the apache sources beforehand but I guess the following is the most important part of the procedure : .. . .. . NOTE : At the time of running the above etc http is empty . This seems to have gone fine until I attempt to start the httpd service . It seems that every module include in httpd.conf fails with a message similar to this one for mod-rewrite : .. . .. . I ve gone right through the list of enabled modules in httpd.conf and commented them out one at a time . All trigger an error as above however the undefined symbol : value is often different so not always ap global mutex create . Am I missing a step Although I find a some portion of that error on Google most of the solutions centre around the .so files not being reachable . That doesn t seem to be an issue here and the modules are present in etc http modules . NOTE : At the time of running the above etc http is empty . .. . Answer : You have the correct procedure but it s incomplete . After the installation you have to enable SSL in httpd.conf . and generate server.crt and server.key file . Below the complete procedure : .. . .. . 1 . Download Apache .. . .. . 2 . Download APR and APR-Util .. . .. . Now put the APR and APR-Util you downloaded into your apache source files . 3.Compile .. . .. . 4 . Enable SSL in httpd.conf .. . .. . Apache configuration file httpd.conf is located under usr local apache2 conf . Uncomment the httpd-ssl.conf Include line and the LoadModule ssl module line in the usr local apache2 conf httpd.conf file : .. . .. . View the httpd-ssl.conf to review all the default SSL configurations . For most cases you don t need to modify anything in this file . The SSL certificate and key are required before we start the Apache . The server.crt and server.key file mentioned in the httpd-ssl.conf needs to be created before we move forward . 5 . Generate server.crt and server.key file .. . .. . First Generate the server.key using openssl . The above command will ask for the password . Make sure to remember this password . You need this while starting your Apache later . Next generate a certificate request file server.csr using the above server.key file . Finally generate a self-signed ssl-certificate server.crt using the above server.key and server.csr file . Copy the server.key and server.crt file to appropriate Apache configuration directory location . 6 . Start Apache .. . .. . If you are getting the below error message : .. . .. . Make sure to uncomment the line shown below in httpd.conf : .. . .. . Finally this will prompt you to enter the password for your private key before starting up the apache . Verify that the Apache httpd process is running in the background . You should see something like that : .. . .. . By default Apache SSL runs on 443 port . Open a web browser and verify that you can access your Apache using https : your-ip-address .. . .. . I hope this help else I advise you to go see : http : jasonpowell42.wordpress.com 2013 04 05 install-apache-2-4-4-on-centos-6-4 Comment : Wow . Thank you very much for the detailed response . Comment : You re welcome : Comment : how to make it auto start with server Comment : For auto strat see this link : serverfault.com a 202886 http : serverfault.com a 202886", "Question : I m vaguely aware that on a computer joined to a domain IE can be asked to send some extra headers that I could use to automatically sign on to an application . I ve got apache running on a windows-server with mod-php . I d like to be able to avoid the user having to log in if necessary . I ve found some links talking about Kerberos and Apache modules . http : www.onlamp.com pub a onlamp 2003 09 11 kerberos.html page last https : metacpan.org pod Apache2 : : AuthenNTLM .. . .. . Since I m running on Windows it s proven to be non-trivial to get Perl or Apache modules installed . But doesn t PHP already have access to HTTP headers I found this but it doesn t do any authentication it just shows that PHP can read the NTLM headers . http : siphon9.net loune 2007 10 simple-lightweight-ntlm-in-php .. . .. . I d like to be able to have my users just point to the application and have them automatically authenticated . Has anyone had any experience with this or gotten it to work at all UPDATE Since originally posting this question we ve changed setups to nginx and php-fcgi still running on windows . Apache2 and php-cgi on windows is probably one of the slowest setups you could configure on windows . It s looking like Apache might still be needed it works with php-fcgi but I would prefer a nginx solution . I also still don t understand and would love to be educated why HTTP server plugins are necessary and we can t have a PHP web server agnostic solution . Comment : Is this an internal behind-the-firewall application Comment : Yes it is internal Comment : Is there anything else I can add to improve this question .. . Answer : I had a similar problem which I needed to solve for my organization . I was looking into using adLDAP http : adldap.sourceforge.net . There is some documentation on the site for achieving seamless authentication with Active Directory too . Comment : The link in question for the documentation is adldap.sourceforge.net wiki doku.php id seamless authentication http : adldap.sourceforge.net wiki doku.php id seamless authentication I ll take a look Comment : There is some good info about redirecting to an iis server for authentication with a token but it mainly pushes apache-modules on linux .", "Question : I would restart Apache2 but there comes an Error .. . .. . But all error logs in var log apache2 are empty . Edit : The Files are at var log apache2 and there are several entries from previous Problems but this Task doesn t create any new etry .. . .. . .. . Where is the Problem .. . .. . I ve Solved the Problem .. . .. . It was a error in the SSL Certificate and the path to the error.log are changed in the vHost configuration . If you don t need SSL i don t because i m running a local system simply disable all vHost HTTPS SSL entrys in the configuration by command-line for line out . Comment : check syslog for errors Comment : Have you space on the disk Comment : Just a comment : is the server stopped If not it will fail if you run sudo service apache2 start . For a restart it should be : sudo service apache2 restart Comment : The server is down because it won t start at booting Comment : is there any other error is syslog that can affect apache .. . Answer : Syntax errors in the config file seem to cause problems . I found what the problem was by going to the directory and excuting this from the command-line . This gave me the error Comment : Thanks for this . I don t live in the Apache world a lot . Spent the last two days trying to get SSL working-e info Comment : This command got me past my initial issues which was a bunch of syntax issues in the bitnami distribution I was working with . This at least got me to my next error : Comment : This saved my life", "Question : I m trying to write a small perl framework for university but I cannot configure Apache2 properly . I ve made it always call one script index.pl get the decoded uri env - SCRIPT NAME but now I cannot return images at all . I tried printing the image to STDOUT but no luck . I also tried making another script to load the image but it wouldn t work . I m stuck with the hard location of the image and I guess the AliasMatch in the apache2 conf files is tying my hands with this task . The basic idea is to use one script to load the web content . Apache2 sites enabled - relevant code : .. . .. . perl script - relevant code : index calls a perl-module .. . .. . page output : .. . Answer : I don t think this has anything to do with your Apache configuration . I suspect you just have the URL for the image wrong . Some things to check : .. . .. . Is there are 404 error being written to the web server error-log Is there a missing image marker where the image should be If so what URL do you see in the location bar if you right-click the image marker and select view image What is the actual URL of the image Using a relative URL like this is always going to be potentially tricky in a complex Apache configuration like this . What is preventing you from replacing the relative URL with an absolute one Comment : Hmm well . First off access log entry : GET tmo resourse desert-dunes-number-1-carol-leigh.jpg HTTP 1.1 200 1024 localhost quot http : localhost quot Mozilla 5.0 Firefox 38.0 etc.. . I just realised that in the script the last print wasn t ed now all I get is the alt n a being printed . And I wanted the script to grab the image just to disallow people to see the real location of the files on the server . So yea missing image marker if you mean the alt is displayed . And the actual url comes from a symlink shortcut from within the apache2 document root . Comment : I was asking about the error-log not the access log . But getting a 200 response and not seeing the image is strange . What do you get if you just paste the URL to the image into the location bar in your browser Adding a semi-colon to the end of the final statement in a block makes no difference . Comment : That s the thing no errors since last ap2 restart...and the AliasMatch . index.pl sends me to the same index.pl script without actually fetching the image as in an infinite-loop . Comment : Yes . You will want to change that AliasMatch so that it doesn t match the URLS for your images . Sorry should have spotted that sooner . Comment : Hmm . I guess i ll have to exclude the image folder or try to print them with a custom script .", "Question : OS - Ubuntu 14.04.3 LTC .. . .. . git Tomcat7 mysql apache2 were installed . I configured tomcat7 to support SSL : server.xml .. . .. . And used mysql database : context.xml .. . .. . I deployed gerrit on tomcat7 with type auth development become any account . Next I created file gerrit auth.conf in folder etc apache2 sites-available .. . .. . And chaged auth type to http in gerrit.config .. . .. . and restarted services apache2 and tomcat7 . Now when I go to https : my gerrit site : 4432 I see tomcat7 .. . .. . It works when I go to https : my gerrit site : 4432 gerrit I see .. . .. . Configuration Error .. . .. . Check the HTTP server s authentication settings . .. . The HTTP server did not provide the username in the Authorization header when it forwarded the request to Gerrit Code Review . .. . If the HTTP server is Apache HTTPd check the proxy configuration includes an authorization directive with the proper location ensuring it ends-with : .. . .. . ServerName my gerrit site .. . .. . .. . ProxyRequests Off .. . ProxyVia Off .. . ProxyPreserveHost On .. . .. . Proxy .. . Order deny allow .. . Allow from all .. . Proxy .. . .. . Location gerrit login .. . AuthType Basic .. . AuthName Gerrit Code Review .. . Require valid-user .. . .. . .. . Location .. . .. . AllowEncodedSlashes On .. . ProxyPass gerrit http : .. . gerrit nodecode VirtualHost .. . .. . .. . when I go to http : my gerrit site : 82 I see .. . .. . Index of .. . .. . Apache 2.4.7 Ubuntu Server at my gerrit site Port 82 .. . .. . when I go to http : my gerrit site : 82 gerrit login I see window with authentication and when I login I see .. . .. . apache errorlog.log .. . .. . catalina.out .. . .. . What I do wrong What settings I need change Thanks Comment : Why are you using Tomcat Is it required It s better to let gerrit work on it own . Comment : Yes I use tomcat because it is requirement .. . Answer : You need to change the canonocalWebUrl to the external-url Comment : unfortunately It does not work . All are same errors and Internet Explorer cannot display the webpage my gerrit site : 82 https : my gerrit site : 82 and gerrit . As I understand apache use http not https", "Question : Raspberry Pi is still on Apache 2.2 2.2.22-13+deb7u4 right now . To use Apache as Proxy for Websockets ProxyPass Apache Module mod-proxy wstunnel is required . Apache Module mod-proxy wstunnel is available in httpd 2.4.5 and later . How can I add mod-proxy wstunnel to Apache2 2.2 on Raspberry Pi Backport mod-proxy wstunnel .. . Answer : Download Apache Source add patch from Vitkin compile Apache and add module mod-proxy wstunnel.so to Apache Modules .. . .. . Details about the patch : https : gist.github.com vitkin 6661683 .. . .. . Detailed steps : Comment : When I tried this I got the following after sudo service apache2 restart : apache2 : Syntax error on line 253 of etc apache2 apache2.conf : Syntax error on line 1 of etc apache2 mods-enabled mod-proxy wstunnel.load : Cannot load usr lib apache2 modules mod-proxy wstunnel.so into server : usr lib apache2 modules mod-proxy wstunnel.so : undefined symbol : ap proxy canonenc and so action configtest failed . Any ideas Comment : The solution was that you have to copy not just mod-proxy wstunnel but mod-proxy as well as seen here : amoss.me.uk 2013 06 https : www.amoss.me.uk 2013 06 apache-2-2-websocket-proxying-ubuntu-mod proxy wstunnel", "Question : Hello i m trying to configure apache2 server for python i used this command to install apache2 : .. . .. . edited the default file to : .. . .. . later i used this command : .. . .. . i got an error : .. . .. . when i tried to see what s the link that s present in mod python.load using cat command i got LoadModule python-module usr lib apache2 modules mod python.so .. . .. . please help me out . Continued. . Now i m getting a new error Sir i have placed a file hello.py having code .. . .. . in a folder called cgi-bin in var www when i run this on apache2 using .. . .. . http : localhost cgi-bin hello.py .. . .. . i m getting this error Comment : Don t type . Click on the button that shows the icon . Comment : Can you cat etc apache2 mods-enabled mod python.load and add the output to your question Also you don t have to do that symlink mess yourself...just run a2enmod modname Comment : sorry i m new didn t know how to show code snippet well i did the command cat over the mod python.load this is what i got : LoadModule python-module usr lib apache2 modules mod python.so Comment : @Bhuvan raj - it looks like there is a space between the leading and the rest of the path to the module . is there if so remove the space and try again.. . Comment : oh ya there was an space my bad i think this must be the height of stupidness you would have ever come across i m really sorry for your time : - thanks a ton its working now : : By the way i can run cgi programs written in python right .. . Answer : It looks like there is a space between the leading and the rest of the path to the module . Is there If so remove the space and try again.. . Comment : Sir right now i m getting an error i have placed a file hello.py having code usr bin python print Content-type : text html r n r n print html print head print title Hello Word - First CGI Program title print head print body print h2 Hello Word This is my first CGI program h2 print body print html in a folder called cgi-bin in var www when i run this on apache2 using http : localhost cgi-bin hello.py i m getting this error The requested URL cgi-bin hello.py was not found on this server . Apache 2.2.14 Ubuntu Server at localhost Port 80 Comment : @Bhuvan raj - i m happy to assist you with this error but this is a different problem from your original question . please accept an answer for this question and then open a new question for the URL not found issue . Comment : oh sorry. . I have asked a separate question . Thanks a lot for you time :", "Question : I m vaguely aware that on a computer joined to a domain IE can be asked to send some extra headers that I could use to automatically sign on to an application . I ve got apache running on a windows-server with mod-php . I d like to be able to avoid the user having to log in if necessary . I ve found some links talking about Kerberos and Apache modules . http : www.onlamp.com pub a onlamp 2003 09 11 kerberos.html page last https : metacpan.org pod Apache2 : : AuthenNTLM .. . .. . Since I m running on Windows it s proven to be non-trivial to get Perl or Apache modules installed . But doesn t PHP already have access to HTTP headers I found this but it doesn t do any authentication it just shows that PHP can read the NTLM headers . http : siphon9.net loune 2007 10 simple-lightweight-ntlm-in-php .. . .. . I d like to be able to have my users just point to the application and have them automatically authenticated . Has anyone had any experience with this or gotten it to work at all UPDATE Since originally posting this question we ve changed setups to nginx and php-fcgi still running on windows . Apache2 and php-cgi on windows is probably one of the slowest setups you could configure on windows . It s looking like Apache might still be needed it works with php-fcgi but I would prefer a nginx solution . I also still don t understand and would love to be educated why HTTP server plugins are necessary and we can t have a PHP web server agnostic solution . Comment : Is this an internal behind-the-firewall application Comment : Yes it is internal Comment : Is there anything else I can add to improve this question .. . Answer : I d be curious about a solution that uses OpenID as a backend of sorts for this.. . I wasn t seeing anything that would hook into ActiveDirectory directly when I googled quickly . However it could be pretty painless to implement over plain HTTP S you d be an OpenID provider that checked credentials against your local AD . In a best case scenario you might be able to just add a couple classes to your app and be off and running -- no web server modules required . There is a lot of open-source code out there for either side of this so if nothing else it s worth taking a look . If you exposed the backend to the users i.e . gave them OpenID URLs you d have the added benefit of them being able to log in to more than just your internal sites using these credentials . Example : Stack Overflow . As an aside I d be against making it so that Internet Explorer is required . I m not sure if that is the goal from the way you wrote the question but depending on your IT environment I d expect people who use Firefox or Safari or Opera or .. . to be less than enthusiastic . You re not developing against IE first are you That s been painful whenever I ve done so . This is not to say that you couldn t use this feature of IE just that it shouldn t be the only option . The link you posted stated that NTLM worked with more than IE but since I don t have any experience with it it s hard to judge how well that would work . Comment : All browsers support NTLM authentication . IE is no longer a requirement .", "Question : On my server I have both a tomcat7 and an apache2 installed . I stopped the tomcat7 service and want to listen to with apache2 on port 80 also tried for test with 8082 and port 443 and tested also with 442 . Before I stopped tomcat7 I tried it with 8082 and I could establish webside call and got the webside . But after I stopped tomcat7 and want to listen with apache2 to the ports 80 and 443 I could not establish a webside call also not again if i tried it again with 8082 and 442 . A netstat tulpe returned the following : .. . .. . My ports.conf : .. . .. . and the 000-default.conf .. . .. . a service status-all returned : .. . .. . The error-log shows : .. . .. . It seems that this lines are only warnings I tried on the terminal of the server a wget and got the right answere both with : .. . .. . and the sameanswere with the servername . But not on a webbrowser on an other machine . Why not BTW : A lsof -i returned noting . Why not Server version : Ubuntu 14.04.4 LTS .. . Answer : You have provided all the right troubleshooting tools thank you One recommendation : omit the e argument from the netstat - for this type of troubleshooting you want the numerical port numbers not the translations into human-readable form . The p argument also does nothing if you are not root but it doesn t hurt either . The key to solving your problem is the netstat output . Your netstat output shows that Apache is listening on port 8082 but not on port 442 . In your configuration you also have not provided any SSL configuration the 000-default.conf does not mention any SSL configuration options so most likely it is simply not configured . So that explains the port 442 issue . The second thing the netstat output shows is that Apache is listening on port 8082 but only on one particular IP address . Since your wget succeeds that is probably the correct one it is just a unusual issue and could potentially cause issues down the road if your network configuration changes . The last problem you mention is that you cannot reach the server from any other system . On that none of your config files give a clue but usually this type of problem is that you did not open port 8082 in your firewall . One more aside : instead of using wget for testing I d initially use telnet . Because telnet is lower level there are fewer moving parts that could interfere with your test . That s just a general tip though - in this case wget did give you the information you needed . Comment : Thank you very much for your answer I already added the SSL config file . But it case was really the firewall which could solved with : sudo iptables -A INPUT -p tcp --dport 8082 -j ACCEPT", "Question : I m vaguely aware that on a computer joined to a domain IE can be asked to send some extra headers that I could use to automatically sign on to an application . I ve got apache running on a windows-server with mod-php . I d like to be able to avoid the user having to log in if necessary . I ve found some links talking about Kerberos and Apache modules . http : www.onlamp.com pub a onlamp 2003 09 11 kerberos.html page last https : metacpan.org pod Apache2 : : AuthenNTLM .. . .. . Since I m running on Windows it s proven to be non-trivial to get Perl or Apache modules installed . But doesn t PHP already have access to HTTP headers I found this but it doesn t do any authentication it just shows that PHP can read the NTLM headers . http : siphon9.net loune 2007 10 simple-lightweight-ntlm-in-php .. . .. . I d like to be able to have my users just point to the application and have them automatically authenticated . Has anyone had any experience with this or gotten it to work at all UPDATE Since originally posting this question we ve changed setups to nginx and php-fcgi still running on windows . Apache2 and php-cgi on windows is probably one of the slowest setups you could configure on windows . It s looking like Apache might still be needed it works with php-fcgi but I would prefer a nginx solution . I also still don t understand and would love to be educated why HTTP server plugins are necessary and we can t have a PHP web server agnostic solution . Comment : Is this an internal behind-the-firewall application Comment : Yes it is internal Comment : Is there anything else I can add to improve this question .. . Answer : All you need is the mod auth sspi http : mod-auth-sspi.sourceforge.net Apache module . Sample configuration : .. . .. . And don t forget that you can also use Firefox for transparent SSO in a Windows domain http : kb.mozillazine.org Network.automatic-ntlm-auth.trusted-uris : Simply go to about : config search for network.automatic-ntlm-auth.trusted-uris and enter the host name or FQDN of your internal application like myserver or myserver.corp.domain.com . You can have more than one entry it s a comma-separated list . Comment : This works you get the bounty and I get stuck with apache . Some of the others might work too but still nothing that doesn t require apache or iis . I hope to revisit this problem one day .", "Question : I m vaguely aware that on a computer joined to a domain IE can be asked to send some extra headers that I could use to automatically sign on to an application . I ve got apache running on a windows-server with mod-php . I d like to be able to avoid the user having to log in if necessary . I ve found some links talking about Kerberos and Apache modules . http : www.onlamp.com pub a onlamp 2003 09 11 kerberos.html page last https : metacpan.org pod Apache2 : : AuthenNTLM .. . .. . Since I m running on Windows it s proven to be non-trivial to get Perl or Apache modules installed . But doesn t PHP already have access to HTTP headers I found this but it doesn t do any authentication it just shows that PHP can read the NTLM headers . http : siphon9.net loune 2007 10 simple-lightweight-ntlm-in-php .. . .. . I d like to be able to have my users just point to the application and have them automatically authenticated . Has anyone had any experience with this or gotten it to work at all UPDATE Since originally posting this question we ve changed setups to nginx and php-fcgi still running on windows . Apache2 and php-cgi on windows is probably one of the slowest setups you could configure on windows . It s looking like Apache might still be needed it works with php-fcgi but I would prefer a nginx solution . I also still don t understand and would love to be educated why HTTP server plugins are necessary and we can t have a PHP web server agnostic solution . Comment : Is this an internal behind-the-firewall application Comment : Yes it is internal Comment : Is there anything else I can add to improve this question .. . Answer : For IIS PHP FCGI You need to send out an unauthorized header : .. . .. . You can then get at the username with : .. . .. . I then make sure the winuser is in my database of allowed users . Be SURE and test this under a non-privileged account . When I first installed this I tested it and it worked fine but later when a standard non-server-admin user tried it this failed . Turns out some of the temporary directories need to have permissions changed for guest users . I can t recall the exact settings . Comment : Does this work for non iis servers Comment : I don t manage any non-iis servers so I don t know ." ] }
[ "yes-answer-long", "yes-answer-short" ]
php
UNK_RELATION
spring-xd@real-time@90
spring-xd -- spring-xd is a unified distributed and extensible system for data ingestion @placeholder analytics batch-processing and data export .
{ "confidence": [ 63.052520751953125, 59.55388641357422, 58.99847412109375, 58.99847412109375, 58.64191818237305, 58.42557144165039, 58.2935676574707, 57.20838165283203, 56.92900085449219, 55.655330657958984, 55.531978607177734, 54.64728927612305, 54.13471221923828, 53.629817962646484, 53.589378356933594, 53.42974853515625, 53.42974853515625, 53.17560577392578, 52.89738464355469, 52.89738464355469, 52.6903190612793, 52.6903190612793, 52.28822326660156, 51.957794189453125, 51.85300827026367, 51.85300827026367, 51.85300827026367, 51.85300827026367, 51.808502197265625, 51.75402069091797, 51.482757568359375, 51.482757568359375, 51.482757568359375, 51.482757568359375, 51.096683502197266, 51.08580017089844, 51.016143798828125, 50.69371032714844, 50.69371032714844, 50.557029724121094, 50.52064895629883, 50.29541015625, 49.96324157714844, 49.96324157714844, 49.842037200927734, 49.10601806640625, 49.10601806640625, 49.10601806640625, 49.10601806640625, 48.373138427734375, 48.26505661010742, 48.164642333984375, 48.030521392822266, 48.02134704589844, 47.96788024902344, 47.96788024902344, 47.746456146240234, 47.746456146240234, 47.746456146240234, 47.746456146240234, 47.52927780151367, 47.52927780151367, 47.52927780151367, 47.52927780151367, 46.82063674926758, 46.726402282714844, 46.603553771972656, 46.4844970703125, 46.48337173461914, 46.39113998413086, 46.390098571777344, 46.11464309692383, 46.11454772949219, 45.97539520263672, 45.658714294433594, 45.658714294433594, 45.658714294433594, 45.658714294433594, 45.658714294433594, 45.658714294433594, 45.658714294433594, 45.63951110839844, 45.63951110839844, 45.63951110839844, 45.491424560546875, 45.20539855957031, 45.074214935302734, 44.612117767333984, 44.501373291015625, 43.71446228027344, 43.422725677490234, 43.422725677490234, 43.354129791259766, 43.28197479248047, 43.28197479248047, 43.28197479248047, 43.28197479248047, 43.28197479248047 ], "content": [ "SPRING-XD-ROOT xd config", "For Spring XD 1.3.1 using Rabbit MQ transport distributed .", "I am newbie to Spring XD .", "Can I achieve that in Spring XD", "xd version spring-xd-1.2.1.RELEASE .", "We came across Spring batch XD cloud data flow .", "I m working with Spring XD for batch jobs and streams .", "Here is an example https : github.com spring-projects spring-xd-samples tree master analytics-dashboard .", "Create this file and put it under xd config as .. . .. . xd config META-INF spring-xd plugins jmx mbean-exporters.xml .. .", "I am migrating from Spring XD to Spring Cloud Data Flow .", "3 Spring-xd and Kafka .", "i checked in xd logs folder in spring-xd but the folder is empty .", "I also refer - https : github.com spring-projects spring-xd pull 621 .. . .. . But clue less ... . with latest Spring-xd build", "Spring XD Doc http : docs.spring.io spring-xd docs current-SNAPSHOT reference html introduction 16 .. . .. . Need examples", "Internally XD uses the message bus to bind to a pub-sub resource https : github.com spring-projects spring-xd blob master spring-xd-dirt src main java org springframework xd dirt plugins AbstractMessageBusBinderPlugin.java L304 transport dependent .", "I am using spring-xd-1.0.0.M6 .", "Minimal Working Example .. . .. . In Spring-XD .. . .. . than .. . .. . results in", "https : github.com spring-projects spring-xd blob master spring-xd-rxjava src test java org springframework xd rxjava PongMessageProcessor.java .. . .. . I just started working with spring-xd so please pardon my ignorance if this has already been discussed .", "In Spring XD 1.1 the message bus implementations are not statically included in the classpath and the jars must be installed in XD INSTALL DIR xd lib messagebus .", "To work around that put the following file named rabbit-bus.xml under xd config META-INF spring-xd bus .", "Has anyone been able to successfully use Spring Data JPA within a Spring XD 1.3.1 module", "I m currently running into issues as soon as I add the Spring Data JPA jars to the Spring XD lib folder :", "Is Spring XD Documentation Module section a sustitution for my problem Spring Cloud DataFlow modules work the same way that Spring XD so I can use Spring XD documentation instead", "I am not sure if it s explicitly mentioned in the XD docs but the XD shell is based on the Spring Shell https : github.com spring-projects spring-shell readme and it s mentioned there .", "This is dependent on your own Spring XD configuration .", "Try starting the Spring XD single node too .", "Sorry I m not familar enough with Spring XD to help .", "I am using javassist in a Spring XD module .", "The question is does spring-xd analytics-ml-pmml is just integrates JPMML library to spring-xd or it also utilize redis counters gauges to speed up the evaluation .", "If not directly can I create Spring boot integration batch application and deploy the same on Sprig XD", "Looking for clarification on how Spring XD taps work for metrics .", "https : mvnrepository.com artifact org.springframework.xd spring-xd-rest-client", "Does Spring XD support automatic deployment of new modules", "Spring XD currently doesn t expose the channel cache size as a property .", "The Spring XD homepage http : projects.spring.io spring-xd has an announcement at the bottom of the page : .. . .. . Announcement .. . .. . Building upon Spring Boot http : projects.spring.io spring-boot and Spring Cloud http : projects.spring.io spring-cloud capabilities Spring XD is actively being redesigned as Spring Cloud Data Flow http : cloud.spring.io spring-cloud-dataflow - a cloud native programming and operating model for composable message-driven microservices .", "And I have set the below values in jdbc.properties and jdbchdfs.properties .. . .. . Also I have placed ojdbc6-11.1.0.7.0.jar under C : spring-xd xd lib and C : spring-xd shell lib .", "As it says there you need to put it under the xd config directory : .. . .. . xd config META-INF spring-xd bus rabbit-bus.xml .", "Since Spring Cloud Data Flow draws off Spring XD heavily would using Spring XD documentation till we get this complete help in any way", "Since Spring Cloud Data Flow draws off Spring XD heavily would using Spring XD documentation till we get this complete help in any way", "For example using Rabbit MQ transport a Fanout exchange is created https : github.com spring-projects spring-xd blob master spring-xd-messagebus-rabbit src main java org springframework xd dirt integration rabbit RabbitMessageBus.java L710 for each potential tap point in a stream .", "Go to spring-xd-1.0.0.M6 xd modules source and make a copy of mail folder and name this copy gmail .. . 2 .", "https : github.com spring-projects spring-xd-modules tree master analytics-ml-pmml .. . .. . I am trying to understand the internals .", "I need to port it to spring XD but with remote partitioning .", "You need to integrate sqoop jobs with Spring XD .", "I followed the sample found on the spring-xd website and the common way to do it is to have the spring-xd-module-parent as parent-pom .", "I have configured Redis as MessageBus for my spring-xd setup .", "I have a spring-xd module which is packaged as jar file .", "I am trying to run a Spark processor on Spring XD for streaming operation .", "The spark processor module on Spring XD works when spark is pointing to local .", "I am trying to configure spring XD in distributed mode and I unfortunately I was unable to do so .", "Team Currently I am working on spring-xd and using as a runtime container for data analytics and yarn jobs .", "I am currently working on a spring-xd runtime container I use : .. . .. . Spark 1.6.1+ Hadoop 2.7.2 + Spring-xd 1.3.1 .. . .. . My questions : .. . .. . Are these versions compatible to spring-xd container 1.3.1", "Is spring XD using the same libraries as Spring Integration does", "I will follow the instructions here I guess to deploy it github.com spring-projects spring-xd-samples tree master https : github.com spring-projects spring-xd-samples tree master redis-store-sink", "I heared rumors that Spring XD lost development drive and focus at Spring shifts towards cloud services .", "That said XD and its message bus implementations uses the Spring Integration project http : projects.spring.io spring-integration extensively .", "I using activemq 5.9 with spring-xd 1.1 .", "You are looking for the more modern form of Spring XD .", "First of all it isn t Spring XD any more .", "I m implementing a custom Spring XD module processor .", "I am trying to deploy two spring-XD streams .", "I believe this is thrown from the spring-xd framework and not sure how to overcome this .", "I am running spring XD in my local VM machine.. .", "What are the other available framework like spring XD Flume for that", "Go to spring-xd-1.0.0.M6 xd modules source gmail config and rename both mail.properties and mail.xml to gmail.properties and gmail.xml respectively .. . 3 .", "No you can t use logic like that you need to put that exact file from the answer in the exact spot I describe above - xd root xd config META-INF spring-xd bus rabbit-bus.xml .", "I would talk to the guy who is administrating your Spring XD containers or check the Spring XD manual http : docs.spring.io spring-xd docs current reference html for default logging locations if you re the one administrating the containers .", "In fact Spring XD uses Spring Data GemFire and is most likely using the JSON Region Auto Proxy http : docs.spring.io spring-data-gemfire docs current reference html bootstrap : region : json support .", "We have small cluster.In which spring-xd distributed runtime architecture is component for ETL .", "I ve done this using pure spring-integration but I didn t want to bother writing customer transformer and splitter for Spring XD .", "In distributed mode would this mean I try xd-container --cmdfile foo.xd", "I need to load data from oracle and sql-server into Pivotal HAWQ using Spring XD .", "On creation the subscription needs to be created and to handle errors the subscriber needs to add an onError handler : .. . .. . Look at more examples here : https : github.com spring-projects spring-xd tree master spring-xd-rxjava src", "In SpringXD site link http : projects.spring.io spring-xd .. . .. . Features .. . .. . Data from anywhere to anywhere .. . .. . Data-driven apps require refined and consolidated data at scale .", "HortonWorks version is 2.4 SpringXd version - 1.3.1 .. . .. . I am trying to run a sqoop job for import from Spring XD .", "Actually it was the jar issue.In code i was using rest-client jar 1.0.4 and my spring-xd version was 1.3.1 .", "Moreover latest rest-client jar 1.3.1 is not available in maven but the same is available in deployment folder of spring-xd .", "I have Spring XD job already deployed which expects 2 jobParameter s absoluteFilePath and fileName .", "This repo was written for a talk we presented at SpringOne2GX 2014 in September and has not been updated to work with Spring XD 1.1 .", "I am pretty new to spring-xd and need some advice for creating a custom sink .", "Is there a way to launch a set of steams and taps that have been defined when a new instance of spring-xd is launched", "I m new to Spring XD so excuse my ignorance .", "I installed the redis and zk that came with the spring-xd download .", "Thank you .. . .. . EDIT : I m using Spring XD 1.2.1.RELEASE", "Considering any message bus can be deployed with spring-xd is there any API provided by spring-xd that can write to the message bus deployed say Kafka rabbitmq based on the configurations in xd config servers.yml or any other such place .", "The way tap works in Spring XD is that you connect to a pub sub on the message-bus topic for kafka and exchange for rabbit to receive the tapped data .", "I m trying to follow this tutorial https : github.com spring-projects spring-xd-samples tree master analytics-dashboard .. . .. . I did the configuration on modules.yml .. . .. . with my own keys and then when i run .. . .. . this error appear", "I m trying to follow this tutorial https : github.com spring-projects spring-xd-samples tree master analytics-dashboard .. . .. . and I m facing a problem in twitter connection .", "I have a custom Spring XD source module that uses Spring Social for Twitter and outputs Tweet objects .", "I put together a very basic sink implementation that uses netty for the websocket part : spring-xd-netty-websocket-sink https : github.com olmoser spring-xd-netty-websocket-sink The code is largely based on the netty websocket examples and definitely needs improvement .", "Is there any specific bill of materials been recommended for spring-xd to use with spark", "I just verified this works with Spring XD 1.1.0.RELEASE and my creds .", "Within Spring XD I am executing the xd-admin script and the table prefix defined in the server.yml file is not being picked up .", "Now we would like to fetch them using spring-xd and save the messages on hdfs .", "I tried to looked into spring-xd code to see if there were any examples like this .", "Is it possible to run spark processor on spark standalone or yarn inside spring XD or is spark local the only option here", "In Spring-XD the file source detects new files in an input directory and streams their content through the pipeline .", "In order to evaluate some scores spring-xd has to evaluate some counters or gauges ." ] }
{ "confidence": [ 79.01913452148438, 74.48259735107422, 70.83939361572266, 69.84797668457031, 67.2433090209961, 66.03742218017578, 65.48995208740234, 64.48623657226562, 64.20623779296875, 63.66773986816406, 62.49781799316406, 62.46888732910156, 62.415714263916016, 62.14412307739258, 62.11713409423828, 61.941627502441406, 61.73921203613281, 61.647705078125, 60.941219329833984 ], "content": [ "Question : For Spring XD 1.3.1 using Rabbit MQ transport distributed . Looking for clarification on how Spring XD taps work for metrics . I need to know if one stream can be tapped multiple times so that each message through the primary stream will be sent to each of the active defined taps . The scenario is a stream with a rabbit source that has processing before delivering to a sink such as mongo . This stream is tapped to an alternate sink . We also want to create multiple metrics on this stream including an aggregate counter and a couple of field value counters that will keep metrics on total messages and message by type looking a different fields in the source message which os on JSON . The documentation is unclear on if each tap gets a copy of the message . In testing the first tap is getting all messages but none of the field value or aggregate counters seem to be getting data . .. . Answer : Yes A stream can have multiple taps . Here is an example https : github.com spring-projects spring-xd-samples tree master analytics-dashboard . Internally XD uses the message bus to bind to a pub-sub resource https : github.com spring-projects spring-xd blob master spring-xd-dirt src main java org springframework xd dirt plugins AbstractMessageBusBinderPlugin.java L304 transport dependent . For example using Rabbit MQ transport a Fanout exchange is created https : github.com spring-projects spring-xd blob master spring-xd-messagebus-rabbit src main java org springframework xd dirt integration rabbit RabbitMessageBus.java L710 for each potential tap point in a stream . Binding a queue to that exchange is performed lazily i.e . when the tap stream is created . You should see the corresponding exchanges and queue bindings for each tap in the Rabbit admin console . I m not sure why you are not seeing messages in all taps . Keep in mind that taps should always be deployed after the target stream is created but before the target stream is deployed any data in the stream before the tap is deployed will not be consumed by the tap .", "Question : I am newbie to Spring XD . I have a requirement to parse a file in a specific directory and push the output in oracle table . Can I achieve that in Spring XD If not directly can I create Spring boot integration batch application and deploy the same on Sprig XD Thanks .. . Pratik .. . Answer : Thanks for the inputs folks Well I have learned Spring Batch framework and I am building the tasklets to manage my workflow to support my usecase . Further I am The resultant Jar of Spring Batch app to SpringXD as a Custom Module and scheduled it for a daily run . I learnt from the research on this usecase that SpringXD is superset of and includes Spring Batch Integration and Boot frameworks respectively so I kept the involvement of SpringXD as limited to Scheduling a batch job by adding custom module . Thanks a lot for your support . Cheers Happy Architecting .. . Pratik Comment : Yes you are right it does includes Batch Integration and Boot . But from what I viewed it is more a platform than a superset . you can deploy your modules on it you can use its modules to realize your design and what s more it is distributed-system .", "Question : In SpringXD site link http : projects.spring.io spring-xd .. . .. . Features .. . .. . Data from anywhere to anywhere .. . .. . Data-driven apps require refined and consolidated data at scale . Spring XD s stream and batch workflow lets you build pipelines to consume data from various endpoints and consolidate them in Hadoop in-memory data grids such as Redis or GemFire and virtually any data store . Comment : What do you mean by in-memory processing in Hadoop You want a HDFS to run in memory .. . Answer : SpringXD is the data ingestion layer . If you want to do you want to use SpringXD to sink your data into Gemfire Redis or JBDC and do your in memory processing there SpringXD gives you tools out of the box to do so . For example you could use SpringXD to mine the TwitterStream take all those tweets and sink them into Gemfire where you would then do processing . SpringXD is meant to be the ingestion layer as opposed to the computation layer .", "Question : null .. . Answer : I am working on analytics-ml-pmml module to evaluate predictive scores on realtime . https : github.com spring-projects spring-xd-modules tree master analytics-ml-pmml .. . .. . I am trying to understand the internals . In order to evaluate some scores spring-xd has to evaluate some counters or gauges . From definition perspective PMML specification defines how to evaluate features from attributes . And JPMML library is capable of running pmml definitions to evalulate models . The question is does spring-xd analytics-ml-pmml is just integrates JPMML library to spring-xd or it also utilize redis counters gauges to speed up the evaluation .", "Question : We have small cluster.In which spring-xd distributed runtime architecture is component for ETL . We have scheduled batch job in it using cron.But when job fails or interrupted We are not getting notified over named channel or Email and is that possible to trigger batch jobs by sending messages to named channels Currently Running on Following Environment : .. . .. . Spring XD Distributed Runtime - 1.2.1 .. . .. . Hadoop Distribution - PHD3.0 .. . .. . Any help on it would be much appreciated . .. . Answer : You may need to write your own step that handles the notification for you . So in your batch flow you will configure some steps that only get executed when your other steps fail . Something like.. . .. . .. . You can read more in Spring Batch Configuring Steps http : docs.spring.io spring-batch reference html configureStep.html Comment : Thank you For direction gave us .", "Question : I am using spring-xd-1.0.0.M6 . I try to configure mysql DB as a sink for the Spring-xd .. . .. . I follow - http : theblasfrompas.blogspot.in 2014 01 springxd-filetail-input-ingestion-jdbc.html .. . .. . I put my jdbc.properties file - in the .. . .. . 1 spring-xd-1.0.0.M6 xd modules sink jdbc config location .. . .. . 2 I put mysql-connector jar in the .. . .. . I create a file - input.txt and put it in the folder - some path temp input.txt .. . .. . The file contains .. . .. . jdbc file contains following informations . Now in the XD shell I execute following .. . .. . My my-sql DB table name is - file test and it has 2 columns id and name - same as mentioned in the Example Link .. . .. . But I get .. . .. . If I specify the tableName param also I get . . I also refer - https : github.com spring-projects spring-xd pull 621 .. . .. . But clue less ... . with latest Spring-xd build Comment : I d suggest using XD 1.0.0.M4 just like that blog post . These are milestone versions and things change pretty quickly from one release to the other . .. . Answer : The directory you put your .properties file is not meant to configure the module but declare which options are available . By putting it there you ve basically declared that the jdbc module has no options as you re in fact not using the correct syntax . Instead you need to put the .properties file you mention elsewhere . Note that the exact location being picked up has changed between releases . I suggest using the latest release M7 at the time of writing . Then the correct location is .. . .. . and not .. . .. . Note that the XD release currently does provide such a file out of the box whose contents looks like : .. . .. . This is to have the jdbc module use the values defined in server.yml by default", "Question : I heared rumors that Spring XD lost development drive and focus at Spring shifts towards cloud services . Since I m considering XD the otehr one I consider is Apache Beam though not yet mature enough imho I d like to get some facts release plan for the future of XD instead of relying on rumors . Comment : Explain your downvotes please . Otherwise it looks like somebody doesn t like this question to be asked . .. . Answer : The Spring XD homepage http : projects.spring.io spring-xd has an announcement at the bottom of the page : .. . .. . Announcement .. . .. . Building upon Spring Boot http : projects.spring.io spring-boot and Spring Cloud http : projects.spring.io spring-cloud capabilities Spring XD is actively being redesigned as Spring Cloud Data Flow http : cloud.spring.io spring-cloud-dataflow - a cloud native programming and operating model for composable message-driven microservices . For more information and the reasons behind this redesign please refer to Spring Cloud Data Flow s launch blog https : blog.pivotal.io pivotal-cloud-foundry products introducing-spring-cloud-data-flow . .. . Spring XD s 1.3 GA will be the last release in the 1.x line and with this release 1.x will be officially in maintenance mode addressing only bug fixes .", "Question : Is there a way to launch a set of steams and taps that have been defined when a new instance of spring-xd is launched The scenario is this : We ve done some prototyping on our dev systems but now when we d like to build and release this to a test team . We d like to automate most of the background work and the user needs to just worry about the output from the streams and not have to worry about the streams or their definitions or their deployment . To facilitate this is there any runtime configurations we can use UPDATE : Our current approach involves writing a shell script to make some rest calls to the Spring API to create and deploy the required streams . .. . Answer : The shell maintains a log of user commands : .. . .. . You can edit it after creating your stream s or create a file with shell commands and then use the script command : .. . .. . or .. . .. . the .xd suffix is not required the file name can be anything . EDIT comment below .. . .. . .. . This does come with the caveat that bin xd-shell foo.xd will run all commands regardless of success or failure and xd-shell --cmdfile foo.xd will terminate execution with an exit code immediately should a command fail . Comment : Thanks again Gary . Was this detail in the documentation by any chance I looked around but didn t see anything . Comment : I am not sure if it s explicitly mentioned in the XD docs but the XD shell is based on the Spring Shell https : github.com spring-projects spring-shell readme and it s mentioned there . Also you can type help to get a list of all commands . Comment : you can also use xd-shell --cmdfile foo.xd Comment : In distributed mode would this mean I try xd-container --cmdfile foo.xd Comment : This does come with the caveat that bin xd-shell foo.xd will run all commands regardless of success or failure and xd-shell --cmdfile foo.xd will terminate execution with an exit code immediately should a command fail .", "Question : I am newbie to Spring XD . I have a requirement to parse a file in a specific directory and push the output in oracle table . Can I achieve that in Spring XD If not directly can I create Spring boot integration batch application and deploy the same on Sprig XD Thanks .. . Pratik .. . Answer : If I understood correctly you want to deploy an ETL process on SpringXD . Yes this is possible in fact I once worked on that . Spring Integration is ok with springXD and the things you should do is to adjust some parts of the context . You can use task module in springXD to do ETL Comment : Thanks Abner for your response . Well I have a slightly different use-case .", "Question : null .. . Answer : Can someone help me on how to run a spring-batch job on multiple containers in SpringXD environment . I have a Spring Batch Job which pulls data from Salesforce Objects Tables I want to distribute the load horizontally to XD containers so that each container can pull data from Objects in parallel to other containers . Any pointers or examples are greatly appreciated . Comment : stackoverflow.com help how-to-ask http : stackoverflow.com help how-to-ask", "Question : Within Spring XD I am executing the xd-admin script and the table prefix defined in the server.yml file is not being picked up . Have specified oracle database . All batch job repository tables continue to be created with the default prefix BATCH . I have updated the servers.yml to be as follows : .. . .. . Is there another location where I need to specify that the default gets overwritten .. . Answer : AFAIK if you want to use a different prefix in Spring Batch you would have to create the batch repository tables manually . If you look at the scripts that are used for creating the tables they have the BATCH prefix -- https : github.com spring-projects spring-batch blob master spring-batch-core src main resources org springframework batch core schema-oracle10g.sql .. . .. . So after creating the tables with the prefix you want modify the XD config to use the prefix and also turn off spring.batch.initializer.enabled .", "Question : Any update on when the Spring Cloud Data Flow documentation will be ready for prime time . It is really hard to plan for any significant deployment in the future without complete developer documentation . Since Spring Cloud Data Flow draws off Spring XD heavily would using Spring XD documentation till we get this complete help in any way Thanks .. . Answer : Thanks for the interest in the project . It is really hard to plan for any significant deployment in the future without complete developer documentation .. . .. . We have recently assembled all the important documentation fragments and are now available at Spring Cloud Data Flow s individual server implementations eg : Spring Cloud Data Flow s Cloud Foundry Server Reference Guide http : docs.spring.io spring-cloud-dataflow-server-cloudfoundry docs current-SNAPSHOT reference htmlsingle index . For convenience we have also added pointers to all various implementations and the corresponding reference guides to the project page http : cloud.spring.io spring-cloud-dataflow spring-cloud-data-flow-server-implementations . We have plans to add project pages for individual server implementations too . Since Spring Cloud Data Flow draws off Spring XD heavily would using Spring XD documentation till we get this complete help in any way Though the underlying goals vision is largely same fundamentally Spring Cloud Data Flow is an entire rewrite and the orchestration of streams and tasks batch pipelines requires a runtime platform like Cloud Foundry . More details in this blog here https : blog.pivotal.io pivotal-cloud-foundry products introducing-spring-cloud-data-flow .", "Question : We are exploring various programming library options on Java side of the world for faster batch-processing as well as be able to be deployed on cloud . We came across Spring batch XD cloud data flow . From the quick review of documentation on http : cloud.spring.io spring-cloud-dataflow we could not assess whether Spring cloud data flow also has all the batch-processing features that spring-batch would offer . For example here is what SPring batch documentation http : projects.spring.io spring-batch says : Spring Batch provides reusable functions that are essential in processing large volumes of records including logging tracing transaction management job processing statistics job restart skip and resource management . If someone has any idea about the batch-processing capabilities in spring-cloud data flow could you please post here . Many thanks .. . Answer : Please review Spring Cloud Task http : cloud.spring.io spring-cloud-task project . This project offers the framework and programming model to develop short-lived microservice applications . At a high-level a Task may be any process that does not run indefinitely including Spring Batch jobs . This gives you the flexibility to develop Spring Batch jobs using all its core capabilities and you can run them as standalone Spring Boot applications . There are some samples here https : github.com spring-cloud spring-cloud-task tree master spring-cloud-task-samples . Spring Cloud Data Flow builds upon Spring Cloud Task to provide orchestration capability for batch data pipelines . A wide range of options including Shell DSL Admin UI and Flo UI https : network.pivotal.io products p-flo-for-spring-cloud-data-flow are available to orchestrate batch workloads . You can use these utility Task applications https : github.com spring-cloud spring-cloud-task tree master spring-cloud-task-samples in Spring Cloud Data Flow and this list is growing . Comment : Thank you Sabby that helps", "Question : Getting this error when running below code in eclispe .. . .. . i am using spring-xd version 1.3.1 and below is the stacktrace of the error : .. . Answer : Actually it was the jar issue.In code i was using rest-client jar 1.0.4 and my spring-xd version was 1.3.1 . Moreover latest rest-client jar 1.3.1 is not available in maven but the same is available in deployment folder of spring-xd . https : mvnrepository.com artifact org.springframework.xd spring-xd-rest-client", "Question : Team Currently I am working on spring-xd and using as a runtime container for data analytics and yarn jobs . My questions are .. . .. . .. . 1 Can I leverage the same environment setup which I used for spring-xd 2 From the documentation I read that it can be deployed as micro services is it using embedded drivers for stream processing If it is using embedded drivers can I use it to deploy in a clustered environment with the same infrastructure leveraged for spring-xd 3 Is there any specific wrappers built for Apache Spark My Environment : Spark 1.6.1 Hadoop 2.7.2 zookeeper 3.6.8 redis 3.2 spring-xd-1.3.1 .. . .. . .. . Any help on this specific queries would be highly appreciated . .. . Answer : Can I leverage the same environment setup which I used for spring-xd Spring Cloud Data Flow SCDF relies on spring-cloud-deployer https : github.com spring-cloud utf8 E2 9C 93 query deployer SPI and there are implementations for Cloud Foundry Apache YARN Apache Mesos and Kubernetes . Given that you re already having an Hadoop cluster with YARN in use you could provision the YARN implementation https : github.com spring-cloud spring-cloud-dataflow-server-yarn of the SCDF-server . is it using embedded drivers for stream processing Not clear what you mean by this . If you re referring to jdbc-drivers specifically when using jdbc as a sink application we do embed OSS-friendly drivers yes . If it is using embedded drivers can I use it to deploy in a clustered environment with the same infrastructure leveraged for spring-xd Perhaps answer to 1 covers this . You could leverage the same infrastructure and provision YARN SCDF-server using the Ambari plugin https : github.com spring-cloud spring-cloud-dataflow-server-yarn blob master spring-cloud-dataflow-server-yarn-docs src main asciidoc getting-started.adoc deploying-on-ambari . Is there any specific wrappers built for Apache Spark We have Spark as a client https : github.com spring-cloud spring-cloud-task-app-starters tree master spring-cloud-starter-task-spark-client and cluster https : github.com spring-cloud spring-cloud-task-app-starters tree master spring-cloud-starter-task-spark-cluster applications . You can register https : github.com spring-cloud spring-cloud-task blob master spring-cloud-task-docs src main asciidoc stream.adoc spring-cloud-data-flow them in SCDF to build task batch pipelines . Comment : Thanks for your convincing answer I meant embedded drivers as spark-driver which is mavenized along with spring-boot which can be deployed in a runtime container . Kindly confirm if this option is feasible and would be great if you could send me some references . Comment : I ve created some instructions for running a small Spark test app on YARN . See - gist.github.com trisberg https : gist.github.com trisberg 79d50dc46c11c0fb7020c8ccc72d1234 running-a-spark-application-on-yarn-using-spring-cloud-data-flow . We ll work on improving the docs before the GA release . Comment : @Thomas Gone through your samples really helpful . Also can you you please post some more examples in Java as well", "Question : I am encountering the following issue on the 1.3.0 release : .. . .. . xd : stream create test1 --definition http router --script file : tmp file1.groovy --deploy .. . .. . this deployes fine . xd : stream create test2 --definition http --port 9999 router --script file : tmp file2.groovy --deploy .. . .. . Here is the log trace for the second stream : .. . .. . 2015-11-20T16 : 57 : 45-0800 1.3.0.RELEASE ERROR DeploymentsPathChildrenCache-0 container.DeploymentListener - Exception deploying module org.springframework.jmx.export.UnableToRegisterMBeanException : Unable to register MBean org.springframework.integration.config.RouterFactoryBean 0 with key org.springframework.integration.config.RouterFactoryBean 0 nested exception is javax.management.InstanceAlreadyExistsException : org.springframework.integration.router : name org.springframework.integration.config.RouterFactoryBean 0 type MethodInvokingRouter at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance MBeanExporter.java : 625 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.jmx.export.MBeanExporter.registerBeans MBeanExporter.java : 550 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated MBeanExporter.java : 432 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons DefaultListableBeanFactory.java : 792 spring-beans-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization AbstractApplicationContext.java : 835 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.context.support.AbstractApplicationContext.refresh AbstractApplicationContext.java : 537 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.boot.SpringApplication.refresh SpringApplication.java : 686 spring-boot-1.2.3.RELEASE.jar : 1.2.3.RELEASE at org.springframework.boot.SpringApplication.run SpringApplication.java : 320 spring-boot-1.2.3.RELEASE.jar : 1.2.3.RELEASE at org.springframework.boot.builder.SpringApplicationBuilder.run SpringApplicationBuilder.java : 139 spring-boot-1.2.3.RELEASE.jar : 1.2.3.RELEASE at org.springframework.xd.module.core.SimpleModule.initialize SimpleModule.java : 213 spring-xd-module-1.3.0.RELEASE.jar : 1.3.0.RELEASE at org.springframework.xd.dirt.module.ModuleDeployer.doDeploy ModuleDeployer.java : 217 spring-xd-dirt-1.3.0.RELEASE.jar : 1.3.0.RELEASE at org.springframework.xd.dirt.module.ModuleDeployer.deploy ModuleDeployer.java : 200 spring-xd-dirt-1.3.0.RELEASE.jar : 1.3.0.RELEASE at org.springframework.xd.dirt.server.container.DeploymentListener.deployModule DeploymentListener.java : 365 spring-xd-dirt-1.3.0.RELEASE.jar : 1.3.0.RELEASE at org.springframework.xd.dirt.server.container.DeploymentListener.deployStreamModule DeploymentListener.java : 334 spring-xd-dirt-1.3.0.RELEASE.jar : 1.3.0.RELEASE at org.springframework.xd.dirt.server.container.DeploymentListener.onChildAdded DeploymentListener.java : 181 spring-xd-dirt-1.3.0.RELEASE.jar : 1.3.0.RELEASE at org.springframework.xd.dirt.server.container.DeploymentListener.childEvent DeploymentListener.java : 149 spring-xd-dirt-1.3.0.RELEASE.jar : 1.3.0.RELEASE at org.apache.curator.framework.recipes.cache.PathChildrenCache 5.apply PathChildrenCache.java : 509 curator-recipes-2.6.0.jar : na at org.apache.curator.framework.recipes.cache.PathChildrenCache 5.apply PathChildrenCache.java : 503 curator-recipes-2.6.0.jar : na at org.apache.curator.framework.listen.ListenerContainer 1.run ListenerContainer.java : 92 curator-framework-2.6.0.jar : na at com.google.common.util.concurrent.MoreExecutors SameThreadExecutorService.execute MoreExecutors.java : 297 guava-16.0.1.jar : na at org.apache.curator.framework.listen.ListenerContainer.forEach ListenerContainer.java : 83 curator-framework-2.6.0.jar : na at org.apache.curator.framework.recipes.cache.PathChildrenCache.callListeners PathChildrenCache.java : 500 curator-recipes-2.6.0.jar : na at org.apache.curator.framework.recipes.cache.EventOperation.invoke EventOperation.java : 35 curator-recipes-2.6.0.jar : na at org.apache.curator.framework.recipes.cache.PathChildrenCache 10.run PathChildrenCache.java : 762 curator-recipes-2.6.0.jar : na at java.util.concurrent.Executors RunnableAdapter.call Executors.java : 511 na : 1.8.0 45 at java.util.concurrent.FutureTask.run FutureTask.java : 266 na : 1.8.0 45 at java.util.concurrent.Executors RunnableAdapter.call Executors.java : 511 na : 1.8.0 45 at java.util.concurrent.FutureTask.run FutureTask.java : 266 na : 1.8.0 45 at java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java : 1142 na : 1.8.0 45 at java.util.concurrent.ThreadPoolExecutor Worker.run ThreadPoolExecutor.java : 617 na : 1.8.0 45 at java.lang.Thread.run Thread.java : 745 na : 1.8.0 45 Caused by : javax.management.InstanceAlreadyExistsException : org.springframework.integration.router : name org.springframework.integration.config.RouterFactoryBean 0 type MethodInvokingRouter at com.sun.jmx.mbeanserver.Repository.addMBean Repository.java : 437 na : 1.8.0 45 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository DefaultMBeanServerInterceptor.java : 1898 na : 1.8.0 45 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean DefaultMBeanServerInterceptor.java : 966 na : 1.8.0 45 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject DefaultMBeanServerInterceptor.java : 900 na : 1.8.0 45 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean DefaultMBeanServerInterceptor.java : 324 na : 1.8.0 45 at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean JmxMBeanServer.java : 522 na : 1.8.0 45 at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister MBeanRegistrationSupport.java : 195 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.jmx.export.MBeanExporter.registerBeanInstance MBeanExporter.java : 678 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance MBeanExporter.java : 615 spring-context-4.2.2.RELEASE.jar : 4.2.2.RELEASE .. . 30 common frames omitted 2015-11-20T16 : 57 : 45-0800 1.3.0.RELEASE INFO DeploymentsPathChildrenCache-0 container.DeploymentListener - Path cache event : path deployments modules allocated e38af683-03a1-4f46-abd9-abccb8aae1f3 test2.sink.router.1 type CHILD REMOVED 2015-11-20T16 : 57 : 45-0800 1.3.0.RELEASE INFO DeploymentsPathChildrenCache-0 container.DeploymentListener - Undeploying module ModuleDescriptor@56110771 moduleName router moduleLabel router group test2 sourceChannelName null sinkChannelName null index 1 type sink parameters map script - file : tmp dirt att-example groovy transfer.router.cps.groovy children list empty Comment : I did attempt to add a label to the router module but to no available . .. . Answer : It s a bug - strike please open a JIRA issue https : jira.spring.io browse XD . strike JIRA Issue here https : jira.spring.io browse XD-3709 . strike I haven t come up with a work-around so far aside from disabling JMX . strike .. . .. . For some reason the main spring MBean exporter is trying to export the router normally the IntegrationMBeanExporter disables that when present . EDIT .. . .. . Here s a work-around.. . Create this file and put it under xd config as .. . .. . xd config META-INF spring-xd plugins jmx mbean-exporters.xml .. . This replaces the standard file and makes the stream name part of the MBean domain so the MBean names are unique . The only difference to the standard file is the addition of the default-domain to the context mbean exporter . We still need to address the underlying issue as to why the normal exporter does not have that bean suppressed but this should get you going . Comment : I added a workaround . Comment : Gary - you are a life saver Thank you We are about to go into our app s testing check out phase next week and I really wanted to make this transition to 1.3.0 before that window closes . I was just about to sit down to write another sink to do this simple routing - you saved me hours i don t have to spare at the moment - thanks", "Question : null .. . Answer : I m working with Spring XD for batch jobs and streams . I have a deployed job in Spring XD with a definition which awaits arguments to be able to run . a I m tried to create a custom UI where end-users can send parameters to the given jobs without them accessing the admin-ui . I m having trouble with the POST method jobs execution jobname jobName . It requires a --target localhost : 9393 .. . and --data which I ve tried to input as key : value .. . or even URL encoded . b The batch job doesn t accept arguments from the definition when retrieved with jobParameters .", "Question : Considering any message bus can be deployed with spring-xd is there any API provided by spring-xd that can write to the message bus deployed say Kafka rabbitmq based on the configurations in xd config servers.yml or any other such place . I am writing a processor itemprocessor which does some processing of the data and the writer will write the data to a rabbitmq queue for now . Since in the current deployment scenario rabbitmq may or may not be deployed the processor should be able to write to the default Redis message bus.I know I can write to rabbitmq using apis provided by spring-rabbit but that will tie my processor to RabbitMQ . I am looking for a way to generalize it . I tried to looked into spring-xd code to see if there were any examples like this . I found a MessageProcessor example but this one is a stream processor not sure how I can apply it or if I am on the right track . https : github.com spring-projects spring-xd blob master spring-xd-rxjava src test java org springframework xd rxjava PongMessageProcessor.java .. . .. . I just started working with spring-xd so please pardon my ignorance if this has already been discussed . Any pointers are greatly appreciated . Update .. . .. . Thanks Gary based on your answer I tried out the spring-integration jms samples . I have a spring-batch job which has .. . .. . I want the output of the writer to be written to any underlying message bus RabiitMQ to start with . So I added the following based on what I saw in the examples : .. . .. . When I execute this I see the following output which leads me to believe that something is getting written to the embedded ActiveMQ broker . However when I try to change ActiveMQ with RabbitMQ by changing the connectionfactory like this : .. . .. . I get an error saying : .. . .. . which I understand based on what is mentioned in the schema file at http : www.springframework.org schema integration jms spring-integration-jms.xsd as the required type is javax.jms.ConnectionFactory for the element connection-factory . I looked around did not find a way to create the conenctionFactory for RabbitMQ the same way as we create the ConnectionFactory for ActiveMQ . I looked around and am not sure how to fix this . Maybe I am missing something very basic . I am not even sure if this is the right approach . Can you please let me know what I am missing and if this is the right approach I apologize in advance if this has been discussed already . Thank you again for your time . .. . .. . Thank you so much for your time . regards .. . .. . Alice .. . Answer : The MessageBus SPI is very specific for XD intra-module commmunication it s not designed for arbitrary application-level messaging . That said XD and its message bus implementations uses the Spring Integration project http : projects.spring.io spring-integration extensively . That project provides the abstraction you need . You can send to a message-channel either using a MessagingGateway or a MessagingTemplate and downstream of that channel you can wire in any kind of channel adapter rabbit amqp redis etc . So your item processor is decoupled from the actual technology that receives the message . Take a look at the Spring Integration reference manual there s a link on the project page . Comment : Thanks Gary I tried this one out . Needless to say ran into a lot of newbie issues . I updated my question with my findings . Thanks again for your time . Comment : RabbitMQ is not a JMS provider it s a completely different protocol . Pivotal does have a commercial JMS client for rabbitmq but if you want to talk native rabbitmq amqp then you need to change the int-jms : outbound-gateway to an int-amqp : outbound-gateway . See the spring-integration documentation http : docs.spring.io spring-integration reference html . Comment : Thanks Gary that helped . I added the following rabbitmq configuration and added the named exchange to the outbound gateway . This should make all the messages appear in RabbitMQ . I dont see it yet probably because I am running as a test . I will try to run as the actual application . rabbit : topic-exchange name myExchange rabbit : bindings .. . rabbit : bindings rabbit : topic-exchange .. . amqp : outbound-gateway request-channel importExchangesChannel reply-channel importExchangesChannel exchange-name myExchange routing-key foo.bar amqp-template amqpTemplate Comment : You need a rabbit : admin to declare the queues etc or set them up manually in the broker . Comment : Thanks Gary for the help . I did have rabbit : admin but I was messing up a few things in the configs by calling the processors twice for 2 separate execution paths . I just split it up and it started working like a charm .", "Question : null .. . Answer : Has anyone been able to successfully use Spring Data JPA within a Spring XD 1.3.1 module I m currently running into issues as soon as I add the Spring Data JPA jars to the Spring XD lib folder : Comment : Have you initialised a JPA EntityManagerFactory This post http : stackoverflow.com questions 26736241 spring-missing-jpa-metamodel may help . Comment : Yes I had but it crashes even before starting initializing my custom module ." ] }
[ "yes-answer-long", "yes-answer-short" ]
real-time
UNK_RELATION
visual-web-developer@web@68
visual-web-developer -- visual-web-developer express is a freeware @placeholder development tool with the role of former asp.net web matrix that allows developers to evaluate the web development and editing capabilities of the other visual-studio-2005 2008 2010 editions at no charge .
{ "confidence": [ 97.78053283691406, 87.26160430908203, 86.549072265625, 82.35475158691406, 81.80531311035156, 79.43426513671875, 79.05281829833984, 78.17168426513672, 76.4023208618164, 76.39450073242188, 76.39450073242188, 74.750732421875, 74.2034912109375, 73.70882415771484, 72.7219009399414, 72.41506958007812, 71.3769302368164, 71.27340698242188, 70.95968627929688, 70.95968627929688, 70.95968627929688, 69.89352416992188, 69.67473602294922, 69.43841552734375, 68.88870239257812, 68.57498931884766, 67.51052856445312, 67.35345458984375, 67.35345458984375, 66.59431457519531, 66.37377166748047, 65.94192504882812, 65.9232406616211, 65.8893051147461, 65.077392578125, 64.99728393554688, 64.96875762939453, 64.8816909790039, 64.55487823486328, 64.34085845947266, 63.359375, 62.28307342529297, 62.28307342529297, 62.243751525878906, 61.929237365722656, 61.76614761352539, 61.30967330932617, 61.1525993347168, 60.233970642089844, 59.154422760009766, 58.76789855957031, 58.76789855957031, 58.45336151123047, 57.9759521484375, 57.9759521484375, 57.730865478515625, 57.45824432373047, 57.410648345947266, 56.85248565673828, 56.80052947998047, 56.591522216796875, 56.492523193359375, 56.209022521972656, 55.550106048583984, 55.474639892578125, 55.425331115722656, 55.425331115722656, 53.939781188964844, 53.69792556762695, 53.040626525878906, 52.64264678955078, 52.629425048828125, 52.57374572753906, 52.57374572753906, 52.557029724121094, 52.32045364379883, 52.001747131347656, 51.91978073120117, 50.92283248901367, 50.287540435791016, 50.148597717285156, 50.143760681152344, 50.143760681152344, 49.968833923339844, 49.590293884277344, 49.590293884277344, 48.50017547607422, 48.44740676879883, 48.36505126953125, 48.346946716308594, 48.02077865600586, 47.75568389892578, 47.60901641845703, 47.586456298828125, 47.45808029174805, 47.45311737060547, 46.94811248779297, 46.7518424987793, 46.487510681152344, 46.316688537597656 ], "content": [ "Visual Studio Web Developer 2010 Express .", "I m using Visual Web Developer 2010 Express .", "Visual Studio or Visual Web Developer", "This works with Visual Studio 2010 line of Express products Visual C and Visual Web Developer .", "I believe the site is asp.net and made in visual-web-developer 2010 .. . .. .", "Open your solution in Visual Web Developer Express .", "I see the same problem on Visual Studio 2012 Express and Visual Web Developer 2010 Express .", "I am running visual-web-developer 2010 express and the project that I am trying to run is from the visual-studio-2008 i guess .", "Recently installed Microsoft Visual Web Developer 2010 .", "Background-info : .. . .. . I m using Microsoft Visual Web Developer 2010 Express .", "I am using Visual Web Developer Express 2010 edition .", "I am trying to create a login function with SQL server 2008 express and Visual Web Developer 2008 Express .", "Why since it wasn t showing in visual-web-developer", "I am using Visual Web Developer 2010 Express .", "Is there any way to configure Visual Web Developer to expand the Expression like it was in Visual Studio 2008 with NAV 6.0", "Software : Visual Web Developer 2008 Express Edition .. . .. . I am reading Programming ASP.NET 3.5 and it says to create a web application with a table .. . .. .", "Also why is this tagged with Visual Web Developer and Web Services", "Visual Web Developer 2010 - Document Outline http : i.stack.imgur.com BDRec.png", "I have a website solution in Visual Web Developer .", "But can t get it back to work with Visual Web Developer .", "In Visual Web Developer they don t show the References folder .", "I want to build asp.net web application for commercial purpose.can MS visual-web-developer 2010 express can be used for commercial purpose", "debugging your project within Visual Web Developer Visual Studio etc it s likely running using the embedded web server .", "I created a small web application using Visual Web Developer 2010 Express .", "I cannot uninstall Visual Web Developer 2010 Beta 2 .", "Are all of these namespaces importable and useable in Visual Web Developer", "BUT if you use Visual Web Developer 2008 Express you can connect to a regular SQL Server Oracle ODBC etc .", "I have a project in Visual Web Developer 2010 Express which uses a aspnetdb.mdf database in the App Data folder .", "Working in Visual Web Developer Express 2010 we don t have the References folder built-in .", "Oh I might note that I have Web Developer Express Edition not the actual Visual Studio .", "I m building a site with Visual Web Developer with C and HTML .", "But how do I debug an app already running in Debug mode inside Visual Studio Visual Web Developer 2010 Express inside the browser", "I have an .net c mvc3 web service application developed wirh visual-web-developer 2010 .", "It works when I m debugging it in Visual Web Developer .", "How can I publish a website in Visual Web Development Express since Publish Website Utility is not available in this edition", "I have a .net v4 web application built-in Visual Web Developer 2010 Express which functions as I expect and currently uses a logon screen .", "Is there any way how to get full access to remote SQL via MS Visual Web Developer 2010 Express", "I have installed MS Visual Web Developer 2010 which includes iisexpress .", "I don t see any other value other than Any CPU in the drop down list in Properties - Build - Configuration - Platform in Visual C 2010 Express or in Visual Web Developer 2010 Express .", "Do I NEED to download Visual Web Developer Pro", "My suggestion if you want to get good at web development remove Design mode from Visual Studio .", "I am using Visual Web Developer 2010 Express in my PC for building an MVC 3 application .", "And setting a break-point in javascript code in Visual Web Developer 2010 Express doesn t work .", "As far as I understand Visual Web Developer http : www.microsoft.com express vwd VWD is simply a free version of the Visual Studio http : www.microsoft.com visualstudio en-us default.mspx components necessary to develop web based solutions .", "Visual Studio probably converted it from a Web Site to a Web Application .", "The whole web application works perfectly on my Visual Web Developer 2010 Express development server I can create users and log them on and off successfully .", "I am trying to publish my site from Visual Studios 2008 Web Developer SP1 .", "How I can insert button or textbox into a aspx html on Visual web Developer 2010 without changing the layout of the page", "I ve written down exactly what I ve done : .. . .. . Visual web developer new project - New web application .. . .. . Double click Site.Master in solution-explorer .", "I m using visual-web-developer to create basic gui with one table DB .", "I couldn t find a Build Action in Properties in MS Visual Web Developer 2010 - so I had to skip that step .", "I work on visual-web-developer 2010 and by mistake one of the pc s @ school converted my project to sln or something .", "It looks like the Visual Web Developer team solved the problem by adding HTML5 support themselves : http : blogs.msdn.com webdevtools archive 2009 11 18 html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx .. . .. . You all probably know that new HTML 5 standard is coming .", "In Visual Web Developer Express 2010 selecting the build is simply a matter of clicking on the drop down to the right of the green Start Debugging button .", "@Belogix - I am using Visual Web Developer 2010 Express - I have only 2 properties - File Name Full Path", "Given the situation the issue is most probably that the relevant modules for Web Development weren t installed when Visual Studio was installed .", "Any help is appreciated why building a project in Visual Web Developer would cause anything different .", "I am a novice web developer .", "Hello I m a newbie for ASP.NET .. . .. . I have a designed html page from another program I want to convert the html into a asp.net aspx web form using visual-web-developer .", "I cannot for the life of me figure out how to force Visual Web Developer 2010 Express to use my Web.Release.config when I m publishing my web application .", "Update .. . .. . The solution is for Visual Studio Express 2010 .", "As of Visual Web Developer 2008 SP1 you can now have Web Application Projects and indeed raw class-library projects in the solution - this is so you can build projects using ASP.NET MVC in it .", "So I am using Microsoft Visual Web Developer 2010 Express because it s free and was recommended to me and I am using the Find and replace tool a lot to change variable names and so on .", "My question is it won t let me debug a script if I am running the code under the debug mode in Visual Studio Visual Web Developer .", "I am using visual-studio-2008 and c as programming language and chrome as the default web browser .", "on visual-web-developer the header layout menu designed page is changed but on browser it s normally no layout were changed for position .", "What I want to do is add an already typed java script file to my aspx form in Visual web developer .", "I recently installed in order : .. . .. . Sql Server 2008 Express .. . .. . Visual Web Developer Express 2008 .. . .. . When I right-click on app data and try to add a db it returns : Connections to SQL Server files .mdf require SQL Server Express 2005 to function properly .", "I have been using Visual Web Developer for quite some time now and never had this happen except with this specific website and page .", "When I m debugging in Visual Web Developer the ViewBag is shown as being of type System.Web.Mvc.DynamicViewDataDictionary .", "I m working on a page using canvas which is a HTML5 tag in Visual Web Developer Express Edition 2008 and the validator in the HTML editor is telling me it s an invalid tag .", "Environment Entity Framework 4 Visual Web Developer Express 2010 Database first SQL Server Express .. . .. . Question .. . .. . I want to fetch a row from the database update one field and save back to the database .", "I cannot find a Visual Web Developer 2010 Beta 2 download on the Microsoft website any longer to repair the Beta 2 installation .", "I just successfully uninstalled a failed Visual Web Developer 2010 Beta 2 I looked for nearly 2 weeks for the answer and found it myself .", "A few months ago I imported the HTML5 CSS3 update into Visual Web Developer 2010 and after the update ended I could not open CSS files in the Visual Studio editor .", "I am using Visual Studio 2012 Express edition when I Right click on aspx file the option Convert To Web Application is not available there .", "I have a XML file in my Visual Web Developer project that looks like this : .. . .. . I want to delete complaint nodes that have and ID of 2 .", "After I installed the SSMS my Visual Web Developer is hanging when I Build my MVC 3 Web application .", "I then attempted to create a database in my AppData section of Visual web developer and it gave me this error : .. . .. . connections to sql-server files .mdf Require sql-server-2005 to function properly .", "Unrelated to the answer I recommend you look into using the Visual Studio 2013 Express for Web http : www.microsoft.com en-us download details.aspx id 40747 .", "I have installed : .. . .. . Visual Web Developer 2010 Express .. . ASP.Net MVC 3 http : www.microsoft.com en-us download details.aspx id 1491 .. . .. . I went to File New Project ASP.Net MVC 3 Web Application .. . .. . I chose Empty template with ASPX view engine .", "However when I try to do the same in MS Visual Web Developer 2010 Express I can set connection to this Db I can see already existing tables but I can t create or edit them .", "However I am getting this error message whenever I try and launch any application from within visual-web-developer express 2010 using a .net-4.0 target framework .", "The most important questions Can I lock header menu or component on Visual Web Developer so I can editable body section", "I m trying to publish a web app from Visual Studio but I don t have IIS installed on my desktop .", "full web editor - generally refers to using a desktop editor such as Visual Studio Brackets or Atom .", "I m currently using Visual C Express 2010 SQL Server 2008 R2 Express to develop it .", "For Visual Studio 2010 you ll want to install the Web Standards Update for Visual Studio 2010 SP1 http : blogs.msdn.com b webdevtools archive 2011 06 15 web-standards-update-for-visual-studio-2010-sp1.aspx : .. . .. . It updates the HTML5 intellisense and validation to reflect the latest W3C specifications and fixes some bugs bugs in the current SP1 support for HTML5 .", "I think the reasoning behind those db choices probably goes something like this : .. . .. . If you re using the Express Edition and you re not using Visual Web Developer you re probably building a desktop program .", "As a lone developer knocking up some pure ASP.NET-MVC application then Web Developer would do for serious work you really need studio .", "When I open a report from Dynamics NAV 2013 in Visual Web Developer 2010 every text box shows a field that looks like .. . .. . Where and are the french Guillemet characters .", "On the list of modules go to Windows and Web Development .", "This question is similar but I think not the same .. . .. . msbuild ASPNETCOMPILER ASPNETRUNTIME startIndex error http : stackoverflow.com questions 13276125 msbuild-aspnetcompiler-aspnetruntime-startindex-error .. . .. . I have a Web Application which I am trying to publish using Visual Web Developer 2010 Express .", "Whenever I go to edit the layout of the page in design mode after a few seconds after making a change an error pops up saying that visual-web-developer has encountered a problem and needs to close .", "The ASPNETDB.mdf database is practically in identical state to what you get given when loading the Microsoft MVC3 Razor template tutorial from Visual Web Developer Express 2010 .", "For Visual Studio 2008 Microsoft has provided an updated version of the HTML 5 validation schema and intellisense in the Visual Studio Gallery .", "The problem I m having is that I have created a database in SQL Server Management Studio but when I try to add a connection to it in Visual Web Developer 2008 Express I get the following error : .. . .. . You do not have permission to use this file .", "The site ofr the url http : localhost myprojectname exists on both the local IIS Web server and the IIS Express web server .", "If you try with SQL Server 2008 R2 Workgroup and up you ll get a nasty warning from Visual C 2010 Express telling you that you can t use that connection with the current version of Visual Studio .", "Visual Studio Solution Explorer .. . 2 ." ] }
{ "confidence": [ 93.4762954711914, 85.06131744384766, 84.24642181396484, 83.04396057128906, 81.04068756103516, 80.05372619628906, 79.66352844238281, 78.97795104980469, 78.10250091552734, 76.74396514892578, 73.48052978515625, 73.008056640625, 72.7419204711914, 72.52503967285156, 72.52175903320312, 72.2958755493164, 72.09806060791016, 71.61438751220703, 71.2764663696289, 70.97905731201172 ], "content": [ "Question : I am trying to write a web application using ASP.NET MVC . I prefer C as the programming language . Which IDE is better to use for this purpose Visual Studio or Visual Web Developer What are the features of the IDEs What are the benefits of using one over the other Thanks in advance . .. . Answer : As far as I understand Visual Web Developer http : www.microsoft.com express vwd VWD is simply a free version of the Visual Studio http : www.microsoft.com visualstudio en-us default.mspx components necessary to develop web based solutions . Here is a list of features missing from VWD http : blogs.msdn.com mikhailarkhipov archive 2006 06 26 647516.aspx that you get in a Professional edition of Visual Studio 2008 VS2008 . In short VWD Express 2005 .. . .. . 1 . is Not Extensibile with other add-ons or third party tools .. . .. . 2 . Only supports Web site projects 2005 . You cannot add a Class Library project or a Web Controls Library project to the solution . .. . UPDATED - VWD 2008 SP1 also allows Web Application and Class Library Projects in the solution . .. . 1 . Lacks the ability to combine Source Code Control .. . .. . 2 . has no Accessibility checker .. . .. . 3 . Lacks ability for automatic generation of resources for localization .. . .. . 4 . Cannot attach debugger to a process .. . .. . 5 . has no Native code debugging .. . .. . The obvious advantage of VWD over VS2008 is that it is free and if you can work smart with it given the missing features it may be the more pragmatic option for you . If those are features that you can t live without VS2008 may be a wise investment - you also get all of the features missing from other Express products Visual Basic 2008 Visual C 2008 etc . Take a look at MSDN s comparison chart for Visual Studio 2005 http : msdn.microsoft.com en-us vstudio aa700921.aspx . I can t find 2008 s but would suspect it to be very similar . Comment : All of point 2 is now wrong . As of Visual Web Developer 2008 SP1 you can now have Web Application Projects and indeed raw class-library projects in the solution - this is so you can build projects using ASP.NET MVC in it . Comment : I ve also previously successfully created Web Controls library projects in Visual C Express 2005 and used the resultant dll in VWD - you need to declare the libaray in the web.config of the website to get VWD to recognise it . Comment : Thanks Zhaph will update . The points are for VWD Express 2005", "Question : null .. . Answer : How can I publish a website in Visual Web Development Express since Publish Website Utility is not available in this edition Or is more advisable to convert my website into project or open my project in a Visual Studio I tried to copy aspx files and web.config into my IIS but I got error such : .. . .. . It is an error to use a section registered as allowDefinition MachineToApplication beyond application level . Comment : Can you get VS Community Edition it is free and you can publish with it.. . Comment : I tried installing visual-studio but i need a newer version of windows . Comment : What version of VS do you have Comment : Visual Studio Web Developer 2010 Express . Comment : I suppose you can just copy and paste your aspx s web.config and your dll s to your server by hand", "Question : I m working on a page using canvas which is a HTML5 tag in Visual Web Developer Express Edition 2008 and the validator in the HTML editor is telling me it s an invalid tag . That s because it s set to validate against XHTML 1.0 Transitional . I d prefer for it to not do that and tell me what s valid or invalid based on the HTML5 doctype but I can t find anywhere in the preferences that suggests this would be possible . Is there a way to tell Visual Studio to validate against HTML5 or add a new spec reference manually I d prefer not to have to go in and add tags manually which appears to be the only option at the moment . Comment : With SP1 Html5 support is there blogs.msdn.com b webdevtools archive 2011 01 27 http : blogs.msdn.com b webdevtools archive 2011 01 27 html5-amp-css3-in-visual-studio-2010-sp1.aspx .. . Answer : It looks like the Visual Web Developer team solved the problem by adding HTML5 support themselves : http : blogs.msdn.com webdevtools archive 2009 11 18 html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx .. . .. . You all probably know that new HTML 5 standard is coming . We made a new intellisense schema that you can add to VS 2008 or VWD Express 2008 and get intellisense and validation on HTML 5 elements . Comment : For VS 2010 see stackoverflow.com questions 1682180 http : stackoverflow.com questions 1682180 will-visual-studio-2010-support-html-5 2923562 2923562 Comment : Rahul also posted an update : visualstudiogallery.msdn.microsoft.com http : visualstudiogallery.msdn.microsoft.com d771cbc8-d60a-40b0-a1d8-f19fc393127d Comment : for VS2005 I had to update the paths and change the registry key from Schema 23 to Schema 21 : HKEY LOCAL MACHINE SOFTWARE Wow6432Node Microsoft VisualStudio 8.0 Packages 1B 437D20-F8FE-11D2-A6AE-00104BCC7269 Schemas Schema 21 Comment : can u please explain what is the procedure i have to follow for html5 to be worked in visual-studio-2005 Comment : this link worked great for me with Visual Studio 2008 64bit", "Question : I am trying to write a web application using ASP.NET MVC . I prefer C as the programming language . Which IDE is better to use for this purpose Visual Studio or Visual Web Developer What are the features of the IDEs What are the benefits of using one over the other Thanks in advance . .. . Answer : I think you also lack the ability to publish a site without visual-studio you can certainly run a website but it won t build the binaries for release with web developer you have to publish the source to iis . Comment : Again wrong as far as VWD 2008 SP1 is concerned - this has the ability to create Web Applications and thus a compiled binary . This was added to support ASP.NET MVC development on the platform . Comment : Again . . Regardless that is fantastic the last time I used an VWD was 05 and obviously you weren t able to compile . Good to know they added it to 08 .", "Question : I find it odd that in Visual C 2008 Express edition when you use the database explorer your options are : .. . .. . 1 . Microsoft Access .. . 2 . SQL Server Compact 3.5 and .. . 3 . SQL Server Database File . BUT if you use Visual Web Developer 2008 Express you can connect to a regular SQL Server Oracle ODBC etc . For people developing command-line or other C apps that need to talk to a SQL Server database do you really need to build your LINQ Data Access code with one IDE Visual Web Developer and your program in another Visual C It s not a hard workaround but it seems weird . If Microsoft wanted to force you to upgrade to Visual Studio to connect to SQL Server why would they include that feature in one of their free IDEs but not the other I feel like I might be missing something like how to do it all in Visual C . Comment : This is a terrific question . The whole SQL Server mess is very frustrating from even choosing which version to use to actually developing with it to deploying it . This question addresses one of the major hassles along the way . Comment : How is this closed as not constructive It has tons of upvotes and views and lots of people seem to find it helpful . SO is closing questions way too easily nowadays . .. . Answer : Workaround : .. . .. . 1 . Open your solution in Visual Web Developer Express . It will not load some of the projects in the solution but it is ok . .. . 2 . Make a new connection in Database Explorer to the required database from SQL Server . 3 . Add a new class-library project . 4 . Add a LINQ to SQL Classes item and link it to your database . 5 . Close the solution . 6 . Open the solution in Visual C Express . Now you have a LINQ to SQL classes library that is linked to your SQL Server database in Visual C Express . Update .. . .. . The solution is for Visual Studio Express 2010 . Comment : This works with Visual Studio 2010 line of Express products Visual C and Visual Web Developer . Thanks Comment : I ve been pulling my hair out for two days trying to figure this out . Thanks I owe you the drink of your choice if we ever meet Comment : Fantastic - I ve just tried this for creating an Entity Data Model and it worked equally well . Thanks for solving this one", "Question : I ve written down exactly what I ve done : .. . .. . Visual web developer new project - New web application .. . .. . Double click Site.Master in solution-explorer . Click design .. . .. . Select the text : My ASP.NET Application .. . .. . Format font - change color - not showing change . Opening font again shows the old font color . Why .. . .. . Click on h1.style1 at bottom .. . .. . Format font - change color this time it works fine .. . .. . Click to the right of My ASP.NET Application div.loginDisplay is selected . Why Why not the whole header .. . .. . Change background-color - My ASP.NET Application disappears . Why - My main question . .. . .. . Start debugging My ASP.NET Application is shown . Why since it wasn t showing in visual-web-developer .. . Answer : My suggestion if you want to get good at web development remove Design mode from Visual Studio . Go to : .. . .. . Tools Options HTML Designer .. . .. . Then untick Enable HTML designer .. . .. . .. . .. . Try and get used to only reading the code and not relying on Visual Studio adding the code for you badly . Comment : Thanks interesting idea . But I think I ll keep the design mode in order to learn from it change there and see the code produced .", "Question : I have an .net c mvc3 web service application developed wirh visual-web-developer 2010 . I am calling the web-services from an android movile application . I want to test the web-services from the eclipse emulator . When i debug the webservice application everything works fine by calling the services from the web browser but when i call then from the android application using the emulator y get HTTP 1.1 400 Bad Request . the curious thing is that if i publish the web service application on my local IIS 7 everything wirks fine although i can not debug the service . when i debig the service using the visual-web-developer a web page appear with a adress like that : .. . .. . http : localhost : 1627 myservice.asmx myMethod .. . .. . On my android application i call the service with a url like that : .. . .. . http : 10.0.2.2 : 1627 myservice.asmx myMethod .. . .. . but then i get the HTTP 1.1 400 Bad Request .. . .. . I really would appreciate any help . thanks . .. . Answer : For Visual Studio 2010 I always used inetd which is a port forwarding tool . Since Visual Studio 2012 I have this problem as well . The problem is that only localhost calls are allowed in the development server even proxy calls don t work unless you change the request headers . I have made some modifications to an existing simple proxy server which I found on GitHub . It changes the IP address in the request url to localhost . Download the code here http : opensource.oxyva.nl simple-development-proxy . .. . .. . I found a better solution . When you have IIS Express installed on your computer create a new application in IIS of the directory of your project and give it an alias . Note the right application-pool is set and you will be able to browse your site via http : localhost YourProject When you cannot connect from other computers it s probably a firewall problem .", "Question : I m working on a page using canvas which is a HTML5 tag in Visual Web Developer Express Edition 2008 and the validator in the HTML editor is telling me it s an invalid tag . That s because it s set to validate against XHTML 1.0 Transitional . I d prefer for it to not do that and tell me what s valid or invalid based on the HTML5 doctype but I can t find anywhere in the preferences that suggests this would be possible . Is there a way to tell Visual Studio to validate against HTML5 or add a new spec reference manually I d prefer not to have to go in and add tags manually which appears to be the only option at the moment . Comment : With SP1 Html5 support is there blogs.msdn.com b webdevtools archive 2011 01 27 http : blogs.msdn.com b webdevtools archive 2011 01 27 html5-amp-css3-in-visual-studio-2010-sp1.aspx .. . Answer : For Visual Studio 2010 you ll want to install the Web Standards Update for Visual Studio 2010 SP1 http : blogs.msdn.com b webdevtools archive 2011 06 15 web-standards-update-for-visual-studio-2010-sp1.aspx : .. . .. . It updates the HTML5 intellisense and validation to reflect the latest W3C specifications and fixes some bugs bugs in the current SP1 support for HTML5 . Also JavaScript intellisense it updated to reflect many of the new browser capabilities such as Geolocation and DOM storage . Finally this update adds comprehensive CSS3 intellisense and validation based on the latest specifications from W3C . For Visual Studio 2008 Microsoft has provided an updated version of the HTML 5 validation schema and intellisense in the Visual Studio Gallery . HTML 5 Intellisense http : visualstudiogallery.msdn.microsoft.com en-us d771cbc8-d60a-40b0-a1d8-f19fc393127d .. . .. . The updated schema was posted by Mikhail Arkhipov the same Microsoft employee who wrote the blog post linked in Rahul s answer http : stackoverflow.com questions 1084194 is-it-possible-to-add-html5-validation-to-visual-studio 1848536 1848536 .", "Question : I ve got a SQL database registrated on HelioHost.org and when i try to access this Db via NetBeans it s fine . I can edit tables make new one etc . However when I try to do the same in MS Visual Web Developer 2010 Express I can set connection to this Db I can see already existing tables but I can t create or edit them . Is there any way how to get full access to remote SQL via MS Visual Web Developer 2010 Express .. . Answer : It is because of feature restriction . Please refer to this article below : http : weblogs.asp.net nannettethacker creating-a-database-connection-to-a-remote-sql-server-database-within-visual-web-developer .. . .. . Although you may create and alter a SQL Server .mdf database within your project Visual Web Developer doesn t support opening a table definition or adding a new table from your SQL Server 2000 database . But it does allow Show Table Data . It allows you to see the names of your stored-procedures but not to edit or view their content just the properties . It is very limited but you may wish to have it just for those purposes . You might want to use free SQL Server Management Studio Express to do that .", "Question : I cannot uninstall Visual Web Developer 2010 Beta 2 . When I was trying to uninstall the first time the power went off to my machine and screwed up the Beta 2 installation . I cannot find a Visual Web Developer 2010 Beta 2 download on the Microsoft website any longer to repair the Beta 2 installation . How can I get VWD 2010 Beta 2 off of my system so I can install the new release Comment : This might do better on Super User . Comment : The question is listed on SuperUser.com as well . Comment : I am having a nice little excercise at Microsoft trying to get this solved if anyone wants to follow it . social.msdn.microsoft.com Forums en-US Vsexpressinstall thread http : social.msdn.microsoft.com Forums en-US Vsexpressinstall thread a2f4d9c3-1a78-4ac1-b316-04c5727feb46 Comment : Here is another person having the same issue : connect.microsoft.com VisualStudio feedback details 550848 https : connect.microsoft.com VisualStudio feedback details 550848 express-2010-beta-uninstall-express-2010-install .. . Answer : Well after weeks of waiting Microsoft finally came through via Scott Hanselman and Aaron Stebner . Below is a link-to Beta 2 versions of the software that would not uninstall correctly for me : .. . .. . Download Visual Studio 2010 Express Editions http : blogs.msdn.com danielfe archive 2009 10 21 download-visual-studio-2010-express-editions.aspx .. . .. . You can reinstall Microsoft Express Beta 2 software via the link above and then properly uninstall the software to use the new Microsoft Express Editions . It s sad that I had to answer my own question here but that is the case .", "Question : I am trying to write a web application using ASP.NET MVC . I prefer C as the programming language . Which IDE is better to use for this purpose Visual Studio or Visual Web Developer What are the features of the IDEs What are the benefits of using one over the other Thanks in advance . .. . Answer : Visual Studio will allow you to integerate with Source control and attached debugging to IIS processes . As a lone developer knocking up some pure ASP.NET-MVC application then Web Developer would do for serious work you really need studio .", "Question : I find it odd that in Visual C 2008 Express edition when you use the database explorer your options are : .. . .. . 1 . Microsoft Access .. . 2 . SQL Server Compact 3.5 and .. . 3 . SQL Server Database File . BUT if you use Visual Web Developer 2008 Express you can connect to a regular SQL Server Oracle ODBC etc . For people developing command-line or other C apps that need to talk to a SQL Server database do you really need to build your LINQ Data Access code with one IDE Visual Web Developer and your program in another Visual C It s not a hard workaround but it seems weird . If Microsoft wanted to force you to upgrade to Visual Studio to connect to SQL Server why would they include that feature in one of their free IDEs but not the other I feel like I might be missing something like how to do it all in Visual C . Comment : This is a terrific question . The whole SQL Server mess is very frustrating from even choosing which version to use to actually developing with it to deploying it . This question addresses one of the major hassles along the way . Comment : How is this closed as not constructive It has tons of upvotes and views and lots of people seem to find it helpful . SO is closing questions way too easily nowadays . .. . Answer : If you are using this to get a LINQ to SQL which I do and wanted for my Visual Developer 1 get the free Visual WEB Developer use that to connect to SQL Server instance create your LINQ interface then copy the generated files into your Vis-Dev project I don t use VD because it sounds funny . Include only the .dbml files . The Vis-Dev environment will take a second or two to recognize the supporting files . It is a little extra step but for sure better than doing it by hand or giving up on it altogether or EVEN WORSE paying for it . Mooo ha ha haha .", "Question : I recently installed in order : .. . .. . Sql Server 2008 Express .. . .. . Visual Web Developer Express 2008 .. . .. . When I right-click on app data and try to add a db it returns : Connections to SQL Server files .mdf require SQL Server Express 2005 to function properly . Please verify the installation of the component or download from the URL : http : go.microsoft.com fwlink LinkId 49251 .. . .. . I just recently reinstalled windows-vista due to registry problems from installing visual-web-developer before installing sql-server . This time the reverse order seemed to work fine until I noticed this problem . I can copy an MDF file into the app-code directory but this doesn t seem to solve my problems as clicking the DB returns the same error . From what I ve gathered from some googling this error occurs from several different install paths . It probably has nothing to do with 2005 installs I had not installed any visual-studio or sql-server 2005s . Its possible they just never upgraded the error message . Does anyone know how to get around this I would not mind entering in some connection strings if that will fix the issue . .. . Answer : Is it a 64bit Vista or rather 64bit SQL Express installation http : support.microsoft.com default.aspx scid kb en-us 957944 sd rss spid 12913 http : support.microsoft.com default.aspx scid kb en-us 957944 sd rss spid 12913 .. . .. . There is a known problem with having a 64bit SQL Express engine for Visual Studio 2008 integration and it easily happens without your knowledge if you install the SQL Express separately using the web bootstrapper - atleast on my system it installed the 64bit version without telling me at all . The link above basically tells you to uninstall all SQL Express instances and then install the x86 SQL Express of your choice and it will start working correctly . Comment : Thanks I can t believe I didn t find that.. . I am not even going to try to fix it at this point . I just reinstalled Vista after experiencing registry problems from a similar issue nightmare . Everything is working the way I need it now so not going to take any chances . Thanks again Comment : Great I stumped over this last night getting quite annoyed figuring it out.. .", "Question : I recently installed in order : .. . .. . Sql Server 2008 Express .. . .. . Visual Web Developer Express 2008 .. . .. . When I right-click on app data and try to add a db it returns : Connections to SQL Server files .mdf require SQL Server Express 2005 to function properly . Please verify the installation of the component or download from the URL : http : go.microsoft.com fwlink LinkId 49251 .. . .. . I just recently reinstalled windows-vista due to registry problems from installing visual-web-developer before installing sql-server . This time the reverse order seemed to work fine until I noticed this problem . I can copy an MDF file into the app-code directory but this doesn t seem to solve my problems as clicking the DB returns the same error . From what I ve gathered from some googling this error occurs from several different install paths . It probably has nothing to do with 2005 installs I had not installed any visual-studio or sql-server 2005s . Its possible they just never upgraded the error message . Does anyone know how to get around this I would not mind entering in some connection strings if that will fix the issue . .. . Answer : While I still get the sql-server-2005 error it hasn t stopped me from doing what I needed to do . In the Database Connections tab I am able to connect to the MDF after detaching it from Management Studio . I can also use this tab s-function to create a new DB file if need be .", "Question : I recently installed in order : .. . .. . Sql Server 2008 Express .. . .. . Visual Web Developer Express 2008 .. . .. . When I right-click on app data and try to add a db it returns : Connections to SQL Server files .mdf require SQL Server Express 2005 to function properly . Please verify the installation of the component or download from the URL : http : go.microsoft.com fwlink LinkId 49251 .. . .. . I just recently reinstalled windows-vista due to registry problems from installing visual-web-developer before installing sql-server . This time the reverse order seemed to work fine until I noticed this problem . I can copy an MDF file into the app-code directory but this doesn t seem to solve my problems as clicking the DB returns the same error . From what I ve gathered from some googling this error occurs from several different install paths . It probably has nothing to do with 2005 installs I had not installed any visual-studio or sql-server 2005s . Its possible they just never upgraded the error message . Does anyone know how to get around this I would not mind entering in some connection strings if that will fix the issue . .. . Answer : hi david are you ensuring that the sql express service as well as sql browser service both are running can you connect to the same sql-server-express edition via management studio if not then probably these services are not running on your box Comment : Actually I had forgotten to check that I did turned on the browser . I thought that would do the trick but I got the exact same message . I realized I didn t need that . My entity-framework is working fine without it for now . I guess I can add a connection-string to a db later", "Question : I am using Visual Web Developer 2010 Express in my PC for building an MVC 3 application . it s working fine till I installed Sql Server 2008 Management Studio yesterday . After I installed the SSMS my Visual Web Developer is hanging when I Build my MVC 3 Web application . And when i open the project there is a message shown in the OutPut window . I am clueless what happend in my PC . Comment : Do a repair on VS Comment : Thank you ver much it s solved . .. . Answer : you need to repair your vs 2010 . and restart the PC . please check this link you can see the step by step example .. . .. . http : msdn.microsoft.com en-us library aa983433 v vs.90 .aspx .. . .. . hope it will help .", "Question : I am trying to create a login function with SQL server 2008 express and Visual Web Developer 2008 Express . I tried Using a Login status and Login controll Running the page without debugging and then attempting to login . I was told this would create a ASPNETDB.MDF . file Instead it gave me an error . I then attempted to create a database in my AppData section of Visual web developer and it gave me this error : .. . .. . connections to sql-server files .mdf Require sql-server-2005 to function properly . please verify the installation of the component or download from url . I have sql 2008 express installed and to my knowledge Need ASPNETDB.MDF to create a login-system on my site . Am i going to have to downgrade my sql-server in order to get a functioning login on my site .. . Answer : ASPNETDB.MDF is the default database for using the ASP.NET Application Services which includes profiles roles membership and more . You can use the supplied membership providers that are included with the .NET Framework or you can implement your own providers . You do not have to downgrade SQL Server in order to get a functioning login on your site . To resolve the error message verify that SQL Server express edition is properly installed and is currently running on the system . You can use SQL Server Configuration Manager to check and start the SQL instances that are installed on the system . If the SQL Server Express instance is running check if Visual Studio is pointing to the correct SQL instance . You can do this by navigating to Data connections under Tools - Options in Visual Studio IDE . Links : .. . .. . 1 . Microsoft Support Article http : support.microsoft.com kb 2009225 .. . 2 . Implementing a Membership Provider http : msdn.microsoft.com en-us library f1kyba5e 28v vs.100 29.aspx Comment : My Default instance was incorrect Now i can manually create databases thank you I am still receiving this error : provider : SQL Network Interfaces error : 26 - Error Locating Server Instance Specified and im unable to auto-create the DB file that has pre-populated member info ideal for me since im a novice Could it be that .net is trying to use a roll or account that doesnt have read-write capabilitys to the server Comment : Alfredo this blog talks about the error : blogs.msdn.com b sql protocols archive 2007 05 13 http : blogs.msdn.com b sql protocols archive 2007 05 13 sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx Comment : Alfredo please mark my answer as correct if my reply provided the answer to your original question . Thanks . Comment : You are welcome . If you have follow up inquiries consider asking a new question on Stack Overflow . The community is very helpful . Comment : Tarzan i was able to get it working : D - Reinstalled sql and gave it an instance name mixed login as oposed to windows-authentication . Thanks again . In Case Any one is reading this due to having a similar problem the above listed links should get the job done if your still having problems this might help its how i solved my problem : stackoverflow.com questions 13074273 http : stackoverflow.com questions 13074273 unable-to-auto-create-aspnetdb-mdf-visual-web-developer-express-2008-sql-exp 13096096 13096096", "Question : Hello I m a newbie for ASP.NET .. . .. . I have a designed html page from another program I want to convert the html into a asp.net aspx web form using visual-web-developer . I have opened the page normally but it s difficult to move or replace controls in layout page for example when I move a button the design of page collapses . How I can insert button or textbox into a aspx html on Visual web Developer 2010 without changing the layout of the page Comment : Do you have any knowledge of HTML It may sound weird but Visual Studio is not intended to be used like the old Front Page which was made for WYSIWYG development . Comment : Yes I have knowldge base of HTML So there a solution for this Comment : do you want to convert a html page to .aspx page or you want to insert textbox button into a page that s already designed -- your second line of question is difficult to understand . . Comment : If you want to edit your design page don t do it in the design view . Do it in the markup if you want to remove add a button check the code and place it appropriately in the table column or a div..by dragging and dropping in the design page will spoil it completely . Comment : @codebrain Thank you for your answer yeah I want that I have tried convert to aspx page because i want behind code so indeed is normaly . but when I try to insert textbox button and other from toolbox then moving that is all the layout design my designed page is changed .. . Answer : To convert an html page into aspx page .. . .. . Practice will give you perfection in css styling and HTML . -------------------All should be well-------------- .. . .. . If you don t find any controls in code-behind add runat server attribute in markup . and is an html control and is server control . Comment : OK Codebrain thanks very much for your solution I have tried all your tips and almost succeded . on visual-web-developer the header layout menu designed page is changed but on browser it s normally no layout were changed for position . My Questions why that be happen ok its not important . The most important questions Can I lock header menu or component on Visual Web Developer so I can editable body section Comment : If you downloaded some static html template you need to check the designs and make modifications for your requirement . Try working on HTML tables and div tags . It will give you good experience in designing . use CSS stylesheets . You may made mistakes in div or table tags and assigning height and width. . If you answer was helpful please mark it as answer . Thanks", "Question : I find it odd that in Visual C 2008 Express edition when you use the database explorer your options are : .. . .. . 1 . Microsoft Access .. . 2 . SQL Server Compact 3.5 and .. . 3 . SQL Server Database File . BUT if you use Visual Web Developer 2008 Express you can connect to a regular SQL Server Oracle ODBC etc . For people developing command-line or other C apps that need to talk to a SQL Server database do you really need to build your LINQ Data Access code with one IDE Visual Web Developer and your program in another Visual C It s not a hard workaround but it seems weird . If Microsoft wanted to force you to upgrade to Visual Studio to connect to SQL Server why would they include that feature in one of their free IDEs but not the other I feel like I might be missing something like how to do it all in Visual C . Comment : This is a terrific question . The whole SQL Server mess is very frustrating from even choosing which version to use to actually developing with it to deploying it . This question addresses one of the major hassles along the way . Comment : How is this closed as not constructive It has tons of upvotes and views and lots of people seem to find it helpful . SO is closing questions way too easily nowadays . .. . Answer : The only way I was able to get C Express 2008 to work was to move the database file . So I opened up SQL Server Management Studio and after dropping the database I copied the file to my project folder . Then I reattached the database to management studio . Now when I try to attach to the local copy it works . Apparently you can not use the same database file more than once .", "Question : I m working on a page using canvas which is a HTML5 tag in Visual Web Developer Express Edition 2008 and the validator in the HTML editor is telling me it s an invalid tag . That s because it s set to validate against XHTML 1.0 Transitional . I d prefer for it to not do that and tell me what s valid or invalid based on the HTML5 doctype but I can t find anywhere in the preferences that suggests this would be possible . Is there a way to tell Visual Studio to validate against HTML5 or add a new spec reference manually I d prefer not to have to go in and add tags manually which appears to be the only option at the moment . Comment : With SP1 Html5 support is there blogs.msdn.com b webdevtools archive 2011 01 27 http : blogs.msdn.com b webdevtools archive 2011 01 27 html5-amp-css3-in-visual-studio-2010-sp1.aspx .. . Answer : I created a validation schema that you re free to use : http : johndyer.name post 2009 07 21 HTML5-XHTML5-Validation-Schema-for-Visual-Studio-2008.aspx Comment : I tried following your directions but I don t have an equivalent hash obviously inside the Packages node in the registry . I also don t have one that contains Schemas Schema 23 . Any suggestions Comment : Oh I might note that I have Web Developer Express Edition not the actual Visual Studio . Not sure if that makes a difference or not ." ] }
[ "yes-answer-long", "yes-answer-short" ]
web
UNK_RELATION
measurement-protocol@user@119
measurement-protocol -- the google-analytics measurement-protocol allows developers to make http requests to send raw @placeholder interaction data directly to google-analytics servers .
{ "confidence": [ 84.71324157714844, 83.46989440917969, 81.96481323242188, 81.14090728759766, 80.44453430175781, 78.87814331054688, 78.11007690429688, 75.64888763427734, 75.24634552001953, 73.27350616455078, 72.6615982055664, 71.02818298339844, 69.74200439453125, 69.26642608642578, 68.90766906738281, 68.24463653564453, 67.5010757446289, 66.722412109375, 66.35655975341797, 65.85502624511719, 63.5663948059082, 62.83963394165039, 62.73786926269531, 62.33403396606445, 58.35096740722656, 57.89441680908203, 57.359920501708984, 56.737552642822266, 56.28677749633789, 56.104644775390625, 55.46235656738281, 55.342044830322266, 54.527252197265625, 54.342857360839844, 53.691898345947266, 52.61698532104492, 52.61698532104492, 52.53380584716797, 52.173728942871094, 52.1555290222168, 51.9997444152832, 51.94388961791992, 51.68012619018555, 51.377662658691406, 50.97093200683594, 50.93360137939453, 50.783992767333984, 50.783992767333984, 50.452022552490234, 50.372962951660156, 50.24279022216797, 49.97105026245117, 49.67561721801758, 49.51377487182617, 49.40892028808594, 49.32632827758789, 49.137939453125, 49.047698974609375, 49.01034164428711, 48.891544342041016, 48.72123718261719, 48.44864273071289, 48.39787292480469, 48.392974853515625, 48.37398910522461, 48.28363800048828, 48.246734619140625, 48.19199752807617, 47.86845397949219, 47.680274963378906, 47.41725540161133, 47.360107421875, 47.23332977294922, 47.23332977294922, 46.86031723022461, 46.75410842895508, 46.732852935791016, 46.732852935791016, 46.69610595703125, 46.69610595703125, 46.60862731933594, 46.15912628173828, 46.025630950927734, 45.89488220214844, 45.89488220214844, 45.89488220214844, 45.771202087402344, 45.7624397277832, 45.52363586425781, 45.32246017456055, 45.24165725708008, 45.08679962158203, 44.69297790527344, 44.219696044921875, 44.11638641357422, 43.738121032714844, 43.738121032714844, 43.58326721191406, 43.58326721191406, 43.58326721191406 ], "content": [ "Nope measurement-protocol is the only way to send tracking data to Google analytics .", "To send data to Google Analytics we use the Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 .", "We use the Google Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 hl en to send offline transactions to Google Analytics .", "The measurement-protocol is used to send information to Google analytics the JS snippet you posted also uses the measurement-protocol .", "I m using the Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 parameters to push data to Google Analytics .", "You are correct you can use the measurement-protocol to send events data directly to google-analytics .", "Find it here http : stackoverflow.com questions 22732392 google-analytics-measurement-protocol .", "I m inserting it using Google Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 hl en .", "we tried to track email opens with google-analytics and measurement-protocol .", "Source https : groups.google.com forum topic google-analytics-measurement-protocol 8TAp7 I1uTk", "we are seding requests like this throught the google-analytics measurement-protocol to track user interaction there .", "I want to test my script that send event to Google Analytics via Measurement Protocol .", "The only way to communicate with the google-analytics measurement-protocol is with a HTTP post or a HTTP get", "The Google Analytics Measurement protocol https : developers.google.com analytics devguides collection protocol v1 hl en is used for inserting data into Google Analytics the javascript snipet that websites use also uses the measurement-protocol as does the IOS and Android SDKs .", "The measurement-protocol doesn t care if its universal or application Google analytics its up to you to send the correct data for the different types of analytics accounts .", "What s special and new in Measurement Protocol because using this url too i can send data to google for analytics purposes", "HOWEVER If I send the data to Google Analytics after the 4 hour session window then Google Analytics sees my Measurement Protocol hit as a new session and creates a new session to which the Goal is attributed .", "I then use that Measurement Protocol with the captured cid to send data back to Google Analytics to trigger a Goal Client Registered if that visitor later registers for my services .", "When setting up Google Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 what type of Google Analytics Property should I create", "well not your url but yes you can view the source of someone s website get there Google Analytics tracking id and send garbage data to there Google Analytics account using the Measurement protocol .", ".. . 10 million hits per month per property .. . .. . Measurement protocol .. . .. . Universal Analytics Enabled .. . .. . This applies to analytics.js Android iOS SDK and the Measurement Protocol .", "I believe the following StackOverflow question is related but has no answers posted : .. . Google analytics measurement-protocol session-timeout and query time limits https : stackoverflow.com questions 24753183 google-analytics-measurement-protocol-session-timeout-and-query-time-limits", "I m tracking my eCommerce site with Google Analytics and I m using Googles Measurement Protocol to track offline payments .", "Reason : .. . .. . analytics.js uses the Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 reference .", "Batch request to Google Analytics Measurement Protocol http : i.stack.imgur.com SeAKY.png .. . .. . From Postman you can then generate the code for the language you use .", "Conclusion .. . .. . There is no limit to sending data through the measurement-protocol .", "Measurement Protocol has Queue Time https : developers.google.com analytics devguides collection protocol v1 parameters qt but google says : .. . .. . Values greater than four hours may lead to hits not being processed .", "Measurement protocol should be accepting them", "I started implementing Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 to my page and i didn t find a way to set User defined value within Audience - Custom - User Defined .", "It seams it s the libraries that apply limits on how fast you can send data not the measurement-protocol directly .", "The Measurement Protocol is property-agnostic .", "You can debug Measurement Protocol hits with the Measurement Protocol Hit Builder https : ga-dev-tools.appspot.com hit-builder .", "The measurement-protocol is now the backbone for data collection for Universal Analytics for all versions web mobile etc .", "I am sending an offline event to Google UA using their measurement-protocol .", "There does not seem to be a Universal Analytics or Measurement Protocol option which is the source of my confusion and the reason for my question .", "developers.google.com analytics devguides collection protocol https : developers.google.com analytics devguides collection protocol v1 hl en", "developers.google.com analytics devguides collection protocol https : developers.google.com analytics devguides collection protocol v1 parameters ev", "To send hits to the Measurement Protocol Validation Server use the endpoint debug collect instead of collect .. . .. . See : https : developers.google.com analytics devguides collection protocol v1 validating-hits", "now we are going to use google-analytics to store our analytics and analyze the report using google-analytics dashboard .", "I need to send ECommerce transactions to Google Analytics .", "Yet Google Analytics ignores it .", "There appears to be a bug in the way the measurement-protocol is handling events .", "This forces Google Analytics to always send the data via https .", "I have tried using analytics.js Universal Analytics through both frontend js and backend Measurement protocol .", "developers.google.com analytics devguides collection protocol https : developers.google.com analytics devguides collection protocol v1 validating-hits", "enter image description here http : i.stack.imgur.com ktn11.png .. . .. . The reason this is now more widespread than it has ever been is due to the Google Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 hl en where spammers can actually cause problems with your Google Analytics data without even visiting your website the spam is done sequentially with Analytics ID s .", "This tool works by sending hits to the Measurement Protocol Validation Server https : developers.google.com analytics devguides collection protocol v1 validating-hits behind the scenes to validate the hits and report error messages .", "for this matter i should use Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 reference and it s limit allow me to transfer 2 million hits with no problem .", "In the Documentation for Google Analytics Collection Limits and Quotas https : developers.google.com analytics devguides collection protocol v1 limits-quotas .. . .. . It gives the rate limits that are implemented by the various Google-provided libraries .", "I m trying to post to Google Measurement Protocol using Ruby : .. . .. . Also tried to send a GET request instead of POST : .. . .. . And the event is not being tracked :", "Directly from the documentation Google Analytics Collection Limits and Quotas https : developers.google.com analytics devguides collection protocol v1 limits-quotas .. . .. . These limits apply to the Web Property Property Tracking ID .", "I m using measurement-protocol for my desktop application .", "Is there a log the Google Analytics portal https : www.google.com analytics web somewhere", "I use different ways to send events to Google Analytics on my website .", "The measurement-protocol works exactly as analytics.js does as a matter of fact analytics.js uses the measurement-protocol .", "I ve sent this array to measurement-protocol : .. . .. . But without any result .", "You must fulfill all mandatory fields of GA measurement-protocol so the request could be accepted by GA . .. . .. . https : developers.google.com analytics devguides collection protocol v1 parameters", "How can i send a batch request to the measurement-protocol", "Finally Google add this feature to measurement-protocol also it s possible to override User-Agent too .", "In my experiment only 10-20 of 2 000 measurement-protocol requests were actually stored .", "I track purchases from PHP backend so I use Google Analytics Measurement Protocol library https : github.com theiconic php-ga-measurement-protocol order-tracking-with-enhanced-e-commerce link leads to corresponding readme section for PHP .", "If you didn t know about them try developers.google.com analytics devguides collection protocol https : developers.google.com analytics devguides collection protocol v1 validating-hits and ga-dev-tools.appspot.com hit-builder https : ga-dev-tools.appspot.com hit-builder very useful when sending stuff to Google Analytics .", "I heard about google-analytics .", "Here is my payload data : .. . .. . Google hit validator return valid when I send the request to Measurement Protocol Validation Server.. . any hint about what I m wrong", "I m having issues with Google Measurement Api .", "I can t seem to find a published rate limit for users that are POSTing directly to measurement-protocol https : www.google-analytics.com collect .", "Measurement protocol docs https : developers.google.com analytics devguides collection protocol v1 devguide batch give me these directions to send a batch request : .. . .. . Im a little confused on how i would build my url for this", "That code uses the core reporting API the core reporting API is for requesting data from Google Analytics not sending data to Google Analytics .", "It is only used to send information to Google analytics .", "The measurement-protocol isn t going to over ride anything on you .", "just start recording to Google analytics now .", "Once data is inserted into Google Analytics there is no way to change the data that was inserted .", "cd or Screen name is for application google-analytics accounts and will only be displayed in an application Google Analytics account .", "But strictly google-analytics speaking if your app is a website then you can just use the normaly Google Analytics tracking .", "First you should add a script to your index.html file to inject google-analytics data : .. . .. . Then configure your app to enable google-analytics :", "At 6 p.m call-report CRM generates the call-report and passes it to GA using measurement-protocol event upload HTTP requests .", "I am building a server-side application that needs to report data to GA via Measurement Protocol .", "We have recently started to use Measurement Protocol in GA and most of the data calls is processed and registered in GA .", "The main reason for using the measurement-protocol is that everything else is deprecated and Google has announced that support for older tracking methods will be dropped .", "Google measurement-protocol is very useful when implementing distributed solution of a service like restful APIs .", "When I send the value 500 via Measurement protocol I want cm1 to equal 500 not 500+100 600 .", "https : developers.google.com analytics devguides collection analyticsjs custom-dims-mets sending data .. . .. . However we are sending in raw data using the measurement-protocol and in that documentation it says that only integers are allowed for custom metrics : https : developers.google.com analytics devguides collection protocol v1 parameters cm .. . .. . I have noticed that the decimal values we send in do not show up in the UI .", "There is no way to update data that has already been inserted into Google Analytics .", "The intention of this class is to create url s to send with cURL to Google Analytics .", "With this following URL I able send single request to Google Analytics GA .", "I have an url that will send request as POST to google-analytics .", "I have a custom metric in Google Analytics .", "but before start using google-analytics i would like to emigrate all old statics about 2 million events to google-analytics .", "I am quite sure there is no such parameter : - developers.google.com analytics devguides collection protocol https : developers.google.com analytics devguides collection protocol v1 parameters", "You can use the measurement-protocol from any language that supports HTTP post or Http Get .", "There is a related question which will give you an idea how to structure the PHP code to send POST the event data to Google Analytics .", "So to see data sent by Measurement Protocol in the GA reports is preferable to use real ClientID for user that visited website in the past .", "At 6 p.m call-report CRM generates the transaction-report and passes the phone order value number to GA using measurement-protocol transaction requests .", "Does Google Analytics allows to see such users or each user must have at least one interactive hit", "if you are seeing screen name in your google-analytics account I think you have an application google-analytics account you are not going to see DL .", "I m trying to send a refund hit via cUrl to my Google Analytics account .", "We need to send a decimal value to google-analytics and had decided to do this using a custom metric of the type Currency .", "I seem to be getting unpredictable results uploading hits via the Measurement Protocol API .", "In my case I had own buildHitTask which constructs URL for a measurement-protocol request MPR and stores it in the hitPayload field .", "I will try your reproduce the issue on a test account maybe it s some problem with the measurement-protocol ." ] }
{ "confidence": [ 94.38897705078125, 94.09815979003906, 92.91813659667969, 92.00263977050781, 91.45645141601562, 88.94914245605469, 87.91947937011719, 87.41450500488281, 87.36670684814453, 85.85112762451172, 85.25514221191406, 85.13484191894531, 84.22804260253906, 84.15928649902344, 82.920166015625, 82.81819152832031, 81.38140869140625, 81.30353546142578, 80.51046752929688, 79.08152770996094 ], "content": [ "Question : null .. . Answer : QUESTION : How can I assure that the visitor s original session is updated attributed with a new Goal triggered by using Measurement Protocol even if the trigger happens after the original session window has expired Problem in detail : .. . .. . 1 . I am capturing the cid from the ga cookie when a visitor reaches my site and makes contact via a form .. . .. . 2 . I then use that Measurement Protocol with the captured cid to send data back to Google Analytics to trigger a Goal Client Registered if that visitor later registers for my services . 3 . If this happens within the 4 hour session window of the visitor s first visit to my site then that session created with that first visit is attributed with the Goal . 4 . HOWEVER If I send the data to Google Analytics after the 4 hour session window then Google Analytics sees my Measurement Protocol hit as a new session and creates a new session to which the Goal is attributed . But I want the original session to show the new Goal value . I believe the following StackOverflow question is related but has no answers posted : .. . Google analytics measurement-protocol session-timeout and query time limits https : stackoverflow.com questions 24753183 google-analytics-measurement-protocol-session-timeout-and-query-time-limits", "Question : null .. . Answer : We need to send a decimal value to google-analytics and had decided to do this using a custom metric of the type Currency . In the Tracking documentation it says that this should be allowed : .. . .. . If the custom metric is configured to have a currency type you can send decimal values . https : developers.google.com analytics devguides collection analyticsjs custom-dims-mets sending data .. . .. . However we are sending in raw data using the measurement-protocol and in that documentation it says that only integers are allowed for custom metrics : https : developers.google.com analytics devguides collection protocol v1 parameters cm .. . .. . I have noticed that the decimal values we send in do not show up in the UI . Could this be the reason Comment : What does the ga-dev-tools.appspot.com query-explorer https : ga-dev-tools.appspot.com query-explorer return I wonder if its the website that just cant display decimals . Measurement protocol should be accepting them Comment : If you can verify somehow that you are sending a decimal to a custom metric with the measurement-protocol and the query explorer is returning a int and not the decimal we can log it as a bug and I will ping Google for you . Either way I think the documentation is a bit confusing I agree with you there . Comment : After many failed attempts I managed to get the data into analytics . It turns out that it was another field that was causing the requests to fail namely eventvalue where we also used a decimal . Turns out that eventvalue can only be integers . Comment : If you didn t know about them try developers.google.com analytics devguides collection protocol https : developers.google.com analytics devguides collection protocol v1 validating-hits and ga-dev-tools.appspot.com hit-builder https : ga-dev-tools.appspot.com hit-builder very useful when sending stuff to Google Analytics . I have been there last week I spent two days on an invalid request : Comment : The hitbuilder is indeed awesome I was unaware of it at first but my colleague pointed me to it and it was then that I noticed the problem with eventvalue .", "Question : I have a custom metric in Google Analytics . I m inserting it using Google Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 hl en . When I make a request to Google Analytics is there a way to replace the existing value of the metric instead of adding new value to it Let s say that the current value of that metric is cm1 100 . When I send the value 500 via Measurement protocol I want cm1 to equal 500 not 500+100 600 . How do I do that I m currently using this kind of URL to insert custom metrics : .. . .. . https : www.google-analytics.com collect v 1 ni 1 tid https : www.google-analytics.com collect v 1 ni 1 tid tracking id cid cid t event ec category ea action el label cm1 500 .. . Answer : The Google Analytics Measurement protocol https : developers.google.com analytics devguides collection protocol v1 hl en is used for inserting data into Google Analytics the javascript snipet that websites use also uses the measurement-protocol as does the IOS and Android SDKs . Once data is inserted into Google Analytics there is no way to change the data that was inserted . For example when you are using ecommerce and a user adds an item to there shopping car the item is inserted into Google Analytics if the user then removes it you need to credit the users record that is done by adding the same item again only with a - value This doesn t remove either item it just nulls them out kind of . Think of the measurement-protocol as inserting a row into a database you insert an event with custom metric 1 having a value of 500 then in 5 minutes you insert another row with custom metric 1 having a value of 200 you now have two rows one where custom metric is 500 and another where its 200 . There is no way to update data that has already been inserted into Google Analytics . Google Analytics data does not change once it has been inserted and processing is complete .", "Question : I m using the Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 parameters to push data to Google Analytics . The protocol reference https : developers.google.com analytics devguides collection protocol v1 reference response-codes says that the endpoint http : www.google-analytics.com collect always returns 200 OK even if your message was malformed and or ignored . If my message is ignored how do I know what I did wrong Trial and error For example the parameter reference says that Application Name an Name is an optional parameter for web properties https : developers.google.com analytics devguides collection protocol v1 parameters an . However if I add this my requests Google starts ignoring them completely . Why More importantly how can I find out why on my own Is there a log the Google Analytics portal https : www.google.com analytics web somewhere .. . Answer : You can debug Measurement Protocol hits with the Measurement Protocol Hit Builder https : ga-dev-tools.appspot.com hit-builder . This tool works by sending hits to the Measurement Protocol Validation Server https : developers.google.com analytics devguides collection protocol v1 validating-hits behind the scenes to validate the hits and report error messages . The document linked here goes into more detail on how to send hits to this service manually if you wanted . Comment : The hit builder says Hit is valid . Yet Google Analytics ignores it . Here s the actual message slightly sanitized : v 1 tid UA-XXXXXXXX-1 cid 561d0e8f-d99e-4542-8208-bad5a4c03f10 dh hostname.com an testapp t pageview dp 2ftestpage dt testpage . If I remove an testapp GA processes it . If I leave it in it doesn t . Supposedly this is a perfectly valid optional parameter https : developers.google.com analytics devguides collection protocol v1 parameters an . Comment : Are you sending these hits to an app view or a web view Comment : Web view . The docs say that Application Name is required for an app view but optional for a web view https : developers.google.com analytics devguides collection protocol v1 parameters an . My particular web app is Silverlight app and I find the Application Name parameter useful but I can work around not using it . However the larger question is how one gets insight to why Google Analytics is ignoring a message . Comment : To answer your larger question if GA is ignoring a hit that the Measurement Protocol Validation Server is saying is valid that s a bug and I m looking into it . The MPVS is how you re supposed to be able to find these things out on your own . That s the whole point of the tool . Comment : Did you find out if there is a problem either in GA itself or the documentation", "Question : I have a website where I send events to Google Analytics using javascript function : .. . .. . ga send event showphone feedback result .. . .. . However I also need to send some similar events from server-side using PHP . I tried this quick start tutorial : Hello Analytics API : PHP quickstart for service-accounts https : developers.google.com analytics devguides reporting core v3 quickstart service-php and reporting works like a charm but I have no idea how to send event . Could you please show me step-by-step what I should code to send exactly same event like mentioned above . Comment : SO isn t a guide tutorial place we don t do step-by-step . Comment : Ok i know but anyway i haven t found any method in that GA API to send events and need help of master . Comment : not that I m a pro with GA but as far as I am aware events on GA are only handled with JS as most of them are front end actions . This is explained quite step-by-step here : developers.google.com analytics devguides collection https : developers.google.com analytics devguides collection analyticsjs events Comment : I know about JS methods as i mentioned above but there have to be a way to send the same information using server-side . Comment : @DaImTo - Feel free to do that but OP asked for a step-by-step . And while I would tell him if he s going the wrong way it requires for me to know that he is in fact going to wrong way .. . Answer : Hello Analytics API : PHP quickstart for service-accounts https : developers.google.com analytics devguides reporting core v3 quickstart service-php is not going to help you at all . That code uses the core reporting API the core reporting API is for requesting data from Google Analytics not sending data to Google Analytics . To send data to Google Analytics we use the Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 . The measurement-protocol is used to send information to Google analytics the JS snippet you posted also uses the measurement-protocol . You can use the measurement-protocol from any language that supports HTTP post or Http Get . That being said there is no PHP specific library for sending information to Google analytics you are going to have to format your post yourself . A tip would be to use Validating hits https : developers.google.com analytics devguides collection protocol v1 validating-hits to check it before you send it to Google while you are developing this . It will probably look something like this Comment : Thank you I ve seen that but thought that there are some methods in mentioned API for sending . So do i need just POST or GET URL and that s it But what to do with authorisation Or that should be sent only from registered server Comment : Nope measurement-protocol is the only way to send tracking data to Google analytics . The other APIs are just for requesting data and account administration . Comment : It seems like everyone can take my URL and do something weird with my stats Comment : well not your url but yes you can view the source of someone s website get there Google Analytics tracking id and send garbage data to there Google Analytics account using the Measurement protocol . There are already bots doing this its called referral spam . Google is working on the problem . Comment : Remember to check the real-time reports events wont show up in the standard reports for 24 hours .", "Question : according to Analytics.js send method documantation https : developers.google.com analytics devguides collection analyticsjs method-reference send I have a question : .. . .. . After I send a ga send .. . method does it have to execute a Get or Post request or there is another implementation for this calling .. . Answer : yes it has to send a HTTP Post or a HTTP get . Reason : .. . .. . analytics.js uses the Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 reference . The only way to communicate with the google-analytics measurement-protocol is with a HTTP post or a HTTP get", "Question : I am using the enhanced ecommerce plugin for Google Analytics in my store . I am using analytics.js to send transaction information in the checkout success page . After completing the transaction I want to update some custom metrics associated with products in the transaction which are not available in the checkout success page . I was wondering if it is possible to do this via the measurement-protocol and if so how Thanks .. . Answer : It is not possible to update data that has already been sent to Google Analytics . The measurement-protocol works exactly as analytics.js does as a matter of fact analytics.js uses the measurement-protocol . It is only used to send information to Google analytics .", "Question : In the Documentation for Google Analytics Collection Limits and Quotas https : developers.google.com analytics devguides collection protocol v1 limits-quotas .. . .. . It gives the rate limits that are implemented by the various Google-provided libraries . I can t seem to find a published rate limit for users that are POSTing directly to measurement-protocol https : www.google-analytics.com collect . Is there one and if so what is it .. . .. . Edit on 10 July 2015 - .. . .. . A few commenters asked for an example of the kind of data I am sending in . Using a series of calls to wget with a sleep of one second between each call . Here is an example with the app name and tracking code removed : .. . .. . I ve tried sending these queries to the debug endpoint and all of them are valid . My first upload worked as expected and reports looked good . Subsequent uploads of the same data set to different GA properties have had mixed results . Sometimes no data appears in reports . Sometimes partial data appears in reports . During upload realtime reports always show activity though . Comment : I seem to be getting unpredictable results uploading hits via the Measurement Protocol API . Sometimes hits appear in historic reports sometimes not . The debug collect endpoint tells me my hits are fine . Suspect that my hits are sometimes getting filtered out as spam maybe because I m uploading too quickly or at too high a volume from the same IP address . Comment : In the unluckily undying words of some outsourced colleagues pleez send me teh codes Or at least a reasonably simplified version of it so we have a chance to reproduce the problem . Comment : @EikePierstorff I added an example of the kind of calls to wget I am using . .. . Answer : Directly from the documentation Google Analytics Collection Limits and Quotas https : developers.google.com analytics devguides collection protocol v1 limits-quotas .. . .. . These limits apply to the Web Property Property Tracking ID . .. . 10 million hits per month per property .. . .. . Measurement protocol .. . .. . Universal Analytics Enabled .. . .. . This applies to analytics.js Android iOS SDK and the Measurement Protocol . .. . 200 000 hits per user per day 500 hits per session not including ecommerce item and transaction hit types . If you go over either of these limits additional hits will not be processed for that session day respectively . These limits apply to Premium as well . Now I agree it doesn t specifically state the per second it rate for measurement-protocol but the above one dumped Measurement in with analytics.js so I think we can assume its .. . .. . analytics.js : .. . .. . Each analytics.js tracker object starts with 20 hits that are replenished at a rate of 2 hit per second . Applies to all hits except for ecommerce item or transaction . But just to make sure I am sending an email off to the development team they should make it more clear where the per second rate of the measurement-protocol lies . I will repost here when I hear from them .. . .. . Response from Google .. . .. . The Measurement Protocol does not do any kind of rate-limiting or quota-ing by IP address or tracking ID or anything like that . However most of the client libraries do rate limit in some form or another . .. . As Linda points out in her answer there are various limits and quotas imposed by the back end but those are done at processing time not collection time . Conclusion .. . .. . There is no limit to sending data through the measurement-protocol . But when the data is processed limit may be applied . I think they may be referring to the max 2 million hits a month . It seams it s the libraries that apply limits on how fast you can send data not the measurement-protocol directly . Comment : Looking forward to gleefully handing over the bounty in return for a definitive statement from Google on this matter . Comment : Actually the documentation says When the count is 0 the maximum limit has been reached and no new requests are sent which suggests that the send quota the docs are referring to is enforced at the client-side . I too hope this get s a definitive answer : - Comment : Google has not officially acknowledged the spam problem or what they intend to do about it yet . Comment : Status : buck is being passed . My email was forwarded to someone else on the team . Could it be they don t know the answer either Comment : Yup me too . I m sure one could make this a bit more sciency : -", "Question : I m using measurement-protocol for my desktop application . With this following URL I able send single request to Google Analytics GA . But I want to send multiple request to GA . According to the documentation with batch we can send multiple requests . I have tried this URL .. . .. . But in report only 3rd event getting recorded . Please help me to fix this issue . Comment : Not tested but I m pretty sure that with a batch request you d need to do a POST request and send the payload in the body . AFAIK there is no way to have multiple query-string parameters with the same name in the same URL . .. . Answer : You should send the payload data in the body as raw text and on separate lines . Also make sure you make a POST request . That worked for me . Here is an image showing how this looks in Postman : .. . .. . Batch request to Google Analytics Measurement Protocol http : i.stack.imgur.com SeAKY.png .. . .. . From Postman you can then generate the code for the language you use . E.g for PHP Curl it looks like this .", "Question : When setting up Google Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 what type of Google Analytics Property should I create There does not seem to be a Universal Analytics or Measurement Protocol option which is the source of my confusion and the reason for my question . The two choices are Web Site and Mobile Application and both seem to need configuration beyond what is suggested as the requirements in the Measurement Protocol page . Comment : The measurement-protocol doesn t care if its universal or application Google analytics its up to you to send the correct data for the different types of analytics accounts . Comment : I m still trying to figure this out but I did create both Mobile and Web properties . Only the Web Property type will accept events and page views from Measurement Protocol API . I was sending events from a mobile-application in C++ to both Mobile and Web Properties and only Web Properties were recording the events . Comment : Send screenviews to mobil pageviews to web Comment : There are a few undocumented required fields for Application accounts . Check out the app fields if I remember there are 4 of them app name app version ans a couple of others Comment : They are in the documentation it just doesn t state that they are required . I was bit buy this last year . This might help daimto.com monitoring-quota-usage-for-google-apis http : www.daimto.com monitoring-quota-usage-for-google-apis .. . Answer : The Measurement Protocol is property-agnostic . If you go to this hit-builder site https : ga-dev-tools.appspot.com hit-builder you will notice that it doesn t ask what type of property you are using ie . UA vs classic GA . It just needs to know the property ID type of hit client ID and version number . Comment : I agree that it should be property-agnostic but my testing results do not agree with this theory . I created both property types and submitted hits validated with hit builder to both property types . Only the Web Property logged the information . The Mobile Property did not . Comment : Can you show the hits you were sending to both the web and mobile app properties Comment : I m accepting this answer but it does not match my results -- the Measurement Protocol is property-agnostic but the API isn t . Hit Builder does ask what type of property you are using it queries it from the property you selected . I was able to get Web Site properties to take events from Measurement Protocol which is what I would suggest people who read this question use .", "Question : I was checking GA Measurement Protocol to send data to GA from backend.Which is working fine.Url i am using is : .. . .. . Please replace UA-XXXXXXX-1 with your own tracking id . Now i have a website which is GA enabled using javascript way.I checked in Chrome inspect that it sends information to google through url : .. . .. . I can use this url too to send information to google from backend . What s special and new in Measurement Protocol because using this url too i can send data to google for analytics purposes I need to send data from backend to GA so please guide . Comment : Try and figure out what all the parameters in the second url mean measurement-protocol is nicely documented . Comment : @EikePierstorff : Is documentation the only reason .. . Answer : The measurement-protocol is now the backbone for data collection for Universal Analytics for all versions web mobile etc . Unlike the gif-method it is well documented and it can be called from every device programming language that can send http requests it will still return a transparent gif though . The main reason for using the measurement-protocol is that everything else is deprecated and Google has announced that support for older tracking methods will be dropped . It looks like your second example uses an older version of the Analytics tracking code current versions send their calls to the https : www.google-analytics.com collect endpoint . You should not invest a lot of effort in developing solutions based on deprecated technology especially if it offers no advantages over the current versions .", "Question : In our project we stored all users event data in our database for over one year but it s not indexed . now we are going to use google-analytics to store our analytics and analyze the report using google-analytics dashboard . but before start using google-analytics i would like to emigrate all old statics about 2 million events to google-analytics . for this matter i should use Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 reference and it s limit allow me to transfer 2 million hits with no problem . but i didn t succeed to know how to set the time of the event . Measurement Protocol has Queue Time https : developers.google.com analytics devguides collection protocol v1 parameters qt but google says : .. . .. . Values greater than four hours may lead to hits not being processed . how it s possible to transfer 2 million events to google-analytics with there event time Thanks Comment : It isn t . I m not sure one can say much more about that . Comment : @EikePierstorff thank you for your comment but can you think about any work around maybe by using custom dimensions .. . Answer : You are correct you can use the measurement-protocol to send events data directly to google-analytics . I don t see any problem in sending 2 million events . However its not possible to set the event time longer then four hours ago . Queue time is used to set the time that the event occurred as you can see it cant be more then four hours ago and I have found that if you do set it to four hours ago its a bit fuzzy if the data is correct or not . This feature is probably most use in mobile-devices where they may go off line for a short time you can store the data then send it all once the device is online again . So the dates will be the date that you sent the event to Google Analytics you cant back date the data to more then four hours ago . So I am not sure how much use the data will be to you when it is all inserted . Comment : Thank you for your answer but do you have any work around maybe by using custom dimensions Comment : wont matter you still wont be able to get any useful analytics out of 2 million rows inserted today with a custom dimension of some date a year ago . Everything is going to be analyzed as-if it was all the hits happened today . Have you considered putting your data in big query and using that to analyze it Comment : the problem that we need to stop storing statistics in our database and move all the management to google-analytics . because it s simple we have not used bigquery but we used keen.io Comment : just start recording to Google analytics now . You like a lot of others in the past may have to accept that the old data you had stored is not valid in todays world . Comment : can you please help me with this question : stackoverflow.com questions 38101815 http : stackoverflow.com questions 38101815 how-to-count-newusers-per-device-google-analytics", "Question : I was checking GA Measurement Protocol to send data to GA from backend.Which is working fine.Url i am using is : .. . .. . Please replace UA-XXXXXXX-1 with your own tracking id . Now i have a website which is GA enabled using javascript way.I checked in Chrome inspect that it sends information to google through url : .. . .. . I can use this url too to send information to google from backend . What s special and new in Measurement Protocol because using this url too i can send data to google for analytics purposes I need to send data from backend to GA so please guide . Comment : Try and figure out what all the parameters in the second url mean measurement-protocol is nicely documented . Comment : @EikePierstorff : Is documentation the only reason .. . Answer : Google measurement-protocol is very useful when implementing distributed solution of a service like restful APIs . The client is not known by the server each client world wide can call the rest API so no javascript code is possible to be injected at the client . Measurement protocol enabled us to track which kind of devices are calling our API how many requests per endpoint etc.. .", "Question : In our project we stored all users event data in our database for over one year but it s not indexed . now we are going to use google-analytics to store our analytics and analyze the report using google-analytics dashboard . but before start using google-analytics i would like to emigrate all old statics about 2 million events to google-analytics . for this matter i should use Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 reference and it s limit allow me to transfer 2 million hits with no problem . but i didn t succeed to know how to set the time of the event . Measurement Protocol has Queue Time https : developers.google.com analytics devguides collection protocol v1 parameters qt but google says : .. . .. . Values greater than four hours may lead to hits not being processed . how it s possible to transfer 2 million events to google-analytics with there event time Thanks Comment : It isn t . I m not sure one can say much more about that . Comment : @EikePierstorff thank you for your comment but can you think about any work around maybe by using custom dimensions .. . Answer : There is no way to do this but you can make it easier on yourself . Unfortunately there is no way to add remove or otherwise edit Google Analytics hit data retrospectively except to delete all of it . You also cannot copy or move it between accounts or download it all . You are not the first to have to come to terms with this . In this situation we recommend to our clients that they run their new and old systems in parallel-for a testing period usually 6 months or a year before switching off one of them . Yes it s difficult to let go of old data but sometimes it has to be done . Comment : Thank you for your answer Comment : can you please help me with this question : stackoverflow.com questions 38101815 http : stackoverflow.com questions 38101815 how-to-count-newusers-per-device-google-analytics Comment : @david Sorry I don t do app analytics . Comment : Thanks no worries . but it s has the same principle .", "Question : we tried to track email opens with google-analytics and measurement-protocol . We exactly followed instructions given in http : www.lunametrics.com blog 2013 06 17 email-tracking-google-analytics and http : dyn.com blog tracking-email-opens-via-google-analytics .. . .. . The problem is that every email open is counted also as a session which is not correct . Can you give me any advice how we can track opens without recording sessions Thank you .. . Answer : Session begins with any interaction . Don t be sad it is correct . You can extend your data with some identifier like virtualpagname or whatever and than make segment or filter . You can either use datasource parameter : .. . .. . https : developers.google.com analytics devguides collection analyticsjs field-reference dataSource", "Question : I have a custom metric in Google Analytics . I m inserting it using Google Analytics Measurement Protocol https : developers.google.com analytics devguides collection protocol v1 hl en . When I make a request to Google Analytics is there a way to replace the existing value of the metric instead of adding new value to it Let s say that the current value of that metric is cm1 100 . When I send the value 500 via Measurement protocol I want cm1 to equal 500 not 500+100 600 . How do I do that I m currently using this kind of URL to insert custom metrics : .. . .. . https : www.google-analytics.com collect v 1 ni 1 tid https : www.google-analytics.com collect v 1 ni 1 tid tracking id cid cid t event ec category ea action el label cm1 500 .. . Answer : No there is not a way to do that . The reason being is that the scope of custom metrics is defined either hit level or product level . https : support.google.com analytics answer 2709828 hl en", "Question : null .. . Answer : we are seding requests like this throught the google-analytics measurement-protocol to track user interaction there . For us its important to be to link a interaction to a specific user so we where happy to be able to set the cid attribute of the protocol . my problem is that I cannot find this Client ID somewhere inside the reports of google-analytics . Even when customizing the reports I cannot find a Dimension which allows me to display this information . Do you have an idea of how the cid could be found there Comment : I think you need to send it as a custom dimension if you want to be able to see it . There doesn t appear to be a way to see client id or user id . Comment : thanks custom dimension seems to be the right thing actually.. . but in the above example I cannot make the system showing them up.. . I just added a cd1 12345 param to the request.. . do you know if there is another way of doing this Comment : remember its probably going to take 24 - 48 hours to show up in the standard report if you just sent that now .", "Question : I wrote the following class to measure my server-side traffic through GoogleAnalytics measurement-protocol . The problem is that all active visitors come from Italy which my server is currently on it - I assume the problem cause from fsockopen request IP so is there any way to send user real IP address instead Any suggestion would be appreciated.. . Comment : Can you check if the ClientID is correctly retrieved Comment : @PetrHavl k ClientID is correct Unfortunately I have to find a way to pass user IP instead of server IP . Comment : I am quite sure there is no such parameter : - developers.google.com analytics devguides collection protocol https : developers.google.com analytics devguides collection protocol v1 parameters Comment : @PetrHavl k I m sorry but due to terms we can t send off-topics URL in comments posts - Anyway I don t have any problem with regular visit . Comment : just in time I guess : - awesome .. . Answer : Finally Google add this feature to measurement-protocol also it s possible to override User-Agent too . Source https : groups.google.com forum topic google-analytics-measurement-protocol 8TAp7 I1uTk Comment : That s great news indeed", "Question : In the Documentation for Google Analytics Collection Limits and Quotas https : developers.google.com analytics devguides collection protocol v1 limits-quotas .. . .. . It gives the rate limits that are implemented by the various Google-provided libraries . I can t seem to find a published rate limit for users that are POSTing directly to measurement-protocol https : www.google-analytics.com collect . Is there one and if so what is it .. . .. . Edit on 10 July 2015 - .. . .. . A few commenters asked for an example of the kind of data I am sending in . Using a series of calls to wget with a sleep of one second between each call . Here is an example with the app name and tracking code removed : .. . .. . I ve tried sending these queries to the debug endpoint and all of them are valid . My first upload worked as expected and reports looked good . Subsequent uploads of the same data set to different GA properties have had mixed results . Sometimes no data appears in reports . Sometimes partial data appears in reports . During upload realtime reports always show activity though . Comment : I seem to be getting unpredictable results uploading hits via the Measurement Protocol API . Sometimes hits appear in historic reports sometimes not . The debug collect endpoint tells me my hits are fine . Suspect that my hits are sometimes getting filtered out as spam maybe because I m uploading too quickly or at too high a volume from the same IP address . Comment : In the unluckily undying words of some outsourced colleagues pleez send me teh codes Or at least a reasonably simplified version of it so we have a chance to reproduce the problem . Comment : @EikePierstorff I added an example of the kind of calls to wget I am using . .. . Answer : Last Update : Please watch this video which explains all GA quotas policies : https : youtu.be 1UfER93ALxo .. . .. . In particular your issue might be result-of 10 requests 1 second limitation : https : youtu.be 1UfER93ALxo t 5m27s .. . .. . I can confirm the same thing . In my case I had own buildHitTask which constructs URL for a measurement-protocol request MPR and stores it in the hitPayload field . But instead of original GA reporting - I was saving those URLs into cookies for delayed reporting . In my experiment only 10-20 of 2 000 measurement-protocol requests were actually stored . .. . .. . Rest of hits are not available in GA Reporting UI neither API or BigQuery . Each request was sent with 2 seconds delay via new Image method and slowdown in case of errors . Received results are not consistent . Both success and failed hits are randomly distributed across whole time period . Please let me know in case if you find more details on this constraint", "Question : 1 . I m trying to push Landing Page using Measurement Protocol API with PHP Library . I am using these parameters .. . .. . Refering To this url .. . .. . https : developers.google.com analytics devguides collection protocol v1 parameters dl .. . .. . Value of dl parameter reflects on Screen Name instead Landing Page . I want to know how to override Landing Page data . Can anyone tell me 2 . If I provide dl parameter Google Analytics does not override ck cn keyword and campaign name respectively values . If I don t provide dl parameter it will override keyword and campaign name . Please help me.. . Thanks Comment : cd or Screen name is for application google-analytics accounts and will only be displayed in an application Google Analytics account . Dl is document location or the webpage that the event was sent from and will display in a website google-analytics account . CK and cn are for campaign tracking . The measurement-protocol isn t going to over ride anything on you . Any values you want recorded you have to send . Comment : First of all thank you for replying . When I m sending dl google-analytics does not accepts keyword and campaign name . If I don t send dl parameter I can see keyword and campaign name in second dimension . Can you tell me how can I make dl ck and cn being recorded in google-analytics for a single Event I want to see campaign keyword and landing page as second dimension in Top Events report . .. . Answer : May be I was missing something I just changed dl urlencode location to dl rawurlencode location and I changed cid 111111 .rand 101 9999 previously it was original captured value of ga cookie of some particular session like 1734715495.1452625302 .. . .. . Secondly dl value is still going to Screen Name dimension in Google Analytics report . I want to view it as Landing Page what parameter should I use Comment : if you are seeing screen name in your google-analytics account I think you have an application google-analytics account you are not going to see DL . that s for web accounts ." ] }
[ "yes-answer-long", "yes-answer-short" ]
user
UNK_RELATION
circumflex-orm@sql@190
circumflex-orm -- circumflex-orm is an object-relational mapping framework written in scala for creating concise and efficient data-centric applications with a dsl resembling the syntax of @placeholder .
{ "confidence": [ 66.27149963378906, 64.3127212524414, 63.33301544189453, 61.67223358154297, 58.74265670776367, 58.74265670776367, 54.75291061401367, 54.017547607421875, 50.6083984375, 47.76611328125, 46.38936233520508, 46.38936233520508, 46.003509521484375, 45.36133575439453, 45.33980941772461, 44.36495590209961, 44.14585876464844, 43.34856414794922, 41.93865203857422, 41.808021545410156, 41.808021545410156, 39.09210205078125, 39.00414276123047, 38.91703414916992, 37.446285247802734, 37.35730743408203, 36.979736328125, 34.55343246459961, 30.67911148071289, 28.003414154052734, 27.158695220947266, 25.542707443237305, 24.487491607666016, 24.487491607666016, 24.18214225769043, 23.43265724182129, 22.881742477416992, 22.578235626220703, 22.12162208557129, 21.505367279052734, 20.596269607543945, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.03827476501465, 20.009206771850586, 19.240468978881836, 19.240468978881836, 19.13492774963379, 19.126243591308594, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 18.01386833190918, 15.587562561035156, 15.587562561035156, 15.587562561035156, 15.587562561035156, 15.587562561035156, 15.587562561035156 ], "content": [ "i am trying to integrate circumflex-orm into a play-2.0 scala app .", "I ve been using Circumflex ORM with Hypersonic .", "I also wrote i blop post for the integration of circumflex-orm into play if anyone is interested : integrate circumflex-orm in play 2.0 - scala http : blog.sveri.de 2012 04 19 integrate-circumflex-orm-into-play-2-0-using-scala", "Has anyone successfully used Circumflex ORM http : circumflex.ru projects orm index.html from an sbt project", "I m open to being told that Circumflex ORM sucks and choosing something else .", "I am learning circumflex-orm and using maven with idea for the first time .", "I did post a question at the circurmflex group and they said they do it with a servletfilter this is the actual code for it : circumflex-orm transaction integration http : circumflex.ru api 2.1 circumflex-web src main scala filter.scala.html - look at main lifecycle .", "I m trying to add some convenience functions over the Circumflex ORM http : circumflex.ru docs orm assembly.html library but I m running into some barriers trying to use Scala implicit conversions .", "I want to combine the form binding from play 2.0 framework with a class extending Record from the circumflex-orm website http : circumflex.ru projects orm index.html .", "Are you using a circumflex library compiled against 2.10", "How can I specify my Circumflex properties such as orm.connection.driver", "first some elements from the Circumflex API not stated above .", "Circumflex 2.x doesnt appear to be built against scala-2.10 which is needed for play 2.1 .", "I m using a library Circumflex ORM http : circumflex.ru projects orm index.html that lets you define schemas as follows : .. . .. . This works because of an implicit view that s in-scope within Record : .. . .. . I m trying to introduce a new extension method alongside TEXT etc .", "Would you mind us borrowing this into Circumflex 1.1", "The circumflex 3.0 is being built-in 2.10 but its current only in snapshot .", "I m trying to use Circumflex ORM http : circumflex.ru projects orm index.html as suggested on StackOverflow - here http : stackoverflow.com questions 1362748 wanted-good-examples-of-scala-database-persistence here http : stackoverflow.com questions 1140448 what-orms-work-well-with-scala and here http : stackoverflow.com questions 1894999 what-good-orm-api-will-work-well-with-scala-or-erlang to connect to a local embedded Apache Derby database over JDBC from a Scala project built with simple build tool .", "I fixed it using these info : reference https : groups.google.com forum fromgroups topic circumflex-scala ne-fkznMLew .. . .. . First take last version of circumflex from Github : .. . .. . Following the suggestion change line in the file orm src main scala relation.scala .. . .. . line 55 : .. . .. . to .. . .. . Now we can compile it install and use in our Play 2.1 App .. . .. . in case you need only one module : .. . .. . Now edit your project Build.scala file to add dependency and local rep", "Update .. . .. . I added circumflex to dependencies and tried your exact example .", "Assuming Circumflex is using normal classpath loading it should probably go in src main resources .", "I have not used Circumflex so perhaps it is doing something odd but that would be the typical location for properties in an SBT project .", "in Hibernate you need to set the dialect.. . .. . .. . And it seems you can work around it by setting the orm.defaultSchema property http : github.com inca circumflex blob 59566f8328c07d8884b3050a3ee65898ecc3bb01 circumflex-orm src main scala orm.scala L59 to something other than public which seems to be a reserved word http : db.apache.org derby docs dev ref rrefkeywords29722.html in Derby .", "If you explicitly state that as the generic parameter R doing .. . .. . it should work I did it on an example quite close to your code but not actually using circumflex .", "It s possible you need to tell Circumflex to use Derby syntax explicitly instead of expecting it to be inferred from the JDBC driver classname and URL .", "Frankly I ve never used implicit parameters and I ve never met a condition which forced me to use them Circumflex itself is written without implicit parameters and goes pretty well as far as I am concerned .", "method -- you can override it in your dialect and Circumflex will forget about explicit schema .", "Hopefully this question is answerable without much knowledge of Circumflex but just in case here s http : circumflex.ru api 2.0.2 index.html the documented source code reference .", "The main problem is if you use circumflex you don t write case classes so you don t have apply and unapply methods by default .", "And final edit most of the time people don t bother to use an explicit schema name when creating tables and they just get the default but Circumflex seems to always add it so for Derby you should be able to use APP as the schema name or create your own schema beforehand and use its name .", "Here s the driver and URL components of the cx.properties file : .. . .. . These map to the instance creation of the reflected driver and create Connection model with raw JDBC or the equivalents in persistence.xml - Circumflex is using a short and sweet properties file because you know it s not XML and that s a good thing .", "Thanks for creating such a great framework its nice to be able to contribute back to it :", "Play 2.1 moved to Scala 2.10 from 2.9.x .", "Now you should use the scala-maven-plugin https : github.com davidB scala-maven-plugin .", "Is programming in scala a good reason or I should put scala soursces in src main java", "@Jeriho I have no experience with Scala but since AFAIK you need a different compiler for Scala source I would put them under src main scala .", "Update : I ve accepted an answer but I m still very curious why what I tried doesn t work to understand Scala implicit behaviors .", "I ve updated the play framework to version 2.1 in my application and it don t work more .", "I previously tried breaking this problem down into smaller simpler problems here http : stackoverflow.com questions 6840678 understanding-type-arguments-do-not-conform-to-type-parameter-bounds-errors-in 6841469 6841469 and here http : stackoverflow.com questions 6849137 scala-type-parameter-bound-error-in-subclass-but-not-superclass but I realized that answers to those while technically correct were not helping me understand this particular case .", "Record has an abstract def relation : Relation PK R .. . Table K R extends Relation K R .. . .. . You define relation in the class User as the object User which is a Table Int User hence a Relation Int User .", "The dependencies I ve added in my sbt project file that are directly relevant are : .. . .. . I have created a short example model which defines a simplified version of the table that the documentation describes : .. . .. . This seems to compile okay and I can instantiate the Country object using a Scala 2.8.0 RC5 shell invoked with sbt console and create an object ActiveRecord-style and then save it like this : .. . .. . According to the documentation this should run a validation over the object and then insert it into the database .", "You need to extend ru.circumflex.orm.Dialect to supply the correct SQL syntax for Derby and declare this class in your cx.properties file .", "A properties.cx file is not picked up as my runtime classpath apparently contains only sbt-launch-0.7.3.jar .", "Where are you placing the properties.cx file", "It s picking up the property when I put it in src main resources .", "Thanks", "called BYTEA .", "So I know I need my own implicit helper class : .. . .. . Now I need an implicit in scope whenever I m defining new records but I don t want to write an import statement every time : .. . .. . And I don t want to introduce this implicit to any other scopes besides the record definitions .", "So one idea is to subclass Record or introduce a mixin then define my schema records by extending MyRecord instead of Record or always mixing in MyMixin .", "I first tried : .. . .. . This produces : .. . .. . So instead I tried : .. . .. . But then I get these two issues when defining a record : .. . .. . The errors are : .. . .. . After more fiddling I surprised myself by finding something that worked : .. . .. . I m curious to understand what just happened here as well as perhaps some more examples to help me wrap my head around things better so that I don t feel like I m always fiddling-until-it-works .", "Apologies for the question title - not sure it makes any sense .", "Your first error is the simpler one and easily solved by your final solution .", "The self-type R in the declaration .. . .. . forces every descendant of Record to ensure that it will be an R too it does not make it an R the descendant will have to do something to be an R .", "In practice that means that in class X extends Record PK R R must be an ancestor of X and as there is also R : Record PK R it should be X most of the time but as we will see at the end this may not be the case .", "This constraint disappears in MyRecord hence your first error .", "Your final solution states the constraint again and that s the end of it .", ".. . .. . Your second version is more complicated .", "I ll start with the second error .", "However your class User is a MyRecord Int User but that means it is a Record Int MyRecord Int User not a Record Int User .", "The R of Record the one that matters here is MyRecord Int User not User .", "relation must thus be Relation Int MyRecord Int User .", "A Relation Int User is not a Relation Int MyRecord Int User even when User is a MyRecord Int User .", "In general if B is an A C B is not a C A except if class C states so by being declared C +X rather than C X .", "hence the message about Relation being invariant no + and suggesting a +R so that it would be covariant in R .", "I m really less sure about the error in DefinitionHelper .", "It seems related to the R being MyRecord Int User again .", "Why the compiler does not infer that I do not know .", "Anyway the fact that your User is not a Record Int User but Record Int MyRecord Int User is bound to cause problems .", "The actual solution is much simpler .", "But if i retrieve the same list again my object did not change .", "Then it says : too many arguments for method apply : x : A Some A in object Some Some t.name t.description", "You have to write your own apply and unapply methods in your Task companion-object like this :", "It turned out to be easier than i thought a guy at the irc thanks noelw pinpointed me to these docs : scala action composition http : www.playframework.org documentation 2.0 ScalaActionsComposition Reading through that the answer is as easy as possible : .. . .. . First write your own action class like this : .. . .. . And then call your actions like this : .. . .. . Thats it .", "In this thread http : groups.google.com group play-framework browse thread thread e3316c19cb5f7631 I ve just encountered guys are discussing a way to execute something before and after each request processing which seems exactly what you are looking for .", "Any other answers would be greatly appreciated .", "Below why doesn t the implicit-conversion trigger", "I suspect there s some complex interaction with the subclassing and or the recursive type parameters .", "Not sure it will help in this case but in general it is recommended to specify return-type of the Implicit conversion .", "Also answering the question that what is the type of new def GET f : RelationNode PK R Predicate 0 may help you solve the problem .", "@Jamil Explicitly specifying the return-type and hoisting the anonymous-class into a named class isn t making any difference .", "Is this really the minimum code needed to demonstrate the issue", "@SethTisue Well understanding the exact interactions that are relevant is half of my confusion .", "If you have any suggestions then I m happy to revise .", "Anyhow I ve been able to reproduce your scenario and make it work .", "It took 2 implicits however to make everything go fine .", "Here s the code : .. . .. . Hope it helps .", "I guess I m mainly curious why two implicits are necessary and why the original doesn t work .", "I ll mark this answer is accepted but I would love to hear any other answers insights on this", "Here is a simple controller : .. . .. . And here is model of a country : .. . .. . When page is opened I get a follow error : .. . .. . Can anyone help me to solve this problem", "The exception suggests that models.Country is not being compiled or is not in the classpath .", "Thanks .", "It s working .", "You can get the snapshot here : .. . .. . https : oss.sonatype.org content repositories snapshots .. . .. . Note that the package names have changed from ru.circumflex to pro.savant.circumflex so you may need to refactor your import statements .", "It didn t help I gets the same error .", "But what s most interesting is all tests passed succefully .", "I ve followed the instructions carefully but am having some interesting problems .", "I get the following exception : .. . .. . I found this thread http : www.mail-archive.com [email protected] msg01080.html where someone is having a similar problem with Encountered public and Apache Derby but the replies don t seem to suggest a useful way of going forward .", "Any ideas what might be causing this", "Sorry if this isn t a particularly interesting question - I m still finding my way in Javaland after being spoiled by the pure out-of-the-box simplicity of Rails ActiveRecord implementation .", "e.g .", "Thanks Alex for this and for the help on IRC ." ] }
{ "confidence": [ 83.68339538574219, 83.35188293457031, 80.3609390258789, 76.45147705078125, 74.20189666748047, 70.40947723388672, 66.71788024902344, 64.62281036376953, 61.424537658691406, 59.18531799316406, 57.864768981933594, 53.025638580322266 ], "content": [ "Question : I m trying to use Circumflex ORM http : circumflex.ru projects orm index.html as suggested on StackOverflow - here http : stackoverflow.com questions 1362748 wanted-good-examples-of-scala-database-persistence here http : stackoverflow.com questions 1140448 what-orms-work-well-with-scala and here http : stackoverflow.com questions 1894999 what-good-orm-api-will-work-well-with-scala-or-erlang to connect to a local embedded Apache Derby database over JDBC from a Scala project built with simple build tool . I ve followed the instructions carefully but am having some interesting problems . Here s the driver and URL components of the cx.properties file : .. . .. . These map to the instance creation of the reflected driver and create Connection model with raw JDBC or the equivalents in persistence.xml - Circumflex is using a short and sweet properties file because you know it s not XML and that s a good thing . The dependencies I ve added in my sbt project file that are directly relevant are : .. . .. . I have created a short example model which defines a simplified version of the table that the documentation describes : .. . .. . This seems to compile okay and I can instantiate the Country object using a Scala 2.8.0 RC5 shell invoked with sbt console and create an object ActiveRecord-style and then save it like this : .. . .. . According to the documentation this should run a validation over the object and then insert it into the database . I get the following exception : .. . .. . I found this thread http : www.mail-archive.com [email protected] msg01080.html where someone is having a similar problem with Encountered public and Apache Derby but the replies don t seem to suggest a useful way of going forward . Any ideas what might be causing this Comment : Sorry if this isn t a particularly interesting question - I m still finding my way in Javaland after being spoiled by the pure out-of-the-box simplicity of Rails ActiveRecord implementation . I m open to being told that Circumflex ORM sucks and choosing something else . .. . Answer : I ve been using Circumflex ORM with Hypersonic . It only supports Postgres MySql and Oracle by default . You need to extend ru.circumflex.orm.Dialect to supply the correct SQL syntax for Derby and declare this class in your cx.properties file . ie .. . .. . Here is my Hypersonic dialect file it might help you if you are just looking for a simple in memory database.. . .. . .. . import ru.circumflex.orm . Comment : Would you mind us borrowing this into Circumflex 1.1 Comment : Go for it . Thanks for creating such a great framework its nice to be able to contribute back to it :", "Question : i am trying to integrate circumflex-orm into a play-2.0 scala app . It works so far as i can retrieve and save elements into db . What does not work is the cache handling - transaction management . For instance retrieve a list of objects change one store it into db works fine . But if i retrieve the same list again my object did not change . It did not change in the meaning of it did change in the database but the cache doesn t know anything about it . I did post a question at the circurmflex group and they said they do it with a servletfilter this is the actual code for it : circumflex-orm transaction integration http : circumflex.ru api 2.1 circumflex-web src main scala filter.scala.html - look at main lifecycle . Something like this would be enough : .. . .. . But i have no idea how to integrate this into a play 2.0 application . Thanks in Advance Sven Comment : In this thread http : groups.google.com group play-framework browse thread thread e3316c19cb5f7631 I ve just encountered guys are discussing a way to execute something before and after each request processing which seems exactly what you are looking for . Unfortunately the Plugin trait in Play 2.0 only has onStart and onStop methods which don t seem to suffice . So any output from Play 2.0 developers is welcome . Comment : There is a GlobalSettings class too but that wont do neither as there are no such methods there too unfortunately . .. . Answer : It turned out to be easier than i thought a guy at the irc thanks noelw pinpointed me to these docs : scala action composition http : www.playframework.org documentation 2.0 ScalaActionsComposition Reading through that the answer is as easy as possible : .. . .. . First write your own action class like this : .. . .. . And then call your actions like this : .. . .. . Thats it . I also wrote i blop post for the integration of circumflex-orm into play if anyone is interested : integrate circumflex-orm in play 2.0 - scala http : blog.sveri.de 2012 04 19 integrate-circumflex-orm-into-play-2-0-using-scala", "Question : I m trying to use Circumflex ORM http : circumflex.ru projects orm index.html as suggested on StackOverflow - here http : stackoverflow.com questions 1362748 wanted-good-examples-of-scala-database-persistence here http : stackoverflow.com questions 1140448 what-orms-work-well-with-scala and here http : stackoverflow.com questions 1894999 what-good-orm-api-will-work-well-with-scala-or-erlang to connect to a local embedded Apache Derby database over JDBC from a Scala project built with simple build tool . I ve followed the instructions carefully but am having some interesting problems . Here s the driver and URL components of the cx.properties file : .. . .. . These map to the instance creation of the reflected driver and create Connection model with raw JDBC or the equivalents in persistence.xml - Circumflex is using a short and sweet properties file because you know it s not XML and that s a good thing . The dependencies I ve added in my sbt project file that are directly relevant are : .. . .. . I have created a short example model which defines a simplified version of the table that the documentation describes : .. . .. . This seems to compile okay and I can instantiate the Country object using a Scala 2.8.0 RC5 shell invoked with sbt console and create an object ActiveRecord-style and then save it like this : .. . .. . According to the documentation this should run a validation over the object and then insert it into the database . I get the following exception : .. . .. . I found this thread http : www.mail-archive.com [email protected] msg01080.html where someone is having a similar problem with Encountered public and Apache Derby but the replies don t seem to suggest a useful way of going forward . Any ideas what might be causing this Comment : Sorry if this isn t a particularly interesting question - I m still finding my way in Javaland after being spoiled by the pure out-of-the-box simplicity of Rails ActiveRecord implementation . I m open to being told that Circumflex ORM sucks and choosing something else . .. . Answer : It s possible you need to tell Circumflex to use Derby syntax explicitly instead of expecting it to be inferred from the JDBC driver classname and URL . e.g . in Hibernate you need to set the dialect.. . .. . .. . And it seems you can work around it by setting the orm.defaultSchema property http : github.com inca circumflex blob 59566f8328c07d8884b3050a3ee65898ecc3bb01 circumflex-orm src main scala orm.scala L59 to something other than public which seems to be a reserved word http : db.apache.org derby docs dev ref rrefkeywords29722.html in Derby . And final edit most of the time people don t bother to use an explicit schema name when creating tables and they just get the default but Circumflex seems to always add it so for Derby you should be able to use APP as the schema name or create your own schema beforehand and use its name . Comment : Thanks Alex for this and for the help on IRC . Comment : The Dialect trait also has supportsSchema method -- you can override it in your dialect and Circumflex will forget about explicit schema . Forever .", "Question : Has anyone successfully used Circumflex ORM http : circumflex.ru projects orm index.html from an sbt project How can I specify my Circumflex properties such as orm.connection.driver A properties.cx file is not picked up as my runtime classpath apparently contains only sbt-launch-0.7.3.jar . .. . Answer : Where are you placing the properties.cx file Assuming Circumflex is using normal classpath loading it should probably go in src main resources . I have not used Circumflex so perhaps it is doing something odd but that would be the typical location for properties in an SBT project . Comment : It s picking up the property when I put it in src main resources . Thanks", "Question : I ve updated the play framework to version 2.1 in my application and it don t work more . Here is a simple controller : .. . .. . And here is model of a country : .. . .. . When page is opened I get a follow error : .. . .. . Can anyone help me to solve this problem Comment : The exception suggests that models.Country is not being compiled or is not in the classpath . Comment : Play 2.1 moved to Scala 2.10 from 2.9.x . Are you using a circumflex library compiled against 2.10 .. . Answer : I fixed it using these info : reference https : groups.google.com forum fromgroups topic circumflex-scala ne-fkznMLew .. . .. . First take last version of circumflex from Github : .. . .. . Following the suggestion change line in the file orm src main scala relation.scala .. . .. . line 55 : .. . .. . to .. . .. . Now we can compile it install and use in our Play 2.1 App .. . .. . in case you need only one module : .. . .. . Now edit your project Build.scala file to add dependency and local rep Comment : Thanks . It s working .", "Question : Update : I ve accepted an answer but I m still very curious why what I tried doesn t work to understand Scala implicit behaviors . Any other answers would be greatly appreciated . Hopefully this question is answerable without much knowledge of Circumflex but just in case here s http : circumflex.ru api 2.0.2 index.html the documented source code reference . I m trying to add some convenience functions over the Circumflex ORM http : circumflex.ru docs orm assembly.html library but I m running into some barriers trying to use Scala implicit conversions . Below why doesn t the implicit-conversion trigger I suspect there s some complex interaction with the subclassing and or the recursive type parameters . Comment : Not sure it will help in this case but in general it is recommended to specify return-type of the Implicit conversion . Also answering the question that what is the type of new def GET f : RelationNode PK R Predicate 0 may help you solve the problem . Comment : @Jamil Explicitly specifying the return-type and hoisting the anonymous-class into a named class isn t making any difference . Comment : Is this really the minimum code needed to demonstrate the issue Comment : @SethTisue Well understanding the exact interactions that are relevant is half of my confusion . If you have any suggestions then I m happy to revise . .. . Answer : Frankly I ve never used implicit parameters and I ve never met a condition which forced me to use them Circumflex itself is written without implicit parameters and goes pretty well as far as I am concerned . Anyhow I ve been able to reproduce your scenario and make it work . It took 2 implicits however to make everything go fine . Here s the code : .. . .. . Hope it helps . Comment : I guess I m mainly curious why two implicits are necessary and why the original doesn t work . I ll mark this answer is accepted but I would love to hear any other answers insights on this", "Question : I want to combine the form binding from play 2.0 framework with a class extending Record from the circumflex-orm website http : circumflex.ru projects orm index.html . These are my class objects : .. . .. . And this is what i try to do with the play form : .. . .. . But i get an error like this : .. . .. . And if i replace Option by Some : .. . .. . I am clueless right now and any hint would be appreciated . Thanks a lot . EDIT : I made a basic error i did name the Form : .. . .. . when the name of the class is Task . So i can change it to : .. . .. . And now i get a different error : .. . .. . I made a simple project with the needed dependencies in eclipse you can download it here and look at it if it helps : Basic Form Example http : sveri.de files public-docs sonstiges FormBindOrmExample.zip Comment : I think Some t.name t.description should help Comment : Then it says : too many arguments for method apply : x : A Some A in object Some Some t.name t.description .. . Answer : The main problem is if you use circumflex you don t write case classes so you don t have apply and unapply methods by default . You have to write your own apply and unapply methods in your Task companion-object like this :", "Question : I am learning circumflex-orm and using maven with idea for the first time . I expected that my sources in src will compile to build directory . But it doesn t happen . And if I specify sourceDirectory and outputDirectory like basedir src or project.basedir build I get intellij-idea s inspections that such folders doesn t exist sic What should I do to compile my sources .. . Answer : Thanks http : www.nearinfinity.com blogs bryan weber scala and maven with maven.html for good tutorial . Comment : Now you should use the scala-maven-plugin https : github.com davidB scala-maven-plugin .", "Question : I ve updated the play framework to version 2.1 in my application and it don t work more . Here is a simple controller : .. . .. . And here is model of a country : .. . .. . When page is opened I get a follow error : .. . .. . Can anyone help me to solve this problem Comment : The exception suggests that models.Country is not being compiled or is not in the classpath . Comment : Play 2.1 moved to Scala 2.10 from 2.9.x . Are you using a circumflex library compiled against 2.10 .. . Answer : Circumflex 2.x doesnt appear to be built against scala-2.10 which is needed for play 2.1 . The circumflex 3.0 is being built-in 2.10 but its current only in snapshot . You can get the snapshot here : .. . .. . https : oss.sonatype.org content repositories snapshots .. . .. . Note that the package names have changed from ru.circumflex to pro.savant.circumflex so you may need to refactor your import statements . Comment : It didn t help I gets the same error . But what s most interesting is all tests passed succefully .", "Question : I want to combine the form binding from play 2.0 framework with a class extending Record from the circumflex-orm website http : circumflex.ru projects orm index.html . These are my class objects : .. . .. . And this is what i try to do with the play form : .. . .. . But i get an error like this : .. . .. . And if i replace Option by Some : .. . .. . I am clueless right now and any hint would be appreciated . Thanks a lot . EDIT : I made a basic error i did name the Form : .. . .. . when the name of the class is Task . So i can change it to : .. . .. . And now i get a different error : .. . .. . I made a simple project with the needed dependencies in eclipse you can download it here and look at it if it helps : Basic Form Example http : sveri.de files public-docs sonstiges FormBindOrmExample.zip Comment : I think Some t.name t.description should help Comment : Then it says : too many arguments for method apply : x : A Some A in object Some Some t.name t.description .. . Answer : I was wrong in comment following snippet works for me . Update .. . .. . I added circumflex to dependencies and tried your exact example . It compiles fine for me I just added .. . .. . I believe you forget to include it in the question . So I can only suggest to clean and rebuild entire project . P.S . and I changed line .. . .. . but it is obvious . Comment : Thanks for your effort but this is basically the same code as i provided except the where i did use . And it gives the same error as in my question . It s not working -.- Comment : Didn t noticed : Now i see it s something with Task class . Comment : Well thats it . It seems like a clean and the rename from Form Tasks to Form Task solved it . It works now . Thank you very much .", "Question : I am learning circumflex-orm and using maven with idea for the first time . I expected that my sources in src will compile to build directory . But it doesn t happen . And if I specify sourceDirectory and outputDirectory like basedir src or project.basedir build I get intellij-idea s inspections that such folders doesn t exist sic What should I do to compile my sources .. . Answer : The Maven convention is that the compiled classes are put into target classes . Unless you have a very good reason to do it differently it is better and much less painful to stick to the convention . Comment : Is programming in scala a good reason or I should put scala soursces in src main java And if I follow this convention than I must remove sourceDirectory and outputDirectory tags I did it and got Nothing to compile - all classes are up to-date yet again . Comment : @Jeriho I have no experience with Scala but since AFAIK you need a different compiler for Scala source I would put them under src main scala . You may need to configure that source directory explicitly in Maven though .", "Question : I previously tried breaking this problem down into smaller simpler problems here http : stackoverflow.com questions 6840678 understanding-type-arguments-do-not-conform-to-type-parameter-bounds-errors-in 6841469 6841469 and here http : stackoverflow.com questions 6849137 scala-type-parameter-bound-error-in-subclass-but-not-superclass but I realized that answers to those while technically correct were not helping me understand this particular case . I m using a library Circumflex ORM http : circumflex.ru projects orm index.html that lets you define schemas as follows : .. . .. . This works because of an implicit view that s in-scope within Record : .. . .. . I m trying to introduce a new extension method alongside TEXT etc . called BYTEA . So I know I need my own implicit helper class : .. . .. . Now I need an implicit in scope whenever I m defining new records but I don t want to write an import statement every time : .. . .. . And I don t want to introduce this implicit to any other scopes besides the record definitions . So one idea is to subclass Record or introduce a mixin then define my schema records by extending MyRecord instead of Record or always mixing in MyMixin . I first tried : .. . .. . This produces : .. . .. . So instead I tried : .. . .. . But then I get these two issues when defining a record : .. . .. . The errors are : .. . .. . After more fiddling I surprised myself by finding something that worked : .. . .. . I m curious to understand what just happened here as well as perhaps some more examples to help me wrap my head around things better so that I don t feel like I m always fiddling-until-it-works . Apologies for the question title - not sure it makes any sense . .. . Answer : Your first error is the simpler one and easily solved by your final solution . The self-type R in the declaration .. . .. . forces every descendant of Record to ensure that it will be an R too it does not make it an R the descendant will have to do something to be an R . In practice that means that in class X extends Record PK R R must be an ancestor of X and as there is also R : Record PK R it should be X most of the time but as we will see at the end this may not be the case . This constraint disappears in MyRecord hence your first error . Your final solution states the constraint again and that s the end of it . .. . .. . Your second version is more complicated . I ll start with the second error . first some elements from the Circumflex API not stated above . Record has an abstract def relation : Relation PK R .. . Table K R extends Relation K R .. . .. . You define relation in the class User as the object User which is a Table Int User hence a Relation Int User . However your class User is a MyRecord Int User but that means it is a Record Int MyRecord Int User not a Record Int User . The R of Record the one that matters here is MyRecord Int User not User . relation must thus be Relation Int MyRecord Int User . A Relation Int User is not a Relation Int MyRecord Int User even when User is a MyRecord Int User . In general if B is an A C B is not a C A except if class C states so by being declared C +X rather than C X . hence the message about Relation being invariant no + and suggesting a +R so that it would be covariant in R . I m really less sure about the error in DefinitionHelper . It seems related to the R being MyRecord Int User again . If you explicitly state that as the generic parameter R doing .. . .. . it should work I did it on an example quite close to your code but not actually using circumflex . Why the compiler does not infer that I do not know . Anyway the fact that your User is not a Record Int User but Record Int MyRecord Int User is bound to cause problems . The actual solution is much simpler ." ] }
[ "yes-answer-long", "yes-answer-short" ]
sql
UNK_RELATION
openstack-cinder@openstack@59
openstack-cinder -- cinder is a block storage service for @placeholder .
{ "confidence": [ 68.18769836425781, 67.25617980957031, 59.916587829589844, 59.916587829589844, 59.83909225463867, 56.38960266113281, 53.167015075683594, 52.771724700927734, 49.77653503417969, 48.341346740722656, 48.020606994628906, 47.78767395019531, 47.262115478515625, 47.19126892089844, 46.59009552001953, 46.59009552001953, 46.04214859008789, 46.02988052368164, 45.36808776855469, 44.97086715698242, 44.785057067871094, 44.785057067871094, 44.09231948852539, 43.641239166259766, 43.641239166259766, 41.765777587890625, 41.71180725097656, 41.21965026855469, 40.840694427490234, 40.42679214477539, 40.42679214477539, 40.42679214477539, 40.40568923950195, 40.40568923950195, 39.20879364013672, 39.087318420410156, 36.629112243652344, 36.58693313598633, 36.04742431640625, 36.04742431640625, 35.45729064941406, 35.4381103515625, 35.016029357910156, 34.77191162109375, 34.77191162109375, 34.40593719482422, 34.12549591064453, 33.97632598876953, 33.62373733520508, 33.62373733520508, 33.38007354736328, 33.38007354736328, 32.93031692504883, 32.862003326416016, 32.408443450927734, 32.38560104370117, 32.37913131713867, 31.99079132080078, 31.8389892578125, 31.8389892578125, 31.8389892578125, 30.706432342529297, 30.499008178710938, 30.446922302246094, 30.39254379272461, 29.244369506835938, 28.90186309814453, 28.586685180664062, 28.32103729248047, 28.32103729248047, 28.174102783203125, 27.45962142944336, 27.444303512573242, 26.594730377197266, 26.073890686035156, 25.34088897705078, 25.228532791137695, 24.658353805541992, 24.658353805541992, 24.658353805541992, 24.658353805541992, 24.658353805541992, 24.658353805541992, 24.658353805541992, 24.658353805541992, 24.658353805541992, 24.207319259643555, 24.207319259643555, 24.207319259643555, 24.207319259643555, 23.88263702392578, 23.794734954833984, 23.732404708862305, 23.442750930786133, 23.389484405517578, 23.339065551757812, 23.07908058166504, 22.719675064086914 ], "content": [ "Cinder is a block storage provision service .", "I ve been researching the cinder of openstack which is one of the most popular block storage but i wondering that is there any other block storage like openstack-cinder", "For example https : github.com openstack-cinder tree master cinder api .", "https : github.com openstack-cinder blob master cinder volume manager.py .", "I am trying to mount block storage from an OpenStack cloud provider with Cinder .", "The cinder logs show : .. . .. . My cinder config :", "You can use Ceph for images and block storage with Glance and Cinder .", "Command to create volume cinder create --volume type lvm --display name testvol 1 --availability-zone dev-osd2 cinder create --volume type lvm --display name testb 1 .. . .. . The cinder create command works but cinder list command shows that the volume is in error state .", "What does do the log files of your cinder-volume service -s say when starting and when if receiving a request", "I want to integrate nova swift cinder along with OpenStack .", "I understand I need to use the Cinder plugin .", "PS : I am not seeking for a method to add this HDD into cinder-volumes .", "Why do I need Cinder Storage nodes for file system space", "There seem to be new ways to attach Cinder storage to bare metal but it s apparently just PoC .. . .. . http : blog.e0ne.info post Attach-Cinder-Volume-to-the-Ironic-Instance-without-Nova.aspx", "@smeeb Cinder is used to managing block storage volumes you don t have to have them but can be useful for persisting data .", "This is akin to S3 at Amazon .. . .. . Cinder block storage a volume like a disk or san allocation or lvm volume .", "OpenStack has 3 types of core nodes : .. . .. . Compute Nova .. . Storage Cinder .. . Network Neutron .. . .. . But to me all Compute Nova instances are VMs .", "What is the role of cinder in my example", "cinder-scheduler.log .. . .. . I have checked and made sure that all the database connect string are correct and that the host are able to connect to the controller .", "I need a copy of cinder volume so that only hostname is changed with the same contents of as of the existing cinder volume", "Cinder was defaulting to keystone v3 when i only had v2 configured .", "I tried to locate log files at var log cinder but there is no such directory .", "The following is the command-line that failed : .. . .. . I forgot to add the log for cinder in the initial setup.However I have turned the verbose and debug on in etc cinder cinder.conf .. . .. . Can I get help in identifying the reason I cannot create more volumes and also how to go about getting the log for cinder", "So why do we need Neutron and Cinder", "The files contained in the volume are stored inside Cinder or Swift", "I understand that the block storage Cinder is a storage for volume and the volume is attached to the vm when it is launched and I understand that the object storage swift stores the images like cow2 of the image that are used to launch the virtual-machine .", "I ve been tasket with either repair Swift or fallback to use Cinder as storage system .", "My other question is here : stackoverflow.com questions 36322006 http : stackoverflow.com questions 36322006 kubernetes-using-openstack-cinder-from-one-cloud-provider-while-nodes-on-anothe Do you know if this is possible", "I have enabled services for cinder in localrc file .", "I got following error from the cinder-scheduler .. . .. . I looked at this more closely .", "For more details see the Cinder section in the configuration help page http : devstack.org configuration.html .", "and as I believe it is not mounted what should I do to make this cinder plugin work", "So using cinder you can allocated drives for your computing resources .", "I think that the problem is bug in horizon it doesnt provide tenant id to cinder .", "I am trying to install openstack kilo below are the details of admin-openrc.sh .. . .. . export OS PROJECT DOMAIN ID default .. . export OS PROJECT NAME default .. . export OS USER DOMAIN ID default .. . export OS USERNAME admin .. . export OS TENANT NAME admin .. . export OS PASSWORD admin .. . export OS AUTH URL http : controller : 35357 v3 .. . export OS VOLUME API VERSION 2 .. . .. . below commands show the result .. . .. . .. . openstack token issue .. . neutron agent-list .. . .. . .. . cinder service-list results in 401 UnAuthorized error..Any clue please", "https : eatpeppershothot.blogspot.sg 2016 04 use-real-block-storage-backend-for.html .. . .. . output of lsblk .. . .. . NAME FSTYPE LABEL MOUNTPOINT .. . .. . sda xfs .. . .. . sda1 LVM2 member .. . .. . .. . .. . Then we followed the standard documentation http : docs.openstack.org liberty install-guide-ubuntu cinder-storage-install.html .. . .. . On Controller node .. . .. . By default all the volumes were listed under nova zone but we changed it to different node while trying things out .", "From my readings to be able to connect to the block storage provider I need kubelet to be configured with cloud-provider openstack and use a cloud.conf file for the configuration of credentials .", "https : github.com kubernetes kubernetes tree master pkg volume cinder .. . .. . I modified an example I found to build a test pod the volume is simply defined as the following in the pod definition : .. . .. . I have a volumeID I got from the OpenStack volume API .", "More importantly I m still looking to understand why we need Cinder and Neutron in the first place .", "The difference I think is the upload of the image Glance fails to use Cinder to upload the newly created image .", "Did you manually test your h t t p : 169.254.169.254 openstack 2012-08-10 meta data.json and variations on it to see if the openstack metadata service is actually available", "I m new to Openstack and I would understand very well the storage part because I have to integrate Ceph as backend of Cinder and Swift for educational purposes we have to modify the crush algorithm to stress the reliability and another algorithm ti stress the performance .", "Openstack follows Service Oriented Architecture .", "Resize the volume by passing the volume ID and the new size a value greater than the old one as parameters : .. . .. . .. . .. . cinder extend 573e024d-5235-49ce-8332-be1576d323f8 10 .. . .. .", "Surprisingly I was able to find log files in opt stack logs nova cinder etc.. . but directories like var log xxxx don t exist on my system .", "This looks like it could be this bug : https : bugzilla.redhat.com show bug.cgi id 1272572 .. . .. . I don t know what way rdo deploys openstack - but it looks like you are using the v3 Identity API .. . .. . These unversioned auth endpoints present a http 300 multiple choices so they can work with cinder-pythonclient v2.0 and openstack common client v3 .", "Is it even possible to mount block storage this way", "I figured that I had to setup the credentials in the kubectl config but now I am having another problem : openstack errors saying it can t find an ID for my node which makes sense since my node is not hosted on the openstack provider only the block storage .", "Openstack shows both attached .", "i am new to openstack .", "i asked to explain how the components interact example how glance use the image what cinder does with volumes what is the role of swift .", "please help me know the difference between swift role and cinder role and i ll put accept answer on the answer u gave me .", "ref : https : www.mirantis.com blog object-storage-openstack-cloud-swift-ceph", "That is leading me to suspect openstack itself", "I have a local devstack deployment of openstack kilo I wanted to backup a running instance in openstack .", "I am trying to get a working openstack liberty in one of our dev servers that has minimal configuration and has ubuntu 14 : 04 .", "Using Kubernetes on bare metal and trying to figure out how to mount a external bloc storage volume from an OpenStack cloud provider .", ".. . E0616 04 : 18 : 25.610176 19751 server.go : 291 Failed running kubelet : could not init cloud provider openstack : got unexpected status code when reading metadata from h t t p : 169.254.169.254 openstack 2012-08-10 meta data.json : 404 Not Found .. . .. . could not init cloud provider openstack : got unexpected status code when reading metadata from h t t p : 169.254.169.254 openstack 2012-08-10 meta data.json : 404 Not Found .. . .. . so why this situation will occur", "Are you letting Openstack assign devices or are you specifying", "I have an install of Liberty RDO openstack .", "is there a way to register my own nodes on OpenStack then", "I m new to k8s .. . .. . I m trying this example : https : github.com kubernetes kubernetes tree release-1.2 examples mysql-cinder-pd .. . .. . my env is single node devstack and k8s but when I follow the readme and restart my kubelet it failed.. . .. . .. . the command is : .. . .. . and content of cloud config is : .. . .. . and the output is : .. . .. . Could not load kubeconfig file var lib kubelet kubeconfig : stat var lib kubelet kubeconfig : no such file or directory .", "But do I need both block storage and object storage", "http : developer.openstack.org api-ref-blockstorage-v2.html .. . .. . i can t find volume extend API.. . how to extend openstack volume size", "So i use cinder for example for applications where an hard drive is needed for example a db management or something like this instead of swift that allows to save objects like media and so on.Thank you very much.Very kind .", "Try using the openstack CLI .", "In short how do I tell kubelet not to look for my node there as I only need it to look up the storage block to mount it", "I successfully connect to the cloud provider however kubelet then complains that it cannot find my node on the openstack provider .", "I ve read all the tutorials tutorials show what is an object storage and what is a block storage .", "This is like EBS in Amazon .. . .. . Ceph a suite of storage services for block network and object storage .", "cd opt stack requirements .. . python update.py opt stack cinder .. . .. . Traceback most recent call last : .. . .. . File update.py line 505 in main .. . .. . File update.py line 488 in main .. . .. . File update.py line 500 in do main .. . .. . File update.py line 371 in process project .. . .. . File update.py line 284 in copy requires non std reqs .. . .. . File update.py line 255 in sync requirements file .. . .. . Exception : nonstandard requirement present .", "I want to create a server within OpenStack nova .", "What version of keystone is Horizon using USE IDENTITIY API X in local settings.py .. . .. . the newer openstack common client uses a different systax for quotas - if you are on identity api v3", "I am trying to create an instance from a bootable volume in openstack using python-novaclient .", "See the following for directions : http : ceph.com docs master rbd rbd-openstack .", "Found the answer in the document called Python APIs : The best-kept secret of OpenStack http : www.ibm.com developerworks cloud library cl-openstack-pythonapis : .. . .. . There is the need to update get the whole volume again :", "So I suggest people who want to work with Openstack-Swift and Openstack-Neutron should dedicate minimum of 5.5GB to VM", "All the components looks good and I was able to create instance and view the dashboard too .", "Now I am trying to create a volume and this is where I am facing an issue .", "We have a node that has a disk sda with 8GB and we followed the steps listed here to prepare the disk .", "Both of these commands end up in error state .", "RabbitMQ is fine too .", "Please help me figure this out : .. . .. . Regards", "Can you please post the log of pvdisplay and vgdisplay", "Would you please edit your post to use highlighting formating when appropriate .", "Did it ever work before you changed things to different node while trying thigs out .", "The idea is that you scale up Openstack by running more servers capable of hosting virtual machines .", "If you go through some openstack tutorials and read some of the respective books I think you will find your answer .", "It calls underlying driver classes and co-ordinate with other openstack services through their APIs .", "I m managing an installation of OpenStack Juno deployed with Mirantis 6.0 working with two nodes one controller and one compute .", "i am quite noobie about OpenStack components and role and i am having trouble understanding how each component works and when they operate Suppose that i have a certain image in my openStack storage and a client uses it and complete some operation like saving files how is the interaction between the components to perform this operation", "Cinder .. . .. . ERROR cinder.api.middleware.fault req-6eb7575e-aaf5-4884-ac3d-bfefb31f833d 28ad1bada6134e23b2b7ade80c745771 54b3a044c5824f269938c8d3c3d5e6b0 Caught error : Entity class cinder.db.sqlalchemy.models.Snapshot has no property tenant id .. . .. . Horizon .. . .. . 2015-06-29 08 : 14 : 12.535521 File usr local lib python2.7 dist-packages cinderclient client.py line 272 in request 2015-06-29 08 : 14 : 12.535525 raise exceptions.from response resp body 2015-06-29 08 : 14 : 12.535530 ClientException : The server has either erred or is incapable of performing the requested operation .", "While swift is object storage system .", "So to have Storage and Network nodes that provide file system storage and network connections at first blush seems unnecessary .", "In the second template I would like to create the storage nodes and attach them to the already existing compute nodes .", "I get : .. . .. . Unable to construct api.Node object for kubelet : failed to get external ID from cloud provider : Failed to find object .. . .. . This is similar to this question : .. . .. . Unable to construct api.Node object for kubelet : failed to get external ID from cloud provider : Failed to find object http : stackoverflow.com questions 32882348 unable-to-construct-api-node-object-for-kubelet-failed-to-get-external-id-from .. . .. . However I know kubelet will not find my node at the OpenStack provider since it is not hosted there", "Using Ceph with Nova is the easiest way to do storage .", "This question appears to be off-topic because it shows zero effort" ] }
{ "confidence": [ 80.27886199951172, 78.6649169921875, 78.33872985839844, 76.0445327758789, 75.53036499023438, 73.11253356933594, 70.10049438476562, 68.13199615478516, 67.78264617919922, 67.52842712402344, 59.535423278808594, 59.45341491699219, 58.73052215576172, 56.123897552490234, 55.609130859375, 55.609130859375, 49.99208450317383, 49.843692779541016, 48.83122253417969, 46.86439514160156 ], "content": [ "Question : i am quite noobie about OpenStack components and role and i am having trouble understanding how each component works and when they operate Suppose that i have a certain image in my openStack storage and a client uses it and complete some operation like saving files how is the interaction between the components to perform this operation i would like to know how and which conponents work from the creation of volumes to the changements saved Thank you very much . Comment : If you go through some openstack tutorials and read some of the respective books I think you will find your answer . Comment : @Athafoud maybe is because i ve read but i did not understand that i am doing a question here . .. . Answer : Openstack follows Service Oriented Architecture . It uses WSGI and django framework . So every component exposes few REST APIs . You can find these APIs in api folder . For example https : github.com openstack-cinder tree master cinder api . Internally these API calls make call to manager . manager.py is the file which handles main logic . https : github.com openstack-cinder blob master cinder volume manager.py . It calls underlying driver classes and co-ordinate with other openstack services through their APIs . Comment : i asked to explain how the components interact example how glance use the image what cinder does with volumes what is the role of swift . Comment : Glance stores image swift is similar to S3 is Amazon web-services . They interact through APIs provided . If you have any specific question please ask . Comment : thank you for the answer . What is the role of cinder in my example it just creates the volumes where i can attach the instances of nova or what does it save the images in phisical disks please help me know the difference between swift role and cinder role and i ll put accept answer on the answer u gave me . Thank you for your availability . Comment : Cinder is a block storage provision service . So using cinder you can allocated drives for your computing resources . It can store varied range of data in block memory . Consider it as hard disk of your machine . While swift is object storage system . It can storage large objects such as system images and other object structures . Glance is image management service . So it will help to manage images which user can use to boot their compute resources . Comment : Ok i understood . So i use cinder for example for applications where an hard drive is needed for example a db management or something like this instead of swift that allows to save objects like media and so on.Thank you very much.Very kind .", "Question : null .. . Answer : I ve been researching the cinder of openstack which is one of the most popular block storage but i wondering that is there any other block storage like openstack-cinder i wanna study other block storages . thx for reading my question .", "Question : null .. . Answer : I am trying to get a working openstack liberty in one of our dev servers that has minimal configuration and has ubuntu 14 : 04 . All the components looks good and I was able to create instance and view the dashboard too . Now I am trying to create a volume and this is where I am facing an issue . We have a node that has a disk sda with 8GB and we followed the steps listed here to prepare the disk . https : eatpeppershothot.blogspot.sg 2016 04 use-real-block-storage-backend-for.html .. . .. . output of lsblk .. . .. . NAME FSTYPE LABEL MOUNTPOINT .. . .. . sda xfs .. . .. . sda1 LVM2 member .. . .. . .. . .. . Then we followed the standard documentation http : docs.openstack.org liberty install-guide-ubuntu cinder-storage-install.html .. . .. . On Controller node .. . .. . By default all the volumes were listed under nova zone but we changed it to different node while trying things out . Command to create volume cinder create --volume type lvm --display name testvol 1 --availability-zone dev-osd2 cinder create --volume type lvm --display name testb 1 .. . .. . The cinder create command works but cinder list command shows that the volume is in error state . Both of these commands end up in error state . cinder-scheduler.log .. . .. . I have checked and made sure that all the database connect string are correct and that the host are able to connect to the controller . RabbitMQ is fine too . Please help me figure this out : .. . .. . Regards Comment : Can you please post the log of pvdisplay and vgdisplay Comment : Would you please edit your post to use highlighting formating when appropriate . Did it ever work before you changed things to different node while trying thigs out . What does do the log files of your cinder-volume service -s say when starting and when if receiving a request", "Question : I m new to Openstack and I would understand very well the storage part because I have to integrate Ceph as backend of Cinder and Swift for educational purposes we have to modify the crush algorithm to stress the reliability and another algorithm ti stress the performance . I ve read all the tutorials tutorials show what is an object storage and what is a block storage . I understand that the block storage Cinder is a storage for volume and the volume is attached to the vm when it is launched and I understand that the object storage swift stores the images like cow2 of the image that are used to launch the virtual-machine . But do I need both block storage and object storage The files contained in the volume are stored inside Cinder or Swift I don t understand very well where files and other things are stored . .. . Answer : Swift object storage for storing objects accessible over a rest api or http-get . This is akin to S3 at Amazon .. . .. . Cinder block storage a volume like a disk or san allocation or lvm volume . This is like EBS in Amazon .. . .. . Ceph a suite of storage services for block network and object storage . You do not need to use swift if you do not have a need for object storage -or- you can use Ceph for that purpose . ref : https : www.mirantis.com blog object-storage-openstack-cloud-swift-ceph", "Question : I m new to Openstack and I would understand very well the storage part because I have to integrate Ceph as backend of Cinder and Swift for educational purposes we have to modify the crush algorithm to stress the reliability and another algorithm ti stress the performance . I ve read all the tutorials tutorials show what is an object storage and what is a block storage . I understand that the block storage Cinder is a storage for volume and the volume is attached to the vm when it is launched and I understand that the object storage swift stores the images like cow2 of the image that are used to launch the virtual-machine . But do I need both block storage and object storage The files contained in the volume are stored inside Cinder or Swift I don t understand very well where files and other things are stored . .. . Answer : You do not need Swift with Nova . You can use Ceph for images and block storage with Glance and Cinder . See the following for directions : http : ceph.com docs master rbd rbd-openstack . Using Ceph with Nova is the easiest way to do storage .", "Question : null .. . Answer : Using Kubernetes on bare metal and trying to figure out how to mount a external bloc storage volume from an OpenStack cloud provider . I understand I need to use the Cinder plugin . https : github.com kubernetes kubernetes tree master pkg volume cinder .. . .. . I modified an example I found to build a test pod the volume is simply defined as the following in the pod definition : .. . .. . I have a volumeID I got from the OpenStack volume API . I put it there but I am not sure the volume is actually being mounted : .. . .. . I am not sure how to check actually but I would guess that df -h would show a remote volume being mounted on the host and in the container but I don t see any . I would think Kubernetes would send me an error if the volume was not mounted the pod would fail or something.. . but it runs . So the question is : how do I verify the volume is mounted and as I believe it is not mounted what should I do to make this cinder plugin work Comment : Could you paste the output of kubectl describe pods POD NAME That should have events showing if the volume is mounted correctly . Comment : Hi . Sorry for the delay . The describe command doesn t give useful info . I figured that I had to setup the credentials in the kubectl config but now I am having another problem : openstack errors saying it can t find an ID for my node which makes sense since my node is not hosted on the openstack provider only the block storage . My other question is here : stackoverflow.com questions 36322006 http : stackoverflow.com questions 36322006 kubernetes-using-openstack-cinder-from-one-cloud-provider-while-nodes-on-anothe Do you know if this is possible thanks", "Question : Maybe my question does not make sense but this is what I m trying to do : .. . .. . I have a running Kubernetes cluster running on CoreOS on bare metal . I am trying to mount block storage from an OpenStack cloud provider with Cinder . From my readings to be able to connect to the block storage provider I need kubelet to be configured with cloud-provider openstack and use a cloud.conf file for the configuration of credentials . I did that and the auth part seems to work fine i.e . I successfully connect to the cloud provider however kubelet then complains that it cannot find my node on the openstack provider . I get : .. . .. . Unable to construct api.Node object for kubelet : failed to get external ID from cloud provider : Failed to find object .. . .. . This is similar to this question : .. . .. . Unable to construct api.Node object for kubelet : failed to get external ID from cloud provider : Failed to find object http : stackoverflow.com questions 32882348 unable-to-construct-api-node-object-for-kubelet-failed-to-get-external-id-from .. . .. . However I know kubelet will not find my node at the OpenStack provider since it is not hosted there The error makes sense but how do I avoid it In short how do I tell kubelet not to look for my node there as I only need it to look up the storage block to mount it Is it even possible to mount block storage this way Am I misunderstanding how this works Comment : There is a Kubernetes slack channel http : kubernetes.io community where you may want to ask this question as well . Comment : The slack channel only seems to be for google redhat coreos or intel emails . How do i contact the team admin to get an invite Comment : Hmm I m not sure . I didn t follow when they moved from irc to slack . I assumed that since they mention it on their page it was public but I apologize if I sent you on a wild goose chase . Comment : The slack channel is open to public but you do have to get the invite and register . Comment : i did register for the invite but never got it . now the site says I already got the invite and i need to check for that email i never received . So it s going nowhere . Anyways I m more interested in an answer to the question above which I m stuck with than with the slack thing . .. . Answer : There seem to be new ways to attach Cinder storage to bare metal but it s apparently just PoC .. . .. . http : blog.e0ne.info post Attach-Cinder-Volume-to-the-Ironic-Instance-without-Nova.aspx", "Question : I have an install of Liberty RDO openstack . However when i attempt : .. . .. . In Horizon this error manifests itself as : .. . .. . When navigating to horizon - admin - defaults . The cinder logs show : .. . .. . My cinder config : .. . Answer : This looks like it could be this bug : https : bugzilla.redhat.com show bug.cgi id 1272572 .. . .. . I don t know what way rdo deploys openstack - but it looks like you are using the v3 Identity API .. . .. . These unversioned auth endpoints present a http 300 multiple choices so they can work with cinder-pythonclient v2.0 and openstack common client v3 . I would determine - what is your default keystone endpoint no version in endpoint 3 otherwise v2.0 . What version of keystone is Horizon using USE IDENTITIY API X in local settings.py .. . .. . the newer openstack common client uses a different systax for quotas - if you are on identity api v3 Comment : thanks @Rob-d in fact shortly after i posted i determined the same . Cinder was defaulting to keystone v3 when i only had v2 configured . Changing the auth uri https : 192.168.33.11 : 5000 v2.0 fixed it a little but now i get a different error .", "Question : null .. . Answer : I am trying to install openstack kilo below are the details of admin-openrc.sh .. . .. . export OS PROJECT DOMAIN ID default .. . export OS PROJECT NAME default .. . export OS USER DOMAIN ID default .. . export OS USERNAME admin .. . export OS TENANT NAME admin .. . export OS PASSWORD admin .. . export OS AUTH URL http : controller : 35357 v3 .. . export OS VOLUME API VERSION 2 .. . .. . below commands show the result .. . .. . .. . openstack token issue .. . neutron agent-list .. . .. . .. . cinder service-list results in 401 UnAuthorized error..Any clue please", "Question : OpenStack has 3 types of core nodes : .. . .. . Compute Nova .. . Storage Cinder .. . Network Neutron .. . .. . But to me all Compute Nova instances are VMs . VMs with file systems . VMs that need to be networked and ultimately receive their network connections from a physical switch in an actual data center somewhere . So to have Storage and Network nodes that provide file system storage and network connections at first blush seems unnecessary . Couldn t all nodes be Compute Nova nodes Why do I need Cinder Storage nodes for file system space Each Nova node will have its own file system yes Why do I need Neutron Network nodes for networking connections Won t my Nova nodes receive their network connection from the physical switch in our data center Obviously I m missing a major piece of the puzzle here so I ask : what is it that I m missing .. . Answer : But to me all Compute Nova instances are VMs . Strictly speaking this is incorrect . Nova has a number of component parts . Simply put there is a API component which exposes the service interface and one or more compute components that talk to VM hypervisors . So a single nova compute node can support multiple VMs . The idea is that you scale up Openstack by running more servers capable of hosting virtual machines . For more details on how Nova works I suggest reading the developer documentation : .. . .. . http : docs.openstack.org developer nova devref architecture.html .. . .. . I also recommend first learning the interaction between Keystone Glance and Nova . Hopefully you ll begin to understand how each additional component adds more services to your cloud . Comment : Thanks @Mark O Connor +1 - I appreciate the correction there but by Compute Nova instances what I really meant to say was Nova-managed instances which is more in alignment with what you re saying here . More importantly I m still looking to understand why we need Cinder and Neutron in the first place . Think about it : if Nova creates a VM that VM should get its networking from a physical switch and it will have its own file system for storing data . So why do we need Neutron and Cinder That was my question : - Comment : @smeeb Cinder is used to managing block storage volumes you don t have to have them but can be useful for persisting data . Similarly Neutron provides more advanced networking services beyond DHCP . I highly advise reading the docs for more information .", "Question : I m managing an installation of OpenStack Juno deployed with Mirantis 6.0 working with two nodes one controller and one compute . We re doing some testing and for some reason our IT team thinks is something related to HAproxy Swift stopped working . At the moment almost everything works but can t create images or snapshots from instances . I can create snapshots from volumes and the other way around . The difference I think is the upload of the image Glance fails to use Cinder to upload the newly created image . I ve been tasket with either repair Swift or fallback to use Cinder as storage system . The first would be the best sollution but I have no idea how to start . I m pretty new to all this and I m sorry I can t provide more details I ve started working with OpenStack a few weeks ago and still haven t got enough experience to troubleshot this problem myself . All I could find on the logs are references to Failed to upload.. . like this one in var log glance api.log .. . .. . Thanks .. . Answer : I found the solution by trial and error it all comes down to glance-api.conf and I needed to add modify these settings :", "Question : null .. . Answer : I have a local devstack deployment of openstack kilo I wanted to backup a running instance in openstack . So I wanted to create snapshot of a running instance . I did create snapshot of running instances both with API and Horizon however it is creates an empty image of file size . I tried to locate log files at var log cinder but there is no such directory . Also I was not able to find such log files at other locations in root tree . So where should I find the log files for errors etc . Comment : Logs docs.openstack.org ops-guide http : docs.openstack.org ops-guide ops logging.html where-are-the-logs Comment : Make sure you do all as it says here when taking snapshot docs.openstack.org user-guide http : docs.openstack.org user-guide cli use snapshots to migrate instances.html create-a-snapshot-of-the-instance Comment : Hi Tony But I went through those documentations already . Surprisingly I was able to find log files in opt stack logs nova cinder etc.. . but directories like var log xxxx don t exist on my system . Secondly I tried with both APIs and Horizon they do create snapshot but the snapshot is of zero bytes and not unable .", "Question : Maybe my question does not make sense but this is what I m trying to do : .. . .. . I have a running Kubernetes cluster running on CoreOS on bare metal . I am trying to mount block storage from an OpenStack cloud provider with Cinder . From my readings to be able to connect to the block storage provider I need kubelet to be configured with cloud-provider openstack and use a cloud.conf file for the configuration of credentials . I did that and the auth part seems to work fine i.e . I successfully connect to the cloud provider however kubelet then complains that it cannot find my node on the openstack provider . I get : .. . .. . Unable to construct api.Node object for kubelet : failed to get external ID from cloud provider : Failed to find object .. . .. . This is similar to this question : .. . .. . Unable to construct api.Node object for kubelet : failed to get external ID from cloud provider : Failed to find object http : stackoverflow.com questions 32882348 unable-to-construct-api-node-object-for-kubelet-failed-to-get-external-id-from .. . .. . However I know kubelet will not find my node at the OpenStack provider since it is not hosted there The error makes sense but how do I avoid it In short how do I tell kubelet not to look for my node there as I only need it to look up the storage block to mount it Is it even possible to mount block storage this way Am I misunderstanding how this works Comment : There is a Kubernetes slack channel http : kubernetes.io community where you may want to ask this question as well . Comment : The slack channel only seems to be for google redhat coreos or intel emails . How do i contact the team admin to get an invite Comment : Hmm I m not sure . I didn t follow when they moved from irc to slack . I assumed that since they mention it on their page it was public but I apologize if I sent you on a wild goose chase . Comment : The slack channel is open to public but you do have to get the invite and register . Comment : i did register for the invite but never got it . now the site says I already got the invite and i need to check for that email i never received . So it s going nowhere . Anyways I m more interested in an answer to the question above which I m stuck with than with the slack thing . .. . Answer : Unfortunately I don t think you can decouple the cloud provider for the node and that for the volume at least not in the vanilla kubernetes . Comment : is there a way to register my own nodes on OpenStack then", "Question : null .. . Answer : I m new to k8s .. . .. . I m trying this example : https : github.com kubernetes kubernetes tree release-1.2 examples mysql-cinder-pd .. . .. . my env is single node devstack and k8s but when I follow the readme and restart my kubelet it failed.. . .. . .. . the command is : .. . .. . and content of cloud config is : .. . .. . and the output is : .. . .. . Could not load kubeconfig file var lib kubelet kubeconfig : stat var lib kubelet kubeconfig : no such file or directory . Trying auth path instead . .. . W0616 04 : 18 : 24.785109 19751 server.go : 440 Could not load kubernetes auth path var lib kubelet kubernetes auth : stat var lib kubelet kubernetes auth : no such file or directory . Continuing with defaults . .. . E0616 04 : 18 : 25.610176 19751 server.go : 291 Failed running kubelet : could not init cloud provider openstack : got unexpected status code when reading metadata from h t t p : 169.254.169.254 openstack 2012-08-10 meta data.json : 404 Not Found .. . .. . could not init cloud provider openstack : got unexpected status code when reading metadata from h t t p : 169.254.169.254 openstack 2012-08-10 meta data.json : 404 Not Found .. . .. . so why this situation will occur anything I did is wrong or my environment is wrong any ideas thanks Comment : Did you manually test your h t t p : 169.254.169.254 openstack 2012-08-10 meta data.json and variations on it to see if the openstack metadata service is actually available", "Question : I am exploring devstack and i am getting a weird error . I only have 2 instances with volume so far . Both are currently 5GB in size . When I try to create any more instance with volume I get error . I have checked the limits for the number of volumes and it is 10 and there are only 2 volumes so far . I tried both the devstack UI and the command-line but both are failing . The following is the command-line that failed : .. . .. . I forgot to add the log for cinder in the initial setup.However I have turned the verbose and debug on in etc cinder cinder.conf .. . .. . Can I get help in identifying the reason I cannot create more volumes and also how to go about getting the log for cinder I got following error from the cinder-scheduler .. . .. . I looked at this more closely . The lvm-driver volume is limited to 10GB . When I do : sudo vgdisplay I see this limit . I am guessing this is configured at the very beginning when I run stack.sh . My question is how do I increase this size .. . Answer : The devstack default is 10GB as you say . This size is affected by the following configuration variable : .. . .. . If you don t have this in your configuration then add it and set it to a bigger number . For more details see the Cinder section in the configuration help page http : devstack.org configuration.html .", "Question : I am exploring devstack and i am getting a weird error . I only have 2 instances with volume so far . Both are currently 5GB in size . When I try to create any more instance with volume I get error . I have checked the limits for the number of volumes and it is 10 and there are only 2 volumes so far . I tried both the devstack UI and the command-line but both are failing . The following is the command-line that failed : .. . .. . I forgot to add the log for cinder in the initial setup.However I have turned the verbose and debug on in etc cinder cinder.conf .. . .. . Can I get help in identifying the reason I cannot create more volumes and also how to go about getting the log for cinder I got following error from the cinder-scheduler .. . .. . I looked at this more closely . The lvm-driver volume is limited to 10GB . When I do : sudo vgdisplay I see this limit . I am guessing this is configured at the very beginning when I run stack.sh . My question is how do I increase this size .. . Answer : Resize the volume by passing the volume ID and the new size a value greater than the old one as parameters : .. . .. . .. . .. . cinder extend 573e024d-5235-49ce-8332-be1576d323f8 10 .. . .. .", "Question : I tried installing devstack OpenStack-liberty on Ubuntu 14.04 Using VM Virtualbox . I want to integrate nova swift cinder along with OpenStack . I have enabled services for cinder in localrc file . After trying so many times i.e stacking run . stack.sh and unstacking I ended up getting the same error : .. . .. . c-api did not start .. . .. . enter image description here http : i.stack.imgur.com iuyFh.png Comment : Hello I have edited your question and removed a link-to image . Instead it is better to show a picture itself . : . Also you can show error messages in quotes so it s easier to see . Good luck . Comment : Thank you Sir for your suggestion . i will do that for my next questions . Comment : No problems . It s just a little pity nobody knows the answer to your problem . .. . Answer : Its funny that I am answering my own question . The problem was due to resources . I was using 4GB RAM which was not sufficient . Few APIs consume more RAM while starting.Openstack Installation console waits for a while and expects APIs to start which wasn t happening in my case due to less dedicated RAM . Since I was using 4GB of RAM in which only 2.5GB RAM was given to my VM . After struggling few days I got to know the issue and upgraded my system s RAM to 8GB and it worked So I suggest people who want to work with Openstack-Swift and Openstack-Neutron should dedicate minimum of 5.5GB to VM", "Question : I have a 2TB HDD and I need to attach it to an instance directly . However I don t know how to operate . PS : I am not seeking for a method to add this HDD into cinder-volumes . .. . Answer : Have you checked BDD driver. . I m still not sure about your question. . can you explain more. . .. . .. . BDD : https : wiki.openstack.org wiki BlockDeviceDriver Comment : That s exactly what I want Thks very much .", "Question : null .. . Answer : I need a copy of cinder volume so that only hostname is changed with the same contents of as of the existing cinder volume Comment : you can take snapshot of a VM and then clone it from that snapshot image . docs.openstack.org user-guide http : docs.openstack.org user-guide cli use snapshots to migrate instances.html Comment : Thanks for reply Aravind I am looking for a clone and not snapshot :", "Question : null .. . Answer : When i try to launch an instance on my devstack kilo from horizon dashboard i get a message There was an error submitting the form . Please try again . Cinder .. . .. . ERROR cinder.api.middleware.fault req-6eb7575e-aaf5-4884-ac3d-bfefb31f833d 28ad1bada6134e23b2b7ade80c745771 54b3a044c5824f269938c8d3c3d5e6b0 Caught error : Entity class cinder.db.sqlalchemy.models.Snapshot has no property tenant id .. . .. . Horizon .. . .. . 2015-06-29 08 : 14 : 12.535521 File usr local lib python2.7 dist-packages cinderclient client.py line 272 in request 2015-06-29 08 : 14 : 12.535525 raise exceptions.from response resp body 2015-06-29 08 : 14 : 12.535530 ClientException : The server has either erred or is incapable of performing the requested operation . HTTP 500 Request-ID : req-f98235a2-f894-4a07-9aa2-ef3c5aa7e9ef .. . .. . Last week everything worked well . I tried reinstaling devstac reinstaling ubuntu.. . so maybe someone know whats the problem : - Comment : Try using the openstack CLI . You might get a useful error message . Comment : I tried cli and everything worked well . I think that the problem is bug in horizon it doesnt provide tenant id to cinder . I git-clone from main branch and this is live project it changes every day . I will try stable version havana . Comment : Actualy not havana kilo is the latest stable version ." ] }
[ "yes-answer-long", "yes-answer-short" ]
openstack
UNK_RELATION
epub@xhtml@99
epub -- epub short for electronic publication is an open xml-based digital book format which uses @placeholder and css for document content .
{ "confidence": [ 46.26033401489258, 45.72623825073242, 45.6983528137207, 45.04452896118164, 44.99553298950195, 44.78523254394531, 44.18742370605469, 43.0445556640625, 42.727046966552734, 42.70418167114258, 41.898216247558594, 41.848487854003906, 41.5924072265625, 41.57447052001953, 41.12329864501953, 41.121185302734375, 41.12006378173828, 41.06221008300781, 41.0465087890625, 40.957923889160156, 40.90864562988281, 40.67322540283203, 40.45118713378906, 40.45118713378906, 40.33367156982422, 40.28827667236328, 40.252899169921875, 40.12390899658203, 39.91478729248047, 39.66435241699219, 39.619598388671875, 39.619598388671875, 39.619598388671875, 39.619598388671875, 39.619598388671875, 39.47504806518555, 39.04815673828125, 39.04815673828125, 38.94960021972656, 38.94960021972656, 38.76127243041992, 38.574729919433594, 38.57232666015625, 38.413204193115234, 38.413204193115234, 38.413204193115234, 38.413204193115234, 38.379703521728516, 38.22711181640625, 37.97346496582031, 37.797386169433594, 37.578575134277344, 37.529457092285156, 37.48900604248047, 37.42951965332031, 37.419578552246094, 37.419578552246094, 37.419578552246094, 37.419578552246094, 37.41704559326172, 37.20426940917969, 37.195953369140625, 37.150814056396484, 36.901756286621094, 36.84922790527344, 36.84922790527344, 36.84922790527344, 36.84922790527344, 36.801231384277344, 36.759864807128906, 36.69766616821289, 36.606014251708984, 36.606014251708984, 36.52555847167969, 36.50392532348633, 36.40034866333008, 36.3374137878418, 36.276309967041016, 36.25242614746094, 36.25242614746094, 36.25038146972656, 36.25038146972656, 36.25038146972656, 36.223121643066406, 36.15465545654297, 36.11479949951172, 35.91799545288086, 35.91799545288086, 35.91799545288086, 35.85307312011719, 35.85307312011719, 35.803504943847656, 35.740074157714844, 35.67530059814453, 35.62884521484375, 35.60249328613281, 35.35899353027344, 35.17756271362305, 35.119483947753906, 35.119483947753906 ], "content": [ "actually what happen when we read the epub book using epub library it extract read the epub book and store somewhere in temporary the contents if it store than where the images of epub book is located .", "Are not .epub s are XML files", "How can I read an epub book and open it using python .", "XML is used to create the document manifest table of contents and EPUB metadata .", "More info : Epub Format Construction Guide http : www.hxa.name articles content epub-guide hxa7241 2007.html", "If you want to do this right you need to read and understand the Open Packaging Format OPF http : www.idpf.org doc library epub OPF 2.0.1 draft.htm and Open Publication Structure OPS http : www.idpf.org doc library epub OPS 2.0.1 draft.htm specifications as well .", "Document ready seems not to work in ePub .", "You can open the epub by unzipping it and this will expose the CSS files wherever they might be .", "In that app pdf is just shown as an image and ePub open in webview because EPUB is just XHTML stored in a zipfile with an XML manifest .", "I want to use epub book in my application .", "It can use XML JATS http : jats.nlm.nih.gov or XHTML from EPUB content .", "ePubExport is a Mediawiki extension for export wiki pages in epub format for offline reading in supported electronic readers or tablets .", "Look at stackoverflow.com questions 1388467 reading-epub-format http : stackoverflow.com questions 1388467 reading-epub-format", "I think this might help http : sourceforge.net projects epubsharp .. . .. . EPUB internally uses XHTML or DTBook an XML standard provided by the DAISY Consortium to represent the text and structure of the content document and a subset of CSS to provide layout and formatting .", "EPUB is just XHTML stored in a zipfile with an XML manifest .", "On the color nook I tried a url with the epub mimetype application epub+zip .", "Then convert that file to epub if you wanted it in that format .", "I have a book stored in a mysql database and I wish to publish it as an ePub format book", "The OP said epub reader which could easily be misconstrued as an actual reader with voice for the epub format .", "i was trying to read the epub book into my android application and succeed withe getting text into my app but not able to load images of epub book .", "Apparently EPUB is just an XML format so if you have an xml parser and the spec http : www.idpf.org specs.htm it should be okay .", "I want to open epub files into webview .", "I was trying to implement the modal-dialog featue of the Jquery UI in an EPUB book .", "Does anyone know how I set the width and height for an epub book", "You could read the content put it in a variable edit the text and place it in a new epub delete the old epub and voila", "these means that epub can not read by the ePub Checker so it will not given any error from ePub .", "I want to save .epub type file .. . .. . I tried NSString - NSData - save .epub .. . .. . but file no open", "Books in ePub format are HTML with some meta-data .", "I am new to EPUB .", "Trying to get an ePub file to pass-through Apple s ePub checker but get two errors multiple times .", "You have to unzip the epub file in books folder as epub file name .", "Extract epub on file system mnt sdcard epub .. . 2 .", "This is how i create epub file zipFileAtPath filepath newfilepath+ +filename+ .epub", "IMO I thought that epub http : en.wikipedia.org wiki EPUB is a kind of zip .", "One such library is js-epub https : github.com augustl js-epub .", "I need one conformation about using epub reader.how to give input as .epub file in monocle epub reader.I saw more samples in monocle github .", "As for knowledge on file-format look here .. . .. . http : en.wikipedia.org wiki EPUB File format", "It s a quick read and gives a perfect working intro to the ePub format .", "Footnotes didn t show when book in .epub if it in the dir footnote is showing .", "I am try to show epub book in android pad .", "I understand how to show the text from the epub book .. . .. . but I have a problem with images CSS files and links .", "You should take a look at this project http : code.google.com p lrf-epub-tools which seemed to be converting PDF to epub .", "I have created app of books which supports pdf and ePub format .", "then converted to epub with calibre .", "Can this be achieved with EPUB 3", "How is the epub loaded", "I have a epub file .", "FBReader application which reads epub files .", "I found this link http : www.siegmann.nl epublib android to open my epub book .", "SVG animation elements are not allowed by EPUB 3 see : .. . .. . http : www.idpf.org epub 301 spec epub-contentdocs.html sec-svg-restrictions", "I have all necessary epub files html css toc.ncx.. . in a folder .", "actual epub url is dynamically generated by server which changes for every request to particular epub .", "For reading any eBook file must be in .epub format .", "As far as epub validation goes if all the xml is valid and there s no dangling links prior to zipping you re going to have a valid epub .", "Your second link leads to epub sharp too and not to the epub spec .", "Question Is there a way to download and automatically add an epub to the color nook s library or to autoload an epub and start displaying it to the user", "stackoverflow.com questions 23679325 epub-and-javascript http : stackoverflow.com questions 23679325 epub-and-javascript", "There s one for creating EPUB documents : EPUB Sharp http : sourceforge.net projects epubsharp beta .. . .. . UPDATE : Apparently this is fairly difficult .", "Here is some refs : http : www.idpf.org epub 301 spec epub-ocf.html app-schema-encryption", "It s a javascript epub reader .", "I ve been editing a book in Pages and when I export it into an ePub document the line-breaks I have inserted into the document seem to be ignored .", "Which library you are using for epub", "In my iOS application I have added Open In support for epub files .", "I am generating a multi-chapter eBook for Kindle Fire by first generating a well-formed xhtml-based EPUB 3.0 format file and then converting the .epub file to .mobi w Kindle Previewer and or kindlegen .", "The epub file is in the Download folder of the device .", "Currently working on a epub reader project .", "An .epub file is just a .zip file .", "Did you try ePub Sharp", "Is it possible that the .css is updated when a epub app changes the font or colour .", "They can edit authors isbn description creator cover etc . or create new epub file or open epub file but I haven t found some solution for editing content .", "See : idpf.org epub 301 spec http : www.idpf.org epub 301 spec epub-publications.html fxl-property-layout-values", "Is it possible to display epub format books in web browser using pure HTML5 CSS and Jquery", "Is it possible to display epub format books in web browser using pure HTML5 CSS and jQuery", "So can you please suggest me how to read .epub file using monocle epub redaer.It is very imaportant for me.or Is there any apis for epub readers for ios and android", "Second use Calibre to edit ePub file Right click to the book - Edit book .. . .. . We can see a lot of HTML files CSS files .. .", "You just need to unzip your epub book at your base directory in your case its book filename .", "I m relatively new to ePub format but if I understand well to make programmatically an ePub starting from XHTML or PDF content could mean : .. . .. . choose HTML or XHTML content and validate them with an XHTML validator or clean them with Tydy .. . choose PDF file to insert in the ePub .. . create the XML manifest or XML packing files and TOC file .. . zip the whole files in a .epub file .. . validate the ePub I saw something in Google code .. . .. . So my question is if there is some sort of high level Java API to do these steps .", "Are there any ways to load epub inside canvas or please suggest any other ways to prevent copying epub content from browser .", "I just want to prevent copying of epub content from browser .", "Loading epub content as canvas seems a good idea to achieve this .", "The epub downloaded to the My Downloads folder on the color nook .", "Just to mention that in EPUB 2 there is no notion of chapter .", "All epub books have tag with chapters id", "And is there any documentation on epub sharp", "You can find some open-source epub reader for reference .", "Basically it uses UIWebview to display epub files I read the code of open-source Aepubreader and find it s very good but not text based .", "Use the mime-type application epub+zip source : wikipedia http : en.wikipedia.org wiki EPUB .. . .. . And remove that line .", "E.g . there are no popup in EPUB 2 not all EPUB 3 apps supports popups and or Javascript", "Did you tried github.com augustl js-epub https : github.com augustl js-epub", "We are developing epub reader library .", "or other solution to handle epub display .", "The first part seems to refer to a file-format for digital magazines the second part to a file-format for the metadata associated with a digital publication .", "Finally I submitted my EPUB file to EPUB Validator http : validator.idpf.org which will give you more information about what the problem is exactly .", "This is a duplicate of the following questions : stackoverflow.com questions 1287130 http : stackoverflow.com questions 1287130 loading-an-epub-simple-epub-reader-question stackoverflow.com questions 1388467 reading-epub-format http : stackoverflow.com questions 1388467 reading-epub-format stackoverflow.com questions 1440513 http : stackoverflow.com questions 1440513 how-to-show-the-xmdf-and-the-epub-extension-file-on-the-iphone", "Also have a look at award-winning class EPub http : www.phpclasses.org package 6115-PHP-Create-ebook-in-EPUB-format-for-Apple-iPad-.html .. . .. . This class can be used to create create an ebook in EPUB format for Apple iPad and other ebook readers .", "stackoverflow.com questions 16416640 http : stackoverflow.com questions 16416640 how-to-download-epub-format-file-from-url-to-document-directory-in-iphone", "In an Android application I m trying to display an EPUB book through WebView .", "I have implemented one application in android which uses epublib to view .epub files .", "The EPUB is filled with footnotes annotations which are internal links anchors .", "which help me to render .epub s on iPhone s screen ." ] }
{ "confidence": [ 77.70985412597656, 63.707427978515625, 60.8933219909668, 60.857147216796875, 60.82504653930664, 60.205665588378906, 59.87567138671875, 58.94967269897461, 58.59444808959961, 58.382389068603516, 58.07022476196289, 58.03213882446289, 57.47734451293945, 57.41431427001953, 57.27764892578125, 56.624900817871094, 56.11339569091797, 55.36846160888672, 54.959964752197266, 54.52175521850586 ], "content": [ "Question : Does anyone know if there is a c library to read and view ePub files Or does anyone know how to read and display an epub using c Comment : Would a .NET library do Comment : i don t know but i would imagine allow me to open the epub access objects within it such as the text and images etc .. . Answer : I think this might help http : sourceforge.net projects epubsharp .. . .. . EPUB internally uses XHTML or DTBook an XML standard provided by the DAISY Consortium to represent the text and structure of the content document and a subset of CSS to provide layout and formatting . XML is used to create the document manifest table of contents and EPUB metadata . Finally the files are bundled in a zip file as a packaging format . As for knowledge on file-format look here .. . .. . http : en.wikipedia.org wiki EPUB File format Comment : Thank you for your reply but really I m looking for a library that will allow me to render the book inside a window .", "Question : Are there any standard for weekly digital magazines That understand meta data of a magazine Eg . issue number date author editorial columns series etc . so that content is searchable and presentable in a better intuitive GUI .. . Answer : First of all you need to clarify your question . The first part seems to refer to a file-format for digital magazines the second part to a file-format for the metadata associated with a digital publication . With respect to the metadata : there are several standards used in the industry . For examples : .. . .. . ONIX : http : www.editeur.org 8 ONIX .. . Dublin Core : http : dublincore.org .. . MARC : http : www.loc.gov marc .. . .. . With respect to the file-format for the publication itself some formats that might be suitable for digital magazines : .. . .. . PDF .. . EPUB 3 supports Fixed Layout and the IDPF has a working group focussing on comics and digital magazine issues Advanced Hybrid Layout or EPUB 3 AHL WG .. . Amazon Kindle has its own KF8 format .. . HTML5 allows you to deliver pre-paginated contents by setting the viewport dimensions", "Question : I am engaged in preparing an application regarding reading the .epub files in iPhone . Where can I get the reference for sample applications for unzipping and parsing the files Can anyone guide me with a best link Thank you in advance . .. . Answer : An .epub file is just a .zip file . It contains a few directory files in XML format and the actual book content is usually XHTML . You can use Objective-Zip http : code.google.com p objective-zip to unzip the .epub file and then use NSXMLParser to parse the XML files . More info : Epub Format Construction Guide http : www.hxa.name articles content epub-guide hxa7241 2007.html Comment : Hai. . Any sample source code available for this", "Question : I am trying to develop an iPhone application to read ePub files . Is there any framework available to develop this I have no idea about how to read this file-format . I tried to parse a sample file with .epub extension using NSXML Parser but that fails . .. . Answer : The EPUB format brings together a bunch of different specifications formats : .. . .. . one to say what the content of the book should look like a subset of XHTML 1.1 + CSS .. . one to define a manifest that lists all of the files that make up that content OPF which is an XML file .. . one to define how everything is packaged up OEBPS : a zip file of everything in the manifest plus a few extra files .. . .. . The specs look a bit daunting but actually once you ve got the basics unzipping parsing XML down it s not particularly difficult or complex . You ll need to work out how to download the EPUB to unzip it somewhere to parse the manifest and then to display the relevant content . Some pointers if you re just starting out : .. . .. . parse xml http : www.tbxml.co.uk .. . unzip http : code.google.com p ziparchive .. . .. . To display content just use a UIWebView for now . Here s a high level step by step for your code : .. . .. . 1 create a view with a UIWebView .. . .. . 2 download the EPUB file .. . .. . 3 unzip it to a subdirectory in your app s documents folder using the zip library linked above .. . .. . 4 parse the XML file at META-INF container.xml if this file doesn t exist the EPUB is invalid using TBXML linked above .. . .. . 5 In this XML find the first rootfile with media-type application oebps-package+xml . This is the OPF file for the book . 6 parse the OPF file also XML .. . .. . 7 now you need to know what the first chapter of the book is . a each item in the manifest element has an id and an href . Store these in an NSDictionary where the key is the id and the object is the href . b Look at the first itemref in the spine . It has an idref attribute which corresponds to one of the ids in a . Look up that id in the NSDictionary and you ll get an href . c this is the the file of the first chapter to show the user . Work out what the full path is hint : it s wherever you unzipped the zip file to in 3 plus the base directory of the OPF file in 6 .. . .. . 8 create an NSURL using fileURLWithPath : where the path is the full path from 7c . Load this request using the UIWebView you created in 1 . You ll need to implement forward backward buttons or swipes or something so that users can move from one chapter to another . Use the spine to work out which file to show next - the itemrefs in the XML are in the order they should appear to the reader . Comment : really a good tutorial. . cool man. . i ve spent lots of time for such demo Comment : it s a shame that it s only possible to provide 1 upvote for this answer Comment : Great answer . This is becoming an FAQ : Comment : Thanks a lot Euan ...For all those who are still searching for a solution i have created a sample and posted in ideveloperworld.blogspot.com 2011 02 epub-reader.html http : ideveloperworld.blogspot.com 2011 02 epub-reader.html Comment : Note that there s no particular need to unzip it somewhere if by that you mean creating separate new files that are the unpacked contents of the ZIP archive . ZIP is a pretty simple format and it should be fairly easy to create libraries that give you input streams for the various files in the archive that read directly from the archive on the fly if you don t already have such libraries . One example of such a library with full source available is RubyZip rubyzip.sourceforge.net http : rubyzip.sourceforge.net .", "Question : I m relatively new to ePub format but if I understand well to make programmatically an ePub starting from XHTML or PDF content could mean : .. . .. . choose HTML or XHTML content and validate them with an XHTML validator or clean them with Tydy .. . choose PDF file to insert in the ePub .. . create the XML manifest or XML packing files and TOC file .. . zip the whole files in a .epub file .. . validate the ePub I saw something in Google code .. . .. . So my question is if there is some sort of high level Java API to do these steps . Sure I can use API for ZIP XML in Java but does it exist higher tools thanks a lot .. . .. . ------ EDIT ------- .. . .. . I ve developed an open-source project to do that http : scribaebookmake.sourceforge.net .. . Answer : You should take a look at this project http : code.google.com p lrf-epub-tools which seemed to be converting PDF to epub .", "Question : I am engaged in preparing an application regarding reading the .epub files in iPhone . Where can I get the reference for sample applications for unzipping and parsing the files Can anyone guide me with a best link Thank you in advance . .. . Answer : On top of Ole s answer that s a pretty good how-to guide it s definitely worth reading the specification for the Open Container Format OCF http : www.idpf.org doc library epub OCF 2.0.1 draft.doc - sorry it s a word file . It s the formal specification for the for zip structure used . In brief you parse the file by .. . .. . 1 . Checking it s plausibly valid by looking for the text mimetype starting at byte 30 and the text application epub+zip starting at byte 38 . 2 . Extracting the file META-INF container.xml from the zip .. . 3 . Parsing that file and extracting the value of the full-path attribute of the first rootfile element in it . 4 . Load the referenced file the full-path attribute is a URL relative to the root of zip file .. . 5 . Parse that file . It contains all the metadata required to reference all the other content mostly XHTML CSS images . Particularly you want to read the contents of the spine element which will list all content files in reading order . If you want to do it right you should probably also handle DTBook http : www.daisy.org daisy-standard content as well . If you want to do this right you need to read and understand the Open Packaging Format OPF http : www.idpf.org doc library epub OPF 2.0.1 draft.htm and Open Publication Structure OPS http : www.idpf.org doc library epub OPS 2.0.1 draft.htm specifications as well . Comment : Hai. . Any sample source code available for this Comment : Not as far as I know - most of the companies that I deal with have licensed either Adobe s SDK for this or I think embedding Stanza . Sorry - I work with EPUBs themselves not with reading systems . Comment : I ve just been reminded that there is the FBReader http : www.fbreader.org about.php open-source project .", "Question : Does anyone know of a php class that can create export ePub files I have a book stored in a mysql database and I wish to publish it as an ePub format book It s a very basic book simple text and chapters and a few images . Any suggestions Comment : Perhaps writing one With php.net manual de book.zip.php http : php.net manual de book.zip.php and en.wikipedia.org wiki EPub http : en.wikipedia.org wiki EPub you should get results quite fast . It s just little more than a bunch of zipped HTML files . .. . Answer : You might want to have a look at ePubExport http : sourceforge.net projects epubexport project or get an idea from its source code . ePubExport is a Mediawiki extension for export wiki pages in epub format for offline reading in supported electronic readers or tablets . Also have a look at award-winning class EPub http : www.phpclasses.org package 6115-PHP-Create-ebook-in-EPUB-format-for-Apple-iPad-.html .. . .. . This class can be used to create create an ebook in EPUB format for Apple iPad and other ebook readers . .. . It can set the ebook details like the author publisher comments etc . as well the ebook chapter data . .. . The class builds an archive with all the ebook information and serves the ebook archive for download or returns it as a string . More Resources Libraries : .. . .. . OPL s EPUB library http : sourceforge.net projects oplsepublibrary .. . on-the-fly epub creation http : www.mobileread.mobi forums showthread.php t 44907", "Question : I ve been making an script to transform Latex code to SVG images in epubs . The idea is to extract an epub in a temp directory to find the code and to create SVG and to substitute the code for the links to the SVG images then compress back everything again . Everything works fine but the final compression . It compresses everything but the new SVG I ve created I ve checked they are in the Images folder of the temporal uncompressed epub . Here is a minimal working example : .. . .. . The function recursive zip actually finds every file notice print nodes inside it . No idea why the svg files are missing . No errors . The svg files are in the temp folder but not in the compressed final version when I open it with Sigil . .. . Answer : I finally figure out what s happening . I found a list of images in the file content.opf in a tag named manifest and according to the International Digital Publishing Forum http : www.idpf.org epub 20 spec OPF 2.0.1 draft.htm Section2.3 : .. . .. . The required manifest must provide a list of all the files that are part of the publication e.g . Content Documents style sheets image files any embedded font files any included schemas . So the files were actually getting compressed and included in the zip file but since it was renamed as .epub and opened with Sigil the SVG images didn t show because they were not included into the file content.opf .", "Question : I m relatively new to ePub format but if I understand well to make programmatically an ePub starting from XHTML or PDF content could mean : .. . .. . choose HTML or XHTML content and validate them with an XHTML validator or clean them with Tydy .. . choose PDF file to insert in the ePub .. . create the XML manifest or XML packing files and TOC file .. . zip the whole files in a .epub file .. . validate the ePub I saw something in Google code .. . .. . So my question is if there is some sort of high level Java API to do these steps . Sure I can use API for ZIP XML in Java but does it exist higher tools thanks a lot .. . .. . ------ EDIT ------- .. . .. . I ve developed an open-source project to do that http : scribaebookmake.sourceforge.net .. . Answer : I haven t seen a java epub toolchain however I have been having good success with Sigil . If the goal is to make an epub I d give Sigil a go . Before I used it I was rolling my epubs by hand with the automation of an ant build.xml . If the goal is to make a java based epub toolchain then it shouldn t be terribly hard depending on how much validation and pipelining you wish to do . Personally I d start with writing an epub viewer . As far as the PDF parts go I just embed XHTML . Haven t had a need for embedding PDF yet . As far as epub validation goes if all the xml is valid and there s no dangling links prior to zipping you re going to have a valid epub . Comment : I have to create a server tool that make automatically an ePub file starting from PDF and XHTML . So I thought about Java API . I think Sigil cannot be helping to do this...or not Comment : @robob No Sigil won t help with a Java facing tool . It is more of an editor than a toolkit .", "Question : This question already has an answer here : .. . .. . Reading ePub format questions 1388467 reading-epub-format 6 answers .. . .. . I am making an application of e book reading in that i want to perform some operations like change text color font select a text etc . I come to know that iphone os 4.0 and ipad are now supporting epub file formate but I am not able to know how to create such kind of application . If any one knows how to create such applications please let me know . thanks in advance .. . .. . Here are some links regarding e-pub .. . .. . http : en.wikipedia.org wiki EPUB .. . .. . http : code.google.com p epub-tools Comment : ok thanks brad . let me check all this things . Comment : Right now I am able to read the epub files and also showing the same in the webview but there are still many things which can be performed using such kind files in the iphone . As iBook provides lot many things So any other and newer ways to create the similar applications or the manner in which such applications can be created . Comment : It looks like the text font and colour might be controlled from a .css file which is declared in the content.opf file . Is it possible that the .css is updated when a epub app changes the font or colour . Comment : @BradLarson redeem yourself . Comment : @Will - Since you asked nicely . Wish I could search for all these old expired close votes . .. . Answer : Its not a tutorial but you might want to use the source-code http : bazaar.launchpad.net kovid calibre trunk files head : src calibre ebooks epub of Calibre s http : calibre-ebook.com about ebook viewer component as a reference note that Calibre is GPL licensed . Otherwise given that ePub is a zipped xml format I d get a copy of the spec http : www.idpf.org specs.htm and then start learning about xml-parsing in python http : diveintopython.net xml processing .", "Question : I am trying to develop an iPhone application to read ePub files . Is there any framework available to develop this I have no idea about how to read this file-format . I tried to parse a sample file with .epub extension using NSXML Parser but that fails . .. . Answer : Apparently EPUB is just an XML format so if you have an xml parser and the spec http : www.idpf.org specs.htm it should be okay . Plus a little tuto http : www.hxa.name articles content epub-guide 5Fhxa7241 5F2007.html Have fun EDIT : you could also read some code here http : code.google.com p epub-tools this is for generating epub not reading them but the code may be useful . EDIT again : And see links to related question in the right sidebar there are some links in the answers to free ebook reader which support ePub . .. . .. . EDIT 3 : You should add a comment when you edit your question so people who answer you can continue the discussion if you don t comment we re not noticed of your edit . So The parsing fail because you didn t read the spec or related questions on Stack Overflow.. . .epub file are a zipped folder containing XML file s not plain xml .", "Question : Does anyone know how I set the width and height for an epub book I ve noticed that there are books with different sizes and I am trying to work out how they do this . I ve been reading the spec http : www.idpf.org epub 30 spec but as yet I can t work it out Is it just done in CSS or is there part of the spec I need to use .. . Answer : Found the answer here : http : wiki.mobileread.com wiki Fixed layout ePub .. . .. . For iBooks you need to a a special xml document in the META-INF folder called com.apple.ibooks.display-options.xml with the following contents : .. . .. . Then you can set meta name viewport content width 1000 height 1000 meta in each xhtml file or body width : 709px height : 652px in css . For other eBook readers you are meant to be able to add : .. . .. . in the package definition but I have not tested this . More about that can be found in the spec http : www.idpf.org epub fxl .. . .. . Edit : you also need to set the same in your body so they all match . If you want full screen images you also need to set the height and width to be the same on these too with absolute positioning top : 0 left : 0 as well .", "Question : Does anyone know of a php class that can create export ePub files I have a book stored in a mysql database and I wish to publish it as an ePub format book It s a very basic book simple text and chapters and a few images . Any suggestions Comment : Perhaps writing one With php.net manual de book.zip.php http : php.net manual de book.zip.php and en.wikipedia.org wiki EPub http : en.wikipedia.org wiki EPub you should get results quite fast . It s just little more than a bunch of zipped HTML files . .. . Answer : Epub is just an archive like zip or tar . If you want to create an epub file with php from scratch you have to create separate html-files and a few xml-files with the correct information . Then you should combine them in an archive it s actually just a zip-archive . It s a little bit work but it s not very difficult to do with php . Creating a zip : http : davidwalsh.name create-zip-php .. . .. . For XML it s the simplest to create just the tags you need it s simple to build it with the correct output . So : .. . .. . 1 Create html and xml-files and save them temporarily on your server . 2 Create a zip archive with the correct files on your server . 3 Let the user download the archive with the extension .epub . Good luck", "Question : Microsoft CHM format is great as provide such facilities : .. . .. . Table of contends with tree view . Index . Indexed search . Based on HTML source . But this format is outdated and have many drawbacks : .. . .. . Have security issues allow execute JavaScript code . Don t know about new HTML formats . Not documented . Can not properly handle different character codings like UTF-8 . Are there any alternatives for CHM which have reader and compiler for all desctop OSes PS . I hear that QT come this something like KDE NetBeans also use own help format . How about non-vendor specific PPS . Some related : .. . .. . http : live.gnome.org devhelp and .. . DevHelp is a GNOME based online help system aimed toward developers .. . http : en.wikipedia.org wiki MHTML MHTML short for MIME HTML .. . http : en.wikipedia.org wiki EPUB free and open e-book standard by the International Digital Publishing Forum .. . http : en.wikipedia.org wiki Mobipocket also e-book proprietary format .. . .. . PPS . As state page http : en.wikipedia.org wiki Comparison of e-book formats most closed to CHM is EPUB and Mobipocket format . But this format internally use XHTML so existing html page may not properly rendered by EPUB mobi readers . Also as new to this format I don t know if they have TOC index and search as in CHM . Comment : What do you mean by vendor-specific Every technology has been developed by someone in CHM case it s Microsoft . Comment : @Eugene Homyakov . Every technology has been developed by someone but for general use used a few one outside of vendor products because of closed format and platform limited reader compiler . Comment : The devhelp link doesn t load . Was it meant to make a case for offline help : - Comment : @Marco van de Voort . I fix link . .. . Answer : Qt Assistant http : doc.qt.nokia.com latest assistant-custom-help-viewer.html is the closest I know it can be used to display custom help collections . However it is not pre-installed on any of the OSes .", "Question : I want to use epub book in my application . I found this link http : www.siegmann.nl epublib android to open my epub book . I understand how to show the text from the epub book .. . .. . but I have a problem with images CSS files and links . Their URL are to assets folder for example : .. . .. . file : android asset index split 000.html back note 1 File : android asset images image-1.jpeg .. . .. . And in the assets folder there isn t HTML page like this and there isn t image folder there is only the epub zipped file . How can I use all the inner files My code : .. . .. . chapter is my own class : .. . .. . to load the data into webview : .. . Answer : A simple way consists in unzipping the EPUB file into a temporary directory and then loading the XHTML files from there . In this way the relative links to image files CSS files etc . present in each XHTML file will be resolved automatically by the WebView . An example of this technique is here : https : github.com pettarin epub3reader .. . .. . Of course you can avoid unzipping the entire EPUB file and just read one XHTML file into memory RAM but if you do so you have to patch the XHTML source to be injected into the WebView and or manually manage the extraction of the images CSS etc . files referenced from the current XHTML . If you aim at simple EPUB files the just unzip in a tmp directory approach is much easier .", "Question : I m relatively new to ePub format but if I understand well to make programmatically an ePub starting from XHTML or PDF content could mean : .. . .. . choose HTML or XHTML content and validate them with an XHTML validator or clean them with Tydy .. . choose PDF file to insert in the ePub .. . create the XML manifest or XML packing files and TOC file .. . zip the whole files in a .epub file .. . validate the ePub I saw something in Google code .. . .. . So my question is if there is some sort of high level Java API to do these steps . Sure I can use API for ZIP XML in Java but does it exist higher tools thanks a lot .. . .. . ------ EDIT ------- .. . .. . I ve developed an open-source project to do that http : scribaebookmake.sourceforge.net .. . Answer : The following is a shameless plug for a project that I ve been working on myself . It is basically EPUB tooling written in Java for Eclipse . It comes with an API UI and an Ant task that allows you to do pretty much everything . See http : help.eclipse.org kepler topic org.eclipse.mylyn.docs.epub.help help introduction.html", "Question : I am trying to develop an iPhone application to read ePub files . Is there any framework available to develop this I have no idea about how to read this file-format . I tried to parse a sample file with .epub extension using NSXML Parser but that fails . .. . Answer : I read through this tutorial once free registration required sorry and it gave me a great introduction to ePub . deverloperWorks tutorial here http : www.ibm.com developerworks edu x-dw-x-epubtut.html .. . .. . I highly suggest you look at some of the XML processing libraries . If you just want to get specific information out of the XML file then you can pick the right parsing strategy . Comment : This tutorial is excellent and is written by the person who authored many of the standard open-source ePub tools available . It s a quick read and gives a perfect working intro to the ePub format .", "Question : I found a solution for reading epub books in android using epublib . I am able to read the subtitles of the book . But I didn t find a way to read the line by line of the content . How can I acheive this Sample code for getting titles of the book is .. . .. . Got this code from http : www.siegmann.nl epublib android .. . .. . How can I get the story of the book.. . .. . Answer : i try to read all of text in epub file line by line with this code but it s not work true how can i do this .. . .. . Comment : You simply need to call tocReference.getResource .getData which returns a byte array of the resource raw data of the xml xhtml file inside the epub file and then you can create a string from the byte array like new String byteArr charset . Comment : Thanks Neevek its work but if we want same view as there in book with images then is there any option to do this i think its not loading css image from provided path", "Question : Is it possible to display epub format books in web browser using pure HTML5 CSS and Jquery Could anybody please suggest how do I do this I have to also make this responsive to be able to make it work on iPad . I know that but I don t know how do I read the epub using HTML and Javascript . The epub may contain some mathematical functions and I need to display them properly too . .. . Answer : For scientific papers journal articles there are a best solution to simulating EPUB reader at browser . It can use XML JATS http : jats.nlm.nih.gov or XHTML from EPUB content . The PubReader use features and functions that are available in HTML5 and CSS3 . With CSS and Javascript it implements the formatting paging navigation and text reflowing . The entire article is loaded into the browser as a single HTML page and handles paging etc . locally . See : .. . .. . PubMed Central s PubReader in action http : www.ncbi.nlm.nih.gov pmc articles PMC3547968 report reader .. . .. . PubReader description http : www.ncbi.nlm.nih.gov pmc about pubreader .. . .. . PubReader source-code https : github.com NCBITools PubReader .. . .. . PS : PubReader is similar to the @torazaburo suggestion the EPUB-Readium browser interface http : readium.github.io readium-viewer-demo1 .", "Question : Is it possible to display epub format books in web browser using pure HTML5 CSS and Jquery Could anybody please suggest how do I do this I have to also make this responsive to be able to make it work on iPad . I know that but I don t know how do I read the epub using HTML and Javascript . The epub may contain some mathematical functions and I need to display them properly too . .. . Answer : Yes many people have done this . I m currently working on a nodejs based epub reader which supports some epub3 . Unlike many other projects it puts as much of the heavy lifting for rendering the content on the browser itself with a customizable HTML single page app to offer some navigational functionality . The main library is here : https : github.com Vaporbook epub2web" ] }
[ "yes-answer-long", "yes-answer-short" ]
xhtml
UNK_RELATION
netbeans6.8@netbeans@41
netbeans6 .8 -- it is the version 6.8 of @placeholder ide for java application development .
{ "confidence": [ 35.83849334716797, 34.089385986328125, 31.60572052001953, 30.044713973999023, 29.502655029296875, 28.675739288330078, 28.06903839111328, 27.891080856323242, 27.058982849121094, 27.058982849121094, 26.7845401763916, 26.7845401763916, 25.167783737182617, 24.468812942504883, 24.468812942504883, 24.20035171508789, 24.07331085205078, 24.012191772460938, 23.282882690429688, 23.06492805480957, 22.962764739990234, 22.962764739990234, 22.501358032226562, 22.501358032226562, 22.358428955078125, 22.204654693603516, 22.125518798828125, 22.077484130859375, 22.051860809326172, 21.842288970947266, 21.715248107910156, 21.428791046142578, 21.428791046142578, 21.373918533325195, 21.05963134765625, 20.787269592285156, 20.585485458374023, 20.435104370117188, 20.435104370117188, 20.435104370117188, 20.435104370117188, 20.435104370117188, 20.31702423095703, 20.178104400634766, 19.983642578125, 19.710594177246094, 19.60601043701172, 19.417558670043945, 19.417558670043945, 19.417558670043945, 19.362537384033203, 19.221498489379883, 19.20796012878418, 19.170513153076172, 19.10912322998047, 19.03434181213379, 18.750347137451172, 18.728069305419922, 18.65077781677246, 18.603513717651367, 18.41558074951172, 18.41558074951172, 18.41558074951172, 18.36377716064453, 18.168533325195312, 18.168533325195312, 18.07703971862793, 18.07703971862793, 18.035303115844727, 17.99982452392578, 17.80080223083496, 17.80080223083496, 17.80080223083496, 17.80080223083496, 17.80080223083496, 17.754125595092773, 17.70070457458496, 17.70070457458496, 17.575937271118164, 17.404104232788086, 17.37926483154297, 17.2187557220459, 17.18271255493164, 17.18271255493164, 17.075700759887695, 17.04979133605957, 17.021678924560547, 16.986757278442383, 16.812448501586914, 16.72823715209961, 16.72823715209961, 16.681560516357422, 16.681560516357422, 16.551776885986328, 16.551776885986328, 16.551776885986328, 16.551776885986328, 16.54535484313965, 16.23382568359375 ], "content": [ "I have Netbeans IDE version 6.8 and Glassfish version 3 .", "I have created application in ruby-on-rails by netbeans 6.8 IDE .", "I m using NetBeans IDE 6.8 .", "Yes it was removed in 6.8 .", "I use Java EE 6 with NetBeans 6.8 .", "enter image description here http : i.stack.imgur.com WJ1Cd.png .. . .. . Version : Netbeans 6.8", "What happened to Visual web in Netbeans 6.8 .", "The Visual Web Pack is an important feature and the main reason why we are using the netbeans ide instead of eclipse in our company for java web development .", "I attempted to install this JDK and a version of NetBeans that supports it 6.8 but the installation was unsuccessful .", "Yes it is I have tested it in NetBeans on Ubuntu version 6.8 and Windows 6.9.1 .", "I am using NetBeans 6.8 .", "The questioner specifically asked for NetBeans 6.8 .", "How to solve this issue with Netbeans 6.8", "Netbeans 6.8 http : netbeans.org community releases 68 includes GlassFish http : en.wikipedia.org wiki GlassFish which will work as well .", "And now you won t include this nice and very helpful tool in the future netbeans releases since 6.8", "I am using Netbeans 6.8 version and Ruby 1.9.1 installed on Windows XP .", "I am using JasperReport in a Struts-based web application with NetBeans 6.8 and IReport plug-in 3.7.4 .", "I have a problem with a project using netbeans 6.8 shows me errors in the IDE but compiles correctly .", "When I run the application from netbeans 6.8 the selected tab will be the same one as it was selected before closing the application .", "But someone had success with 6.8 amitmisra.wordpress.com 2010 01 30 netbeans-6-8-uml-support http : amitmisra.wordpress.com 2010 01 30 netbeans-6-8-uml-support", "I ve tried netbeans 6.8 and the problem remains .", "Actually I am using netbeans 6.8 .", "It s in package servlets .. . .. . I m using Netbeans 6.8 and Tomcat6", "Do you know how I can do this with NetBeans 6.8", "The UML plugin for the NetBeans IDE is available for until version 6.7 .", "I have successfully created one application in ruby-on-rails by the netbeans6.8 ide .", "This is a link-to a really old version of Java .", "I am simply attempting to run a java web project with jsp s and beans.. . using netbeans 6.8 on windows-xp .", "I am using Netbeans 6.8 JDK 1.6 and downloaded Simple Validation API .", "Each version of Netbeans has it s own cache so that s why it works in 7 and is broken en 6.8 .", "I m trying to properly compile a c++ opengl+sdl application using netbeans 6.8 under Snow Leopard 64-bit .", "int 6.5 and 6.8 they have the same font--monospaced the default font .", "I have created a app using NetBeans 6.8 and Tomcat 7 .", "http : stackoverflow.com questions 2654892 symbol-error-in-java-application-using-netbeans-6-8-when-adding-a-shared-project .. . .. . Within Netbeans .. . .. .", "This property must point to org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part of NetBeans IDE installation and is usually located at java ant extra folder .", "i want to add Label buttons text box above another label in netbeans 6.8 how can i do so", "I think netbeans will going down in the future because now there is no reason to use this ide instead of eclipse .", "I am building a BPEL process in Netbeans 6.8 and I invoke a Web Service that returns a list of ints .", "Can anyone tell me why Database options under services in my netbeans 6.8 seems empty with no options .", "Before installing netbeans 6.8 i ve also installed netbeans-7.1 also in my operating-system .", "In netbeans-7.1 i ve all database option but why i m not getting that under netbeans 6.8", "I am running Ruby 1.9.1 Rails 2.3.5 WEBrick 1.3.1 and NetBeans 6.8 on Windows 7 .", "There s also the added problem that your IDE may not yet be compatible with the version of Rails you re using .", "Tomcat implements the Java Servlet and the JavaServer Pages JSP specifications from Sun Microsystems and provides a pure Java HTTP web server environment for Java code to run .", "Any idea how to do this in java desktop application", "System info : Os : Vista IDE : Netbeans 6.8 Maven : apache-maven-2.2.1 .. . .. . edit .. . .. . Built program using mavean from Netbeans works fine I can run it from Windows cmd .", "I am trying to Run F6 a Rails application from NetBeans 6.8 and when i do so I get the following output in the lower left hand status bar of the IDE : .. . .. . I don t believe that the WEbrick server is even starting but i can start WEBrick and the same application I m working with in NetBeans from the command-line .", "The problem here is that the ANT build generated by Netbeqns is designed to be run within the IDE .", "You would then be able to make use of your libraries using any IDE .", "I am using the NetBeans IDE and I find one odd oversight .", "I m getting the following error trying redeploy an webapp on Tomcat from within Netbeans 6.8 .", ".. . .. . .. . 8 .", "It s poor mans version-control hence I don t recommend it .", "I am facing one problem in Netbeans 6.8 the output window of Netbeans not showing the output from project which i used as system.out.println .", "What happens when you move to a different IDE and you have to learn how to do it for that ide", "But my all application name showing in the project window of netbeans IDE are broken let say my application name is Test then in the project window it is showing Test broken .", "Hello Ewald thanks for your reply but i am using ibatis with a java desktop application and not a web application .", "I didn t know about this option in any IDE .", "You should create another tool a new Java Studio Creator for those we are a lot that want to continue using this plugin", "NetBeans just provides a GUI to make development with Swing easier .", "In Xcode there s a handy feature where you can save the state of a project and revert to a previous version .", "You should get familiar with some form of version-control sooner than later : they really make your life easier .", "addendum : if you re against version-control you can always just copy the project folder and replace it if post changes .", "I don t have 6.8 anymore but the following is true for 6.9 and 6.10m1 - in the directory home dir .netbeans version config there is a file called .nbattrs - edit it and look for something like : .. . .. . attr name GlassFishEE6 Instances glassfish autoregistered instance httpportnumber stringvalue 8082 .. . .. . Change the value to whatever you ve set in the appropriate Glassfish domain .", "I am trying to run ANT through shell without importing my projects in NetBeans IDE .", "Either open the project in the IDE and make sure CopyLibs library exists or setup the property manually .", "In both NB versions 6.8 and 6.9 RC2 I tested maven 3.0-beta-1 and maven-2.2.1 with the same result .", "I recall fixing some similar problem a while back can t recall if it was before or after 6.8 .", "For SVN on Windows : http : tortoisesvn.net .. . .. . On a side note : unless you re doing GUI building or you have a specific requirement for NetBeans I find Eclipse to be a better IDE on most levels--you should definitely check it out if you re just getting into programming generally speaking it is just more responsive .", "In Nb 8 there is no .nbattrs in config", "Not sure but after restarting my IDE it is working even with W3C .", "I m not able to uninstall NetBeans IDE 7.3 from my PC .", "In .netbeans IDE Top Menu click Run and then Set Project Configuration .", "Why do you rely on an IDE to generate code for you", "Learn how to write your own code then the IDE doesn t matter :", "This is most likely a bug in 6.8 as I have ran into the same problem and I only solved it by recreating the project was a fairly fast process only had to re-import the sources and then add the JARs on which it depends .", "However for a plain java project this seems to be more useful .", "right-click on file- export- java- .jar then finish .", "My glassfish listener is set to port 81 but when I try to run the simplest web application via the Netbenas IDE it tries to run it on port 8080 . where can I change it", "Yeah..I understand that..I want to know the same that how we can set the environment if we want to run without IDE through shell .", "Well in version 7.3 there s no such menu entry .", "I am using Netbeans 6.8 to write a small desktop application that includes a JTree component and my requirement is that I be able to save and load the tree structure but that the structure allows for three items of information per tree node - The text to be displayed as the node a unique identifier and a file name .", "I am using ibatis to connect to database in a java desktop application .. . .. . Any help would be appreciated .", "I have a java desktop application which i am using ibatis for database-connection .", "I have just started playing with Java and I really like the language .", "From someone I got suggestion to downgrade upgrade the ruby-debug-ide to 0.4.7 then I am getting the following issue : C : Program Files NetBeans 6.8 ruby2 jruby-1.4.0 lib ruby site ruby-1.8 rubygems custom require.rb : 31 warning : no super class for OpenSSL : : Digest Object assumed and finally installation failure.Then how can I solve the issue", "old specs : Vista home premium 4 GB ram 320 gb hdd 5400 rpm java 1.6.0.16 .. . .. . new specs : Win 7 professional 8 GB ram 250 gb ssd java 1.6.0.21 .. . .. . The compilation on the new machine is much slower .", "It s not clear whether you re using netbeans as a development platform", "I try to debug using netbean 6.8 and figure out that this line return new RESTGreeting getGreeting name in HelloGreetingService.java cause the exception .", "Just stop use IDE forever is ok too muuuuuuuuuuuuuuuuuuuuch annoying me", "For those interested : I used the Netbeans IDE to create a new Javabean object .", "alt text http : i983.photobucket.com albums ae311 keatingWang swing run.png .. . .. . when design and run in netbeans 6.5 they are the same but int 6.7 and 6.8 as you see they are different", "I ve now created a new project in a folder off c : and I ve used the netbeans 6.8 wizards to create a JavaBean and a BeanInfo class to go with it then set the 32x32 icon using the BeanInfo editor .", "It s showing instance of the program is still running even after I close all the background processes of the IDE .", "Do you know if the error is coming from installation of the IDE or from installation of the JDK", "This could take a while.. . .. . .. . ERROR : Error installing ruby-debug-ide : ERROR : Failed to build gem native extension .", "Now you need to remove GlassFish from NetBeans and add it again so that NetBeans IDE understands the new port-number .", "NetBeans is written and runs entirely in Java .", "i stalled weka in my system but still im having problem to use weka classes in my java code" ] }
{ "confidence": [ 42.83850860595703, 34.85240936279297, 34.5345458984375, 33.592674255371094, 33.23307800292969, 32.941219329833984, 31.027774810791016, 30.306690216064453, 30.306690216064453, 30.075565338134766, 29.972675323486328, 29.810832977294922, 29.80671501159668, 29.53720474243164, 29.242326736450195, 29.060348510742188, 28.723037719726562, 28.631366729736328, 28.528461456298828, 28.527050018310547 ], "content": [ "Question : What happened to Visual web in Netbeans 6.8 . Has the feature been removed Thanks Comment : Is there any question in it or you have an issue .. . Answer : The Visual Web Pack is an important feature and the main reason why we are using the netbeans ide instead of eclipse in our company for java web development . And now you won t include this nice and very helpful tool in the future netbeans releases since 6.8 I think netbeans will going down in the future because now there is no reason to use this ide instead of eclipse . Good by Netbeans - we have a good time :", "Question : I have Netbeans IDE version 6.8 and Glassfish version 3 . My glassfish listener is set to port 81 but when I try to run the simplest web application via the Netbenas IDE it tries to run it on port 8080 . where can I change it Using port 8080 for my web application is out of the question for me . Comment : which listener is set to port 81 .. . Answer : if you are using Glassfish 3.1.1 it may in home user .netbeans 7.1.2 config GF3 1 domain1 config domain.xml Find the 8080 port and replace it with alternate port-number .", "Question : I have Netbeans IDE version 6.8 and Glassfish version 3 . My glassfish listener is set to port 81 but when I try to run the simplest web application via the Netbenas IDE it tries to run it on port 8080 . where can I change it Using port 8080 for my web application is out of the question for me . Comment : which listener is set to port 81 .. . Answer : A bit late but this should work.. . I don t have 6.8 anymore but the following is true for 6.9 and 6.10m1 - in the directory home dir .netbeans version config there is a file called .nbattrs - edit it and look for something like : .. . .. . attr name GlassFishEE6 Instances glassfish autoregistered instance httpportnumber stringvalue 8082 .. . .. . Change the value to whatever you ve set in the appropriate Glassfish domain . If like me you have more than one version of Glassfish installed or perhaps multiple-domains just look out for the ....displayName keys and follow your nose - it should be obvious which one you re altering . HTH .. . .. . John .. . .. . NB : you can of course delete the server and add it in again using the wizard to select the right ports - but I think editing .nbattrs is far easier .. . .. . NB2 : there is another .nbattrs file further down the directory chain that also contains glassfish config can t remember the exact location - sorry and this looks like the right place to change the port - but editing this file appears to have no effect as for me it gets overridden with whatever is in config .nbattrs file whenever I start up Netbeans Comment : In Nb 8 there is no .nbattrs in config", "Question : I have created application in ruby-on-rails by netbeans 6.8 IDE . But my all application name showing in the project window of netbeans IDE are broken let say my application name is Test then in the project window it is showing Test broken . How can I resolve this issue .. . Answer : Use a decent editor for working on Rails projects . Try TextMate Vim or Sublime Text 2 . The problem with IDE s is that they hide a lot of Rails behind menus and buttons . There s also the added problem that your IDE may not yet be compatible with the version of Rails you re using . Don t worry so much about the title of NetBeans open a real editor and write beautiful code Edit : NetBeans probably finds your gems not installed or a failing test or maybe even syntax errors in your project .", "Question : null .. . Answer : My organization has old code that we are trying to modify . It was developed on JDK 1.6.0 25 . I attempted to install this JDK and a version of NetBeans that supports it 6.8 but the installation was unsuccessful . I get an error stating the the version is unsupported . Does anyone know where i can receive support for these old versions of Oracle product Comment : ... . it is very possible to install both those versions . you may want to be more precise which version product is not supported what is the exact error message Comment : Do you know if the error is coming from installation of the IDE or from installation of the JDK You can also use newer versions of the JDK to compile against older bytecode by the way . Comment : On what machine Have you made sure the architecture is correct Comment : It s not clear whether you re using netbeans as a development platform Otherwise I d say that IDE s generally allow you to specify which jdk you want to use in java projects So use the existing Netbeans that you have and switch jdks to the 1.6 one in your project Comment : The error is when trying to install the old NetBeans . Yes the architecture is correct . I will try installing the latest NetBeans and pointing it to the JDK1.6 Update 25", "Question : I am trying to Run F6 a Rails application from NetBeans 6.8 and when i do so I get the following output in the lower left hand status bar of the IDE : .. . .. . I don t believe that the WEbrick server is even starting but i can start WEBrick and the same application I m working with in NetBeans from the command-line . I am running Ruby 1.9.1 Rails 2.3.5 WEBrick 1.3.1 and NetBeans 6.8 on Windows 7 . .. . Answer : Well found the answer . Was a bug in NetBeans but there is a workaround : http : netbeans.org bugzilla show 5Fbug.cgi id 158794 Comment : Had the same problem - thanks for the link", "Question : I have Netbeans IDE version 6.8 and Glassfish version 3 . My glassfish listener is set to port 81 but when I try to run the simplest web application via the Netbenas IDE it tries to run it on port 8080 . where can I change it Using port 8080 for my web application is out of the question for me . Comment : which listener is set to port 81 .. . Answer : Locate config folder which may be as follows : .. . .. . Open domain.xml using any text-editor . Look for 8080 and change it to some other port-number that doesn t conflict with other port numbers . source : http : ohmjavaclasses.blogspot.com 2012 01 how-to-change-port-number-for-glassfish.html Comment : If you don t modify .nbattrs file Netbeans re-writes 8080 in domain.xml and GlassFish is starting at port : 8080 I am using Netbeans 7.1.2 and GlassFish 3.1.2 Comment : @skiabox yes true but it solved my problem i dont have much time so this solution did what i wanted", "Question : I am using Netbeans 6.8 version and Ruby 1.9.1 installed on Windows XP . I tried to install the fast debugger and I am getting the following error . Building native extensions . This could take a while.. . .. . .. . ERROR : Error installing ruby-debug-ide : ERROR : Failed to build gem native extension . .. . D : Ruby19 bin ruby.exe mkrf conf.rb .. . .. . Building native extensions . This could take a while.. . .. . .. . Gem files will remain installed in D : Ruby19 lib ruby gems 1.9.1 gems ruby-debug-ide-0.4.9 for inspection . .. . Results logged to D : Ruby19 lib ruby gems 1.9.1 gems ruby-debug-ide-0.4.9 ext gem make.out .. . .. . Have someone else faced this problem before . Please help . Thanks . .. . Answer : The WIKI link given here is broken - now can find at http : kenai.com projects jruby pages UsingTheJRubyDebugger Comment : Thank you for the link", "Question : I am using Netbeans 6.8 version and Ruby 1.9.1 installed on Windows XP . I tried to install the fast debugger and I am getting the following error . Building native extensions . This could take a while.. . .. . .. . ERROR : Error installing ruby-debug-ide : ERROR : Failed to build gem native extension . .. . D : Ruby19 bin ruby.exe mkrf conf.rb .. . .. . Building native extensions . This could take a while.. . .. . .. . Gem files will remain installed in D : Ruby19 lib ruby gems 1.9.1 gems ruby-debug-ide-0.4.9 for inspection . .. . Results logged to D : Ruby19 lib ruby gems 1.9.1 gems ruby-debug-ide-0.4.9 ext gem make.out .. . .. . Have someone else faced this problem before . Please help . Thanks . .. . Answer : It s a known issue please follow instructions at : http : wiki.jruby.org wiki Using the JRuby Debugger", "Question : null .. . Answer : I have successfully created one application in ruby-on-rails by the netbeans6.8 ide . Now whenever I am going to run the application I got two errors from server log file like SEVERE : Failed to create JRuby instance . and SEVERE : library socket could not be loaded : java.lang.LinkageError : loader instance of java net URLClassLoader : attempted duplicate class definition for name : org jruby ext socket RubySocket How can I resolve this issue Comment : Are you actually trying to run it against JRuby NetBeans defaults to JRuby whether you have it installed or not . If you go to File - Project Properties you should be able to select both your platform and what server you want to run . Comment : Ya I have done this . From File - Project Properties I have checked that My Ruby Platform is Built-in JRuby 1.4.0 Configuration is default Server is GlassFish v3 Domain Server Port Number is 8080 and Encoding is UTF-8 . Comment : From someone I got suggestion to downgrade upgrade the ruby-debug-ide to 0.4.7 then I am getting the following issue : C : Program Files NetBeans 6.8 ruby2 jruby-1.4.0 lib ruby site ruby-1.8 rubygems custom require.rb : 31 warning : no super class for OpenSSL : : Digest Object assumed and finally installation failure.Then how can I solve the issue", "Question : I have strange problem with my Neatens+Maven installation . This is the shortest code to reproduce the problem : .. . .. . When I m running it as Maven Project inside Netbeans console seems to be broken . It just ignores my input . It s look like infinitive loop in String param s.next or like String param s.next placed in infinitive loop .. . .. . However this project works fine when it s compiled as Java Aplication project . It also works O.K . if I build and run it from cmd . System info : Os : Vista IDE : Netbeans 6.8 Maven : apache-maven-2.2.1 .. . .. . edit .. . .. . Built program using mavean from Netbeans works fine I can run it from Windows cmd . I just can t test it Run nor debug : using Netbeans . And I think I forgot to ask the question . So of course my first question is : how can I fix this problem And second is : Is it any workaround for this For example configuring Netbeans to run external commend line app instead of using built-in console . edit one more update : .. . .. . I use Exec Maven Plugin version 1.1.1 Problem also occurs in NB 6.9 RC2 . In both NB versions 6.8 and 6.9 RC2 I tested maven 3.0-beta-1 and maven-2.2.1 with the same result . Comment : Just for clarification - maven is a build tool - do you execute the application during the build Or is the application broken when it was built was maven Comment : I think the console does not support the input recognize the characters you type no infinitive loop . But if you can do this in a normal Java project then this is a bug yes . .. . Answer : You can use the exec goal exec : java to run the app in the same vm default is exec : exec - new vm . Comment : Open project properties select Actions in the listed actions select Run Project and change the Execute Goals from org.codehaus.mojo : exec-maven-plugin : 1.1.1 : exec to org.codehaus.mojo : exec-maven-plugin : 1.1.1 : java Comment : It doesn t work .", "Question : I have Netbeans IDE version 6.8 and Glassfish version 3 . My glassfish listener is set to port 81 but when I try to run the simplest web application via the Netbenas IDE it tries to run it on port 8080 . where can I change it Using port 8080 for my web application is out of the question for me . Comment : which listener is set to port 81 .. . Answer : If GlassFish and Oracle Database are installed in the same system it results in port conflict as both of them use port 8080 . Here is the procedure to change port-number of GlassFish so that you can run GlassFish at a different port-number from Oracle to avoid the port conflict . 1 . Find out the folder where GlassFish is installed . If you installed GlassFish along with NetBeans you can find out the folder where GlassFish is installed by using the following procedure . Select Services window by using Window - Services in NetBeans IDE .. . .. . Expand Servers node and select GlassFish Domain .. . .. . Right click and select Properties option from popup menu . On the right of Domains Folder you can see the folder where GlassFish is installed . For example : .. . C : netbeans6.8 glassfish-v3 glassfish domains . You can also see the other details regarding Glassfish such as port-number in the same window . 2 . Go to the folder where Glassfish in installed . 3 . Go into config folder which is as follows : c : netbeans6.8 glassfish-3 glassfish domains domain1 config .. . .. . 4 . Open domain.xml using any text-editor . 5 . Look for 8080 and change it to some other port-number that doesn t conflict with other port numbers . I generally change it to 9999 . 6 . Save domain.xml . 7 . Now you need to remove GlassFish from NetBeans and add it again so that NetBeans IDE understands the new port-number . For this do the following .. . .. . In Servers window of NetBeans remove GlassFish by using RemoveServer button after selecting GlassFish server . Click on AddServer and select GlassFish V2 or GlassFish V3 and click on Next . Select the Installation Location of GlassFish and click on Next . Accept defaults and click on Finish . .. . .. . .. . 8 . Restart GlassFish if it was already running . Comment : After trying all the other answers the only thing that worked for me was to delete the server and re-create it .", "Question : i want to add Label buttons text box above another label in netbeans 6.8 how can i do so Comment : you look it up in the doc . not here Comment : very basic try this : youtube.com watch v LFr06ZKIpSM http : www.youtube.com watch v LFr06ZKIpSM .. . Answer : What your talking about isn t in fact NetBeans its the Swing Application Framework http : java.sun.com developer technicalArticles javase swingappfr . NetBeans just provides a GUI to make development with Swing easier . Check out the link above for more information .", "Question : I have a problem with a project using netbeans 6.8 shows me errors in the IDE but compiles correctly . Using Netbeans 7.1 does not show errors and also compiles . I already checked the libraries and jar s files . Example file http : i.stack.imgur.com dzGeQ.png .. . .. . Project Libaries http : i.stack.imgur.com vrZat.png .. . .. . EJB libraries http : i.stack.imgur.com UrIVb.png .. . .. . WAR Libraries http : i.stack.imgur.com ODtZv.png Comment : See stackoverflow.com a 3546418 44522 http : stackoverflow.com a 3546418 44522 if it helps . .. . Answer : This is a common bug in Netbeans . You need to delete the .netbeans version var cache index folder in your user directory . Each version of Netbeans has it s own cache so that s why it works in 7 and is broken en 6.8 .", "Question : What happened to Visual web in Netbeans 6.8 . Has the feature been removed Thanks Comment : Is there any question in it or you have an issue .. . Answer : It is an harakiri for Netbeans The reason i used netbeans instead of eclipse is the Visual web in Netbeans You should create another tool a new Java Studio Creator for those we are a lot that want to continue using this plugin", "Question : I have strange problem with my Neatens+Maven installation . This is the shortest code to reproduce the problem : .. . .. . When I m running it as Maven Project inside Netbeans console seems to be broken . It just ignores my input . It s look like infinitive loop in String param s.next or like String param s.next placed in infinitive loop .. . .. . However this project works fine when it s compiled as Java Aplication project . It also works O.K . if I build and run it from cmd . System info : Os : Vista IDE : Netbeans 6.8 Maven : apache-maven-2.2.1 .. . .. . edit .. . .. . Built program using mavean from Netbeans works fine I can run it from Windows cmd . I just can t test it Run nor debug : using Netbeans . And I think I forgot to ask the question . So of course my first question is : how can I fix this problem And second is : Is it any workaround for this For example configuring Netbeans to run external commend line app instead of using built-in console . edit one more update : .. . .. . I use Exec Maven Plugin version 1.1.1 Problem also occurs in NB 6.9 RC2 . In both NB versions 6.8 and 6.9 RC2 I tested maven 3.0-beta-1 and maven-2.2.1 with the same result . Comment : Just for clarification - maven is a build tool - do you execute the application during the build Or is the application broken when it was built was maven Comment : I think the console does not support the input recognize the characters you type no infinitive loop . But if you can do this in a normal Java project then this is a bug yes . .. . Answer : I recall fixing some similar problem a while back can t recall if it was before or after 6.8 . The problem is two fold there s input conversion within the maven build itself as it s running the app in forked process different jvm . then in netbeans console we again have to to the input piping again . please check that you are using the latest released exec-maven-plugin . You can also reach the netbeans issuetracking for that problem I m sure you might get more context there .", "Question : I have a problem with a project using netbeans 6.8 shows me errors in the IDE but compiles correctly . Using Netbeans 7.1 does not show errors and also compiles . I already checked the libraries and jar s files . Example file http : i.stack.imgur.com dzGeQ.png .. . .. . Project Libaries http : i.stack.imgur.com vrZat.png .. . .. . EJB libraries http : i.stack.imgur.com UrIVb.png .. . .. . WAR Libraries http : i.stack.imgur.com ODtZv.png Comment : See stackoverflow.com a 3546418 44522 http : stackoverflow.com a 3546418 44522 if it helps . .. . Answer : Can you give clarity into what kind of application you are creating For e.g . Is it a Struts project etc Say for example you are creating a Struts Project in NetBeans . You might come across a problem if the Netbeans Struts Library you used in one version of NetBeans is different from the version you are using in the second . To resolve the issue : Remove the Library from the project and add your own Struts JAR file .", "Question : I have Netbeans IDE version 6.8 and Glassfish version 3 . My glassfish listener is set to port 81 but when I try to run the simplest web application via the Netbenas IDE it tries to run it on port 8080 . where can I change it Using port 8080 for my web application is out of the question for me . Comment : which listener is set to port 81 .. . Answer : I m a bit late too but I ll add my comments just-the-same in case anyone runs across this issue in the future . I m running Windows 7 with NetBeans 6.9.1 and GlassFish 3 locally on a different port 2118 as not to conflict with my Tomcat server on default 8080 . If you navigate to home dir .netbeans version config GlassFishEE6 Instances you ll find your .nbattrs file . Edit attr name httpportnumber stringvalue 8080 to reflect the desired port . Save the file . Restart your server and you should be able to deploy test your web apps as desired using NetBeans . Incidentally poking around under home dir .netbeans version config J2EE InstalledServers you ll see another .nbattrs file and because I have two app servers installed locally I see fileobject name instance for Tomcat and fileobject name instance 1 for GlassFish . XML entries attr name port stringvalue 8080 and attr name port stringvalue 2118 reflect the respective assigned ports for each server and the change made in the previous .nbattrs file . Hope this helps .", "Question : while using netbeans is it necessary to have apache tomcat installed for creating a servlet .. . Answer : For compiling a basic servlet you need to have the servlet-api.jar library added to the classpath and to deploy a servlet you need a servlet container http : en.wikipedia.org wiki Web container . Apache Tomcat http : en.wikipedia.org wiki Apache Tomcat or Jakarta Tomcat or simply Tomcat is an open-source servlet container developed by the Apache Software Foundation ASF . Tomcat implements the Java Servlet and the JavaServer Pages JSP specifications from Sun Microsystems and provides a pure Java HTTP web server environment for Java code to run . Netbeans 6.8 http : netbeans.org community releases 68 includes GlassFish http : en.wikipedia.org wiki GlassFish which will work as well .", "Question : It seems to me the UML module of NetBeans is a bit too much hidden . In NetBeans 6.5 it was very easy to create an UML diagram . No plugin installation necessary or sth . like . Read my post http : karussell.wordpress.com 2010 01 24 where-is-uml-for-netbeans-6-8 where I found a zip file to install the UML module . And now after this procedure I got the UML module back but it seems to me that I cannot create class-diagram with it . Do you know how I can do this with NetBeans 6.8 Update1 : There seems to be no support .. . .. . Update2 : Nevertheless somebody http : amitmisra.wordpress.com 2010 01 30 netbeans-6-8-uml-support seems to got it working . Comment : yeah I agree much easier on earlier versions even 6.7 Comment : The UML plugin is no longer supported in new versions of NetBeans . Not sure why but that seems to be the case does not answer your question but it does put it in context . I could be just slowly breaking . Comment : @Karussell It is two years since your original post . Do you know if there has been any new UML or Class Diagram support in Netbeans 7 . Comment : there is still no support for it .. . Answer : If you go here http : dlc.sun.com.edgesuite.net netbeans-6.9 rc zip.html and download the UML module cluster you can simply copy it into the NetBeans install directory and then NetBeans will have UML functionality again If you don t feel like looking through the page of module clusters the direct download link is here http : javascript 3a 20download file 28 27zip moduleclusters netbeans-6.9rc2-201005312001-ml-uml.zip 27 29 . Comment : Is reverse-engineering from java source working e.g . to produce class diagrams Comment : Yes it is I have tested it in NetBeans on Ubuntu version 6.8 and Windows 6.9.1 ." ] }
[ "yes-answer-long", "yes-answer-short" ]
netbeans
UNK_RELATION
servicecontract@wcf@85
servicecontract -- a service contract is a contract between a web service such as a @placeholder service and a client .
{ "confidence": [ 56.25481414794922, 53.27756881713867, 52.08009338378906, 51.30864334106445, 50.95206832885742, 50.95206832885742, 49.56739807128906, 49.56739807128906, 48.3790397644043, 48.070858001708984, 47.82890319824219, 47.82890319824219, 47.06418991088867, 46.73561096191406, 46.43301010131836, 45.34642028808594, 44.13272476196289, 43.598392486572266, 43.598392486572266, 43.598392486572266, 43.47140884399414, 43.295536041259766, 42.77555465698242, 42.505184173583984, 42.505184173583984, 42.505184173583984, 42.50510025024414, 42.50510025024414, 42.50510025024414, 42.24482345581055, 42.21372985839844, 40.26731872558594, 40.00415802001953, 40.00415802001953, 39.65776062011719, 39.172584533691406, 39.172584533691406, 39.04133224487305, 38.966102600097656, 38.197628021240234, 38.197628021240234, 38.07929611206055, 37.89992141723633, 37.89992141723633, 37.89992141723633, 37.89992141723633, 37.89992141723633, 37.89992141723633, 37.89992141723633, 37.89992141723633, 37.89992141723633, 37.05430603027344, 36.851356506347656, 36.82538986206055, 36.80663299560547, 36.80663299560547, 36.80663299560547, 36.80663299560547, 36.80663299560547, 36.628910064697266, 36.51905822753906, 36.18484878540039, 36.17110061645508, 36.132530212402344, 35.99759292602539, 35.807594299316406, 35.49629211425781, 35.49334716796875, 34.66743469238281, 34.415714263916016, 34.41233444213867, 34.41233444213867, 34.41233444213867, 34.41233444213867, 34.28854751586914, 34.28854751586914, 34.18958282470703, 34.09055709838867, 33.85819625854492, 33.31904602050781, 33.19525909423828, 32.91948699951172, 32.54158401489258, 32.433876037597656, 32.43100357055664, 32.089576721191406, 32.008705139160156, 31.83740234375, 31.686927795410156, 31.686927795410156, 31.650253295898438, 31.557754516601562, 31.41525650024414, 31.34058380126953, 31.226917266845703, 31.226917266845703, 31.018600463867188, 30.99628448486328, 30.90410804748535, 30.762271881103516 ], "content": [ "The service contract acts as the contract duh", "Will my service contract change", "it defines an operation that is part of a service contract in a Service .", "Your Service Contract interface is just that - a formal contract between what the server will accept and what the client needs to adhere to .", "What exactly is a service contract in WCF", "How will the service contract look like", "Then I have Service Contract : string MakeRequest Request request After that I generate Service Reference for this contract .", "You can use T in service contract if you replace T with specific type during service contract implementation .", "MSDN has this to say on data contracts : .. . .. . A data contract is a formal agreement between a service and a client that abstractly describes the data to be exchanged .", "so when we can write wcf service without service contract interface then why people use interface as service contract .", "Interface feels more logical to me for a service contract .", "AFAIK I won t need to change the service contract .", "I have a Service Contract and Data Contract with different namespaces .. . .. . 1 .", "here u specify a class name for service contract .", "This is the API that gets pushed across the wire in WCF and the main way to define the contract that is used for communication between the client and service .", "How can I write a WCF web service that has single endpoint but multiple service contract", "i am looking for small complete wcf service code which help me to visualize how to design service contract in such way that if we extend the functionality of service contract later then client who will consume my service will not face any problem .", "how ChannelFactory can solve the above problem when service contract will-change", "so looking for all the valid point for using interface as service contract .", "But 600 operations in a given service contract is really overwhelming number .", "For DataContracts the namespace is often similar to the ServiceContract namespace .. . but uses using a schemas uri section .. . .. . Example Service Contract with Namespace .. . .. . Example Data Contract with Schema Segment in Namespace .. . .. . Thank you to John Saunders or getting me started .", "If you are using a strict contract versioning system that relies on inheriting one ServiceContract from another then adding service classes to the same inheritance tree will ruin it .", "For example : .. . .. . The KnownType attribute let s WCF know that some other type not explicitly referenced in the service contract will be a part of the contract .", "I have a simple service contract defined as : .. . .. . which is implemented in a local WCF service accessed through a net.pipe : address .", "so looking for discussion that how possible to develop wcf service without service contract interface .", "i just like to know how the above service will run without service contract as interface .", "Im creating a service contract in my wcf application and it contains a lot of methods .", "Here is service contract .. . .. . i have no clue what is going on .", "So there was a Send OTMessage operation in the service contract and in the callback interface as well .", "so if anyone go to this url How to change WCF service contract which does not effect client", "how it will work because i know that when we develop wcf service then i have to write one service contract interface for single service .", "No but you can make an extension method to your proxy and or service contract for convenience that would expose a params string array parameter and pass it to the real proxy service contract as a string array .", "In the following WCF service contract WCF expects that the response has a Body and an element called HelloResponse : .. . .. . On the service I m calling it is actually called HelloResult .", "I have 3 service contract interfaces in my WCF library like this : .. . .. . Also I have a service which implements ServiceContract3 .", "I just implemented the service contract and set up Routing to make the service operations work .", "And then I changed the ServiceContract to MyClientProject.ServiceReference1.IService to be refer to the new Service Reference .", "It permits one service class to implement more than one ServiceContract if appropriate .", "WCF completely decouples the client from the service if you specify the implementation of the service as the service you have tightly coupled your client to the service .", "many people say if we make our service a service contract instead of interface then our business logic will be expose to client but really do not understand how it will be possible .", "http : stackoverflow.com questions 21306416 how-to-change-wcf-service-contract-which-does-not-effect-client .. . .. . then knows what he said .", "I tried adding an assembly level contract namespace so that both the contracts one at service and one at client level are part of one namespace .", "In a WCF service is it possible to include a data member inside a ServiceContract definition", "A Service Contract is an interface which has been marked with the ServiceContractAttribute http : msdn.microsoft.com en-us library system.servicemodel.servicecontractattribute.aspx .", "i am searching right write up why we need to use interface as Service contract in WCF .", "config entry .. . .. . but very disappointed that not getting all the valid reason like why people often use interface as service contract", "so just tell me all the advantage we get when we use interface as service contract .", "from the link which i shared is not very clear that why people go for interface for service contract .", "As you have demonstrated - you don t need to define an interface for a service contract to get it working .", "I have suspicion that I have to use service contract namespace but I can t find what the procedure is", "So after some googling I changed the service contract to accept a Stream rather than a Data .", "The contract would look something like this : .. . .. . The idea is that you create a router method for your service along the lines of this article .", "the things which i do not understand how to design my service contract in such a way that few operation i will expose to other client and extended feature i will expose to internal client .", "Is it possible that we can expose few methods OperationContract of one contract ServiceContract to one WCF binding and rest methods OperationContract of same contract ServiceContract to other binding", "IRestApi is an interface defining the rest contract between the client and server .", "I have a WCF Service interface a class that implements the contract and a hosting winforms application .", "OK I just hoped there is a way how to say explicitly each method is a part of my service contract .", "Also pay attention that in your code you call GlobalProxy.getMyObject s but service contract has getMyObject method .", "i am looking for all the valid points why people use interface as service contract", "Something that looks like this : I m trying to expose a field property in a class which implements a service contract .", "between the publisher of the service and the clients that consume it .", "In the book the author has mentioned : .. . .. . The ServiceContract attribute maps a CLR interface class as a WCF contract independently of that type s visibility .", "If it was WCF service - everything would be great because we have ServiceContract and it is the same for server and client .", "Both the client and the service run on the same machine but the service runs as a trusted Windows service with LOCALSYSTEM identity .", "many people say if we make our service a service contract instead of interface then our business logic will be expose to client but really do not understand how it will be possible at because when client will create proxy then proxy will never expose implementation detail at client-side .", "So let s say we have a service contract : .. . .. . and data contract : .. . .. . if I really need to change the latter into something else : the following is just example .. . .. . ...then how shall I use DTOCustomer2 instead of DTOCustomer1 from the service so that old and new clients will be compliant", "So we have 3 service contracts : .. . .. . and huge amount of operation contracts in each : .. . .. . The number of those operation contracts are already 2000 across all 3 services and approximately 600 per each service contract .", "Is there a simple way to set the CLS namespace as contract namespace for the entire service and its datacontracts", "Another alternative would be to share the contract between the server and the client - instead of letting the tool generate a client proxy you simply copy or reference the contract file in the client project .", "As when you use a proxy class of a Web service or WCF service no need of creating service-reference .", "This means every client still works without regenerating the client even after updating the web service definition", "However I would prefer our devs avoid constructor logic in service contract classes in case we can t use DynamicProxy for some reason .", "Your service contract can be rewritten with usage of ServiceKnownTypeAttribute so that T1 is replaced with FI CusipMaster and ServiceKnownType specifies all possible classes derived from FI CusipMaster .", "I am able to host the contract but the generics methods doesn t show up when I create proxy Add service-reference", "You may be able to do something along these lines with the new WCF 4 RoutingService if you create a separate instance of each channel service contract .", "I have a service contract : .. . .. . Some of our devs are doing this sort of thing : .. . .. . I am of the opinion that constructor logic does not belong in our service contracts since that code won t work if you use Add Service Reference.. . and are working with proxy classes generated by Visual Studio .", "i got this url Why does .net WCF Service require the Interface http : stackoverflow.com questions 5169915 why-does-net-wcf-service-require-the-interface and from here i came to know that we can write service contract attribute on class instead of interface .", "Generated operation contract is correct .", "a : .. . .. . Would a client consuming this WCF-Service need to make additional changes to work with the new service definition", "I have 3rd party wcf soap service which needs to-be consume so i have discovered http : www.codeproject.com Articles 328552 Calling-a-WCF-service-from-a-client-without-having msg 4437111 xx4437111xx a way to generate code in memory and invoke the service with simple input arguments .", "it also defines some Request Response classes where the request apparently wraps the parameters of the service operation contract and the Response class wraps the result return-value .", "i was searching google to know that how we can easily convert asmx service to wcf and there i saw people write code like .. . .. . this is my old asmx service .. . .. . convert to wcf .. . .. . i saw when converting then people is not using service contract interface .", "The system consists of public service exposed to our clients middle office service and back office service .", "if I host this contract .", "Is possible to access WCF Service without adding Service Reference", "But I m not able to access the service from client code .", "Does the service not have metadata from which you can generate a client", "The heavily modified interface for the service contract looks like this .. . .. . The heavily modified implementing class has a method like this .. . .. . x is always null .", "Expand the Service References folder and the generated Service Reference .", "I work on an application that uses a WCF service which in fact is a service-client solution .", "I am working on a Base WCF Service- Client WCF service - Consumer Base Wcf servcie model as following : .. . .. .", "The requesting client : .. . .. . The servicehost : .. . .. . The ServiceContract interface : .. . .. . The ServiceContract object : .. . .. . The MyObject : .. . .. . Thanks", "And that are not required to be together in a given service .", "http : stackoverflow.com questions 19675194 is-possible-to-access-wcf-service-without-adding-service-reference .. . .. . I ve setup a TCP service using a WCF Service Library project in Visual Studio by following this guide .", "This is my first attempt at a service via WCF which is hosted in a Windows Service .", "Do I need to modify the App.Config in my service or add any other code with regard to ServiceContract to the project calling this code below", "For example all our service classes inherit from an abstract ServiceBase class which provides common context state and methods in addition to implementing the ServiceContract interface .", "Our clients want to use the following soap message to call my WCF Service : .. . .. . I created my service contract like the following : .. . .. . Now how can I enable st : myExtraParam param str st : myExtraParam parameter above the function tag", "or can I just include in the client app a reference to the DLL that contains the service", "Add two Service References Right click on Web App Project Add Service Reference by using Discover button two web-services should be visible .", "I m not completely sure if the web service specification does not support this at all ." ] }
{ "confidence": [ 62.519569396972656, 59.560752868652344, 59.0157470703125, 57.7307243347168, 57.61143493652344, 55.356143951416016, 55.24525833129883, 54.8980827331543, 54.56783676147461, 54.04695510864258, 53.709590911865234, 53.70130920410156, 53.42914962768555, 52.792423248291016, 52.738258361816406, 52.198692321777344, 51.55522918701172, 50.756629943847656, 50.537635803222656, 49.46879577636719 ], "content": [ "Question : In a WCF service is it possible to include a data member inside a ServiceContract definition Doing something like this : .. . .. . Can I expose MyDataMember from inside the ServiceContract The scenario would go like this : The following class which implements the service contract has member data that I would like to expose using a public field property . Something that looks like this : I m trying to expose a field property in a class which implements a service contract . For example : Comment : What are you trying to achieve here You have to return data via OperationContract calls and pass that data back in via other calls . Comment : Edited the question @ChrisF .. . Answer : is it possible to include a data member inside a ServiceContract definition Although the compiler will quite happily let you add a property decorated with DataMember to the service interface any WCF client will not see the property . So if your service interface was defined as : .. . .. . ...and say you generated the client proxy by Add Service Reference you would see no mention of MyDataMember : .. . .. . enter image description here http : i.stack.imgur.com 9vPJB.png .. . .. . Note at the point of adding the service-reference you won t see any properties either . enter image description here http : i.stack.imgur.com Y8w3J.png .. . .. . It does not make sense to add properties to a service interface nor does it make sense to add DataMember . You add DataMember to a class decorated with DataContract and referenced in your service s interface . MSDN has this to say on data contracts : .. . .. . A data contract is a formal agreement between a service and a client that abstractly describes the data to be exchanged . That is to communicate the client and the service do not have to share the same types only the same data contracts . A data contract precisely defines for each parameter or return-type what data is serialized turned into XML to be exchanged . - Golly tell me more.. . https : msdn.microsoft.com en-us library ms733127 v vs.110 .aspx .. . .. . WCF essentially is all about invoking methods actually it is more about creating a unified communications API giving you RPC as the free set of steak knives . Methods are generally invoked by sending SOAP messages to the service though it could be REST too . Messages have properties which are decorated with DataMember to indicate that the property should be serialised and included in the message stream . There s also MessageContract but we won t go there . Anyway one does not access a property on a WCF service instead you invoke a method . Tell me more .. . .. . To learn more about the epic-ness that is WCF why not check out the link below . There s even a rather nice example at the bottom : .. . .. . MSDN Using Data Contracts https : msdn.microsoft.com en-us library ms733127 v vs.110 .aspx Comment : Thank you @MickyD . Your answer makes sense . The compiler IDE s tolerance helps confuse me . Does this mean I have to change my classes design to completely separate all data I would like to access from a WCF client from classes that implement service contracts Comment : @Bahaa Yes . Put your data definitions in DataContract classes . You already have a MyCustomClass so just add DataContract to it and DataMember to each property . Then define methods in your service interface like MyCustomClass Get int i and void DoSomething MyCustomClass foo Comment : Thanks for the comprehensive answer Comment : @Bahaa you are welcome good sir", "Question : Is it possible that we can expose few methods OperationContract of one contract ServiceContract to one WCF binding and rest methods OperationContract of same contract ServiceContract to other binding Comment : Did you find the answer to this .. . Answer : No . When you host your service you are free to define one or more endpoints for the service s operations in the configuration of the service . However each of these operations will be exposed on all the defined endpoints . The exception to this is that certain transport bindings do not support certain types of operations . It sounds as-if you should split your operation contracts into separate service contracts and then host two services .", "Question : Im creating a service contract in my wcf application and it contains a lot of methods . I find it very annoying to write an OperationContract attribute to all of them . Is there any simple way how to say every method in my ServiceContract interface is an OperationContract thank you .. . Answer : No you need to do it on each and every method . it defines an operation that is part of a service contract in a Service . There is a possibility that some of the methods are not intended for Exposing . Comment : OK I just hoped there is a way how to say explicitly each method is a part of my service contract . I think Microsoft should support such an option . Nevertheless - thanks :", "Question : I get InvalidDataContractException Type System.Collections.Generic.List 1 T1 cannot be exported as a schema type because it is an open generic type . You can only export a generic type if all its generic parameter types are actual types . if I host this contract . I have read that it is good to avoid generics in ServiceContract . but is it possible to use T Comment : Endpoint is not defined correctly . You have specified IPolicyProvider so you get only operations defined in IPolicyProvider and not operations defined in ISecurities . Comment : you are awesome removed IPolicyProvider and it worked . But ISecurities has to implement IPolicyProvider . How do I get both the operations Comment : You have to add endpoit which exposes ISecurities but with concrete type specified . Comment : I have another contract ICADISSecurities which implements ISecurities edited the code . I am exposing this endpoint in the config .. . Answer : Your problem in this case is not T in ServiceContract but T1 used as DataContract . You can use T in service contract if you replace T with specific type during service contract implementation . For data contracts operation parameters and return types you can t use T at all . You always have to specify concrete type . Your service contract can be rewritten with usage of ServiceKnownTypeAttribute so that T1 is replaced with FI CusipMaster and ServiceKnownType specifies all possible classes derived from FI CusipMaster . Edit : Another way is not to use ServiceKnownType and use KnownTypeAttribute which has to be defined on FI CusipMaster type . Best regards Ladislav Comment : vow it works . Thanks a lot Comment : I am able to host the contract but the generics methods doesn t show up when I create proxy Add service-reference Comment : Can you provide contract implementation and host + configuration . It is hard to say when I don t know how did you implement it . Comment : I ve added the code that host s the contract and the configuration part", "Question : My WCF service has an OperationContract method getMyObject which needs to use a global static variable.. . Why does the WCF operation always throw an error saying the global variable is null - I have stepped through the WCF service host with a separate debugger and I know the global variable is not null - but to the client it appears null The requesting client : .. . .. . The servicehost : .. . .. . The ServiceContract interface : .. . .. . The ServiceContract object : .. . .. . The MyObject : .. . .. . Thanks Comment : Where are you creating an instance of it Comment : Seems like myObject in Global class is never initialized on server-side . Also pay attention that in your code you call GlobalProxy.getMyObject s but service contract has getMyObject method . .. . Answer : Try to decorate MyObject class definition with DataContract attribute and its members with DataMember attribute", "Question : i am searching right write up why we need to use interface as Service contract in WCF . i got this url Why does .net WCF Service require the Interface http : stackoverflow.com questions 5169915 why-does-net-wcf-service-require-the-interface and from here i came to know that we can write service contract attribute on class instead of interface . config entry .. . .. . but very disappointed that not getting all the valid reason like why people often use interface as service contract so just tell me all the advantage we get when we use interface as service contract . so looking for all the valid point for using interface as service contract . so give points with example scenario too because for better understanding . thanks Comment : is there any tool exist which can convert web service to wcf without much manual work Comment : One reason might be that the interface makes for cleaner code as you can t instantiate it by mistake . Never given it much thought to be honest . Interface feels more logical to me for a service contract . I usually implement it in an SI FL layer though . Comment : Interface can be shared between the parties in the dedicated assembly . Having interface you can also use Dependency Injection pattern to inject current implementation of the service . Comment : The link you have shared in your question is best answer . Best Practices . Comment : from the link which i shared is not very clear that why people go for interface for service contract . .. . Answer : As you have demonstrated - you don t need to define an interface for a service contract to get it working . However arguable in doing so your class is violating the principle of Single Responsibility http : en.wikipedia.org wiki Single responsibility principle granted this is officially an OO principle - but in my opinion it is one of those universal principles that seems to be a good idea everywhere . The service contract acts as the contract duh between the publisher of the service and the clients that consume it . As such once you have clients consuming it you need to be very careful about any changes you make - especially if the clients may be third parties over which you have no control . In accordance with the Single Responsiblity Principle defining an interface that represents the contract allows you let this interface have responsibility for the public API separating it from the implementation . This implementation is a relies of the fact that all clients connect to the same instance : .. . .. . This implementation give you a new instance of the service for every call to it : .. . .. . The advantage of the interface is that I can mess around with the implementation as much as I like including it s instancing mode concurrency it s behaviour under client sessions namespace the name of the class etc . and not have to worry that I m potentially breaking any clients . Agreed - there are ways to maintain backwards compatibility even if you define the service contract to be the class - but it s far more error prone and you are more likely to forget something . Separating the public API and it s implementation leads to cleaner code and a smaller risk of developers making mistakes . Comment : whatever reason here u highlighted those are valid point but not mandatory . many people say if we make our service a service contract instead of interface then our business logic will be expose to client but really do not understand how it will be possible at because when client will create proxy then proxy will never expose implementation detail at client-side . so tell me what kind of problem will occur surely regarding service implementation . thanks Comment : i search goole lot to know the what actual problem may occur at the point of service security many people say if we make our service a service contract instead of interface then our business logic will be expose to client but really do not understand how it will be possible . do u have any idea about it Comment : As I say in the first sentence - it certainly is not mandatory for everything to work . I d be amazed if not using an interface resulted in some security breach . The points they may be getting at is that by using the class as the contract you may inadvertently expose some implementation detail like the name of the class which may hint at how you could launch an attack on the service . For example if my class was called SqlLogger then someone may try to launch a SQL injection attack . I believe you could get round this anyway by specifying a name on the ServcieContract attribute . Comment : Although not mandatory from a functional point of view I would argue that from a maintainability and risk perspective you should be using an interface . It leads to more concise and easier to understand code which in turn reduces the risks of errors leaking in to a live environment . This can only be a good thing - and in some organisations this would be enough to ensure it becomes a mandatory policy .. .", "Question : This is a question I got asked in an interview . When you create a WCF service you get two files IService.cs and Service.cs . Why is it a class implementing an interface versus a class inheriting an abstract-class . Don t reply saying that you cannot put a servicecontract attribute over the abstract-class . I know you can only apply it to interfaces but why .. . Answer : Several reasons I can think of : .. . .. . A clear statement of intent - this set of API signatures is totally decoupled from any possible implementation . By contrast an abstract-class in my opinion is more a statement of this base-class was designed to work with this set of derived classes . More open for modification - once you inherit one base-class that s it . Since a ServiceContract has no implementation why waste the one inheritance slot you have on it For example all our service classes inherit from an abstract ServiceBase class which provides common context state and methods in addition to implementing the ServiceContract interface . However even if that were not the case I would still leave the base-class slot free for future use . It permits one service class to implement more than one ServiceContract if appropriate . If you are using a strict contract versioning system that relies on inheriting one ServiceContract from another then adding service classes to the same inheritance tree will ruin it .", "Question : What exactly is a service contract in WCF I can t seem to be able to find a clear definition of what is it . If you have have a link that defines what it is that would be great . .. . Answer : A Service Contract is an interface which has been marked with the ServiceContractAttribute http : msdn.microsoft.com en-us library system.servicemodel.servicecontractattribute.aspx . This is the API that gets pushed across the wire in WCF and the main way to define the contract that is used for communication between the client and service . For details see Designing Service Contracts http : msdn.microsoft.com en-us library ms733070.aspx 27 on MSDN .", "Question : I have implemented OdataController s for my Web-API . Is it possible to use a ChannelFactory or WebChannelFactory to communicate with the Web-API specifically i would like to call custom Functions and or Actions . Of course the OdataController i have created does implement a ServiceContract . But i am not sure if this is possible because of the url namespace . .. . Answer : So the answer is a resounding YES . I just implemented the service contract and set up Routing to make the service operations work .", "Question : i am new but reading some article on wcf i came to know that if i change the ServcieContrcat then i have to change not only the Service end but Clients end too and it s really difficult to manage . Developer have to create WCF service for Order processing with following function : GetOrderById GetOrdersByStatus SaveOrder .. . .. . The ServiceContract could looks like following .. . .. . after few month for example project manager say : Ok our customers need another functions : DeleteOrderById GetOrdersByCustomerId and don t need GetOrdersByStatus any more we need GetOrdersByStatusAndCustomerId .. . .. . Developers have to update ServiceContrcat and update client . As you can see any changes in the ServiceContrcat is really difficult .. . .. . so i am looking for best guidance how to develop wcf service which will not create any problem if we extend the functionality or any kind of change but client end will not face any problem . thanks .. . .. . one guy answered before for the same situation .. . .. . This is what I did : All of my 30+ functions and the list grows and grows took strings ints and bytes as data types as both input and output parameters I created a master single endpoint and function that receives as an input parameter and sends back as the output a single simple class . This class called HostInterface contains just two parameters a string which I use to encapsulate all my strings and ints and a byte array into which I stuff all my binaries .. . .. . So whether a client is calling something simple like Ping with just one string param or something complicated like ResumeDownload with 5 strings 2 ints and a byte array all of those parameters get encapsulated in my HostInterface class the strings and ints into the one String parameters as XML and the bytes into the byte field . i appreciate his answer but really do not understand how to implement it . so if anyone go to this url How to change WCF service contract which does not effect client http : stackoverflow.com questions 21306416 how-to-change-wcf-service-contract-which-does-not-effect-client .. . .. . then knows what he said . i am looking for small complete wcf service code which help me to visualize how to design service contract in such way that if we extend the functionality of service contract later then client who will consume my service will not face any problem . and tell me other possible guide line to solve this situation . thanks .. . Answer : If I understand your problem correctly then probably ChannelFactory class might come to your rescue partially at least . The link here http : philmunro.wordpress.com 2012 02 15 creating-a-wcf-service-proxy-with-channelfactory will help you get started . Also you might want to use IExtensibleDataObject for forward compatibity . Check the link here http : stackoverflow.com questions 3434045 iextensibledataobject-usage-in-clients for better understanding . Hope this helps . Comment : how ChannelFactory can solve the above problem when service contract will-change i am asking about backward compatibility .", "Question : i am new but reading some article on wcf i came to know that if i change the ServcieContrcat then i have to change not only the Service end but Clients end too and it s really difficult to manage . Developer have to create WCF service for Order processing with following function : GetOrderById GetOrdersByStatus SaveOrder .. . .. . The ServiceContract could looks like following .. . .. . after few month for example project manager say : Ok our customers need another functions : DeleteOrderById GetOrdersByCustomerId and don t need GetOrdersByStatus any more we need GetOrdersByStatusAndCustomerId .. . .. . Developers have to update ServiceContrcat and update client . As you can see any changes in the ServiceContrcat is really difficult .. . .. . so i am looking for best guidance how to develop wcf service which will not create any problem if we extend the functionality or any kind of change but client end will not face any problem . thanks .. . .. . one guy answered before for the same situation .. . .. . This is what I did : All of my 30+ functions and the list grows and grows took strings ints and bytes as data types as both input and output parameters I created a master single endpoint and function that receives as an input parameter and sends back as the output a single simple class . This class called HostInterface contains just two parameters a string which I use to encapsulate all my strings and ints and a byte array into which I stuff all my binaries .. . .. . So whether a client is calling something simple like Ping with just one string param or something complicated like ResumeDownload with 5 strings 2 ints and a byte array all of those parameters get encapsulated in my HostInterface class the strings and ints into the one String parameters as XML and the bytes into the byte field . i appreciate his answer but really do not understand how to implement it . so if anyone go to this url How to change WCF service contract which does not effect client http : stackoverflow.com questions 21306416 how-to-change-wcf-service-contract-which-does-not-effect-client .. . .. . then knows what he said . i am looking for small complete wcf service code which help me to visualize how to design service contract in such way that if we extend the functionality of service contract later then client who will consume my service will not face any problem . and tell me other possible guide line to solve this situation . thanks .. . Answer : I think the suggestion of creating a generic endpoint is a bad idea . By creating a method that takes any sort of input you ve lost all the strong-typing benefit that WCF in C gets you . You still have to do the hard work of dealing with old clients but now you have to do it in application code by inspecting the data coming in and heuristically deciding which version it assumes . In my mind it s similar to creating a single SQL database-table with dozens of columns named id data1 data2 data3 data4 etc . then storing all kinds of unrelated data in that one table . If the contract changes you need to make are backwards-compatible then you can add them to the contract in-place . Adding a new method is backwards-compatible since it doesn t affect the availability of the existing methods . If you need to make backwards-incompatible changes such as removing a method or changing the parameters of an existing one the easiest answer may be to create a new contract that lives at a new address . If version 1 of your contract is reached at http : example.com v1 MyService then version 2 is reached at http : example.com v2 MyService . To avoid duplicating a lot of code between classes where the contract didn t change much the classes that implement the contracts might inherit from each other . One way to do this could be : .. . .. . Or you can use composition : .. . .. . This way MyNewService implements all the functionality of MyService but only the methods exposed by INewService will be available via WCF . Anybody who accesses your service via the v2 URL will get the new functionality . Clients who are using the old service will continue to use the v1 URL until they re ready to upgrade .", "Question : In a WCF service is it possible to include a data member inside a ServiceContract definition Doing something like this : .. . .. . Can I expose MyDataMember from inside the ServiceContract The scenario would go like this : The following class which implements the service contract has member data that I would like to expose using a public field property . Something that looks like this : I m trying to expose a field property in a class which implements a service contract . For example : Comment : What are you trying to achieve here You have to return data via OperationContract calls and pass that data back in via other calls . Comment : Edited the question @ChrisF .. . Answer : You cannot inherit DataMember attribute . Definition is on msdn https : msdn.microsoft.com en-us library system.runtime.serialization.datacontractattribute.aspx . Although this does not technically restrict you to decorate interface members with DataMember attribute however you will have to decorate implementing classes members with this attribute too . Which is not intended way of use .", "Question : This MSDN article http : msdn.microsoft.com library ff183866.aspx recommends always to provide a namespace to a ServiceContract and DataContract . Examples usually have a schema prefix and a URI type pattern for the namespace such as .. . .. . Namespace urn : WCFEssentials Samples 2008 12 .. . .. . instead of a traditional C namespace with dot-notation such as .. . .. . Namespace MyNamespace.MyDataClasses .. . .. . What is the suggested format the namespace property Do we need the schema prefix Why is this format suggested .. . Answer : Here are some additional suggestions from MSDN http : msdn.microsoft.com library ff183866.aspx : .. . .. . The namespace can be any string .. . but is traditionally a Uri representative of the company or application domain .. . and includes a year and month to support versioning scenarios . For DataContracts the namespace is often similar to the ServiceContract namespace .. . but uses using a schemas uri section .. . .. . Example Service Contract with Namespace .. . .. . Example Data Contract with Schema Segment in Namespace .. . .. . Thank you to John Saunders or getting me started .", "Question : Our clients want to use the following soap message to call my WCF Service : .. . .. . I created my service contract like the following : .. . .. . Now how can I enable st : myExtraParam param str st : myExtraParam parameter above the function tag .. . Answer : My first instinct was to say that one can t have more than one direct child element of the SOAP Body element . But the SOAP specification https : www.w3.org TR soap12-part1 soapbody says that it s fine to do so . I don t think that WCF based on ServiceContract can do it though . Comment : Because SOAP specification says that we can use more than one child under SOAP Body element I cannot force my client not to use the XML described on my question . So I am still trying to make a solution .", "Question : i was searching google to know that how we can easily convert asmx service to wcf and there i saw people write code like .. . .. . this is my old asmx service .. . .. . convert to wcf .. . .. . i saw when converting then people is not using service contract interface . how it will work because i know that when we develop wcf service then i have to write one service contract interface for single service . so looking for discussion that how possible to develop wcf service without service contract interface . thanks Comment : It s a bit unclear what you re asking . You don t have to write a separate interface but it s good practice for testability and reusability . Comment : possible duplicate of Why does .net WCF Service require the Interface http : stackoverflow.com questions 5169915 why-does-net-wcf-service-require-the-interface Comment : hmm.. . did it compile did this work Comment : If that is a problem you could convert it to an ASP.NET Web API service instead . .. . Answer : The above will not work in case you do not specify a correct contract naming in your web.config . In case your class without an interface is in the following namespace : .. . .. . In this case the web-config service configuration should look like Comment : i just like to know how the above service will run without service contract as interface . here u specify a class name for service contract . so when we can write wcf service without service contract interface then why people use interface as service contract . i am looking for all the valid points why people use interface as service contract", "Question : I would like to define an OperationContract which I can pass any number of string parameters . The values should be interpreted as an array of string . Is there any possibility to use this type of parameter in an OperationContract and define this in the UriTemplate .. . Answer : Your Service Contract interface is just that - a formal contract between what the server will accept and what the client needs to adhere to . This contract is serialised in to XML in the form of the wsdl - so any data types which appear in your contract must be expressible in their serialised form in XML . In your case the number of the arguments to your service call is not well-defined : it could have 0 1 2.. . etc . One of the tenants of service orientation is that the contracts need to be explicit - which this is not . The most idiomatic approach within a service orientated context is the following : .. . .. . As suggested in this answer http : stackoverflow.com a 38452927 2382536 if you want to add some syntactic-sugar on the client-side you could create an extension method which does use the params-keyword to make the client-side experience easier to digest .", "Question : Im creating a service contract in my wcf application and it contains a lot of methods . I find it very annoying to write an OperationContract attribute to all of them . Is there any simple way how to say every method in my ServiceContract interface is an OperationContract thank you .. . Answer : Yes you can use AOP framework for that . E.g . with PostSharp : .. . .. . This attribute used to mark methods which should not be operation contracts : .. . .. . Now all you need to do is apply AutoServiceContract attribute to service interface . That will add ServiceContract attribute to interface and all public methods will be marked with OperationContact attribute except those which have NotOperationContract attribute : Comment : is there any free tool for AOP like PostShartp Comment : @JohnSmith PostSharp has free license not sure if adding attributes available in free edition . You can take a look on this AOP frameworks list http : stackoverflow.com questions 633710 what-is-the-best-implementation-for-aop-in-net", "Question : Im creating a service contract in my wcf application and it contains a lot of methods . I find it very annoying to write an OperationContract attribute to all of them . Is there any simple way how to say every method in my ServiceContract interface is an OperationContract thank you .. . Answer : Spring.Net has built-in feature ServiceExporter and all you need is such config : .. . .. . For more details check documentation http : www.springframework.net doc-latest reference html wcf.html d4e8528 and this forum thread http : forum.springframework.net showthread.php 5294-Hosting-a-WCF-service-created-by-the-ServiceExporter . You need to have service definition in app.config called same as the Spring object : MyService .. . .. . Next step will be to decorate all objects with DataContract attribute . Any ideas Not very good one is to use XmlSerializerFormat attribute on service contracts can be added by Spring too .", "Question : My WCF service has an OperationContract method getMyObject which needs to use a global static variable.. . Why does the WCF operation always throw an error saying the global variable is null - I have stepped through the WCF service host with a separate debugger and I know the global variable is not null - but to the client it appears null The requesting client : .. . .. . The servicehost : .. . .. . The ServiceContract interface : .. . .. . The ServiceContract object : .. . .. . The MyObject : .. . .. . Thanks Comment : Where are you creating an instance of it Comment : Seems like myObject in Global class is never initialized on server-side . Also pay attention that in your code you call GlobalProxy.getMyObject s but service contract has getMyObject method . .. . Answer : It seems to me like you re trying to pass objects static property through service call If so than that s simply not possible . Statics don t get serialized because serialization is instance based . You could probably pass static by encapsulating it in a non-static property like this : .. . .. . Having said that whenever you encounter this kind of hack it s probably a good idea to reconsider your design - does your field really need to be static Maybe you need to transfer some other object and only put it s results in your singleton static-class For example I m guessing you re using myObject as a sort of cache - you could put the cache in a singleton class this would make it transferrable via WCF and on client initialize it with what you got from service side . There are of course other valid options but and I m pretty sure that using static isn t a good choice here.. . Comment : Thanks Its true that I m porting a webapplication that used a global.asax to a windows service so maybe the design needs looking at although I wasn t aware statics didnt get serialized - what kind of silliness is that but I often use statics as a simple way of implementing the singleton pattern - so much so that any other singleton implementation i.e . if singletonClass null return new singletonClass feels like a hack to me now .", "Question : This should be easy for someone familiar with the best practices of versioning service data contracts . I want to make sure that I will use this versioning in the correct way . So let s say we have a service contract : .. . .. . and data contract : .. . .. . if I really need to change the latter into something else : the following is just example .. . .. . ...then how shall I use DTOCustomer2 instead of DTOCustomer1 from the service so that old and new clients will be compliant What is recommended in this case Will my service contract change AFAIK I won t need to change the service contract . How will the service contract look like Do I need a new endpoint Do I need a new operation contract making use of the new data contract EDIT1 : Simply changing .. . .. . bool AddCustomer DTOCustomer1 customer .. . .. . into .. . .. . bool AddCustomer DTOCustomer2 customer .. . .. . will do EDIT2 : Answer to EDIT1 is No since DTOCustomer2 has different namespace but it might work if it has the same namespace . Still I don t know what is the best thing here and expect somebody to come up with a good answer . Thank you in advance .. . Answer : I ended up answering to this question with the help of another question here : WCF - handle versioning http : stackoverflow.com questions 8807188 wcf-handle-versioning 8808893 8808893" ] }
[ "yes-answer-long", "yes-answer-short" ]
wcf
UNK_RELATION
mysql-error-1025@rename@43
mysql-error-1025 -- error 1025 - error on @placeholder of s to s errno : d .
{ "confidence": [ 69.47083282470703, 69.4521255493164, 63.32685852050781, 58.556488037109375, 56.311187744140625, 54.72681427001953, 51.550880432128906, 51.116180419921875, 50.6019287109375, 50.24057388305664, 49.983421325683594, 49.94893264770508, 47.53925323486328, 47.3338623046875, 46.73506164550781, 46.73506164550781, 44.827423095703125, 44.70726776123047, 43.66746520996094, 42.14580154418945, 42.14580154418945, 39.841880798339844, 39.79676818847656, 39.14476013183594, 38.92781066894531, 38.159881591796875, 37.844600677490234, 36.63263702392578, 36.10163116455078, 35.601165771484375, 34.99979782104492, 34.972816467285156, 34.66439437866211, 34.47932815551758, 34.28123474121094, 33.44377136230469, 33.44377136230469, 33.26737594604492, 32.790916442871094, 32.63496398925781, 32.52714920043945, 32.28912353515625, 31.835664749145508, 31.3841552734375, 31.3841552734375, 31.3841552734375, 31.3841552734375, 31.261869430541992, 30.696592330932617, 30.175846099853516, 30.172304153442383, 30.123626708984375, 29.89914894104004, 29.8262996673584, 29.46468734741211, 29.375553131103516, 29.202253341674805, 29.202253341674805, 28.770198822021484, 28.711788177490234, 28.711788177490234, 28.646800994873047, 28.646800994873047, 28.646800994873047, 28.646800994873047, 28.441211700439453, 28.275588989257812, 27.950212478637695, 27.193653106689453, 27.193653106689453, 27.193653106689453, 27.1789608001709, 27.1789608001709, 27.10824966430664, 26.862356185913086, 26.84569549560547, 26.588298797607422, 26.58718490600586, 26.58718490600586, 26.58718490600586, 26.529888153076172, 26.169706344604492, 26.094188690185547, 25.899621963500977, 25.768310546875, 25.631135940551758, 25.579204559326172, 25.412574768066406, 25.412574768066406, 25.326656341552734, 25.326656341552734, 25.029329299926758, 25.029329299926758, 24.997058868408203, 24.997058868408203, 24.782302856445312, 24.310197830200195, 24.281837463378906, 23.987804412841797 ], "content": [ "Is the error number 1025 or 150", "mysql diplay an error .. . .. . OperationalError : 1025 Error on rename of . CMMS sql-c40 20a to . CMMS member errno : 150 .. . .. . How to solve it", "I get a 1025 error when this query is run .", ".. . http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained", "xaprb.com blog 2006 08 22 mysqls-error-1025-explained http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained", "Look here for an answer : http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .", "So my query looked like the following : .. . .. . I get another error message that says Error Code : 1025 .", "Now simply dropping it yields an error : General error : 1025 Error on rename of . road dmy sql-19d8 2be to . road dmy contact errno : 150 .. . .. . It sounds like this is a known issue .", "http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .. . .. . http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . So now we re trying to do the renaming in raw SQL .", "I am trying to remove a foreign key from a table but I am getting this error below in mysql : .. . .. . 1025 - Error on rename of . mobile app Question to . mobile app sql2-4517-15515 errno : 152 .. . .. . What does this error mean and how can it be fixed", "The problem is that when I m trying to drop one of the foreign key columns ie locationIDX it gives me an ERROR 1025 HY000 : Error on rename error .", "See stackoverflow.com questions 5343406 http : stackoverflow.com questions 5343406 sql-foreign-key-constraint-error-1025-152", "There s an article here http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained which explains the error-code you re seeing .", "Check also here http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained for more info .", "A similar question has already been asked here http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mean .", "This other stackoverflow http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea question might help you out .", "Giving me .. . .. . ERROR 1025 HY000 : Error on rename of . TXCAD sql-5912 86 to . TXCAD EN TABLE errno : 150 .. . .. . I did a some research and found out this conversion from 1 byte to two bytes in the main table makes the foreign key data type discrepancy .", "However I keep getting this : 1025 - Error on rename of . yebutno ybn sql-76dc 8581dc to . yebutno ybn user errno : 150 .. . .. . there is foreign key constraints due to related tables... . .. . .. . any ideas", "This may help you to understand stackoverflow.com questions 160233 http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-me", "Again another misleading MySQL displayed error.. .", "Take a look in error file for your mysql database .", "At first we tried to use Django-South but came up against a known issue : .. . .. . http : south.aeracode.org ticket 243 .. . .. . OperationalError : 1025 Error on rename of . xxx sql-bf 4d to . xxx cave event errno : 150 .. . .. . AND .. . .. . Error on rename of . xxx sql-bf 4b to . xxx cave event errno : 150 .. . .. . This error 150 definitely pertains to foreign key constraints .", "It is certainly one of the less meaningful error messages I ve seen in MySQL .", "Unfortunately simply saying ALTER TABLE parent DROP PRIMARY KEY doesn t work : .. . .. . Error Code : 1025 .. . .. . Error on rename of . data sql-4013 70f5e to . data parent errno : 150 .. . .. . Some googling suggests that this is due to the existing foreign key reference from child .", "This error is an error bubbling up from the underlying database .", "According to this link http : forums.devarticles.com mysql-development-50 mysql-foreign-key-problem-errno-150t-7704.html the error relates to the definition of the primary-key field .", "@Imdad This link describes another error - errno : 150", "I got this quite cryptic error message while editing keys on a MySQL table .", "Yes it s a foreign key error .", "For details on this error run SHOW ENGINE INNODB STATUS G and then look at the LATEST FOREIGN KEY ERROR section .", "This is the error I get : .. . .. . It is a MySQL database with InnoDB table engine .", "Good usually but those error messages sheesh .", "link 1 http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . link 2 http : dev.mysql.com doc refman 5.0 en innodb-error-codes.html look for Posted by Alex Blume on November 7 2008 5 : 09pm Posted by Hector Delgadillo on January 21 2011 4 : 57am", "0 removed lib doctrine Doctrine Connection.php 1025 : Doctrine Connection- rethrowException Object PDOException Object Doctrine Connection Mysql SELECT a.id.. . .. . 4 .", "It looks like a bug in the error messaging of MySQL .", "You usually get this error if your tables use the InnoDB engine .", "Can someone explain the error it s cause and it s fix", "It shows an error :", "The error isn t about the foreign key index .", "To find out which table caused the error you can run SHOW ENGINE INNODB STATUS and then look at the LATEST FOREIGN KEY ERROR section .. . .. . Use SHOW CREATE TABLE categories to show the name of constraint .", "I want to rename a field of a table in MySQL ver 5.2.25 from alter table but I got this error : .. . .. . but on other table I had not this problem I don t know why is it caused by foreign key", "This works fine : .. . .. . But this does not : .. . .. . Trying to drop the foreign key column gives an error : 1025 Error on rename of . my db name sql-1b0 2e6 to . my db name exists errno : 150 .. . .. . If I do this with raw SQL i can remove the foreign key manually then remove the column but I haven t been able to figure out how to remove the foreign key with SQLAlchemy", "I think MySQL is getting hung up on the fact that when you rename the FK relationships are no longer valid and it is throwing an error .", "You can get also get this error trying to drop a non-existing foreign key .", "If the foreign key does exist and you are still getting this error try the following : .. . .. . Drop the foreign key here", "This error indicates that you cannot rename the table because of some foreign key restrictions on that table .", "It is a foreign key reference error .. . .. . .. . You can check with the following statement to see the table .. . .. . SHOW ENGINE INNODB STATUS", "I now get this error once trying to delete the table of Countries", "It is indeed a foreign key error you can find out using perror : .. . .. . To find out more details about what failed you can use SHOW ENGINE INNODB STATUS and look for the LATEST FOREIGN KEY ERROR section it contains details about what is wrong .", "I edited the original post to include the error .", "SQL query : .. . .. . MySQL said : .. . .. . Which is funny because I set up this query in PHP MyAdmin I don t know why I m getting a foreign key error I m just trying to change something from int to varchar .. . .. . Can anyone help", "Do show innodb status immediately after your alter table attempt and part of the output will be the last foreign key error details .", "1064 - You have an error in your SQL syntax check the manual that corresponds to your MySQL server version for the right syntax to use near at line 1", "Mysql can be awful .", "To find out which table caused the error you can run SHOW ENGINE INNODB STATUS and then look at the LATEST FOREIGN KEY ERROR section .", "This bug exists since MySQL 4.1 -", "When i am trying to add new column it throws error like this .. . .. . Database name is ebill .", "I keep getting an error every time i try to drop a table called countires and a field called countries .", "I tried this in mysql : .. . .. . And got this : .. . .. . Any ideas", "select from Employee where salary All 200 500 .. . .. . Getting error : .. . .. . Msg 102 Level 15 State 1 Line 1 Incorrect syntax near 200 .", "I deleted the primary-key from TABLE A but when I was trying to delete the foreign key column from table B I was shown the above same error .", "I edited the original post with the updated query and error that I recieve .", "Can someone explain to me why I am receiving the following error", "However I receive the following error : .. . .. . Any suggestions would be much appreciated", "how can I know the true details of the mysterious error message above", "errno : 150 usually means that there is a foreign key problem - can you please post your structure queries so we can help you better", "You must set index both for id s in 2 tables - after try again", "I ll be interested to hear what the outcome is - sometime mysql is pretty cryptic .", "I m using MySQL version 5.0.85", "I am using MySQL 5.1 .", "Using MySql - 5.1 InnoDB tables", "When I try to delete the column or index I get the following error .. . .. . If I create a new index on the same column I can remove the old index but not the new one I guess its just checking if an index is available .", "Hi Error is not caused by data type this is the result-of show innodb status : 101030 13 : 50 : 43 INNODB MONITOR OUTPUT Per second averages calculated from the last 45 seconds ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO : reservation count 4 signal coun.. .", "Doctrine Core : : createTablesFromModels is failing with the following error : .. . .. . 1 .", "Error on rename of . Database sql-461 somerandomnumbers to . Database mytable errno : 150 .. . .. . I figure I would use the built-in right-click drop column in the edit table so I use that and realise it uses a drop index as well .", "In my case I was using MySQL workbench and I faced the same issue while dropping one of my columns in a table .", "Hello I have a mysql database with in it an addresses table .", "But it shows following error .. . .. . I tried with several answers which are found on the internet but couldn t solve it properly .", "When I run the query .. . .. . I get this error.. . .. . .. . Any advice on how to troubleshoot this", "How can I drop the column in the assignment table above without getting this error", "I ve got problem with dropping foreign key index I always get the same error .. . .. . which outputs .. . .. . The id user on the other table is simple primary-key index .", "You can t drop the foreign key using the column name and to bypass this in PHPMyAdmin or with MySQL first remove the foreign key constraint before renaming or deleting the attribute .", "Question is for MySQL - this isn t valid syntax in MySQL .", "Possible helpful links : dev.mysql.com doc refman 5.0 en innodb-error-codes.html http : dev.mysql.com doc refman 5.0 en innodb-error-codes.html and simplicidade.org notes archives 2008 03 mysql errno 150.html http : www.simplicidade.org notes archives 2008 03 mysql errno 150.html", "Its a really powerful data type yet underutilized by MySql .", "FOR MYSQL : .. . .. . FOR ORACLE :", "I tried this out but got an error : ForeignKey object has no attribute drop .", "If you are using a client like MySQL Workbench right-click the desired table from where a foreign key is to be deleted then select the foreign key tab and delete the indexes .", "engine : innoDB mysql version : Ver 14.12 Distrib 5.0.45 for redhat-linux-gnu x86-64 using readline 5.0 .. . .. . Thanks for your help if you need any more information please let me know .", "Today I tried to delete two tables from a database and upon trying I get the error message that a foreign key constraint fail has occurred .", "For those who are getting to this question via google.. . this error can also happen if you try to rename a field that is acting as a foreign key .", "But in mySQL 5.0.94 this is not yet possible .", "On Mysql do like this :", "The index is for an foreign key on user table so In first try this command : .. . .. . Find the name of the constraint corresponding to the index on the foreign key .. . .. . and after that try the command : .. . .. . WARNING : If you try to drop the foreign key with the foreign key name you will have an error to", "So i deleted it and see here the error : .. . .. . SQL query : .. . .. . Then i decided to drop the table and created again without the constraint but when i did a drop-table i get : .. . .. . so how can i get out of this problem", "Could low memory be the cause of this error", "possible duplicate of Renaming foreign-key columns in MySQL http : stackoverflow.com questions 2014498 renaming-foreign-key-columns-in-mysql", "If the error message refers to error 150 table creation failed because a foreign key constraint was not correctly formed .", "I verified that .. . .. . Is there a way to force MySql to use 2 bytes from the start even if ENUM has less than 255 values during table creation" ] }
{ "confidence": [ 70.70176696777344, 70.70176696777344, 68.09678649902344, 67.18094635009766, 66.59629821777344, 65.45124816894531, 65.45124816894531, 62.37708282470703, 61.212730407714844, 59.89350891113281, 59.20306396484375, 58.982208251953125, 58.802276611328125, 57.92302703857422, 57.458595275878906, 54.50189208984375, 54.080528259277344, 53.64698791503906, 51.87970733642578, 50.23332214355469 ], "content": [ "Question : We re trying to rename a column in MySQL 5.1.31 InnoDB that is a foreign key to another table . At first we tried to use Django-South but came up against a known issue : .. . .. . http : south.aeracode.org ticket 243 .. . .. . OperationalError : 1025 Error on rename of . xxx sql-bf 4d to . xxx cave event errno : 150 .. . .. . AND .. . .. . Error on rename of . xxx sql-bf 4b to . xxx cave event errno : 150 .. . .. . This error 150 definitely pertains to foreign key constraints . See e.g . http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .. . .. . http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . So now we re trying to do the renaming in raw SQL . It looks like we re going to have to drop the foreign key first then do the rename and then add the foreign key back again . Does that sound right Is there a better way since this seems pretty confusing and cumbersome Any help would be much appreciated Comment : possible duplicate of How do I rename a foreign key in mysql http : stackoverflow.com questions 6188011 how-do-i-rename-a-foreign-key-in-mysql .. . Answer : In case anyone is looking for the syntax it goes something like this :", "Question : We re trying to rename a column in MySQL 5.1.31 InnoDB that is a foreign key to another table . At first we tried to use Django-South but came up against a known issue : .. . .. . http : south.aeracode.org ticket 243 .. . .. . OperationalError : 1025 Error on rename of . xxx sql-bf 4d to . xxx cave event errno : 150 .. . .. . AND .. . .. . Error on rename of . xxx sql-bf 4b to . xxx cave event errno : 150 .. . .. . This error 150 definitely pertains to foreign key constraints . See e.g . http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .. . .. . http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . So now we re trying to do the renaming in raw SQL . It looks like we re going to have to drop the foreign key first then do the rename and then add the foreign key back again . Does that sound right Is there a better way since this seems pretty confusing and cumbersome Any help would be much appreciated Comment : possible duplicate of How do I rename a foreign key in mysql http : stackoverflow.com questions 6188011 how-do-i-rename-a-foreign-key-in-mysql .. . Answer : here is the SQL syntax for regular keys", "Question : I am trying to remove a foreign key from a table but I am getting this error below in mysql : .. . .. . 1025 - Error on rename of . mobile app Question to . mobile app sql2-4517-15515 errno : 152 .. . .. . What does this error mean and how can it be fixed Below is the code where I am trying to drop the foreign key : .. . .. . Below is the Question Table details no rows in this table : .. . .. . Below is the Option Table details : .. . .. . There are 24 rows in this table and below is a sample : Comment : See stackoverflow.com questions 5343406 http : stackoverflow.com questions 5343406 sql-foreign-key-constraint-error-1025-152 .. . Answer : Those are index s not foreign-keys you have . I see no foreign-keys in your create statements . Example to create foreign key .", "Question : mysql diplay an error .. . .. . OperationalError : 1025 Error on rename of . CMMS sql-c40 20a to . CMMS member errno : 150 .. . .. . How to solve it Thanks in Advance .. . Answer : This error is an error bubbling up from the underlying database . This error indicates that you cannot rename the table because of some foreign key restrictions on that table . You should check your database logs for more information . For a possible solution you could try to remove the foreign-keys first then move drop rename your table . Comment : Thanks for your help", "Question : We re trying to rename a column in MySQL 5.1.31 InnoDB that is a foreign key to another table . At first we tried to use Django-South but came up against a known issue : .. . .. . http : south.aeracode.org ticket 243 .. . .. . OperationalError : 1025 Error on rename of . xxx sql-bf 4d to . xxx cave event errno : 150 .. . .. . AND .. . .. . Error on rename of . xxx sql-bf 4b to . xxx cave event errno : 150 .. . .. . This error 150 definitely pertains to foreign key constraints . See e.g . http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .. . .. . http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . So now we re trying to do the renaming in raw SQL . It looks like we re going to have to drop the foreign key first then do the rename and then add the foreign key back again . Does that sound right Is there a better way since this seems pretty confusing and cumbersome Any help would be much appreciated Comment : possible duplicate of How do I rename a foreign key in mysql http : stackoverflow.com questions 6188011 how-do-i-rename-a-foreign-key-in-mysql .. . Answer : AFAIK dropping the constraint then rename then add the constraint back is the only way . Backup first Comment : Since MySQL 5.6.6 all foreign-keys are now automatically updated when renaming a column . dev.mysql.com doc refman 5.6 en alter-table.html http : dev.mysql.com doc refman 5.6 en alter-table.html Comment : @BenL This is not entirely correct . The page says : Prior to MySQL 5.6.6 adding and dropping a foreign key in the same ALTER TABLE statement may be problematic in some cases and is therefore unsupported . Separate statements should be used for each operation . As of MySQL 5.6.6 adding and dropping a foreign key in the same ALTER TABLE statement is supported for ALTER TABLE .. . ALGORITHM INPLACE but remains unsupported for ALTER TABLE .. . ALGORITHM COPY . . Furthermore i have seen with my own eyes MySQL 5.6.2 replacing the column name in a FK . But in mySQL 5.0.94 this is not yet possible .", "Question : We re trying to rename a column in MySQL 5.1.31 InnoDB that is a foreign key to another table . At first we tried to use Django-South but came up against a known issue : .. . .. . http : south.aeracode.org ticket 243 .. . .. . OperationalError : 1025 Error on rename of . xxx sql-bf 4d to . xxx cave event errno : 150 .. . .. . AND .. . .. . Error on rename of . xxx sql-bf 4b to . xxx cave event errno : 150 .. . .. . This error 150 definitely pertains to foreign key constraints . See e.g . http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .. . .. . http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . So now we re trying to do the renaming in raw SQL . It looks like we re going to have to drop the foreign key first then do the rename and then add the foreign key back again . Does that sound right Is there a better way since this seems pretty confusing and cumbersome Any help would be much appreciated Comment : possible duplicate of How do I rename a foreign key in mysql http : stackoverflow.com questions 6188011 how-do-i-rename-a-foreign-key-in-mysql .. . Answer : The following query will build the correct syntax automatically . Just execute each line returned and all your FKEYs will be gone . I leave the reverse adding them back as an exercise for you . SELECT CONCAT alter table TABLE NAME drop foreign key CONSTRAINT NAME AS runMe FROM information schema.key column usage WHERE TABLE SCHEMA MY SCHEMA NAME", "Question : We re trying to rename a column in MySQL 5.1.31 InnoDB that is a foreign key to another table . At first we tried to use Django-South but came up against a known issue : .. . .. . http : south.aeracode.org ticket 243 .. . .. . OperationalError : 1025 Error on rename of . xxx sql-bf 4d to . xxx cave event errno : 150 .. . .. . AND .. . .. . Error on rename of . xxx sql-bf 4b to . xxx cave event errno : 150 .. . .. . This error 150 definitely pertains to foreign key constraints . See e.g . http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .. . .. . http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . So now we re trying to do the renaming in raw SQL . It looks like we re going to have to drop the foreign key first then do the rename and then add the foreign key back again . Does that sound right Is there a better way since this seems pretty confusing and cumbersome Any help would be much appreciated Comment : possible duplicate of How do I rename a foreign key in mysql http : stackoverflow.com questions 6188011 how-do-i-rename-a-foreign-key-in-mysql .. . Answer : Expanding on @Dewey s answer here s a little script to rename FKs generated by Hibernate in a useful manner FK + table name + + referenced table name . SELECT CONCAT alter table TABLE NAME drop foreign key CONSTRAINT NAME n alter table TABLE NAME drop key CONSTRAINT NAME n alter table TABLE NAME add key FK table name referenced table name column name n alter table TABLE NAME add constraint FK table name referenced table name foreign key column name references referenced table name referenced column name AS runMe FROM information schema.key column usage WHERE TABLE SCHEMA myschemaname AND constraint name like FK .. . .. . A bit of output : .. . .. . alter table visitor browsers drop foreign key FK 4ygermmic4fujggq1kp96dx47 alter table visitor browsers drop key FK 4ygermmic4fujggq1kp96dx47 alter table visitor browsers add key FK visitor browsers websites website alter table visitor browsers add constraint FK visitor browsers websites foreign key website references websites id", "Question : I get a 1025 error when this query is run . SQL query : .. . .. . MySQL said : .. . .. . Which is funny because I set up this query in PHP MyAdmin I don t know why I m getting a foreign key error I m just trying to change something from int to varchar .. . .. . Can anyone help Comment : errno : 150 usually means that there is a foreign key problem - can you please post your structure queries so we can help you better Comment : Have you tried disabling foreign key checks before the query and enabling them again after the query .. . Answer : but it is very hard if you want to change in the whole charset to utf8 of all tables here is what i did .. . .. . i know this is the hard way but i am sure this will work for you too", "Question : Can someone explain to me why I am receiving the following error I want to rename the column exerciseID to ID in a mysql table using the following syntax . However I receive the following error : .. . .. . Any suggestions would be much appreciated Comment : xaprb.com blog 2006 08 22 mysqls-error-1025-explained http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . Answer : just having a quick search in google and it looks like you are referencing the column in a foreign key - which is preventing the rename . afraid i m not sure how you d resolve the problem as I haven t used foreign-keys in MySQL all that much", "Question : Can someone explain to me why I am receiving the following error I want to rename the column exerciseID to ID in a mysql table using the following syntax . However I receive the following error : .. . .. . Any suggestions would be much appreciated Comment : xaprb.com blog 2006 08 22 mysqls-error-1025-explained http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . Answer : i think it might be a multi step process . 1 . add a new column .. . 2 . copy the data over from the original column .. . 3 . drop the old column", "Question : I get a 1025 error when this query is run . SQL query : .. . .. . MySQL said : .. . .. . Which is funny because I set up this query in PHP MyAdmin I don t know why I m getting a foreign key error I m just trying to change something from int to varchar .. . .. . Can anyone help Comment : errno : 150 usually means that there is a foreign key problem - can you please post your structure queries so we can help you better Comment : Have you tried disabling foreign key checks before the query and enabling them again after the query .. . Answer : If the routes.end loc column is being used in a foreign key then you can t change its data type . You will need to drop the foreign key change the data type of both the parent and child columns and then add the foreign key again . For details on this error run SHOW ENGINE INNODB STATUS G and then look at the LATEST FOREIGN KEY ERROR section .", "Question : I am using MySQL 5.1 . When i am trying to add new column it throws error like this .. . .. . Database name is ebill . This is my sql query : .. . .. . Where is the issue .. . Answer : Look here for an answer : http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mea .", "Question : I have a table whose primary-key is used in several other tables and has several foreign-keys to other tables . The problem is that when I m trying to drop one of the foreign key columns ie locationIDX it gives me an ERROR 1025 HY000 : Error on rename error . How can I drop the column in the assignment table above without getting this error .. . Answer : You can not drop the foreign key column because it is being referenced from the table assignmentStuff . So you should first drop the foreign key constraint assignmentStuff.assignmentIDX . A similar question has already been asked here http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-mean . Check also here http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained for more info . Comment : So because assignmentStuff references assignment s primary-key I cannot drop assignment s locationID column This seems kind of counter intuitive . Comment : It seems I ve switched some column names so my answer doesn t really make sense . Sorry for that.. . Comment : No worries mate", "Question : 1 . Is the error number 1025 or 150 2 . I was deleting a primary-key which I had set by mistake which was also a foreign key at the time . 3 . What is HY000 I got this quite cryptic error message while editing keys on a MySQL table . Can someone explain the error it s cause and it s fix .. . Answer : Yeah you hit a foreign key constraint . A show innodb status will show the cause of the problem . A quick fix is to drop the constraint do what you re doing and then recreate the constraint .", "Question : Can someone explain to me why I am receiving the following error I want to rename the column exerciseID to ID in a mysql table using the following syntax . However I receive the following error : .. . .. . Any suggestions would be much appreciated Comment : xaprb.com blog 2006 08 22 mysqls-error-1025-explained http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . Answer : I would check to see if you have any foreign key references to that column . If so you may need to remove the foreign relationships that you have defined for that column then rename then place your foreign key relationships back in-place with the new column name . I think MySQL is getting hung up on the fact that when you rename the FK relationships are no longer valid and it is throwing an error . EDIT : Confirmed FK Rename in MySQL http : stackoverflow.com questions 2014498 renaming-foreign-key-columns-in-mysql .. . .. . You will need to do something like this : Comment : That was it . Thanks .", "Question : On my mysql DB with inno db engine .. . .. . I have a table with a foreign key . I want to drop the column along with the foreign key and the associated index of course - i don t need the whole column Now simply dropping it yields an error : General error : 1025 Error on rename of . road dmy sql-19d8 2be to . road dmy contact errno : 150 .. . .. . It sounds like this is a known issue . http : bugs.mysql.com bug.php id 15317 .. . .. . But anyway what should i do to drop this column I m very sure it s possible nobody would use this DB otherwise .. . .. . and b.t.w . how can I know the true details of the mysterious error message above Comment : You must drop the key first . Post the results of the command show create-table contact and we ll be able to give you the exact commands . Comment : Yes simply dropping the key first did the job . Comment : Please don t write tags in question titles . .. . Answer : You must drop the key first . I don t know the names of your tables but I ll give you the general strategy by example . Suppose you have the following 2 InnoDB tables : .. . .. . You can drop the a id column in table B using the following command :", "Question : I would like to drop the foreign key in my table but been into this error message Comment : This may help you to understand stackoverflow.com questions 160233 http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-me Comment : @Imdad This link describes another error - errno : 150 Comment : Try this . Create new table without foreign key constraint . copy the data to new table using syntax INSERT INTO new table SELECT FROM old table Drop the old table Comment : Have you checked @Maksym Polshcha s answer You have to use the foreign key s name not the column name . it might be something like fk customerid Comment : check my answer and let me know if you still have problem.. . .. . Answer : It looks like a bug in the error messaging of MySQL . http : bugs.mysql.com bug.php id 10333 .. . .. . Use SHOW CREATE TABLE table name to see the actual name of the foreign key . It looks like it might be mysql query browser problem when generating the query with wrong spelling of the foreign key name . Comment : It helps me to know that my constraint was created as INDEX not FOREIGN KEY . Then I used DROP INDEX clause . Thank you .", "Question : I would like to drop the foreign key in my table but been into this error message Comment : This may help you to understand stackoverflow.com questions 160233 http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-me Comment : @Imdad This link describes another error - errno : 150 Comment : Try this . Create new table without foreign key constraint . copy the data to new table using syntax INSERT INTO new table SELECT FROM old table Drop the old table Comment : Have you checked @Maksym Polshcha s answer You have to use the foreign key s name not the column name . it might be something like fk customerid Comment : check my answer and let me know if you still have problem.. . .. . Answer : To avoid getting this error while trying to drop a foreign key use the constraint name rather than the column name of the foreign key . When I tried .. . .. . I got error as .. . .. . I solved it using : .. . .. . Some links that will help you . link 1 http : www.xaprb.com blog 2006 08 22 mysqls-error-1025-explained .. . .. . link 2 http : dev.mysql.com doc refman 5.0 en innodb-error-codes.html look for Posted by Alex Blume on November 7 2008 5 : 09pm Posted by Hector Delgadillo on January 21 2011 4 : 57am Comment : not work for me .", "Question : I would like to drop the foreign key in my table but been into this error message Comment : This may help you to understand stackoverflow.com questions 160233 http : stackoverflow.com questions 160233 what-does-mysql-error-1025-hy000-error-on-rename-of-foo-errorno-150-me Comment : @Imdad This link describes another error - errno : 150 Comment : Try this . Create new table without foreign key constraint . copy the data to new table using syntax INSERT INTO new table SELECT FROM old table Drop the old table Comment : Have you checked @Maksym Polshcha s answer You have to use the foreign key s name not the column name . it might be something like fk customerid Comment : check my answer and let me know if you still have problem.. . .. . Answer : To avoid getting this error while trying to drop a foreign key use the constraint name rather than the column name of the foreign key", "Question : I have a table whose primary-key is used in several other tables and has several foreign-keys to other tables . The problem is that when I m trying to drop one of the foreign key columns ie locationIDX it gives me an ERROR 1025 HY000 : Error on rename error . How can I drop the column in the assignment table above without getting this error .. . Answer : Here s a way to drop foreign key constraint it will work . ALTER TABLE location . location id DROP FOREIGN KEY location ibfk 1" ] }
[ "yes-answer-long", "yes-answer-short" ]
rename
UNK_RELATION
zfcuser@php@65
zfcuser -- zfcuser is a module for use with zend-framework 2 in @placeholder .
{ "confidence": [ 57.59812927246094, 56.75111770629883, 52.10230255126953, 48.19453811645508, 47.91263198852539, 46.306819915771484, 45.875091552734375, 45.76959228515625, 44.0053825378418, 43.41687774658203, 43.19186782836914, 43.19186782836914, 43.19186782836914, 42.45890808105469, 42.43733215332031, 41.90928649902344, 41.728370666503906, 41.145179748535156, 40.93701171875, 40.65823745727539, 40.17871856689453, 40.02291488647461, 40.02291488647461, 40.02291488647461, 40.02291488647461, 39.866878509521484, 39.37565231323242, 39.3455696105957, 39.34291076660156, 39.34291076660156, 39.34291076660156, 39.32364273071289, 39.00743865966797, 38.952781677246094, 38.952781677246094, 38.89613723754883, 38.601661682128906, 38.060325622558594, 38.03255081176758, 37.93730545043945, 37.93730545043945, 37.93730545043945, 37.93730545043945, 37.732479095458984, 37.732479095458984, 37.732479095458984, 37.732479095458984, 37.732479095458984, 37.732479095458984, 37.67020034790039, 37.67020034790039, 37.67020034790039, 37.38434600830078, 37.28712463378906, 37.28712463378906, 36.66234588623047, 36.66234588623047, 36.66234588623047, 36.66234588623047, 36.66234588623047, 36.65472412109375, 36.65472412109375, 36.65472412109375, 36.65472412109375, 36.52090072631836, 36.52090072631836, 36.39802169799805, 36.28948974609375, 36.28948974609375, 36.28463363647461, 36.16566848754883, 35.759483337402344, 35.62038040161133, 35.3797607421875, 35.3797607421875, 35.3797607421875, 35.3797607421875, 35.3797607421875, 35.3797607421875, 35.3797607421875, 35.3797607421875, 35.228519439697266, 35.228519439697266, 35.228519439697266, 35.030147552490234, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.629947662353516, 34.60191345214844, 33.936771392822266, 33.936771392822266, 33.76557540893555, 33.559814453125 ], "content": [ "I m working with Zend Framework 2 ZfcUser and BjyAuthorize .", "I ve added module ZfcUser https : github.com ZF-Commons ZfcUser on my Zend Framework 2 application .", "I m using Zend Framework 2 with ZfcUser BjyAuthorize and Doctrine for the database .", "Is there any module or easy possibility out there to prevent account-sharing in Zend Framework 2 with ZFCUser", "I did as mentioned in Zend Framework 2 : How to properly replace Figlet with reCaptcha on zfcUser http : stackoverflow.com questions 16683900 zend-framework-2-how-to-properly-replace-figlet-with-recaptcha-on-zfcuser and it works fine .", "I want to use the module ZfcUser just in the module Administration but not the module Application .", "Copy the ZfcUser Validator folder into your module .", "I m starting working on unit tests for a Zend Framework 2 project using ZfcUser + BjyAuthorize .", "zfcuser logout .", "I am using Zend Framework 2 Bootstrap 3 ZFCUser ZFCDoctrineORMUser and Doctrine in tandem .", "I am using zfcuser module for log-in and registration .", "how to encrypt password in zend2 zfcuser module", "Looking at the code of RoleUserBridge it overrides the zfcuser module .", "I have installed ZfcUser with composer in my freshly installed Zend Framework skeleton .", "Its enough when my Module is direct after the ZfcUser Module .", "Lastly ensure the module is loaded after ZfcUser in application.config.php .", "the username email is unique in zfcuser .", "I use ZfcUser and ZfcRbac together .", "I did use ZfcUser for authentification and Bjyauthorize for authorization .", "I installed ZFCUser successfully .", "I have been looking through all the ZfcUser Authentication Adapter ZfcUser Controller Plugin and ZfcUser Factory files but cannot see anything that looks relevant .", "I implemented Zfcuser in my project .", "The ZfcUser module s template path stack contains DIR .", "zfcuser with the child routes login etc .", "So basically ignore the ZfcUser documentation .", "I ll see if I succeed to use it with zfcuser .", "Also I m using ZfcUser .", "i am using zfcuser bjyauthorize et roleuserbridge .", "So you mean I create a new module and clone ZfcUser to it", "How to notify zfcuser module about new field in this way", "I am using this now because it includes the zfcUser module .", "Make sure that you use the exactly same route names the keys in the array as ZfcUser does currently they use zfcuser as route name .", "Controller : zfcuser resolves to invalid controller class or alias : zfcuser -- is there any way to remove hide this", "Just setup ZfcUser and ScnSocialAuth and test it .", "I am using zfcuser and zfcrbac .", "The ZfcUser Controller UserController will then return this https : github.com ZF-Commons ZfcUser blob master src ZfcUser Controller UserController.php L163 performing the redirect .", "I m using Zend Framework 2.3.3 ZF-Commons ZfcBase 0.0.1 and ZF-Commons ZfcUser 1.2.2", "ensure that your module is loaded after ZfcUser it will overwrite the default .", "I m using zfcUser and I was wondering if its possible to disable the default routes such as zfcUser login zfcUser register etc because I do not want to expose them .", "I am working with zfcuser zfcuser-doctrine-orm and bjyauthorize but I m not sure on how to handle all the configurations .", "Then in your bootstrap you need to listen to attach to ZfcUser Form RegisterFilter ZfcUser Form Register both init to modify the form .", "I found it in zfcuser github https : github.com ZF-Commons ZfcUser wiki How-to-configure-a-session-timeout", "And I have modified Mapper of ZfcUser https : github.com ZF-Commons ZfcUser for user id to id .", "Using ZF2 to customise an Entity based on ZfcUser .", "This along with the above mentioned zfcuser adjustment seems to get there .", "I think it might only happen on the zfcuser pages .", "i am using ZFcUser on an old legacy website .", "Then add ZfcUserMod to the global application.config.php after ZfcUser .", "I m having some problems with modules ZfcUser and zfcuserDoctrineORM .", "Stable and compatible with ZfcUser version is 2.5.2", "The idle timeout was not a feature of zfcuser or bjyauthorize .", "I m trying to setup ZfcUser with BjyAuthorize .", "In ZfcUser wiki page https : github.com ZF-Commons ZfcUser wiki ZfcUser-Concepts-and-Goals it says that it is possible to use custom mapper if my model doesn t conform to the provided interface .", "You can add an own module as extension to the ZfcUser module maybe you want to call it something like ZfcUserMod .", "So you could create a module KFOZfcUser and set it in your application.ini.php directly before or after the real ZfcUser module .", "I have implemented ZfcUser in my application .", "Write from scratch based on some idea of zfcuser .", "Currently I am not using zfcuser is it going to help", "The session must be linked to ZfcUser in some way.. .", "Hmm did you enable it after ZfcUser", "I am using ZfcUser https : github.com ZF-Commons ZfcUser and Bjyauthorize https : github.com bjyoungblood BjyAuthorize .", "In order to extend ZfcUser controller in Module.php must be : .. . .. . and need to call custom user class instead zfcuser .", "I m using ZfcUser https : github.com ZF-Commons ZfcUser and BjyAuthorize https : github.com bjyoungblood BjyAuthorize .", "you may want to have a look at my fork at github.com thoaionline ZfcUser https : github.com thoaionline ZfcUser", "My tests : .. . .. . With this in mind how can I really write tests that need a logged user in Zend+ZfcUser", "This code throws Uncaught exception Zend Mvc Router Exception RuntimeException with message Could not find prototype with name zfcuser login .", "I don t use zfcuser but try this .. . .. . autoload global.php .. . .. . Module.php", "The zfc UserController has a redirect callback dependency in the constructor https : github.com ZF-Commons ZfcUser blob 1.x src ZfcUser Controller UserController.php L66 .", "Can anybody tell me what the user state in the ZfcUser https : github.com ZF-Commons ZfcUser is doing exactly and why we may need it", "I wanna add ReCaptcha version 2 from Google to ZfcUser RegisterForm .", "I have used ZfcUser as well .", "To register your custom controller you will have to make a custom factory and inject this dependency : .. . .. . You could also keep the old route definition and by using the same controller name by only overwriting the original zfcuser factory from the ZfcUser module.php controller config https : github.com ZF-Commons ZfcUser blob 1.x Module.php L56 : .. . .. . You just have to load your module after the ZfcUser module and add this code in your module.php :", "I have tried ZfcUser module using its documentation on GitHub .. . .. . https : github.com ZF-Commons ZfcUser .. . .. . Problem is I want to implement it on my existing project for Signup and Sign in and my database and signup page has-many items in the form while in ZfcUser implementation they have just implemented a very few items .", "Environment : zf2 zfcuser bjyautorise + custom routes .", "This issue needs some refactoring to the ZfcUser library .", "so it seems that ZFCUser is blocking the way and not biyauth .. .", "I m using ZF2 in combination with ZFCUser and bjyauthorize .", "But after some discussions it seems that ZFCUser is blocking the way .", "What exactly do you think ZfcUser is doing", "I don t think ZfcUser will redirect by itself", "to see now zfcuser user mapper is configured see the Module.php of ZfcUser .", "In my custom Module I have a custom UserController that extends the ZfcUser vendor s UserController in order to customize the indexAction and registerAction .", "Here is my bootstrap code nothing much there on my module class on zfcuser register event :", "Although I would have liked if zfcuser module had configuration options such as login redirect route logout redirect route .", "within your console Controller you have to use the github.com ZF-Commons ZfcUser blob master src ZfcUser https : github.com ZF-Commons ZfcUser blob master src ZfcUser Authentication Adapter Db.php service and authenticate your cli .", "I m working on a ZF2 project and using ZfcUser to manage website users .", "I just want to know is it possible to have a child route to the zfcuser route", "What are you trying to do point admin account to something that zfcuser provides", "I now want to rewrite the routes of zfcuser to properly integrate my project .", "And I want that the zfcuser routes are child routes of my admin route", "The easiest solution would be to override the zfcuser route path and prefixing it with admin .", "Im trying to attach some styles to forms created by ZfcUser", "I am trying to replace Figlet with reCaptcha on a zfcUser registration form .", "http : samminds.com 2013 03 zfcuser-bjyauthorize-and-doctrine-working-together", "I have already realized join zfcuser and bjy together .", "You should not create your own interface and if you do your new interface should extend ZfcUser Entity UserInterface instead just make your user entity extend the ZfcUser Entity UserInterface .", "This will stop event-propagation an return the response to the controller https : github.com ZF-Commons ZfcUser blob master src ZfcUser Authentication Adapter AdapterChain.php L55 .", "I am trying to override ZfcUser with my Entity following this post http : stackoverflow.com questions 17466176 zfcuser-how-can-i-modify-user-object .", "I have a custom implementation of AuthenticationService that I would like to use in ZfcUser Module but I am able to set this class into the module .", "i don t know which encryption technique is used by zfcuser ." ] }
{ "confidence": [ 64.45526123046875, 61.7939338684082, 60.47177505493164, 59.357120513916016, 59.34423065185547, 58.562294006347656, 58.37013626098633, 57.67345428466797, 57.67345428466797, 57.618045806884766, 57.5087890625, 56.262542724609375, 56.21434783935547, 55.839324951171875, 55.72758865356445, 55.677978515625, 55.41233825683594, 55.22917556762695, 54.97211837768555, 54.598785400390625 ], "content": [ "Question : I ve added module ZfcUser https : github.com ZF-Commons ZfcUser on my Zend Framework 2 application . But I have to use existing database-table which has slightly different column names than the default table structure for ZfcUser . In ZfcUser wiki page https : github.com ZF-Commons ZfcUser wiki ZfcUser-Concepts-and-Goals it says that it is possible to use custom mapper if my model doesn t conform to the provided interface . And since my database-table is different than default my user entity class is also different than standard ZfcUser Entity User . But I can tell ZfcUser to work with my own class easily by overriding setting in file config autoload zfcuser.global.php : .. . .. . But I ve not found an easy way to tell ZfcUser to use my mapper class so far . I have only found that the mapper is created by ZfcUser Module : : getServiceConfig inside which I can see the mapper is returned from its factory function : .. . .. . Is there a way to make ZfcUser to use my custom user mapper class .. . Answer : Currently there seems to be no easy way to change the table structure without modifying the ZfcUser source . There s a pull request on Github that should solve this problem : .. . .. . https : github.com ZF-Commons ZfcUser pull 174", "Question : I ve added module ZfcUser https : github.com ZF-Commons ZfcUser on my Zend Framework 2 application . But I have to use existing database-table which has slightly different column names than the default table structure for ZfcUser . In ZfcUser wiki page https : github.com ZF-Commons ZfcUser wiki ZfcUser-Concepts-and-Goals it says that it is possible to use custom mapper if my model doesn t conform to the provided interface . And since my database-table is different than default my user entity class is also different than standard ZfcUser Entity User . But I can tell ZfcUser to work with my own class easily by overriding setting in file config autoload zfcuser.global.php : .. . .. . But I ve not found an easy way to tell ZfcUser to use my mapper class so far . I have only found that the mapper is created by ZfcUser Module : : getServiceConfig inside which I can see the mapper is returned from its factory function : .. . .. . Is there a way to make ZfcUser to use my custom user mapper class .. . Answer : Ceate your own service factory for zfcuser user mapper and it will get used . Comment : Yes that would be exactly what I am looking for . The question is how to do it . Comment : add an entry for the zfcuser user mapper into your Module.php . ensure that your module is loaded after ZfcUser it will overwrite the default . to see now zfcuser user mapper is configured see the Module.php of ZfcUser . I am surprised that the issue of custom table has been out there for a while without a change in the official codebase . you may want to have a look at my fork at github.com thoaionline ZfcUser https : github.com thoaionline ZfcUser", "Question : I m using Zend Framework 2 with ZfcUser BjyAuthorize and Doctrine for the database . Registration etc . works very well so far . My problem is that registered users have no role assigned so i want to add the role user to the user during registration . I think i could attach this to the register event but i don t know how to do that . I hope someone can help me .. . .. . .. . i used this tutorial for setting up zfcuser etc . http : samminds.com 2013 03 zfcuser-bjyauthorize-and-doctrine-working-together .. . Answer : Building on DangelZM s answer and using another reference see link at end of my post about the Event Manager I came up with this solution which organizes the potential ZfcUser event-listeners out into a user listener object . Note : I created my own user module called NvUser so depending on the name of your module you ll have to replace all references of NvUser to your user module name . Summary .. . .. . I created an NvUserListener object that can itself attach event-listeners to the shared event manager and house the event-listener callbacks . Inside NvUser Module.php : .. . .. . Inside NvUser src NvUser Listener NvUserListener.php : .. . .. . Inside NvUser config module.config.php : .. . .. . References : .. . .. . Understanding the Zend Framework 2 Event Manager http : www.michaelgallego.fr blog 2013 05 12 understanding-the-zend-framework-2-event-manager Comment : Very clear and concise answer . Thank you . Comment : Very helpful . Thank you .", "Question : null .. . Answer : I am new to Zend Framework 2 . I am using ZfcUser https : github.com ZF-Commons ZfcUser and Bjyauthorize https : github.com bjyoungblood BjyAuthorize . I have three different roles : admin instructor and student . Each of them is supposed to get different views and access to different actions after authentication . I am familiar with this http : stackoverflow.com questions 16674060 zend-framework2-using-zfcuser-bjyauthorize-routing programmatic solution : when the program checks the role in and dispatches each role to a relative action . However I feel there should be a solution during configuration stage for this . I found some attempts http : javahow.net questions 16053479 zfcuser-redirect-roles-to-different-pages-after-login but I don t think it was ever merged to the main branch and I do not want to modify ZfcUser on my own . Any advice Should I continue with programmatic solution", "Question : I m developping a website by ZendFramework 2 . I have 2 modules : module for administration called Administration route defined like www.mysite.com admin .. . et module public site called Application route defined like www.mysite.com .. . I distinguish the 2 modules by the route . I don t know how to distinguish the two modules based on route . To make it clear I have 2 questions for example : .. . .. . 1 . I use Zfcuser for the login-system for the module Administration et in Administration Module.php I added the following code to the purpose that if one user doesn t have identity the layout will-change to the login form . namespace Administration .. . .. . use Zend Mvc ModuleRouteListener .. . use Zend Mvc MvcEvent .. . .. . class Module .. . public function onBootstrap MvcEvent e .. . eventManager e- getApplication - getEventManager .. . moduleRouteListener new ModuleRouteListener .. . moduleRouteListener- attach eventManager .. . eventManager- attach dispatch array this checkLoginChangeLayout .. . .. . .. . public function checkLoginChangeLayout MvcEvent e .. . if e- getApplication - getServiceManager - get zfcuser auth service - hasIdentity .. . controller e- getTarget .. . controller- layout layout authentication.phtml .. . .. . .. . .. . public function getConfig .. . return include DIR . config module.config.php .. . .. . .. . public function getAutoloaderConfig .. . return array .. . Zend Loader StandardAutoloader array .. . namespaces array .. . NAMESPACE DIR . src . NAMESPACE .. . .. . .. . .. . .. . .. . .. . .. . But all the 2 modules are affected by the function checkLoginChangeLayout . I want to use the module ZfcUser just in the module Administration but not the module Application . Can I do something about the Module Manager or Event Manager to solve the problem 1 . I ve found a 3rd party module called BjyAuthorize which is used for ACL by guard . When I active the module in application.config.php all my 2 modules are controlled by it . But I just want to use the 3rd party module in the module Administration but not the other modules . .. . Answer : your first approach is fail .. . .. . because as you found there is another module for doing such a thing called BJYAUTHORIZE .. . .. . it has a config for allowing different type of users access which controller action module route .. . .. . .. . plz review it s documentation for more information and also there is a blog post for How to join ZFCUser and BJY together . http : samminds.com 2013 03 zfcuser-bjyauthorize-and-doctrine-working-together Comment : Thanks for your answer . I have already realized join zfcuser and bjy together . The example in the link is just one module in the application . But my problem is I just want to use them in only one module and the other modules will not be affected . Comment : u can allow the whole route of your 2nd module to bypass bjyauthorize gaurd", "Question : I wanna add ReCaptcha version 2 from Google to ZfcUser RegisterForm . I did as mentioned in Zend Framework 2 : How to properly replace Figlet with reCaptcha on zfcUser http : stackoverflow.com questions 16683900 zend-framework-2-how-to-properly-replace-figlet-with-recaptcha-on-zfcuser and it works fine . Then I added recaptcha of version 2 trough composer : .. . .. . Then I changed my zfcuser.global.php .. . .. . So I get the correct register form on my page . The captcha version 2 provides validation and successfully passes it . But from the server-side I get the error that captcha element was is empty . The difference is that these elements v1 and v2 send various parameters for verification : .. . .. . recaptcha v1 sends this params to server for processing : .. . .. . recaptcha v2 sends this params to server for processing : .. . .. . Who knows how to be Perhaps there is another solution for integration the ReCaptcha v2 by Google . .. . Answer : I m the developer of browserlife zf2-recaptcha . Please check the readme file of this module : https : github.com malganis93 BrlReCaptcha .. . .. . If this doesn t solve your problem please contact me . Comment : Can you please explain how its going to solve the issue", "Question : In my custom Module I have a custom UserController that extends the ZfcUser vendor s UserController in order to customize the indexAction and registerAction . I add the following in my custom Module s module.config.php : .. . .. . This gives me .. . .. . Warning : Missing argument 1 for ZfcUser Controller UserController : : construct called in C : xampp htdocs my-module vendor zendframework zend-servicemanager src AbstractPluginManager.php on line 207 and defined in C : xampp htdocs my-module vendor zf-commons zfc-user src ZfcUser Controller UserController.php on line 66 .. . .. . And .. . .. . InvalidArgumentException C : xampp htdocs my-module vendor zf-commons zfc-user src ZfcUser Controller UserController.php : 69 Message : You must supply a callable redirectCallback .. . Answer : The zfc UserController has a redirect callback dependency in the constructor https : github.com ZF-Commons ZfcUser blob 1.x src ZfcUser Controller UserController.php L66 . This needs to be injected . To register your custom controller you will have to make a custom factory and inject this dependency : .. . .. . You could also keep the old route definition and by using the same controller name by only overwriting the original zfcuser factory from the ZfcUser module.php controller config https : github.com ZF-Commons ZfcUser blob 1.x Module.php L56 : .. . .. . You just have to load your module after the ZfcUser module and add this code in your module.php :", "Question : I m using Zend Framework 2 with ZfcUser BjyAuthorize and Doctrine for the database . Registration etc . works very well so far . My problem is that registered users have no role assigned so i want to add the role user to the user during registration . I think i could attach this to the register event but i don t know how to do that . I hope someone can help me .. . .. . .. . i used this tutorial for setting up zfcuser etc . http : samminds.com 2013 03 zfcuser-bjyauthorize-and-doctrine-working-together .. . Answer : This work too .", "Question : I m using Zend Framework 2 with ZfcUser BjyAuthorize and Doctrine for the database . Registration etc . works very well so far . My problem is that registered users have no role assigned so i want to add the role user to the user during registration . I think i could attach this to the register event but i don t know how to do that . I hope someone can help me .. . .. . .. . i used this tutorial for setting up zfcuser etc . http : samminds.com 2013 03 zfcuser-bjyauthorize-and-doctrine-working-together .. . Answer : I just used a MySQL trigger", "Question : I m a beginer zend-framework programmer . I did use ZfcUser for authentification and Bjyauthorize for authorization . I have to type of users : normal users and administrator . So what i want to do is to route the user to page A and admin to page B after authentification . In the Zfcuser configuation file there not this possibility we have just this line .. . .. . how can do specify a diffrent route for my differents users .. . Answer : To me your problem has nothing to do with ZfcUser or BjyAuthorize : Just let the user and the admin go inside your controller and there you can dispatch them depending on the user role .", "Question : I am try to make profile update page were people can able to change profile details . and they need password to update profile . I am using zfcuser module for log-in and registration . i don t know which encryption technique is used by zfcuser . now i need to compare encrypted password by zfcuser with password entered by user while profile update . Like if user inserted password encrypted password in database then update profile . i also tried this code .. . .. . but not matching with the encrypted password in database . At last i used this code .. . .. . but getting this error . Zend Mvc Controller PluginManager : : get was unable to fetch or create an instance for getServiceManager .. . .. . should anybudy have idea how to encrypt password in zend2 zfcuser module Thanks in advance . .. . Answer : Bcrypt doesn t create the same string each time as MD5 does . If you want to check if a bcrypted password is valid you can use : Comment : thanks . its works for me .", "Question : I ve added module ZfcUser https : github.com ZF-Commons ZfcUser on my Zend Framework 2 application . But I have to use existing database-table which has slightly different column names than the default table structure for ZfcUser . In ZfcUser wiki page https : github.com ZF-Commons ZfcUser wiki ZfcUser-Concepts-and-Goals it says that it is possible to use custom mapper if my model doesn t conform to the provided interface . And since my database-table is different than default my user entity class is also different than standard ZfcUser Entity User . But I can tell ZfcUser to work with my own class easily by overriding setting in file config autoload zfcuser.global.php : .. . .. . But I ve not found an easy way to tell ZfcUser to use my mapper class so far . I have only found that the mapper is created by ZfcUser Module : : getServiceConfig inside which I can see the mapper is returned from its factory function : .. . .. . Is there a way to make ZfcUser to use my custom user mapper class .. . Answer : I ve had the same problem as you but managed to log in to my application at last . I followed Rob s advice and created my own service factory within my existing user module . Unfortunately Bernhard is also spot on . You kinda have to dig into the ZfcUser source code to get it to work . The project I am working on now has a MSSQL server and I must say that it s been tough getting a handle on things . I ve ended up tweaking only one function in the ZfcUser source to get the login page to work . I only need log in functionality for the current application but the upcoming project is much more role driven . I was looking for something that wouldn t be too complicated to hook up quickly and at the same time offer more options and possibilities for the future . Here is what I did for now and what I ve learned : .. . .. . I copied the Entity and Mapper folders from the ZfcUser directory over to my existing b2bUser my module folder . Everything...even the Exception folder inside Mapper . It might not be necessary but I wasn t in the mood to figure out dependencies . In the zfcuser.global.php file my active configuration looks as follows : .. . .. . I left the rest of the settings on default . I removed the email option from auth identities because they won t use email addresses to log into the system . The user entity class is the one I copied over.. . .. . .. . Module.php b2bUser Copied the following to the service manager config : .. . .. . After the setup was done I changed the namespaces etc of the files in Entity and Mapper to reflect their new home . Changed the Entity and the Interface to reflect my own data structure . I did the same with the Mapper files and made sure the variable names in the Hydrator file is the same as my database column names . I left the AbstractDbMapper file where it was . But this is the file I tweaked a bit . Here is what mine looks like . The SQLSRV driver was full of pooh complaining the whole time about an object or a string.. . .. . .. . And that is that . I hope it helps someone to get it up and running on their own system at least . I won t leave mine like this but it was a bit of a mission to get it to work . Comment : Big thanks I was looking for the very same info and with help of your post I managed to reload zfcUser s Entity and Mapper classes to be used with my DB and extended functionality of Entity", "Question : I wanna add ReCaptcha version 2 from Google to ZfcUser RegisterForm . I did as mentioned in Zend Framework 2 : How to properly replace Figlet with reCaptcha on zfcUser http : stackoverflow.com questions 16683900 zend-framework-2-how-to-properly-replace-figlet-with-recaptcha-on-zfcuser and it works fine . Then I added recaptcha of version 2 trough composer : .. . .. . Then I changed my zfcuser.global.php .. . .. . So I get the correct register form on my page . The captcha version 2 provides validation and successfully passes it . But from the server-side I get the error that captcha element was is empty . The difference is that these elements v1 and v2 send various parameters for verification : .. . .. . recaptcha v1 sends this params to server for processing : .. . .. . recaptcha v2 sends this params to server for processing : .. . .. . Who knows how to be Perhaps there is another solution for integration the ReCaptcha v2 by Google . .. . Answer : I recently had to add the new nocaptcha recaptcha to a ZF2 application . After much time spent trying to integrate it the Zend way which was unsuccessful I decided to just do it as per the instructions here http : webdesign.tutsplus.com tutorials how-to-integrate-no-captcha-recaptcha-in-your-website--cms-23024 bypassing Zend s libraries and everything works correctly .", "Question : I m writing from Argentina forgive my English little . I m having some problems with modules ZfcUser and zfcuserDoctrineORM . I need to integrate them into my project . I m working with Zend framework 2 doctrine 2.3 and postgreSQL and this is the first time I work with these tools . For that reason there are many things that I don t dominate well I have all the modules included in my config application.config.php and my connection is configured in my database in config autoload local.php .. . .. . Local.php .. . .. . application.config.php .. . .. . In order to map my database I made use of annotations with doctrine and I have my own entity user generated in my module . I added the configuration archives zfcuser.global.php and zfcuserdoctrineorm.global.php in my autoload directory but I don t know how to configure them so that the archives recognize my entity . Into zfcuser.global.php .. . .. . Into zfcuserdoctrineorm.global.php .. . .. . I saw that module zfcuserDoctrineORM works with XML . Can the module be adapted to work with annotations If this is possible how do I adapt my entity user to this module Which archives should I modify .. . Answer : You don t need to adapt ZfcUserDoctrineORM https : github.com ZF-Commons ZfcUserDoctrineORM to use annotation mappings . DoctrineORMModule https : github.com doctrine DoctrineORMModule supports mixed mappings natively it s your choice to decide which entities to map with which drivers . About ZfcUser https : github.com ZF-Commons ZfcUser s configuration I personally didn t modify it at all I only did some overrides on what ZfcUserDoctrineORM does . 1 . remove config autoload zfcuser.global.php you don t need it .. . 2 . remove config autoload zfcuserdoctrineorm.global.php .. . 3 . in the module defining your user entity use following if you want to override the annotation driver of ZfcUserDoctrineOrm assuming the file is in YourModule config module.config.php : .. . .. . entity mappings .. . doctrine array .. . driver array .. . zfcuser entity array .. . customize path .. . class Doctrine ORM Mapping Driver AnnotationDriver .. . paths array DIR . . . src YourModule Entity .. . .. . orm default array .. . drivers array .. . YourModule Entity zfcuser entity .. . .. . .. . .. . .. . .. . ZfcUser specific config .. . zfcuser array .. . user entity class YourModule Entity User .. . enable default entities false .. . .. . .. . .. . This should work for the 0.1.x versions of ZfcUserDoctrineORM Comment : This works but zfcuser doctrine em Doctrine ORM EntityManager needs to be added to service manager aliases in module.config.php otherwise An alias zfcuser doctrine em was requested but no service could be found exception occurs . Comment : That will not work with DoctrineModule 0.8.x since aliases are borked.. . Comment : This worked for me . Thanks IMHO this should be marked as the correct answer .", "Question : Maybe its obvious problem but could you please tell me how can I add custom css styles to forms created by standard view helpers in zend-framework 2 Im trying to attach some styles to forms created by ZfcUser .. . Answer : Assign the class-attribute : .. . .. . Since you want to extend an existing form you could either grab the Form and then form- get elementname - setAttribute class blubb or you overwrite the Service-Form from ZfCUser with your custom form that has all styles attached given above example . Comment : thanks so much you definetly solved my problem + extras", "Question : null .. . Answer : I have installed ZfcUser with composer in my freshly installed Zend Framework skeleton . It is working fine on localhost but when I deploy it on my production server it gives me error like this : .. . .. . An exception was raised while creating zfcuser no instance returned .. . .. . How do I fix this Comment : Can you provide code Or any other information", "Question : I m using ZfcUser in my app and I need to control the timeout parameter . As it s not part of the configuration I would like to set my own Zend Session object with the remember-me seconds param to ZfcUser on bootstrap but I don t know how . By chance has anyone done this already .. . Answer : I don t use zfcuser but try this .. . .. . autoload global.php .. . .. . Module.php Comment : I m afraid it is more complex than this . The session must be linked to ZfcUser in some way.. . Comment : Have you tried it", "Question : I m using Zend Framework 2 with ZfcUser BjyAuthorize and Doctrine for the database . Registration etc . works very well so far . My problem is that registered users have no role assigned so i want to add the role user to the user during registration . I think i could attach this to the register event but i don t know how to do that . I hope someone can help me .. . .. . .. . i used this tutorial for setting up zfcuser etc . http : samminds.com 2013 03 zfcuser-bjyauthorize-and-doctrine-working-together .. . Answer : Maybe it s not the best solution but it works for me . Add user role id option in config scope . Maybe someone will offer better solution .", "Question : null .. . Answer : I m currently facing the situation that the ZendFramework2 ZFCuser-Module does not have any options to prevent a user from logging in from two devices at the same time . We recently had a case that two people were account-sharing and accidentally deleted each others data . Since I did not build the application to account for this kind of resource conflicts I need to prevent this behaviour now . Is there any module or easy possibility out there to prevent account-sharing in Zend Framework 2 with ZFCUser The docs and SO and all sorts of ZF2 blogs somehow appear to never have come across this type of problem.. . Thanks in advance Comment : I m not familiar with Zend but you can add a column to your database that tracks the IP of the user or some piece of detail which is unique per device I would offer MAC address but it cannot be achieved Comment : Something like this would be possible but I cannot believe this rather far developed Framework does not have anything in the shelf to tackle this kind of problem . I refuse to believe this problem is super special But thanks for the advice.. . This will be the direction I m heading if no one has an elaborate answer : -", "Question : I m a beginer zend-framework programmer . I did use ZfcUser for authentification and Bjyauthorize for authorization . I have to type of users : normal users and administrator . So what i want to do is to route the user to page A and admin to page B after authentification . In the Zfcuser configuation file there not this possibility we have just this line .. . .. . how can do specify a diffrent route for my differents users .. . Answer : Suppose you have an admin role in bjyauthorize that you want to redirect to another route . In your loginAction replace the code : .. . .. . with this code :" ] }
[ "yes-answer-long", "yes-answer-short" ]
php
UNK_RELATION